/* The product website at `/` for a browser that has never signed in
   (site-page.ts, site-art.ts; decision: the-front-page-is-a-product-site).
   Its own sheet: an instrument's language - paper, ink, one signal orange,
   mono labels, hairlines - the shell's fonts and theme preference, and all of
   the page's motion. Motion is CSS only: scroll-driven where the browser has
   it, and reduced motion shows every drawing in its last frame. */

/* Geist is the product's (tokens.css, linked first); Geist Mono is loaded by the
   shell's deferred sheet, which this page does not take, so it is named here. */
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

@property --gap { syntax: "<length>"; inherits: true; initial-value: 104px; }
@property --turn { syntax: "<angle>"; inherits: true; initial-value: -38deg; }

/* The site's tokens, built on the product's (tokens.css): the neutral ramp for
   paper and ink, the shared spacing, radius and type scales. Hue is named only
   here - the one signal orange and the few functional colours a drawing of the
   product needs - and every rule below reads these names. */
:root {
  --bg: var(--neutral-50);
  --panel: var(--neutral-100);
  --panel-2: var(--neutral-150);
  --card: var(--neutral-0);
  --line: var(--neutral-150);
  --line-2: var(--neutral-200);
  --ink: var(--neutral-900);
  --ink-2: var(--neutral-600);
  /* Quiet ink: 4.5:1 on paper, panel and card. */
  --ink-3: var(--neutral-500);
  /* Decoration only (rules, dots, struck-through lines), never text. */
  --ink-4: var(--neutral-300);
  --signal: #f05a24;
  --signal-ink: var(--neutral-0);
  --signal-wash: #fdeee8;
  --cobalt: #0071bb;
  --lemon: #fab413;
  --lemon-ink: var(--neutral-900);
  --working: #006837;
  --working-wash: #e6f2ec;
  /* The instrument's screen: dark in both renderings. */
  --lcd: var(--neutral-900);
  --lcd-ink: var(--neutral-100);
  --lcd-quiet: var(--neutral-400);
  --t0: var(--neutral-150);
  --t1: #f6dbcd;
  --t2: #d3e4f1;
  /* An agent bead's glass: the light it catches, its shade, its rim. */
  --bead-light: rgba(255, 255, 255, 0.82);
  --bead-shade: rgba(0, 0, 0, 0.2);
  --bead-edge: rgba(255, 255, 255, 0.3);
  /* What shadows are poured from. */
  --shade: var(--neutral-900);
  --shadow: 0 1px 1px color-mix(in oklab, var(--shade) 4%, transparent), 0 8px 24px -12px color-mix(in oklab, var(--shade) 16%, transparent);
  --shadow-lg: 0 1px 2px color-mix(in oklab, var(--shade) 5%, transparent), 0 30px 60px -28px color-mix(in oklab, var(--shade) 28%, transparent);
  --max: 1240px;
  --pad: var(--space-8);
  --ease: cubic-bezier(0.2, 0.75, 0.15, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);

  /* A page breathes wider than an app: the product's scale, continued in
     steps of its largest (--space-8), named by their 4px count as it is. */
  --site-space-10: calc(var(--space-8) * 1.25);
  --site-space-12: calc(var(--space-8) * 1.5);
  --site-space-14: calc(var(--space-8) * 1.75);
  --site-space-16: calc(var(--space-8) * 2);
  --site-space-18: calc(var(--space-8) * 2.25);
  --site-space-20: calc(var(--space-8) * 2.5);
  --site-space-28: calc(var(--space-8) * 3.5);
  --site-space-40: calc(var(--space-8) * 5);
  /* Radii around the product's two: a keycap or tag, a small tile, a slab. */
  --site-radius-xs: calc(var(--radius-inner) / 2);
  --site-radius-sm: calc(var(--radius-inner) * 0.8);
  --site-radius-lg: calc(var(--radius-outer) + var(--radius-inner));

  /* Type: the product's scale (--text-sm ... --text-xl) for everything a
     person reads, and these for what only a page has - heads that grow with
     the window, a card's title, a price. */
  --site-head-hero: clamp(52px, 6vw, 92px);
  --site-head-section: clamp(38px, 5.4vw, 72px);
  --site-head-statement: clamp(34px, 5vw, 66px);
  --site-head-pinned: clamp(var(--text-display), 5vw, 48px);
  --site-head-wordmark: clamp(96px, 23vw, 300px);
  --site-text-figure: clamp(54px, 4.5vw + 37px, 64px);
  --site-text-figure-sm: 40px;
  --site-text-title: 24px;
  --site-text-title-sm: 20px;
  /* A glyph that stands for a thing: an attachment, the empty slot, a sum's sign. */
  --site-glyph: 22px;
  /* Illustration text: the labels on the exploded drawing of the product,
     tilted and scaled into the hero - a picture of type, not type to read. */
  --site-text-art: 10px;
}
:root { color-scheme: light; }

:root[data-theme="archon-dark"] {
  --bg: var(--neutral-950);
  --panel: var(--neutral-900);
  --panel-2: var(--neutral-800);
  --card: var(--neutral-850);
  --line: var(--neutral-800);
  --line-2: var(--neutral-750);
  --ink: var(--neutral-100);
  --ink-2: var(--neutral-300);
  --ink-3: var(--neutral-400);
  --ink-4: var(--neutral-700);
  --signal: #ff5a1a;
  --signal-wash: color-mix(in oklab, var(--signal) 12%, transparent);
  --cobalt: #5f84ff;
  --working: #3ccf8e;
  --working-wash: color-mix(in oklab, var(--working) 12%, transparent);
  --lcd: var(--neutral-950);
  --t0: var(--neutral-800);
  --t1: #3d2a1f;
  --t2: #1f2a40;
  --shade: var(--neutral-950);
  --shadow: 0 1px 1px color-mix(in oklab, var(--shade) 50%, transparent), 0 8px 24px -12px color-mix(in oklab, var(--shade) 70%, transparent);
  --shadow-lg: 0 1px 2px color-mix(in oklab, var(--shade) 50%, transparent), 0 30px 60px -28px color-mix(in oklab, var(--shade) 85%, transparent);
}
:root[data-theme="archon-dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--site-space-18); -webkit-text-size-adjust: 100%; overflow-x: clip; interpolate-size: allow-keywords; }
body.site { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: var(--text-lg); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--signal); color: var(--signal-ink); }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: var(--site-radius-xs); }
kbd { font-family: var(--font-mono); font-size: var(--text-sm); padding: var(--space-0) var(--space-1); border-radius: var(--site-radius-xs); color: var(--ink-3); background: var(--card); box-shadow: 0 0 0 1px var(--line-2) inset, 0 1px 0 var(--line-2); }
.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--signal-wash), 0 0 10px var(--signal); animation: blink 2.4s ease-in-out infinite; }

/* Progress and nav */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 30; transform-origin: 0 50%; transform: scaleX(0); background: var(--signal); pointer-events: none; }
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-3) max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); background: color-mix(in oklab, var(--bg) 84%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.mark { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.02em; text-decoration: none; }
.site-mark-glyph { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: var(--space-0); }
.nav-links a, .nav-link { padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; transition: color 140ms, background-color 140ms; }
.nav-links a:hover, .nav-link:hover { color: var(--ink); background: var(--panel); }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }

/* Buttons */
.btn, .site .btn.btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); height: 48px; padding: 0 var(--space-6); border: 0; border-radius: var(--radius-pill);
  font: inherit; font-size: var(--text-md); font-weight: 550; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; color: var(--ink); background: var(--card);
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 1px 0 color-mix(in oklab, var(--shade) 4%, transparent);
  transition: transform 220ms var(--spring), background-color 160ms, box-shadow 200ms;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--ink-4) inset, var(--shadow); }
.btn:active, .site .btn.btn-accent:active { transform: translateY(1px) scale(0.985); }
.btn.is-solid, .site .btn.btn-accent { color: var(--bg); background: var(--ink); box-shadow: 0 1px 0 color-mix(in oklab, var(--bg) 12%, transparent) inset, 0 6px 18px -8px color-mix(in oklab, var(--shade) 55%, transparent); }
.btn.is-solid:hover, .site .btn.btn-accent:hover { background: var(--signal); color: var(--signal-ink); box-shadow: 0 10px 26px -10px var(--signal); }
.btn svg { font-size: var(--text-lg); transition: transform 220ms var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn.is-small { height: 36px; padding: 0 var(--space-4); font-size: var(--text-base); }

/* Shared type */
.lbl { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-6); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.lbl b { font-weight: 500; color: var(--signal); }
.lbl span { width: 40px; height: 1px; background: var(--ink-4); }
.h2 .quiet { display: block; color: var(--ink-3); }
.h2 { margin: 0; max-width: 16ch; font-size: var(--site-head-section); line-height: 0.98; font-weight: 600; letter-spacing: -0.048em; text-wrap: balance; }
.lede { max-width: 560px; margin: 0; font-size: var(--text-xl); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sec { max-width: var(--max); margin: 0 auto; padding: var(--site-space-40) var(--pad) 0; }
.sec-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-8) var(--site-space-16); align-items: end; margin-bottom: var(--site-space-16); }
.checks { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.checks li { display: flex; gap: var(--space-3); font-size: var(--text-md); color: var(--ink-2); }
.checks li svg { margin-top: var(--space-0); font-size: var(--text-lg); color: var(--signal); stroke-width: 2.4; }
.checks b { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { position: relative; max-width: var(--max); margin: 0 auto; padding: var(--site-space-18) var(--pad) 0; display: grid; grid-template-columns: 11fr 9fr; grid-template-areas: "copy art" "specs specs"; gap: 0 var(--space-6); align-items: center; isolation: isolate; }
.hero-grid { position: absolute; inset: 0 -40vw calc(var(--site-space-20) * -1); z-index: -1; pointer-events: none; background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: radial-gradient(60% 70% at 70% 40%, black, transparent 75%); -webkit-mask-image: radial-gradient(60% 70% at 70% 40%, black, transparent 75%); }
.hero-copy { grid-area: copy; position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-8); padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; }
.hero-h1 { margin: 0; font-size: var(--site-head-hero); line-height: 0.9; font-weight: 600; letter-spacing: -0.058em; }
.hero-h1 > span { display: block; white-space: nowrap; }
.hero-h1 em { font-style: normal; color: var(--signal); }
.hero-lede { max-width: 470px; margin: var(--space-8) 0 0; font-size: var(--text-xl); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero-actions { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
.hero-art { grid-area: art; position: relative; z-index: 1; margin-right: calc(var(--space-6) * -1); animation: fade-in 900ms ease both 200ms; }
.hero-kicker, .hero-h1 > span, .hero-lede, .hero-actions { animation: rise 1000ms var(--ease) both; }
.hero-h1 > span:nth-child(1) { animation-delay: 60ms; }
.hero-h1 > span:nth-child(2) { animation-delay: 130ms; }
.hero-h1 > span:nth-child(3) { animation-delay: 200ms; }
.hero-lede { animation-delay: 300ms; }
.hero-actions { animation-delay: 380ms; }

.specs { grid-area: specs; display: grid; grid-template-columns: repeat(6, 1fr); margin: var(--site-space-18) 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-2); }
.specs > div { padding: var(--space-5) var(--space-5) var(--space-5) 0; border-right: 1px solid var(--line); animation: rise 900ms var(--ease) both 600ms; }
.specs > div + div { padding-left: var(--space-5); }
.specs > div:last-child { border-right: 0; }
.specs dt { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { margin: var(--space-1) 0 0; font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; }
.specs > div:nth-child(1) dd, .specs > div:nth-child(3) dd { color: var(--signal); }

/* The company, exploded */
.iso { position: relative; width: 100%; aspect-ratio: 1 / 1.02; }
.iso-stage { position: absolute; left: calc(50% - 170px); top: calc(50% - 40px); width: 380px; height: 270px; transform-style: preserve-3d; transform: rotateX(57deg) rotateZ(var(--turn)); animation: assemble-in 1600ms var(--ease) both 200ms; }
.iso-stage::before { content: ""; position: absolute; inset: 6% 4%; border-radius: var(--site-radius-lg); background: color-mix(in oklab, var(--shade) 32%, transparent); filter: blur(28px); transform: translateZ(-40px); }
.iso-plate { position: absolute; inset: 0; border-radius: var(--radius-outer); transform-style: preserve-3d; background: var(--card); box-shadow: 0 0 0 1px var(--line-2) inset; transform: translateZ(calc(var(--k) * var(--gap))); }
.iso-plate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--line-2); transform: translateZ(-7px); }
.iso-plate.is-library { --k: 0; background: var(--signal); box-shadow: none; color: var(--signal-ink); }
.iso-plate.is-library::after { background: color-mix(in oklab, var(--signal) 70%, var(--neutral-950)); }
.iso-plate.is-work { --k: 1; }
.iso-plate.is-rooms { --k: 2; }
.iso-plate.is-team { --k: 3; background: var(--panel); }
.iso-plate > * { position: relative; z-index: 1; }
.iso-tag { position: absolute !important; left: 18px; top: 14px; display: flex; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--site-text-art); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.iso-tag b { font-weight: 500; color: var(--signal); }
.is-library .iso-tag, .is-library .iso-tag b { color: color-mix(in oklab, var(--signal-ink) 85%, transparent); }
.iso-plate i:not(.iso-ring) { display: block; height: 5px; border-radius: var(--radius-pill); background: var(--line-2); }
.iso-lib { position: absolute !important; inset: var(--site-space-10) var(--space-5) var(--space-5); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.iso-entry { display: grid; align-content: start; gap: var(--space-1); padding: var(--space-3); border-radius: var(--radius-inner); background: color-mix(in oklab, var(--neutral-0) 95%, transparent); }
.iso-entry em { font-style: normal; font-family: var(--font-mono); font-size: var(--site-text-art); letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); }
.iso-entry i + i { width: 60%; }
.iso-work { position: absolute !important; inset: var(--site-space-10) var(--space-6) var(--space-5); display: grid; gap: var(--space-2); align-content: start; font-size: var(--text-base); }
.iso-work b { font-size: var(--text-base); letter-spacing: -0.01em; }
.iso-pill { justify-self: start; padding: var(--space-0) var(--space-2); border-radius: var(--radius-pill); font-size: var(--site-text-art); font-weight: 600; color: var(--signal); background: var(--signal-wash); }
.iso-step { display: grid; grid-template-columns: 14px 1fr; align-items: center; gap: var(--space-2); }
.iso-step svg { color: var(--working); stroke-width: 2.6; font-size: var(--text-base); }
.iso-step i { width: 70%; }
.iso-ring { display: block; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px var(--signal) inset; }
.iso-room { position: absolute !important; inset: var(--site-space-10) var(--space-5) var(--space-5); display: grid; gap: var(--space-2); align-content: start; }
.iso-head { display: flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); font-weight: 600; }
.iso-msg { display: grid; gap: var(--space-1); width: 62%; padding: var(--space-2) var(--space-3); border-radius: var(--radius-inner); background: var(--panel); }
.iso-msg.is-mine { justify-self: end; width: 52%; }
.iso-msg .mk-agent { width: 16px; height: 16px; }
.iso-msg i:last-child { width: 55%; }
.iso-ask { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-inner); background: var(--signal-wash); color: var(--signal); font-size: var(--text-sm); }
.iso-ask i { flex: 1; background: color-mix(in oklab, var(--signal) 30%, transparent) !important; }
.iso-ask em { font-style: normal; font-weight: 600; padding: var(--space-0) var(--space-2); border-radius: var(--site-radius-xs); color: var(--bg); background: var(--ink); }
.iso-team { position: absolute !important; inset: 0; display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding-top: var(--space-5); }
.iso-team > span:not(.iso-gap) { width: 46px !important; height: 46px !important; font-size: var(--text-base) !important; box-shadow: 0 0 0 3px var(--panel), var(--shadow); }
.iso-gap { width: 1px; height: 40px; background: var(--line-2); margin: 0 var(--space-1); }

/* The product, drawn */
.mk-window { position: relative; text-align: left; border-radius: var(--radius-outer); overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); }
.mk-titlebar { display: flex; align-items: center; gap: var(--space-2); height: 38px; padding: 0 var(--space-4); border-bottom: 1px solid var(--line); background: var(--panel); font-size: var(--text-sm); color: var(--ink-3); }
.mk-titlebar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mk-titlebar span:first-child { background: var(--signal); }
.mk-titlebar b { margin: 0 auto; font-weight: 500; font-family: var(--font-mono); letter-spacing: 0.04em; transform: translateX(-24px); }
.mk-body { display: grid; grid-template-columns: 210px 1fr; min-height: 480px; }
.mk-rail { padding: var(--space-4) var(--space-3); background: var(--panel); border-right: 1px solid var(--line); font-size: var(--text-base); }
.mk-ws { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-2) var(--space-4); font-weight: 600; }
.mk-ws-tile { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--site-radius-sm); font-size: var(--text-sm); font-weight: 600; color: var(--signal-ink); background: var(--signal); }
.mk-head { margin: var(--space-4) var(--space-2) var(--space-1); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.mk-row { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-2); border-radius: var(--site-radius-sm); color: var(--ink-2); white-space: nowrap; }
.mk-row svg { font-size: var(--text-md); color: var(--ink-3); }
.mk-row.is-on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.mk-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 var(--space-1); border-radius: var(--radius-pill); background: var(--signal); color: var(--signal-ink); font-size: var(--text-sm); font-style: normal; font-weight: 600; display: grid; place-items: center; }
.mk-live { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--working); animation: blink 1.8s ease-in-out infinite; }
.mk-person, .mk-agent { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: var(--text-sm); font-weight: 600; font-style: normal; flex: none; }
.mk-person { background: var(--t0); color: var(--ink-2); }
.mk-person[data-t="1"] { background: var(--t1); }
.mk-person[data-t="2"] { background: var(--t2); }
/* An agent is a glass bead in its colour, as the product draws it. */
.mk-agent { border-radius: 50%; color: var(--signal-ink); background-image: radial-gradient(circle at 34% 28%, var(--bead-light) 0%, transparent 50%), radial-gradient(circle at 62% 82%, var(--bead-shade) 0%, transparent 62%); box-shadow: inset 0 0 0 1px var(--bead-edge); }
.mk-agent[data-c="0"] { background-color: var(--ink); color: var(--bg); }
.mk-agent[data-c="1"] { background-color: var(--signal); }
.mk-agent[data-c="2"] { background-color: var(--cobalt); }
.mk-agent[data-c="3"] { background-color: var(--lemon); color: var(--lemon-ink); }
.mk-page { display: flex; flex-direction: column; min-width: 0; }
.mk-page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--line); }
.mk-page-head > span:first-child { display: grid; gap: var(--space-0); min-width: 0; }
.mk-page-head b { font-weight: 600; font-size: var(--text-md); letter-spacing: -0.01em; }
.mk-page-head small { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--ink-3); font-size: var(--text-sm); white-space: nowrap; }
.mk-page-head small svg { font-size: var(--text-base); }
.mk-from { display: inline-flex; align-items: center; gap: var(--space-1); margin-bottom: var(--space-1) !important; font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.02em; color: var(--ink-3); }
.mk-from svg { font-size: var(--text-base); }
.mk-row kbd { margin-left: auto; }
.mk-faces { display: flex; }
.mk-faces > * { margin-left: calc(var(--space-1) * -1); box-shadow: 0 0 0 2px var(--card); }
.mk-thread { flex: 1; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6) var(--space-6); font-size: var(--text-base); }
.mk-msg { max-width: 560px; }
.mk-msg p { margin: 0; line-height: 1.55; }
.mk-msg.is-mine { align-self: flex-end; max-width: 420px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-outer) var(--radius-outer) var(--site-radius-xs) var(--radius-outer); background: var(--panel); }
.mk-at { color: var(--signal); font-weight: 600; }
.mk-by { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-1) !important; font-weight: 600; font-size: var(--text-base); }
.mk-attach { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3); border-radius: var(--radius-inner); background: var(--card); box-shadow: 0 0 0 1px var(--line-2); }
.mk-attach > svg { font-size: var(--site-glyph); color: var(--signal); }
.mk-attach span { display: grid; line-height: 1.35; }
.mk-attach small { color: var(--ink-3); font-size: var(--text-sm); }
.mk-working { display: grid; font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.02em; color: var(--ink-3); }
.mk-working > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: var(--space-2); }
.mk-working .is-doing { opacity: 0; }
.mk-working .is-done svg { color: var(--working); stroke-width: 2.4; font-size: var(--text-base); }
.mk-working-dots { display: inline-flex; gap: var(--space-0); }
.mk-working-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: dot 1.2s ease-in-out infinite; }
.mk-working-dots i:nth-child(2) { animation-delay: 150ms; }
.mk-working-dots i:nth-child(3) { animation-delay: 300ms; }
.mk-ask { display: grid; border-radius: var(--radius-inner); background: var(--signal-wash); box-shadow: 0 0 0 1px color-mix(in oklab, var(--signal) 30%, transparent) inset; }
.mk-ask > * { grid-area: 1 / 1; }
.mk-ask-q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); }
.mk-ask p { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--text-base); }
.mk-ask-q p svg { color: var(--signal); font-size: var(--text-lg); }
.mk-ask-q > div { display: flex; gap: var(--space-1); flex: none; }
.mk-approved { align-self: center; padding: 0 var(--space-4); }
.mk-ask-q { opacity: 0; visibility: hidden; }
.mk-pills { display: grid; }
.mk-pills > * { grid-area: 1 / 1; justify-self: end; }
.mk-pills .is-attention { opacity: 0; visibility: hidden; }
.mk-pill.is-done { color: var(--working); background: var(--working-wash); }
.mk-doneline { display: flex; align-items: center; gap: var(--space-2); margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--ink-2); }
.mk-doneline svg { color: var(--working); stroke-width: 2.4; font-size: var(--text-base); }
.mk-doneline b { color: var(--working); font-weight: 600; }
.mk-approved svg { color: var(--working); stroke-width: 2.4; font-size: var(--text-lg); }
.mk-btn { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 var(--space-3); border-radius: var(--site-radius-sm); font-size: var(--text-base); font-weight: 550; color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--line-2) inset; white-space: nowrap; }
.mk-btn.is-primary { background: var(--ink); color: var(--bg); box-shadow: none; }
.mk-cursor { position: absolute; left: 60%; top: 55%; display: flex; align-items: flex-start; gap: var(--space-0); opacity: 0; pointer-events: none; z-index: 3; }
.mk-cursor svg { width: 18px; height: 18px; fill: var(--cobalt); stroke: var(--signal-ink); stroke-width: 1.4; filter: drop-shadow(0 2px 3px color-mix(in oklab, var(--neutral-950) 25%, transparent)); }
.mk-cursor em { margin-top: var(--space-4); padding: var(--space-0) var(--space-2); border-radius: var(--site-radius-xs) var(--site-radius-xs) var(--site-radius-xs) calc(var(--radius-inner) / 5); font-style: normal; font-size: var(--text-sm); font-weight: 600; color: var(--signal-ink); background: var(--cobalt); }
.mk-composer { display: flex; align-items: center; justify-content: space-between; margin: 0 var(--space-5) var(--space-5); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); border-radius: var(--radius-inner); box-shadow: 0 0 0 1px var(--line-2) inset; color: var(--ink-3); font-size: var(--text-base); }
.mk-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--site-radius-sm); background: var(--ink); color: var(--bg); }
.mk-send svg { font-size: var(--text-md); }

.mk-panel { position: relative; padding: var(--space-6); border-radius: var(--radius-outer); background: var(--card); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); font-size: var(--text-base); text-align: left; }
.mk-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-1); }
.mk-work h4 { margin: var(--space-4) 0 var(--space-1); font-size: var(--site-text-title-sm); font-weight: 600; letter-spacing: -0.02em; }
.mk-muted { margin: 0; color: var(--ink-3); font-size: var(--text-base); display: inline-flex; align-items: center; gap: var(--space-1); }
.mk-muted .mk-agent { width: 18px; height: 18px; }
.mk-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-3); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; }
.mk-pill.is-attention { color: var(--signal); background: var(--signal-wash); }
.mk-steps { list-style: none; margin: var(--space-5) 0 var(--space-4); padding: 0; display: grid; gap: var(--space-3); }
.mk-steps li { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-2); }
.mk-steps li svg { color: var(--working); stroke-width: 2.2; font-size: var(--text-lg); }
.mk-steps li.is-now { color: var(--ink); font-weight: 550; }
.mk-steps li.is-now i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px var(--signal) inset; position: relative; flex: none; }
.mk-steps li.is-now i::after { content: ""; position: absolute; inset: var(--space-1); border-radius: 50%; background: var(--signal); animation: blink 1.8s ease-in-out infinite; }
.mk-steer { display: grid; grid-template-columns: auto 1fr; gap: var(--space-0) var(--space-3); align-items: center; margin-bottom: var(--space-4); padding: var(--space-3) var(--space-3); border-radius: var(--radius-inner); background: var(--panel); }
.mk-steer span { font-size: var(--text-base); }
.mk-steer em { grid-column: 2; font-style: normal; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--signal); }
.mk-room { display: grid; gap: var(--space-3); }
.mk-room .mk-panel-head { margin-bottom: var(--space-2); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.mk-room-name { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 600; }
.mk-said { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.mk-said > span { display: grid; gap: var(--space-0); line-height: 1.45; }
.mk-said b { font-weight: 600; font-size: var(--text-base); }
.mk-said span span { color: var(--ink-2); }
.mk-workline { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-2); align-items: center; padding: var(--space-2) var(--space-3); border-radius: var(--radius-inner); font-size: var(--text-sm); color: var(--ink-2); background: var(--panel); box-shadow: 0 0 0 1px var(--line) inset; }
.mk-workline > svg { font-size: var(--text-base); color: var(--ink-3); }
.mk-workline b { color: var(--ink); font-weight: 600; }
.mk-workline em { font-style: normal; font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--working); }
.mk-workline.is-done > svg { color: var(--working); stroke-width: 2.4; }
.mk-workline.is-done em { color: var(--ink-3); }
.mk-ask-bar { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3); border-radius: var(--radius-inner); color: var(--ink-3); background: var(--card); box-shadow: 0 0 0 1px var(--line-2) inset; }
.mk-ask-bar .mk-send { margin-left: auto; }
.mk-entry.is-new small { color: var(--signal); }
.mk-panel-foot { display: flex; justify-content: flex-end; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.mk-library { display: grid; gap: var(--space-2); }
.mk-search { display: flex; align-items: center; gap: var(--space-2); height: 42px; padding: 0 var(--space-3); margin-bottom: var(--space-1); border-radius: var(--radius-inner); background: var(--panel); color: var(--ink-3); }
.mk-search kbd { margin-left: auto; }
.mk-entry { display: grid; grid-template-columns: 86px 1fr; column-gap: var(--space-3); align-items: center; padding: var(--space-3); border-radius: var(--radius-inner); box-shadow: 0 0 0 1px var(--line) inset; }
.mk-entry b { font-weight: 600; }
.mk-entry small { grid-column: 2; color: var(--ink-3); font-size: var(--text-sm); }
.mk-kind { grid-row: span 2; justify-self: start; align-self: start; padding: var(--space-0) var(--space-2); border-radius: var(--site-radius-xs); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); background: var(--signal-wash); }
.mk-kind[data-k="document"] { color: var(--cobalt); background: color-mix(in oklab, var(--cobalt) 12%, transparent); }
.mk-kind[data-k="answer"] { color: var(--working); background: var(--working-wash); }
.mk-kind[data-k="skill"] { color: var(--ink-2); background: var(--panel-2); }
.mk-hello { margin: 0 0 var(--space-5); font-size: var(--site-text-title-sm); font-weight: 600; letter-spacing: -0.025em; }
.mk-sub { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 var(--space-2); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.mk-sub i { font-style: normal; display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: var(--radius-pill); background: var(--signal); color: var(--signal-ink); font-size: var(--text-sm); letter-spacing: 0; }
.mk-row-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3); margin-bottom: var(--space-1); border-radius: var(--radius-inner); box-shadow: 0 0 0 1px var(--line) inset; }
.mk-row-card > svg { font-size: var(--text-lg); color: var(--signal); }
.mk-row-card span { display: grid; line-height: 1.35; }
.mk-row-card small { color: var(--ink-3); font-size: var(--text-sm); }
.mk-row-card.is-attention { background: color-mix(in oklab, var(--signal-wash) 60%, var(--card)); }
.mk-state { font-style: normal; font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--working); }
.mk-routines { display: grid; gap: var(--space-3); }
.mk-routines .mk-sub { margin-top: 0; }
.mk-routine { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3); border-radius: var(--radius-inner); box-shadow: 0 0 0 1px var(--line) inset; font-size: var(--text-base); }
.mk-routine > div:last-child { display: grid; gap: var(--space-0); }
.mk-routine small { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--ink-3); font-size: var(--text-sm); }
.mk-routine small .mk-agent, .mk-page-head small .mk-agent { width: 16px; height: 16px; }
.mk-routine-clock { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: var(--radius-inner); background: var(--lcd); color: var(--lcd-ink); line-height: 1.1; }
.mk-routine-clock b { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; color: var(--signal); text-transform: uppercase; letter-spacing: 0.1em; }
.mk-routine-clock span { font-family: var(--font-mono); font-size: var(--text-base); font-weight: 600; }

/* Figures, the price pill, the honeycomb */
.fig { margin: var(--space-4) 0 0; font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.hero-art .fig { position: absolute; z-index: 3; left: 8%; bottom: -4%; margin: 0; }
.price-pill { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: var(--space-6); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); font-size: var(--text-base); color: var(--ink-2); text-decoration: none; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow 160ms; animation: rise 1000ms var(--ease) both 460ms; }
.price-pill:hover { box-shadow: 0 0 0 1px var(--ink-4) inset; }
.price-pill span { white-space: nowrap; }
.price-pill b { color: var(--ink); font-weight: 600; }
.price-pill i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.hex { position: absolute; right: 26px; top: 64px; width: 26px; height: 26px; }
.hex[data-r="1"] { width: 58px; height: 58px; top: 56px; }
.hex[data-r="2"] { width: 90px; height: 90px; top: 48px; }
.hex polygon { fill: var(--panel-2); }
.hex polygon.is-core { fill: var(--signal); }
.plan.is-featured .hex polygon:not(.is-core) { fill: var(--ink); }

/* Why */
.statement { margin: 0; max-width: 22ch; font-size: var(--site-head-statement); line-height: 1.04; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.statement em { font-style: normal; color: var(--signal); }
.shift { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--site-space-20); border-top: 1px solid var(--ink); }
.shift-col { position: relative; padding: var(--space-6) var(--space-8) var(--space-2) 0; }
.shift-col + .shift-col { padding-left: var(--space-8); border-left: 1px solid var(--line); }
.shift-n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--signal); }
.shift-before { margin: var(--space-4) 0 0; padding-bottom: var(--space-5); font-size: var(--text-md); color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); text-decoration-thickness: 1.5px; border-bottom: 1px dashed var(--line-2); }
.shift-col h3 { margin: var(--space-5) 0 var(--space-2); font-size: var(--site-text-title-sm); font-weight: 600; letter-spacing: -0.025em; }
.shift-col p:last-child { margin: 0; color: var(--ink-2); font-size: var(--text-md); }

/* One room, one afternoon */
.story { position: relative; height: 320vh; margin-top: var(--site-space-28); background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); view-timeline: --story; }
.story-pin { position: sticky; top: 0; height: 100vh; max-width: var(--max); margin: 0 auto; padding: var(--site-space-18) var(--pad) var(--space-6); display: grid; grid-template-columns: 0.78fr 1.22fr; gap: var(--site-space-14); align-items: center; }
.beats { list-style: none; margin: var(--site-space-10) 0 0; padding: 0; display: grid; gap: var(--space-1); counter-reset: beat; }
.beats li { position: relative; display: grid; gap: var(--space-0); padding: var(--space-3) 0 var(--space-3) var(--site-space-16); border-top: 1px solid var(--line-2); }
.beats time { position: absolute; left: 0; top: 15px; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 400; letter-spacing: 0.02em; color: var(--ink-3); }
.beats b { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.015em; }
.beats span { font-size: var(--text-base); color: var(--ink-2); }
.story-art .mk-window { box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -40px color-mix(in oklab, var(--shade) 35%, transparent); }

/* Team: agents as modules */
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.mod { position: relative; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-outer); background: var(--panel); box-shadow: 0 0 0 1px var(--line-2) inset, 0 1px 0 var(--card) inset; transition: transform 320ms var(--spring), box-shadow 300ms; }
.mod:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow-lg); }
.mod header { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.14em; color: var(--ink-3); }
.mod-led { width: 8px; height: 8px; border-radius: 50%; background: var(--working); box-shadow: 0 0 8px var(--working); animation: blink 1.6s ease-in-out infinite; }
.mod-led.is-off { background: var(--ink-4); box-shadow: none; animation: none; }
.mod-face { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: stretch; }
.mod-glyph .mk-agent { width: 64px; height: 64px; }
.mod-screen { display: grid; align-content: center; gap: var(--space-0); padding: var(--space-3) var(--space-3); border-radius: var(--radius-inner); background: var(--lcd); color: var(--lcd-ink); box-shadow: 0 0 0 3px var(--panel-2); }
.mod-screen b { font-size: var(--text-base); font-weight: 600; letter-spacing: -0.01em; }
.mod-screen small { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--working); }
.mod[data-c="3"] .mod-screen small { color: var(--lcd-quiet); }
.mod-knobs { display: flex; gap: var(--space-3); padding: var(--space-0) var(--space-1); }
.mod-knobs i { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line-2), 0 3px 6px -2px color-mix(in oklab, var(--shade) 20%, transparent); transition: rotate 600ms var(--spring); }
.mod-knobs i::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 9px; margin-left: -1px; border-radius: var(--radius-pill); background: var(--ink); }
.mod-knobs i:nth-child(2) { rotate: 70deg; }
.mod-knobs i:nth-child(3) { rotate: -50deg; }
.mod[data-c="1"] .mod-knobs i:first-child { background: var(--signal); }
.mod[data-c="2"] .mod-knobs i:first-child { background: var(--cobalt); }
.mod[data-c="3"] .mod-knobs i:first-child { background: var(--lemon); }
.mod-knobs i:first-child::after { background: var(--signal-ink); }
.mod[data-c="3"] .mod-knobs i:first-child::after { background: var(--lemon-ink); }
.mod:hover .mod-knobs i:nth-child(1) { rotate: 120deg; }
.mod:hover .mod-knobs i:nth-child(2) { rotate: -20deg; }
.mod:hover .mod-knobs i:nth-child(3) { rotate: 90deg; }
.mod dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.mod dl div { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-0); border-bottom: 1px solid var(--line); font-size: var(--text-base); }
.mod dt { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.mod dd { margin: 0; font-weight: 550; text-align: right; }
.mod.is-slot { align-items: center; justify-content: center; text-align: center; gap: var(--space-2); background: transparent; box-shadow: none; border: 1.5px dashed var(--line-2); min-height: 300px; color: var(--ink-2); }
.mod.is-slot > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: var(--site-glyph); color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--line-2); transition: transform 320ms var(--spring), background-color 200ms; }
.mod.is-slot:hover > span { transform: rotate(90deg); background: var(--signal); color: var(--signal-ink); }
.mod.is-slot b { font-size: var(--text-lg); color: var(--ink); }
.mod.is-slot small { font-size: var(--text-base); max-width: 20ch; }
.mod.is-slot:hover { transform: none; box-shadow: none; border-color: var(--signal); }

/* The places: a dial */
.dial-wrap { position: relative; display: grid; grid-template-columns: 380px 1fr; gap: var(--space-6); margin-top: var(--site-space-16); padding: var(--space-6); border-radius: var(--site-radius-lg); background: var(--panel); box-shadow: 0 0 0 1px var(--line) inset; }
.dial-wrap > input { position: absolute; opacity: 0; pointer-events: none; }
.dial-panel { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); padding: var(--space-5); border-radius: var(--radius-outer); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.dial { position: relative; width: 300px; height: 230px; margin: 0 auto; }
.dial-knob { position: absolute; left: calc(50% - 62px); top: calc(50% - 62px); width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, var(--card), var(--panel) 75%); box-shadow: 0 0 0 1px var(--line-2), 0 14px 28px -12px color-mix(in oklab, var(--shade) 40%, transparent), 0 0 0 10px var(--panel), 0 0 0 11px var(--line); rotate: -45deg; transition: rotate 700ms var(--spring); }
.dial-knob::before { content: ""; position: absolute; inset: var(--space-6); border-radius: 50%; box-shadow: 0 0 0 1px var(--line) inset; }
.dial-knob i { position: absolute; left: 50%; top: 10px; width: 4px; height: 26px; margin-left: calc(var(--space-0) * -1); border-radius: var(--radius-pill); background: var(--signal); box-shadow: 0 0 10px color-mix(in oklab, var(--signal) 60%, transparent); }
.dial-pos { position: absolute; display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-1); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); cursor: pointer; transition: color 160ms; }
.dial-pos:hover { color: var(--ink); }
.dial-pos i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background-color 200ms, box-shadow 200ms; }
.dial-pos[data-p="1"] { left: 0; top: 0; }
.dial-pos[data-p="2"] { right: 0; top: 0; flex-direction: row-reverse; }
.dial-pos[data-p="3"] { right: 0; bottom: 0; flex-direction: row-reverse; }
.dial-pos[data-p="4"] { left: 0; bottom: 0; }
.dial-wrap:has(#dial-rooms:checked) .dial-knob { rotate: 45deg; }
.dial-wrap:has(#dial-work:checked) .dial-knob { rotate: 135deg; }
.dial-wrap:has(#dial-routines:checked) .dial-knob { rotate: 225deg; }
.dial-wrap:has(#dial-home:checked) .dial-pos[data-p="1"],
.dial-wrap:has(#dial-rooms:checked) .dial-pos[data-p="2"],
.dial-wrap:has(#dial-work:checked) .dial-pos[data-p="3"],
.dial-wrap:has(#dial-routines:checked) .dial-pos[data-p="4"] { color: var(--ink); }
.dial-wrap:has(#dial-home:checked) .dial-pos[data-p="1"] i,
.dial-wrap:has(#dial-rooms:checked) .dial-pos[data-p="2"] i,
.dial-wrap:has(#dial-work:checked) .dial-pos[data-p="3"] i,
.dial-wrap:has(#dial-routines:checked) .dial-pos[data-p="4"] i { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.dial-wrap:has(> input:focus-visible) .dial-knob { outline: 2px solid var(--signal); outline-offset: 14px; }
.dial-text, .dial-view { display: none; }
.dial-text h3 { margin: 0 0 var(--space-2); font-size: var(--site-text-title); font-weight: 600; letter-spacing: -0.03em; }
.dial-text p { margin: 0; color: var(--ink-2); font-size: var(--text-md); }
.dial-screen { position: relative; display: grid; align-items: center; min-height: 480px; padding: var(--site-space-10); border-radius: var(--radius-outer); background: var(--lcd); box-shadow: 0 0 0 4px var(--panel-2), 0 0 0 5px var(--line-2); background-image: radial-gradient(color-mix(in oklab, var(--lcd-ink) 7%, transparent) 1px, transparent 1.2px); background-size: 18px 18px; }
.dial-view .mk-panel { max-width: 560px; margin: 0 auto; }
.dial-wrap:has(#dial-home:checked) [data-s="home"],
.dial-wrap:has(#dial-rooms:checked) [data-s="rooms"],
.dial-wrap:has(#dial-work:checked) [data-s="work"],
.dial-wrap:has(#dial-routines:checked) [data-s="routines"] { display: block; animation: view-in 520ms var(--ease) both; }

/* A day, like a sequencer */
.seq-wrap { padding: var(--space-8); border-radius: var(--site-radius-lg); background: var(--lcd); color: var(--lcd-ink); box-shadow: 0 0 0 1px var(--line-2); overflow-x: auto; scrollbar-width: none; }
.seq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(130px, 1fr)); gap: var(--space-3); }
.seq-step { display: grid; align-content: start; gap: var(--space-1); min-height: 190px; padding: var(--space-4) var(--space-4); border-radius: var(--radius-inner); background: color-mix(in oklab, var(--lcd-ink) 4%, transparent); box-shadow: 0 0 0 1px color-mix(in oklab, var(--lcd-ink) 8%, transparent) inset; animation: seq-card 8s steps(1) infinite; }
.seq-led { width: 10px; height: 10px; margin-bottom: var(--space-3); border-radius: 50%; background: color-mix(in oklab, var(--lcd-ink) 16%, transparent); animation: seq-led 8s steps(1) infinite; }
.seq-step time { font-family: var(--font-mono); font-size: var(--text-base); color: var(--lcd-quiet); }
.seq-step b { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); }
.seq-step p { margin: var(--space-1) 0 0; font-size: var(--text-base); line-height: 1.45; color: color-mix(in oklab, var(--lcd-ink) 86%, transparent); }
.seq-step:nth-child(2), .seq-step:nth-child(2) .seq-led { animation-delay: 1s; }
.seq-step:nth-child(3), .seq-step:nth-child(3) .seq-led { animation-delay: 2s; }
.seq-step:nth-child(4), .seq-step:nth-child(4) .seq-led { animation-delay: 3s; }
.seq-step:nth-child(5), .seq-step:nth-child(5) .seq-led { animation-delay: 4s; }
.seq-step:nth-child(6), .seq-step:nth-child(6) .seq-led { animation-delay: 5s; }
.seq-step:nth-child(7), .seq-step:nth-child(7) .seq-led { animation-delay: 6s; }
.seq-step:nth-child(8), .seq-step:nth-child(8) .seq-led { animation-delay: 7s; }

/* Trust */
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--site-space-18); align-items: center; }
.lib-art .mk-panel { max-width: 560px; }
.lib-grid .lede { margin-top: var(--space-6); }
.facts { list-style: none; margin: var(--space-8) 0 0; padding: 0; border-top: 1px solid var(--ink); }
.facts li { display: grid; grid-template-columns: var(--site-space-10) 1fr; gap: 0 var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.facts span { grid-row: span 2; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--signal); padding-top: var(--space-0); }
.facts b { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.015em; }
.facts p { margin: var(--space-1) 0 0; color: var(--ink-2); font-size: var(--text-md); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--site-space-18); align-items: center; }
.trust .lede { margin-top: var(--space-6); }
.locks { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-outer); background: var(--panel); box-shadow: 0 0 0 1px var(--line) inset; }
.lock { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-inner); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.lock span:last-child { display: grid; }
.lock b { font-weight: 600; font-size: var(--text-md); }
.lock small { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.lock-switch { position: relative; width: 48px; height: 26px; flex: none; border-radius: var(--radius-pill); background: var(--panel-2); box-shadow: 0 0 0 1px var(--line-2) inset; }
.lock-switch i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px color-mix(in oklab, var(--neutral-950) 25%, transparent); }
.lock-switch.is-on { background: var(--signal); box-shadow: none; }
.lock-switch.is-on i { left: 25px; }

/* Models */
.carts { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cart { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); height: 54px; padding: 0 var(--space-5) 0 var(--space-4); border-radius: var(--radius-inner); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.015em; background: var(--card); box-shadow: 0 0 0 1px var(--line-2), 0 2px 0 var(--line-2); transition: transform 260ms var(--spring); }
.cart:hover { transform: translateY(-3px); }
.cart i { width: 6px; height: 26px; border-radius: var(--radius-pill); background: var(--signal); }
.cart[data-i="1"] i { background: var(--cobalt); }
.cart[data-i="2"] i { background: var(--lemon); }
.cart.is-more { color: var(--ink-3); background: transparent; box-shadow: 0 0 0 1px var(--line-2) inset; font-family: var(--font-mono); font-size: var(--text-base); font-weight: 500; letter-spacing: 0.04em; }

/* Patch bay */
.pb-wrap { margin-bottom: var(--space-6); }
.pb { display: block; width: 100%; height: auto; }
.pb-face { fill: var(--panel); stroke: var(--line); }
.pb-jack circle:first-child { fill: var(--card); stroke: var(--line-2); stroke-width: 1.5; }
.pb-jack circle:last-child { fill: var(--ink); }
.pb-jack.is-c1 circle:last-child, .pb-jack.is-on circle:last-child { fill: var(--signal); }
.pb-jack.is-c2 circle:last-child { fill: var(--cobalt); }
.pb-jack.is-c3 circle:last-child { fill: var(--lemon); }
.pb-wire { fill: none; stroke-width: 7; stroke-linecap: round; stroke: var(--signal); stroke-dasharray: 900; stroke-dashoffset: 0; filter: drop-shadow(0 6px 6px color-mix(in oklab, var(--shade) 18%, transparent)); }
.pb-wire[data-c="2"] { stroke: var(--cobalt); }
.pb-wire[data-c="3"] { stroke: var(--lemon); }
.pb-code { font-family: var(--font-mono); font-size: var(--text-base); letter-spacing: 0.14em; fill: var(--ink-3); }
.pb-name { font-family: var(--font-sans); font-size: var(--site-text-title-sm); font-weight: 600; letter-spacing: -0.02em; fill: var(--ink); }

/* Pricing */
.billing { display: inline-flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-8); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.1em; text-transform: uppercase; }
.billing input { position: absolute; opacity: 0; pointer-events: none; }
.billing > label:not(.billing-switch) { color: var(--ink-3); cursor: pointer; transition: color 160ms; }
.billing small { color: var(--signal); font-size: var(--text-sm); }
.billing input:checked + label { color: var(--ink); }
.billing input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: var(--site-radius-xs); }
.billing-switch { position: relative; width: 56px; height: 30px; border-radius: var(--radius-pill); background: var(--ink); cursor: pointer; }
.billing-switch i { position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); transition: translate 380ms var(--spring); }
.billing:has(#bill-year:checked) .billing-switch i { translate: 26px 0; }
.billing-switch.is-to-month { display: none; }
.billing:has(#bill-year:checked) .billing-switch.is-to-year { display: none; }
.billing:has(#bill-year:checked) .billing-switch.is-to-month { display: block; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: var(--space-6) var(--space-6) var(--space-8); border-radius: var(--radius-outer); background: var(--card); box-shadow: 0 0 0 1px var(--line-2); }
.plan.is-featured { box-shadow: 0 0 0 2px var(--ink), var(--shadow-lg); }
.plan header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.14em; color: var(--ink-3); }
.plan header em { font-style: normal; padding: var(--space-0) var(--space-2); border-radius: var(--radius-pill); color: var(--signal-ink); background: var(--signal); letter-spacing: 0.08em; text-transform: uppercase; }
.plan h3 { margin: 0; font-size: var(--site-text-title); font-weight: 600; letter-spacing: -0.035em; }
.plan-tag { margin: var(--space-1) 0 0; font-size: var(--text-base); color: var(--ink-3); }
.price { display: flex; align-items: baseline; gap: var(--space-2); margin: var(--space-8) 0 0; }
.price b { font-size: var(--site-text-figure); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.price span { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.06em; color: var(--ink-3); }
.price .is-year { display: none; }
.pricing:has(#bill-year:checked) .price .is-year { display: inline; animation: tick 380ms var(--spring); }
.pricing:has(#bill-year:checked) .price .is-month { display: none; }
.pricing:has(#bill-month:checked) .price .is-month { animation: tick 380ms var(--spring); }
.plan-lead { margin: var(--space-4) 0 var(--space-6); font-size: var(--text-md); color: var(--ink-2); min-height: 2.9em; }
.plan-cta { width: 100%; }
.plan .checks { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line); gap: var(--space-3); }
.plan .checks li { font-size: var(--text-base); }
.sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-5); margin: var(--site-space-14) 0 0; padding: var(--space-6) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-2); font-size: var(--text-md); color: var(--ink-2); }
.sum b { margin-right: var(--space-2); font-size: var(--site-text-figure-sm); font-weight: 600; letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sum span:last-child b { color: var(--signal); }
.sum-op { font-family: var(--font-mono); font-size: var(--site-glyph); color: var(--ink-4); }
.beta-note { display: inline-flex; align-items: center; gap: var(--space-3); margin: var(--space-8) 0 0; font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0 var(--site-space-20); align-items: start; }
.faq > div:first-child { position: sticky; top: 120px; }
.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-6) var(--space-0); font-size: var(--text-xl); font-weight: 550; letter-spacing: -0.02em; cursor: pointer; list-style: none; transition: color 160ms; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--signal); }
.qa summary span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--panel); color: var(--ink-2); transition: rotate 360ms var(--spring), background-color 160ms, color 160ms; }
.qa details[open] summary span { rotate: 45deg; background: var(--signal); color: var(--signal-ink); }
.qa details p { margin: 0; padding: 0 var(--site-space-14) var(--space-6) var(--space-0); color: var(--ink-2); font-size: var(--text-lg); }
.qa details::details-content { height: 0; overflow: clip; transition: height 380ms var(--ease), content-visibility 380ms allow-discrete; }
.qa details[open]::details-content { height: auto; }

/* Access */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: var(--site-space-20); align-items: start; padding-bottom: var(--site-space-40); }
.access .lede { margin-top: var(--space-6); }
.site .landing-card { padding: var(--space-8); border-radius: var(--radius-outer); background: var(--card); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); }
.site .landing-card-title { margin: 0 0 var(--space-2); font-size: var(--site-text-title); font-weight: 600; letter-spacing: -0.03em; }
.site .landing-card-body { margin: 0 0 var(--space-2); color: var(--ink-2); font-size: var(--text-md); }
.site .landing-form { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.site .field-group { display: grid; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.site .field { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; font-weight: 400; width: 100%; height: 46px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-inner); font-size: var(--text-md); color: var(--ink); background: var(--panel); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow 160ms, background-color 160ms; }
.site .field::placeholder { color: var(--ink-3); }
.site .field:focus { outline: none; background: var(--card); box-shadow: 0 0 0 1.5px var(--ink) inset, 0 0 0 4px var(--signal-wash); }
.site .field.landing-note { height: auto; padding: var(--space-3) var(--space-4); resize: vertical; }
.site .landing-form .btn.btn-accent { margin-top: var(--space-1); width: 100%; }
.site .landing-card-fine { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--ink-3); text-align: center; text-wrap: pretty; }
.site .page-problem { margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-3); border-radius: var(--radius-inner); font-size: var(--text-base); color: var(--signal); background: var(--signal-wash); }

/* Footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); overflow: hidden; }
.foot > .foot-row:first-child { padding-top: var(--site-space-10); border-top: 1px solid var(--ink); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.foot nav { display: flex; gap: var(--space-1); flex-wrap: wrap; margin-inline: calc(var(--space-3) * -1); }
.foot nav a { padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); background: var(--panel); }
.foot-word { margin: var(--site-space-14) 0 -0.13em; font-size: var(--site-head-wordmark); line-height: 0.8; font-weight: 600; letter-spacing: -0.07em; color: var(--ink); user-select: none; }
.foot-word::first-letter { color: var(--signal); }
.foot-row.is-legal { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.foot-legal { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.foot-legal a { color: inherit; text-decoration: none; }
.foot-legal a:hover { color: var(--ink); }

/* Privacy and terms (site-legal.ts): one readable column. */
.legal { max-width: 72ch; padding-bottom: var(--site-space-20); }
.legal h1 { margin: var(--space-2) 0 var(--space-5); font-size: var(--site-head-section); line-height: 0.98; font-weight: 600; letter-spacing: -0.048em; }
.legal h2 { margin: var(--site-space-10) 0 var(--space-3); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-2); text-wrap: pretty; }
.legal p { margin: 0 0 var(--space-4); }
.legal ul { margin: 0 0 var(--space-4); padding-left: var(--space-5); display: grid; gap: var(--space-2); }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-underline-offset: 0.2em; }
.legal-date { margin: 0; font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* Keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes assemble-in { from { --gap: 160px; --turn: -60deg; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes view-in { from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(6px); } }
@keyframes tick { from { opacity: 0; transform: translateY(10px); } }
@keyframes seq-led { 0% { background: var(--signal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--signal) 20%, transparent), 0 0 14px var(--signal); } 12.5%, 100% { background: color-mix(in oklab, var(--lcd-ink) 16%, transparent); box-shadow: none; } }
@keyframes seq-card { 0% { background: color-mix(in oklab, var(--lcd-ink) 10%, transparent); } 12.5%, 100% { background: color-mix(in oklab, var(--lcd-ink) 4%, transparent); } }
@keyframes mk-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes mk-doing { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mk-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes mk-out { to { opacity: 0; visibility: hidden; } }
@keyframes mk-swap-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes mk-settle { to { background-color: var(--working-wash); box-shadow: 0 0 0 1px color-mix(in oklab, var(--working) 30%, transparent) inset; } }
@keyframes mk-press { 50% { transform: scale(0.9); } }
@keyframes mk-cursor { 0% { opacity: 0; transform: translate(-220px, 70px); } 25% { opacity: 1; } 100% { opacity: 1; transform: translate(0, 0); } }
@keyframes beat { 0%, 100% { opacity: 0.38; } 12%, 88% { opacity: 1; } }
@keyframes beat-last { 0% { opacity: 0.38; } 12%, 100% { opacity: 1; } }
@keyframes beat-mark { 0%, 100% { color: var(--ink-3); } 12%, 88% { color: var(--signal); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes assemble { to { --gap: 12px; --turn: -28deg; } }
@keyframes wire { from { stroke-dashoffset: 900; } }
@keyframes reveal { from { opacity: 0; transform: translateY(36px); filter: blur(6px); } }

/* Scroll-driven: the company assembles, the afternoon plays as you read, the page reveals itself. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
    .iso { animation: assemble linear both; animation-timeline: scroll(root); animation-range: 0 620px; }
    .pb { view-timeline: --pb; }
    .pb-wire { animation: wire linear both; animation-timeline: --pb; animation-range: entry 30% cover 50%; }
    .pb-wire[data-c="2"] { animation-range: entry 45% cover 55%; }
    .pb-wire[data-c="3"] { animation-range: entry 60% cover 60%; }
    .rv { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }

    .story .mk-beat-1 { animation: mk-in linear both; animation-timeline: --story; animation-range: contain 2% contain 10%; }
    .story .mk-beat-2 { animation: mk-in linear both; animation-timeline: --story; animation-range: contain 12% contain 18%; }
    .story .mk-beat-2 .is-doing { animation: mk-doing linear both; animation-timeline: --story; animation-range: contain 12% contain 34%; }
    .story .mk-beat-2 .is-done { animation: mk-show linear both; animation-timeline: --story; animation-range: contain 32% contain 36%; }
    .story .mk-beat-3 { animation: mk-in linear both; animation-timeline: --story; animation-range: contain 34% contain 44%; }
    .story .mk-beat-4 { animation: mk-in linear both, mk-settle linear forwards; animation-timeline: --story, --story; animation-range: contain 48% contain 58%, contain 80% contain 86%; }
    .story .mk-cursor { animation: mk-cursor linear both; animation-timeline: --story; animation-range: contain 60% contain 74%; }
    .story .mk-ask-q .mk-btn.is-primary { animation: mk-press linear both; animation-timeline: --story; animation-range: contain 74% contain 79%; }
    .story .mk-ask-q { animation: mk-swap-out linear both; animation-timeline: --story; animation-range: contain 79% contain 82%; }
    .story .mk-pills .is-attention { animation: mk-swap-out linear both; animation-timeline: --story; animation-range: contain 89% contain 92%; }
    .story .mk-pills .is-done { animation: mk-show linear both; animation-timeline: --story; animation-range: contain 90% contain 94%; }
    .story .mk-beat-5 { animation: mk-in linear both; animation-timeline: --story; animation-range: contain 88% contain 96%; }
    .story .mk-approved { animation: mk-show linear both; animation-timeline: --story; animation-range: contain 82% contain 88%; }
    .beats li { animation: beat linear both; animation-timeline: --story; }
    .beats time { animation: beat-mark linear both; animation-timeline: --story; }
    .beats li:nth-child(1), .beats li:nth-child(1) time { animation-range: contain 0% contain 32%; }
    .beats li:nth-child(2), .beats li:nth-child(2) time { animation-range: contain 28% contain 50%; }
    .beats li:nth-child(3), .beats li:nth-child(3) time { animation-range: contain 46% contain 80%; }
    .beats li:nth-child(4) { animation-name: beat-last; animation-range: contain 78% contain 100%; }
    .beats li:nth-child(4) time { animation-name: beat-mark; animation-range: contain 78% contain 140%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .mk-working .is-doing, .mk-cursor { opacity: 0; }
  .story { height: auto; }
  .story-pin { position: static; height: auto; padding-top: var(--site-space-28); padding-bottom: var(--site-space-28); }
}
@supports not (animation-timeline: view()) {
  .story { height: auto; }
  .story-pin { position: static; height: auto; padding-top: var(--site-space-28); padding-bottom: var(--site-space-28); }
}

/* Narrower screens */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "art" "specs"; }
  .hero-art { margin: 0 auto; width: min(640px, 100%); }
  .specs { grid-template-columns: repeat(3, 1fr); }
  .specs > div:nth-child(3) { border-right: 0; }
  .specs > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .specs > div:nth-child(4) { padding-left: 0; }
  .mods { grid-template-columns: repeat(2, 1fr); }
  .story-pin { grid-template-columns: 1fr; gap: var(--space-6); align-content: center; }
  .beats { display: none; }
  .story-copy .h2 { font-size: var(--site-head-pinned); }
  .dial-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --pad: var(--space-4); }
  .nav-links { display: none; }
  .sec { padding-top: var(--site-space-28); }
  .sec-head, .trust-grid, .lib-grid, .access, .faq { grid-template-columns: 1fr; gap: var(--space-8); }
  .faq > div:first-child { position: static; }
  .shift, .plans { grid-template-columns: 1fr; }
  .shift-col + .shift-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .mk-body { grid-template-columns: 1fr; min-height: 0; }
  .mk-rail { display: none; }
  .story { height: 260vh; }
  .story-pin { padding-top: var(--site-space-16); }
  .seq { grid-template-columns: repeat(8, 200px); }
  .dial-screen { min-height: 0; padding: var(--space-5); }
  .dial { width: 260px; height: 210px; }
}
@media (max-width: 600px) {
  .nav { gap: var(--space-2); }
  .nav-actions { gap: 0; }
  .nav-actions .nav-link { padding: var(--space-1) var(--space-2); }
  .hero { padding-top: var(--site-space-12); }
  :root { --site-head-hero: clamp(42px, 12.4vw, 60px); }
  .hero-h1 > span { display: inline; white-space: normal; }
  .price-pill { border-radius: var(--radius-inner); }
  .price-pill i:nth-of-type(2) { display: none; }
  .iso-stage { scale: 0.72; }
  .iso { aspect-ratio: 1 / 1; margin-top: calc(var(--space-6) * -1); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs > div { padding: var(--space-4) var(--space-3) var(--space-4) 0 !important; border-right: 0; }
  .specs > div:nth-child(even) { padding-left: var(--space-3) !important; border-left: 1px solid var(--line); }
  .specs > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .mods { grid-template-columns: 1fr; }
  .mod.is-slot { min-height: 180px; }
  .mk-thread { padding: var(--space-4); }
  .mk-titlebar b { transform: none; }
  .mk-page-head small { white-space: normal; flex-wrap: wrap; }
  .mk-ask-q { flex-direction: column; align-items: stretch; }
  .mk-ask-q > div { justify-content: flex-end; }
  .mk-entry { grid-template-columns: 1fr; }
  .mk-kind { grid-row: auto; margin-bottom: var(--space-1); }
  .mk-entry small { grid-column: 1; }
  .mk-row-card { grid-template-columns: auto 1fr; }
  .mk-row-card > .mk-btn, .mk-row-card > .mk-state { display: none; }
  .dial-wrap { padding: var(--space-3); }
  .dial-panel { padding: var(--space-4); }
  .qa details p { padding-right: var(--space-2); }
  .story-art .mk-msg.is-mine { max-width: 88%; }
  .carts { gap: var(--space-2); }
  .cart { height: 40px; padding: 0 var(--space-4) 0 var(--space-3); font-size: var(--text-base); }
  .cart i { height: 18px; width: 5px; }
  .pb-name { font-size: var(--site-text-title); }
  .pb-code { font-size: var(--text-lg); }
}
