/* Hallmark · genre: atmospheric · macrostructure: Scene Reel (one full-bleed stage per product, stacked sheets) · theme: custom (warm black / condensed variable grotesque / signal chartreuse) · enrichment: live canvas per scene · nav: hero index + side rail · footer: Ft5 statement
 * tone: loud product brand · display: Archivo · body: Geist · mono: Geist Mono
 * pre-emit critique: P5 H4 E4 S5 R3 V5
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
body {
  margin: 0;
  background: var(--color-studio-paper);
  color: var(--color-studio-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink, var(--color-focus)); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--color-signal); color: var(--color-signal-ink); }

.skip {
  position: absolute; inset-inline-start: var(--space-md); top: var(--space-md); z-index: 20;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-signal); color: var(--color-signal-ink);
  border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

/* ---------- Hero ---------- */
.hero {
  --paper: var(--color-studio-paper);
  --ink: var(--color-studio-ink);
  --muted: var(--color-studio-muted);
  --accent: var(--color-signal);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "bar" "mark" "title" "index";
  row-gap: var(--space-lg);
  padding: var(--space-md) var(--page-gutter) calc(var(--space-3xl) + var(--sheet-radius));
  background: var(--paper);
  color: var(--ink);
  isolation: isolate;
  overflow: clip;
}
.hero__field {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity var(--dur-reveal) var(--ease-out);
}
.hero__field.is-on { opacity: 1; }
.hero__field { -webkit-mask-image: linear-gradient(90deg, var(--color-mask-soft), var(--color-mask-full)); mask-image: linear-gradient(90deg, var(--color-mask-soft), var(--color-mask-full)); }
[dir="rtl"] .hero__field { -webkit-mask-image: linear-gradient(270deg, var(--color-mask-soft), var(--color-mask-full)); mask-image: linear-gradient(270deg, var(--color-mask-soft), var(--color-mask-full)); }
.hero__bar {
  grid-area: bar;
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md);
  font-size: var(--text-sm);
}
.hero__brand {
  font-family: var(--font-brand); font-weight: 700; font-size: var(--text-md);
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.hero__mail { color: var(--muted); white-space: nowrap; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.hero__mail:hover { color: var(--ink); }
.hero__mail:active { color: var(--accent); }

.hero__mark {
  grid-area: mark;
  display: flex; align-items: flex-end;
  direction: ltr;
  font-family: var(--font-brand);
  font-size: var(--text-mark);
  line-height: 0.74;
  letter-spacing: -0.03em;
  font-weight: 800;
  white-space: nowrap;
  margin-left: -0.03em;
  padding-top: 0.04em;
  user-select: none;
}
.hero__mark span { display: inline-block; font-variation-settings: "wght" var(--g, 800), "wdth" var(--d, 88); will-change: font-variation-settings; }
.hero__mark span:nth-child(2), .hero__mark span:nth-child(3) { color: var(--accent); transition: color var(--dur-long) var(--ease-out); }

.hero__title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: calc(var(--text-h1) * var(--fit, 1)); /* --fit comes from build.py: it shrinks a long slogan so each half stays on one line */
  font-weight: 800;
  font-stretch: var(--stretch-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  overflow-wrap: anywhere; min-width: 0;
}
.hero__title span { display: block; color: var(--accent); transition: color var(--dur-long) var(--ease-out); }

.hero__index { grid-area: index; min-width: 0; }
.hero__note { color: var(--muted); font-size: var(--text-base); line-height: 1.4; max-width: 34ch; margin-bottom: var(--space-md); }
.hero__index ol { border-bottom: var(--rule-hair) solid var(--color-studio-rule); }
.hero__index a {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-sm);
  min-height: 3.75rem;
  padding-block: var(--space-xs);
  border-top: var(--rule-hair) solid var(--color-studio-rule);
  text-decoration: none;
}
.hero__index img { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-icon); transition: transform var(--dur-short) var(--ease-out); }
.hero__index .app {
  font-family: var(--font-brand); font-weight: 750; font-stretch: 84%;
  font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.05;
  white-space: nowrap;
  transition: transform var(--dur-short) var(--ease-out);
}
.hero__index .job {
  font-size: clamp(0.75rem, 3.4vw, 0.9375rem);
  color: var(--muted); white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}
.hero__index a::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-long) var(--ease-out);
}
.hero__index a:hover .app, .hero__index a.is-hot .app { transform: translateX(var(--space-xs)); }
.hero__index a:hover .job, .hero__index a.is-hot .job { color: var(--accent); }
.hero__index a:hover::after, .hero__index a.is-hot::after { transform: scaleX(1); }
.hero__index a:active img { transform: scale(0.92); }

@media (min-width: 60rem) {
  .hero {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "bar bar" "mark index" "title index";
    column-gap: var(--space-3xl);
    row-gap: var(--space-xl);
    padding-top: var(--space-lg);
  }
  .hero__mark { font-size: min(28vw, 58vh); align-self: end; }
}
@media (max-width: 23.4rem) {
  .hero__title { font-size: calc(var(--text-h1) * var(--fit, 1) * 0.78); }
}
@media (min-width: 60rem) and (max-width: 82rem) {
  /* the two-column hero is at its narrowest here, so the headline gives a little */
  .hero__title { font-size: calc(var(--text-h1) * var(--fit, 1) * 0.86); }
}
@media (min-width: 60rem) {
  .hero__index { align-self: end; }
  .hero__index a { min-height: 4.5rem; grid-template-columns: 3rem minmax(0, 1fr) auto; column-gap: var(--space-md); }
  .hero__index img { width: 3rem; height: 3rem; }
  .hero__index .app { font-size: var(--text-2xl); }
  .hero__note { font-size: var(--text-md); margin-bottom: var(--space-lg); }
}

/* ---------- Scenes: shared ---------- */
.scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-xl);
  margin-top: calc(var(--sheet-radius) * -1);
  padding: var(--space-2xl) var(--page-gutter) calc(var(--space-3xl) + var(--sheet-radius));
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  background: var(--paper);
  color: var(--ink);
  overflow: clip;
  isolation: isolate;
}
.scene__stage { position: relative; min-width: 0; }
.scene__stage canvas { width: 100%; height: 100%; }
.scene__copy { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); align-content: start; }
.scene__id { display: flex; align-items: center; gap: var(--space-md); }
.scene__icon { width: 3.5rem; height: 3.5rem; border-radius: var(--radius-icon); }
.scene__icon--mac { border-radius: 0; }
.scene__meta {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--muted);
}
.scene__head { font-weight: inherit; font-size: inherit; min-width: 0; }
.scene__name {
  display: block;
  font-family: var(--font-brand); font-weight: 750; font-stretch: 90%;
  font-size: var(--text-xl); letter-spacing: -0.01em; line-height: 1.1;
  color: var(--accent);
}
.scene__job {
  display: block;
  margin-top: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-job);
  font-weight: 800;
  font-stretch: var(--stretch-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
  overflow-wrap: anywhere; min-width: 0;
}
.scene__body { display: grid; row-gap: var(--space-md); max-width: 58ch; }
.scene__body p { font-size: var(--text-md); line-height: 1.5; color: var(--ink); }
.scene__body p + p { color: var(--muted); }
.scene__links { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-sm); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent, var(--paper)); }
.btn--solid:active { background: var(--muted); border-color: var(--muted); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }


@media (min-width: 60rem) {
  .scene {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-xl);
    row-gap: var(--space-3xl);
    padding-top: var(--space-3xl);
    padding-bottom: calc(var(--space-5xl) + var(--sheet-radius));
  }
  .scene__icon { width: 4.5rem; height: 4.5rem; }
  .scene__body p { font-size: var(--text-lg); line-height: 1.42; }
}

/* without JS the canvas stages have nothing to draw, so they fold away */
html:not(.js) .scene__stage:has(> canvas) { display: none; }
html:not(.js) .scene--ephem { padding-top: var(--space-2xl); min-height: 0; }

/* explainer blocks: each product gets its own form */
.more { min-width: 0; }
.more h3 { margin: 0; font-family: var(--font-display); font-weight: 750; font-stretch: 86%; font-size: var(--text-lg); letter-spacing: -0.01em; line-height: 1.15; }
.more p { color: var(--muted); font-size: var(--text-base); line-height: 1.45; }
@media (min-width: 60rem) {
  .more h3 { font-size: var(--text-xl); }
  .more p { font-size: var(--text-md); }
}

/* reveal: only when JS runs */
.js .scene__job, .js .scene__name, .js .scene__body > *, .js .scene__id, .js .more > * {
  opacity: 0; transform: translate3d(0, 2rem, 0);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.js .is-in .scene__job, .js .is-in .scene__name, .js .is-in .scene__body > *, .js .is-in .scene__id, .js .more.is-in > * { opacity: 1; transform: none; }
.js .more.is-in > :nth-child(2) { transition-delay: 90ms; }
.js .more.is-in > :nth-child(3) { transition-delay: 180ms; }
.js .more.is-in > :nth-child(4) { transition-delay: 270ms; }
.js .more.is-in > :nth-child(5) { transition-delay: 360ms; }
.js .more.is-in > :nth-child(n+6) { transition-delay: 450ms; }
.js .is-in .scene__name { transition-delay: 60ms; }
.js .is-in .scene__job { transition-delay: 120ms; }
.js .is-in .scene__body > :nth-child(1) { transition-delay: 240ms; }
.js .is-in .scene__body > :nth-child(2) { transition-delay: 320ms; }
.js .is-in .scene__body > :nth-child(3) { transition-delay: 400ms; }
.scene:not(.is-live) *, .scene:not(.is-live) *::before { animation-play-state: paused !important; }

/* ---------- Mendus ---------- */
.scene--mendus {
  --paper: var(--color-mendus-paper); --ink: var(--color-mendus-ink); --muted: var(--color-mendus-muted);
  --accent: var(--color-mendus-accent); --rule: color-mix(in oklch, var(--color-mendus-ink) 18%, transparent);
}
.scene--mendus .scene__stage { height: 58svh; min-height: 22rem; max-height: 34rem; margin-inline: calc(var(--page-gutter) * -1); }
.modes li {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: var(--space-md); row-gap: var(--space-2xs);
  padding-block: var(--space-lg);
  border-top: var(--rule-hair) solid var(--rule);
}
.modes li:last-child { border-bottom: var(--rule-hair) solid var(--rule); }
.modes__mark { grid-row: 1 / span 2; position: relative; height: 2.5rem; align-self: start; }
.modes__mark i { position: absolute; top: 0.25rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-mendus-you); }
.modes__mark--two i:nth-child(2) { left: 1.25rem; background: var(--color-mendus-partner); mix-blend-mode: screen; }
.modes__mark--proof i { width: 1.375rem; height: 1.875rem; border-radius: var(--radius-sm); background: transparent; border: 2px solid var(--color-mendus-accent); }
.modes__mark--proof i:nth-child(2) { left: 0.625rem; top: 0.375rem; background: var(--color-mendus-paper); }
.modes__mark--proof i:nth-child(3) { left: 1.25rem; top: 0.5rem; background: var(--color-mendus-accent); }
@media (min-width: 60rem) {
  .scene--mendus .scene__stage { grid-column: 1 / -1; height: 62vh; max-height: none; }
  .scene--mendus .scene__copy { grid-column: 1 / 8; }
  .scene--mendus .modes { grid-column: 8 / -1; align-self: end; }
}

/* ---------- TARS ---------- */
.scene--tars {
  --paper: var(--color-tars-paper); --ink: var(--color-tars-ink); --muted: var(--color-tars-muted);
  --accent: var(--color-tars-ember); --rule: color-mix(in oklch, var(--color-tars-ink) 16%, transparent);
}
.scene--tars::before {
  content: ""; position: absolute; z-index: -1; left: -20%; right: -20%; top: 6svh; height: 70svh;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--color-tars-dawn), transparent 70%);
  opacity: var(--dawn, 0.5);
}
.scene--tars .scene__stage { height: 58svh; min-height: 23rem; max-height: 32rem; margin-inline: calc(var(--page-gutter) * -1); touch-action: pan-y; }
.scene--tars .scene__stage canvas { cursor: pointer; }
.morning li {
  position: relative;
  display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: var(--space-md); row-gap: var(--space-2xs);
  padding-block: var(--space-md);
  border-top: 2px dotted var(--rule);
}
.morning li:last-child { border-bottom: 2px dotted var(--rule); }
.morning time { grid-row: 1 / span 2; font-family: var(--font-mono); font-weight: 600; font-size: var(--text-md); color: var(--color-tars-ember); padding-top: 0.15em; }
@media (min-width: 60rem) {
  .scene--tars .scene__stage { grid-column: 1 / -1; height: 66vh; max-height: none; }
  .scene--tars .morning { grid-column: 1 / 6; grid-row: 2; align-self: end; }
  .scene--tars .scene__copy { grid-column: 7 / -1; grid-row: 2; }
  .morning li { grid-template-columns: 5rem minmax(0, 1fr); padding-block: var(--space-lg); }
}

/* ---------- ZyQuit ---------- */
.scene--zyquit {
  --paper: var(--color-zy-paper); --ink: var(--color-zy-ink); --muted: var(--color-zy-muted);
  --accent: var(--color-zy-green-deep); --rule: color-mix(in oklch, var(--color-zy-ink) 14%, transparent);
}
.scene--zyquit .scene__stage { height: 74svh; min-height: 30rem; max-height: 42rem; }
.facts li {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xs);
  padding-block: var(--space-md);
  border-top: var(--rule-hair) solid var(--rule);
}
.facts li:last-child { border-bottom: var(--rule-hair) solid var(--rule); }
.facts b {
  font-family: var(--font-display); font-weight: 800; font-stretch: 72%;
  font-size: clamp(2.75rem, 3.9vw, 3.5rem); line-height: 0.95; letter-spacing: -0.015em;
  color: var(--color-zy-green-deep); white-space: nowrap;
}
.facts p { max-width: 36ch; }
@media (min-width: 60rem) {
  .scene--zyquit .scene__stage { grid-column: 1 / 7; grid-row: 1 / span 2; position: sticky; top: var(--space-xl); height: calc(100vh - var(--space-3xl)); max-height: 58rem; align-self: start; }
  .scene--zyquit .scene__copy { grid-column: 7 / -1; }
  .scene--zyquit .facts { grid-column: 7 / -1; }
  .facts li { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: var(--space-lg); align-items: center; padding-block: var(--space-lg); }
}

/* ---------- SignArmor ---------- */
.scene--signarmor {
  --paper: var(--color-sa-paper); --ink: var(--color-sa-ink); --muted: var(--color-sa-muted);
  --accent: var(--color-sa-amber); --on-accent: var(--color-sa-paper); --rule: color-mix(in oklch, var(--color-sa-ink) 16%, transparent);
}
.scene--signarmor .scene__stage { min-height: 34rem; padding-block: var(--space-xl) var(--space-3xl); }
.scan { direction: ltr; position: relative; display: grid; place-items: center end; height: 100%; perspective: 75rem; padding-right: 12%; }
.scan__sheet {
  position: relative;
  width: min(76%, 26rem);
  display: flex; flex-direction: column; gap: var(--space-sm);
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-sa-sheet);
  border-radius: var(--radius-sm);
  transform: rotateX(10deg) rotateZ(-3deg);
  box-shadow: 0 2.5rem 5rem -1.5rem var(--color-sa-paper-2), 0 0 0 var(--rule-hair) var(--color-sa-sheet-line);
}
.scan__title {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); letter-spacing: -0.01em;
  color: var(--color-sa-sheet-ink); margin-bottom: var(--space-xs);
}
.scan__sheet i { display: block; height: 0.375rem; width: var(--w); border-radius: var(--radius-pill); background: var(--color-sa-sheet-line); transition: background-color var(--dur-short) var(--ease-out); }
.scan__clause {
  position: relative; display: flex; flex-direction: column; gap: var(--space-sm);
  margin: calc(var(--space-xs) * -1); padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-short) var(--ease-out);
}
.scan__clause.is-hit { background: var(--color-sa-red-wash); }
.scan__clause.is-hit i { background: var(--color-sa-red); }
.scan__clause[data-flag="2"].is-hit { background: var(--color-sa-amber-wash); }
.scan__clause[data-flag="2"].is-hit i { background: var(--color-sa-amber); }
.scan__tag {
  position: absolute; right: calc(var(--space-2xl) * -1); top: 50%;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-style: normal; font-weight: 600; font-size: var(--text-xs); letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--color-sa-sheet);
  background: var(--color-sa-red);
  opacity: 0; transform: translate3d(1rem, -50%, 0) scale(0.7);
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-long) var(--ease-spring);
}
.scan__tag--amber { background: var(--color-sa-amber); color: var(--color-sa-paper); }
.scan__clause.is-hit .scan__tag { opacity: 1; transform: translate3d(0, -50%, 0) scale(1); }
.scan__beam {
  position: absolute; left: -6%; right: -6%; top: 0; height: 2px;
  background: var(--color-sa-amber);
  box-shadow: 0 0 1.5rem 0.25rem var(--color-sa-amber-wash);
  opacity: 0;
  transform: translate3d(0, var(--y, 0px), 0);
}
.scan__beam::before {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 4.5rem;
  background: linear-gradient(to top, var(--color-sa-amber-wash), transparent);
}
.js .scan__beam { opacity: var(--beam, 0); }
.scan__score {
  position: absolute; left: 0; bottom: calc(var(--space-2xl) * -1);
  width: 10rem; height: 10rem;
  display: grid; place-items: center; align-content: center; row-gap: var(--space-2xs);
  background: var(--color-sa-paper);
  border-radius: 50%;
  box-shadow: 0 1rem 2.5rem -0.5rem var(--color-sa-paper), 0 0 0 0.5rem var(--color-sa-paper);
}
.scan__score svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.scan__ring-bg, .scan__ring { fill: none; stroke-width: 6; }
.scan__ring-bg { stroke: var(--rule); }
.scan__ring { stroke: var(--color-sa-amber); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--off, 31); }
.scan__num { position: relative; font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: 3.75rem; line-height: 0.85; font-variant-numeric: tabular-nums; }
.scan__of { position: relative; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.reads { display: flex; flex-wrap: wrap; gap: var(--space-2xs) 0; color: var(--muted); }
.reads li { font-weight: 500; font-size: var(--text-base); white-space: nowrap; }
.reads li:not(:last-child)::after { content: "·"; margin: 0 0.6em; opacity: 0.5; }
.reads li:nth-child(1), .reads li:nth-child(4) { color: var(--color-sa-amber); }
@media (min-width: 60rem) {
  .scene--signarmor .scene__stage { grid-column: 7 / -1; grid-row: 1 / span 2; position: sticky; top: var(--space-xl); height: calc(100vh - var(--space-3xl)); max-height: 56rem; align-self: start; }
  .scene--signarmor .scene__copy { grid-column: 1 / 7; grid-row: 1; }
  .scene--signarmor .reads { grid-column: 1 / 7; grid-row: 2; align-self: start; }
  .reads li { font-size: var(--text-md); }
  .scan { padding-right: 6%; }
  .scan__sheet { width: min(66%, 30rem); gap: var(--space-md); padding: var(--space-2xl) var(--space-xl); }
  .scan__sheet i { height: 0.5rem; }
  .scan__score { width: 15rem; height: 15rem; left: 0; bottom: 4%; row-gap: var(--space-xs); }
  .scan__num { font-size: 6rem; }
  .scan__of { font-size: var(--text-sm); }
}

/* ---------- Ephem ---------- */
.scene--ephem {
  --paper: var(--color-ephem-paper); --ink: var(--color-ephem-ink); --muted: var(--color-ephem-muted);
  --accent: var(--color-ephem-blue); --on-accent: var(--color-ephem-paper); --rule: color-mix(in oklch, var(--color-ephem-ink) 16%, transparent);
  padding-top: 52svh;
}
.scene--ephem .scene__stage { position: absolute; inset: 0; z-index: -1; }
.scene--ephem .scene__copy { position: relative; }
.scene--ephem .scene__copy::before {
  content: ""; position: absolute; z-index: -1; inset: calc(var(--space-3xl) * -1) calc(var(--page-gutter) * -1);
  background: radial-gradient(ellipse 70% 60% at 30% 50%, var(--color-ephem-paper), transparent 75%);
  opacity: 0.85;
}
.skies { position: relative; }
.skies::before {
  content: ""; position: absolute; z-index: -1; inset: calc(var(--space-2xl) * -1) calc(var(--page-gutter) * -1);
  background: radial-gradient(ellipse 70% 60% at 50% 50%, var(--color-ephem-paper), transparent 78%);
  opacity: 0.8;
}
.skies li {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: var(--space-md); row-gap: var(--space-2xs);
  padding-block: var(--space-lg);
  border-top: var(--rule-hair) solid var(--rule);
}
.skies li:last-child { border-bottom: var(--rule-hair) solid var(--rule); }
.skies__moon {
  grid-row: 1 / span 2; align-self: start;
  width: 2rem; height: 2rem; margin-top: var(--space-2xs); border-radius: 50%;
  background: var(--color-ephem-warm);
  box-shadow: inset var(--phase, 0rem) 0 0 0 var(--color-ephem-shade), 0 0 1.25rem -0.25rem var(--color-ephem-blue);
}
.skies__moon--1 { --phase: -1.5rem; }
.skies__moon--2 { --phase: -1rem; }
.skies__moon--3 { --phase: -0.5rem; }
@media (min-width: 60rem) {
  .scene--ephem { padding-top: 19rem; min-height: 110vh; align-items: center; }
  .scene--ephem .scene__copy { grid-column: 1 / 7; }
  .scene--ephem .skies { grid-column: 8 / -1; }
}

/* ---------- aibar ---------- */
/* The notch is drawn after the app: NotchShape ears, black body, the tile dashboard, the orb rings, the stretch scene.
   Everything inside is sized in em, and the font-size of .nb is the scale, so one number fits it to any width. */
.scene--aibar {
  --paper: var(--color-aibar-paper); --ink: var(--color-aibar-ink); --muted: var(--color-aibar-muted);
  --accent: var(--color-aibar-amber); --on-accent: var(--color-aibar-paper); --rule: color-mix(in oklch, var(--color-aibar-ink) 16%, transparent);
  padding-top: 0;
  background:
    radial-gradient(ellipse 70% 30rem at 50% 0%, var(--color-aibar-paper-2), transparent 70%),
    var(--color-aibar-paper);
}
.scene--aibar .scene__stage { height: 20rem; margin-inline: calc(var(--page-gutter) * -1); }
.nb {
  --u: min(1px, calc((100vw - 1rem) / 500));
  --w: 31.25em; --h: 19.25em; --ear: 0.875em; --rb: 1.75em;
  position: absolute; left: 0; right: 0; top: 0;
  display: grid; justify-items: center;
  font-size: calc(var(--u) * 16);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", var(--font-body);
  color: var(--color-aibar-text);
  line-height: 1.2;
}
.nb[data-state="closed"] { --w: 12.5em; --h: 2em; --ear: 0.375em; --rb: 0.5em; }
.nb[data-state="wing"] { --w: 21.5em; --h: 2em; --ear: 0.375em; --rb: 0.5em; }
.nb__body {
  position: relative;
  width: var(--w); height: var(--h);
  background: var(--color-aibar-notch);
  border-radius: 0 0 var(--rb) var(--rb);
  transition: width 500ms cubic-bezier(0.34, 1.56, 0.64, 1), height 500ms cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 500ms var(--ease-out);
}
.nb[data-state="closed"] .nb__body, .nb[data-state="wing"] .nb__body { transition-duration: 300ms; transition-timing-function: var(--ease-out); }
.nb__body::before, .nb__body::after {
  content: ""; position: absolute; top: 0; width: var(--ear); height: var(--ear);
  transition: width 300ms var(--ease-out), height 300ms var(--ease-out);
}
.nb__body::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--ear) - 0.5px), var(--color-aibar-notch) var(--ear)); }
.nb__body::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--ear) - 0.5px), var(--color-aibar-notch) var(--ear)); }

.nb__wing { position: absolute; top: 0; height: 2em; display: flex; align-items: center; gap: 0.4em; opacity: 0; transition: opacity 160ms var(--ease-out); font-size: 0.75em; font-weight: 600; font-variant-numeric: tabular-nums; }
.nb__wing--l { left: 1.1em; }
.nb__wing--r { right: 1.1em; }
.nb__wing svg { width: 1em; height: 1em; fill: var(--color-aibar-text-3); }
.nb[data-state="wing"] .nb__wing { opacity: 1; transition-delay: 160ms; }
.nb__rec { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--color-aibar-mic); animation: blink 1s var(--ease-in-out) infinite alternate; }
@keyframes blink { to { opacity: 0.35; } }
.nb__bars { display: flex; align-items: center; gap: 0.16em; height: 1.1em; }
.nb__bars i { width: 0.18em; height: 100%; border-radius: var(--radius-pill); background: var(--color-aibar-text); transform: scaleY(0.3); animation: bar 0.82s var(--ease-in-out) infinite alternate; }
.nb__bars i:nth-child(2) { animation-duration: 0.95s; } .nb__bars i:nth-child(3) { animation-duration: 1.24s; }
.nb__bars i:nth-child(4) { animation-duration: 1.46s; } .nb__bars i:nth-child(5) { animation-duration: 0.7s; }
@keyframes bar { to { transform: scaleY(1); } }
.nb__wingtime, .nb[data-feat="dictate"] .nb__wing--r svg { display: none; }
.nb:not([data-feat="dictate"]) .nb__wingtime { display: inline; }
.nb:not([data-feat="dictate"]) .nb__rec, .nb:not([data-feat="dictate"]) .nb__bars { display: none; }

/* dashboard */
.nb__dash, .nb__stretch { position: absolute; inset: 0; width: 31.25em; height: 19.25em; left: 50%; margin-left: -15.625em; opacity: 0; pointer-events: none; transition: opacity 160ms var(--ease-out); }
.nb__dash {
  display: grid; gap: 0.5em; padding: 0.75em;
  grid-template-columns: 145fr 145fr 170fr;
  grid-template-rows: 2.375em minmax(0, 1fr) 2.375em 2.375em;
  grid-template-areas: "weather timer orb" "cal ctl orb" "ask ask orb" "drop drop sys";
}
.nb[data-state="open"]:not([data-feat="stretch"]) .nb__dash, .nb[data-state="open"][data-feat="stretch"] .nb__stretch { opacity: 1; transition: opacity 300ms var(--ease-out) 160ms; }
.nt {
  min-width: 0; display: flex; align-items: center; gap: 0.5em;
  padding-inline: 0.75em;
  background: var(--color-aibar-tile); border: 1px solid var(--color-aibar-tile-line); border-radius: 1.125em;
  font-size: 0.8125em; white-space: nowrap; overflow: hidden;
  opacity: 0; transform: scale(0.97);
  transition: opacity 160ms var(--ease-out), transform 300ms var(--ease-out), border-color 240ms var(--ease-out);
}
.nb[data-state="open"] .nt { opacity: 1; transform: none; }
.nb[data-state="open"] .nt:nth-child(1) { transition-delay: 160ms; } .nb[data-state="open"] .nt:nth-child(2) { transition-delay: 185ms; }
.nb[data-state="open"] .nt:nth-child(3) { transition-delay: 210ms; } .nb[data-state="open"] .nt:nth-child(4) { transition-delay: 235ms; }
.nb[data-state="open"] .nt:nth-child(5) { transition-delay: 260ms; } .nb[data-state="open"] .nt:nth-child(7) { transition-delay: 285ms; }
.nb[data-state="open"] .nt:nth-child(8) { transition-delay: 310ms; } .nb[data-state="open"] .nt:nth-child(9) { transition-delay: 335ms; }
.nb[data-state="open"] .nt:nth-child(10) { transition-delay: 360ms; }
.nt svg { flex: none; width: 1.15em; height: 1.15em; fill: currentColor; stroke: currentColor; }
.nt b { font-weight: 700; }
.nt--weather { grid-area: weather; background: var(--color-aibar-weather); border-color: transparent; }
.nt--weather svg { fill: var(--color-mendus-accent); stroke: none; }
.nt--weather b { font-size: 1.1em; }
.nt--weather span { margin-left: auto; font-weight: 600; color: var(--color-aibar-text-2); }
.nt--timer { grid-area: timer; }
.nt--timer svg { color: var(--color-aibar-sunrise); stroke: var(--color-aibar-sunrise); }
.nt--timer b { font-size: 1.1em; font-variant-numeric: tabular-nums; }
.nt--cal { grid-area: cal; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0.35em; padding-block: 0.75em; }
.nt--cal p { display: grid; grid-template-columns: auto auto; column-gap: 0.4em; align-items: baseline; justify-content: start; }
.nt--cal b { grid-row: 1 / span 2; font-size: 2.3em; line-height: 0.9; letter-spacing: -0.03em; }
.nt--cal em { font-style: normal; font-weight: 700; color: var(--color-aibar-mic); }
.nt--cal span { color: var(--color-aibar-text-2); font-weight: 600; }
.nt--cal small { font-size: 0.92em; color: var(--color-aibar-text-2); }
.nt--ctl { grid-area: ctl; display: grid; grid-template-columns: 1fr 1fr; place-items: center; gap: 0.4em; padding: 0.7em; }
.nt--ctl i { display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 3.6em; border-radius: 50%; background: var(--color-aibar-control); color: var(--color-aibar-text-2); }
.nt--ask { grid-area: ask; color: var(--color-aibar-text-2); font-size: 0.9em; }
.nt--ask svg { fill: var(--color-aibar-orb); stroke: none; }
.nb[data-feat="ask"] .nt--ask { border-color: var(--color-aibar-orb); color: var(--color-aibar-text); }
.nt--drop { grid-area: drop; color: var(--color-aibar-text-2); font-weight: 600; }
.nt--drop svg { fill: none; }
.nb__chips { margin-left: auto; display: flex; gap: 0.3em; }
.nb__chips i { padding: 0.15em 0.5em; border-radius: 0.5em; background: var(--color-aibar-control); font-style: normal; font-size: 0.85em; font-weight: 700; color: var(--color-aibar-sunrise); opacity: 0; transform: translate3d(0, 2.5em, 0) rotate(8deg); transition: opacity 160ms var(--ease-out), transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.nb[data-state="open"][data-feat="shelf"] .nt--drop { border-color: var(--color-aibar-orb); color: var(--color-aibar-text); }
.nb[data-state="open"][data-feat="shelf"] .nb__chips i { opacity: 1; transform: none; }
.nb[data-state="open"][data-feat="shelf"] .nb__chips i:nth-child(1) { transition-delay: 500ms; }
.nb[data-state="open"][data-feat="shelf"] .nb__chips i:nth-child(2) { transition-delay: 800ms; }
.nb[data-state="open"][data-feat="shelf"] .nb__chips i:nth-child(3) { transition-delay: 1100ms; }
.nt--music, .nt--sun { display: none; }
.nt--music { grid-area: music; flex-direction: column; justify-content: center; gap: 0.25em; color: var(--color-aibar-text-2); }
.nt--music svg { width: 1.6em; height: 1.6em; stroke: none; }
.nt--music b { color: var(--color-aibar-text); }
.nt--sun { grid-area: sun; justify-content: space-between; font-size: 0.72em; font-weight: 600; font-variant-numeric: tabular-nums; }
.nt--sun .nt__arc { flex: 1; width: auto; height: 1em; fill: none; stroke: var(--color-aibar-text-3); }
.nt--sys { grid-area: sys; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 0.5em; row-gap: 0.1em; align-content: center; font-size: 0.68em; font-weight: 700; font-variant-numeric: tabular-nums; }
.nt__bar { height: 0.5em; border-radius: var(--radius-pill); background: var(--color-aibar-control); position: relative; overflow: hidden; }
.nt__bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--color-aibar-cpu); transform-origin: left; transform: scaleX(var(--v, 0.24)); transition: transform 500ms var(--ease-out); }
.nt__bar--ram::after { background: var(--color-aibar-ram); --v: 0.57; }

/* orb: four arcs at 0.60, 0.72, 0.84, 0.96 of the radius, neighbours turn opposite ways.
   Each arc is its own element, so the turn is a compositor transform and nothing repaints. */
.nb__orb { grid-area: orb; position: relative; display: grid; place-items: center; min-width: 0; transition: opacity 160ms var(--ease-out); }
.nb__orb svg { grid-area: 1 / 1; width: 100%; max-height: 100%; aspect-ratio: 1; overflow: visible; }
.orb-ghost { fill: none; stroke: var(--color-aibar-orb); stroke-width: 0.6; opacity: 0.12; }
.orb-ring { will-change: transform; animation: spin 9s linear infinite; }
.orb-ring circle { fill: none; stroke: var(--color-aibar-orb); stroke-width: 1.4; stroke-linecap: round; transition: stroke 240ms var(--ease-out); }
.orb-ring--1 { opacity: 0.55; animation-duration: 7s; }
.orb-ring--2 { opacity: 0.6; animation-duration: 11s; animation-direction: reverse; }
.orb-ring--3 { opacity: 0.65; animation-duration: 9s; }
.orb-ring--4 { opacity: 0.7; animation-duration: 14s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb-dot { fill: var(--color-aibar-orb); transition: opacity 160ms var(--ease-out); }
.orb-halo { fill: var(--color-aibar-orb); opacity: 0.18; transition: opacity 160ms var(--ease-out); }
.nb__mic { position: absolute; display: grid; place-items: center; opacity: 0; transition: opacity 160ms var(--ease-out); }
.nb__mic svg { width: 1.1em; height: 1.1em; fill: var(--color-aibar-sunrise); stroke: var(--color-aibar-sunrise); }
.nb[data-orb="rec"] .orb-ring circle, .nb[data-orb="rec"] .orb-ghost { stroke: var(--color-aibar-mic); }
.nb[data-orb="rec"] .orb-ring { animation-duration: 3s; }
.nb[data-orb="rec"] .orb-dot, .nb[data-orb="rec"] .orb-halo { opacity: 0; }
.nb[data-orb="rec"] .nb__mic { opacity: 1; }
.nb[data-state="closed"] .nb__orb, .nb[data-state="wing"] .nb__orb { opacity: 0; }

/* stretch break: the whole notch turns to it */
.nb__stretch {
  display: grid; grid-template-columns: minmax(0, 1fr) 8.5em minmax(0, 1fr); align-items: center; column-gap: 0.75em;
  padding: 2em 1.25em 1em;
  background: radial-gradient(circle at 50% 55%, var(--color-aibar-tile) 0, transparent 60%);
}
.nb__ex { display: grid; row-gap: 0.4em; min-width: 0; transform: translate3d(-0.875em, 0, 0); transition: transform 500ms cubic-bezier(0.34, 1.4, 0.64, 1) 80ms; }
.nb__ex small { font-size: 0.625em; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-aibar-orb); }
.nb__ex b { font-size: 1.15em; font-weight: 700; line-height: 1.15; }
.nb__ex span { font-size: 0.72em; font-weight: 500; color: var(--color-aibar-text-2); }
.nb .nb__figure { width: 8.5em; height: 10.5em; transform-origin: top; transform: scale(0.85); transition: transform 500ms cubic-bezier(0.34, 1.4, 0.64, 1) 80ms; }
.nb__btns { display: grid; row-gap: 0.5em; justify-self: center; width: min(100%, 10.5em); transform: translate3d(0.875em, 0, 0); transition: transform 500ms cubic-bezier(0.34, 1.4, 0.64, 1) 80ms; }
.nb__btns span { display: grid; grid-auto-flow: column; justify-content: center; gap: 0.35em; align-items: center; min-height: 2em; border-radius: var(--radius-pill); background: var(--color-aibar-control); font-size: 0.8125em; font-weight: 500; white-space: nowrap; }
.nb__btns .is-main { min-height: 2.25em; background: var(--color-aibar-orb); color: var(--color-aibar-notch); font-size: 0.875em; font-weight: 600; }
.nb__btns em { font-style: normal; color: var(--color-aibar-text-3); }
.nb[data-state="open"][data-feat="stretch"] .nb__ex, .nb[data-state="open"][data-feat="stretch"] .nb__btns, .nb[data-state="open"][data-feat="stretch"] .nb__figure { transform: none; }

/* dictation lands in whatever has focus, so it is shown under the notch */
.nb__typed {
  margin-top: 3.2em; max-width: 26em; padding-inline: 1em; text-align: center;
  font-size: 1.5em; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; color: var(--color-aibar-ink);
  opacity: 0; transition: opacity 240ms var(--ease-out);
}
.nb[data-feat="dictate"][data-state="wing"] .nb__typed { opacity: 1; }
.nb__typed::after { content: ""; display: inline-block; width: 2px; height: 0.95em; margin-left: 0.1em; vertical-align: -0.1em; background: var(--color-aibar-orb); animation: blink 0.6s var(--ease-in-out) infinite alternate; }

.feats { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: var(--rule-hair) solid var(--rule); }
.feats li {
  position: relative;
  padding-block: var(--space-md); padding-inline-start: var(--space-lg);
  border-top: var(--rule-hair) solid var(--rule);
  cursor: pointer;
  transition: opacity var(--dur-short) var(--ease-out);
}
.feats li::before { content: ""; position: absolute; inset-inline-start: 0; top: calc(var(--space-md) + 0.45em); width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--rule); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-long) var(--ease-spring); }
.feats h3 { margin: 0; font-family: var(--font-display); font-weight: 750; font-stretch: 86%; font-size: var(--text-lg); letter-spacing: -0.01em; line-height: 1.15; }
.feats p { color: var(--muted); font-size: var(--text-base); line-height: 1.4; margin-top: var(--space-2xs); }
.js .feats li:not(.is-on) { opacity: 0.55; }
.feats li.is-on::before { background: var(--color-aibar-orb); transform: scale(1.5); }
.feats li:hover { opacity: 1; }

@media (min-width: 60rem) {
  .scene--aibar .scene__stage { grid-column: 1 / -1; height: 20rem; margin-inline: 0; }
  .nb { --u: min(1.12px, calc((100vw - 4rem) / 900)); --w: 53.125em; --h: 16em; }
  .nb__dash, .nb__stretch { width: 53.125em; height: 16em; margin-left: -26.5625em; }
  .nb__dash {
    grid-template-columns: 145fr 145fr 215fr 130fr 162fr;
    grid-template-rows: 2.375em minmax(0, 1fr) 2.375em;
    grid-template-areas: "weather timer orb drop drop" "cal ctl orb music music" "ask ask orb sun sys";
  }
  .nt--music, .nt--sun { display: flex; }
  .nb__stretch { grid-template-columns: minmax(0, 1fr) 10em minmax(0, 1fr); padding: 2em 1.75em 1em; }
  .nb .nb__figure { width: 10em; height: 12.35em; }
  .nb__ex b { font-size: 1.3em; }
  .feats { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--space-lg); border-bottom: 0; }
  .feats li { padding: var(--space-lg) 0 0; border-top: 2px solid var(--rule); transition: opacity var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
  .feats li::before { display: none; }
  .feats li.is-on { border-top-color: var(--color-aibar-orb); }
  .feats h3 { font-size: var(--text-xl); }
  .scene--aibar .scene__copy { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-xl); }
  .scene--aibar .scene__id { grid-column: 1 / -1; }
  .scene--aibar .scene__head { grid-column: 1 / 8; }
  .scene--aibar .scene__body { grid-column: 8 / -1; align-self: end; }
}

/* ---------- Kybermark ---------- */
.scene--kyber {
  --paper: var(--color-kyber-paper); --ink: var(--color-kyber-ink); --muted: var(--color-kyber-muted);
  --accent: var(--color-kyber-accent); --rule: var(--color-kyber-rule);
}
.scene--kyber .scene__stage { height: 46svh; min-height: 19rem; max-height: 30rem; margin-inline: calc(var(--page-gutter) * -1); }
.scene--kyber .scene__job { font-size: clamp(2.75rem, 6vw, 5.25rem); }
.dates { position: relative; display: grid; align-content: start; }
.dates::before, .dates::after {
  content: ""; position: absolute; inset-inline-start: 0.3125rem; top: var(--space-md); bottom: var(--space-md); width: 2px;
  background: var(--rule);
}
.dates::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--run, 1)); }
.dates li {
  position: relative;
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: var(--space-md); align-items: baseline;
  padding-block: var(--space-md); padding-inline-start: var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--rule);
}
.dates li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: calc(var(--space-md) + 0.4em); width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent); z-index: 1;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-long) var(--ease-spring);
}
.dates__when { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.02em; color: var(--accent); white-space: nowrap; }
.dates__what { font-size: var(--text-md); line-height: 1.35; transition: color var(--dur-long) var(--ease-out); }
.js .dates li:not(.is-on) .dates__what, .js .dates li:not(.is-on) .dates__when { color: color-mix(in oklch, var(--ink) 38%, transparent); }
.dates li.is-on::before { background: var(--accent); transform: scale(1.25); }
.dates li:nth-child(4).is-on::before { background: var(--color-kyber-warn); border-color: var(--color-kyber-warn); }
.dates li:nth-child(5).is-on::before { background: var(--color-kyber-late); border-color: var(--color-kyber-late); }
@media (min-width: 60rem) {
  .scene--kyber .scene__stage { grid-column: 1 / -1; height: 52vh; max-height: none; }
  .scene--kyber .scene__copy { grid-column: 1 / 7; }
  .scene--kyber .dates { grid-column: 8 / -1; align-self: end; }
  .dates__what { font-size: var(--text-lg); }
}

/* ---------- Footer ---------- */
.foot {
  --ink: var(--color-signal-ink); --paper: var(--color-signal);
  position: relative;
  margin-top: calc(var(--sheet-radius) * -1);
  padding: var(--space-3xl) var(--page-gutter) var(--space-xl);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  background: var(--paper); color: var(--ink);
  display: grid; row-gap: var(--space-lg);
  overflow: clip;
}
.foot__ask { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; }
.foot__mail {
  justify-self: start;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 12.4vw, 14rem);
  font-weight: 800; font-stretch: 62%;
  line-height: 0.9; letter-spacing: -0.02em;
  white-space: nowrap; text-decoration: none;
  font-variation-settings: "wght" var(--g, 800), "wdth" 62;
  transition: font-variation-settings var(--dur-long) var(--ease-out);
}
.foot__mail:hover { --g: 400; }
.foot__mail:active { --g: 300; }
.foot__nav ul { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 2px solid var(--ink); }
.foot__nav a { font-weight: 600; font-size: var(--text-md); white-space: nowrap; text-decoration: none; padding-block: var(--space-xs); display: inline-block; }
.foot__nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
.foot__nav a:active { opacity: 0.6; }
.foot__fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-lg); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.02em; }
.foot__fine span { white-space: nowrap; }

/* ---------- Rail ---------- */
.rail { display: none; }
@media (min-width: 72rem) {
  .js .rail {
    position: fixed; inset-inline-end: var(--space-md); top: 50%; z-index: 10;
    display: grid; gap: var(--space-xs);
    transform: translateY(-50%);
    mix-blend-mode: difference;
  }
  .rail a { display: block; width: 0.375rem; height: 0.375rem; border-radius: var(--radius-pill); background: var(--color-studio-ink); opacity: 0.45; transform-origin: center; transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
  .rail a.is-on { opacity: 1; transform: scaleY(3.2); }
  .rail a:hover { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js .scene__job, .js .scene__name, .js .scene__body > *, .js .scene__id, .js .more > * { opacity: 1; transform: none; }
}

/* ---------- Languages ---------- */
.foot__langs ul { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }
.foot__langs a { display: inline-block; padding-block: var(--space-2xs); font-size: var(--text-sm); white-space: nowrap; text-decoration: none; opacity: 0.75; }
.foot__langs a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.25em; }
.foot__langs a:active { opacity: 0.5; }
.foot__langs a[aria-current="page"] { opacity: 1; font-weight: 700; }
[dir="rtl"] .hero__index a:hover .app, [dir="rtl"] .hero__index a.is-hot .app { transform: translateX(calc(var(--space-xs) * -1)); }
[dir="rtl"] .hero__index a::after { transform-origin: right; }
[dir="rtl"] .foot__mail, [dir="rtl"] .hero__mail { direction: ltr; }
.script-arab .scene__meta, .script-arab .hero__index .job { letter-spacing: 0; }

:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
