/* ImTheCook · Design E "Night Kitchen"
   Dark, cinematic, product-forward. One warm accent. System fonts only. */

:root {
  --bg: #0a0908;
  --bg-2: #110f0d;
  --panel: #171411;
  --panel-2: #1f1b17;
  --line: rgba(255, 236, 220, .11);
  --line-2: rgba(255, 236, 220, .2);
  --text: #f5eee7;
  --muted: #b7ab9e;
  --amber: #ff9966;
  --ember: #b5541c;
  --flame: #ffc46b;
  --clash: #ff5a4d;
  --glow: 255, 140, 80;
  --display: "Avenir Next Condensed", "HelveticaNeue-CondensedBold", "Helvetica Neue Condensed", "Roboto Condensed", "Arial Narrow", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--flame); }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ember); color: #fff; }

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--amber); color: #170b04; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #170b04; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- type ---------- */
.display, h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .96;
  text-wrap: balance;
}
h1 { font-size: clamp(3.1rem, 9vw, 6.6rem); }
h2 { font-size: clamp(2.5rem, 6.6vw, 5.2rem); }
h3 { font-family: var(--display); font-stretch: condensed; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 1.55rem; line-height: 1.05; }
.hot { color: var(--amber); }
.kicker {
  font: 600 .78rem/1.2 var(--body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.55; color: var(--text); max-width: 34em; }
.body { color: var(--muted); max-width: 36em; }
.body + .body, .lede + .body { margin-top: 14px; }
.body b, .body strong { color: var(--text); font-weight: 600; }
.caption { font-size: .8rem; line-height: 1.45; color: var(--muted); letter-spacing: .01em; margin-top: 14px; }
.caption b { color: var(--text); font-weight: 600; }
.tag {
  display: inline-block; font: 600 .68rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; padding: 6px 10px; margin-right: 6px;
}
.tag--hot { color: var(--amber); border-color: rgba(255, 153, 102, .45); }
.ph, .placeholder-note { font: 500 .78rem/1.3 var(--mono); color: var(--flame); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 8, .78);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.3rem/1 var(--display); font-stretch: condensed; text-transform: uppercase; letter-spacing: .04em; }
.brand img { border-radius: 7px; }
.brand:hover { color: var(--text); }
.site-nav ul { display: flex; gap: clamp(2px, 2vw, 18px); }
.site-nav a { display: block; white-space: nowrap; padding: 10px 8px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--amber); }

@media (max-width: 430px) { .site-nav .nav-opt { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: #170b04;
  font: 700 1rem/1 var(--body); text-decoration: none;
  padding: 16px 24px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 12px 40px -10px rgba(var(--glow), .7);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { background: var(--flame); color: #170b04; transform: translateY(-1px); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: #170b04; animation: pulse 2.2s ease-in-out infinite; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- device frames (CSS only) ---------- */
.mac, .phone, .ipad, .watch { position: relative; background: #050505; }
.mac {
  border-radius: clamp(6px, 1vw, 12px); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 120px -30px #000, 0 30px 140px -40px rgba(var(--glow), .45);
}
.mac img { width: 100%; }
.phone {
  border-radius: 14% / 6.45%; padding: 2.4%;
  background: linear-gradient(145deg, #3a3531, #131110 40%, #26221f);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 30px 80px -20px #000, 0 20px 90px -30px rgba(var(--glow), .5);
}
.phone img { width: 100%; border-radius: 12% / 5.5%; }
.ipad {
  border-radius: 5.4% / 4.05%; padding: 2.6%;
  background: linear-gradient(145deg, #3a3531, #131110 40%, #26221f);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 30px 80px -20px #000, 0 20px 90px -30px rgba(var(--glow), .4);
}
.ipad img { width: 100%; border-radius: 3.2% / 2.4%; }
.watch {
  border-radius: 26% / 21.5%; padding: 8%;
  background: linear-gradient(145deg, #3a3531, #131110 40%, #26221f);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 20px 50px -14px #000;
}
.watch img { width: 100%; border-radius: 17% / 14%; }

/* ---------- sections ---------- */
.section { padding-block: clamp(84px, 12vw, 170px); position: relative; }
.section--tint { background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section__head { max-width: 900px; margin-bottom: clamp(36px, 6vw, 72px); }
.section__head h2 { margin-bottom: 22px; }
.split { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(60px); background: radial-gradient(closest-side, rgba(var(--glow), .3), rgba(var(--glow), 0)); z-index: 0; }
.section > .wrap { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(60px, 9vw, 120px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 78%, rgba(var(--glow), .22), transparent 70%),
    radial-gradient(40% 30% at 82% 12%, rgba(255, 196, 107, .08), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__copy { text-align: center; max-width: 1100px; margin-inline: auto; }
.hero__copy .kicker { justify-content: center; }
.hero__copy .kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.hero__copy .lede { margin: 28px auto 0; max-width: 33em; color: var(--muted); }
.hero__copy .lede b { color: var(--text); font-weight: 500; }
.hero__copy .cta-row { justify-content: center; margin-top: 32px; }
.avail { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.hero__stage { position: relative; margin: clamp(40px, 4.5vw, 64px) auto 0; max-width: 1180px; padding-bottom: 6%; padding-right: 3%; }
.hero__stage .phone { position: absolute; right: 0; bottom: 0; width: clamp(104px, 21%, 250px); }
.hero__stage + .caption { text-align: center; }

/* ---------- statement ---------- */
.statement { padding-block: clamp(70px, 10vw, 140px); border-block: 1px solid var(--line); background: var(--bg-2); }
.statement p { font: 600 clamp(1.7rem, 4.4vw, 3.5rem)/1.12 var(--display); font-stretch: condensed; text-transform: uppercase; color: #6f665d; max-width: 22em; text-wrap: balance; }
.statement p + p { margin-top: .7em; }
.statement .lit { color: var(--text); }
.statement .hot { color: var(--amber); }

/* ---------- keep: drawn card ---------- */
.card-art { position: relative; max-width: 470px; margin-inline: auto; padding: 8% 4% 6%; }
.index-card {
  position: relative; aspect-ratio: 5 / 3.3; transform: rotate(-4deg);
  background:
    radial-gradient(34% 40% at 96% 98%, rgba(214, 150, 40, .5), rgba(214, 150, 40, .16) 55%, transparent 72%),
    repeating-linear-gradient(180deg, transparent 0 11.5%, rgba(70, 110, 160, .34) 11.5% 12%),
    linear-gradient(180deg, #f3e9d3, #e7d9bc);
  border-radius: 6px; padding: 7% 8%;
  box-shadow: 0 30px 70px -20px #000, 0 0 90px -20px rgba(var(--glow), .45);
  color: #2b2118;
}
.index-card::before { content: ""; position: absolute; left: 0; right: 0; top: 21%; height: 2px; background: rgba(190, 60, 50, .55); }
.index-card .hand { font: italic 400 clamp(1.3rem, 4.6vw, 1.9rem)/1 "Snell Roundhand", "Savoye LET", "Bradley Hand", "Segoe Script", cursive; }
.index-card svg { position: absolute; left: 8%; right: 8%; top: 30%; width: 84%; height: 58%; }
.card-art .stamp {
  z-index: 2; position: absolute; right: 0; top: 2%; transform: rotate(6deg);
  font: 700 .66rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(255, 153, 102, .5); padding: 7px 10px; border-radius: 4px; background: rgba(10, 9, 8, .8);
}
.ways { display: grid; gap: 10px; margin-top: 28px; }
.ways li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.ways li b { flex: none; width: 5.2em; font: 700 1.05rem/1 var(--display); font-stretch: condensed; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); }

/* ---------- dinner ---------- */
.dinner__stage { position: relative; padding-bottom: 8%; padding-left: 4%; --glow: 70, 190, 160; }
.dinner__stage .phone { position: absolute; left: 0; bottom: 0; width: clamp(96px, 22%, 200px); }
.reasons { margin-top: 28px; display: grid; gap: 0; }
.reasons li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons b { color: var(--text); font-weight: 600; }

/* ---------- cook ---------- */
.cook__devices { display: grid; grid-template-columns: 30fr 46fr 17fr; gap: clamp(12px, 3vw, 36px); align-items: end; margin-top: clamp(40px, 6vw, 72px); }
.cook__devices figure:nth-child(2) { --glow: 60, 150, 255; }
.cook__devices figcaption { font-size: .78rem; color: var(--muted); margin-top: 14px; line-height: 1.4; }
.cook__devices figcaption b { color: var(--text); font-weight: 600; display: block; }
@media (max-width: 640px) {
  .cook__devices { grid-template-columns: 1fr 1fr; }
  .cook__devices figure:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .cook__devices figure:nth-child(3) { align-self: center; padding-inline: 14%; }
}
.demo {
  margin-top: clamp(48px, 7vw, 96px);
  border: 1px solid var(--line-2); border-radius: 26px;
  background: linear-gradient(180deg, var(--panel), #0d0b0a);
  box-shadow: 0 40px 120px -50px rgba(var(--glow), .5);
  overflow: hidden;
}
.demo__bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 14px clamp(18px, 3vw, 30px); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.demo__bar strong { color: var(--flame); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }
.demo__grid { display: grid; }
@media (min-width: 900px) { .demo__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.stepper { padding: clamp(22px, 4vw, 44px); }
.stepper__meta { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.stepper__meta b { color: var(--text); }
.stepper__bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: clamp(22px, 3vw, 34px); }
.stepper__bars span { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .13); transition: background .3s ease; }
.stepper__bars span.on { background: var(--ember); }
.stepper__bars span.now { background: var(--amber); }
.steps { counter-reset: step; }
.steps li { padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps .verb { font: 800 clamp(2.1rem, 6vw, 3.6rem)/1 var(--display); font-stretch: condensed; text-transform: uppercase; color: var(--amber); letter-spacing: .01em; display: block; margin-bottom: 12px; }
.steps .say { font-size: clamp(1.2rem, 2.5vw, 1.72rem); line-height: 1.38; color: var(--text); max-width: 24em; }
.steps .where { margin-top: 16px; }
.js .steps li { display: none; border-top: 0; padding: 0; min-height: 15.5em; }
.js .steps li.is-current { display: block; animation: stepin .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes stepin { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.stepper__nav { display: none; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 22px; }
.js .stepper__nav { display: grid; }
.stepper__nav button { font: 700 1.05rem/1 var(--body); padding: 18px; border-radius: 999px; border: 0; cursor: pointer; }
.stepper__nav .back { background: rgba(255, 255, 255, .09); color: var(--text); }
.stepper__nav .next { background: var(--amber); color: #170b04; }
.stepper__nav .next:hover { background: var(--flame); }
.stepper__nav button:disabled { opacity: .38; cursor: default; }
.stepper__hint { display: none; margin-top: 14px; font-size: .8rem; color: var(--muted); }
.js .stepper__hint { display: block; }
kbd { font: 600 .72rem/1 var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; color: var(--text); }

.timer { padding: clamp(22px, 4vw, 44px); border-top: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 18px; background: radial-gradient(90% 70% at 50% 40%, rgba(var(--glow), .13), transparent 70%); }
@media (min-width: 900px) { .timer { border-top: 0; border-left: 1px solid var(--line); } }
.timer__face { display: flex; align-items: center; gap: 18px; }
.timer__ring { flex: none; width: 76px; height: 76px; transform: rotate(-90deg); }
.timer__ring circle { fill: none; stroke-width: 7; }
.timer__ring .track { stroke: rgba(255, 255, 255, .12); }
.timer__ring .prog { stroke: var(--amber); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer__name { font-weight: 600; color: var(--text); }
.timer__time { font: 700 clamp(2.8rem, 6vw, 3.8rem)/1 var(--display); font-stretch: condensed; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.timer__not { font-size: .85rem; color: var(--muted); }
.timer__not s { color: #7d7369; }
.timer__ctl { display: none; gap: 10px; }
.js .timer__ctl { display: flex; }
.timer__ctl button { font: 600 .9rem/1 var(--body); padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.timer__ctl button:hover { background: rgba(255, 255, 255, .07); }
.timer.is-done .timer__time { color: var(--amber); }

.devices-note { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 60px); }
@media (min-width: 760px) { .devices-note { grid-template-columns: 1fr 1fr; } }
.devices-note > div { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--panel); }
.devices-note h3 { margin-bottom: 10px; color: var(--amber); }
.devices-note p { color: var(--muted); font-size: .96rem; }

/* ---------- conductor ---------- */
.conductor { border: 1px solid var(--line-2); border-radius: 26px; background: linear-gradient(180deg, var(--panel), #0d0b0a); padding: clamp(18px, 3.4vw, 40px); }
.conductor__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: baseline; margin-bottom: 26px; }
.conductor__top p { font: 700 1.5rem/1 var(--display); font-stretch: condensed; text-transform: uppercase; letter-spacing: .03em; }
.conductor__top span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--flame); font-weight: 600; }
.tl { --label: 9.5em; position: relative; }
.tl__axis, .tl__row { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); align-items: center; }
.tl__axis .tl__track { height: 26px; }
.tl__tick { position: absolute; top: 0; transform: translateX(-50%); font: 600 .72rem/1 var(--mono); color: var(--muted); white-space: nowrap; }
.tl__tick:first-child { transform: none; }
.tl__tick:last-child { transform: translateX(-100%); color: var(--amber); }
.tl__row { padding: 9px 0; border-top: 1px solid var(--line); }
.tl__dish { font-weight: 600; font-size: .95rem; padding-right: 12px; }
.tl__dish small { display: block; font-weight: 400; font-size: .74rem; color: var(--muted); }
.tl__track {
  position: relative; height: 30px;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(16.6667% - 1px), rgba(255, 255, 255, .07) calc(16.6667% - 1px), rgba(255, 255, 255, .07) 16.6667%);
}
.tl__bar { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; min-width: 6px; transform-origin: left center; }
.tl__bar--oven { background: linear-gradient(90deg, var(--ember), var(--amber)); }
.tl__bar--stove { background: repeating-linear-gradient(135deg, var(--flame) 0 4px, rgba(255, 196, 107, .25) 4px 8px); }
.tl__bar--rest { border: 1.5px dashed rgba(255, 255, 255, .45); }
.tl__clash { position: absolute; top: -9px; bottom: -9px; border-inline: 2px solid var(--clash); background: repeating-linear-gradient(135deg, rgba(255, 90, 77, .5) 0 5px, rgba(255, 90, 77, .14) 5px 10px); z-index: 2; }
.tl__clash b { font-style: normal; position: absolute; left: 50%; bottom: calc(100% - 4px); transform: translateX(-50%); white-space: nowrap; font: 700 .66rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; background: var(--clash); color: #1b0503; padding: 5px 8px; border-radius: 4px; }
.tl__sit { position: absolute; right: 0; top: 26px; bottom: 0; width: 2px; background: var(--amber); box-shadow: 0 0 18px 2px rgba(var(--glow), .7); pointer-events: none; }
.tl__legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .8rem; color: var(--muted); }
.tl__legend li { display: flex; align-items: center; gap: 8px; }
.tl__legend i { width: 26px; height: 12px; border-radius: 4px; position: static; display: inline-block; }
.tl__legend i.tl__clash { border: 2px solid var(--clash); }
.conductor__foot { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.conductor__foot p { font-size: .8rem; color: var(--muted); max-width: 40em; }
.conductor__foot .start { color: var(--text); font-size: 1rem; }
.conductor__foot .start b { color: var(--amber); font: 700 1.5rem/1 var(--display); font-stretch: condensed; margin-left: 6px; }
@media (max-width: 640px) {
  .tl__axis, .tl__row { grid-template-columns: minmax(0, 1fr); }
  .tl__axis > span:first-child { display: none; }
  .tl__dish { padding-bottom: 4px; }
  .tl__dish small { display: inline; margin-left: 6px; }
  .tl__sit { top: 26px; }
  .tl__clash b { left: auto; right: -2px; transform: none; }
}
.js .conductor .tl__bar { transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .conductor.is-in .tl__bar { transform: none; }
.js .conductor .tl__clash { opacity: 0; transition: opacity .5s ease 1.3s; }
.js .conductor.is-in .tl__clash { opacity: 1; }
.js .conductor .tl__row:nth-child(3) .tl__bar { transition-delay: .12s; }
.js .conductor .tl__row:nth-child(4) .tl__bar { transition-delay: .24s; }
.js .conductor .tl__row:nth-child(5) .tl__bar { transition-delay: .36s; }
.js .conductor .tl__row:nth-child(6) .tl__bar { transition-delay: .48s; }
.js .conductor .tl__row:nth-child(7) .tl__bar { transition-delay: .6s; }

/* ---------- trio ---------- */
.trio { display: grid; gap: 18px; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio article { border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 36px); background: var(--panel); display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.trio article::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--amber), transparent 70%); }
.trio .num { font: 600 .74rem/1 var(--mono); color: var(--amber); letter-spacing: .1em; }
.trio h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1; }
.trio p { color: var(--muted); }
.trio .pull { color: var(--text); font-weight: 500; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.fine { margin-top: 26px; font-size: .86rem; color: var(--muted); border-left: 2px solid var(--amber); padding-left: 14px; max-width: 44em; }

/* ---------- theme switcher ---------- */
.switch { display: block; }
.switch__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 5vw, 56px); }
.switch__tabs label {
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.25rem/1 var(--display); font-stretch: condensed; text-transform: uppercase; letter-spacing: .06em;
  padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.switch__tabs label i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.switch__tabs label:hover { color: var(--text); border-color: rgba(255, 255, 255, .4); }
.switch__more {
  display: inline-flex; align-items: center; gap: .35em;
  font: 700 1.25rem/1 var(--display); font-stretch: condensed; text-transform: uppercase; letter-spacing: .06em;
  padding: 13px 20px; border-radius: 999px; border: 1px dashed rgba(255, 153, 102, .55); color: var(--amber);
}
.switch__more span { color: var(--muted); }
@media (max-width: 520px) { .switch__more { font-size: 1rem; padding: 11px 16px; } }
.sw-starship i { background: #ff9966; }
.sw-glade i { background: #5fc3a6; }
.sw-system i { background: #f4f4f4; box-shadow: inset -4px 0 0 #d2472f; }
.sw-grid i { background: #3d9be9; }
#th-starship:checked ~ .switch__tabs .sw-starship,
#th-glade:checked ~ .switch__tabs .sw-glade,
#th-system:checked ~ .switch__tabs .sw-system,
#th-grid:checked ~ .switch__tabs .sw-grid { background: var(--text); color: #120d09; border-color: var(--text); }
#th-starship:focus-visible ~ .switch__tabs .sw-starship,
#th-glade:focus-visible ~ .switch__tabs .sw-glade,
#th-system:focus-visible ~ .switch__tabs .sw-system,
#th-grid:focus-visible ~ .switch__tabs .sw-grid { outline: 2px solid var(--flame); outline-offset: 3px; }
.switch__stage { position: relative; max-width: 1120px; margin-inline: auto; padding-bottom: 6%; padding-right: 3%; }
#th-glade:checked ~ .switch__stage { --glow: 70, 190, 160; }
#th-system:checked ~ .switch__stage { --glow: 230, 230, 240; }
#th-grid:checked ~ .switch__stage { --glow: 61, 155, 233; }
#th-grid:checked ~ .switch__stage .phone { display: none; }
.switch__stage .phone { position: absolute; right: 0; bottom: 0; width: clamp(104px, 21%, 240px); }
.switch__stage .mac, .switch__stage .phone { transition: box-shadow .6s ease; }
.shot { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.phone .shot { left: 2.4%; top: 0; margin-top: 2.4%; width: 95.2%; }
#th-starship:checked ~ .switch__stage .shot--starship,
#th-glade:checked ~ .switch__stage .shot--glade,
#th-system:checked ~ .switch__stage .shot--system,
#th-grid:checked ~ .switch__stage .shot--grid { position: relative; left: auto; margin-top: 0; width: 100%; opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.switch__cap span { display: none; }
#th-starship:checked ~ .switch__cap .cap--starship,
#th-glade:checked ~ .switch__cap .cap--glade,
#th-system:checked ~ .switch__cap .cap--system,
#th-grid:checked ~ .switch__cap .cap--grid { display: inline; }
.switch__cap { text-align: center; }

/* ---------- library ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 760px) { .stats { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.stats div { padding: 26px 18px 26px 0; }
.stats div + div { border-left: 1px solid var(--line); padding-left: 18px; }
@media (max-width: 759px) { .stats div:nth-child(3) { border-left: 0; padding-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.stats dt { font: 800 clamp(2.6rem, 6vw, 4.6rem)/.9 var(--display); font-stretch: condensed; color: var(--text); }
.stats div:first-child dt { color: var(--amber); }
.stats dd { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.shelf { display: grid; gap: clamp(20px, 3vw, 36px); align-items: end; grid-template-columns: 1fr 1fr; }
.shelf figure:first-child { grid-column: 1 / -1; --glow: 60, 150, 255; }
.shelf figure:nth-child(2) { --glow: 230, 230, 240; padding-inline: 12%; }
@media (min-width: 900px) {
  .shelf { grid-template-columns: 58fr 17fr 25fr; }
  .shelf figure:first-child { grid-column: auto; }
  .shelf figure:nth-child(2) { padding-inline: 0; }
}
.shelf figcaption { font-size: .78rem; color: var(--muted); margin-top: 14px; line-height: 1.4; }
.shelf figcaption b { color: var(--text); font-weight: 600; display: block; }

/* ---------- yours ---------- */
.yours { text-align: center; }
.yours .kicker { justify-content: center; }
.yours .kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.nos { display: flex; flex-wrap: wrap; justify-content: center; gap: .05em .5em; font: 800 clamp(3rem, 10.5vw, 9rem)/.92 var(--display); font-stretch: condensed; text-transform: uppercase; margin-bottom: 36px; }
.nos li:nth-child(2) { color: var(--amber); }
.nos li:nth-child(3) { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.yours .lede { margin-inline: auto; color: var(--muted); }
.yours .lede b { color: var(--text); font-weight: 500; }
.yours__more { margin-top: 22px; }

/* ---------- final ---------- */
.final { text-align: center; padding-block: clamp(90px, 13vw, 180px); position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 100%, rgba(var(--glow), .3), transparent 70%); pointer-events: none; }
.final .wrap { position: relative; }
.final img.icon { margin: 0 auto 30px; border-radius: 22.5%; box-shadow: 0 20px 60px -10px rgba(var(--glow), .6), 0 0 0 1px rgba(255, 255, 255, .14); }
.final p.lede { margin: 24px auto 0; color: var(--muted); }
.final .cta-row { justify-content: center; margin-top: 32px; }
.final .fine { margin: 44px auto 0; text-align: left; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px 110px; font-size: .86rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--amber); }
.foot-small p + p { margin-top: 8px; }

/* ---------- document pages ---------- */
.doc-hero { padding-block: clamp(56px, 9vw, 120px) clamp(36px, 5vw, 60px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.doc-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 85% 0, rgba(var(--glow), .2), transparent 70%); pointer-events: none; }
.doc-hero .wrap { position: relative; }
.doc-hero h1 { font-size: clamp(3.4rem, 11vw, 8rem); margin-bottom: 24px; }
.doc-hero .lede { color: var(--text); }
.doc-hero .meta { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.draft { margin-top: 22px; border: 1px dashed rgba(255, 196, 107, .5); border-radius: 12px; padding: 14px 18px; font-size: .9rem; color: var(--muted); max-width: 46em; }
.draft b { color: var(--flame); }
.doc-wrap { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 80px) clamp(70px, 9vw, 120px); }
@media (min-width: 900px) { .doc-wrap { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; } .toc { position: sticky; top: 92px; align-self: start; } }
.toc p { font: 600 .72rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.toc ol { counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 7px 0 7px 16px; color: var(--muted); text-decoration: none; font-size: .9rem; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--text); border-left-color: var(--amber); }
.doc { max-width: 720px; }
.doc section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 20px; }
.doc p, .doc li, .doc dd { color: #d2c8bc; }
.doc p + p, .doc p + ul, .doc ul + p, .doc p + dl, .doc p + .faq { margin-top: 14px; }
.doc strong, .doc dt { color: var(--text); font-weight: 600; }
.doc ul { display: grid; gap: 10px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.perm { display: grid; gap: 12px; }
.perm > div { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--panel); }
.perm dt { font: 700 1.2rem/1.1 var(--display); font-stretch: condensed; text-transform: uppercase; letter-spacing: .04em; color: var(--amber); margin-bottom: 6px; }
.mail a { font: 700 clamp(1.5rem, 4.6vw, 2.3rem)/1.1 var(--display); font-stretch: condensed; letter-spacing: .02em; overflow-wrap: anywhere; }
.path { font: 500 .86em/1 var(--mono); background: rgba(255, 255, 255, .08); border-radius: 6px; padding: 3px 7px; color: var(--text); white-space: nowrap; }
@media (max-width: 480px) { .path { white-space: normal; } }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.faq details[open] { border-color: rgba(255, 153, 102, .4); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--body); color: var(--amber); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 14px; }
.faq .answer { padding: 0 20px 20px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .1s; }
.js .reveal[data-d="2"] { transition-delay: .2s; }
.js .reveal[data-d="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .conductor .tl__bar { transform: none; }
  .js .conductor .tl__clash { opacity: 1; }
}
@media print {
  .js .reveal { opacity: 1; transform: none; }
  .site-header { position: static; }
}
