/* Prime HELOC — theme.css
   Warm home-equity-at-night system: deep teal dusk + amber window light.
   Naming: BEM-ish (block__element--modifier). */

:root {
  --sky-deep: #04171b;
  --sea: #0a2b2c;
  --sea-2: #0d3536;
  --sea-3: #124442;
  --sea-4: #1a5450;
  --line-warm: rgba(244, 216, 170, 0.16);
  --line-warm-strong: rgba(244, 216, 170, 0.32);
  --amber: #f2a950;
  --amber-2: #ffc987;
  --amber-deep: #d98324;
  --glow: rgba(242, 169, 80, 0.32);
  --ink: #f4ecdd;
  --ink-dim: #cbbfa8;
  --ink-faint: #9a917d;
  --r: 24px;
  --r-sm: 14px;
  --shadow-warm: 0 24px 60px -24px rgba(10, 4, 0, 0.55), 0 4px 18px -6px rgba(30, 12, 0, 0.35);
  --ease-soft: cubic-bezier(0.22, 0.8, 0.3, 1);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background:
    radial-gradient(110% 46% at 50% 0%, rgba(242, 169, 80, 0.05), transparent 62%),
    linear-gradient(180deg, var(--sea) 0%, #092a2c 38%, #082428 72%, #051b21 100%);
  background-color: var(--sea);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything — kills the flat-render look */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--amber-2); text-decoration: none; }
a:hover { color: var(--ink); }

::selection { background: var(--amber-deep); color: #fff8ec; }

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

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }

/* ---------- header ---------- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  transition: background 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}
.top--solid {
  background: rgba(6, 26, 28, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-warm);
}
.top__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}
.top__brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.top__brand:hover { color: var(--ink); }
.top__mark { width: 40px; height: 34px; flex: none; }
.top__word {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.10em;
}
.top__word span { color: var(--amber-2); }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav__link {
  color: var(--ink-dim);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--ink); }
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-warm-strong);
  border-radius: 10px;
  color: var(--ink);
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 0;
}
.nav__toggle svg { margin: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft),
    background 0.25s, color 0.25s, border-color 0.25s;
}
.btn--amber {
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  color: #2b1602;
  box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px var(--glow), 0 0 0 1px rgba(255, 201, 135, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #2b1602;
}
.btn--ghost {
  background: rgba(244, 236, 221, 0.04);
  border-color: var(--line-warm-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--amber-2);
  box-shadow: 0 0 24px -6px var(--glow);
  transform: translateY(-2px);
  color: var(--ink);
}
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-deep) 0%, #0a2f31 55%, #123f3c 78%, var(--sea) 100%);
}
/* .hero__canvas is defined once, in the HERO v2 block below.
   The .hero__cloud rules and their cloud-drift keyframes were removed with the
   cloud elements they styled — no markup references them. */

/* readability scrim behind the centered copy — lets the scene stay bright at the edges */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(52% 46% at 50% 46%, rgba(3, 14, 18, 0.6), rgba(3, 14, 18, 0.24) 58%, transparent 78%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7.5rem 0 5.5rem;
}
.hero__kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-2);
  background: rgba(242, 169, 80, 0.10);
  border: 1px solid rgba(242, 169, 80, 0.28);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.6rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__title {
  font-size: clamp(3.4rem, 7.5vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 19ch;
  margin-inline: auto;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(3, 14, 18, 0.55), 0 8px 60px rgba(3, 14, 18, 0.45);
}
.hero__title em {
  font-style: italic;
  color: var(--amber-2);
  text-shadow: 0 2px 18px rgba(3, 14, 18, 0.55), 0 0 46px rgba(242, 169, 80, 0.45);
}
.hero__sub {
  max-width: 56ch;
  margin: 1.6rem auto 0;
  color: var(--ink-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(3, 14, 18, 0.6);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.hero__fine {
  margin-top: 1.4rem;
  font-size: 0.86rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.hero__fine b { color: var(--ink-dim); font-weight: 500; }

/* ---------- shared band ---------- */

.band { position: relative; padding: 6rem 0; }
/* per-section atmosphere — alternating warm/teal light-fields so no stretch reads flat */
main > .band:nth-of-type(even) {
  background:
    radial-gradient(52% 64% at 88% 4%, rgba(242, 169, 80, 0.075), transparent 66%),
    radial-gradient(46% 70% at 4% 96%, rgba(26, 84, 80, 0.4), transparent 68%);
}
main > .band:nth-of-type(odd) {
  background:
    radial-gradient(50% 62% at 8% 2%, rgba(242, 169, 80, 0.06), transparent 64%),
    radial-gradient(48% 72% at 94% 92%, rgba(26, 84, 80, 0.38), transparent 70%);
}
.band--panel .wrap {
  background: linear-gradient(165deg, var(--sea-2), rgba(13, 53, 54, 0.35));
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-warm);
}
.band__head { max-width: 640px; margin-bottom: 3rem; }
.band__head--center { margin-inline: auto; text-align: center; }
.band__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.band__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-wrap: balance; }
.band__lede { margin-top: 1.1rem; color: var(--ink-dim); font-size: 1.08rem; }

/* ---------- HELOC explainer ---------- */

.explain { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.explain__copy p + p { margin-top: 1.1rem; }
.explain__copy p { color: var(--ink-dim); }
.explain__copy strong { color: var(--ink); font-weight: 600; }

.meter {
  background: rgba(4, 23, 27, 0.55);
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: 2rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.meter__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}
.meter__track {
  height: 22px;
  border-radius: 999px;
  background: var(--sea-3);
  border: 1px solid var(--line-warm);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber), var(--amber-2));
  box-shadow: 0 0 18px var(--glow);
  transition: width 0.2s linear;
}
.meter__read {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.meter__read output { color: var(--amber-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter__points { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.meter__points li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--ink-dim);
  font-size: 0.97rem;
}
.meter__points li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--glow);
  transform: translateY(-1px);
}
.meter__points b { color: var(--ink); font-weight: 600; }

/* ---------- products ---------- */

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.pcard {
  position: relative;
  background: linear-gradient(170deg, var(--sea-2), rgba(13, 53, 54, 0.4));
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), border-color 0.3s;
}
.pcard:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 169, 80, 0.45);
  box-shadow: 0 22px 50px -18px var(--glow), var(--shadow-warm);
}
.pcard--flag {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(150deg, #143f3c, #0d3536 55%, rgba(242, 169, 80, 0.07));
  border-color: rgba(242, 169, 80, 0.35);
}
.pcard__tag {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2b1602;
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.pcard__name { font-size: 1.28rem; }
.pcard--flag .pcard__name { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pcard__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--amber-2);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.pcard__meta span + span::before {
  content: "·";
  margin-right: 1rem;
  color: var(--ink-faint);
}
.pcard__desc { color: var(--ink-dim); font-size: 0.97rem; }
.pcard__cta { margin-top: auto; padding-top: 0.6rem; font-size: 0.92rem; font-weight: 600; }
.pcard__cta::after { content: " →"; }
.pcard__side { display: grid; gap: 0.8rem; }
.pcard__stat {
  background: rgba(4, 23, 27, 0.45);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.2rem;
  font-size: 0.93rem;
  color: var(--ink-dim);
}
.pcard__stat b { display: block; font-size: 1.25rem; color: var(--amber-2); font-family: var(--font-display); }

/* ---------- inline lucide icons ---------- */

.lci {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
  stroke-width: 2;
  color: var(--amber);
  margin-bottom: 0.7rem;
  filter: drop-shadow(0 0 10px rgba(242, 169, 80, 0.28));
}

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.steps__item {
  position: relative;
  background: rgba(4, 23, 27, 0.4);
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: 2.2rem 1.8rem 1.8rem;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), border-color 0.3s;
}
.steps__item:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 169, 80, 0.4);
  box-shadow: 0 18px 44px -18px var(--glow);
}
.steps__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--amber);
  opacity: 0.85;
  display: block;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 24px var(--glow);
}
.steps__name { font-size: 1.22rem; margin-bottom: 0.55rem; }
.steps__body { color: var(--ink-dim); font-size: 0.97rem; }

/* ---------- why ---------- */

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.why__fact {
  border-left: 2px solid var(--amber);
  padding: 0.4rem 0 0.4rem 1.3rem;
}
.why__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--amber-2);
  line-height: 1.2;
}
.why__what { color: var(--ink-dim); font-size: 0.95rem; margin-top: 0.3rem; }

/* ---------- faq ---------- */

.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq__item {
  background: linear-gradient(170deg, var(--sea-2), rgba(13, 53, 54, 0.35));
  border: 1px solid var(--line-warm);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: rgba(242, 169, 80, 0.4); }
.faq__q {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber);
  line-height: 1;
  transition: transform 0.25s var(--ease-soft);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--ink-dim); font-size: 0.99rem; }

/* ---------- cta band ---------- */

.cta {
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 115%, rgba(242, 169, 80, 0.16), transparent 70%),
    linear-gradient(180deg, var(--sea-2), #0a2f30);
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-warm);
}
.cta__title { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.cta__sub { color: var(--ink-dim); margin: 1rem auto 2rem; max-width: 52ch; }
.cta__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }

/* photo-backed CTA — dusk home behind a heavy teal scrim (AA-safe), duotone via blend */
.cta--photo {
  background:
    radial-gradient(60% 120% at 50% 115%, rgba(242, 169, 80, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(6, 26, 28, 0.88), rgba(7, 31, 33, 0.82)),
    linear-gradient(115deg, rgba(13, 53, 54, 0.9), rgba(242, 169, 80, 0.55)),
    url("img/dusk-home.webp"),
    linear-gradient(180deg, var(--sea-2), #0a2f30);
  background-blend-mode: normal, normal, color, normal, normal;
  background-size: auto, auto, auto, cover, auto;
  background-position: center, center, center, center 40%, center;
  background-repeat: no-repeat;
}

/* ---------- photo bands — dusk imagery tinted into the brand ---------- */

.photoband {
  position: relative;
  height: clamp(230px, 34vw, 430px);
  overflow: hidden;
}
.photoband--a { --edge: #092a2c; }
.photoband--b { --edge: #082428; }
.photoband__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.28) saturate(0.9) contrast(1.05) brightness(0.86);
}
/* warm dusk amber/teal duotone wash over the photo — the amber end now
   carries further left so these bands read as the same golden hour as the
   hero rather than a separate, cooler world */
.photoband::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(112deg, var(--sea-2) 0%, rgba(38, 74, 66, 0.85) 30%, rgba(184, 128, 66, 0.8) 66%, rgba(242, 169, 80, 0.9) 100%);
  mix-blend-mode: color;
}
/* edge scrims so the band melts into the page background, plus a low amber glow */
.photoband::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--edge) 0%, transparent 24% 76%, var(--edge) 100%),
    radial-gradient(70% 90% at 50% 100%, rgba(242, 169, 80, 0.12), transparent 70%);
}

/* ---------- storybook spreads — alternating photo/text pages,
              the dusk-to-funded narrative told like a picture book ---------- */

.spread {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}
.spread--flip .spread__fig { order: 2; }
.spread__fig {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-warm);
  box-shadow: var(--shadow-warm);
  aspect-ratio: 5 / 4;
}
.spread__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) saturate(0.85) contrast(1.04) brightness(0.82);
}
/* the same warm dusk duotone the photobands carried */
.spread__fig::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(112deg, var(--sea-2) 0%, rgba(18, 68, 66, 0.85) 42%, rgba(242, 169, 80, 0.72) 100%);
  mix-blend-mode: color;
}
.spread__fig::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 23, 27, 0.18), transparent 30% 66%, rgba(4, 23, 27, 0.4)),
    radial-gradient(70% 90% at 50% 100%, rgba(242, 169, 80, 0.14), transparent 70%);
}
.spread__chapter {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.spread__numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--amber);
  opacity: 0.9;
  text-shadow: 0 0 30px var(--glow);
}
.spread__facts { list-style: none; margin-top: 1.8rem; display: grid; gap: 1.1rem; }
.spread__facts li {
  border-left: 2px solid var(--amber);
  padding: 0.15rem 0 0.15rem 1.2rem;
}
.spread__facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--amber-2);
  line-height: 1.3;
}
.spread__facts span { color: var(--ink-dim); font-size: 0.96rem; }
.spread__facts--duo { grid-template-columns: 1fr 1fr; gap: 1.1rem 1.6rem; }

/* ---------- footer ---------- */

.foot {
  margin-top: 5rem;
  background:
    radial-gradient(64% 130% at 50% 0%, rgba(242, 169, 80, 0.07), transparent 58%),
    radial-gradient(42% 90% at 88% 100%, rgba(18, 68, 66, 0.55), transparent 72%),
    linear-gradient(180deg, #051d22, #030f14);
  border-top: 1px solid var(--line-warm);
  padding: 4rem 0 2.5rem;
  font-size: 0.94rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.foot__brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); margin-bottom: 0.9rem; }
.foot__tag { color: var(--ink-dim); max-width: 30ch; }
.foot__h {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.foot__list { list-style: none; display: grid; gap: 0.55rem; }
.foot__list a { color: var(--ink-dim); }
.foot__list a:hover { color: var(--amber-2); }
.foot__contact { color: var(--ink-dim); font-style: normal; display: grid; gap: 0.55rem; }
.foot__contact a { color: var(--ink-dim); }
.foot__contact a:hover { color: var(--amber-2); }
.foot__legal {
  border-top: 1px solid var(--line-warm);
  padding-top: 1.8rem;
  color: var(--ink-faint);
  font-size: 0.85rem;
  display: grid;
  gap: 1rem;
}
.foot__legal strong { color: var(--ink-dim); }

/* ---------- sticky mobile pill ---------- */

.pill {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translate(-50%, 130%);
  z-index: 50;
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  color: #2b1602;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 14px 40px -8px rgba(242, 169, 80, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease-soft);
  white-space: nowrap;
}
.pill--show { transform: translate(-50%, 0); }
.pill:hover { color: #2b1602; }

/* ---------- forms (apply / unsubscribe) ---------- */

.page-head {
  padding: 9rem 0 3rem;
  background:
    radial-gradient(70% 90% at 50% -20%, rgba(242, 169, 80, 0.17), transparent 70%),
    radial-gradient(40% 70% at 90% 100%, rgba(26, 84, 80, 0.45), transparent 70%),
    linear-gradient(180deg, var(--sky-deep), var(--sea));
  text-align: center;
}
.page-head__title { font-size: clamp(2.1rem, 5vw, 3.3rem); text-wrap: balance; }
.page-head__sub { color: var(--ink-dim); max-width: 56ch; margin: 1.1rem auto 0; }

.apply { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.apply__aside { position: sticky; top: 6.5rem; display: grid; gap: 1.1rem; }
.apply__note {
  background: rgba(4, 23, 27, 0.45);
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: 1.6rem;
}
.apply__note h2 { font-size: 1.2rem; margin-bottom: 0.9rem; }
.apply__next { list-style: none; display: grid; gap: 1rem; counter-reset: n; }
.apply__next li { display: flex; gap: 0.9rem; color: var(--ink-dim); font-size: 0.96rem; }
.apply__next li::before {
  counter-increment: n;
  content: counter(n);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(242, 169, 80, 0.14);
  border: 1px solid rgba(242, 169, 80, 0.4);
  color: var(--amber-2);
  font-weight: 600;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.apply__next b { color: var(--ink); font-weight: 600; }

.form {
  background: linear-gradient(165deg, var(--sea-2), rgba(13, 53, 54, 0.4));
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-warm);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__group { margin-bottom: 1.15rem; }
.form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form__label small { color: var(--ink-faint); font-weight: 400; }
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  background: rgba(4, 23, 27, 0.55);
  border: 1px solid var(--line-warm-strong);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f2a950' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 169, 80, 0.18);
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--ink-faint); }
.form__err {
  display: none;
  color: #ffb08a;
  font-size: 0.83rem;
  margin-top: 0.35rem;
}
.form__group--bad .form__err { display: block; }
.form__group--bad .form__input,
.form__group--bad .form__select { border-color: #e0764a; }
.form__fine { font-size: 0.83rem; color: var(--ink-faint); margin-top: 1rem; }
.form__done {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}
.form__done h2 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.form__done p { color: var(--ink-dim); }
.form__done svg { margin: 0 auto 1.2rem; }
.form--sent .form__done { display: block; }
.form--sent .form__body { display: none; }

/* honeypot — humans never see or reach this */
.hp-wrap { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* ---------- five-step application ---------- */

.app-shell { max-width: 760px; margin-inline: auto; }
.app-progress {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}
.app-progress__label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}
.app-progress__count {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber-2);
  font-variant-numeric: tabular-nums;
}
.app-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--sea-3);
  border: 1px solid var(--line-warm);
  overflow: hidden;
  margin-bottom: 2rem;
}
.app-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber), var(--amber-2));
  box-shadow: 0 0 14px var(--glow);
  transition: width 0.5s var(--ease-soft);
}
.app-err {
  display: none;
  background: rgba(224, 118, 74, 0.12);
  border: 1px solid rgba(224, 118, 74, 0.5);
  border-radius: var(--r-sm);
  color: #ffb08a;
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.4rem;
}
.app-err.is-shown { display: block; }

.app-step { display: none; border: 0; }
.app-step.is-active { display: block; }
.app-step__title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.5rem;
  color: var(--ink);
  padding: 0;
  margin-bottom: 0.4rem;
  outline: none;
}
.app-step__note { color: var(--ink-dim); font-size: 0.96rem; margin-bottom: 1.6rem; }

.field { margin-bottom: 1.15rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field-pair--3 { grid-template-columns: 2fr 1.4fr 1fr; }
.field > label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field > label small { color: var(--ink-faint); font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="date"],
.field input[type="number"],
.field select {
  width: 100%;
  background: rgba(4, 23, 27, 0.55);
  border: 1px solid var(--line-warm-strong);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
  color-scheme: dark;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f2a950' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 169, 80, 0.18);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:disabled { opacity: 0.45; }
.field__hint { color: var(--ink-faint); font-size: 0.8rem; margin-top: 0.35rem; }
.field__err { display: none; color: #ffb08a; font-size: 0.83rem; margin-top: 0.35rem; }
.field.has-error .field__err { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error .dropzone,
.field.has-error .sig-pad { border-color: #e0764a; }

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--amber); }

.seg { display: flex; gap: 0.7rem; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--line-warm-strong);
  border-radius: 999px;
  background: rgba(4, 23, 27, 0.55);
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.seg input:checked + span {
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  border-color: var(--amber);
  color: #2b1602;
  box-shadow: 0 6px 20px -8px var(--glow);
}
.seg input:focus-visible + span { outline: 2px solid var(--amber-2); outline-offset: 3px; }

.dropzone {
  border: 1.5px dashed var(--line-warm-strong);
  border-radius: var(--r-sm);
  background: rgba(4, 23, 27, 0.45);
  text-align: center;
  padding: 1.6rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.dropzone p { color: var(--ink-dim); font-size: 0.97rem; }
.dropzone p b { color: var(--amber-2); }
.dropzone small { color: var(--ink-faint); font-size: 0.8rem; }
.dropzone.is-over,
.dropzone:hover { border-color: var(--amber); background: rgba(242, 169, 80, 0.07); }
.dz-files { list-style: none; margin-top: 0.7rem; display: grid; gap: 0.45rem; }
.dz-files li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(4, 23, 27, 0.55);
  border: 1px solid var(--line-warm);
  border-radius: 10px;
  padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  font-size: 0.88rem;
  color: var(--ink);
}
.dz-files li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-files li small { color: var(--ink-faint); }
.dz-files li button {
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-warm-strong);
  border-radius: 8px;
  background: none;
  color: var(--ink-dim);
  font-size: 1rem;
  cursor: pointer;
}
.dz-files li button:hover { color: #ffb08a; border-color: #e0764a; }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin: 1.4rem 0 0.4rem;
  cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--amber); }

.sig-pad {
  border: 1px solid var(--line-warm-strong);
  border-radius: var(--r-sm);
  background: rgba(4, 23, 27, 0.6);
  position: relative;
  overflow: hidden;
}
.sig-pad::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 34px;
  border-bottom: 1px dashed var(--line-warm-strong);
  pointer-events: none;
}
.sig-pad canvas { width: 100%; height: 170px; display: block; touch-action: none; cursor: crosshair; }
.sig-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.45rem;
}
.sig-row small { color: var(--ink-faint); font-size: 0.8rem; }
.sig-clear {
  background: none;
  border: 1px solid var(--line-warm-strong);
  border-radius: 999px;
  color: var(--ink-dim);
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.sig-clear:hover { color: var(--ink); border-color: var(--amber-2); }

.review { display: grid; gap: 1.1rem; margin-bottom: 0.5rem; }
.review__sect {
  background: rgba(4, 23, 27, 0.45);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-sm);
  padding: 1.2rem 1.4rem;
}
.review__sect h3 {
  font-size: 1.05rem;
  color: var(--amber-2);
  margin-bottom: 0.7rem;
}
.review__sect dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.2rem;
  font-size: 0.92rem;
}
.review__sect dt { color: var(--ink-faint); }
.review__sect dd { color: var(--ink); margin: 0; overflow-wrap: anywhere; }

.app-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.app-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--line-warm-strong);
  border-radius: 999px;
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  min-height: 48px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.app-back:hover { color: var(--ink); border-color: var(--amber-2); }
.app-nav .btn { margin-left: auto; }
.app-nav .btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.app-done {
  display: none;
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.app-done.is-shown { display: block; }
.app-done svg { width: 64px; height: 64px; margin: 0 auto 1.4rem; color: var(--amber); filter: drop-shadow(0 0 18px var(--glow)); }
.app-done h2 { font-size: 1.7rem; margin-bottom: 0.8rem; }
.app-done p { color: var(--ink-dim); max-width: 46ch; margin-inline: auto; }

@media (max-width: 768px) {
  .field-pair, .field-pair--3 { grid-template-columns: 1fr; gap: 0; }
  .review__sect dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .review__sect dd { margin-bottom: 0.5rem; }
}

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin-inline: auto; padding: 3.5rem 0 2rem; }
.legal h2 { font-size: 1.45rem; margin: 2.4rem 0 0.8rem; }
.legal p, .legal li { color: var(--ink-dim); }
.legal ul { padding-left: 1.3rem; margin: 0.6rem 0 1rem; }
.legal p + p { margin-top: 0.9rem; }
.legal__date { color: var(--ink-faint); font-size: 0.9rem; }

/* ---------- 404 ---------- */

.lost {
  min-height: 82svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem 0 4rem;
}
.lost__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  color: var(--amber);
  text-shadow: 0 0 60px var(--glow);
  line-height: 1;
}
.lost__msg { font-size: 1.25rem; margin: 1rem 0 2rem; color: var(--ink-dim); }
.lost__row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------- reveal ---------- */

.r { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft); }
.r--in { opacity: 1; transform: none; }
.r--d1 { transition-delay: 0.08s; }
.r--d2 { transition-delay: 0.16s; }
.r--d3 { transition-delay: 0.24s; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .pgrid { grid-template-columns: 1fr 1fr; }
  .pcard--flag { grid-column: span 2; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .explain { grid-template-columns: 1fr; }
  .spread { grid-template-columns: 1fr; }
  .spread--flip .spread__fig { order: 0; }
  .spread__fig { aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  body { font-size: 1rem; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(4, 23, 27, 0.97);
    border-bottom: 1px solid var(--line-warm);
    padding: 0.5rem 1.5rem 1.5rem;
    display: none;
  }
  .nav--open { display: flex; }
  .nav__link { padding: 0.9rem 0.2rem; font-size: 1.05rem; border-bottom: 1px solid rgba(244, 216, 170, 0.08); }
  .nav .btn { margin-top: 1rem; }
  .nav__toggle { display: inline-flex; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard--flag { grid-column: span 1; grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 1.6rem; }
  .foot__grid { grid-template-columns: 1fr; gap: 2rem; }
  .spread__facts--duo { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .apply { grid-template-columns: 1fr; }
  .apply__aside { position: static; order: 2; }
  .pill { display: inline-flex; }
  .band { padding: 3.5rem 0; }
  .hero__inner { padding: 7.5rem 0 6rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .r { opacity: 1; transform: none; }
  .pill { transition: none; }
}

/* ================================================================
   HERO v2 — "golden hour"
   ----------------------------------------------------------------
   The name-bond, made literal: a photographed home at dusk with its
   windows warming on, sitting in real light. Five stacked planes —

     1  .hero__sky      CSS dusk gradient, farthest, drifts against cursor
     2  .hero__plate    the photograph, feathered on two edges, graded gold
     3  .hero__canvas   WebGL light field, mix-blend-mode:screen (adds light)
     4  .hero__veil     foreground haze, nearest plane, largest parallax
     5  .hero__scrim    legibility guarantee — always above every light layer

   The composition is deliberately left-weighted: copy sits over the deep
   end of the sky, the house blooms out to the right. Nothing bright is
   ever allowed to pass under body text.
   ================================================================ */

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;          /* keeps screen-blending inside the hero */
}

/* --- 1. dusk sky ------------------------------------------------ */
.hero__sky {
  position: absolute;
  inset: -5%;
  background:
    radial-gradient(78% 62% at 74% 74%, rgba(255, 168, 82, 0.42), transparent 66%),
    radial-gradient(56% 44% at 88% 52%, rgba(255, 124, 62, 0.26), transparent 70%),
    linear-gradient(178deg,
      #05161c 0%,
      #0a2530 34%,
      #26303a 56%,
      #6c4a35 74%,
      #b3703a 88%,
      #d98d44 100%);
}

/* --- 2. the photographed home ----------------------------------- */
.hero__plate {
  position: absolute;
  right: -7%;
  bottom: -3%;
  width: 68vw;
  min-width: 660px;
  max-width: 1180px;
  /* horizontal feather: the plate dissolves into the sky on its left edge
     rather than ending in a stock-photo rectangle */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.28) 13%, rgba(0,0,0,.85) 31%, #000 46%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.28) 13%, rgba(0,0,0,.85) 31%, #000 46%);
  /* Only the plate and the layers JS/CSS actually animate are promoted.
     .hero__sky and .hero__plateIn are never transformed, so they no longer
     hold permanent compositor layers. */
  will-change: transform;
}

.hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 1000;
  /* vertical feather: melts into the sky at the top, into the page at the foot */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.6) 11%, #000 26%, #000 78%, transparent 99%);
          mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.6) 11%, #000 26%, #000 78%, transparent 99%);
  will-change: transform;
}
.hero__photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* golden-hour grade: the source frame is a cool lavender dusk — this pulls
     it into amber and drops the exposure so type can live over it */
  filter: brightness(0.80) contrast(1.09) saturate(0.86) sepia(0.30) hue-rotate(-12deg);
}
/* warm duotone wash — bonds the photograph to the brand's amber/teal */
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: color;
  opacity: 0.66;
  background: linear-gradient(104deg,
    rgba(13, 53, 54, 0.95) 0%,
    rgba(120, 84, 46, 0.75) 44%,
    rgba(242, 169, 80, 0.95) 100%);
}
/* directional dusk light falling across the facade from the low right */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(58% 62% at 84% 66%, rgba(255, 176, 88, 0.34), transparent 68%),
    linear-gradient(100deg, rgba(4, 22, 28, 0.86) 0%, rgba(6, 30, 34, 0.34) 34%, transparent 62%);
}

/* windows warming on, one by one, then breathing at their own slow rates */
.hero__win {
  position: absolute;
  left: var(--wx);
  top: var(--wy);
  width: var(--ws);
  height: calc(var(--ws) * 0.72);
  margin: calc(var(--ws) * -0.36) 0 0 calc(var(--ws) * -0.5);
  z-index: 3;
  border-radius: 50%;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse at center,
    rgba(255, 216, 150, 0.92) 0%,
    rgba(255, 178, 88, 0.46) 34%,
    rgba(255, 156, 62, 0) 72%);
  filter: blur(9px);
  /* Base state is the LIT state, not 0. The win-on keyframes still fade each
     glow up from 0 through animation-fill-mode:both, but if animations are ever
     disabled or dropped the seven windows stay visible instead of silently
     erasing the strongest cue in the composition. */
  opacity: 0.9;
  animation:
    win-on 1.1s var(--ease-soft) var(--wd) both,
    win-breathe var(--wb) ease-in-out calc(var(--wd) + 1.1s) infinite alternate;
}
.hero__win--sm { filter: blur(6px); }
@keyframes win-on {
  from { opacity: 0; transform: scale(0.72); }
  to   { opacity: 0.9; transform: scale(1); }
}
@keyframes win-breathe {
  from { opacity: 0.72; }
  to   { opacity: 1; }
}

/* --- 3. WebGL light field --------------------------------------- */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* --- 4. foreground haze, nearest plane -------------------------- */
.hero__veil {
  position: absolute;
  inset: -10%;
  z-index: 5;
  mix-blend-mode: screen;
  opacity: 0.5;
  background:
    radial-gradient(46% 26% at 66% 88%, rgba(255, 186, 110, 0.28), transparent 72%),
    radial-gradient(60% 20% at 30% 96%, rgba(255, 160, 88, 0.16), transparent 74%);
  filter: blur(22px);
  animation: veil-drift 64s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes veil-drift {
  from { transform: translate3d(-2.2%, 0.6%, 0); }
  to   { transform: translate3d(2.6%, -1.2%, 0); }
}

/* --- 5. legibility scrim — ALWAYS the top light layer ----------- */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 6;
  background:
    linear-gradient(94deg,
      rgba(3, 17, 22, 0.95) 0%,
      rgba(3, 17, 22, 0.90) 30%,
      rgba(4, 21, 26, 0.70) 46%,
      rgba(4, 23, 28, 0.34) 62%,
      rgba(4, 23, 28, 0.08) 76%,
      transparent 88%),
    linear-gradient(180deg, rgba(4, 19, 24, 0.72) 0%, transparent 22%),
    linear-gradient(0deg, var(--sea) 0%, rgba(10, 43, 44, 0.55) 9%, transparent 24%);
}

/* the old centred radial scrim is superseded by .hero__scrim */
.hero::after { content: none; }

/* --- hero type: left-weighted editorial, no longer centred ------ */
.hero__inner {
  z-index: 7;
  text-align: left;
  max-width: 47rem;
  padding: 8rem 0 3.4rem;
  will-change: transform, opacity;
}
.hero__title {
  max-width: 15ch;
  margin-inline: 0;
  font-size: clamp(2.8rem, 5.4vw, 4.9rem);
  text-wrap: pretty;
  /* tight and dense rather than wide and soft — a wide blur would be clipped
     by the word-mask boxes, and the scrim below already does the heavy work */
  text-shadow: 0 1px 3px rgba(3, 14, 18, 0.62), 0 3px 14px rgba(3, 14, 18, 0.72);
}
.hero__title em {
  /* glow radius stays under the word-mask padding below, or it clips into a
     visible amber rectangle around the italic */
  text-shadow: 0 1px 3px rgba(3, 14, 18, 0.6), 0 0 6px rgba(242, 169, 80, 0.5);
}
.hero__sub {
  margin: 1.45rem 0 0;
  max-width: 48ch;
  text-wrap: pretty;
  color: #ded3bf;
  text-shadow: 0 1px 14px rgba(3, 14, 18, 0.8);
}
.hero__ctas { justify-content: flex-start; margin-top: 2rem; }
.hero__fine  { text-shadow: 0 1px 12px rgba(3, 14, 18, 0.85); }
/* a horizon hairline under the fine print — the dusk line, echoed in type */
.hero__fine::after {
  content: "";
  display: block;
  width: 148px;
  height: 1px;
  margin-top: 1.2rem;
  background: linear-gradient(90deg, var(--amber), rgba(242, 169, 80, 0));
}

@media (max-width: 1080px) {
  .hero__plate { width: 92vw; right: -14%; bottom: 0; min-width: 0; }
  .hero__inner { max-width: 38rem; }
}
@media (max-width: 860px) {
  /* On a phone the copy column is the whole width, so the house can no longer
     sit beside it — it goes behind, scaled up and pulled left so the lit
     facade fills the lower half of the first viewport. The name-bond has to
     land on a phone too; a scrim graded top-heavy keeps the type safe. */
  /* At 205vw / right:-52% / opacity:.72 under a scrim that stayed above 0.34 all
     the way down, the facade was crushed out entirely and the first viewport
     read as a plain dark gradient — the name-bond did not land on a phone. The
     plate is pulled back into frame and given close to full opacity; the scrim
     keeps its heavy top (where the type lives, untouched) and releases the
     bottom third, where only the house sits. */
  .hero__plate {
    width: 168vw;
    right: -38%;
    bottom: -2%;
    opacity: 0.95;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 10%, #000 26%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 10%, #000 26%);
  }
  .hero__inner { max-width: 100%; padding: 7.5rem 0 3rem; }
  .hero__title { max-width: 16ch; }
  .hero__scrim {
    background:
      linear-gradient(180deg,
        rgba(3, 17, 22, 0.93) 0%,
        rgba(3, 17, 22, 0.88) 34%,
        rgba(4, 21, 26, 0.68) 58%,
        rgba(4, 23, 28, 0.34) 80%,
        rgba(4, 23, 28, 0.16) 100%),
      linear-gradient(0deg, var(--sea) 0%, rgba(10, 43, 44, 0.5) 6%, transparent 19%);
  }
}

/* ================================================================
   MOTION LAYER
   ----------------------------------------------------------------
   Every animated start-state below is gated on .mo-on, which motion.js
   sets only after confirming prefers-reduced-motion is not in effect.
   With JS disabled or motion reduced, none of these rules apply and the
   page renders in its final, composed, fully visible state.
   ================================================================ */

/* word-mask headline reveal
   The padding/negative-margin pair is load-bearing, not decoration: an
   overflow:hidden box drawn tight around a glyph clips that glyph's soft
   text-shadow into a hard rectangle, and the hero headline is shadowed for
   contrast. Padding pushes the clip edge away from the glyph; the matching
   negative margin cancels it out again so layout is untouched. */
.mo-on .moWord {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.2em 0.18em 0.3em;
  margin: -0.2em -0.18em -0.3em;
}
.mo-on .moWordIn {
  display: inline-block;
  transform: translateY(155%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.mo-on .moIn .moWordIn { transform: none; }

/* clip-path wipe — the signature scroll moment on the dusk photobands */
.mo-on .moWipe {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mo-on .moWipe.moIn { clip-path: inset(0 0 0 0); }
.mo-on .hero__plate.moWipe { transition: clip-path 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s; }

/* fine-grain rise inside containers site.js already reveals */
.mo-on .moRise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-soft), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.mo-on .moRise.moIn { opacity: 1; transform: none; }

/* scroll progress — an amber hairline, the dusk line following you down */
.moBar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  background: rgba(244, 216, 170, 0.07);
}
.moBar i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber), var(--amber-2));
  box-shadow: 0 0 12px var(--glow);
  transition: transform 0.12s linear;
}

/* magnetic CTAs — composes with the existing :hover lift via custom props */
.mo-on .moMag        { transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0); }
.mo-on .moMag:hover  { transform: translate3d(var(--mgx, 0px), calc(var(--mgy, 0px) - 2px), 0); }

/* card tilt + pointer-tracked lamplight sheen */
.mo-on .moTilt { transform-style: preserve-3d; }
.mo-on .moTilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 201, 135, 0.11), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
}
.mo-on .moTilt:hover::after { opacity: 1; }

/* lighter touch for the stat rules — the amber edge takes the light */
.why__fact { transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft); }
.why__fact:hover {
  border-left-color: var(--amber-2);
  box-shadow: -6px 0 22px -14px var(--glow);
}

@media (prefers-reduced-motion: reduce) {
  .moBar { display: none; }
  .mo-on .moWordIn { transform: none; }
  .mo-on .moRise   { opacity: 1; transform: none; }
  .mo-on .moWipe   { clip-path: none; }
  .hero__win { animation: none; opacity: 0.9; }
  .hero__veil { animation: none; }
}

/* ---------- secure application link layer ---------- */

.secure {
  background: rgba(4, 23, 27, 0.45);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.6rem;
}
.secure__h {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.secure__mark { flex: none; }
.secure__list {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: var(--ink-dim);
  font-size: 0.86rem;
  line-height: 1.6;
}

.consent { margin-top: 1.4rem; }
.consent__check {
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--ink-faint);
}
.consent__check input { flex: none; margin-top: 0.2rem; }
.consent--bad .consent__check input { outline: 2px solid #e0764a; outline-offset: 2px; }
.consent__err {
  color: #ffb08a;
  font-size: 0.83rem;
  margin-top: 0.4rem;
}

.resume-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(242, 169, 80, 0.1);
  border: 1px solid rgba(242, 169, 80, 0.34);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.3rem;
  color: var(--amber-2);
  font-size: 0.86rem;
}
.resume-note__x {
  margin-left: auto;
  flex: none;
  background: none;
  border: 0;
  color: var(--amber-2);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}
.resume-note__x:hover { color: var(--ink); }
