/* ===========================
   sevoflurane/issue.css
   The operating theater — rx no.013, the volatile anesthetic.
   A compact illustrated edition: one painted room with four registered
   lighting plates, thin editorial feature rows, a window study and the
   Steam ↔ native-UI diagram. Colors are oklch tokens; hex survives only
   inside data-URI SVG.
   =========================== */

:root {
  color-scheme: dark;
  --bg: oklch(12% 0.012 220);
  --bg-deep: oklch(10.5% 0.012 225);
  --panel: oklch(16% 0.012 215);
  --ink: oklch(93% 0.012 85);
  --muted: oklch(73% 0.004 120);
  --dim: oklch(60% 0.008 200);
  --faint: oklch(52% 0.01 190);
  --accent: oklch(79% 0.11 80);
  --accent-light: oklch(88% 0.07 85);
  --accent-ink: oklch(22% 0.03 70);
  --line: oklch(83% 0.03 85 / 0.16);
  --gold-line: oklch(79% 0.11 80 / 0.32);
  --glass: oklch(70% 0.06 200 / 0.45);
  --serif: 'EB Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
  --pixel: 'DotGothic16', var(--mono);
  --wrap: 1280px;
  --scene-thumb: url('assets/theater-1-800.avif');
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; font-family: var(--serif); }
img, svg { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - 100px)); margin-inline: auto; }
.eyebrow { font: 9px/1.7 var(--mono); letter-spacing: 0.17em; text-transform: uppercase; color: var(--accent); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip { position: fixed; left: 15px; top: 15px; padding: 9px 15px; background: var(--accent); color: var(--accent-ink); z-index: 100; transform: translateY(-160%); }
.skip:focus { transform: none; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.inline { color: var(--accent-light); border-bottom: 1px solid var(--gold-line); display: inline-flex; align-items: center; gap: 12px; font-size: 12px; padding-bottom: 2px; }
.inline:hover { color: var(--ink); border-color: var(--accent); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 11px 20px;
  border: 1px solid oklch(88% 0.05 85 / 0.45); border-radius: 6px;
  line-height: 1.4; font-size: 13px;
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
}
.button:hover { background: oklch(79% 0.11 80 / 0.07); border-color: var(--accent); }
.button .icon { width: 18px; height: 18px; }
.button.primary {
  color: var(--accent-ink);
  background: linear-gradient(120deg, oklch(90% 0.06 85), oklch(80% 0.11 80));
  border-color: oklch(89% 0.07 85);
  box-shadow: 0 0 28px oklch(79% 0.11 80 / 0.06);
}
.button.primary:hover { background: oklch(89% 0.07 85); transform: translateY(-1px); }
.button.subtle { background: oklch(14% 0.012 215 / 0.65); }
code { font: 10px var(--mono); color: oklch(84% 0.05 85); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------
   Top navigation, live over the room.
   --------------------------------------------------------------- */
header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; }
.nav { display: flex; align-items: center; gap: 28px; min-height: 85px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand .wordmark { font: 22px/1.15 var(--serif); letter-spacing: 0.18em; }
.brand small { display: block; font: 8px/1.5 var(--mono); letter-spacing: 0.17em; color: var(--dim); margin-top: 5px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 27px; font: 12px var(--serif); }
.site-nav a { color: oklch(80% 0.006 120); }
.site-nav a:hover { color: var(--accent); }
.nav-github { border: 1px solid var(--gold-line); border-radius: 4px; padding: 8px 11px; font: 9px var(--mono); letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; background: oklch(14% 0.012 215 / 0.3); }
.nav-github .icon { width: 14px; height: 14px; }
.nav-github:hover { color: var(--accent); background: oklch(79% 0.11 80 / 0.06); }
.header-note { font: italic 11px/1.5 var(--serif); text-align: right; color: oklch(76% 0.006 100); max-width: 105px; }

/* ---------------------------------------------------------------
   The cover: the theater, its shade and grain, the copy and the dial.
   --------------------------------------------------------------- */
main { display: flex; flex-direction: column; }
.cover { position: relative; min-height: 785px; isolation: isolate; overflow: hidden; background: var(--bg-deep); }
.scene-frame { position: absolute; inset: 0; pointer-events: none; z-index: -3; overflow: hidden; }
.scene-frame svg { width: 100%; height: 100%; }
.plate { transition: none; }
.scene-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, oklch(10.5% 0.012 225 / 0.96) 0%, oklch(10.5% 0.012 225 / 0.85) 20%, oklch(10.5% 0.012 225 / 0.48) 40%, oklch(10.5% 0.012 225 / 0.06) 59%, transparent 86%),
    linear-gradient(0deg, var(--bg), transparent 19%, transparent 85%, oklch(10% 0.012 220 / 0.47));
}
.scene-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0.35;
  background-image: radial-gradient(oklch(93% 0.012 85 / 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
}
.hero-inner { position: relative; padding-top: 204px; padding-bottom: 155px; min-height: 785px; }
.hero-copy { position: relative; max-width: 590px; z-index: 2; }
.hero-kicker { display: flex; align-items: center; gap: 12px; }
.hero-kicker::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
h1 { font-size: clamp(62px, 6.9vw, 100px); line-height: 1.1; letter-spacing: -0.045em; margin: 23px 0 18px; text-shadow: 0 3px 30px oklch(8% 0.01 220 / 0.75); }
.hero-subtitle { font: 32px/1.25 var(--serif); letter-spacing: -0.015em; max-width: 490px; }
.hero-subtitle em { font-style: normal; color: var(--accent-light); }
.hero-description { margin-top: 22px; max-width: 400px; font-size: 14px; line-height: 1.85; color: oklch(78% 0.006 120); }
.hero-actions { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; margin-top: 27px; }
.hero-fineprint { font: 9px/1.9 var(--mono); margin-top: 18px; color: oklch(68% 0.01 190); max-width: 460px; }
.hero-note { font: italic 17px/1.5 var(--serif); color: oklch(80% 0.01 100); margin-top: 24px; max-width: 360px; }
.hero-note small { display: block; font: 8px/1.8 var(--mono); letter-spacing: 0.12em; color: var(--dim); margin-top: 5px; }
.scene-badge { position: absolute; top: 106px; right: 0; display: flex; align-items: center; gap: 10px; color: oklch(70% 0.01 190); font: 8px var(--mono); letter-spacing: 0.07em; }
.scene-badge i { display: inline-block; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.recovery-message {
  position: absolute; right: 0; top: 120px; max-width: 235px; text-align: right;
  font: italic 18px/1.4 var(--serif); opacity: 0; transition: opacity 2s; pointer-events: none;
  color: oklch(89% 0.05 85); text-shadow: 0 2px 12px oklch(0% 0 0);
}
.recovery-message small { display: block; font: 9px/1.9 var(--mono); margin-top: 8px; color: oklch(78% 0.03 120); }
html[data-light="recovery"] .recovery-message { opacity: 1; }
.light-console { position: absolute; left: 0; right: 0; bottom: 27px; display: flex; align-items: center; gap: 28px; border-top: 1px solid var(--line); padding-top: 17px; }
.light-title { min-width: 115px; }
.light-title small { display: block; font: 8px/1.7 var(--mono); color: var(--dim); margin-top: 4px; }
.lights { display: flex; gap: 25px; align-items: center; }
.light-choice { padding: 8px 0; display: flex; align-items: center; gap: 9px; text-align: left; position: relative; color: oklch(70% 0.01 190); white-space: nowrap; }
.light-choice span:last-child { font: 12px var(--serif); }
.light-choice small { font: 8px var(--mono); color: var(--faint); }
.light-choice::before { content: ''; display: block; width: 5px; height: 5px; border: 1px solid oklch(60% 0.01 190); border-radius: 50%; background: transparent; }
.light-choice[aria-pressed="true"] { color: var(--accent-light); }
.light-choice[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 11px oklch(79% 0.11 80 / 0.4); }
.light-choice:disabled { opacity: 0.36; }
.room-caption { margin-left: auto; text-align: right; font: 9px/1.7 var(--mono); color: oklch(70% 0.01 170); }
.room-caption span { display: block; font-size: 8px; color: var(--faint); }
.dial-target {
  position: absolute; z-index: 4; transform: translate(-50%, -50%); border-radius: 50%;
  touch-action: none; outline-offset: 8px; cursor: ns-resize; min-width: 44px; min-height: 44px;
}
.dial-target::after { content: ''; position: absolute; inset: -10px; border: 1px solid var(--accent); border-radius: 50%; opacity: 0; transition: opacity 0.2s; box-shadow: 0 0 20px oklch(79% 0.11 80 / 0.09); }
.dial-target:hover::after, .dial-target:focus-visible::after { opacity: 0.75; }
.dial-hint { position: absolute; z-index: 3; width: 120px; pointer-events: none; color: var(--accent-light); font: italic 16px/1.3 var(--serif); text-shadow: 0 2px 10px oklch(0% 0 0); }
.dial-hint small { display: block; margin-top: 8px; font: 7px/1.7 var(--mono); letter-spacing: 0.07em; color: oklch(74% 0.01 100); }
.dial-hint::after { content: ''; width: 30px; height: 1px; background: var(--gold-line); display: block; margin-top: 11px; }
/* Before the script wakes, the room is the night-shift painting and the console is print. */
html:not([data-scene="live"]) .dial-target, html:not([data-scene="live"]) .dial-hint { display: none; }

/* ---------------------------------------------------------------
   Features: thin editorial rows, the way the art studies were laid out.
   --------------------------------------------------------------- */
.feature-section { position: relative; background: linear-gradient(180deg, oklch(15% 0.01 190 / 0.75), transparent); border-bottom: 1px solid var(--line); }
.section-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 30px; padding: 38px 0 40px; }
.feature { position: relative; }
.feature .icon { color: oklch(87% 0.01 100); margin-bottom: 17px; width: 25px; height: 25px; }
.feature h3 { font-size: 21px; line-height: 1.25; letter-spacing: 0.005em; margin-bottom: 12px; }
.feature p { font: 12.5px/1.85 var(--sans); color: var(--muted); }
.feature strong { font-weight: 400; color: oklch(85% 0.05 85); }
.feature .study-open { font: 9px var(--mono); color: var(--accent); padding: 8px 0; margin-top: 8px; border-bottom: 1px solid var(--gold-line); }

/* ---------------------------------------------------------------
   The window study: two cards, one desk between them.
   --------------------------------------------------------------- */
.studies { border-bottom: 1px solid var(--line); padding: 65px 0 50px; }
.study-card { position: relative; max-width: 70%; }
.study-card h2 { font-size: 43px; line-height: 1.12; letter-spacing: -0.025em; margin-top: 14px; }
.study-card .body-copy { color: var(--muted); font: 14px/1.9 var(--sans); margin-top: 22px; }
.body-copy strong { font-weight: 400; color: var(--ink); }
.card-top { padding-bottom: 48px; }
.card-bottom { margin-left: auto; padding-top: 48px; }
.desk-frame { position: relative; }
.study-caption { font: 8px/1.8 var(--mono); color: oklch(60% 0.01 170); margin-top: 22px; text-align: center; }
.range-row { display: flex; align-items: center; gap: 15px; margin-top: 24px; font: 9px var(--mono); color: oklch(72% 0.01 120); }
.range-row label { white-space: nowrap; }
input[type="range"] { accent-color: var(--accent); min-width: 0; width: 100%; height: 20px; }
.range-row output { width: 30px; }

/* The desk: a desktop at a fixed aspect, so nothing on the page moves when a window changes. */
.desk { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid oklch(74% 0.01 110 / 0.33); border-radius: 12px; box-shadow: 0 22px 60px oklch(0% 0 0 / 0.45); background: radial-gradient(120% 90% at 30% 110%, oklch(30% 0.05 200), transparent 60%), radial-gradient(80% 60% at 90% 0%, oklch(26% 0.05 320), transparent 60%), oklch(14% 0.02 240); --game-width: 38%; }
.menubar { position: absolute; top: 0; left: 0; right: 0; height: 26px; display: flex; align-items: center; gap: 16px; padding: 0 14px; font: 11px/1 var(--sans); color: oklch(90% 0.006 120); background: oklch(20% 0.012 220 / 0.85); backdrop-filter: blur(10px); transition: transform 0.4s, opacity 0.4s; z-index: 4; }
.menubar > * { display: flex; align-items: center; line-height: 1; }
.menubar .apple { width: 13px; height: 13px; margin-top: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 2 46 44'%3E%3Cpath d='M33 14c-4 0-5 2-8 2s-4-2-8-2C9 14 6 21 8 29c2 8 7 15 11 15 3 0 4-2 7-2s4 2 7 2c4 0 8-6 10-11-6-3-7-11-1-15-2-3-5-4-9-4Z'/%3E%3Cpath d='M25 14c-1-5 3-10 9-11 0 6-4 11-9 11Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 2 46 44'%3E%3Cpath d='M33 14c-4 0-5 2-8 2s-4-2-8-2C9 14 6 21 8 29c2 8 7 15 11 15 3 0 4-2 7-2s4 2 7 2c4 0 8-6 10-11-6-3-7-11-1-15-2-3-5-4-9-4Z'/%3E%3Cpath d='M25 14c-1-5 3-10 9-11 0 6-4 11-9 11Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.menus { display: none; gap: 16px; }
.menus b { font-weight: 600; }
.desk[data-front="steam"] .menus[data-app="steam"], .desk[data-front="game"] .menus[data-app="game"] { display: flex; }
.menubar-right { margin-left: auto; gap: 14px; }
.menubar-dial { width: 16px; height: 16px; background: currentColor; -webkit-mask: url('assets/menubar-dial.svg') center / contain no-repeat; mask: url('assets/menubar-dial.svg') center / contain no-repeat; }
.desk-stage { position: absolute; inset: 26px 0 66px; transition: inset 0.45s; }
.mac-window { position: absolute; display: flex; flex-direction: column; border: 1px solid oklch(74% 0.01 110 / 0.33); background: oklch(17% 0.02 220); border-radius: 10px; box-shadow: 0 22px 60px oklch(0% 0 0 / 0.5); overflow: hidden; transition: inset 0.45s, width 0.25s, border-radius 0.45s, filter 0.4s; }
.steam-window { left: 3%; top: 5%; width: 62%; height: 70%; z-index: 3; }
.game-window { right: 3%; bottom: 3%; width: var(--game-width); z-index: 2; }
.desk[data-front="game"] .steam-window { z-index: 2; filter: brightness(0.72); }
.desk[data-front="game"] .game-window { z-index: 3; }
.desk[data-front="steam"] .game-window { filter: brightness(0.72); }
.window-bar { height: 30px; flex: none; background: oklch(24% 0.012 200); display: flex; align-items: center; gap: 12px; padding: 0 10px; color: oklch(74% 0.008 150); font: 9px var(--mono); transition: height 0.45s; overflow: hidden; }
.traffic { display: flex; gap: 6px; align-items: center; }
.traffic i, .traffic-green { display: block; width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; }
.traffic i { background: oklch(64% 0.12 30); }
.traffic i:nth-child(2) { background: oklch(78% 0.13 85); }
.traffic i:nth-child(3) { background: oklch(70% 0.14 145); }
.traffic-green { background: oklch(70% 0.14 145); position: relative; cursor: pointer; }
.traffic-green::after { content: ''; position: absolute; inset: 2px; background: oklch(25% 0.06 145); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 5.5V9h3.5L1 5.5ZM9 4.5V1H5.5L9 4.5Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 5.5V9h3.5L1 5.5ZM9 4.5V1H5.5L9 4.5Z'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; transition: opacity 0.2s; }
.traffic:hover .traffic-green::after, .traffic-green:focus-visible::after { opacity: 1; }
.traffic-green::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid oklch(70% 0.14 145 / 0.7); opacity: 0; animation: green-hint 2.4s ease-out infinite; }
.desk[data-full="true"] .traffic-green::before, .desk[data-front="steam"] .traffic-green::before { animation: none; }
@keyframes green-hint { 0% { opacity: 0.9; transform: scale(0.6); } 70% { opacity: 0; transform: scale(1.25); } 100% { opacity: 0; } }
.window-title { flex: 1; text-align: center; padding-right: 33px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Steam's library, as the app hosts it: Steam's own blue-gray, the store strip, the sidebar and a shelf of capsules, one of them running. */
.steam-ui { flex: 1; min-height: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, oklch(27% 0.03 250), oklch(17% 0.025 250)); color: oklch(85% 0.012 250); font-family: var(--sans); }
.steam-nav { flex: none; display: flex; align-items: center; gap: 12px; height: 26px; padding: 0 10px; font: 600 9px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: oklch(80% 0.012 250); background: oklch(20% 0.025 250 / 0.7); }
.steam-arrows { display: flex; gap: 8px; font-size: 13px; color: oklch(55% 0.02 250); }
.steam-arrows i { font-style: normal; }
.steam-nav .active { color: oklch(96% 0.01 250); }
.steam-user { margin-left: auto; text-transform: none; font-weight: 400; letter-spacing: 0; color: oklch(78% 0.12 230); background: oklch(24% 0.03 250); padding: 3px 7px; border-radius: 2px; }
.steam-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 32% 1fr; }
.steam-side { padding: 8px; font: 8.5px/2.1 var(--sans); color: oklch(72% 0.015 250); background: oklch(19% 0.025 250 / 0.8); border-right: 1px solid oklch(30% 0.02 250); overflow: hidden; }
.steam-home { font: 600 9px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: oklch(92% 0.01 250); background: oklch(36% 0.03 250); padding: 7px 8px; border-radius: 2px; }
.steam-search { margin-top: 6px; height: 18px; border-radius: 2px; background: oklch(24% 0.03 250); color: oklch(55% 0.02 250); font-size: 9px; line-height: 18px; padding: 0 6px; }
.steam-games { margin: 6px 0 4px; font: 600 8px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: oklch(80% 0.012 250); background: oklch(24% 0.03 250); padding: 6px 8px; border-radius: 2px; }
.steam-side b { display: block; font: 600 7.5px/2.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: oklch(58% 0.02 250); }
.steam-side span { display: flex; align-items: center; gap: 5px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steam-side span::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: oklch(45% 0.05 280); flex: none; }
.steam-side span:nth-of-type(2)::before { background: oklch(60% 0.1 80); }
.steam-side span:nth-of-type(3)::before { background: oklch(62% 0.1 60); }
.steam-side span:nth-of-type(4)::before { background: oklch(60% 0.08 120); }
.steam-side span:nth-of-type(5)::before { background: oklch(55% 0.1 200); }
.steam-side span:nth-of-type(6)::before { background: oklch(50% 0.13 350); }
.steam-side .playing { color: oklch(82% 0.15 145); }
.steam-side .playing::before { background: oklch(70% 0.15 145); }
.steam-main { min-height: 0; padding: 10px 12px; overflow: hidden; }
.steam-coll { display: flex; align-items: center; gap: 8px; font: 600 9px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: oklch(88% 0.012 250); }
.steam-coll i { flex: 1; height: 1px; background: oklch(38% 0.02 250); }
.steam-coll small { font-weight: 400; color: oklch(58% 0.02 250); letter-spacing: 0; }
.steam-sort { margin-top: 6px; font: 600 7px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: oklch(60% 0.02 250); }
.steam-sort span { text-transform: none; letter-spacing: 0; font-weight: 400; color: oklch(80% 0.012 250); background: oklch(26% 0.03 250); padding: 2px 5px; border-radius: 2px; margin-left: 4px; }
.capsules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.capsule { position: relative; aspect-ratio: 2 / 3; border-radius: 2px; overflow: hidden; box-shadow: 0 4px 10px oklch(0% 0 0 / 0.4); background: oklch(30% 0.03 250) center / cover; display: flex; align-items: flex-end; padding: 6px; }
.capsule::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, oklch(10% 0.02 250 / 0.75), transparent 45%); }
.capsule > * { position: relative; z-index: 1; }
.capsule span { font: 600 10px/1.15 var(--serif); color: oklch(95% 0.01 250); text-shadow: 0 1px 4px oklch(0% 0 0 / 0.7); }
.capsule.running::after { display: none; }
.capsule.running { outline: 1px solid oklch(70% 0.15 145 / 0.6); outline-offset: 1px; }
.capsule-hover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 6px; background: linear-gradient(180deg, oklch(20% 0.03 250 / 0.82) 0 16%, oklch(20% 0.03 250 / 0.15) 22% 60%, oklch(20% 0.03 250 / 0.85) 78%); }
.capsule-hover b { font: 600 9px/1.2 var(--sans); color: oklch(95% 0.01 250); }
.capsule-hover small { display: block; font: 7.5px/1.5 var(--sans); color: oklch(72% 0.015 250); }
.capsule-hover .run { color: oklch(82% 0.15 145); margin-top: auto; }
/* The game window keeps its 800×600 picture; the window's width comes from the slider or the grip. */
.game-view { position: relative; flex: none; aspect-ratio: 4 / 3; background: linear-gradient(0deg, oklch(9% 0.02 230 / 0.8), transparent 65%), url('assets/corridor.avif') center / cover; display: flex; align-items: flex-end; padding: 12px; }
.vn-dialogue { background: oklch(12% 0.02 230 / 0.72); border: 1px solid oklch(74% 0.02 100 / 0.27); padding: 8px 12px; width: 100%; font: clamp(9px, 0.9vw, 12px)/1.6 var(--serif); color: oklch(89% 0.01 100); }
.resize-grip { position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; cursor: nwse-resize; touch-action: none; display: flex; align-items: flex-end; justify-content: flex-end; padding: 5px; color: var(--accent); }
.resize-grip .icon { width: 13px; height: 13px; }
.leave-full { position: absolute; top: 10px; right: 10px; font: 8px var(--mono); letter-spacing: 0.08em; color: var(--accent-light); border: 1px solid var(--gold-line); border-radius: 999px; padding: 6px 10px; background: oklch(12% 0.02 230 / 0.7); }
.leave-full:hover { color: var(--ink); border-color: var(--accent); }
/* The Dock: two Mac apps, the app, the game with its own icon, and the two Wine Steam icons kept out. */
.dock { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: oklch(30% 0.01 220 / 0.55); border: 1px solid oklch(74% 0.01 110 / 0.22); border-radius: 16px; backdrop-filter: blur(10px); transition: transform 0.4s, opacity 0.4s; z-index: 4; }
.dock .tile { position: relative; display: block; width: 40px; height: 40px; }
.dock .tile img { display: block; width: 100%; height: 100%; }
.dock .tile.running::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); }
.dock-sep { width: 1px; height: 30px; background: oklch(74% 0.01 110 / 0.25); margin: 0 4px; }
.steam-ghost { position: relative; display: flex; align-items: center; gap: 6px; padding-right: 4px; }
.steam-ghost img { width: 40px; height: 40px; border-radius: 50%; opacity: 0.38; filter: grayscale(0.5); }
.steam-ghost::before { content: ''; position: absolute; left: -6px; width: 98px; top: 50%; height: 1.5px; background: var(--accent); transform: rotate(-18deg); box-shadow: 0 0 6px oklch(79% 0.11 80 / 0.6); }
.steam-ghost small { font: 7.5px/1.35 var(--mono); color: var(--accent-light); letter-spacing: 0.04em; }
.notification { position: absolute; top: 8px; right: 8px; display: flex; gap: 10px; align-items: center; width: 210px; padding: 9px 10px; border: 1px solid oklch(66% 0.03 110 / 0.4); background: oklch(25% 0.012 190 / 0.96); border-radius: 12px; box-shadow: 0 12px 20px oklch(0% 0 0 / 0.2); transition: opacity 0.3s, transform 0.4s; z-index: 5; }
.squircle { width: 30px; height: 30px; flex-shrink: 0; }
.notification > span { line-height: 1.35; }
.notification strong { display: block; font: 500 10px/1.35 var(--sans); }
.notification small { display: block; font: 8.5px/1.35 var(--sans); color: oklch(78% 0.01 150); margin-top: 2px; }
/* Full screen: the game takes the whole desk, its bar folds away, the furniture slides out. */
.desk[data-full="true"] .desk-stage, .desk[data-full="true"] .game-window { inset: 0; }
.desk[data-full="true"] .game-window { width: auto; border-radius: 0; border-color: transparent; }
.desk[data-full="true"] .game-window .game-view { flex: 1; aspect-ratio: auto; }
.desk[data-full="true"] .game-window .window-bar { height: 0; }
.desk[data-full="true"] .resize-grip { display: none; }
.desk[data-full="true"] .menubar { transform: translateY(-100%); opacity: 0; }
.desk[data-full="true"] .dock { transform: translate(-50%, 140%); opacity: 0; }
.desk[data-full="true"] .notification { opacity: 0; transform: translateY(-10px); pointer-events: none; }

/* ---------------------------------------------------------------
   How it works: the two contexts, and the engine underneath.
   --------------------------------------------------------------- */
.technical { border-bottom: 1px solid var(--line); padding: 42px 0; }
.tech-grid { display: grid; grid-template-columns: 0.9fr 1.6fr 0.7fr; gap: 34px; align-items: center; }
.how-copy h2, .dormison-card h2 { font-size: 29px; line-height: 1.2; margin-bottom: 17px; letter-spacing: 0.015em; }
.how-copy h2 { margin-top: 0; }
.how-copy p, .dormison-card p { font: 14px/1.9 var(--sans); color: var(--muted); }
.how-copy .eyebrow, .dormison-card .eyebrow { margin-bottom: 13px; font-size: 8px; }
.tech-details { margin-top: 17px; }
.tech-details p { margin-top: 12px; }
.diagram { position: relative; min-width: 0; }
.diagram-main { display: grid; grid-template-columns: 1fr 1.1fr 1fr 1.1fr 1fr; gap: 8px; align-items: center; }
.diagram-node { height: 140px; padding: 0 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid oklch(74% 0.01 130 / 0.45); border-radius: 12px; background: linear-gradient(140deg, oklch(20% 0.012 200 / 0.53), oklch(12% 0.012 215)); }
.diagram-node > svg { height: 37px; width: 37px; margin-bottom: 11px; fill: currentColor; }
.diagram-node > img { height: 37px; width: 37px; margin-bottom: 11px; }
.diagram-node strong { font: 15px var(--serif); }
.diagram-node small { font: 8px/1.7 var(--mono); color: oklch(70% 0.01 150); margin-top: 5px; }
.diagram-node.native { border-color: var(--gold-line); }
.diagram-node.native > svg { color: var(--accent-light); }
.channel { text-align: center; font: 8.5px/1.65 var(--mono); color: oklch(78% 0.01 130); min-width: 0; }
.channel b { font-weight: 400; display: block; color: oklch(84% 0.04 90); }
.channel svg { width: 100%; height: 13px; color: oklch(68% 0.02 150); margin-top: 4px; }
.dormison-card { position: relative; isolation: isolate; min-height: 232px; padding: 8px 0 5px 25px; border-left: 1px solid var(--line); }
.dormison-card .inline { font-size: 10px; margin-top: 17px; }
.renderer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.renderer-chips span { font: 8px var(--mono); border: 1px solid oklch(62% 0.02 110 / 0.15); padding: 4px 6px; color: oklch(76% 0.01 110); }

/* ---------------------------------------------------------------
   The label: what it needs, how it's taken.
   --------------------------------------------------------------- */
.label-section { padding: 42px 0 48px; border-bottom: 1px solid var(--line); }
.label-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.label-section h2 { font-size: 29px; line-height: 1.2; margin: 0 0 17px; letter-spacing: 0.015em; }
.label-actions { margin: 0 0 26px; }
.label-section p { font: 12.5px/1.85 var(--sans); color: var(--muted); max-width: 470px; }
.label-section ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: dose; }
.label-section ol li { counter-increment: dose; position: relative; padding: 12px 0 12px 2.6em; border-top: 1px solid var(--line); font: 12.5px/1.75 var(--sans); color: var(--muted); }
.label-section ol li::before { content: counter(dose, decimal-leading-zero); position: absolute; left: 0; top: calc(12px + 0.45em); font: 9px var(--mono); letter-spacing: 0.15em; color: var(--accent); }
.label-section ol li strong { font-weight: 400; color: var(--ink); display: block; }
.spec-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font: 12.5px/1.7 var(--sans); color: var(--ink); }
.spec-list li span:first-child { font: 8px/2.2 var(--mono); letter-spacing: 0.17em; text-transform: uppercase; color: var(--dim); }
.spec-list a { color: var(--accent-light); border-bottom: 1px solid var(--gold-line); }
.spec-list a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------------------------------------------------------------
   Footer.
   --------------------------------------------------------------- */
.page-footer { border-top: 1px solid var(--line); padding: 31px 0 27px; position: relative; overflow: hidden; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-brand { font: 18px var(--serif); letter-spacing: 0.15em; }
.footer-brand small { display: block; font: 8px var(--mono); color: var(--dim); letter-spacing: 0.11em; margin-top: 8px; }
.healing { font: italic 27px var(--serif); color: var(--accent-light); letter-spacing: 0.025em; }
.footer-links { display: flex; gap: 19px; font: 10px var(--sans); color: oklch(70% 0.01 150); }
.footer-links a:hover { color: var(--accent); }
.footer-notes { display: flex; justify-content: space-between; gap: 25px; font: 8px/1.8 var(--mono); color: oklch(60% 0.01 170); margin-top: 28px; }
.footer-notes p { max-width: 690px; }
.footer-notes a { color: oklch(72% 0.01 150); border-bottom: 1px solid var(--line); }
.footer-notes a:hover { color: var(--accent); }

/* ---------------------------------------------------------------
   Responsive.
   --------------------------------------------------------------- */
@media (min-width: 1700px) {
  .cover, .hero-inner { min-height: 875px; }
  .hero-inner { padding-top: 239px; }
  .hero-copy { max-width: 620px; }
  .hero-description { font-size: 15px; }
  .hero-subtitle { font-size: 36px; }
}
@media (max-width: 1180px) {
  .wrap { width: calc(100% - 64px); }
  .site-nav { gap: 19px; }
  .header-note { display: none; }
  .hero-copy { max-width: 535px; }
  .hero-subtitle { font-size: 30px; }
  .hero-description { max-width: 330px; }
  .feature-grid { gap: 26px 21px; }
  .feature h3 { font-size: 18px; }
  .tech-grid { gap: 22px; grid-template-columns: 0.9fr 1.5fr 0.75fr; }
  .dormison-card { padding-left: 18px; }
  .diagram-node strong { font-size: 14px; }
  .diagram-node small { font-size: 7px; }
  .channel { font-size: 7.5px; }
  .room-caption { max-width: 180px; }
  .lights { gap: 20px; }
  .study-card h2 { font-size: 37px; }
}
@media (max-width: 900px) {
  .site-nav a:nth-child(3) { display: none; }
  .site-nav { gap: 15px; }
  .nav { gap: 18px; }
  .brand .wordmark { font-size: 18px; letter-spacing: 0.13em; }
  .nav-github { font-size: 8px; }
  .hero-description { max-width: 320px; }
  .hero-copy { max-width: 480px; }
  .hero-subtitle { font-size: 28px; }
  h1 { font-size: 73px; }
  .light-console { gap: 20px; }
  .room-caption { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .tech-grid { grid-template-columns: 1fr; gap: 32px; }
  .tech-engine-slot { grid-column: 1 / -1; }
  .tech-engine-slot .dormison-card { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; min-height: 0; }
  .label-grid { grid-template-columns: 1fr; }
  .healing { font-size: 24px; }
  .footer-links { gap: 15px; }
  .footer-notes { flex-direction: column; gap: 13px; }
  .light-title { min-width: 100px; }
}
/* On small screens the camera looks at the machine below the copy, never underneath it. */
@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px); }
  .nav { min-height: 72px; gap: 14px; }
  .site-nav { display: none; }
  .nav-github { margin-left: auto; font-size: 9px; padding: 9px; }
  .brand .wordmark { font-size: 20px; letter-spacing: 0.07em; }
  .brand small { font-size: 7px; }
  .cover, .hero-inner { min-height: 1100px; }
  .hero-inner { padding-top: 123px; padding-bottom: 100px; }
  .hero-copy { max-width: 100%; }
  h1 { font-size: clamp(48px, 12.4vw, 81px); margin: 21px 0 16px; letter-spacing: -0.045em; }
  .hero-subtitle { font-size: 30px; line-height: 1.2; max-width: 490px; }
  .hero-description { font: 13px/1.9 var(--sans); max-width: 385px; margin-top: 20px; }
  .hero-kicker { font-size: 7px; letter-spacing: 0.11em; }
  .hero-actions { gap: 12px; margin-top: 23px; }
  .hero-actions .button { font-size: 11px; min-height: 45px; padding: 11px 13px; gap: 8px; }
  .hero-actions .icon { width: 15px; }
  .hero-fineprint { font-size: 8px; margin-top: 16px; }
  .hero-note { display: none; }
  .scene-frame { top: 417px; bottom: 102px; mask-image: linear-gradient(to bottom, transparent 0, oklch(0% 0 0) 105px, oklch(0% 0 0) calc(100% - 50px), transparent 100%); }
  .scene-shade { background: linear-gradient(0deg, var(--bg), transparent 19%, transparent 55%, oklch(10.5% 0.012 225 / 0.25) 61%, oklch(10.5% 0.012 225 / 0.93) 71%, oklch(10.5% 0.012 225) 84%); }
  .scene-badge { top: 89px; bottom: auto; right: 0; font-size: 7px; }
  .dial-hint { font-size: 15px; width: 106px; }
  .dial-hint small { font-size: 6px; }
  .light-console { display: block; left: 0; right: 0; top: auto; bottom: 26px; width: auto; border-top: 1px solid var(--line); padding-top: 14px; }
  .light-title { display: block; margin-bottom: 8px; min-width: 0; }
  .light-title small { display: none; }
  .light-title .eyebrow { font-size: 7px; }
  .lights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .light-choice { display: flex; gap: 6px; padding: 12px 2px; }
  .light-choice span:last-child { font-size: 12px; }
  .light-choice small { font-size: 6px; }
  .light-choice::before { width: 4px; height: 4px; flex-shrink: 0; }
  .recovery-message { top: 530px; right: 0; font-size: 17px; max-width: 200px; }
  .recovery-message small { font-size: 8px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 25px; padding: 29px 0; }
  .feature h3 { font-size: 21px; }
  .feature p { font-size: 12px; }
  .feature .icon { width: 24px; height: 24px; }
  .technical { padding: 33px 0; }
  .tech-grid { grid-template-columns: 1fr; gap: 34px; }
  .how-copy h2 { font-size: 31px; }
  .how-copy p { font-size: 13px; }
  .diagram { max-width: 550px; width: 100%; margin-inline: auto; }
  .diagram-node { height: 142px; }
  .diagram-node strong { font-size: 17px; }
  .diagram-node small { font-size: 9px; }
  .diagram-node > svg { width: 38px; height: 38px; }
  .channel { font-size: 10px; }
  .tech-engine-slot .dormison-card { display: block; padding-top: 27px; }
  .dormison-card h2 { font-size: 31px; }
  .dormison-card p { font-size: 12px; }
  .dormison-card { padding-left: 0; }
  .renderer-chips span { font-size: 8px; }
  .footer-inner { flex-wrap: wrap; gap: 24px; }
  .healing { font-size: 25px; }
  .footer-links { width: 100%; font-size: 11px; }
  .footer-notes { font-size: 8px; }
  .footer-brand { font-size: 16px; }
  .footer-brand small { font-size: 7px; }
  .studies { padding: 42px 0 36px; }
  .study-card h2 { font-size: 38px; }
  .study-card .body-copy { font-size: 13px; }
  .card-top, .card-bottom { max-width: none; padding-block: 40px; }
  .desk { aspect-ratio: 4 / 3; }
  .steam-window { width: 72%; height: 62%; }
  .steam-body { grid-template-columns: 1fr; }
  .steam-side { display: none; }
  .steam-nav span:nth-child(n+4) { display: none; }
  .steam-user { display: block !important; }
  .capsules { grid-template-columns: repeat(3, 1fr); }
  .menubar { font-size: 10px; gap: 12px; }
  .menus span:nth-child(n+4) { display: none; }
  .dock .tile { width: 32px; height: 32px; }
  .desk-stage { inset: 26px 0 58px; }
  .vn-dialogue { font-size: 9px; }
  .notification { display: none; }
  .steam-ghost small { display: none; }
  .window-bar { font-size: 8px; }
  .window-title { padding-right: 0; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .brand .wordmark { font-size: 18px; }
  .hero-subtitle { font-size: 28px; }
  .hero-description { font-size: 12px; }
  .hero-actions .button { font-size: 10px; padding: 11px 10px; }
  .hero-actions { gap: 8px; }
  .hero-actions .icon { width: 13px; }
  .feature-grid { gap: 24px 18px; }
  .feature h3 { font-size: 19px; }
  .feature p { font-size: 11px; }
  .light-choice small { display: none; }
  .light-choice span:last-child { font-size: 12px; }
  .channel { font-size: 8px; }
  .diagram-node strong { font-size: 14px; }
  .diagram-node small { font-size: 7px; }
  .healing { font-size: 22px; }
  .scene-frame { top: 430px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button.primary:hover { transform: none; }
}
@media print {
  body { color: oklch(15% 0 0); background: white; }
  .scene-frame, .scene-shade, .scene-grain, .dial-target, .dial-hint, .light-console, .scene-badge, header, .range-row { display: none !important; }
  .cover, .hero-inner { min-height: 0; padding: 25px 0; }
  .wrap { width: 95%; }
  .cover { background: white; }
  .hero-copy, .hero-subtitle, .hero-description, .button { color: black !important; }
  .technical, .feature-section { break-inside: avoid; }
  .diagram-node { background: white; }
}
