/* ==========================================================================
   Cornerman landing page
   Brand from cornermanai.com.au: navy / blue / ivory, orange = unanswered,
   Archivo (wdth 72 to 125) for statements, Newsreader for people talking,
   square corners, the corner bracket as the signature.
   Base styles are a calm static page. html.motion layers the scroll scenes.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800; font-stretch: 72% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-var.woff2") format("woff2");
  font-weight: 380 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 380 500; font-style: italic; font-display: swap;
}

:root {
  --night: #060c1d;
  --night-2: #0a1330;
  --night-3: #111e45;
  --snow: #eef1f8;
  --fog: #aeb8d2;
  --fog-2: #8290b2;
  --ivory: #f3eee3;
  --ivory-2: #e8e0cf;
  --paper: #fbf9f4;
  --ink: #0a1330;
  --ink-2: #333d58;
  --ink-3: #5a6279;
  --blue: #3366ff;
  --blue-hi: #6e95ff;
  --blue-ink: #1b45d6;
  --orange: #ff7a4d;
  --orange-ink: #b63a10;
  --line-d: rgba(174, 184, 210, 0.18);
  --line-l: rgba(10, 19, 48, 0.14);

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --gut: clamp(20px, 5vw, 72px);
  --frame: clamp(10px, 1.5vw, 20px);
  --head: clamp(68px, 9vh, 92px);
  --maxw: 1320px;
  /* Left and right edge of the content column, as a length inside any full-width box. */
  --edge: max(var(--gut), (100% - var(--maxw)) / 2);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --t-hero: clamp(2.6rem, min(7.6vw, 14vh), 8.4rem);
  --t-big: clamp(2.15rem, min(5.6vw, 10.5vh), 6.4rem);
  --t-h2: clamp(2.05rem, 1.1rem + 3.7vw, 5rem);
  --t-lede: clamp(1.06rem, 0.96rem + 0.42vw, 1.3rem);
  --t-say: clamp(1.12rem, 0.92rem + 0.7vw, 1.55rem);
  --t-sys: 0.8125rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font: 400 1.0625rem/1.6 var(--f-sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, dl, dd, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 4px; }
.light :focus-visible { outline-color: var(--blue); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--gut); top: -80px; z-index: 300; background: var(--blue); color: #fff; padding: 12px 16px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }
.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.light { background: var(--ivory); color: var(--ink); }

/* Word masks: room above and below so tails never clip */
.w { display: inline; }
.mask .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.16em 0.08em 0.32em; margin: -0.16em -0.08em -0.32em; }
.mask .wi { display: inline-block; }

/* The corner bracket, the brand's signature */
.corners {
  --bk: var(--blue-hi); --bl: 12px; --bw: 2px;
  background:
    linear-gradient(var(--bk) 0 0) 0 0 / var(--bl) var(--bw),
    linear-gradient(var(--bk) 0 0) 0 0 / var(--bw) var(--bl),
    linear-gradient(var(--bk) 0 0) 100% 0 / var(--bl) var(--bw),
    linear-gradient(var(--bk) 0 0) 100% 0 / var(--bw) var(--bl),
    linear-gradient(var(--bk) 0 0) 0 100% / var(--bl) var(--bw),
    linear-gradient(var(--bk) 0 0) 0 100% / var(--bw) var(--bl),
    linear-gradient(var(--bk) 0 0) 100% 100% / var(--bl) var(--bw),
    linear-gradient(var(--bk) 0 0) 100% 100% / var(--bw) var(--bl);
  background-repeat: no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 600 1rem/1 var(--f-sans); font-stretch: 104%; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn::after {
  content: ""; position: absolute; inset: -7px; pointer-events: none;
  --bk: var(--blue-hi); --bl: 10px; --bw: 2px;
  background:
    linear-gradient(var(--bk) 0 0) 0 0 / var(--bl) var(--bw),
    linear-gradient(var(--bk) 0 0) 0 0 / var(--bw) var(--bl),
    linear-gradient(var(--bk) 0 0) 100% 0 / var(--bl) var(--bw),
    linear-gradient(var(--bk) 0 0) 100% 0 / var(--bw) var(--bl),
    linear-gradient(var(--bk) 0 0) 0 100% / var(--bl) var(--bw),
    linear-gradient(var(--bk) 0 0) 0 100% / var(--bw) var(--bl),
    linear-gradient(var(--bk) 0 0) 100% 100% / var(--bl) var(--bw),
    linear-gradient(var(--bk) 0 0) 100% 100% / var(--bw) var(--bl);
  background-repeat: no-repeat;
  opacity: 0; transform: scale(1.08);
  transition: opacity 0.25s, transform 0.45s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { opacity: 1; transform: none; }
.btn:focus-visible { outline: none; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-ink); }
.btn--line { color: var(--snow); box-shadow: inset 0 0 0 1px rgba(174, 184, 210, 0.42); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--snow); }
.light .btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(10, 19, 48, 0.3); }
.light .btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.light .btn::after { --bk: var(--blue); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--sm::after { inset: -6px; --bl: 8px; }
.btn__bars { display: inline-flex; align-items: center; gap: 3px; height: 14px; }
.btn__bars i { width: 2px; height: 100%; background: currentColor; transform-origin: center; }
.btn__bars i:nth-child(1) { height: 45%; }
.btn__bars i:nth-child(3) { height: 65%; }

/* ---------- Frame (fixed chrome) ---------- */
.frame { position: fixed; inset: 0; z-index: 60; pointer-events: none; color: var(--snow); }
.frame a, .frame button { pointer-events: auto; }
.frame__c {
  position: absolute; width: 22px; height: 22px;
  border: 0 solid var(--fc, var(--blue-hi));
  transition: border-color 0.35s;
  will-change: transform;
}
.frame__c--tl { top: var(--frame); left: var(--frame); border-top-width: 2px; border-left-width: 2px; }
.frame__c--tl::after { content: ""; position: absolute; left: 4px; top: 4px; width: 6px; height: 6px; background: var(--fc, var(--blue-hi)); transition: background-color 0.35s; }
.frame__c--tr { top: var(--frame); right: var(--frame); border-top-width: 2px; border-right-width: 2px; }
.frame__c--bl { bottom: var(--frame); left: var(--frame); border-bottom-width: 2px; border-left-width: 2px; }
.frame__c--br { bottom: var(--frame); right: var(--frame); border-bottom-width: 2px; border-right-width: 2px; }

.brand {
  position: absolute; top: calc(var(--frame) + 13px); left: calc(var(--frame) + 22px);
  display: flex; align-items: center; min-height: 24px;
  font: 800 0.9rem/1 var(--f-sans); font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; transition: color 0.35s;
}
.frame__tr { position: absolute; top: calc(var(--frame) + 6px); right: calc(var(--frame) + 8px); display: flex; align-items: center; gap: 6px; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; font: 600 0.875rem/1 var(--f-sans); transition: color 0.35s; }
.menu-btn__icon { position: relative; width: 18px; height: 10px; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.35s var(--ease); }
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { bottom: 0; left: 6px; }
.frame__status {
  position: absolute; left: calc(var(--frame) + 14px); bottom: calc(var(--frame) + 10px);
  display: flex; align-items: center; gap: 9px; min-height: 22px;
  font: 500 var(--t-sys)/1 var(--f-sans); color: var(--fog); transition: color 0.35s;
}
.frame__dot { width: 7px; height: 7px; background: var(--blue-hi); transition: background-color 0.35s; }
.frame__status[data-state="ring"] .frame__dot { background: var(--orange); animation: blink 0.9s steps(2, jump-none) infinite; }
.frame__live {
  position: absolute; right: calc(var(--frame) + 12px); bottom: calc(var(--frame) + 6px);
  display: inline-flex; align-items: center; gap: 9px; min-height: 30px; padding: 0 6px;
  font: 600 var(--t-sys)/1 var(--f-sans); text-decoration: none; color: var(--snow); transition: color 0.35s;
}
.frame__live .btn__bars i { animation: bars 1.2s ease-in-out infinite; }
.frame__live .btn__bars i:nth-child(2) { animation-delay: -0.4s; }
.frame__live .btn__bars i:nth-child(3) { animation-delay: -0.8s; }
.frame__live:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
@keyframes bars { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: 0.25; } }

.frame[data-tl="light"] .frame__c--tl, .frame[data-tr="light"] .frame__c--tr,
.frame[data-bl="light"] .frame__c--bl, .frame[data-br="light"] .frame__c--br { --fc: var(--blue); }
.frame[data-tl="light"] .brand, .frame[data-tr="light"] .menu-btn { color: var(--ink); }
.frame[data-bl="light"] .frame__status { color: var(--ink-3); }
.frame[data-bl="light"] .frame__dot { background: var(--blue); }
.frame[data-br="light"] .frame__live { color: var(--ink); }
.frame.is-quiet .frame__status, .frame.is-quiet .frame__live,
.menu-open .frame__status, .menu-open .frame__live { opacity: 0 !important; pointer-events: none; }
.frame__status, .frame__live { transition: color 0.35s, opacity 0.35s; }

/* Bands behind the header and the status line, in the colour of the section under them,
   so copy scrolls beneath the chrome instead of through it. */
.frame::before, .frame::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: -1;
  background-color: var(--night); transition: background-color 0.35s, opacity 0.35s;
}
/* The last 18px of each band fades, so copy slips under it rather than being sliced. */
.frame::before { top: 0; height: calc(var(--frame) + 76px); -webkit-mask-image: linear-gradient(#000 calc(100% - 18px), transparent); mask-image: linear-gradient(#000 calc(100% - 18px), transparent); }
.frame::after { bottom: 0; height: calc(var(--frame) + 64px); -webkit-mask-image: linear-gradient(transparent, #000 18px); mask-image: linear-gradient(transparent, #000 18px); }
.frame[data-top="light"]::before { background-color: var(--ivory); }
.frame[data-bottom="light"]::after { background-color: var(--ivory); }
/* Pinned scenes keep their own floor (the cue, the call's step rail), so no bottom band there. */
.frame[data-bottom="none"]::after, .frame.is-quiet::after, .menu-open .frame::after { opacity: 0; }
.menu-open .frame::before { background-color: var(--night); }

/* ---------- Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--night-2); color: var(--snow);
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--head) + 4vh) var(--gut) calc(var(--frame) + 32px);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; gap: 0.1em; align-self: center; }
.menu__links a {
  font: 760 clamp(2rem, min(6.4vw, 8vh), 4.6rem)/1.1 var(--f-sans); font-stretch: 108%; letter-spacing: -0.035em;
  text-decoration: none; padding: 0.04em 0 0.12em; width: fit-content;
  color: var(--fog); transition: color 0.2s;
}
.menu__links a:hover, .menu__links a:focus-visible { color: var(--snow); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-d); padding-top: 20px; color: var(--fog); }
.menu__foot a { text-decoration: none; }
.menu__foot a:hover { color: var(--snow); }
.menu-open .menu-btn__icon::before { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn__icon::after { transform: translate(-6px, -4px) rotate(-45deg); }
.menu-open .frame .brand, .menu-open .frame .menu-btn { color: var(--snow) !important; }
.menu-open .frame__c { --fc: var(--blue-hi) !important; }
html.menu-open { overflow: hidden; scrollbar-gutter: stable; }

/* ==========================================================================
   Scenes. Base = static, readable, no motion.
   ========================================================================== */
.scene { position: relative; }
.stage { position: relative; }
.signal, .brackets, .rail, .cue { display: none; }

/* ---------- Hero ---------- */
.scene--hero .stage { padding: calc(var(--head) + 6vh) var(--gut) 12vh; }
.hero__title {
  font-weight: 760; font-size: var(--t-hero); line-height: 0.92;
  letter-spacing: -0.045em;
  --wdth: 112; font-variation-settings: "wdth" var(--wdth);
}
.hero__a, .hero__b { display: block; }
.hero__b { color: var(--blue-hi); margin-top: 0.02em; }
.hero__foot {
  margin-top: clamp(30px, 5vh, 56px);
  display: grid; grid-template-columns: minmax(0, 46ch) auto;
  gap: 24px 48px; align-items: end; justify-content: space-between;
}
.hero__lede { font-size: var(--t-lede); line-height: 1.5; color: var(--fog); }
.hero__lede strong { color: var(--snow); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__made { grid-column: 1 / -1; font: 500 var(--t-sys)/1.4 var(--f-sans); color: var(--fog-2); }

.insight { margin-top: 18vh; max-width: 62rem; }
.insight__big { font: 740 var(--t-big)/0.98 var(--f-sans); letter-spacing: -0.04em; font-stretch: 104%; max-width: 15ch; }
.insight__small { margin-top: clamp(16px, 3vh, 30px); max-width: 44ch; font-size: var(--t-lede); line-height: 1.5; color: var(--fog); }
.insight__small em { font-family: var(--f-serif); font-style: italic; font-size: 1.08em; color: var(--snow); }

/* ---------- Doors ---------- */
.scene--doors .stage { padding: 14vh 0; }
.doors { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.doors__title { font: 740 var(--t-h2)/1 var(--f-sans); font-stretch: 106%; letter-spacing: -0.035em; }
.swap { display: grid; }
.swap > span { grid-area: 1 / 1; }
.swap__b { color: var(--blue-hi); }
/* Static first: without motion the headline reads in its resolved form only. */
html:not(.motion) .swap__a { display: none; }
.doors__intro { margin-top: clamp(18px, 3vh, 28px); font-size: var(--t-lede); line-height: 1.5; color: var(--fog); max-width: 40ch; }
.board { position: relative; border-top: 1px solid var(--line-d); }
.board__row {
  display: grid; grid-template-columns: 6.6rem 9.5rem minmax(0, 1fr); gap: 12px 20px; align-items: center;
  min-height: clamp(52px, 7.6vh, 70px); padding: 10px 0;
  border-bottom: 1px solid var(--line-d); font-size: 1rem;
}
.board__row--head { min-height: 44px; color: var(--fog-2); font-size: var(--t-sys); font-weight: 500; }
.b-when { font-variant-numeric: tabular-nums; color: var(--fog); }
.b-where { font-weight: 600; font-stretch: 104%; }
.b-state { position: relative; display: grid; }
.st { display: block; }
.st--no { color: var(--orange); text-decoration: line-through; text-decoration-thickness: 1px; opacity: 0.85; }
.st--yes { color: var(--blue-hi); font-weight: 500; }
.board__scan { display: none; }

/* ---------- One enquiry, slowed down ---------- */
.scene--call .stage { padding: 14vh var(--gut); }
.c-intro__big { font: 740 var(--t-big)/0.98 var(--f-sans); letter-spacing: -0.04em; font-stretch: 104%; max-width: 15ch; }
.c-intro__small { margin-top: clamp(16px, 3vh, 30px); max-width: 46ch; font-size: var(--t-lede); line-height: 1.5; color: var(--fog); }
.ring { margin-top: 12vh; }
.ring__time { font: 760 var(--t-big)/0.95 var(--f-sans); letter-spacing: -0.045em; font-stretch: 110%; max-width: 15ch; }
.ring__time .t { color: var(--fog-2); }
.ring__missed { margin-top: clamp(16px, 3vh, 30px); font: 500 var(--t-say)/1.3 var(--f-sans); color: var(--orange); }
.ring__missed span { position: relative; display: inline-block; }
.ring__missed span::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: currentColor; transform: scaleX(var(--strike, 1)); transform-origin: left; }
.ring__answer { margin-top: 10px; font: 600 var(--t-say)/1.3 var(--f-sans); color: var(--blue-hi); }
.ring__answer span { display: inline-block; }

.convo { margin-top: 12vh; }
.convo__inner { max-width: 62rem; }
.turn + .turn, .fields + .turn, .slots + .turn { margin-top: clamp(16px, 3.2vh, 34px); }
.who { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font: 500 var(--t-sys)/1 var(--f-sans); color: var(--fog-2); }
.who::before { content: ""; width: 7px; height: 7px; background: var(--blue-hi); }
.turn--caller .who::before { background: var(--snow); }
.say { font: 400 var(--t-say)/1.38 var(--f-sans); color: var(--snow); max-width: 40ch; }
.say--big { font: 420 clamp(1.75rem, min(4.3vw, 7.6vh), 4.6rem)/1.08 var(--f-serif); letter-spacing: -0.02em; max-width: 19ch; }
.say--mid { font: 420 clamp(1.45rem, min(3vw, 5.4vh), 3rem)/1.1 var(--f-serif); letter-spacing: -0.015em; }
.ent { white-space: nowrap; transition: color 0.4s; }
.ent.is-locked { color: var(--blue-hi); }
.fields { display: flex; flex-wrap: wrap; margin-top: clamp(14px, 2.6vh, 28px); }
.field { padding: 2px 22px; border-left: 1px solid var(--line-d); }
.field:first-child { padding-left: 0; border-left: 0; }
.field dt { font: 500 var(--t-sys)/1.2 var(--f-sans); color: var(--fog-2); }
.field dd { margin-top: 4px; font: 600 1.0625rem/1.2 var(--f-sans); font-stretch: 104%; }
.slots { display: flex; gap: 10px; margin-top: clamp(12px, 2vh, 18px); }
.slots li { min-width: 108px; padding: 13px 16px; box-shadow: inset 0 0 0 1px var(--line-d); font: 600 1rem/1 var(--f-sans); font-variant-numeric: tabular-nums; transition: background-color 0.35s, color 0.35s, box-shadow 0.35s; }
.slots li.is-pick { background: var(--blue); color: #fff; box-shadow: none; }

.outcome { margin-top: 10vh; display: grid; gap: 12px; max-width: 34rem; }
.card { background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-d); padding: clamp(14px, 2.2vh, 22px) 20px; }
.card__kind { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font: 500 var(--t-sys)/1.2 var(--f-sans); color: var(--fog-2); }
.card__state { color: var(--blue-hi); }
.card h3 { font: 650 clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem)/1.25 var(--f-sans); font-stretch: 104%; letter-spacing: -0.01em; }
.card p:not(.card__kind) { margin-top: 4px; color: var(--fog); font-size: 0.95rem; line-height: 1.45; }
.kv { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 0.95rem; color: var(--snow); }
.kv span { color: var(--fog-2); margin-right: 6px; }
.bubble { margin-top: 2px; background: var(--ivory); color: var(--ink) !important; padding: 10px 14px; font: 420 1.02rem/1.4 var(--f-serif) !important; max-width: 32ch; }

.end { margin-top: 12vh; }
.end__text { font: 760 var(--t-big)/0.98 var(--f-sans); letter-spacing: -0.04em; font-stretch: 106%; max-width: 13ch; }
.end__text span { display: inline-block; }

.morning { margin-top: 14vh; background: var(--ivory); color: var(--ink); padding: 14vh var(--gut); margin-inline: calc(-1 * var(--gut)); }
.morning__time { font: 760 var(--t-hero)/0.9 var(--f-sans); letter-spacing: -0.045em; font-stretch: 112%; color: var(--blue); }
.morning__line { margin-top: clamp(14px, 2.6vh, 28px); font: 740 var(--t-big)/1 var(--f-sans); letter-spacing: -0.04em; font-stretch: 104%; max-width: 16ch; }
.rail__note { margin-top: 10vh; font: 500 var(--t-sys)/1.4 var(--f-sans); color: var(--fog-2); }

/* ---------- Light sections ---------- */
.section { position: relative; padding: clamp(84px, 10vw, 148px) 0; }
.head { max-width: 64rem; margin-bottom: clamp(40px, 6vw, 84px); }
.h2 { font: 740 var(--t-h2)/1 var(--f-sans); font-stretch: 106%; letter-spacing: -0.035em; max-width: 17ch; }
.intro { margin-top: clamp(18px, 2.4vw, 28px); font-size: var(--t-lede); line-height: 1.52; color: var(--ink-3); max-width: 50ch; }
.dark .intro { color: var(--fog); }
.fine { margin-top: 20px; font: 500 var(--t-sys)/1.5 var(--f-sans); color: var(--ink-3); max-width: 70ch; }
.dark .fine { color: var(--fog-2); }

/* Rules */
.rules__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.rules__picks { border-bottom: 1px solid var(--line-l); }
.pick {
  position: relative; display: block; width: 100%; text-align: left;
  padding: 22px 16px 22px 0; border-top: 1px solid var(--line-l);
  font: 420 clamp(1.2rem, 0.98rem + 0.8vw, 1.65rem)/1.3 var(--f-serif); color: var(--ink-3);
  transition: color 0.25s, padding 0.45s var(--ease);
}
.pick::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  background: var(--blue); transform: scale(0); transition: transform 0.45s var(--ease);
}
.pick:hover { color: var(--ink); }
.pick[aria-pressed="true"] { color: var(--ink); padding-left: 28px; }
.pick[aria-pressed="true"]::before { transform: none; }
.rules__out { position: relative; }
.rule { background: var(--night-2); color: var(--snow); padding: clamp(26px, 3.6vw, 52px); }
.rule[hidden] { display: none; }
.rule__k { font: 500 var(--t-sys)/1.2 var(--f-sans); color: var(--fog-2); margin-top: clamp(22px, 3vw, 34px); }
.rule__k:first-child { margin-top: 0; }
.rule__if { margin-top: 10px; font: 740 clamp(1.7rem, 1rem + 2.5vw, 3.1rem)/1.02 var(--f-sans); font-stretch: 106%; letter-spacing: -0.03em; max-width: 18ch; }
.rule__then { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; font: 650 clamp(1.1rem, 1rem + 0.4vw, 1.35rem)/1.2 var(--f-sans); font-stretch: 106%; }
.rule__then::before { content: ""; width: 11px; height: 11px; background: var(--snow); }
.rule__then--go::before { background: var(--blue-hi); }
.rule__then--stop::before { background: var(--orange); }
.rule__say { margin-top: 10px; font: 420 var(--t-say)/1.4 var(--f-serif); max-width: 36ch; }

/* Desks */
.scene--desks .stage { padding: 16vh var(--gut); }
.desks { width: min(100%, var(--maxw)); margin-inline: auto; }
.desks__title { font: 760 clamp(2.3rem, min(7vw, 12vh), 7.6rem)/1.02 var(--f-sans); font-stretch: 106%; letter-spacing: -0.04em; }
.desks__title > span { display: block; }
.desks__title .dim { color: var(--ink-3); }
.roll { position: relative; display: inline-block; vertical-align: top; height: 1.26em; overflow: hidden; padding: 0 0.16em; margin-left: -0.16em; }
.roll.corners { --bk: var(--blue); --bl: 0.22em; --bw: 3px; }
.roll__track { display: block; }
.roll__track > span { display: block; width: max-content; height: 1.26em; line-height: 1.26; white-space: nowrap; color: var(--blue-ink); }
.desks__facts { margin-top: clamp(36px, 7vh, 80px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 48px); border-top: 1px solid var(--line-l); padding-top: 24px; }
.desks__facts dt { font: 650 1.05rem/1.2 var(--f-sans); font-stretch: 106%; }
.desks__facts dd { margin-top: 8px; color: var(--ink-3); line-height: 1.5; font-size: 1rem; }
html:not(.motion) .roll { height: auto; }
html:not(.motion) .roll__track > span { display: none; }
html:not(.motion) .roll__track > span:last-child { display: block; }

/* Systems */
.systems__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.systems__side { position: sticky; top: calc(var(--head) + 4vh); }
.enq { margin-top: clamp(28px, 4vw, 44px); background: var(--night-2); color: var(--snow); padding: 22px 22px 24px; max-width: 26rem; position: relative; }
.enq.corners { --bk: var(--blue-hi); --bl: 12px; }
.enq__k { font: 500 var(--t-sys)/1.2 var(--f-sans); color: var(--fog-2); }
.enq__name { margin-top: 10px; font: 650 1.25rem/1.2 var(--f-sans); font-stretch: 106%; }
.enq__what { margin-top: 6px; color: var(--fog); }
.sys-list { position: relative; padding-left: 40px; }
.spine { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line-l); }
.spine__fill { position: absolute; inset: 0; background: var(--blue); transform-origin: top; }
.sys-row { position: relative; display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 6px 28px; padding: 26px 0; border-bottom: 1px solid var(--line-l); }
.sys-row:first-child { padding-top: 4px; }
.sys-row::before { content: ""; position: absolute; left: -40px; top: 32px; width: 14px; height: 14px; background: var(--ivory); box-shadow: inset 0 0 0 2px rgba(10, 19, 48, 0.28); transition: background-color 0.4s, box-shadow 0.4s; }
.sys-row:first-child::before { top: 10px; }
.sys-row.is-hit::before { background: var(--blue); box-shadow: none; }
.sys-row.is-skip.is-hit::before { background: var(--ivory-2); box-shadow: inset 0 0 0 2px rgba(10, 19, 48, 0.28); }
.sys-row h3 { font: 680 1.2rem/1.25 var(--f-sans); font-stretch: 106%; letter-spacing: -0.01em; }
.sys-row p { color: var(--ink-3); line-height: 1.5; }
.sys-row .landed { grid-column: 2; display: flex; gap: 10px; align-items: baseline; font-weight: 500; color: var(--blue-ink); }
.sys-row .landed b { font: 600 var(--t-sys)/1 var(--f-sans); color: var(--ink-3); min-width: 5.2em; }
.sys-row.is-skip .landed { color: var(--ink-3); }
.tools { margin-top: clamp(36px, 5vw, 56px); font: 500 1rem/1.7 var(--f-sans); color: var(--ink-2); max-width: 60ch; }
.tools span { color: var(--ink-3); }

/* How */
.steps-wrap { position: relative; padding-top: 44px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 48px); }
.steps__track, .steps__line { position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line-l); }
.steps__line { background: var(--blue); transform-origin: left; }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; top: -44px; left: 0; width: 12px; height: 12px; background: var(--ivory); box-shadow: inset 0 0 0 2px rgba(10, 19, 48, 0.3); transition: background-color 0.4s, box-shadow 0.4s; }
.steps li.is-hit::before { background: var(--blue); box-shadow: none; }
.steps h3 { font: 740 clamp(1.4rem, 1rem + 1.2vw, 2rem)/1.08 var(--f-sans); font-stretch: 106%; letter-spacing: -0.025em; }
.steps p { margin-top: 12px; color: var(--ink-3); line-height: 1.55; }

/* Live line */
.live { position: relative; overflow: hidden; background: var(--night); display: flex; align-items: center; padding: clamp(92px, 10vw, 148px) 0; }
.live .signal { display: block; }
.live__inner { position: relative; }
.live__title { font: 760 var(--t-hero)/0.94 var(--f-sans); letter-spacing: -0.045em; font-stretch: 110%; max-width: 13ch; }
.live__title span { display: block; }
.live__title span + span { margin-top: 0.02em; color: var(--blue-hi); }
.live__grid { margin-top: clamp(64px, 11vh, 120px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.4vw, 80px); align-items: start; }
.live__lede { font-size: var(--t-lede); line-height: 1.5; color: var(--fog); max-width: 42ch; }
.consent { position: relative; margin-top: 30px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; max-width: 46ch; font-size: 0.95rem; line-height: 1.55; color: var(--fog); cursor: pointer; }
.consent input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.consent__box { position: relative; width: 22px; height: 22px; margin-top: 1px; box-shadow: inset 0 0 0 1.5px rgba(174, 184, 210, 0.6); transition: background-color 0.2s, box-shadow 0.2s; }
.consent input:checked + .consent__box { background: var(--blue); box-shadow: none; }
.consent input:checked + .consent__box::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.consent input:disabled ~ span { opacity: 0.7; }
.consent.is-need .consent__box { box-shadow: inset 0 0 0 2px var(--orange); }
.live__controls { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn[disabled]::after { display: none; }
.btn[disabled]:hover { background: var(--blue); }
.live__hint { margin-top: 14px; font-size: 0.95rem; line-height: 1.5; color: var(--orange); }
.live__hint:empty { margin-top: 0; }
.live__side .fine { margin-top: 18px; max-width: 46ch; }
.console { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: clamp(400px, 58vh, 540px); background: var(--night-2); padding: 20px clamp(18px, 2.4vw, 30px) 24px; }
.console.corners { --bk: var(--blue-hi); --bl: 14px; }
.console__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-d); }
.console__state { display: flex; align-items: center; gap: 10px; font: 600 1rem/1.2 var(--f-sans); color: var(--snow); }
.console__dot { flex: none; width: 8px; height: 8px; background: var(--fog-2); transition: background-color 0.3s; }
.console__state[data-state="ready"] .console__dot,
.console__state[data-state="listening"] .console__dot,
.console__state[data-state="turn"] .console__dot,
.console__state[data-state="understanding"] .console__dot,
.console__state[data-state="speaking"] .console__dot,
.console__state[data-state="action"] .console__dot { background: var(--blue-hi); }
.console__state[data-state="handoff"] .console__dot { background: var(--snow); }
.console__state[data-state="checking"] .console__dot,
.console__state[data-state="connecting"] .console__dot,
.console__state[data-state="mic"] .console__dot { background: var(--blue-hi); animation: blink 0.9s steps(2, jump-none) infinite; }
.console__state[data-state="speaking"] .console__dot,
.console__state[data-state="understanding"] .console__dot { animation: blink 0.6s ease-in-out infinite alternate; }
.console__clock { font: 500 var(--t-sys)/1 var(--f-sans); font-variant-numeric: tabular-nums; color: var(--fog-2); visibility: hidden; }
.console.is-live .console__clock { visibility: visible; }
.console__body { display: flex; flex-direction: column; min-height: 0; }
.console__log { list-style: none; display: flex; flex-direction: column; gap: 14px; max-height: clamp(220px, 38vh, 360px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 6px 18px 0; scrollbar-width: thin; scrollbar-color: rgba(174, 184, 210, 0.3) transparent; }
.console__log:empty { display: none; }
.console__empty { margin: auto 0; padding: 28px 0; max-width: 30ch; font: 420 var(--t-say)/1.4 var(--f-serif); color: var(--fog); }
.msg { display: grid; gap: 6px; animation: rise 0.5s var(--ease) both; }
.msg__who { display: flex; align-items: center; gap: 9px; font: 500 var(--t-sys)/1 var(--f-sans); color: var(--fog-2); }
.msg__who::before { content: ""; width: 7px; height: 7px; background: var(--blue-hi); }
.msg--you .msg__who::before { background: var(--snow); }
.msg__text { max-width: 54ch; font-size: 1.06rem; line-height: 1.5; color: var(--snow); }
.msg--note .msg__text { padding-left: 14px; box-shadow: inset 2px 0 0 var(--line-d); font-size: 0.95rem; color: var(--fog); }
.console__steps { border-top: 1px solid var(--line-d); padding-top: 16px; }
.console__k { font: 500 var(--t-sys)/1.2 var(--f-sans); color: var(--fog-2); }
.console__actions { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.console__actions:empty { display: none; }
.console__none { margin-top: 10px; font-size: 0.95rem; line-height: 1.5; color: var(--fog-2); }
.act { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; align-items: start; animation: rise 0.5s var(--ease) both; }
.act__mark { width: 10px; height: 10px; margin-top: 6px; box-shadow: inset 0 0 0 1.5px var(--blue-hi); transition: background-color 0.3s, box-shadow 0.3s; }
.act--intent .act__mark { animation: blink 0.9s steps(2, jump-none) infinite; }
.act--done .act__mark { background: var(--blue-hi); box-shadow: none; }
.act--human .act__mark { background: var(--snow); box-shadow: none; }
.act--warn .act__mark { background: var(--orange); box-shadow: none; }
.act__body b { display: block; font-weight: 600; color: var(--snow); }
.act__body span { display: block; margin-top: 2px; font-size: 0.92rem; line-height: 1.45; color: var(--fog); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq__grid .head { position: sticky; top: calc(var(--head) + 4vh); }
.faq__list { border-top: 1px solid var(--line-l); }
.faq__list details { border-bottom: 1px solid var(--line-l); }
.faq__list summary {
  position: relative; display: block; list-style: none; cursor: pointer;
  padding: 24px 52px 24px 0;
  font: 650 clamp(1.1rem, 0.98rem + 0.5vw, 1.4rem)/1.3 var(--f-sans); font-stretch: 104%; letter-spacing: -0.01em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before, .faq__list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--blue); transition: transform 0.45s var(--ease); }
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0); }
.faq__list details p { padding: 0 52px 26px 0; color: var(--ink-3); line-height: 1.6; max-width: 60ch; }

/* Close */
.close { position: relative; background: var(--night); padding: clamp(92px, 10vw, 148px) 0 clamp(72px, 8vw, 120px); }
.close__title { font: 760 var(--t-hero)/0.94 var(--f-sans); letter-spacing: -0.045em; font-stretch: 110%; max-width: 14ch; }
.close__title .b { color: var(--blue-hi); }
.book { margin-top: clamp(40px, 7vh, 80px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4.4vw, 80px); align-items: start; }
.book__side { position: sticky; top: calc(var(--head) + 4vh); }
.book__lede { max-width: 32ch; font-size: var(--t-lede); line-height: 1.5; color: var(--snow); }
.book__list { list-style: none; margin-top: 24px; display: grid; gap: 12px; color: var(--fog); max-width: 36ch; }
.book__list li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 14px; line-height: 1.5; }
.book__list li::before { content: ""; width: 7px; height: 7px; margin-top: 0.62em; background: var(--blue-hi); }
.book__alt { margin-top: 28px; max-width: 36ch; line-height: 1.6; color: var(--fog); }
.book__alt a { color: var(--snow); text-underline-offset: 3px; }
.book__alt a:hover { color: var(--blue-hi); }
.book__side .btn { margin-top: 24px; }
.book__cal { position: relative; display: flex; flex-direction: column; min-height: 750px; background: var(--ivory); color: var(--ink); }
.book__cal::before { content: "Loading available times"; position: absolute; left: 0; right: 0; top: 42%; text-align: center; font: 420 1.1rem/1.4 var(--f-serif); color: var(--ink-3); }
.book__cal iframe { position: relative; z-index: 1; display: block; width: 100%; min-height: 640px; height: 700px; border: 0; background: var(--ivory); }
.book__open { position: relative; z-index: 1; margin-top: auto; padding: 12px 20px 14px; border-top: 1px solid var(--line-l); background: var(--ivory); font-size: 0.9rem; color: var(--ink-3); }
.book__open a { color: var(--blue-ink); text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--night); border-top: 1px solid var(--line-d); padding: 40px 0 calc(var(--frame) + 56px); color: var(--fog); font-size: 0.9375rem; }
.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: baseline; }
.foot__mark { font: 800 0.9rem/1 var(--f-sans); font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--snow); }
.foot__contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--snow); text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { grid-column: 1 / -1; font-size: var(--t-sys); color: var(--fog-2); }

/* ==========================================================================
   Motion layer: pinned scenes. Only when JS and motion are on.
   ========================================================================== */
.motion .scene--hero { height: 300vh; }
.motion .scene--doors { height: 300vh; }
.motion .scene--call { height: 640vh; }
.motion .scene--desks { height: 280vh; }
.motion .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: 0; }
.motion .signal { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Hero */
.motion .scene--hero .stage { background: var(--night); }
.motion .hero { position: absolute; left: var(--gut); right: var(--gut); top: var(--head); bottom: clamp(70px, 11vh, 120px); display: flex; flex-direction: column; justify-content: center; }
.motion .hero__foot { margin-top: clamp(64px, 11vh, 120px); }
.motion .insight { position: absolute; left: var(--edge); right: var(--edge); top: calc(var(--ins-y, 34vh) + clamp(32px, 6vh, 72px)); margin: 0; visibility: hidden; }
.motion .insight .w { opacity: 0.14; }
.motion .cue { display: flex; position: absolute; left: 50%; bottom: calc(var(--frame) + 10px); transform: translateX(-50%); align-items: center; gap: 10px; font: 500 var(--t-sys)/1 var(--f-sans); color: var(--fog-2); white-space: nowrap; }
.cue__tick { position: relative; width: 2px; height: 22px; background: var(--line-d); overflow: hidden; }
.cue__tick::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--blue-hi); animation: tick 1.8s var(--ease) infinite; }
@keyframes tick { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
.motion .hero__title .wi { will-change: transform; }

/* Doors */
.motion .scene--doors .stage { display: flex; align-items: center; }
.motion .doors { padding-top: calc(var(--head) * 0.6); }
.motion .b-state { overflow: hidden; padding: 0.2em 0 0.32em; margin: -0.2em 0 -0.32em; }
.motion .st { grid-area: 1 / 1; }
.motion .st--no { position: relative; justify-self: start; text-decoration: none; opacity: 1; --strike-w: 0%; }
.motion .st--no::after { content: ""; position: absolute; left: 0; top: 52%; top: calc(0.5lh + 0.04em); height: 1px; width: var(--strike-w, 0); background: currentColor; }
.motion .board__scan { display: block; position: absolute; left: -16px; right: 0; top: 0; height: 2px; background: var(--blue-hi); pointer-events: none; opacity: 0; }
.motion .board__scan::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; background: var(--blue-hi); }
.motion .sys-row .landed { opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.7s var(--ease); }
.motion .sys-row.is-hit .landed { opacity: 1; transform: none; }
.motion .swap { overflow: hidden; padding: 0.12em 0 0.3em; margin: -0.12em 0 -0.3em; }

/* Call */
.motion .scene--call .stage { background: transparent; }
.motion .layer { position: absolute; left: var(--edge); right: var(--edge); top: calc(var(--head) + 2vh); bottom: var(--rail-h); margin: 0; visibility: hidden; }
.motion .scene--call { --rail-h: clamp(96px, 13vh, 124px); }
.motion .c-intro { display: flex; flex-direction: column; justify-content: center; visibility: visible; }
.motion .c-intro .w { opacity: 0.14; }
.motion .ring { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 4vh; }
.motion .convo { overflow: hidden; }
.motion .convo .w { opacity: 0.12; }
.motion .convo__inner { will-change: transform; }
.motion .fields .field, .motion .slots li { opacity: 0; transform: translateY(10px); transition: opacity 0.45s, transform 0.6s var(--ease), background-color 0.35s, color 0.35s, box-shadow 0.35s; }
.motion .fields .field.is-on, .motion .slots li.is-on { opacity: 1; transform: none; }
.motion .outcome { display: flex; flex-direction: column; gap: 12px; max-width: none; overflow: hidden; }
.motion .outcome__inner { display: flex; flex-direction: column; gap: 12px; will-change: transform; }
.motion .card { opacity: 0; transform: translateY(28px); transition: opacity 0.5s, transform 0.75s var(--ease); }
.motion .card.is-on { opacity: 1; transform: none; }
.motion .end { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6vh; }
.motion .morning { position: absolute; inset: 0; margin: 0; padding: var(--head) var(--edge) 12vh; display: flex; flex-direction: column; justify-content: center; transform: translateY(101%); will-change: transform; z-index: 6; }
.motion .morning .w { opacity: 0.1; }
.motion .brackets { display: block; position: absolute; left: 0; top: 0; width: 10px; height: 10px; pointer-events: none; z-index: 5; opacity: 0; will-change: transform, width, height; --bl: 16px; --bw: 2px; --bk: var(--blue-hi); }
.motion .rail { display: block; position: absolute; left: var(--edge); right: var(--edge); bottom: 0; height: var(--rail-h); visibility: hidden; z-index: 4; }
.motion .rail__steps { position: absolute; left: 0; right: 0; top: 22px; height: 44px; }
.motion .rail__steps button { position: absolute; top: 0; transform: translateX(-50%); min-height: 44px; padding: 10px 2px; font: 500 var(--t-sys)/1 var(--f-sans); color: var(--fog-2); white-space: nowrap; transition: color 0.3s; }
.motion .rail__steps button:first-child { transform: none; }
.motion .rail__steps button:last-child { transform: translateX(-100%); }
.motion .rail__steps button.is-passed { color: var(--fog); }
.motion .rail__steps button.is-current { color: var(--snow); }
.motion .rail__note { position: absolute; left: 0; right: 0; top: 0; margin: 0; transform: translateY(-130%); text-align: right; }
.rail__steps button:hover { color: var(--snow); }

/* Desks */
.motion .scene--desks .stage { display: flex; align-items: flex-start; background: var(--ivory); }
.motion .desks { width: 100%; padding: calc(var(--head) + 6vh) var(--edge) 8vh; }

@media (min-width: 900px) {
  .motion .outcome { left: auto; width: min(31rem, 38%); }
  .motion .convo { right: calc(var(--gut) + min(31rem, 38%) + clamp(24px, 4vw, 64px)); }
  .motion .end { right: calc(var(--gut) + min(31rem, 38%) + clamp(24px, 4vw, 64px)); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .doors { grid-template-columns: 1fr; gap: clamp(24px, 4vh, 40px); }
  .doors__intro { display: none; }
  .motion .doors__intro { display: none; }
  .desks__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .hero__foot, .live__grid, .book { grid-template-columns: 1fr; }
  .book__side { position: static; }
  .console { min-height: 0; }
  .console__log { max-height: 46vh; }
  .rules__grid, .systems__grid, .faq__grid { grid-template-columns: 1fr; }
  .systems__side, .faq__grid .head { position: static; }
  .steps-wrap { padding-top: 0; padding-left: 40px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps__track, .steps__line { top: 6px; bottom: 6px; left: 5px; right: auto; width: 2px; height: auto; }
  .steps__line { transform-origin: top; }
  .steps li::before { top: 4px; left: -40px; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  :root { --t-hero: clamp(2.45rem, 11.6vw, 4.6rem); --head: 64px; }
  .hero__title { --wdth: 100; letter-spacing: -0.04em; }
  .brand { font-size: 0.8rem; letter-spacing: 0.12em; }
  .frame__tr .btn--sm { min-height: 36px; padding: 0 12px; font-size: 0.8125rem; }
  .frame__live { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .board__row { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 2px 14px; padding: 9px 0; min-height: 0; font-size: 0.95rem; }
  .board__row--head { display: none; }
  .b-state { grid-column: 2; }
  .say--big { font-size: clamp(1.6rem, 7.6vw, 2.3rem); }
  .field { padding: 2px 14px; }
  .field dd { font-size: 0.95rem; }
  .slots li { min-width: 0; flex: 1; text-align: center; padding: 12px 8px; }
  .motion .rail__steps button { font-size: 0.75rem; }
  .motion .rail__note { text-align: left; }
  .desks__facts { grid-template-columns: 1fr; }
  .sys-row { grid-template-columns: 1fr; }
  .sys-row .landed { grid-column: 1; }
  .live__controls .btn { flex: 1 1 auto; }
  .book__cal { min-height: 820px; }
  .book__cal iframe { min-height: 760px; }
}
@media (max-width: 459px) {
  .frame__tr .btn--sm .long { display: none; }
}
@media (max-width: 639px) {
  /* The cue would collide with the frame status; it sits above the frame line instead. */
  .motion .cue { bottom: calc(var(--frame) + 48px); }
}
@media (max-height: 700px) and (min-width: 900px) {
  .card p:not(.card__kind):not(.bubble) { display: none; }
  .kv { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .msg, .act { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
