/* ============================================================
   Casa Toa Alta — Design System
   Palette drawn from the property: deep monte green, terracotta
   railing coral, cream stucco, sand driveway, night-sky navy.
   ============================================================ */

:root {
  /* Brand palette */
  --green: #0d5b45;
  --green-deep: #094536;
  --coral: #f16a4f;
  --coral-soft: #f58a73;
  --cream: #f2ede2;
  --cream-warm: #f7f3ea;
  --sand: #dbc49a;
  --navy: #0d2b41;

  /* Semantic (light) */
  --bg: var(--cream-warm);
  --bg-alt: #ffffff;
  --bg-elev: #ffffff;
  --ink: #1d2a26;
  --ink-soft: #4d5a55;
  --ink-faint: #7d8a84;
  --line: rgba(13, 43, 65, 0.12);
  --accent: var(--green);
  --accent-contrast: #ffffff;
  --cta: var(--coral);
  --cta-hover: #e05840;
  --glass: rgba(247, 243, 234, 0.78);
  --shadow: 0 10px 40px rgba(13, 43, 65, 0.08);
  --shadow-lift: 0 18px 60px rgba(13, 43, 65, 0.14);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 8px;
  --radius-btn: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
  --max-w: 1200px;
  --max-w-text: 720px;
}

html[data-theme="dark"] {
  --bg: #0c1613;
  --bg-alt: #101d19;
  --bg-elev: #15241f;
  --ink: #ece7db;
  --ink-soft: #b3bdb7;
  --ink-faint: #82908a;
  --line: rgba(242, 237, 226, 0.14);
  --accent: #6fbfa4;
  --accent-contrast: #0c1613;
  --cta: var(--coral);
  --cta-hover: #f58a73;
  --glass: rgba(12, 22, 19, 0.72);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 18px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  transition: background-color 0.5s ease, color 0.5s ease;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Language toggle mechanics ----------
   html[data-lang="en"] shows [lang="en"], hides [lang="es"], etc. */
html[data-lang="en"] [lang="es"] { display: none !important; }
html[data-lang="es"] [lang="en"] { display: none !important; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: var(--max-w-text);
}

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }
.narrow { max-width: var(--max-w-text); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--glass);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding-block: 0.9rem;
  position: relative; min-height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem;
  text-decoration: none; color: var(--ink);
}
.brand span { color: var(--coral); }
.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2rem); list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500;
  color: var(--ink-soft); position: relative; padding-block: 0.3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-tools {
  display: flex; align-items: center; gap: 0.6rem;
  position: absolute; right: clamp(1.25rem, 4vw, 2.5rem);
  top: 50%; transform: translateY(-50%);
}
.tool-btn {
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  border-radius: var(--radius-btn); padding: 0.42rem 0.85rem;
  font-size: 0.85rem; font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}
.tool-btn:hover { background: var(--line); transform: translateY(-1px); }

.nav-toggle {
  display: none; border: none; background: none; color: var(--ink);
  width: 44px; height: 44px; border-radius: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 2.1rem; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 6px 20px rgba(241, 106, 79, 0.35); }
.btn-primary:hover { background: var(--cta-hover); box-shadow: 0 10px 28px rgba(241, 106, 79, 0.45); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-dark-ghost { border-color: var(--line); color: var(--ink); }
.btn-dark-ghost:hover { background: var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-media {
  position: absolute; inset: -12% 0; z-index: -2;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 43, 65, 0.35) 0%,
              rgba(13, 43, 65, 0.25) 45%, rgba(13, 43, 65, 0.65) 100%);
}
.hero-inner { padding: 7rem 1.5rem 5rem; max-width: 900px; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero .lede { color: rgba(255, 255, 255, 0.92); margin: 1.4rem auto 2.4rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85); font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; text-decoration: none; text-align: center;
}
.scroll-cue::after {
  content: ""; display: block; width: 1px; height: 44px;
  margin: 0.6rem auto 0; background: rgba(255, 255, 255, 0.7);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page hero (interior pages) */
.page-hero {
  position: relative; min-height: 62vh; display: grid; place-items: end start;
  color: #fff; overflow: hidden; isolation: isolate;
}
.page-hero .hero-media { inset: -10% 0; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 43, 65, 0.25), rgba(13, 43, 65, 0.7));
}
.page-hero .container { padding-block: 4rem 3.5rem; width: 100%; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, 0.9); max-width: 620px; margin-top: 0.8rem; }

/* ---------- Story / magazine ---------- */
.story-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.story-grid.flip { grid-template-columns: 0.9fr 1.1fr; }
.story-grid.flip .story-media { order: -1; }
.story-media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift);
}
.story-media img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5;
  transition: transform 1.2s var(--ease);
}
.story-media:hover img { transform: scale(1.04); }
.story-copy p + p { margin-top: 1.2rem; }
.story-copy .drop::first-letter {
  font-family: var(--font-display); font-size: 3.4em; font-weight: 700;
  float: left; line-height: 0.85; padding-right: 0.12em; color: var(--coral);
}
blockquote.pull {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic; line-height: 1.4; color: var(--accent);
  border-left: 3px solid var(--coral); padding-left: 1.5rem; margin-block: 2rem;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card .icon {
  width: 52px; height: 52px; border-radius: 8px;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Spec cards ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.spec {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; text-align: center; box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
}
.spec:hover { transform: translateY(-5px); }
.spec .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); }
.spec .label { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.3rem; }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  border-radius: var(--radius-btn); padding: 0.5rem 1.2rem; font-size: 0.88rem; font-weight: 500;
  transition: all 0.3s ease;
}
.filter-btn[aria-pressed="true"], .filter-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

.masonry { columns: 3; column-gap: 1.25rem; }
.masonry figure {
  break-inside: avoid; margin-bottom: 1.25rem; position: relative;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow);
}
.masonry img { width: 100%; transition: transform 1s var(--ease); }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(13, 43, 65, 0.75));
  color: #fff; font-size: 0.88rem; opacity: 0;
  transition: opacity 0.45s ease;
}
.masonry figure:hover figcaption, .masonry figure:focus-within figcaption { opacity: 1; }
.masonry figure.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(9, 20, 16, 0.94); place-items: center; padding: 2rem;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; border-radius: 8px; object-fit: contain; }
.lightbox .lb-caption { color: rgba(255,255,255,0.85); text-align: center; margin-top: 1rem; font-size: 0.95rem; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 8px;
  width: 52px; height: 52px; display: grid; place-items: center;
  transition: background 0.3s ease;
}
.lb-btn:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-btn svg { width: 24px; height: 24px; }

/* ---------- Parallax band ---------- */
.band {
  position: relative; min-height: 64vh; display: grid; place-items: center;
  background-attachment: fixed; background-size: cover; background-position: center;
  color: #fff; text-align: center; isolation: isolate; padding: 4rem 1.5rem;
}
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13, 43, 65, 0.45); }
.band h2, .band p { color: #fff; }
.band .quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 3.5vw, 2.6rem); max-width: 850px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce), (max-width: 900px) { .band { background-attachment: scroll; } }

/* ---------- Lifestyle vignettes ---------- */
.vignette {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.vignette-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 380px; display: grid; align-items: end;
  color: #fff; text-decoration: none; box-shadow: var(--shadow);
}
.vignette-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vignette-item:hover img { transform: scale(1.06); }
.vignette-item .v-copy {
  position: relative; padding: 2.5rem 1.8rem 1.8rem;
  background: linear-gradient(transparent, rgba(13, 43, 65, 0.8));
}
.vignette-item h3 { color: #fff; margin-bottom: 0.35rem; }
.vignette-item p { color: rgba(255,255,255,0.88); font-size: 0.95rem; }

/* ---------- Floor plan ---------- */
.floorplan {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 5rem); text-align: center; background: var(--bg-elev);
}
.floorplan .rooms { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.8rem; }
.room-chip {
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  padding: 0.45rem 1.1rem; font-size: 0.88rem; color: var(--ink-soft);
  background: var(--bg);
}

/* ---------- Location ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.map-wrap iframe { width: 100%; height: 440px; border: 0; display: block; filter: saturate(0.9); }
html[data-theme="dark"] .map-wrap iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.7); }
.distance-list { list-style: none; display: grid; gap: 0.9rem; }
.distance-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 0.9rem;
}
.distance-list .place { font-weight: 600; }
.distance-list .time { color: var(--accent); font-weight: 600; white-space: nowrap; font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.4rem 2.2rem; box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
}
.testimonial:hover { transform: translateY(-6px); }
.testimonial q {
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic;
  line-height: 1.5; quotes: "\201C" "\201D"; display: block; margin-bottom: 1.4rem;
}
.testimonial cite { font-style: normal; font-size: 0.9rem; color: var(--ink-faint); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow);
}
.contact-list { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.contact-list a { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.contact-list a:hover { color: var(--coral); }
.contact-list .icon {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.contact-list .icon svg { width: 22px; height: 22px; }

.form-grid { display: grid; gap: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.price-tag { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--accent); }
.fsbo-badge {
  display: inline-block; background: color-mix(in srgb, var(--coral) 14%, transparent);
  color: var(--coral); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; border-radius: var(--radius-btn); padding: 0.4rem 1rem; margin-top: 0.6rem;
}

/* Sticky CTA — hidden by owner's preference.
   To bring it back, change "none" to "inline-flex". */
.sticky-cta { display: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 52px; height: 52px; border-radius: 8px; border: none;
  background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lift); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--coral); }
.to-top svg { width: 24px; height: 24px; }

/* ---------- Share bar (footer) ---------- */
.share-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem;
  margin: 2.5rem 0 0.5rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.share-bar .share-label { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-right: 0.4rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  background: rgba(255,255,255,0.1); color: #fff !important; border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none; cursor: pointer; font-family: var(--font-body);
  transition: background 0.3s ease, transform 0.3s ease;
}
.share-btn:hover { background: var(--coral); border-color: var(--coral); transform: translateY(-2px); }
.share-btn svg { width: 18px; height: 18px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 1rem; }
details.faq {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0; overflow: hidden;
  transition: box-shadow 0.4s var(--ease);
}
details.faq[open] { box-shadow: var(--shadow-lift); }
details.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem; font-weight: 600; font-size: 1.05rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--coral);
  flex-shrink: 0; transition: transform 0.3s var(--ease);
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-a {
  padding: 0 1.5rem 1.4rem; color: var(--ink-soft); line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: rgba(255, 255, 255, 0.85);
  padding-block: 4rem 2.5rem; margin-top: 0;
}
html[data-theme="dark"] .site-footer { background: #081018; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.site-footer h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.8rem; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color 0.3s ease; }
.site-footer a:hover { color: var(--coral-soft); }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 3rem; padding-top: 1.6rem;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.55);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(8% 8% 8% 8% round 8px); opacity: 0; transition: clip-path 1.1s var(--ease), opacity 0.9s ease; }
.reveal-img.in { clip-path: inset(0 0 0 0 round 8px); opacity: 1; }
[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }
[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hero-media { transform: none !important; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .masonry { columns: 2; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  /* While the menu is open, drop the header's glass blur — the blur
     traps the fixed menu inside the header bar and makes it see-through. */
  body.menu-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
    border-bottom-color: var(--line);
  }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    background: var(--bg); /* fully opaque panel */
    gap: 1.8rem; font-size: 1.2rem;
    transform: translateX(100%); transition: transform 0.45s var(--ease);
    z-index: 110;
  }
  .nav-links a { font-weight: 600; color: var(--ink); }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle {
    display: grid; place-items: center; z-index: 120;
    position: absolute; left: clamp(1.25rem, 4vw, 2.5rem);
    top: 50%; transform: translateY(-50%);
  }
  .story-grid, .story-grid.flip { grid-template-columns: 1fr; }
  .story-grid.flip .story-media { order: 0; }
  .vignette { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .masonry { columns: 1; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .lb-prev, .lb-next { display: none; }
}
