/* ============================================================
   KET Digital — Mercury v2 (2026-10-09)
   OUR LOOK: clinical paper, the chrome specimen behind, editorial
   serif, mono labels, one ember accent, liquid-glass panels.
   THEIR FORMAT (useamoeba.com, per Asad): framed hero with a centred
   two-line headline, a strip under it, feature cards with real
   interface mocks, a clickable interface, bordered column rows,
   captioned figures, a closing panel, a floating nav.
   ============================================================ */

:root {
  --paper:   #f5f6f8;
  --bone:    #ebece8;
  --ink:     #1a1a1d;
  --slate:   #2c2e33;
  --mid:     #5f6369;        /* body-secondary: 5.6:1 on paper */
  --quiet:   #7d8187;        /* labels only, 3.9:1, always mono and small */
  --mute:    #a9adb3;        /* rules and inert marks, never text */
  --hair:    rgba(26, 26, 29, 0.08);
  --hair-2:  rgba(26, 26, 29, 0.16);
  --ice:     #9bb8c4;
  --ember:   #c47a4a;
  --ember-ink: #9a5a33;
  --ember-wash: rgba(196, 122, 74, 0.10);
  --glass:   rgba(255, 255, 255, 0.58);
  --glass-2: rgba(255, 255, 255, 0.78);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ember); }
button { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
html { scrollbar-color: #c9ccd1 var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #c9ccd1; border-radius: 10px; border: 2px solid var(--paper); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mid); }

/* ── The chrome specimen behind the page (unchanged machinery, mercury/bg) ── */
#bg-host { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 900ms ease-out; }
html.scene-ready #bg-host { opacity: 1; }
#bg-host canvas { display: block; width: 100%; height: 100%; }
#mesh-fallback { position: fixed; inset: 0; z-index: 0; display: none; pointer-events: none; }
html.no-scene #mesh-fallback { display: block; }
#mesh-fallback canvas { width: 100% !important; height: 100% !important; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 78% 38%, rgba(216, 219, 223, 0.9) 0%, rgba(216, 219, 223, 0) 70%),
    radial-gradient(35% 30% at 62% 62%, rgba(155, 184, 196, 0.35) 0%, rgba(155, 184, 196, 0) 70%),
    var(--paper);
  opacity: 1; transition: opacity 900ms ease-out;
}
html.scene-ready body::before { opacity: 0; }
/* In this format the copy is centred, so the veil is too: a soft paper well behind
   the headline, the chrome left clear at the edges where it reads as the specimen. */
#white-veil {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(48% 42% at 50% 46%, rgba(245,246,248,0.9) 0%, rgba(245,246,248,0.62) 55%, rgba(245,246,248,0.18) 100%),
    linear-gradient(180deg, rgba(245,246,248,0.5) 0%, rgba(245,246,248,0) 12%);
}
@media (prefers-reduced-motion: reduce) { #bg-host, body::before { transition: none; } }
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* liquid glass: real refraction of the chrome behind the panel, with a lit rim */
.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: url(#lg-refract) blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.85),
    inset -1px -1px 0 rgba(26,26,29,0.05),
    0 1px 0 rgba(26,26,29,0.06),
    0 30px 60px -40px rgba(26,26,29,0.3);
}

main, .foot { position: relative; z-index: 10; }

/* ── Buttons, in the house vocabulary ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer; border: 0; text-decoration: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 400;
  padding: 17px 26px; white-space: nowrap; transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-light { background: var(--ink); color: var(--paper); }
.btn-light:hover { background: var(--ember); }
.btn-ghost { background: transparent; color: var(--ink); padding: 15px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.btn-ghost::before { content: ''; width: 6px; height: 6px; background: var(--ember); flex: none; }
.btn-ghost:hover { color: var(--ember); border-color: var(--ember); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-sm { padding: 13px 18px; font-size: 10.5px; }
.btn-ghost.btn-sm { padding: 11px 0; }

/* ── Nav: a bar that becomes a floating glass pill once you scroll ──────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 14px var(--gutter); }
.nav-in {
  max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 28px;
  padding: 8px 8px 8px 18px; border: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.nav.is-scrolled .nav-in {
  max-width: 1120px; background: var(--glass-2); border-color: var(--hair);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.9), 0 20px 40px -28px rgba(26,26,29,0.35);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 19px; letter-spacing: 0.16em; color: var(--ink); white-space: nowrap; }
.brand svg { width: 22px; height: 22px; }
.brand small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; color: var(--mid); }
.brand .sep { width: 1px; height: 16px; background: var(--hair-2); margin: 0 4px; }
.brand .prod { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); }
.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a { text-decoration: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mid); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links a[aria-current="true"]::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--ember); margin-right: 8px; vertical-align: 2px; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-right .quiet { text-decoration: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mid); white-space: nowrap; }
.nav-right .quiet:hover { color: var(--ember); }
.nav.is-scrolled .nav-right .quiet { display: none; }
@media (max-width: 1100px) { .nav-links { gap: 20px; } }
@media (max-width: 900px) { .nav-links, .nav-right .quiet { display: none; } .nav-right { margin-left: auto; } .brand small { display: none; } }
@media (max-width: 520px) { .nav { padding: 10px 14px; } .nav-in { padding: 6px 6px 6px 12px; gap: 12px; } .nav .btn-sm { padding: 11px 13px; letter-spacing: 0.18em; } .brand { font-size: 17px; } .brand .sep, .brand .prod { display: none; } }

/* ── Hero: a framed panel with the chrome showing through ──────────────── */
.hero { padding: 12px 12px 0; }
.hero-frame {
  position: relative; border: 1px solid var(--hair-2); border-radius: var(--r);
  min-height: min(880px, 94svh); display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.7);
}
.hero-frame::after { /* corner registration marks: a specimen plate, not a card */
  content: ''; position: absolute; inset: 14px; pointer-events: none;
  background:
    linear-gradient(var(--hair-2), var(--hair-2)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--hair-2), var(--hair-2)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--hair-2), var(--hair-2)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(var(--hair-2), var(--hair-2)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--hair-2), var(--hair-2)) 0 100% / 14px 1px no-repeat,
    linear-gradient(var(--hair-2), var(--hair-2)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--hair-2), var(--hair-2)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--hair-2), var(--hair-2)) 100% 100% / 1px 14px no-repeat;
}
.plate-l, .plate-r { position: absolute; bottom: 26px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mid); }
.plate-l { left: 34px; } .plate-r { right: 34px; }
@media (max-width: 700px) { .plate-l, .plate-r { display: none; } }
.hero-copy { text-align: center; padding: 150px 20px 120px; max-width: 1040px; }
.hero h1 { font-family: var(--serif); font-weight: 200; font-size: clamp(46px, 7.4vw, 100px); line-height: 0.98; letter-spacing: -0.032em; }
.hero h1 span { display: block; }
.hero h1 span + span { font-style: italic; font-weight: 300; color: var(--mid); }
.hero-sub { margin: 30px auto 0; max-width: 46ch; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--slate); }
.hero-actions { margin-top: 38px; display: flex; gap: 18px 34px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--mid); }
.hero-meta i { font-style: normal; color: var(--mute); padding: 0 8px; }

/* ── Below the hero the paper comes back up, so the chrome only glints ─── */
.below { position: relative; }
.below::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(245,246,248,0) 0, rgba(245,246,248,0.86) 220px, rgba(245,246,248,0.86) calc(100% - 300px), rgba(245,246,248,0) 100%); }

/* ── The strip ─────────────────────────────────────────────────────────── */
.strip { padding: 70px 0 10px; text-align: center; }
.strip p { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mid); }
.marquee { margin-top: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: slide 52s linear infinite; padding: 6px 0; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(20px, 2.4vw, 28px); color: var(--mid); white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 12px 36px; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ── Sections and their two-line heads ─────────────────────────────────── */
.section { padding: clamp(96px, 11vw, 160px) 0 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.head h2 { flex: 1 1 520px; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -0.02em; max-width: 860px; }
.head h2 .dim { display: block; font-style: italic; color: var(--mid); }
.lede { margin-top: 20px; max-width: 62ch; color: var(--mid); font-size: 16.5px; line-height: 1.65; }

/* ── Feature cards: real interface, a caption under each ───────────────── */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(22px, 3vw, 40px); }
@media (max-width: 880px) { .grid2 { grid-template-columns: 1fr; } }
.feature { margin: 0; }
.feature .stage {
  position: relative; height: 340px; overflow: hidden; border: 1px solid var(--hair-2); border-radius: var(--r); padding: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(235,236,232,0.55)),
    repeating-linear-gradient(90deg, var(--hair) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, var(--hair) 0 1px, transparent 1px 48px);
}
.feature figcaption { margin-top: 18px; color: var(--mid); font-size: 15.5px; line-height: 1.6; max-width: 54ch; }
.feature figcaption b { font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--ink); }

/* the shared mock vocabulary: light windows, hairlines, mono labels */
.win { background: #fff; border: 1px solid var(--hair-2); border-radius: 5px; overflow: hidden; box-shadow: 0 1px 0 rgba(26,26,29,0.04), 0 28px 50px -34px rgba(26,26,29,0.4); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--hair); font-size: 12.5px; color: var(--mid); }
.win-bar b { color: var(--ink); font-weight: 500; }
.win-bar .sp { margin-left: auto; }
.bot { width: 16px; height: 16px; flex: none; color: var(--ember); }
.row { display: grid; grid-template-columns: 50px 1fr 1fr 74px; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--hair); font-size: 12.5px; }
.row:last-child { border-bottom: 0; }
.row .d { font-family: var(--mono); font-size: 11px; color: var(--mid); }
.row .who { color: var(--ink); font-weight: 400; }
.row .why { color: var(--mid); }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 2px 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; border: 1px solid var(--hair-2); color: var(--slate); white-space: nowrap; border-radius: 3px; background: #fff; }
.chip.ok { color: var(--ink); border-color: var(--ink); }
.chip.ok::before { content: ''; width: 5px; height: 5px; background: var(--ink); border-radius: 50%; }
.chip.warn { color: var(--ember-ink); border-color: rgba(196,122,74,0.45); background: var(--ember-wash); }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--hair-2); background: #fff; cursor: pointer; color: var(--ink); border-radius: 3px; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.mini-btn:hover { border-color: var(--ink); }
.mini-btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mini-btn.solid:hover { background: var(--ember); border-color: var(--ember); }
.mini-btn[disabled] { opacity: 0.55; cursor: default; }
.draft { font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--mid); padding: 14px 16px; white-space: pre-wrap; margin: 0; }
.draft b { color: var(--ink); font-weight: 500; }
.draft mark { background: var(--ember-wash); color: var(--ember-ink); padding: 0 4px; border-radius: 2px; }
ul.log { margin: 0; padding: 0; }
.log li { list-style: none; display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 11.5px; color: var(--mid); }
.log li:last-child { border-bottom: 0; }
.log li b { color: var(--ink); font-weight: 500; }

/* ── Bordered frames (columns, figures, steps) ─────────────────────────── */
.frame, .fig { border: 1px solid var(--hair-2); border-radius: var(--r); overflow: hidden; }
.frame, .fig { background: rgba(255,255,255,0.42); }
.frame.glass, .fig.glass { background: var(--glass); }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--hair-2); }
.cols3 > div { padding: 32px 30px 34px; }
.cols3 > div + div { border-left: 1px solid var(--hair-2); }
.cols3 h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 10px; }
.cols3 p { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--mid); }
@media (max-width: 880px) { .cols3 { grid-template-columns: 1fr; } .cols3 > div + div { border-left: 0; border-top: 1px solid var(--hair-2); } }
.replica-wrap { padding: clamp(14px, 2.4vw, 28px); }
.replica-note { text-align: center; color: var(--mid); font-size: 14px; padding: 0 20px 28px; font-family: var(--serif); font-style: italic; }

/* the replica app */
.app { display: grid; grid-template-columns: 216px 1fr; min-height: 500px; background: #fbfbfc; border: 1px solid var(--hair-2); border-radius: 5px; overflow: hidden; box-shadow: 0 40px 80px -50px rgba(26,26,29,0.45); }
.app [hidden] { display: none !important; }
.app-side { border-right: 1px solid var(--hair); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; background: #f3f4f6; }
.app-org { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; font-family: var(--serif); font-size: 15px; }
.app-org svg { width: 18px; height: 18px; color: var(--ink); }
.app-org small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid); }
.app-nav button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: transparent; cursor: pointer; font-size: 13.5px; color: var(--mid); text-align: left; border-radius: 4px; }
.app-nav button:hover { background: rgba(26,26,29,0.04); color: var(--ink); }
.app-nav button[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); }
.app-nav svg { width: 15px; height: 15px; flex: none; }
.app-nav .n { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--mid); }
.app-nav .n.hot { color: var(--ember-ink); }
.app-user { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 12px 8px 4px; font-size: 12.5px; color: var(--mid); border-top: 1px solid var(--hair); }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 9.5px; color: var(--paper); background: var(--slate); flex: none; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--hair); background: #fff; }
.app-top h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.app-top .sp { margin-left: auto; }
.app-body { padding: 18px; display: grid; gap: 14px; align-content: start; }
.panel { border: 1px solid var(--hair-2); background: #fff; border-radius: 4px; overflow: hidden; }
.panel-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 12px; }
.panel-head h4 { font-family: var(--serif); font-weight: 400; font-size: 16.5px; }
.panel-head p { color: var(--mid); font-size: 12.5px; margin-top: 3px; max-width: 70ch; line-height: 1.55; }
.panel-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--mid); }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid); padding: 8px 16px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: #fafafb; }
.tbl td { padding: 9px 16px; border-bottom: 1px solid var(--hair); color: var(--mid); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.p { color: var(--ink); font-weight: 400; }
.tbl td small { display: block; color: var(--quiet); font-size: 10.5px; }
.tbl .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl tr { transition: background-color 0.4s, opacity 0.4s; }
.tbl tr.is-done td { color: var(--quiet); }
.tbl tr.is-working { background: var(--ember-wash); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--hair-2); background: #fff; padding: 14px; text-align: left; cursor: pointer; border-radius: 4px; transition: border-color 0.2s; }
.tile:hover { border-color: var(--ink); }
.tile b { display: block; font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.tile span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid); }
.tile.hot b { color: var(--ember-ink); }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--hair-2); border-left-width: 1px; background: #fff; color: var(--ink); font-size: 12.5px; border-radius: 4px; }
.toast::before { content: ''; width: 6px; height: 6px; background: var(--ember); flex: none; }
@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app-side { border-right: 0; border-bottom: 1px solid var(--hair); flex-direction: row; align-items: center; overflow-x: auto; padding: 8px; }
  .app-org, .app-user { display: none; }
  .app-nav { display: flex; gap: 2px; }
  .app-nav button { width: auto; white-space: nowrap; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl .hide-sm { display: none; }
}

/* ── Figures ───────────────────────────────────────────────────────────── */
.fig-cap { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--hair-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mid); }
.fig-cap b { color: var(--ink); font-weight: 400; }
.fig-cap .sp { margin-left: auto; }
@media (max-width: 600px) { .fig-cap .sp { display: none; } }
.agents { width: 100%; border-collapse: collapse; }
.agents th, .agents td { text-align: left; vertical-align: top; padding: 20px 22px; border-bottom: 1px solid var(--hair); }
.agents tr:last-child td { border-bottom: 0; }
.agents th { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mid); padding-top: 14px; padding-bottom: 14px; }
.agents td:first-child { width: 22%; font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--ink); }
.agents td { font-size: 14.5px; color: var(--mid); line-height: 1.55; }
.agents td.preps { color: var(--ink); }
.agents td.preps::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--ember); margin-right: 10px; vertical-align: 2px; }
@media (max-width: 760px) {
  .agents thead { display: none; }
  .agents tr { display: grid; gap: 8px; padding: 18px; border-bottom: 1px solid var(--hair); }
  .agents tr:last-child { border-bottom: 0; }
  .agents td { padding: 0; border: 0; width: auto !important; }
  .agents td[data-l]::before { content: attr(data-l); display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid); margin-bottom: 3px; }
  .agents td.preps[data-l]::before { display: block; width: auto; height: auto; background: none; margin: 0 0 3px; }
}

/* calculator: the house's underlined apparatus fields */
.calc { display: grid; grid-template-columns: 1fr 1.05fr; }
.calc-in { padding: 28px; border-right: 1px solid var(--hair-2); display: grid; gap: 26px; align-content: start; }
.calc-out { padding: 28px; display: flex; flex-direction: column; gap: 20px; background: rgba(255,255,255,0.45); }
@media (max-width: 880px) { .calc { grid-template-columns: 1fr; } .calc-in { border-right: 0; border-bottom: 1px solid var(--hair-2); } }
.field label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); }
.field label output { color: var(--ember-ink); letter-spacing: 0.06em; }
.field small { display: block; color: var(--mid); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.field input[type="number"], .field input[type="email"], .field input[type="text"], .field select {
  margin-top: 8px; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--hair-2); border-radius: 0;
  color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 300; padding: 6px 0 8px; transition: border-color 0.2s;
}
.field select { font-size: 18px; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%235f6369' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 20px; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--ember); }
.field input::placeholder { color: var(--quiet); }
input[type="range"] { width: 100%; margin-top: 14px; accent-color: var(--ember); }
.big { font-family: var(--serif); font-weight: 200; font-size: clamp(48px, 6vw, 76px); letter-spacing: -0.03em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.big-l { margin-top: 10px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.kv > div { padding: 14px 0; }
.kv > div + div { padding-left: 16px; border-left: 1px solid var(--hair); }
.kv b { display: block; font-family: var(--mono); font-weight: 400; font-size: 16px; font-variant-numeric: tabular-nums; }
.kv span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); } }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 124px 1fr 80px; gap: 12px; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.bar i { display: block; height: 8px; background: var(--hair-2); transform-origin: left; transition: transform 0.6s var(--ease); }
.bar.hit i { background: var(--ember); }
.bar span:last-child { text-align: right; color: var(--ink); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 13.5px; color: var(--mid); max-width: 60ch; line-height: 1.6; }
.calc-actions { display: flex; gap: 14px 26px; flex-wrap: wrap; align-items: center; }
.sendit { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.sendit input { flex: 1 1 200px; background: transparent; border: 0; border-bottom: 1px solid var(--hair-2); font-family: var(--serif); font-size: 17px; padding: 8px 0; color: var(--ink); }
.sendit input:focus { outline: none; border-bottom-color: var(--ember); }
.say { font-size: 12.5px; color: var(--mid); min-height: 1.3em; font-family: var(--mono); letter-spacing: 0.02em; }

/* call: the existing transcript styling, in a frame */
.call { display: grid; grid-template-columns: 1.25fr 0.9fr; }
@media (max-width: 940px) { .call { grid-template-columns: 1fr; } }
.call-l { padding: 24px 28px 28px; border-right: 1px solid var(--hair-2); }
@media (max-width: 940px) { .call-l { border-right: 0; border-bottom: 1px solid var(--hair-2); } }
.call-r { padding: 24px 28px 28px; }
.call-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid); }
.call-meta b { color: var(--ember-ink); font-weight: 400; }
.play { margin: 18px 0 16px; display: flex; align-items: center; gap: 16px; }
.play-btn { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 12px 0; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; }
.play-btn b { font-weight: 400; }
.play-btn:hover { color: var(--ember); border-color: var(--ember); }
.play-ico { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.play-btn:hover .play-ico { background: var(--ember); }
.play-ico svg { width: 9px; height: 9px; }
.play-clock { font-family: var(--mono); font-size: 11px; color: var(--mid); }
.transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.transcript li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; transition: opacity 0.45s; }
.transcript .who { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid); padding-top: 5px; }
.transcript .who.m { color: var(--ink); font-weight: 500; }
.transcript .line { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink); }
.transcript .line.stage { font-style: italic; color: var(--mid); font-size: 15.5px; }
.transcript .gloss { grid-column: 2; font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--mid); margin-top: -6px; }
.transcript .lang { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; color: var(--mid); margin-left: 8px; vertical-align: middle; }
.is-playing .transcript li { opacity: 0.16; }
.is-playing .transcript li.is-said { opacity: 1; }
.is-playing .transcript li.is-saying .line { box-shadow: -14px 0 0 -12px var(--ember); padding-left: 6px; }
@media (max-width: 600px) { .transcript li { grid-template-columns: 1fr; gap: 4px; } .transcript .gloss { grid-column: 1; } }
.alert-card { border: 1px solid var(--hair-2); border-radius: 4px; overflow: hidden; }
.alert-card header { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mid); }
.alert-card header b { color: var(--ink); font-weight: 400; }
.alert-card dl { display: grid; grid-template-columns: 104px 1fr; margin: 0; }
.alert-card dt, .alert-card dd { padding: 8px 16px; border-bottom: 1px solid var(--hair); margin: 0; }
.alert-card dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid); padding-top: 11px; }
.alert-card dd { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.js-fill .alert-card [data-fill] { color: transparent; background-image: linear-gradient(var(--hair), var(--hair)); background-size: 55% 7px; background-repeat: no-repeat; background-position: 16px center; transition: color 0.5s; }
.js-fill .alert-card [data-fill].is-filled { color: var(--ink); background-size: 0 0; }
.js-fill .alert-card dd.hit.is-filled, .alert-card dd.hit { color: var(--ember-ink); }
.alert-card footer { padding: 12px 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; line-height: 1.7; color: var(--mid); }
.call-note { margin-top: 20px; color: var(--mid); font-size: 13.5px; max-width: 68ch; line-height: 1.6; }
.fwd { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair-2); }
.fwd > div { padding: 18px 28px; }
.fwd > div + div { border-left: 1px solid var(--hair-2); }
.fwd b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400; margin-bottom: 6px; }
.fwd span { font-size: 13.5px; color: var(--mid); }
@media (max-width: 760px) { .fwd { grid-template-columns: 1fr; } .fwd > div + div { border-left: 0; border-top: 1px solid var(--hair-2); } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); }
.plans > div { padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.plans > div + div { border-left: 1px solid var(--hair-2); }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; } .plans > div + div { border-left: 0; border-top: 1px solid var(--hair-2); } }
.plans h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.plans h3 small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid); }
.price { display: grid; gap: 2px; }
.price b { font-family: var(--serif); font-weight: 200; font-size: 44px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); }
.plans p { color: var(--mid); font-size: 14.5px; line-height: 1.6; }
.plans .addon { background: rgba(255,255,255,0.5); position: relative; }
.plans .addon h3::after { content: 'Add-on'; margin-left: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember-ink); border: 1px solid rgba(196,122,74,0.45); padding: 2px 7px; vertical-align: 5px; }
.plans .addon h3::after { position: absolute; top: 32px; right: 28px; margin: 0; vertical-align: 0; }
.fine { padding: 22px 28px; border-top: 1px solid var(--hair-2); display: grid; gap: 12px; color: var(--mid); font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; line-height: 1.75; }
.fine strong { color: var(--ink); font-weight: 400; }

/* rollout */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; }
.steps > li { list-style: none; padding: 28px 26px 32px; display: grid; gap: 10px; align-content: start; }
.steps > li + li { border-left: 1px solid var(--hair-2); }
.steps .t { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ember-ink); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
.steps p { color: var(--mid); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } .steps > li:nth-child(3) { border-left: 0; } .steps > li:nth-child(n+3) { border-top: 1px solid var(--hair-2); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .steps > li + li { border-left: 0; border-top: 1px solid var(--hair-2); } }

/* fit + questions */
.fit { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--hair-2); }
.fit > div { padding: 28px; }
.fit > div + div { border-left: 1px solid var(--hair-2); }
.fit h3 { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 14px; }
.fit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fit li { color: var(--slate); font-family: var(--serif); font-size: 17px; display: grid; grid-template-columns: 20px 1fr; gap: 8px; line-height: 1.4; }
.fit li svg { width: 13px; height: 13px; margin-top: 6px; }
.fit .yes svg { color: var(--ember); }
.fit .no li { color: var(--mid); }
.fit .no svg { color: var(--mute); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } .fit > div + div { border-left: 0; border-top: 1px solid var(--hair-2); } }
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 28px; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-family: var(--mono); font-size: 16px; color: var(--ink); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ember-ink); }
.faq .a { padding: 0 28px 24px; color: var(--mid); max-width: 76ch; font-size: 15.5px; line-height: 1.65; }

/* about */
.about { display: grid; grid-template-columns: repeat(4, 1fr); }
.about > div { padding: 28px 26px 32px; }
.about > div + div { border-left: 1px solid var(--hair-2); }
.about h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 8px; }
.about p { color: var(--mid); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 980px) { .about { grid-template-columns: 1fr 1fr; } .about > div:nth-child(3) { border-left: 0; } .about > div:nth-child(n+3) { border-top: 1px solid var(--hair-2); } }
@media (max-width: 600px) { .about { grid-template-columns: 1fr; } .about > div + div { border-left: 0; border-top: 1px solid var(--hair-2); } }
.facts { display: flex; flex-wrap: wrap; gap: 10px 40px; padding: 18px 28px; border-top: 1px solid var(--hair-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.facts b { color: var(--ink); font-weight: 400; letter-spacing: 0.06em; text-transform: none; }

/* closing panel: the chrome again, behind glass */
.close { padding: clamp(96px, 11vw, 160px) 12px 12px; }
.close-frame { position: relative; border: 1px solid var(--hair-2); border-radius: var(--r); padding: clamp(64px, 9vw, 120px) 20px; overflow: hidden; }
.close-in { max-width: 780px; margin: 0 auto; text-align: center; }
.close-in h2 { font-family: var(--serif); font-weight: 200; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.028em; }
.close-in h2 .dim { display: block; font-style: italic; font-weight: 300; color: var(--mid); }
.start-form { margin: 40px auto 0; max-width: 660px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; text-align: left; }
.start-form .field input, .start-form .field select { font-size: 19px; }
@media (max-width: 560px) { .start-form { grid-template-columns: 1fr; } }
.start-actions { grid-column: 1 / -1; display: flex; gap: 16px 30px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.start-actions a:not(.btn) { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mid); text-decoration: none; }
.start-actions a:not(.btn):hover { color: var(--ember); }
.form-note { grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--mid); }
.form-note strong { color: var(--ink); font-weight: 500; }

/* footer, as the old exhibition end */
.foot { padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; border-top: 1px solid var(--hair-2); padding-top: 44px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.foot p { font-family: var(--serif); color: var(--mid); font-size: 15px; max-width: 36ch; margin-top: 12px; line-height: 1.55; }
.foot h4 { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mid); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; font-family: var(--serif); font-size: 15.5px; color: var(--ink); }
.foot ul a:hover { color: var(--ember); }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--mid); }

/* the one entrance: the hero copy, once */
.js .hero-copy > * { opacity: 0; transform: translateY(12px); filter: blur(5px); }
.js.is-in .hero-copy > * { opacity: 1; transform: none; filter: none; transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js.is-in .hero-copy > *:nth-child(2) { transition-delay: 0.08s; }
.js.is-in .hero-copy > *:nth-child(3) { transition-delay: 0.16s; }
.js.is-in .hero-copy > *:nth-child(4) { transition-delay: 0.22s; }
@media (prefers-reduced-motion: reduce) { .js .hero-copy > * { opacity: 1; transform: none; filter: none; } }
