:root {
  color-scheme: dark;
  --ink: #14120e;
  --paper: #f4f0e6;
  --amber: #ffb657;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #df831b; outline-offset: 4px; }
.frame { width: min(1200px, 88%); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 10px; padding: 12px; background: var(--ink); z-index: 20; }
.skip:focus { top: 10px; }
.mast { position: sticky; top: 0; z-index: 10; background: rgb(19 17 14 / 94%); backdrop-filter: blur(16px); border-bottom: 1px solid #ffffff16; }
.mast nav, footer { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.mast nav { min-height: 66px; font-size: .9rem; font-weight: 550; }
.brand { display: inline-flex; gap: 10px; align-items: center; font: 700 1.18rem/1 var(--sans); letter-spacing: -.035em; margin-right: auto; }
.mast nav > a:hover, footer a:hover { color: var(--amber); }
.mast .nav-cta { border: 1px solid #eec89085; border-radius: 99px; padding: 8px 18px; color: var(--amber); }
.nav-cta span, .button span { margin-left: 5px; }
.eyebrow, .chapter-links small, .stage figcaption {
  font: 650 .73rem/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: .11em; text-transform: uppercase;
}
.eyebrow { color: var(--amber); }
.hero-label::before { content: ""; display: inline-block; width: 27px; height: 1px; margin: 0 12px 4px 0; background: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
h1 { margin: 24px 0; font-size: clamp(4rem, 7.5vw, 7.3rem); }
h1 em, .install em { color: var(--amber); }
.intro, .install p:not(.eyebrow, .requirements) { max-width: 440px; color: #eee5d4; font-size: 1.1rem; }
.actions { display: flex; gap: 14px 24px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.button, .text-link { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; font-size: .94rem; font-weight: 650; }
.button { padding: 11px 21px; border-radius: 99px; transition: background .18s ease; }
.primary { background: var(--amber); color: #251807; }
.primary:hover { background: #ffd299; }
.secondary { border: 1px solid #b7ab93; }
.secondary:hover { background: #332c22; }
.text-link { color: #fff2db; gap: 10px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #c1a37e; }
.install { padding-block: clamp(70px, 9vw, 140px); display: grid; align-items: center; grid-template-columns: 2fr 1fr; gap: 45px; }
.install h2 { font-size: clamp(3.3rem, 5.6vw, 6rem); }
.requirements { margin-top: 22px; font-size: .85rem; color: #c0b8a8; }
.scan { width: fit-content; text-align: center; justify-self: center; }
.scan img { display: block; width: 180px; height: 180px; margin-inline: auto; border-radius: 12px; image-rendering: pixelated; }
.scan figcaption { margin-top: 12px; color: #d0c6b6; font-size: .87rem; }
footer { border-top: 1px solid #433c30; padding-block: 25px; flex-wrap: wrap; font-size: .9rem; }
:root { --header: 82px; --ease: cubic-bezier(.18,.78,.2,1); }
body {
  background: radial-gradient(ellipse at 74% 37%, #38261570, transparent 48%) fixed,
              linear-gradient(130deg,#1a160f,#0b0a08 60%) fixed;
}
.mast { padding: 10px 0; background: transparent; border: 0; backdrop-filter: none; pointer-events: none; }
.mast nav { pointer-events: auto; min-height: 58px; padding: 6px 10px 6px 16px; border: 1px solid #fce1b630; border-radius: 40px; background: #15120eeb; backdrop-filter: blur(18px); box-shadow: 0 8px 38px #0005; }
.stage-rail { min-width: 0; }
.story-grid { display: grid; align-items: start; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); column-gap: 5%; }
.stage-rail { grid-column: 2; grid-row: 1; position: sticky; top: max(var(--header), 13svh); z-index: 2; }
.chapters { grid-column: 1; grid-row: 1; min-width: 0; }
.showcase { position: relative; overflow: hidden; isolation: isolate; color: var(--paper); border: 1px solid #eac79929; border-radius: 28px; background: #17140f; box-shadow: inset 0 1px 0 #fff1,0 22px 80px #0003; }
.product-field { position: relative; height: clamp(290px, 64svh, 670px); overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 49% 52%, #64402286, transparent 68%), linear-gradient(146deg,#231e16,#100e0b); }
.product-field::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(#fbdb9a09 1px, transparent 1px), linear-gradient(90deg,#fbdb9a09 1px,transparent 1px);
  background-size: 36px 36px; mask-image: linear-gradient(165deg,#000,transparent 88%); }
.signal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.chapter-links { display: grid; grid-template-columns: repeat(4,1fr); padding: 0 12px; border-top: 1px solid #f6d5a720; background: #15120f; }
.chapter-links a { text-align: center; color: #cbc2b2; padding: 15px 2px; font: 600 .85rem var(--sans); position: relative; }
.chapter-links a::before { content: ""; position: absolute; inset: 0 8% auto; height: 2px; background: var(--amber); transform: scaleX(0); transition: transform .35s var(--ease); }
.chapter-links a[aria-current], .chapter-links a:hover { color: var(--amber); }
.chapter-links a[aria-current]::before { transform: scaleX(1); }
.cue { position: absolute; left: 5%; bottom: 7%; border: 1px solid #ffdba94a; border-radius: 99px; padding: 9px 15px;
  display: flex; gap: 9px; align-items: center; background: #211b14ef; box-shadow: 0 7px 20px #0005;
  font-size: .84rem; font-weight: 600; color: #ffdfa9; visibility: hidden; }
.cue i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 9px #ffae5a60; }
.showcase:not([data-scene="intro"]) .cue { visibility: visible; }
.hero, .chapter { display: grid; align-content: center; }
.hero { min-height: max(620px, 84svh); padding: 40px 0 72px; }
h1 { font-size: clamp(4.2rem,7.5vw,7.2rem); }
.intro { color: #c9bfaf; }
.hero .actions { gap: 8px 16px; }
.chapter { min-height: 90svh; padding-block: clamp(58px,8vh,115px); border-top: 1px solid #fbdca62e; }
h2 { font-size: clamp(3rem,4.8vw,5rem); margin: 18px 0 22px; }
h2 em { color: var(--amber); }
.copy > p:not(.eyebrow,.footnote) { max-width: 43ch; color: #d6cebd; font-size: 1.1rem; }
.copy ol { list-style: none; padding: 0; margin: 26px 0 0; counter-reset: step; }
.copy li { counter-increment: step; position: relative; margin: 9px 0; padding: 14px 14px 14px 46px; line-height: 1.52;
  border: 1px solid #ffffff16; border-radius: 14px; background: #ffffff04; color: #c7bdad;
  transition: background .35s, border-color .35s; }
.copy li::before { content: counter(step); content: counter(step) / ""; position: absolute; left: 12px; top: 16px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid #cbb58c5c; color: #dec8a1; font: 650 .74rem var(--sans); }
.copy li.current { border-color: #dcad695c; background: #ffa7440a; }
.copy li.current::before { background: var(--amber); border-color: transparent; color: #23190c; }
.copy strong { color: #f5eddf; }
.footnote { margin-top: 16px; color: #bdb2a0; font-size: .86rem; }
.stage { margin: 22px 0 0; }
.stage img { display: block; max-width: 190px; width: 100%; height: auto; border-radius: 14px; }
.stage figcaption { margin-top: 10px; color: #c6baab; }
.stage figcaption span { margin-left: 6px; }
.enhanced .chapter .stage { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; margin: 0; overflow: hidden; }
.install { border-top: 1px solid #fbdca62e; }
@media (max-width: 799px) {
  :root { --header: 66px; --field-h: clamp(165px,30svh,330px); --tour-top: calc(var(--header) + var(--field-h) + 50px); }
  .frame { width: min(92%,650px); }
  .mast { padding-block: 7px; background: #15120f; }
  .mast nav { min-height: 50px; gap: 16px; padding-left: 10px; }
  .help-nav, .scan-nav { display: none; }
  .mast .nav-cta { padding: 7px 12px; }
  .story-grid { display: flex; flex-direction: column; gap: 0; }
  .stage-rail, .chapters { width: 100%; }
  .stage-rail { position: static; }
  .enhanced .stage-rail { position: sticky; top: var(--header); }
  .enhanced .chapter { scroll-margin-top: calc(var(--tour-top) - 66px); }
  html { scroll-padding-top: var(--header); }
  .stage-rail::before { content: ""; position: absolute; inset: -8px -3vw 0; z-index: -1; background: #15120f; }
  .showcase { border-radius: 18px; box-shadow: 0 5px 16px #0003; }
  .product-field { height: var(--field-h); }
  .chapter-links a { padding: 12px 0; }
  .hero { min-height: max(345px,50svh); padding: 27px 4px 40px; }
  h1 { font-size: clamp(3.8rem, 10vw, 5.7rem); margin: 16px 0; }
  h1 br { display: none; }
  h1 em::before { content: " "; }
  .intro { font-size: 1rem; }
  .actions { margin-top: 18px; gap: 6px 14px; }
  .button, .text-link { font-size: .88rem; }
  .chapter { min-height: 76svh; padding: 36px 4px 56px; }
  h2 { font-size: clamp(2.7rem,8vw,4rem); }
  .cue { padding: 6px 10px; left: 3%; bottom: 6%; font-size: .75rem; }
  .install { grid-template-columns: 1fr; gap: 28px; }
  .scan { justify-self: start; }
  footer { gap: 12px 20px; }
  footer .brand { flex-basis: 100%; }
}
@media (max-height: 490px) {
  .enhanced .stage-rail { position: static; }
  .enhanced .chapter { scroll-margin-top: 0; }
  .enhanced .chapter .stage { position: static; clip-path: none; width: auto; height: auto; margin-top: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .enhanced .reveal-item { opacity: 0; transform: translateY(24px); transition: opacity .58s var(--ease), transform .64s var(--ease), border-color .35s, background .35s; }
  .enhanced .copy li:nth-child(2) { transition-delay: .05s; }
  .enhanced .copy li:nth-child(3) { transition-delay: .1s; }
  .enhanced .reveal-item.shown { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .stage-rail, .mast, .chapter-links { display: none; }
  .story-grid { display: block; }
  .chapter, .hero { min-height: auto; padding: 20px 0; }
  .enhanced .reveal-item { opacity: 1; transform: none; }
}
