/* ═══════════════════════════════════════════════════════════════
   CROWN ESTATES — Bridgewater, NJ
   Dark editorial luxury. Black + gold, drawn from the brand mark.
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Brand — sampled from the Crown Estates logo */
  --ink:        #0A0A0A;   /* page ground (never pure #000 — avoids OLED smear) */
  --ink-2:      #111111;   /* alternating section ground */
  --surface:    #171717;   /* raised panels */
  --surface-2:  #1F1E1B;   /* warm raised panel */

  --gold:       #C9A227;   /* primary accent — 8.2:1 on ink */
  --gold-lt:    #E8C766;   /* highlight / gradient stop */
  --gold-dk:    #8C6F14;   /* pressed / deep gradient stop */
  --gold-soft:  rgba(201, 162, 39, .16);

  --bone:       #F5F2EC;   /* display + headline type */
  --muted:      #A8A29A;   /* body copy — 7.8:1 on ink */
  --muted-dim:  #6E6A64;   /* meta, captions */

  --line:       rgba(245, 242, 236, .12);
  --line-gold:  rgba(201, 162, 39, .28);
  --danger:     #E0574B;

  /* Type */
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacious scale (density 3/10) */
  --space-2xs: 8px;
  --space-xs:  16px;
  --space-sm:  24px;
  --space-md:  40px;
  --space-lg:  64px;
  --space-xl:  96px;
  --space-2xl: 140px;

  --gutter: clamp(24px, 5vw, 88px);
  --maxw: 1560px;

  /* Motion (7/10 — standard, expressive but not theatrical) */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-io:   cubic-bezier(.65, 0, .35, 1);
  --dur-fast:  180ms;
  --dur:       320ms;
  --dur-slow:  620ms;

  --z-nav: 100;
  --z-menu: 200;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keeps in-page anchor targets clear of the fixed header. */
  scroll-padding-top: 104px;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* The hidden attribute must win over any display rule below. */
[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--gold); color: var(--ink);
  padding: 10px 18px; font-size: 12px; letter-spacing: .12em;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ── SHARED TYPE ────────────────────────────────────────────── */
.section {
  position: relative;
  padding: var(--space-2xl) var(--gutter);
}

.h-display {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.4vw, 6.2rem);
  line-height: .96;
  letter-spacing: -.015em;
  color: var(--bone);
  text-transform: uppercase;
}
.h-display em { font-style: italic; color: var(--gold); text-transform: none; }

.label-italic {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: .02em;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.eyebrow-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  line-height: 1.18;
  color: var(--bone);
  margin-bottom: var(--space-sm);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  --btn-bd: var(--line);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 14px 30px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--gold-dk), var(--gold), var(--gold-lt));
  transform: translateY(101%);
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: -1;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { border-color: transparent; color: var(--ink); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: scale(.975); }

.btn--gold {
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  background: linear-gradient(100deg, var(--gold-dk), var(--gold) 45%, var(--gold-lt));
  font-weight: 600;
}
.btn--gold::after { background: linear-gradient(100deg, var(--gold-lt), var(--gold-lt)); }
.btn--gold:hover { color: var(--ink); }

.btn--outline { --btn-bd: var(--line-gold); --btn-fg: var(--gold); }
.btn--pill { padding: 12px 26px; min-height: 44px; --btn-bd: rgba(245,242,236,.28); }
.btn--block { width: 100%; margin-top: var(--space-2xs); }

.btn__spin { display: none; width: 15px; height: 15px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy .btn__spin { display: block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-nav);
  padding: var(--space-sm) var(--gutter) 0;
  transition: background var(--dur) var(--ease-out),
              padding var(--dur) var(--ease-out),
              backdrop-filter var(--dur) var(--ease-out);
}
.nav.is-stuck {
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 14px;
}
.nav.is-stuck .nav__rule { opacity: 0; }

.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
}
.nav__brand { display: flex; align-items: center; gap: 14px; }

/* Crops the crown-and-house mark out of the full logo lockup PNG, so the
   wordmark and tagline aren't squeezed into an illegible thumbnail. */
.brand-mark {
  display: block;
  flex: 0 0 auto;
  background-image: url('../img/crown-estates-logo.png');
  background-repeat: no-repeat;
  background-color: transparent;
  /* The source PNG has a solid black field; see #markKnockout in index.html. */
  filter: url('#markKnockout');
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav__mark {
  width: 41px; height: 44px;
  background-size: 83px 103px;
  background-position: -21px -15px;
}
.nav__word {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  letter-spacing: .16em;
  color: var(--bone);
}
.nav__links { display: flex; gap: var(--space-md); }
.nav__links a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur) var(--ease-out);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 12px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: var(--space-xs); }
.nav__toggle {
  display: none;
  width: 48px; height: 48px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__toggle span {
  display: block; width: 26px; height: 1px; background: var(--bone);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.nav__rule {
  max-width: var(--maxw); margin: var(--space-sm) auto 0;
  height: 1px; background: rgba(245, 242, 236, .22);
  transition: opacity var(--dur) var(--ease-out);
}

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: rgba(10, 10, 10, .97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid; place-items: center;
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 3rem);
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--bone);
  transition: color var(--dur) var(--ease-out);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu__cta { font-style: italic; color: var(--gold) !important; margin-top: var(--space-xs); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) var(--space-md);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img,
.hero__media video { width: 100%; height: 100%; object-fit: cover; }

/* Video sits over the poster and fades in only once it can actually play,
   so a slow connection never shows a black rectangle. */
.hero__video {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}
.hero__media.has-video .hero__video { opacity: 1; }

/* Temporary build-time marker for the empty hero media slot. Sits in the
   dead space below the copy column so it never collides with content.
   Delete the element from index.html once real media is in. */
.hero__slot-note {
  position: absolute;
  left: var(--gutter); right: auto; top: 23%;
  width: max-content; max-width: 60vw;
  z-index: 1;
  margin: 0;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(201, 162, 39, .34);
  pointer-events: none;
}
.hero__slot-icon {
  width: 34px; height: 34px; flex: 0 0 auto;
  border: 1px solid rgba(201, 162, 39, .34);
  border-radius: 50%;
  position: relative;
}
.hero__slot-icon::after {
  content: '';
  position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-left: 9px solid rgba(201, 162, 39, .40);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.hero__media.has-video ~ .hero__slot-note { display: none; }

/* The stacked mobile hero has no dead space to spare — the marker is a
   build-time aid, so desktop-only is enough. */
@media (max-width: 900px) {
  .hero__slot-note { display: none; }
}

/* Mute/pause control appears only when a video is live. */
.hero__mute {
  position: absolute; right: var(--gutter); bottom: var(--space-md);
  z-index: 3;
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(10, 10, 10, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bone);
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.hero__media.has-video ~ .hero__mute { display: flex; }
.hero__mute:hover { border-color: var(--line-gold); color: var(--gold); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,10,.94) 0%, rgba(10,10,10,.30) 46%, rgba(10,10,10,.62) 100%),
    linear-gradient(to right, rgba(10,10,10,.55), transparent 55%);
}

.hero__grid {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 27%);
  align-items: end;
  gap: var(--space-md);
}

.hero__display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 11.2vw, 12.5rem);
  line-height: .84;
  letter-spacing: -.035em;
  color: var(--bone);
  margin: 0 0 -.06em;
  text-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.hero__copy {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(12px, 3vw, 46px);
}
.hero__body {
  font-size: 15px; line-height: 1.72; color: var(--muted);
  max-width: 42ch; margin-bottom: var(--space-sm);
}

.hero__scroll {
  position: relative;
  max-width: var(--maxw); margin: var(--space-md) auto 0; width: 100%;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-size: 11px; letter-spacing: .3em; color: var(--muted);
  transition: color var(--dur) var(--ease-out);
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll svg { animation: bob 2.4s var(--ease-io) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about { background: var(--ink-2); }
.about__label { max-width: var(--maxw); margin-inline: auto; }
.about__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, 34%) 1fr;
  gap: var(--space-lg);
  align-items: end;
}
.about__display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--bone);
  text-transform: uppercase;
}
.about__display em { font-style: italic; color: var(--gold); }
.about__figure { margin: 0; overflow: hidden; }
.about__figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about__copy { align-self: start; padding-top: var(--space-md); font-size: 15px; }
.about__copy .btn { margin-top: var(--space-sm); }

/* ── STATS ──────────────────────────────────────────────────── */
.stats { padding-block: var(--space-2xl); }
.stats__scatter {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: var(--space-xl);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  line-height: .86;
  color: var(--bone);
  margin: 0 0 var(--space-xs);
  letter-spacing: -.02em;
}
.stat__unit {
  font-size: .26em; font-style: italic; color: var(--gold);
  margin-left: .12em; letter-spacing: 0;
}
.stat__cap { font-size: 14px; color: var(--muted); margin: 0; }

.stat--a { grid-column: 1 / span 4; }
.stat--b { grid-column: 6 / span 3; }
.stat--c { grid-column: 10 / span 3; margin-top: calc(var(--space-lg) * -1); }
.stat--d { grid-column: 4 / span 4; }

/* ── PROCESS ────────────────────────────────────────────────── */
.process { background: var(--ink-2); }
.process__head { max-width: var(--maxw); margin: 0 auto var(--space-xl); }
.process__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg) var(--space-md);
  align-items: start;
}
.step { border-top: 1px solid var(--line-gold); padding-top: var(--space-sm); }
.step__idx {
  display: block;
  font-family: var(--font-display); font-style: italic;
  font-size: 1rem; color: var(--gold); margin-bottom: var(--space-xs);
}
.step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.15; letter-spacing: .02em;
  color: var(--bone); text-transform: uppercase;
  margin-bottom: var(--space-xs);
}
.step p { font-size: 14.5px; }
.process__figure { grid-column: 4; grid-row: 1; margin: 0; overflow: hidden; }
.process__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ── DIFFERENCE ─────────────────────────────────────────────── */
.difference { position: relative; overflow: hidden; padding-block: var(--space-2xl); }
.difference__media { position: absolute; inset: 0; z-index: -2; }
.difference__media img { width: 100%; height: 100%; object-fit: cover; }
.difference__scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, .82); }

.difference__head {
  max-width: var(--maxw); margin: 0 auto var(--space-xl);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg);
  align-items: start;
}
.difference__lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.5; color: var(--bone);
  max-width: 46ch; justify-self: end; align-self: end;
}

.difference__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value {
  background: rgba(23, 23, 23, .58);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  transition: background var(--dur) var(--ease-out);
}
.value:hover { background: rgba(31, 30, 27, .82); }
.value__idx {
  display: block; font-family: var(--font-display); font-style: italic;
  font-size: .95rem; color: var(--gold); margin-bottom: var(--space-xs);
}
.value h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  letter-spacing: .07em; color: var(--bone);
  margin-bottom: 12px;
}
.value p { font-size: 14px; max-width: 30ch; margin-inline: auto; }

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.quotes { background: var(--ink-2); }
.quotes__head {
  max-width: var(--maxw); margin: 0 auto var(--space-xl);
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--space-md);
}

/* Star row — --filled sets how many of the five are gold. */
.stars {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .18em;
  white-space: nowrap;
}
.stars::before {
  content: '\2605\2605\2605\2605\2605';
  background: linear-gradient(to right,
    var(--gold) 0, var(--gold) calc(var(--filled, 0) / 5 * 100%),
    rgba(245, 242, 236, .2) calc(var(--filled, 0) / 5 * 100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gsummary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color var(--dur) var(--ease-out);
}
.gsummary:hover { border-color: var(--line-gold); }
.gsummary__logo {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--bone);
  border-radius: 50%;
}
.gsummary__body { display: grid; gap: 3px; }
.gsummary__stars { display: flex; align-items: center; gap: 9px; }
.gsummary__stars strong {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500; color: var(--bone);
}
.gsummary__meta { font-size: 12px; letter-spacing: .04em; color: var(--muted-dim); }
.quotes__viewport { max-width: var(--maxw); margin: 0 auto; overflow: hidden; }
.quotes__track {
  display: flex;
  transition: transform var(--dur-slow) var(--ease-out);
}
.quote {
  flex: 0 0 100%;
  margin: 0;
  padding-right: var(--space-md);
}
.quote > .stars { display: block; margin-bottom: var(--space-sm); font-size: 17px; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  line-height: 1.28;
  color: var(--bone);
  max-width: 22ch;
}
.quote blockquote p::before { content: '\201C'; color: var(--gold); }
.quote blockquote p::after  { content: '\201D'; color: var(--gold); }
.quote figcaption {
  margin-top: var(--space-md);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--line-gold);
  display: flex; flex-direction: column; gap: 4px;
  max-width: 34ch;
}
.quote__name { font-size: 12px; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; }
.quote__meta { font-size: 13px; color: var(--muted-dim); }

.quotes__ctrl {
  max-width: var(--maxw); margin: var(--space-lg) auto 0;
  display: flex; align-items: center; gap: var(--space-xs);
}
.quotes__btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--muted);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.quotes__btn:hover { color: var(--gold); border-color: var(--line-gold); }
.quotes__dots { display: flex; gap: 10px; margin-left: var(--space-2xs); }
.quotes__dot {
  width: 36px; height: 44px;
  font-family: var(--font-display); font-style: italic;
  font-size: 14px; color: var(--muted-dim);
  transition: color var(--dur) var(--ease-out);
}
.quotes__dot[aria-selected="true"] { color: var(--gold); }

/* ── AREAS ──────────────────────────────────────────────────── */
.areas__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl);
  align-items: center;
}
.areas__copy p { font-size: 15px; max-width: 46ch; margin-top: var(--space-sm); }
.areas__list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px 0;
  margin: var(--space-md) 0;
  border-top: 1px solid var(--line);
}
.areas__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px; letter-spacing: .06em;
  color: var(--muted);
}
.areas__note {
  font-size: 14px; color: var(--muted-dim);
  max-width: 44ch; margin-bottom: var(--space-md);
}
.areas__figure { margin: 0; overflow: hidden; }
.areas__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { background: var(--ink-2); }
.faq__head { max-width: var(--maxw); margin: 0 auto var(--space-xl); }
.faq__list { max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-sm) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  color: var(--bone);
  transition: color var(--dur) var(--ease-out);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold); }
.faq__sign {
  position: relative; flex: 0 0 auto;
  width: 22px; height: 22px;
}
.faq__sign::before, .faq__sign::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 1px; background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__body {
  padding: 0 0 var(--space-sm);
  max-width: 68ch;
  font-size: 15px;
}
.faq__item[open] .faq__body { animation: faqIn 380ms var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── OFFER FORM ─────────────────────────────────────────────── */
.offer { padding-bottom: var(--space-2xl); }
.offer__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr minmax(0, 46%); gap: var(--space-xl);
  align-items: start;
}
.offer__display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 5.2rem);
  line-height: .98; letter-spacing: -.02em;
  color: var(--bone); text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.offer__display em { font-style: italic; color: var(--gold); }
.offer__copy p { font-size: 15px; max-width: 44ch; }

.offer__contact {
  margin: var(--space-lg) 0 0;
  display: grid; gap: var(--space-sm);
}
.offer__contact div { display: grid; gap: 4px; }
.offer__contact dt { font-size: 10.5px; letter-spacing: .24em; color: var(--muted-dim); }
.offer__contact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  color: var(--bone);
}
.offer__contact a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  transition: color var(--dur) var(--ease-out);
}
.offer__contact a:hover { color: var(--gold); }

.offer__form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 3.4vw, 48px);
  display: grid; gap: var(--space-sm);
}
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.field label {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.field label span { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--bone);
  font-family: var(--font-body); font-size: 15px; font-weight: 300;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(245,242,236,.24); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #0D0D0D;
}
.field__hint { margin: 0; font-size: 12.5px; color: var(--muted-dim); }
.field__err { margin: 0; font-size: 12.5px; color: var(--danger); min-height: 0; }
.field__err:empty { display: none; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }

/* ── SMS CONSENT ────────────────────────────────────────────── */
.consent {
  margin: 0;
  padding: var(--space-sm) 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-sm);
}
.consent__legend {
  padding: 0;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.consent__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  cursor: pointer;
}
.consent__item input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  background: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.consent__item input[type="checkbox"]:hover { border-color: var(--gold); }
.consent__item input[type="checkbox"]:checked {
  background: linear-gradient(100deg, var(--gold-dk), var(--gold) 45%, var(--gold-lt));
  border-color: transparent;
}
.consent__item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute; left: 7px; top: 3px;
  width: 5px; height: 10px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent__text {
  font-size: 13px; line-height: 1.6; color: var(--muted);
}
.consent__text a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.consent__links { margin: 0; font-size: 13px; }
.consent__links a {
  color: var(--gold);
  text-decoration: underline; text-underline-offset: 3px;
  display: inline-block; padding: 12px 2px; margin: -12px 0;
}
.consent__req { color: var(--gold); }
.consent__err {
  margin: 0;
  font-size: 13px; line-height: 1.55;
  color: var(--danger);
}
.consent__err:empty { display: none; }
.consent.is-invalid { border-top-color: var(--danger); }
.consent.is-invalid .consent__item input[type="checkbox"]:not(:checked) {
  border-color: var(--danger);
  background: rgba(224, 87, 75, .08);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.offer__fine { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted-dim); }
.offer__fine a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
/* Inline legal links sit in dense paragraphs, so give them a comfortable
   tap area without disturbing the line box. */
.offer__fine a, .foot__base a {
  display: inline-block;
  padding: 14px 2px;
  margin: -14px 0;
}
.offer__status {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid currentColor;
  background: rgba(245, 242, 236, .04);
  font-size: 14px; line-height: 1.55;
}
.offer__status:empty { display: none; }
.offer__status.is-ok { color: var(--gold); }
.offer__status.is-err { color: var(--danger); }
.offer__status:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: var(--space-xl) var(--gutter) var(--space-md);
  background: var(--ink-2);
}
.foot__top {
  max-width: var(--maxw); margin: 0 auto var(--space-xl);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-xs);
  text-align: center;
}
.foot__logo {
  width: 78px; height: 84px;
  background-size: 159px 198px;
  background-position: -41px -29px;
}
.foot__word {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: .18em; color: var(--bone);
}
.foot__tag {
  margin: 0;
  font-size: 11px; letter-spacing: .34em; color: var(--gold);
}
.foot__cols {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
}
.foot__col { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.foot__col h4 {
  font-size: 10.5px; letter-spacing: .24em; color: var(--muted-dim);
  margin-bottom: var(--space-2xs);
}
.foot__col a, .foot__col p {
  font-size: 14px; color: var(--muted); margin: 0;
  transition: color var(--dur) var(--ease-out);
}
/* Comfortable touch targets without visually loosening the column. */
.foot__col a {
  display: inline-flex; align-items: center;
  min-height: 44px;
}
.foot__col p { padding: 10px 0; }
.foot__col a:hover { color: var(--gold); }

.foot__base {
  max-width: var(--maxw); margin: var(--space-md) auto 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs);
  font-size: 12px; color: var(--muted-dim);
}
.foot__base p { margin: 0; }
.foot__legal { max-width: 62ch; }

/* ── LEGAL PAGES ────────────────────────────────────────────── */
.legal { padding-top: calc(var(--space-2xl) + 40px); background: var(--ink); }
.legal__inner { max-width: 74ch; margin: 0 auto; }
.legal__meta {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-dim);
  margin: var(--space-sm) 0 var(--space-md);
}
.legal__lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5; color: var(--bone);
  margin-bottom: var(--space-lg);
}
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  color: var(--bone);
  margin: var(--space-lg) 0 var(--space-xs);
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.75; }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-lt); }
.legal strong { color: var(--bone); font-weight: 500; }
.legal__list { margin: 0 0 1.15em; padding-left: 0; }
.legal__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.legal__list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 8px; height: 1px; background: var(--gold);
}
.legal__disclaimer {
  margin: var(--space-lg) 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted-dim);
}
.legal .btn { margin-top: var(--space-sm); }
.legal + .foot { padding-top: var(--space-lg); }
.foot__legal a { color: var(--muted); transition: color var(--dur) var(--ease-out); }
.foot__legal a:hover { color: var(--gold); }

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .process__grid { grid-template-columns: repeat(3, 1fr); }
  .process__figure { grid-column: 1 / -1; grid-row: auto; }
  .process__figure img { aspect-ratio: 21 / 9; }
  .difference__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__figure { grid-row: 2; }
  .about__copy { grid-column: 2; grid-row: 1; padding-top: 0; }
}

@media (max-width: 900px) {
  :root { --space-2xl: 96px; --space-xl: 64px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav .btn--pill { display: none; }

  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__display { order: 2; font-size: clamp(2.6rem, 15.5vw, 7rem); }
  .hero__copy { order: 1; padding-bottom: var(--space-sm); }

  .about__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .about__copy, .about__figure { grid-column: 1; grid-row: auto; }
  .about__figure img { aspect-ratio: 4 / 3; }

  .stats__scatter { grid-template-columns: 1fr 1fr; row-gap: var(--space-lg); column-gap: var(--space-md); }
  .stat--a, .stat--b, .stat--c, .stat--d { grid-column: auto; margin-top: 0; }

  .process__grid { grid-template-columns: 1fr; }
  .difference__head { grid-template-columns: 1fr; }
  .difference__lede { justify-self: start; }
  .areas__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .offer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .foot__cols { grid-template-columns: 1fr; gap: var(--space-md); }
}

@media (max-width: 560px) {
  .difference__grid { grid-template-columns: 1fr; }
  .stats__scatter { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .areas__list { grid-template-columns: repeat(2, 1fr); }
  .quote blockquote p { max-width: none; }
}

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