/* ==========================================================================
   Brazil Village Residences
   Design system mirrors the Pine Valley template structure:
   General Sans 600 headings / Inter body, 1440 container, 96px section rhythm,
   48px header-to-content gap, 16px stacks, 8px radii, 100px pills,
   opacity+translateY(50px) scroll reveals, ±125px image parallax,
   coverflow carousel at scale 1 / .765 / .63.
   Palette substitutes the brand seal's green + terracotta for PV's black/white.
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand — sampled from the Brazil Village Residences seal */
  --ink:        #1E4632;   /* deep forest green — PV's black */
  --ink-90:     #2A5540;
  --muted:      #5C6B62;   /* PV's #545454, warmed */
  --clay:       #C4622D;   /* terracotta accent */
  --clay-soft:  #E2A483;
  --bone:       #FBF9F4;   /* page — PV's white, warmed */
  --sand:       #F2EDE1;
  --line:       rgba(30, 70, 50, 0.12);
  --white:      #FFFFFF;

  /* Type */
  --font-display: 'General Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout — Pine Valley exact */
  --container: 1440px;
  --pad-x: 24px;
  --pad-y: 96px;
  --gap-header: 48px;   /* section header -> content */
  --gap-stack: 16px;    /* eyebrow -> h2 -> p */
  --gap-grid: 8px;      /* feature grid gutter */
  --radius: 8px;
  --radius-pill: 100px;

  /* Motion */
  --ease: cubic-bezier(0.44, 0, 0.13, 1);
  --dur: 0.8s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- type scale ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); line-height: 1.2; }  /* 60/72 */
h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.5rem); line-height: 1.3; }  /* 40/52 */
h3 { font-size: 1.25rem; line-height: 1.35; }

.eyebrow {
  font-size: 14px; font-weight: 500; line-height: 1.2;
  color: var(--clay);
}
.lede { font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 520px; }

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--gap-header);
}
.section-head {
  display: flex; flex-direction: column; gap: var(--gap-stack);
  max-width: 600px;
}
.section-head.center { max-width: 640px; margin-inline: auto; text-align: center; align-items: center; }
.section-head.center .lede { text-align: center; }
.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--clay); }
.btn-light { background: var(--bone); color: var(--ink); }
.btn-light:hover { background: var(--clay); color: var(--bone); }
.btn-ghost {
  border: 1px solid rgba(251, 249, 244, 0.45);
  color: var(--bone);
  backdrop-filter: blur(6px);
  background: rgba(30, 70, 50, 0.18);
}
.btn-ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-outline { border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 20px max(24px, calc((100vw - var(--container)) / 2 + 24px));
  transition: background-color .4s var(--ease), backdrop-filter .4s var(--ease),
              box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  padding-block: 12px;
  background: rgba(251, 249, 244, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; }
.brand-word {
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone); line-height: 1.1;
  transition: color .4s var(--ease);
}
.brand-word small { display: block; font-size: 9px; letter-spacing: 0.22em; opacity: .75; font-weight: 500; }
.nav.scrolled .brand-word { color: var(--ink); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 15px; color: var(--bone); opacity: .92;
  position: relative; padding-block: 4px;
  transition: color .4s var(--ease), opacity .25s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav .btn-nav { background: var(--bone); color: var(--ink); padding: 11px 22px; font-size: 14px; }
.nav.scrolled .btn-nav { background: var(--ink); color: var(--bone); }
.nav .btn-nav:hover { background: var(--clay); color: var(--bone); }

.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--bone); position: relative; transition: background .3s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 1.5px; background: inherit;
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); background: var(--ink); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); background: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,45,32,.55) 0%, rgba(20,45,32,.12) 34%, rgba(20,45,32,.78) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding: 0 var(--pad-x) 72px;
  display: flex; flex-direction: column; gap: 24px;
}
.hero-copy { display: flex; flex-direction: column; gap: var(--gap-stack); max-width: 672px; }
.hero h1 { color: var(--bone); }
.hero .lede { color: rgba(251, 249, 244, 0.86); max-width: 540px; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(251, 249, 244, 0.14);
  border: 1px solid rgba(251, 249, 244, 0.28);
  backdrop-filter: blur(8px);
  color: var(--bone); font-size: 13px; font-weight: 500; letter-spacing: .01em;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--clay-soft);
  box-shadow: 0 0 0 0 rgba(226,164,131,.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(226,164,131,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(226,164,131,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,164,131,0); }
}

.hero-meta {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 28px; margin-top: 8px;
  border-top: 1px solid rgba(251,249,244,.22);
}
.hero-meta div { color: var(--bone); }
.hero-meta .k {
  font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1;
}
.hero-meta .v { font-size: 13px; opacity: .72; margin-top: 4px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(251,249,244,.7); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.scroll-cue i {
  width: 1px; height: 34px; background: linear-gradient(rgba(251,249,244,.7), transparent);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity:.4 } 50% { transform: scaleY(1); opacity:1 } }

/* ---------- stat grid (4-col, 8px gutter) ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-grid);
}
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 98, 45, .38);
  box-shadow: 0 12px 34px rgba(30, 70, 50, .07);
}
.stat .k {
  font-family: var(--font-display); font-weight: 600;
  font-size: 30px; line-height: 1.1; color: var(--ink);
}
.stat .k span { font-size: 15px; color: var(--muted); font-weight: 500; }
.stat .v { font-size: 14px; color: var(--muted); }

/* ---------- gallery mosaic ---------- */
/* Fixed row height (rather than per-tile aspect-ratio) so the spanning tiles
   tessellate: 4 cols x 2 rows, with the tall tile occupying col 1 of both. */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: var(--gap-grid);
}
.frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--sand);
}
.frame img, .frame video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.frame:hover img, .frame:hover video { transform: scale(1.05); }
/* drawings and plans: show the whole sheet rather than cropping it */
.frame.doc { background: var(--white); border: 1px solid var(--line); }
.frame.doc img { object-fit: contain; padding: 14px; }
.frame.doc:hover img { transform: scale(1.02); }
.frame .cap {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(251,249,244,.9); backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 500; color: var(--ink);
  transform: translateY(6px); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.frame:hover .cap { transform: translateY(0); opacity: 1; }
.m-tall  { grid-row: span 2; }
.m-wide  { grid-column: span 2; }

/* full-bleed parallax band */
.band {
  position: relative; height: 62svh; min-height: 420px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.band .par { position: absolute; inset: -14% 0; }
.band .par img, .band .par video { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ''; position: absolute; inset: 0; background: rgba(20,45,32,.34);
}
.band .band-copy {
  position: relative; z-index: 2; text-align: center; color: var(--bone);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 24px;
}
.band .band-copy h2 { color: var(--bone); max-width: 700px; }

/* ---------- experience: 3 tall parallax cards ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-grid); }
.exp {
  position: relative; height: 500px; overflow: hidden; border-radius: var(--radius);
  display: flex; align-items: flex-end;
}
.exp .par { position: absolute; inset: -14% 0; z-index: 0; }
.exp .par img, .exp .par video { width: 100%; height: 100%; object-fit: cover; }
.exp::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,45,32,0) 40%, rgba(20,45,32,.82) 100%);
}
.exp-copy {
  position: relative; z-index: 2; padding: 28px;
  display: flex; flex-direction: column; gap: 8px; color: var(--bone);
}
.exp-copy h3 { font-size: 22px; }
.exp-copy p { font-size: 14px; line-height: 1.5; color: rgba(251,249,244,.82); }

/* ---------- amenities (12 tiles) ---------- */
.amen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-grid); }
.amen {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.amen svg { width: 20px; height: 20px; flex: none; stroke: var(--clay); transition: stroke .35s var(--ease); }
.amen:hover { transform: translateY(-3px); background: var(--ink); color: var(--bone); border-color: var(--ink); }
.amen:hover svg { stroke: var(--clay-soft); }

/* ---------- residences coverflow carousel ---------- */
/* overflow-x: clip contains the off-stage cards (translated to ±600px) without
   creating a horizontal page scrollbar, while leaving their drop shadows
   visible vertically — overflow:hidden would clip those too. */
.coverflow { position: relative; padding-block: 8px; overflow-x: clip; }
.cf-stage {
  position: relative; height: 460px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1600px;
}
.cf-item {
  position: absolute; width: min(523px, 74vw); height: 380px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--sand);
  transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s var(--ease);
  will-change: transform, opacity;
  box-shadow: 0 18px 50px rgba(30,70,50,.14);
}
.cf-item img { width: 100%; height: 100%; object-fit: cover; }
.cf-item.plan img { object-fit: contain; background: var(--white); padding: 12px; }
.cf-item[data-pos="0"]  { transform: translateX(0) scale(1); opacity: 1; z-index: 5; }
.cf-item[data-pos="1"]  { transform: translateX(357.5px) scale(.765); opacity: .95; z-index: 4; }
.cf-item[data-pos="-1"] { transform: translateX(-357.5px) scale(.765); opacity: .95; z-index: 4; }
.cf-item[data-pos="2"]  { transform: translateX(600px) scale(.63); opacity: .55; z-index: 3; }
.cf-item[data-pos="-2"] { transform: translateX(-600px) scale(.63); opacity: .55; z-index: 3; }
.cf-item[data-pos="hidden"] { transform: translateX(0) scale(.5); opacity: 0; z-index: 1; pointer-events: none; }
.cf-item:not([data-pos="0"]) { cursor: pointer; filter: saturate(.9); }

.cf-bar {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 4px;
}
.cf-label {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  min-width: 220px; text-align: center;
}
.cf-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.cf-btn:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); transform: scale(1.06); }
.cf-btn svg { width: 16px; height: 16px; }

/* ---------- masterplan ---------- */
/* Column ratio is tuned so the portrait site plan very nearly fills its panel
   rather than floating in white space. */
.plan-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--gap-grid); align-items: stretch; }
.plan-main {
  position: relative; overflow: hidden; height: 760px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
}
.plan-main img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.plan-side { display: flex; flex-direction: column; gap: var(--gap-grid); height: 760px; }
.plan-side .frame { flex: 1; }
.plan-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-grid); }
.figure {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.figure .k { font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.figure .v { font-size: 14px; color: var(--muted); margin-top: 4px; }
.figure .n { font-size: 12px; color: var(--muted); opacity: .8; margin-top: 10px; }

/* ---------- highlights (marquee rows) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--gap-grid); width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.rev .marquee-track { animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-50%); } }
.hl {
  width: 400px; flex: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.hl .hl-top { display: flex; align-items: center; gap: 14px; }
.hl .badge {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--sand); display: grid; place-items: center; flex: none;
}
.hl .badge svg { width: 20px; height: 20px; stroke: var(--clay); }
.hl h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin: 0; }
.hl .sub { font-size: 13px; color: var(--muted); }
.hl p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- location ---------- */
.loc-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-grid); }
.loc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; display: flex; flex-direction: column; gap: 26px;
}
.loc-row { display: flex; gap: 14px; align-items: flex-start; }
.loc-row svg { width: 18px; height: 18px; stroke: var(--clay); flex: none; margin-top: 2px; }
.loc-row .t { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.loc-row .d { font-size: 16px; margin-top: 4px; line-height: 1.45; }
.loc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.loc-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.loc-list li:hover { border-color: rgba(196,98,45,.4); transform: translateX(3px); }
.loc-list .bullet { width: 5px; height: 5px; border-radius: 50%; background: var(--clay); flex: none; }

/* ---------- register / CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 560px; display: flex; align-items: center;
}
.cta .par { position: absolute; inset: -12% 0; z-index: 0; }
.cta .par img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,45,32,.88) 0%, rgba(20,45,32,.58) 55%, rgba(20,45,32,.32) 100%); z-index: 1; }
.cta-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center;
  width: 100%; padding: 56px;
}
.cta-copy { display: flex; flex-direction: column; gap: var(--gap-stack); color: var(--bone); max-width: 520px; }
.cta-copy h2 { color: var(--bone); }
.cta-copy .lede { color: rgba(251,249,244,.84); }
.cta-facts { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 12px; }
.cta-facts .k { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--bone); }
.cta-facts .v { font-size: 13px; color: rgba(251,249,244,.7); margin-top: 3px; }

.form {
  background: var(--bone); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.form h3 { font-size: 19px; }
.form p.small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--clay); box-shadow: 0 0 0 3px rgba(196,98,45,.12);
}
.form .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: var(--gap-grid); max-width: 900px; width: 100%; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.faq-item.open { border-color: rgba(196,98,45,.35); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; text-align: left;
  font-size: 16px; font-weight: 500;
}
.faq-q i {
  width: 22px; height: 22px; flex: none; position: relative;
}
.faq-q i::before, .faq-q i::after {
  content: ''; position: absolute; inset: 50% 0 auto 0; height: 1.5px; background: var(--clay);
  transition: transform .35s var(--ease);
}
.faq-q i::after { transform: rotate(90deg); }
.faq-item.open .faq-q i::after { transform: rotate(0deg); }
/* Height is driven in px by script.js. The grid-template-rows 0fr->1fr trick
   collapses here: with an auto-height container there is no free space for the
   1fr track to claim, so it resolves to 0. */
.faq-a {
  height: 0; overflow: hidden;
  transition: height .45s var(--ease);
}
.faq-a p { padding: 0 26px 24px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 720px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--bone); }
.footer .container { gap: 56px; }
.f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.f-brand { display: flex; flex-direction: column; gap: 18px; max-width: 340px; }
.f-brand img { width: 76px; height: 76px; border-radius: 50%; }
.f-brand p { font-size: 14px; line-height: 1.6; color: rgba(251,249,244,.7); }
.f-col h5 {
  margin: 0 0 16px; font-size: 12px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(251,249,244,.5);
}
.f-col li + li { margin-top: 11px; }
.f-col a, .f-col span { font-size: 14px; color: rgba(251,249,244,.82); transition: color .25s var(--ease); }
.f-col a:hover { color: var(--clay-soft); }
.f-bot {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid rgba(251,249,244,.14);
  font-size: 13px; color: rgba(251,249,244,.55);
}

/* ---------- film lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(16, 34, 25, 0.92);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.in { opacity: 1; }
.lb-stage {
  width: min(1100px, 100%);
  border-radius: var(--radius); overflow: hidden;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  transform: scale(.97);
  transition: transform .4s var(--ease);
}
.lightbox.in .lb-stage { transform: scale(1); }
.lb-stage video { width: 100%; height: auto; display: block; }
.lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--bone);
  border: 1px solid rgba(251, 249, 244, .35);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.lb-close:hover { background: var(--bone); color: var(--ink); transform: rotate(90deg); }
.lb-close svg { width: 18px; height: 18px; }
body.lb-open { overflow: hidden; }

/* ---------- scroll reveal (Pine Valley: opacity 0 -> 1, translateY 50 -> 0) ---------- */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stat-grid, .amen-grid, .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-auto-rows: 260px; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp { height: 420px; }
  .plan-split, .loc-split { grid-template-columns: 1fr; }
  .plan-main { height: 600px; }
  .plan-side { height: 380px; }
  .cta-inner { grid-template-columns: 1fr; padding: 40px; gap: 36px; }
  .m-wide { grid-column: span 2; }
  .m-tall { grid-row: span 1; }
}
@media (max-width: 860px) {
  :root { --pad-y: 64px; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; z-index: -1;
    flex-direction: column; gap: 4px;
    padding: 88px 24px 28px;
    background: var(--bone);
    box-shadow: 0 12px 34px rgba(30,70,50,.1);
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
  }
  .nav.open .nav-links { transform: translateY(0); }
  .nav.open { background: rgba(251,249,244,.92); backdrop-filter: blur(16px); }
  .nav.open .brand-word { color: var(--ink); }
  .nav-links a { color: var(--ink); font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav .btn-nav { display: none; }
  .hero-meta { gap: 26px; }
  .hero-meta .k { font-size: 21px; }
  .plan-figures { grid-template-columns: 1fr; }
  .loc-list { grid-template-columns: 1fr; }
  .cf-stage { height: 340px; }
  .cf-item { height: 260px; }
  .cf-item[data-pos="1"], .cf-item[data-pos="-1"] { opacity: 0; pointer-events: none; }
  .cf-item[data-pos="2"], .cf-item[data-pos="-2"] { opacity: 0; pointer-events: none; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .form { padding: 26px; }
}
@media (max-width: 560px) {
  .stat-grid, .amen-grid, .mosaic { grid-template-columns: 1fr; }
  .mosaic { grid-auto-rows: 240px; }
  .m-wide, .m-tall, .m-sq { grid-column: auto; grid-row: auto; }
  .f-top { grid-template-columns: 1fr; }
  .hl { width: 300px; }
}

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