/* Abby — The producer's AI · implemented from Abby Landing.dc.html */

/* ---------- Fonts ---------- */

/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-var-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-var-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-var-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/courier-prime-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/courier-prime-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/courier-prime-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/courier-prime-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'La Belle Aurore';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/la-belle-aurore-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'La Belle Aurore';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/la-belle-aurore-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */

:root {
  --ink: #121210;
  --paper: #FAF7F0;
  --gold: #EF9F27;
  --mono: 'Courier Prime', 'Courier New', monospace;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --side-pad: clamp(20px, 4vw, 48px);
  --sheet-tilt: -0.5deg;
}

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#product, #who { scroll-margin-top: 60px; }

/* Scroll reveals (elements get .in when they enter; set up in JS) */
[data-reveal].reveal-armed {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.65, 0.25, 1);
}
[data-reveal][data-reveal-scale].reveal-armed { transform: translateY(24px) scale(0.97); }
[data-reveal].reveal-armed.in { opacity: 1; transform: translateY(0) scale(1); }
html { background: var(--ink); }
body {
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: var(--ink); }
input::placeholder { color: rgba(250, 247, 240, 0.38); }

@keyframes abby-blink { 50% { opacity: 0; } }
@keyframes abby-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes abby-clap {
  0%, 40% { transform: rotate(-16deg); }
  74% { transform: rotate(1.5deg); }
  100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.page {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--paper);
  font-family: var(--sans);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--side-pad);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}
.nav.scrolled {
  background: rgba(18, 18, 16, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(250, 247, 240, 0.1);
  padding: 11px var(--side-pad);
}
.nav-links { display: inline-flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }
.nav-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(250, 247, 240, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--paper); }
.nav-cta {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--gold);
  text-decoration: none;
  padding: 9px 16px 8px;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { background: #FFAF3D; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(239, 159, 39, 0.55); }
.nav-cta:active { transform: translateY(0); }
.nav-brand { display: inline-flex; align-items: center; gap: 11px; }
.nav-logo { height: 30px; width: auto; display: block; }


/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 130px var(--side-pad) 90px;
  box-sizing: border-box;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(44% 40% at 70% 38%, rgba(239, 159, 39, 0.13), rgba(239, 159, 39, 0) 70%),
    radial-gradient(36% 30% at 16% 8%, rgba(239, 159, 39, 0.06), rgba(239, 159, 39, 0) 75%),
    linear-gradient(112deg, rgba(239, 159, 39, 0) 40%, rgba(239, 159, 39, 0.05) 47%, rgba(239, 159, 39, 0) 55%),
    linear-gradient(70deg, rgba(239, 159, 39, 0) 58%, rgba(239, 159, 39, 0.04) 64%, rgba(239, 159, 39, 0) 71%);
  /* fade the glow out before the section boundary — the diagonal beams
     otherwise hit the hero's clipped edge at full strength and draw a
     visible horizontal line between hero and the next section */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 97%);
}
.hero-tick { pointer-events: none; position: absolute; }
.hero-tick--left {
  left: clamp(16px, 5vw, 70px);
  bottom: 44px;
  opacity: 0.3;
  transform: rotate(-12deg);
}
.tick-bar { width: 30px; height: 7px; background: var(--gold); }
.tick-stem { width: 7px; height: 18px; background: var(--gold); margin: 3px auto 0; }
.hero-tick--right {
  right: clamp(14px, 4vw, 60px);
  bottom: 90px;
  opacity: 0.22;
}
.tick-x { width: 30px; height: 7px; background: var(--gold); }
.tick-x--a { transform: rotate(45deg); }
.tick-x--b { transform: rotate(-45deg); margin-top: -7px; }

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-copy { flex: 1.3 1 420px; min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(239, 159, 39, 0.5);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 13px 7px;
  border-radius: 2px;
}
.badge-dot { width: 6px; height: 6px; background: var(--gold); display: inline-block; }

.hero-title { margin: 26px 0 0; font-weight: 800; }
.hero-line {
  display: block;
  font-size: clamp(42px, 6.6vw, 92px);
  font-stretch: 62%;
  line-height: 1.0;
  letter-spacing: -0.01em;
}
.hero-line--paper { color: var(--paper); }
.hero-line--gold {
  margin-top: 8px;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(239, 159, 39, 0.22);
}

/* Load-in: staggered rise + fade, frame one of the site */
@keyframes abby-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { opacity: 0; animation: abby-rise 0.6s cubic-bezier(0.2, 0.65, 0.25, 1) forwards; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.27s; }
.rise-4 { animation-delay: 0.4s; }
.rise-5 { animation-delay: 0.52s; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; animation: none; }
}

/* Boot overlay: dissolves directly into the hero */
#boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
#boot img { height: 44px; width: auto; opacity: 0.9; }
#boot.gone { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #boot { display: none; } }

.hero-sub {
  margin: 26px 0 0;
  max-width: 600px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  font-weight: 400;
  color: rgba(250, 247, 240, 0.72);
}

/* ---------- Hero CTAs ---------- */

.hero-ctas {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 16px 26px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { background: #FFAF3D; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(239, 159, 39, 0.55); }
.cta:active { transform: translateY(0px); box-shadow: none; }
.cta--big { font-size: 17px; padding: 19px 34px; }
.cta-ghost {
  display: inline-block;
  color: var(--paper);
  border: 1px solid rgba(250, 247, 240, 0.35);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 24px;
  border-radius: 2px;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.cta-ghost:hover { border-color: var(--gold); background: rgba(239, 159, 39, 0.08); transform: translateY(-2px); }
.cta-ghost:active { transform: translateY(0); }

/* ---------- Clapperboard slate ---------- */

.hero-slate {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.slate-glow {
  position: absolute;
  inset: 6% -12% -16% -12%;
  background: radial-gradient(55% 50% at 50% 58%, rgba(239, 159, 39, 0.14), rgba(239, 159, 39, 0) 72%);
  pointer-events: none;
}
.slate {
  position: relative;
  transform: rotate(2.5deg);
  border-radius: 10px;
  background: linear-gradient(165deg, #24231D, #161510 62%);
  border: 1px solid rgba(250, 247, 240, 0.15);
  box-shadow: 0 46px 90px -34px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(250, 247, 240, 0.07);
}
.slate-sticks { position: relative; padding: 14px 14px 8px; }
.stick { height: 23px; }
.stick--top {
  border-radius: 4px 4px 2px 2px;
  background: repeating-linear-gradient(-55deg, #EF9F27 0 20px, #17160F 20px 40px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  transform-origin: 5% 100%;
  transform: rotate(-16deg);
  animation: abby-clap 1.15s cubic-bezier(0.55, 0, 0.25, 1) 0.15s both;
}
.stick--bottom {
  margin-top: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(55deg, #EF9F27 0 20px, #17160F 20px 40px);
}
.stick-pin {
  position: absolute;
  left: 20px;
  top: 30px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0C0B09;
  border: 2px solid rgba(250, 247, 240, 0.3);
  z-index: 2;
}
.slate-grid {
  padding: 14px 18px 6px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}
.slate-cell {
  border: 1px solid rgba(250, 247, 240, 0.16);
  border-radius: 5px;
  padding: 9px 11px 8px;
  background: rgba(250, 247, 240, 0.02);
}
.slate-cell-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: rgba(250, 247, 240, 0.48);
}
.slate-cell-value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--paper);
  margin-top: 3px;
  white-space: nowrap;
}
.slate-cell-value--gold { color: var(--gold); }
.slate-rows { padding: 6px 18px 16px; }
.slate-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid rgba(250, 247, 240, 0.1);
  padding: 9px 1px;
}
.slate-row-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(250, 247, 240, 0.48);
}
.slate-row-value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.slate-tags { display: flex; gap: 7px; padding-top: 13px; }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 9px 3px;
  border: 1px solid rgba(250, 247, 240, 0.22);
  color: rgba(250, 247, 240, 0.55);
  border-radius: 2px;
}
.tag--active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

/* ---------- Fade zone (dark → day) ---------- */

.fadezone {
  padding: 13vh var(--side-pad) 15vh;
  box-sizing: border-box;
}
.fade-inner { max-width: 1180px; margin: 0 auto; width: 100%; }
.fadein-line {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.problem-title {
  margin: 5vh 0 0;
  max-width: 900px;
  font-size: clamp(40px, 5.6vw, 78px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.problem-sub {
  margin: 26px 0 0;
  max-width: 62ch;
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.7;
  color: rgba(250, 247, 240, 0.72);
}
.steps { margin-top: 9vh; max-width: 780px; }
.step {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 3vw, 26px);
  padding: 16px 2px;
  border-bottom: 1px solid rgba(239, 159, 39, 0.28);
}
.step--last { border-bottom: none; }
.step-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  min-width: 30px;
}
.step-name {
  font-family: var(--sans);
  font-weight: 700;
  font-stretch: 62%;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.step-name--highlight {
  background: var(--gold);
  color: var(--ink);
  padding: 2px 12px 4px;
}
.step-owner {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(250, 247, 240, 0.6);
}

/* ---------- Production office (day) ---------- */

.office {
  padding: 8vh var(--side-pad) 150px;
  color: var(--ink);
}
.office-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.scene-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  padding: 5px 10px 4px;
}
.office-title {
  margin: 28px 0 0;
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.office-sub {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.7;
  color: rgba(18, 18, 16, 0.78);
}

.sheetwrap { will-change: transform; }
.callsheet {
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(180deg, #FFFEFA, #FAF5EA);
  border: 1px solid rgba(18, 18, 16, 0.14);
  border-top: 5px solid var(--ink);
  border-radius: 2px;
  box-shadow: 0 32px 70px -28px rgba(18, 18, 16, 0.38), 0 4px 16px rgba(18, 18, 16, 0.07);
  transform: rotate(var(--sheet-tilt));
}
.cs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 24px 15px;
  border-bottom: 1.5px solid rgba(18, 18, 16, 0.6);
}
.cs-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.cs-sent {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(18, 18, 16, 0.55);
}
.cs-sig {
  font-family: 'La Belle Aurore', cursive;
  font-size: 19px;
  line-height: 1;
  color: var(--ink);
  display: inline-block;
  transform: rotate(-2deg) translateY(1px);
}
.cs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(18, 18, 16, 0.12);
  font-family: var(--mono);
}
.cs-label { font-size: 14px; color: rgba(18, 18, 16, 0.82); }
.cs-value { font-size: 14px; font-weight: 700; color: var(--ink); }
.cs-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.cs-status--done { color: #2F7A43; }
.cs-status--calling { color: #A06A08; }
.cs-dot { width: 7px; height: 7px; background: #2F7A43; display: inline-block; }
.cs-dot--pulse { background: var(--gold); animation: abby-pulse 1.6s ease-in-out infinite; }
.cs-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 24px 15px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(18, 18, 16, 0.5);
}

/* ---------- The five layers ---------- */

.layers {
  max-width: 1180px;
  margin: clamp(70px, 11vh, 130px) auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 9vh, 110px);
}
.layer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 880px) {
  .layer { grid-template-columns: 5fr 7fr; }
  .layer--flip { grid-template-columns: 7fr 5fr; }
  .layer--flip .layer-copy { order: 2; }
  .layer--flip .layer-shot { order: 1; }
}
.layer-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #A06A08;
}
.layer-name {
  margin: 12px 0 0;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  color: var(--ink);
}
.layer-line {
  margin: 16px 0 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.7;
  color: rgba(18, 18, 16, 0.78);
}
.layer-shot {
  border-radius: 8px;
  background: #1A1917;
  border: 1px solid rgba(18, 18, 16, 0.35);
  box-shadow: 0 34px 70px -30px rgba(18, 18, 16, 0.5), 0 6px 18px rgba(18, 18, 16, 0.12);
  padding: 10px;
  transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.25, 1), box-shadow 0.35s ease;
}
.layer-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 44px 84px -30px rgba(18, 18, 16, 0.55), 0 8px 22px rgba(18, 18, 16, 0.14);
}
.layer-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 1000;
  object-fit: cover;
  object-position: left top;
  border-radius: 4px;
}

/* ---------- Roadmap (its own dark band) ---------- */

.roadmap {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 13vh, 150px) var(--side-pad);
  scroll-margin-top: 70px;
}
.roadmap-inner { max-width: 1180px; margin: 0 auto; }
.roadmap-kicker {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.roadmap-title {
  margin: 26px 0 0;
  font-size: clamp(46px, 6.4vw, 92px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.roadmap-body {
  margin: 28px 0 0;
  max-width: 68ch;
  font-size: clamp(16px, 1.9vw, 19.5px);
  line-height: 1.75;
  color: rgba(250, 247, 240, 0.75);
}
.roadmap-items {
  margin-top: clamp(44px, 7vh, 70px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.roadmap-item {
  border: 1px solid rgba(250, 247, 240, 0.14);
  border-radius: 6px;
  padding: 24px 24px 26px;
  background: rgba(250, 247, 240, 0.025);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}
.roadmap-item:hover {
  border-color: rgba(239, 159, 39, 0.55);
  background: rgba(239, 159, 39, 0.05);
  transform: translateY(-3px);
}
.roadmap-chip {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid rgba(239, 159, 39, 0.5);
  padding: 4px 8px 3px;
  border-radius: 2px;
}
.roadmap-item-name {
  margin: 16px 0 0;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  color: var(--paper);
}
.roadmap-item-line {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(250, 247, 240, 0.65);
}

/* ---------- Who it's for (day) ---------- */

.who { padding: clamp(80px, 13vh, 150px) var(--side-pad) 0; color: var(--ink); }
.who-inner { max-width: 1180px; margin: 0 auto; }
.who-kicker {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: #A06A08;
}
.who-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.who-card {
  border: 1px solid rgba(18, 18, 16, 0.18);
  border-radius: 6px;
  padding: 26px 26px 28px;
  background: rgba(255, 254, 250, 0.6);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.who-card:hover {
  border-color: rgba(18, 18, 16, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(18, 18, 16, 0.35);
}
.who-name {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1.08;
  color: var(--ink);
}
.who-line {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(18, 18, 16, 0.72);
}

/* ---------- Closing CTA (day) ---------- */

.closing { padding: clamp(90px, 15vh, 170px) var(--side-pad) clamp(90px, 14vh, 150px); color: var(--ink); }
.closing-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.closing-kicker {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: #A06A08;
}
.closing-title {
  margin: 24px 0 0;
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.closing-inner > div { margin-top: 40px; }

/* ---------- Footer ---------- */

.footer {
  padding: 0 var(--side-pad);
  color: var(--ink);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 0 56px;
}
.footer-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(18, 18, 16, 0.75);
}
.footer-note--dim { margin-top: 4px; color: rgba(18, 18, 16, 0.55); }
.footer-links { margin: 12px 0 0; font-family: var(--mono); font-size: 12.5px; }
.footer-links a { color: rgba(18, 18, 16, 0.6); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--ink); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-logo { height: 34px; width: auto; display: block; }

/* ---------- Theme toggle ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(250, 247, 240, 0.28);
  background: transparent;
  color: rgba(250, 247, 240, 0.75);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.theme-toggle .tt-sun { display: none; }

/* ---------- Light theme: the page opens in day ----------
   Same brand, sun up: paper ground, ink type, day-gold accents. The black
   slate stays a physical prop and the roadmap stays an ink brand band —
   exactly like the app's light theme keeps its dark chips. */

html[data-theme="light"] { background: var(--paper); }
html[data-theme="light"] .page { color: var(--ink); }

html[data-theme="light"] .theme-toggle {
  border-color: rgba(18, 18, 16, 0.28);
  color: rgba(18, 18, 16, 0.7);
}
html[data-theme="light"] .theme-toggle:hover { border-color: #a06a08; color: #a06a08; }
html[data-theme="light"] .theme-toggle .tt-moon { display: none; }
html[data-theme="light"] .theme-toggle .tt-sun { display: block; }

/* nav */
.logo-light { display: none; }
html[data-theme="light"] .logo-dark { display: none; }
html[data-theme="light"] .logo-light { display: block; }
html[data-theme="light"] .nav.scrolled {
  background: rgba(250, 247, 240, 0.86);
  border-bottom-color: rgba(18, 18, 16, 0.1);
}
html[data-theme="light"] .nav-link { color: rgba(18, 18, 16, 0.62); }
html[data-theme="light"] .nav-link:hover { color: var(--ink); }

/* hero in daylight */
html[data-theme="light"] .hero-glow {
  background:
    radial-gradient(44% 40% at 70% 38%, rgba(239, 159, 39, 0.10), rgba(239, 159, 39, 0) 70%),
    radial-gradient(36% 30% at 16% 8%, rgba(239, 159, 39, 0.05), rgba(239, 159, 39, 0) 75%);
}
html[data-theme="light"] .hero-line--paper { color: var(--ink); }
html[data-theme="light"] .hero-line--gold { text-shadow: none; }
html[data-theme="light"] .hero-sub { color: rgba(18, 18, 16, 0.72); }
html[data-theme="light"] .badge { color: #7a5406; border-color: rgba(160, 106, 8, 0.45); }
html[data-theme="light"] .cta-ghost { color: var(--ink); border-color: rgba(18, 18, 16, 0.35); }
html[data-theme="light"] .cta-ghost:hover { border-color: #a06a08; background: rgba(239, 159, 39, 0.1); }

/* fade zone: CSS fallbacks for the day end-state (JS pins p = 1) */
html[data-theme="light"] .fadein-line { color: #7a5406; }
html[data-theme="light"] .problem-title { color: var(--ink); }
html[data-theme="light"] .problem-sub { color: rgba(18, 18, 16, 0.66); }
html[data-theme="light"] .step { border-bottom-color: rgba(122, 84, 6, 0.28); }
html[data-theme="light"] .step-num { color: #7a5406; }
html[data-theme="light"] .step-name { color: var(--ink); }
html[data-theme="light"] .step-owner { color: rgba(18, 18, 16, 0.66); }

@media (max-width: 480px) {
  .nav-links { gap: 10px; }
  .nav-cta { padding: 8px 12px 7px; }
  .theme-toggle { width: 29px; height: 29px; }
}

/* ---------- Cursor-aware layer (matches the app) ---------- */

/* Full-viewport ambient glow between the page background and content. Two
   recipes cross-faded by the scroll fade's progress: the dark-theater gold
   and the day gold (which needs more pigment to read on paper). JS writes
   --gx/--gy (viewport px), --glow (0/1) and --pday (0..1, the fade). */
.mkt-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --gx: 50vw;
  --gy: 30vh;
  --glow: 0;
  --pday: 0;
}
.mkt-glow::before,
.mkt-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: opacity 0.6s ease;
}
.mkt-glow::before {
  opacity: calc(var(--glow) * (1 - var(--pday)));
  background: radial-gradient(
    560px circle at var(--gx) var(--gy),
    rgba(239, 159, 39, 0.11),
    rgba(239, 159, 39, 0.04) 45%,
    transparent 72%
  );
}
.mkt-glow::after {
  opacity: calc(var(--glow) * var(--pday));
  background: radial-gradient(
    560px circle at var(--gx) var(--gy),
    rgba(198, 126, 18, 0.2),
    rgba(198, 126, 18, 0.08) 45%,
    transparent 72%
  );
}

/* Cards that light up where the cursor is. Ring + wash recipes come from
   vars so ink-band cards and day cards can differ. */
.spotlight-card {
  position: relative;
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
  --on: 0;
  --sp-wash: rgba(239, 159, 39, 0.13);
  --sp-ring: rgba(239, 159, 39, 0.65);
  transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.25, 1), box-shadow 0.35s ease;
}
.spotlight-card::before,
.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--on);
  transition: opacity 0.4s ease;
}
.spotlight-card::before {
  z-index: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--sp-wash), transparent 62%);
}
.spotlight-card::after {
  z-index: 2;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), var(--sp-ring), transparent 56%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.spotlight-card > * { position: relative; z-index: 1; }
@media (hover: hover) {
  .spotlight-card:hover { transform: translateY(-3px); }
}
/* day-section cards need the deeper day gold */
.who-card.spotlight-card,
.callsheet.spotlight-card {
  --sp-wash: rgba(198, 126, 18, 0.16);
  --sp-ring: rgba(198, 126, 18, 0.8);
}

/* ---------- Hero slate: cursor tilt + glare ---------- */

.hero-slate { perspective: 900px; }
.slate {
  transform: rotate(2.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.25, 1);
  will-change: transform;
}
.hero-slate.tilting .slate {
  transition: transform 0.12s ease-out;
  transform: rotate(2.5deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.slate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--gl, 0);
  transition: opacity 0.4s ease;
  background: radial-gradient(
    360px circle at var(--sx, 50%) var(--sy, 30%),
    rgba(250, 247, 240, 0.09),
    transparent 60%
  );
}

/* ---------- Magnetic CTAs ---------- */

.cta,
.cta-ghost {
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.2, 0.65, 0.25, 1),
    background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ---------- Scroll parallax inside the product shots ---------- */

.layer-shot { overflow: hidden; }
.layer-shot img {
  transform: translateY(var(--par, 0px)) scale(1.07);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .mkt-glow { display: none; }
  .spotlight-card::before,
  .spotlight-card::after { display: none; }
  .spotlight-card:hover { transform: none; }
  .hero-slate.tilting .slate { transform: rotate(2.5deg); }
  .slate::after { display: none; }
  .cta, .cta-ghost { transition: background-color 0.2s ease, border-color 0.2s ease; }
  .layer-shot img { transform: none; }
}

/* ===== multi-page additions: nav state, subpage heroes, chapter cards,
   live/next chips. Everything reuses the existing token + motion system. */
.nav-link.active { color: var(--paper); position: relative; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
html[data-theme="light"] .nav-link.active { color: var(--ink); }

/* subpage hero: same drama, less height, centered column */
.hero--page { min-height: 74svh; }
.hero--page .hero-inner { max-width: 940px; }
.hero--page .hero-copy { flex: 1 1 auto; }

/* status chips on roadmap cards */
.roadmap-chip--live {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}
.roadmap-cta { margin-top: clamp(36px, 6vh, 56px); }

/* home chapter cards (day zone), each a door into a deeper page */
.chapters {
  max-width: 1180px;
  margin: clamp(64px, 10vh, 120px) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.chapter {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(18, 18, 16, 0.14);
  border-radius: 6px;
  padding: 28px 28px 30px;
  background: rgba(18, 18, 16, 0.02);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}
.chapter:hover {
  border-color: rgba(160, 106, 8, 0.6);
  background: rgba(239, 159, 39, 0.06);
  transform: translateY(-3px);
}
.chapter-kicker {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #a06a08;
}
.chapter-name {
  margin: 12px 0 0;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1.02;
}
.chapter-line {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(18, 18, 16, 0.72);
}
.chapter-go {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #7a5406;
}

/* compact chapter cards — the home page's full-application grid */
.chapter--sm { padding: 22px 22px 24px; }
.chapter--sm .chapter-name { font-size: clamp(21px, 2vw, 26px); }
.chapter--sm .chapter-line { font-size: 14px; line-height: 1.6; margin-top: 9px; }
.chapter--sm .chapter-go { margin-top: 13px; font-size: 11.5px; }
.chapters--grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 13px;
}
