/* Threshold, landing page
 *
 * Composed like a printed page: generous vertical rhythm, hanging Roman numerals,
 * one accent (champagne), one reserved warning (coral). Body type stays Inter for
 * structure; everything that asks for atmosphere is Fraunces.
 */

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

:root {
  --bg: #0C0B09;
  --bg-elev: #14120E;
  --bg-card-1: #171411;
  --bg-card-2: #0E0C0A;
  --bg-deep: #07060A;

  --cream: #ECE6DA;
  --cream-soft: #C9C0AF;
  --cream-mute: #908778;
  /* Faint is for ornament only (rules, ticks, the scroll cue). Anything that
   * carries meaning uses cream-mute or brighter, which clears AA on this bg. */
  --cream-faint: #7A7263;
  --cream-shadow: #3A352D;

  --gold: #C8A876;
  --gold-deep: #A88A5C;
  --gold-light: #DCC08A;
  --gold-bright: #ECD49E;
  --gold-soft: rgba(200, 168, 118, 0.14);
  --gold-line: rgba(200, 168, 118, 0.20);
  --gold-glow: rgba(200, 168, 118, 0.30);

  --coral: #D27866;
  --coral-soft: #E89E8C;

  --serif: 'Fraunces', 'Iowan Old Style', 'Hoefler Text', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --container-wide: 1440px;
  --pad-x: 56px;
  --gutter-y: 160px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html, body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* overflow: clip does NOT establish a scroll container, so descendant
   * position:sticky keeps working. Required for the moments stage. */
  overflow-x: clip;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(200, 168, 118, 0.22); color: var(--cream); }

/* The nav is fixed, so anchored sections need headroom or their
 * eyebrows land hidden behind the bar. */
section[id] { scroll-margin-top: 96px; }

/* ============== AMBIENT ATMOSPHERE ============== */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.018) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.38;
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(200,168,118,0.04), transparent 60%),
    radial-gradient(80% 80% at 50% 100%, rgba(200,168,118,0.025), transparent 70%);
}
.nav, .hero, .statement, .moments, .try, .honesty, .principles, .open, .install, .closer, .foot {
  position: relative;
  z-index: 1;
}

/* ============== LEFT EDGE RAIL ============== */
.rail {
  position: fixed;
  top: 0;
  left: 18px;
  bottom: 0;
  width: 1px;
  z-index: 50;
  pointer-events: none;
}
.rail__line {
  position: absolute;
  top: 80px;
  bottom: 80px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(232,225,212,0.06) 12%, rgba(232,225,212,0.06) 88%, transparent);
}
.rail__fill {
  position: absolute;
  top: 80px;
  left: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  transition: height 100ms linear;
  box-shadow: 0 0 12px rgba(200,168,118,0.35);
}
.rail__cap {
  position: absolute;
  top: 80px;
  left: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px rgba(220,192,138,0.7);
  transition: top 100ms linear;
}

/* ============== SCROLL REVEALS ============== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* Stagger only within a group. The principles arrive as a hand of cards,
 * one beat apart; everything else reveals on its own schedule. */
.principles__list .principle:nth-child(2) { transition-delay: 60ms; }
.principles__list .principle:nth-child(3) { transition-delay: 120ms; }
.principles__list .principle:nth-child(4) { transition-delay: 180ms; }
.principles__list .principle:nth-child(5) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============== NAV ============== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 44px;
  background: linear-gradient(180deg, rgba(12,11,9,0) 0%, rgba(12,11,9,0) 100%);
  transition: background 420ms var(--ease-out), border-color 420ms var(--ease-out), padding 420ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: linear-gradient(180deg, rgba(12,11,9,0.94), rgba(12,11,9,0.72));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: rgba(232,225,212,0.05);
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.nav__mark { width: 18px; height: 22px; display: block; }
.nav__word {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 60;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-mute);
  padding: 11px 16px;
  border-radius: 2px;
  transition: color 240ms ease;
}
.nav__links a:hover { color: var(--cream); }
.nav__cta {
  margin-left: 10px;
  color: var(--gold-light) !important;
  border: 1px solid rgba(200,168,118,0.30);
  transition: all 280ms var(--ease-out) !important;
}
.nav__cta:hover {
  color: #16110A !important;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 10px 24px -10px rgba(200,168,118,0.6);
}

/* Small-screen disclosure menu. Hidden on desktop, where the inline links
 * carry the navigation; a native details element keeps it dependency-free. */
.nav__menu { display: none; position: relative; }
.nav__menu summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-mute);
  padding: 11px 14px;
  border-radius: 2px;
  transition: color 240ms ease;
}
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary:hover,
.nav__menu[open] summary { color: var(--cream); }
.nav__menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  min-width: 210px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  background: rgba(12,11,9,0.96);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(232,225,212,0.08);
  border-radius: 3px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.nav__menu-panel a { display: block; padding: 13px 16px; }

/* ============== CTAS (shared) ============== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 17px 32px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 340ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.cta--primary {
  background: var(--gold);
  color: #16110A;
  border-color: var(--gold);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 22px 44px -18px rgba(200,168,118,0.55);
}
.cta--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.32) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 900ms var(--ease-out);
}
.cta--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1.5px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 28px 56px -18px rgba(200,168,118,0.65);
}
.cta--primary:hover::before { transform: translateX(120%); }
.cta--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(232,225,212,0.16);
}
.cta--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(200,168,118,0.04);
}
.cta__arrow {
  font-size: 14px;
  transition: transform 280ms var(--ease-out);
  display: inline-block;
}
.cta:hover .cta__arrow { transform: translateX(4px); }

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px var(--pad-x) 120px;
  overflow: hidden;
}
.hero__copy { padding-bottom: 6vh; }

.hero__stage {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1340px, 96vw);
  height: 92vh;
  max-height: 920px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.hero__arch {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 60px 100px rgba(0,0,0,0.55));
  opacity: 0;
  animation: hero-arch-in 900ms 100ms var(--ease-out) forwards;
}
@keyframes hero-arch-in { to { opacity: 1; } }

/* The arch body, a deliberate stroke draw held to ~2.2s so the scene
 * settles before the visitor's hand reaches the wheel.
 * Verticals 2×260=520; half-ellipse perimeter ≈ π√((rx²+ry²)/2)
 * with rx=470 ry=320 → ≈ 1263. Total ≈ 1785. Easing makes the right
 * side feel like a confident descent. */
.hero__arch .hero__arch-body {
  stroke-dasharray: 1830;
  stroke-dashoffset: 1830;
  animation: hero-arch-draw 2200ms 300ms cubic-bezier(0.5, 0, 0.2, 1) forwards;
}
@keyframes hero-arch-draw { to { stroke-dashoffset: 0; } }

/* Floor sweep, a hair-line on the floor that draws outward from the arch
 * base, both directions, after the arch settles. Establishes a horizon. */
.hero__floor-sweep {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7vh;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(200,168,118,0) 0%,
    rgba(200,168,118,0.55) 28%,
    rgba(220,192,138,0.85) 50%,
    rgba(200,168,118,0.55) 72%,
    rgba(200,168,118,0) 100%);
  transform: scaleX(0);
  transform-origin: center;
  animation: hero-floor-sweep 1400ms 2000ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
  z-index: 1;
}
@keyframes hero-floor-sweep { to { transform: scaleX(1); } }

/* Cast shadow + reflection fade in once the arch has settled. */
.hero__arch-castshadow {
  opacity: 0;
  animation: arch-ground 1000ms 1900ms ease-out forwards;
}
.hero__arch-reflection {
  opacity: 0;
  animation: arch-ground 1200ms 2100ms ease-out forwards;
}
@keyframes arch-ground { to { opacity: 1; } }

.hero__copy {
  position: relative;
  z-index: 3;
  max-width: 1020px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-up 900ms 300ms var(--ease-out) forwards;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  /* Scale by the smaller of width or height so the headline always
   * fits inside the arch interior, even on shorter landscape viewports. */
  font-size: clamp(48px, min(7.2vw, 11.5vh), 116px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--cream);
  font-variation-settings: "opsz" 144;
  margin-bottom: 44px;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 1000ms var(--ease-out) forwards;
}
.hero__line:nth-child(1) { animation-delay: 480ms; }
.hero__line:nth-child(2) { animation-delay: 620ms; }
.hero__line:nth-child(3) { animation-delay: 760ms; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__lede {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.65;
  color: var(--cream-soft);
  max-width: 56ch;
  margin: 0 auto 48px;
  font-variation-settings: "opsz" 36;
  opacity: 0;
  animation: fade-up 1000ms 920ms var(--ease-out) forwards;
  /* Same voice as the lower-section body copy (.scrollyt__body / .honesty__body):
     serif, weight 300, cream-soft. A tight shadow keeps the thin strokes legible
     where the gold arch passes behind them. The body copy below sits on plain
     dark and needs none. */
  text-shadow: 0 1px 4px rgba(7, 6, 5, 0.78);
}
/* Keep the closing question, "did you do what you came to do?", as the one
   italic, champagne beat against the now-upright body. */
.hero__lede em { color: var(--gold-light); font-style: italic; }

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 1000ms 1080ms var(--ease-out) forwards;
}

.hero__sig {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  list-style: none;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-mute);
  opacity: 0;
  animation: fade-up 1000ms 1240ms var(--ease-out) forwards;
}
.hero__sig li { position: relative; }
.hero__sig li + li::before {
  content: "·";
  position: absolute;
  left: -19px;
  color: var(--gold);
  opacity: 0.7;
}

.hero__scrollcue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-faint);
  z-index: 3;
  opacity: 0;
  animation: fade-up 1000ms 1500ms var(--ease-out) forwards;
}
.hero__scrollcue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scrollcue-line::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--gold-light));
  animation: scroll-cue 2400ms var(--ease-in-out) infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(0); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(80px); opacity: 0; }
}

/* ============== STATEMENT ============== */
.statement {
  padding: 180px var(--pad-x);
  border-top: 1px solid rgba(232,225,212,0.04);
  border-bottom: 1px solid rgba(232,225,212,0.04);
  background:
    radial-gradient(900px 600px at 50% 20%, rgba(200,168,118,0.05), transparent 70%);
}
.statement__inner {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
.statement__line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.014em;
  color: var(--cream);
  font-variation-settings: "opsz" 96;
}
.statement__line em {
  font-style: italic;
  color: var(--gold-light);
}
.statement__mark {
  margin: 64px auto 0;
  width: 220px;
  opacity: 0.85;
}

/* ============== SECTION HEAD ============== */
.section-head {
  max-width: var(--container);
  margin: 0 auto 96px;
  padding: 0 var(--pad-x);
}
.section-head--narrow { max-width: 900px; }
.section-head__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  color: var(--cream);
  font-variation-settings: "opsz" 144;
  margin-bottom: 28px;
}
.section-head__title em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}
/* Upright weight 300 is the body voice below the fold, matching .hero__lede
 * (see the note there). Italic is held in reserve for the asides, the pull
 * quote, and the recurring question, so it still means something. */
.section-head__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--cream-mute);
  max-width: 60ch;
  font-variation-settings: "opsz" 36;
}

/* ============== THE THREE MOMENTS, SCROLLYTELLING ============== */
.moments {
  padding: var(--gutter-y) 0 calc(var(--gutter-y) - 40px);
}

.scrollyt {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 80px;
  align-items: start;
}

.scrollyt__copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.scrollyt__panel {
  min-height: 90vh;
  padding: 14vh 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(232,225,212,0.05);
}
.scrollyt__panel:first-child { border-top: none; padding-top: 4vh; }

.scrollyt__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}
.scrollyt__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  color: var(--gold);
  font-variation-settings: "opsz" 96;
}
.scrollyt__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.scrollyt__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--cream);
  font-variation-settings: "opsz" 120;
  margin-bottom: 24px;
}
.scrollyt__title em { font-style: italic; color: var(--gold-light); }
.scrollyt__body {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
  color: var(--cream-soft);
  margin-bottom: 24px;
  max-width: 50ch;
  font-variation-settings: "opsz" 36;
}
.scrollyt__body em { color: var(--cream); font-style: italic; }
.scrollyt__aside {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-mute);
  max-width: 46ch;
  padding-left: 20px;
  border-left: 1px solid var(--gold-line);
  font-variation-settings: "opsz" 36;
}
.scrollyt__aside em { color: var(--cream-soft); font-style: italic; font-weight: 400; }

.scrollyt__stage {
  position: relative;
  align-self: stretch;
}
.scrollyt__sticky {
  position: sticky;
  top: 12vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* The device (browser frame mock) */
.device {
  width: 100%;
  max-width: 540px;
  background: var(--bg);
  border: 1px solid rgba(232,225,212,0.08);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 80px 140px -50px rgba(0,0,0,0.7),
    0 30px 60px -30px rgba(0,0,0,0.6),
    0 0 0 1px rgba(200,168,118,0.04);
  position: relative;
}
.device::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  z-index: 5;
}

.device__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #1a1612, #14110D);
  border-bottom: 1px solid rgba(232,225,212,0.05);
  position: relative;
  z-index: 2;
}
.device__chrome > span {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(232,225,212,0.12);
}
.device__url {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--cream-shadow);
  letter-spacing: 0.04em;
  transition: color 400ms ease;
}

/* Scenes are stacked inside .scene-stack and cross-faded. The stack height
 * comes from the tallest scene (via grid-area trick), so the device frame
 * stays steady through every transition. */
.scene-stack {
  position: relative;
  display: grid;
  grid-template-areas: "stack";
  min-height: 420px;
}
.scene {
  grid-area: stack;
  padding: 36px 32px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
  transform: translateY(10px);
  position: relative;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}
.scene--reflect { text-align: center; }
.scene--inhabit { padding: 22px 22px 22px; }

.scene__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 12px;
  color: var(--cream-mute);
  margin-bottom: 22px;
  font-variation-settings: "opsz" 24;
  letter-spacing: 0.06em;
}
.scene__brand--center { justify-content: center; width: 100%; display: flex; }

.scene__eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.scene__eyebrow--center { text-align: center; }

.scene__heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.008em;
  color: var(--cream);
  margin-bottom: 22px;
  font-variation-settings: "opsz" 60;
}
.scene__heading em { font-style: italic; color: var(--gold-light); }
.scene__heading--center { text-align: center; max-width: 22ch; margin-left: auto; margin-right: auto; }

.scene__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mock__field {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--cream);
  border-bottom: 1px solid rgba(200,168,118,0.28);
  padding-bottom: 10px;
  margin-bottom: 22px;
  min-height: 26px;
  font-variation-settings: "opsz" 24;
  letter-spacing: -0.003em;
}
.mock__cursor {
  display: inline-block;
  width: 1.3px;
  height: 16px;
  background: var(--gold-light);
  vertical-align: middle;
  margin-left: 1px;
  animation: mock-cursor-blink 900ms steps(2) infinite;
}
@keyframes mock-cursor-blink { 50% { opacity: 0; } }

.mock__pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.mock__pill {
  background: transparent;
  border: 1px solid rgba(232,225,212,0.10);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--cream-mute);
  letter-spacing: 0.04em;
  transition: all 240ms ease;
}
.mock__pill--active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--cream);
}

.mock__wait { display: inline-flex; align-items: center; gap: 10px; }
.mock__wait-ring {
  --p: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(200,168,118,0.16) 0);
  mask: radial-gradient(circle, transparent 5px, #000 6px);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px);
  transition: background 600ms linear;
}
.mock__wait-text {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--cream-mute);
}

.mock__cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 11px 20px;
  border: 1px solid rgba(200,168,118,0.32);
  border-radius: 2px;
  color: var(--cream-mute);
  transition: all 280ms ease;
}
.mock__cta.is-ready {
  background: var(--gold);
  border-color: var(--gold);
  color: #16110A;
  box-shadow: 0 14px 28px -12px rgba(200,168,118,0.55);
}

.mock__faux-content { padding: 18px 10px 12px; }
.mock__faux-thumb {
  width: 100%;
  height: 110px;
  background:
    linear-gradient(135deg, rgba(200,168,118,0.08), rgba(232,225,212,0.04)),
    linear-gradient(180deg, rgba(232,225,212,0.08), rgba(232,225,212,0.02));
  border-radius: 3px;
  margin-bottom: 14px;
  position: relative;
}
.mock__faux-thumb::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232,225,212,0.06);
}
.mock__faux-row {
  height: 11px;
  background: linear-gradient(90deg, rgba(232,225,212,0.08), rgba(232,225,212,0.02));
  border-radius: 2px;
  margin-bottom: 9px;
}
.mock__faux-row--short { width: 56%; }
.mock__faux-row--med { width: 78%; }
.mock__faux-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.mock__faux-grid > div {
  height: 56px;
  background: linear-gradient(180deg, rgba(232,225,212,0.05), rgba(232,225,212,0.02));
  border-radius: 3px;
}

.mock__badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 9px;
  background: rgba(12,11,9,0.88);
  border: 1px solid rgba(200,168,118,0.22);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 86%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.mock__badge-ring {
  --p: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(200,168,118,0.16) 0);
  mask: radial-gradient(circle, transparent 5px, #000 6px);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px);
  flex-shrink: 0;
  transition: background 800ms linear;
}
.mock__badge-intent {
  font-family: var(--serif);
  font-size: 11.5px;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  font-variation-settings: "opsz" 24;
}
.mock__badge-time {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.mock__badge-end {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-shadow);
  padding-left: 6px;
}

.mock__intent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--cream-soft);
  margin-bottom: 22px;
  font-variation-settings: "opsz" 24;
}
.mock__answers { display: flex; justify-content: center; gap: 8px; }
.mock__answer {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(232,225,212,0.12);
  border-radius: 999px;
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-mute);
  cursor: pointer;
  transition: all 260ms ease;
}
.mock__answer:hover { border-color: var(--gold); color: var(--cream); }
.mock__answer.is-cued {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-light);
}

.device__caption {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cream-mute);
  max-width: 540px;
  width: 100%;
}
.device__caption-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  font-variation-settings: "opsz" 36;
}
.device__caption-rule {
  width: 20px;
  height: 1px;
  background: var(--gold-line);
}
.device__caption-body em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream-soft);
  font-variation-settings: "opsz" 24;
}

/* ============== TRY ============== */
.try {
  padding: var(--gutter-y) var(--pad-x);
  text-align: center;
}
.try__inner { max-width: 760px; margin: 0 auto; }
.try__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.try__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--cream);
  font-variation-settings: "opsz" 144;
  margin-bottom: 24px;
}
.try__title em { font-style: italic; color: var(--gold-light); }
.try__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cream-mute);
  margin: 0 auto 36px;
  max-width: 56ch;
  font-variation-settings: "opsz" 36;
}
.try__small {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--cream-mute);
}

/* ============== HONESTY, CENTERPIECE ============== */
.honesty {
  padding: var(--gutter-y) var(--pad-x) calc(var(--gutter-y) + 20px);
  background:
    radial-gradient(900px 700px at 50% 30%, rgba(200,168,118,0.05), transparent 70%),
    linear-gradient(180deg, transparent, var(--bg-deep) 60%, transparent);
  border-top: 1px solid rgba(232,225,212,0.04);
  border-bottom: 1px solid rgba(232,225,212,0.04);
}

.honesty__head {
  max-width: 880px;
  margin: 0 auto 72px;
  text-align: center;
}
.honesty__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  color: var(--cream);
  font-variation-settings: "opsz" 144;
  margin-bottom: 28px;
}
.honesty__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.45;
  color: var(--cream-soft);
  max-width: 52ch;
  margin: 0 auto;
  font-variation-settings: "opsz" 60;
}

/* The section opens on the numeral itself, so the centerpiece carries a
 * tighter bottom margin and the head follows it. */
.honesty__centerpiece {
  position: relative;
  max-width: 900px;
  margin: 0 auto 88px;
  text-align: center;
  padding: 56px 0;
}
.honesty__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 720px;
  max-width: 80vw;
  max-height: 80vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200,168,118,0.18), rgba(200,168,118,0.08) 30%, transparent 60%);
  border-radius: 50%;
  animation: honesty-pulse 6s var(--ease-in-out) infinite;
  z-index: 0;
  filter: blur(40px);
  pointer-events: none;
}
@keyframes honesty-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.04); }
}

.honesty__numeral {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(140px, 22vw, 320px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 144;
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 80px rgba(200,168,118,0.12);
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.honesty__numeral-slash {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.18em;
  letter-spacing: 0.01em;
  color: var(--cream-mute);
  background: none;
  -webkit-text-fill-color: var(--cream-mute);
  margin-left: 0.18em;
  align-self: flex-end;
  padding-bottom: 0.65em;
  font-variation-settings: "opsz" 36;
  opacity: 0.7;
}
.honesty__numeral-rule {
  position: relative;
  z-index: 1;
  margin: 36px auto 24px;
  width: 320px;
  max-width: 80%;
}
.honesty__caption {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  color: var(--gold-light);
  font-variation-settings: "opsz" 36;
}

.honesty__essay {
  max-width: 720px;
  margin: 0 auto 72px;
}
.honesty__body {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--cream-mute);
  margin-bottom: 22px;
  font-variation-settings: "opsz" 24;
}
.honesty__body em { font-style: italic; color: var(--cream-soft); }

.honesty__pull {
  position: relative;
  margin: 48px 0 0;
  padding: 28px 32px 28px 64px;
  border-left: 2px solid rgba(200,168,118,0.4);
  background: linear-gradient(90deg, rgba(200,168,118,0.05), transparent 70%);
}
.honesty__pull-mark {
  position: absolute;
  top: 6px;
  left: 20px;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
  font-variation-settings: "opsz" 144;
}
.honesty__pull p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--cream);
  font-variation-settings: "opsz" 60;
}
.honesty__pull em { color: var(--gold-light); }

.honesty__stats {
  max-width: var(--container);
  margin: 0 auto;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(232,225,212,0.06);
  border-bottom: 1px solid rgba(232,225,212,0.06);
}
.hstat {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 36px 32px;
  border-right: 1px solid rgba(232,225,212,0.06);
}
.hstat:last-child { border-right: none; }
.hstat__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  color: var(--gold);
  font-variation-settings: "opsz" 96;
}
.hstat__body { min-width: 0; }
.hstat__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  color: var(--cream);
  font-variation-settings: "opsz" 96;
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.hstat__value em {
  font-size: 16px;
  font-style: italic;
  color: var(--cream-mute);
  font-weight: 300;
}
.hstat__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-bottom: 14px;
}
.hstat__bar {
  height: 2px;
  background: rgba(232,225,212,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.hstat__bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  border-radius: 999px;
}
.hstat__dots { display: flex; gap: 5px; }
.hstat__dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(232,225,212,0.08);
}
.hstat__dots span.held { background: var(--gold); }
.hstat__dots span.today {
  background: transparent;
  border: 1px solid var(--gold-light);
}

/* ============== PRINCIPLES ============== */
.principles {
  padding: var(--gutter-y) 0;
  background:
    radial-gradient(800px 600px at 50% 0%, rgba(200,168,118,0.04), transparent 70%);
}

.principles__list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  list-style: none;
}

.principle {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 36px;
  align-items: baseline;
  padding: 44px 0;
  border-top: 1px solid rgba(232,225,212,0.05);
  transition: background 400ms ease;
}
.principle:last-child {
  border-bottom: 1px solid rgba(232,225,212,0.05);
}
.principle:hover {
  background: linear-gradient(90deg, rgba(200,168,118,0.03), transparent 40%);
}
.principle__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--gold);
  font-variation-settings: "opsz" 144;
}
.principle__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.016em;
  color: var(--cream);
  font-variation-settings: "opsz" 96;
  margin-bottom: 12px;
}
.principle__copy {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream-mute);
  max-width: 56ch;
  font-variation-settings: "opsz" 36;
}

/* ============== IN THE OPEN ============== */
.open {
  padding: var(--gutter-y) var(--pad-x);
  background:
    linear-gradient(180deg, transparent, rgba(200,168,118,0.025), transparent);
}
.open__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.open__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.open__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.024em;
  color: var(--cream);
  font-variation-settings: "opsz" 144;
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
}
.open__title em { font-style: italic; color: var(--gold-light); }
.open__title > span { display: inline-block; }
.open__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.65;
  color: var(--cream-mute);
  margin: 0 auto 60px;
  max-width: 58ch;
  font-variation-settings: "opsz" 36;
}
/* The lede's folder link is the same handover as install step 1. */
.open__lede a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(200,168,118,0.35);
  transition: text-decoration-color 240ms ease;
}
.open__lede a:hover { text-decoration-color: var(--gold); }
.open__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}
.open__card {
  padding: 32px 28px 28px;
  border: 1px solid rgba(232,225,212,0.06);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--bg-card-1), var(--bg-card-2));
  position: relative;
  transition: border-color 320ms ease, transform 320ms ease;
}
.open__card:hover { border-color: rgba(200,168,118,0.18); transform: translateY(-2px); }
.open__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.open__card-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1;
  font-variation-settings: "opsz" 60;
}
.open__card h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: -0.012em;
  color: var(--cream);
  margin-bottom: 10px;
  font-variation-settings: "opsz" 36;
}
.open__card p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cream-mute);
  font-variation-settings: "opsz" 24;
}
.open__card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--gold-light);
  background: rgba(200,168,118,0.06);
  padding: 1px 6px;
  border-radius: 2px;
  font-style: normal;
}

/* ============== INSTALL ============== */
.install { padding: var(--gutter-y) 0; }

.install__steps {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.install__step {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid rgba(232,225,212,0.05);
}
.install__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  color: var(--gold);
  font-variation-settings: "opsz" 120;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.install__step h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -0.012em;
  color: var(--cream);
  margin-bottom: 8px;
  font-variation-settings: "opsz" 60;
}
/* Install is the template break that goes fully plain: no italic anywhere,
 * emphasis carried by color alone. Instructions should read like instructions. */
.install__step p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--cream-mute);
  font-variation-settings: "opsz" 24;
}
.install__step code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  color: var(--gold-light);
  background: rgba(200,168,118,0.07);
  padding: 1px 6px;
  border-radius: 2px;
  font-style: normal;
}
.install__step em { color: var(--cream-soft); font-style: normal; }

/* The download is the step's action, so it sits inside step 1 with the
 * arrow pointing where the file goes. */
.install__dl { margin: 6px 0 16px; }
.install__dl .cta__arrow { font-size: 13px; }
.install__dl:hover .cta__arrow { transform: translateY(3px); }

.install__ctas {
  max-width: 860px;
  margin: 44px auto 0;
  padding: 0 var(--pad-x);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.install__note {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 0 var(--pad-x);
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--cream-mute);
  font-variation-settings: "opsz" 24;
  line-height: 1.6;
}
.install__note em { color: var(--cream-soft); font-style: normal; }

/* ============== CLOSER ============== */
.closer {
  padding: 160px var(--pad-x);
  text-align: center;
  background:
    radial-gradient(700px 500px at 50% 50%, rgba(200,168,118,0.08), transparent 70%);
  border-top: 1px solid rgba(232,225,212,0.04);
}
.closer__inner { max-width: 800px; margin: 0 auto; }
.closer__mark { margin: 0 auto 44px; width: 220px; }
.closer__line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.22;
  letter-spacing: -0.014em;
  color: var(--cream);
  margin-bottom: 28px;
  font-variation-settings: "opsz" 96;
}
.closer__line em {
  color: var(--gold-light);
  font-style: italic;
}
.closer__sig {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-variation-settings: "opsz" 36;
  text-transform: uppercase;
}

/* ============== FOOTER ============== */
.foot {
  padding: 56px var(--pad-x);
  border-top: 1px solid rgba(232,225,212,0.04);
}
.foot__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 36;
  color: var(--cream);
}
.foot__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot__nav a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-mute);
  transition: color 200ms ease;
}
.foot__nav a:hover { color: var(--gold-light); }
.foot__sig {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--cream-mute);
  font-variation-settings: "opsz" 24;
}
.foot__sig em { color: var(--cream-soft); }

/* ============== LIVE DEMO OVERLAY ============== */
/* Always display:flex; open state is gated on opacity and visibility, because
 * a transition cannot run out of display:none. The delayed visibility flip on
 * close is what lets the fade-out actually render. */
.demo {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(12,11,9,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms ease, visibility 0s 400ms;
}
.demo.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 400ms ease;
}
.demo__card {
  width: 100%;
  max-width: 600px;
  padding: 64px 64px 52px;
  background: linear-gradient(180deg, var(--bg-card-1), var(--bg-card-2));
  border: 1px solid rgba(232,225,212,0.06);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 80px 140px -40px rgba(0,0,0,0.65),
    0 30px 60px -20px rgba(0,0,0,0.5);
  position: relative;
  /* Each stage swap builds a fresh card, so this reads as a soft dissolve
   * between gate, inhabit, and reflect. */
  animation: demo-card-in 420ms var(--ease-out);
}
@keyframes demo-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  border-radius: 3px 3px 0 0;
}
.demo__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--cream-mute);
  font-variation-settings: "opsz" 36;
}
.demo__eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.demo__heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--cream);
  margin-bottom: 18px;
  font-variation-settings: "opsz" 96;
}
.demo__heading em { font-style: italic; color: var(--gold-light); }
.demo__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream-soft);
  margin-bottom: 36px;
  max-width: 44ch;
  font-variation-settings: "opsz" 36;
}
.demo__field {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(200,168,118,0.28);
  outline: none;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.4;
  padding: 10px 0 16px;
  resize: none;
  font-variation-settings: "opsz" 36;
}
.demo__field::placeholder { color: var(--cream-mute); font-style: italic; }
.demo__field:focus { border-bottom-color: var(--gold); }
.demo__label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin: 32px 0 14px;
}
.demo__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.demo__pill {
  background: transparent;
  border: 1px solid rgba(232,225,212,0.14);
  color: var(--cream-mute);
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 240ms ease;
}
.demo__pill.is-active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--cream);
}
.demo__pill:hover { border-color: rgba(200,168,118,0.5); color: var(--cream); }
.demo__wait {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.demo__wait-ring {
  --p: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(200,168,118,0.18) 0);
  mask: radial-gradient(circle, transparent 7px, #000 8px);
  -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px);
  transition: background 700ms linear;
}
.demo__cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}
.demo__cta {
  display: inline-flex;
  align-items: center;
  padding: 15px 32px;
  background: transparent;
  border: 1px solid rgba(200,168,118,0.4);
  color: var(--cream-mute);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: not-allowed;
  border-radius: 2px;
  transition: all 350ms ease;
}
.demo__cta.is-ready {
  background: var(--gold);
  border-color: var(--gold);
  color: #16110A;
  cursor: pointer;
}
.demo__close {
  background: transparent;
  border: none;
  color: var(--cream-mute);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(168,159,144,0.22);
  padding: 4px 0;
}
.demo__close:hover { color: var(--cream); text-decoration-color: var(--gold); }
.demo__reflect-answers { display: flex; gap: 12px; justify-content: center; }
.demo__reflect-pill {
  flex: 0 1 110px;
  background: transparent;
  border: 1px solid rgba(232,225,212,0.14);
  color: var(--cream-mute);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 16px 0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 280ms ease;
}
.demo__reflect-pill:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* The demo's inhabit beat borrows the scrollytelling faux content and corner
 * badge, so the middle moment costs no new visual language. The extra bottom
 * padding keeps the absolute-positioned badge off the faux rows. */
.demo__card--inhabit { padding: 40px 40px 96px; }
.demo__inhabit-note {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--cream-mute);
  margin-bottom: 18px;
  font-variation-settings: "opsz" 36;
}
/* The badge's End control is a real button here, unlike the scrollytelling
 * mock, because the demo lets you leave the beat early. */
.demo__card .mock__badge-end {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-mute);
  padding: 4px 2px 4px 8px;
  transition: color 200ms ease;
}
.demo__card .mock__badge-end:hover { color: var(--cream); }

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  :root { --pad-x: 40px; --gutter-y: 120px; }
}

@media (max-width: 980px) {
  :root { --pad-x: 32px; --gutter-y: 96px; }

  .hero { padding: 100px var(--pad-x) 80px; min-height: auto; }
  .hero__title { font-size: clamp(48px, 11vw, 88px); }
  .hero__stage { height: 56vh; }
  .hero__scrollcue { display: none; }

  /* Single column, but the device stays pinned instead of scrolling away
   * from its copy. display:contents dissolves the stage box so the sticky
   * wrapper becomes a flex item whose containing block is the whole
   * .scrollyt, which spans all three panels; grid areas would cage it. */
  .scrollyt {
    display: flex;
    flex-direction: column;
    /* The desktop grid gap would push the first panel a full 80px below
     * the pinned device; the panels' own padding is spacing enough. */
    gap: 0;
  }
  .scrollyt__stage { display: contents; }
  .scrollyt__sticky {
    position: sticky;
    top: 60px;
    order: -1;
    z-index: 4;
    width: 100%;
    gap: 12px;
    padding-bottom: 14px;
    background: var(--bg);
    border-bottom: 1px solid rgba(232,225,212,0.05);
  }
  .device { max-width: 420px; }
  .scene-stack { min-height: 320px; }
  .scrollyt__panel {
    min-height: auto;
    padding: 48px 0;
  }

  .honesty__stats { grid-template-columns: 1fr; }
  .hstat { border-right: none; border-bottom: 1px solid rgba(232,225,212,0.06); }
  .hstat:last-child { border-bottom: none; }

  .open__grid { grid-template-columns: 1fr; }
  .rail { display: none; }
}

@media (max-width: 640px) {
  /* Cap the hero copy to the viewport. The base 16ch title cap exceeds a phone's
     width at the 48px floor size, so without this it overflows and the hero's
     overflow:hidden clips the headline mid-word. */
  .hero__copy { max-width: 100%; }
  .hero__title { font-size: clamp(36px, 10vw, 58px); max-width: 100%; overflow-wrap: break-word; }
  .hero__lede { max-width: 100%; overflow-wrap: break-word; }

  .nav { padding: 14px 14px; }
  /* Direct children only: the disclosure panel's links stay visible. */
  .nav__links > a:not(.nav__cta) { display: none; }
  .nav__menu { display: block; }
  /* Menu plus CTA share a narrow bar; tighter tracking and padding keep
   * the Install pill on one line. */
  .nav__menu summary { padding: 11px 8px; letter-spacing: 0.16em; }
  .nav__cta {
    white-space: nowrap;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: 4px;
    letter-spacing: 0.16em;
  }
  .principle { grid-template-columns: 56px 1fr; gap: 18px; padding: 32px 0; }
  .principle__num { font-size: 44px; }
  .install__step { grid-template-columns: 48px 1fr; gap: 18px; }
  .install__num { font-size: 36px; }
  .demo__card { padding: 44px 28px 36px; }
  .demo__card--inhabit { padding: 28px 20px 92px; }
  .demo__heading { font-size: 30px; }
  .demo__field { font-size: 20px; }

  .device { max-width: 100%; }
  .scene { padding: 24px 22px 24px; min-height: 300px; }
  .scene-stack { min-height: 300px; }
}

/* ============================================================
   THE CARD, showcase of the on-device, shareable Honesty card
   ============================================================ */
.cardshow {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--gutter-y) var(--pad-x);
  text-align: center;
}
.cardshow__head { max-width: 680px; margin: 0 auto; }
.cardshow__eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.cardshow__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  color: var(--cream);
  margin: 0 0 22px;
  font-variation-settings: "opsz" 40;
}
.cardshow__title em { font-style: italic; color: var(--gold-light); }
.cardshow__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: var(--cream-soft);
  max-width: 600px;
  margin: 0 auto;
}

.cardshow__stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 66px;
}
.cardshow__stage::before {
  content: "";
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  height: 120px;
  background: radial-gradient(60% 80% at 50% 0, rgba(200, 168, 118, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

/* The card, a faithful, responsive mock of the exported PNG. */
.hcard {
  position: relative;
  width: min(384px, 86vw);
  margin: 0;
  padding: 36px 34px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background:
    radial-gradient(120% 92% at 50% 12%, rgba(32, 25, 16, 0.62), transparent 60%),
    linear-gradient(180deg, #14110D, #0B0A08);
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}
.hcard__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  color: var(--cream);
}
.hcard__hr {
  width: 84px;
  height: 1px;
  margin-top: 12px;
  background: rgba(200, 168, 118, 0.26);
}
.hcard__hr--arch { width: 150px; height: 14px; background: none; margin-top: 26px; }
.hcard__hr--arch svg { display: block; width: 100%; height: 14px; }
.hcard__eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 24px;
}
.hcard__numeral {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 110px;
  line-height: 0.92;
  color: var(--gold-light);
  margin-top: 8px;
  text-shadow: 0 0 38px rgba(220, 192, 138, 0.26);
  font-variation-settings: "opsz" 144;
}
.hcard__out {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-top: 10px;
}
.hcard__verdict {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--cream-soft);
  margin: 18px 0 0;
  max-width: 280px;
}
.hcard__arc { width: 100%; margin-top: 24px; }
.hcard__arc svg { display: block; width: 100%; height: 56px; }
.hcard__arc-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--cream-faint);
  margin-top: 5px;
}
.hcard__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin-top: 24px;
}
.hcard__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hcard__stat + .hcard__stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: rgba(200, 168, 118, 0.16);
}
.hcard__stat-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.hcard__stat-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--cream);
}
.hcard__foot {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.45;
  color: var(--cream-mute);
  margin: 16px 0 0;
  max-width: 258px;
}

.cardshow__assur {
  list-style: none;
  padding: 0;
  margin: 58px auto 0;
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.cardshow__assur li { display: flex; align-items: center; gap: 22px; }
.cardshow__assur li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: var(--gold);
  opacity: 0.55;
}

@media (max-width: 640px) {
  .hcard { padding: 30px 26px 26px; }
  .hcard__numeral { font-size: 92px; }
  .cardshow__assur { gap: 16px; font-size: 11px; }
  .cardshow__assur li { gap: 16px; }
}

/* Keyboard focus: a consistent champagne ring; mouse focus stays clean. */
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible { outline: none; }
