@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Dela Gothic One";
  src: url("/fonts/DelaGothicOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("/fonts/ZenMaruGothic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ground: #0c0b0d;
  --ground-2: #151317;
  --hair: rgba(255,245,231,.09);
  --notch: #000;
  --ink: #19181b;
  --knit: #302d31;
  --paper: #fff5e7;
  --wall: #f4e6d2;
  --line: #e3d5c1;
  --gold: #e9b65d;
  --gold-deep: #85590f;
  --blush: #ef9b94;
  --sage: #a9bf96;
  --verm: #d96249;
  --text: rgba(255,245,231,.92);
  --muted: rgba(255,245,231,.58);
  --ui: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Dela Gothic One", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --voice: "Zen Maru Gothic", ui-rounded, sans-serif;
  --ease: cubic-bezier(.23,1,.32,1);
  --spring: cubic-bezier(.34,1.3,.5,1);
  --gutter: 16px;
  --island-scale: .46;
  color-scheme: dark;
  background: var(--ground);
  color: var(--text);
  font-family: var(--ui);
  scrollbar-color: var(--knit) var(--ground);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
body, main { min-width: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
svg { display: block; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
input { caret-color: var(--gold-deep); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--knit); border: 2px solid var(--ground); border-radius: 8px; }
.symbols { position: absolute; overflow: hidden; pointer-events: none; }
.wrap { width: min(1440px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.spark { width: 18px; height: 18px; color: var(--gold); flex: none; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: .94; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(56px, 7.2vw, 112px); }
h2 { font-size: clamp(36px, 4.4vw, 64px); }
.skip { position: fixed; top: 8px; left: 8px; z-index: 300; padding: 12px 16px; border-radius: 8px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; outline-color: var(--gold-deep); }

.menu { position: absolute; inset: 0 0 auto; z-index: 20; height: 32px; border-bottom: 1px solid var(--hair); }
.menu-inner { height: 32px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 8px; height: 32px; font-weight: 700; font-size: 14px; text-decoration: none; }
.brand .spark { width: 14px; height: 14px; }
.menu-links { display: flex; align-items: flex-start; gap: 24px; align-self: flex-start; padding-top: 40px; }
.menu-download { display: none; font-size: 13px; line-height: 32px; text-decoration: none; }
.buy { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 12px; padding: 8px 12px 8px 20px; border: 1px solid var(--paper); border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 0 3px 0 var(--knit); transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), background 140ms; }
.buy .tag { display: inline-grid; place-items: center; min-height: 28px; padding: 4px 8px; border-radius: 6px; background: var(--gold); color: var(--ink); font: 12px/1 var(--mono); }
.buy:active { transform: translateY(2px) scale(.97); box-shadow: 0 1px 0 var(--knit); }
.buy:focus-visible { outline-color: var(--gold); }
.menu-buy { gap: 8px; padding-inline: 12px 8px; font-size: 12px; border-radius: 0 0 10px 10px; }
.menu-buy .tag { font-size: 11px; padding-inline: 6px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.download { display: inline-flex; align-items: center; min-height: 48px; text-underline-offset: 5px; text-decoration-color: rgba(255,245,231,.3); font-size: 14px; font-weight: 500; }
.meta { margin-top: 16px; color: var(--muted); font: 13px/1.4 var(--mono); }
.lede { color: var(--muted); font-size: 20px; line-height: 1.4; max-width: 35ch; }

.hero { min-height: 100svh; }
.hero-grid { display: grid; align-items: end; }
.hero-copy { position: relative; z-index: 2; padding-top: 128px; }
.hero h1 { max-width: 10ch; }
.hero .lede { margin-top: 24px; }
.actor { position: relative; isolation: isolate; min-width: 0; }
.actor > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.hero-actor { height: 52svh; min-height: 280px; margin-top: 24px; }
.light { position: absolute; z-index: -1; inset: -8% -4% -2%; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255,245,231,.08) 0 1px, transparent 1px 7px), repeating-linear-gradient(90deg, rgba(233,182,93,.055) 0 2px, transparent 2px 11px), radial-gradient(ellipse at 50% 96%, rgba(233,182,93,.22), rgba(255,245,231,.025) 52%, transparent 74%); -webkit-mask-image: radial-gradient(ellipse at 50% 58%, #000 8%, rgba(0,0,0,.86) 35%, transparent 69%); mask-image: radial-gradient(ellipse at 50% 58%, #000 8%, rgba(0,0,0,.86) 35%, transparent 69%); }

.static-story { padding-top: 64px; }
.story-step { padding-block: 64px; border-top: 1px solid var(--hair); scroll-margin-top: 48px; }
.step-title { max-width: 14ch; margin-bottom: 40px; }
.step-scene { display: grid; gap: 24px; min-width: 0; }
.island-frame { position: relative; height: calc(330px * var(--island-scale)); width: 100%; min-width: 0; }
.island-frame.compact { height: 40px; }
.island-frame.medium { height: calc(240px * var(--island-scale)); }
.static-actor { height: 340px; max-width: 420px; width: 100%; margin-inline: auto; }
.static-terminals { display: grid; gap: 12px; min-width: 0; }
.desktop-actor { height: 420px; }
.desktop-actor .desktop-still { width: 100%; object-fit: contain; }

.island {
  --muted: rgba(25,24,27,.68);
  --idle-h: 34px;
  position: absolute;
  top: 0;
  left: 50%;
  width: 186px;
  height: var(--idle-h);
  transform: translateX(-50%) scale(var(--island-scale));
  transform-origin: top center;
  background: var(--notch);
  border-radius: 0 0 16px 16px;
  color: var(--paper);
  font: 13px/1.4 var(--ui);
  transition: width .48s var(--spring), height .48s var(--spring), border-radius .48s var(--ease);
  user-select: none;
  pointer-events: none;
}
.island[data-size="peek"] { width: 460px; height: calc(var(--idle-h) + 98px); border-radius: 0 0 28px 28px; }
.island[data-size="note"] { width: 520px; height: calc(var(--idle-h) + 140px); border-radius: 0 0 30px 30px; }
.island[data-size="mid"] { width: 580px; height: calc(var(--idle-h) + 206px); border-radius: 0 0 32px 32px; }
.island[data-size="open"] { width: 580px; height: calc(var(--idle-h) + 296px); border-radius: 0 0 32px 32px; }
.island[data-size="tall"] { width: 600px; height: calc(var(--idle-h) + 256px); border-radius: 0 0 32px 32px; }
.island[data-size="ask"] { width: 600px; height: calc(var(--idle-h) + 296px); border-radius: 0 0 32px 32px; }
.island .wing { position: absolute; top: 0; height: var(--idle-h); display: flex; align-items: center; transition: opacity .2s; }
.island .wing.l { left: 16px; gap: 6px; }
.island .wing.r { right: 16px; gap: 8px; font: 500 12px var(--ui); font-variant-numeric: tabular-nums; color: rgba(255,245,231,.82); white-space: nowrap; }
.island .eyes { display: block; width: 72px; height: 26px; border-radius: 13px; background: url("/her/idle.webp") 50% 49% / 142px auto no-repeat; }
.island[data-empty="true"] .wing.l { left: 57px; }
.island[data-price="true"] .wing.l { opacity: 0; }
.island[data-price="true"] .wing.r { left: 12px; right: 12px; justify-content: center; }
.island .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--knit); font-size: 11px; }
.island .badge.hot { background: var(--blush); color: var(--ink); }
.island:not([data-size="idle"]) .wing.l { opacity: 0; }
.island .spark.alert { color: var(--verm); }
.island .panel { position: absolute; left: 12px; right: 12px; top: calc(var(--idle-h) + 6px); bottom: 12px; display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 12px; opacity: 1; transform: none; transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.island[data-size="idle"] .panel { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.island .seat { position: relative; min-width: 0; }
.island .bust { position: absolute; left: -30px; bottom: -12px; width: 176px; max-width: none; height: 210px; object-fit: contain; transform-origin: 50% 90%; -webkit-mask-image: linear-gradient(#000 78%, transparent 99%); mask-image: linear-gradient(#000 78%, transparent 99%); }
.island[data-size="peek"] .bust { width: 120px; height: 143px; left: -6px; }
.island .sheet { position: relative; min-width: 0; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--gold), inset 0 0 0 1.5px var(--ink); padding: 12px 14px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; color-scheme: light; }
.island .sheet::after { content: ""; position: absolute; right: 0; bottom: 0; width: 120px; height: 70px; pointer-events: none; background-image: radial-gradient(rgba(25,24,27,.16) 1px, transparent 1.4px); background-size: 6px 6px; -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000); mask-image: linear-gradient(135deg, transparent 30%, #000); }
.island .sheet h3 { margin: 0; font: 600 13px/1.2 var(--ui); display: flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 0; }
.island .sheet h3 .proj { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.island .sheet h3 small { font: 500 11px var(--ui); color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.island .agent { font: 500 11px var(--ui); padding: 2px 7px; border-radius: 6px; background: var(--ink); color: var(--paper); flex: none; }
.island .agent.codex { background: var(--knit); }
.island .mono { font: 12px/1.45 var(--mono); }
.island .muted { color: var(--muted); }
.island .clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.island .rows { display: flex; flex-direction: column; gap: 2px; overflow: auto; margin: 0 -6px; min-height: 0; flex: 1 1 auto; }
.island .row { display: grid; grid-template-columns: 10px minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; font-size: 13px; }
.island .row.sel { background: rgba(25,24,27,.06); }
.island .row .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(25,24,27,.32); }
.island .row .dot.working, .island .row .dot.done { background: var(--sage); }
.island .row .dot.waiting { background: var(--blush); }
.island .row .dot.error { background: var(--verm); }
.island .row .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.island .row .what b { font-weight: 600; margin-right: 6px; }
.island .row .what span { color: var(--muted); }
.island .row .diff { font: 11px var(--mono); color: var(--muted); }
.island .diff .p, .island .mono .p { color: #41662f; }
.island .diff .m, .island .mono .m { color: #a3402c; }
.island .jump { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--muted); font: 500 11px var(--ui); white-space: nowrap; }
.island .reply { margin-left: auto; }
.island .cmd { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 8px 10px; font: 12px/1.45 var(--mono); overflow-wrap: anywhere; white-space: pre-wrap; max-height: 74px; overflow: auto; }
.island .scope { font: 12px var(--ui); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.island .scope code { font: 11px var(--mono); color: var(--ink); background: rgba(25,24,27,.07); padding: 1px 5px; border-radius: 4px; }
.island .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; align-items: center; }
.island .btn { height: 32px; padding: 0 14px; border-radius: 10px; border: 0; font: 600 13px var(--ui); display: inline-flex; align-items: center; gap: 8px; background: rgba(25,24,27,.07); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(25,24,27,.12); transition: background 140ms, transform 140ms var(--ease), box-shadow 140ms; flex: none; }
.island .btn.primary { background: var(--ink); color: var(--paper); box-shadow: 2px 2px 0 var(--gold); }
.island .btn.pressed, .island .choice.pressed { transform: scale(.97); box-shadow: inset 0 0 0 1px rgba(25,24,27,.12); }
.island .btn kbd { font: 400 10px var(--mono); opacity: .6; }
.island :focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.island .qtext { font: 600 14px/1.35 var(--ui); }
.island .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.island .choice { text-align: left; border: 0; border-radius: 10px; padding: 8px 10px; background: rgba(25,24,27,.05); box-shadow: inset 0 0 0 1px rgba(25,24,27,.12); font: 500 12px/1.3 var(--ui); color: var(--ink); min-width: 0; transition: transform 140ms var(--ease), background 140ms, color 140ms; }
.island .choice.on { background: var(--ink); color: var(--paper); }
.island .choice small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.island .choice.on small { color: rgba(255,245,231,.7); }
.island .free { display: flex; gap: 6px; margin-top: auto; }
.island .free-input { flex: 1; min-width: 0; height: 30px; border-radius: 9px; padding: 0 10px; font: 12px/30px var(--ui); background: rgba(25,24,27,.05); box-shadow: inset 0 0 0 1px rgba(25,24,27,.15); color: var(--muted); overflow: hidden; white-space: nowrap; }
.island .rule { font: 12px var(--mono); background: rgba(233,182,93,.2); border-radius: 8px; padding: 6px 8px; display: flex; align-items: center; gap: 8px; }
.island .rule > span:first-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.island .rule .btn { height: 26px; margin-left: auto; }
.island .result { display: grid; gap: 4px; min-width: 0; }
.island .result .big { font: 600 26px/.96 var(--ui); font-variant-numeric: tabular-nums; }
.island .result .muted { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.island .sheet.err { box-shadow: 3px 3px 0 var(--verm), inset 0 0 0 1.5px var(--ink); }
.island .sheet.ok { box-shadow: 3px 3px 0 var(--sage), inset 0 0 0 1.5px var(--ink); }
.island .meters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: none; }
.island .meter { font: 500 11px var(--ui); color: var(--muted); display: grid; gap: 4px; min-width: 0; }
.island .meter .bar { height: 6px; border-radius: 3px; background: rgba(25,24,27,.1); overflow: hidden; }
.island .meter .bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); transition: width .6s var(--ease); }
.island .meter .row2 { display: flex; justify-content: space-between; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.island .meter .row2 b { color: var(--ink); font-weight: 600; }
.island .meters-note { font: 11px var(--ui); color: var(--muted); }

.bubble { position: absolute; z-index: 5; left: 8px; bottom: 24px; max-width: min(270px, calc(100% - 16px)); padding: 12px 16px; border-radius: 18px; background: var(--paper); color: var(--ink); font: 700 18px/1.35 var(--voice); box-shadow: 0 0 0 2px var(--ink), 3px 4px 0 2px var(--ink); transform-origin: 24px 0; }
.bubble .tail { position: absolute; width: 18px; height: 18px; left: 16px; top: -12px; color: var(--gold); stroke: var(--ink); stroke-width: 1.4px; }
.terminal { min-width: 0; overflow: hidden; background: var(--ground-2); border: 1px solid var(--hair); border-radius: 12px; }
.terminal-title { height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 12px; border-bottom: 1px solid var(--hair); color: var(--text); font: 11px/1 var(--mono); white-space: nowrap; }
.terminal-title span { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.terminal-body { padding: 12px; color: var(--muted); font: 13px/1.45 var(--mono); overflow: hidden; min-width: 0; }
.terminal-line { min-height: 1.45em; overflow-wrap: anywhere; white-space: pre-wrap; flex: none; }
.terminal-line.success { color: var(--sage); }
.terminal-line.error { color: var(--verm); }
.terminal-line.blocked { color: var(--gold); background: rgba(233,182,93,.07); border-radius: 4px; padding: 2px 4px; margin-inline: -4px; }
.caret { display: inline-block; width: 6px; height: 1em; margin-left: 4px; background: var(--gold); vertical-align: -.12em; opacity: 1; transition: opacity 100ms linear; }
.caret.off { opacity: 0; }

.price { border-top: 1px solid var(--hair); padding-top: 80px; }
.price-grid { display: grid; gap: 48px; align-items: end; }
.price-figure { font: 400 clamp(88px, 14vw, 224px)/.94 var(--display); letter-spacing: -.04em; color: var(--paper); margin-bottom: 24px; }
.price h2 { max-width: 12ch; }
.price-facts { display: grid; gap: 12px; margin-top: 32px; color: var(--muted); font: 13px/1.4 var(--mono); }
.price-actor { height: 520px; max-width: 420px; width: 100%; margin-inline: auto; }
.footer { border-top: 1px solid var(--hair); padding-block: 32px; color: var(--muted); font-size: 13px; }
.footer-inner { display: grid; gap: 16px; }
.footer p { max-width: 68ch; }
.footer a { text-decoration-color: rgba(255,245,231,.25); text-underline-offset: 4px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 48px; }

.story-stage, .fixed-island, .video-pair, .demo-pointer, .motion-control { display: none; }

@media (min-width: 360px) {
  :root { --island-scale: .52; }
}
@media (min-width: 400px) {
  :root { --island-scale: .6; --gutter: 24px; }
}
@media (min-width: 640px) {
  :root { --island-scale: .85; --gutter: 40px; }
  .menu-links { padding-top: 0; }
  .menu-download { display: block; }
  .menu-buy { font-size: 13px; }
  .hero-copy { padding-top: 144px; }
  .hero h1 { max-width: 12ch; }
  .hero-actor { height: 60svh; }
  .story-step { padding-block: 80px; }
  .step-scene { grid-template-columns: 1fr 1fr; align-items: center; }
  .island-frame { grid-column: 1 / -1; }
  .static-actor { grid-column: 2; grid-row: 2; }
  .static-terminals { grid-column: 1; grid-row: 2; }
  .price-grid { grid-template-columns: 1.2fr 1fr; gap: 32px; }
  .price-copy { padding-bottom: 64px; }
  .price-actor { height: 580px; }
}
@media (min-width: 1000px) {
  :root { --island-scale: 1; --gutter: 64px; }
  .hero-grid { min-height: 100svh; grid-template-columns: 1.15fr 1fr; gap: 0; }
  .hero-copy { align-self: center; padding-block: 128px 88px; }
  .hero h1 { max-width: 9.5ch; }
  .hero .lede { margin-top: 32px; }
  .hero-actor { height: 78svh; min-height: 520px; margin: 0; }
  .hero .cta { margin-top: 32px; }
  .static-story { max-width: 1120px; }
  .story-step { padding-block: 112px; }
  .step-title { max-width: 15ch; }
  .static-actor { height: 440px; }
  .price { padding-top: 144px; }
  .price-grid { grid-template-columns: 1.25fr 1fr; min-height: 740px; }
  .price-copy { padding-bottom: 112px; }
  .price h2 { font-size: clamp(40px, 4vw, 64px); }
  .price-actor { height: 720px; }
  .footer-inner { grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
}
@media (hover: hover) {
  .buy:hover { background: var(--wall); }
  .download:hover, .footer a:hover, .menu-download:hover { color: var(--paper); text-decoration-color: var(--paper); }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .story { height: 800svh; position: relative; }
  html.js .static-story { display: none; }
  html.js .story-stage { display: block; position: sticky; top: 0; height: 100svh; min-height: 0; overflow: clip; }
  html.js .fixed-island { display: block; position: fixed; top: 0; z-index: 100; }
  html.js .fixed-island .panel { opacity: 0; transform: translateY(-6px); visibility: visible; }
  html.js .fixed-island.panel-ready:not([data-size="idle"]) .panel { opacity: 1; transform: none; }
  html.js .fixed-island[data-size="idle"] .panel { visibility: hidden; }
  html.js .fixed-island.snap, html.js .fixed-island.snap * { transition: none !important; }
  html.js .stage-content { height: 100%; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) 112px 104px; gap: 12px; padding-top: calc(330px * var(--island-scale) + 16px); padding-bottom: 24px; }
  html.js .stage-actor { grid-column: 1; grid-row: 1; width: 100%; height: 100%; max-height: 34svh; min-height: 0; align-self: end; }
  html.js .stage-actor > .poster { transition: opacity 200ms var(--ease); }
  html.js .stage-actor .light { inset-inline: 0; }
  html.js .stage-actor .bubble { left: 0; bottom: 8px; max-width: min(250px, 82%); font-size: 16px; }
  html.js .live-bubble { opacity: 0; transform: scale(.94); transition: opacity 200ms var(--ease), transform 200ms var(--ease); pointer-events: none; }
  html.js .live-bubble.on { opacity: 1; transform: scale(1); }
  html.js .terminals { grid-row: 2; min-width: 0; min-height: 0; }
  html.js .terminals .terminal { display: none; height: 100%; }
  html.js .terminals .terminal.active { display: block; }
  html.js .terminals .terminal-body { height: calc(100% - 28px); display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 12px; font-size: 11px; }
  html.js .live-title { grid-row: 3; align-self: end; max-width: 15ch; font-size: clamp(36px, 4.4vw, 64px); opacity: 1; transform: translateY(0); transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
  html.js .live-title.changing { opacity: 0; transform: translateY(8px); }
  html.js .progress { display: none; }
  html.js .video-pair { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  html.js .video-pair video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; opacity: 0; transition: opacity 120ms linear; }
  html.js .video-pair video.visible { opacity: 1; }
  html.js .actor.has-video > .poster { opacity: 0; }
  html.js .desk-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; opacity: 0; transform: translate(32px, 24px); transition: opacity 360ms var(--ease), transform 600ms var(--spring); }
  html.js .stage-actor.on-desk .desk-still { opacity: 1; transform: translate(0,0); }
  html.js .stage-actor.on-desk > .poster, html.js .stage-actor.on-desk .video-pair { opacity: 0; }
  html.js .demo-pointer { display: block; position: fixed; top: 0; left: 0; z-index: 110; width: 20px; height: 26px; color: var(--paper); opacity: 0; pointer-events: none; transition: transform 600ms var(--ease), opacity 180ms; }
  html.js .demo-pointer.on { opacity: 1; }
  html.js .burst { position: absolute; width: 12px; height: 12px; color: var(--gold); pointer-events: none; z-index: 5; opacity: 1; transition: transform 420ms var(--ease), opacity 420ms var(--ease); }
  html.js .motion-control { display: grid; place-items: center; position: fixed; left: 8px; bottom: 8px; z-index: 30; width: 48px; height: 48px; padding: 14px; border: 1px solid var(--hair); border-radius: 50%; background: var(--ground); color: var(--muted); }
  html.js .motion-control svg { width: 18px; height: 18px; }
  html.js.motion-paused .island, html.js.motion-paused .island *, html.js.motion-paused .story-stage * { transition: none !important; }

  @media (min-width: 640px) and (max-width: 999px) {
    html.js .stage-content { grid-template-rows: minmax(0,1fr) 112px 112px; }
    html.js .stage-actor .bubble { left: 20%; }
  }
  @media (min-width: 1000px) {
    html.js .stage-content { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0,1fr) auto; column-gap: 64px; row-gap: 24px; padding-top: calc(330px * var(--island-scale) + 24px); padding-bottom: 48px; }
    html.js .terminals { grid-column: 1; grid-row: 1; display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); gap: 12px; height: min(348px,100%); align-self: center; }
    html.js .terminals .terminal { display: block; height: 100%; opacity: .65; transition: opacity 240ms; }
    html.js .terminals .terminal.active { opacity: 1; }
    html.js .story-stage[data-step="0"] .terminal { opacity: 1; }
    html.js .terminals .terminal-body { font-size: 13px; }
    html.js .stage-actor { grid-column: 2; grid-row: 1 / -1; height: 64svh; max-height: 100%; align-self: end; }
    html.js .stage-actor .bubble { left: -16px; bottom: 32%; max-width: 270px; font-size: 18px; }
    html.js .stage-actor.on-desk .bubble { bottom: 48%; }
    html.js .live-title { grid-column: 1; grid-row: 2; min-height: 1.88em; max-width: 14ch; }
    html.js .progress { display: flex; flex-direction: column; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
    html.js .progress button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: var(--muted); border-radius: 50%; }
    html.js .progress button::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; transition: transform 240ms var(--spring), opacity 180ms, background 180ms; }
    html.js .progress button[aria-current="step"]::after { background: var(--gold); opacity: 1; transform: scale(1.75); }
    html.js .motion-control { left: 16px; bottom: 16px; }
  }
  @media (min-width: 1000px) and (max-height: 740px) {
    html.js { --island-scale: .82; }
    html.js .stage-content { padding-bottom: 24px; row-gap: 16px; column-gap: 40px; }
    html.js .terminals { gap: 8px; }
    html.js .live-title { font-size: 40px; }
  }
  @media (max-width: 999px) and (max-height: 620px) {
    html.js { --island-scale: .44; }
    html.js .stage-content { grid-template-rows: minmax(0,1fr) 88px 76px; gap: 8px; padding-top: 156px; padding-bottom: 16px; }
    html.js .live-title { font-size: 30px; }
    html.js .stage-actor .bubble { font-size: 14px; padding: 8px 12px; max-width: 210px; }
  }
  @media (max-height: 420px) and (max-width: 999px) {
    html.js { --island-scale: .4; }
    html.js .stage-content { grid-template-columns: 1.2fr 1fr; grid-template-rows: minmax(0,1fr) 64px; column-gap: 24px; padding-top: 140px; }
    html.js .terminals { grid-column: 1; grid-row: 1; }
    html.js .stage-actor { grid-column: 2; grid-row: 1 / -1; max-height: 100%; }
    html.js .live-title { grid-column: 1; grid-row: 2; font-size: 28px; }
    html.js .stage-actor .bubble { font-size: 12px; bottom: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* Review pass */
.menu-links { align-self: center; padding-top: 0; align-items: center; }
.menu-buy { min-height: 24px; padding: 0 3px 0 10px; gap: 8px; font-size: 12px; border-radius: 7px; box-shadow: none; }
.menu-buy .tag { min-height: 18px; padding: 2px 6px; font-size: 11px; border-radius: 5px; }
.terminal-body { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
@media (prefers-reduced-motion: no-preference) {
  html.js .motion-control { left: auto; right: 8px; }
  html.js .video-pair, html.js .stage-actor > .poster, html.js .desk-still { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }
  @media (min-width: 1000px) {
    html.js .motion-control { right: 16px; left: auto; }
    html.js .stage-actor { margin-bottom: -48px; height: calc(64svh + 48px); }
  }
}
@media (max-width: 479px) { .menu-buy .tag { display: none; } }
@media (prefers-reduced-motion: no-preference) and (max-width: 999px) { html.js .live-title { padding-right: 56px; } }
