/* AgentScreen — product landing
   Tone: warm stone / bone surfaces, matte obsidian hardware,
   two functional accents only (lime = live, vermilion = radar). */

:root {
  --stone: #E6E3DC;
  --stone-2: #EDEAE4;
  --bone: #F6F5F1;
  --white: #FFFFFF;
  --ink: #141413;
  --ink-2: #1D1D1B;
  --ink-3: #2A2A27;
  --text: #3A3935;
  --mute: #6B6962;
  --faint: #A5A299;
  --line: rgba(20, 20, 19, .10);
  --line-2: rgba(20, 20, 19, .2);
  --lime: #B9E82B;
  --verm: #E0523C;

  --sans: "Pretendard Variable", Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-xl: clamp(22px, 2.6vw, 32px);
  --r-lg: 20px;
  --r-md: 14px;
  --expo: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, ul, figure, pre { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sec-dark :focus-visible, .card-ink :focus-visible, .final-card :focus-visible, .rail :focus-visible, .device-chin :focus-visible { outline-color: var(--lime); }
::selection { background: var(--lime); color: var(--ink); }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }

/* ── atoms ─────────────────────────────────────────── */
.led {
  position: relative; flex: none; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink);
}
.led::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%;
  border: 1.5px solid var(--lime); opacity: 0;
  animation: ping 2.4s var(--expo) infinite;
}
.led-verm { background: var(--verm); box-shadow: 0 0 0 1.5px rgba(224, 82, 60, .3); }
.led-verm::after { border-color: var(--verm); }
.sec-dark .led, .card-ink .led, .device-chin .led, .pulse-dock .led, .final-card .led, .btn-ink .led, .pipe-ink .led { box-shadow: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

.pip { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.ring { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.ring-live { background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
.ring-warn { background: var(--verm); box-shadow: 0 0 0 3px rgba(224, 82, 60, .2); }
.ring-done { background: transparent; box-shadow: inset 0 0 0 1.8px var(--mute); }

.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font: 600 11.5px/1 var(--mono); letter-spacing: .02em; white-space: nowrap; }
.tag-ink { background: var(--ink); color: #fff; }
.mono-tag { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--mute); white-space: nowrap; }
.card-ink .mono-tag { color: rgba(255, 255, 255, .45); }
.badge-lime { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--ink); font: 700 12px/1 var(--mono); }
.fine { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--mute); max-width: 62em; }

kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 6px; background: var(--white); border: 1px solid var(--line-2);
  box-shadow: 0 1.5px 0 var(--line-2); font: 600 11px/1 var(--mono); color: var(--ink);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--expo), background-color .2s, box-shadow .25s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(20, 20, 19, .6); }
.btn-ink:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { background: var(--bone); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--white); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #C8F33F; transform: translateY(-1px); }
.btn-line { border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.btn-line:hover { border-color: rgba(255, 255, 255, .6); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13.5px; gap: 6px; box-shadow: none; }
.btn-xs { height: 34px; padding: 0 14px; font-size: 13px; gap: 8px; }
.btn-xs kbd { height: 18px; min-width: 0; font-size: 9.5px; background: rgba(20, 20, 19, .12); border: 0; box-shadow: none; }

.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(20, 20, 19, .07); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--mute); white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.seg button span { font: 500 11px/1 var(--mono); opacity: .7; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 19, .12), 0 0 0 1px var(--line); }
.seg-full { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.seg-full button { justify-content: center; padding: 0 8px; }
.seg-sm button { height: 32px; padding: 0 13px; font-size: 12.5px; }
.seg-dark { background: rgba(255, 255, 255, .08); }
.seg-dark button { color: rgba(255, 255, 255, .55); }
.seg-dark button:hover { color: #fff; }
.seg-dark button[aria-pressed="true"] { background: var(--bone); color: var(--ink); box-shadow: none; }

.tgl { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tgl i { position: relative; width: 32px; height: 20px; border-radius: 999px; background: rgba(20, 20, 19, .14); transition: background-color .25s; }
.tgl i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .3s var(--expo); }
.tgl[aria-pressed="true"] i { background: var(--lime); }
.tgl[aria-pressed="true"] i::after { transform: translateX(12px); background: var(--ink); }
.tgl-dark { background: transparent; border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); height: 40px; }
.tgl-dark i { background: rgba(255, 255, 255, .16); }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
.pill-warn { color: #B93A26; border-color: rgba(224, 82, 60, .45); }
.pill-warn i { background: var(--verm); box-shadow: none; }
.pill-done i { background: var(--ink); box-shadow: none; }
.pill-mute { color: var(--mute); }
.pill-mute i { background: var(--faint); box-shadow: none; }
.pill-plain { height: 24px; padding: 0 9px; font-size: 11.5px; color: var(--mute); background: transparent; }

.meter { display: block; height: 6px; border-radius: 3px; background: rgba(20, 20, 19, .09); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--ink); transition: width .8s var(--expo); }
.meter.warn i { background: var(--verm); }

.ticks { display: flex; gap: 2px; height: 18px; color: var(--ink); }
.ticks i { flex: none; width: 3px; border-radius: 1px; background: currentColor; }
.ticks i.l { background: var(--lime); box-shadow: 0 0 0 .5px rgba(20, 20, 19, .35); }
.ticks i.e { background: var(--verm); }
.ticks i.z { opacity: .16; }
.ticks.radar-off i.e { background: currentColor; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.label { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--ink); }

.card {
  background: var(--bone); border-radius: var(--r-xl);
  padding: clamp(14px, 2.2vw, 28px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 40px 60px -48px rgba(20, 20, 19, .35);
}
.card-ink { background: var(--ink); color: #F1EFE8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 60px -40px rgba(20, 20, 19, .6); }
.card-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: clamp(12px, 1.8vw, 22px); }
.card-bar h3 { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }

/* ── screen theme (day / night auto dark) ──────────── */
.scr {
  --s-bg: #E4E1DA; --s-card: #F8F7F3; --s-card2: #FFFFFF;
  --s-ink: #141413; --s-mute: #77756E; --s-line: rgba(20, 20, 19, .1); --s-line2: rgba(20, 20, 19, .2);
  --s-host: #141413; --s-host-ink: #FFFFFF;
  transition: background-color .6s;
}
html[data-night="true"] .scr {
  --s-bg: #0A0A09; --s-card: #161615; --s-card2: #1E1E1C;
  --s-ink: #ECEAE3; --s-mute: #8B8982; --s-line: rgba(255, 255, 255, .09); --s-line2: rgba(255, 255, 255, .2);
  --s-host: #ECEAE3; --s-host-ink: #141413;
}

/* ── rail (desktop) ────────────────────────────────── */
.rail { display: none; }
@media (min-width: 1240px) {
  body { padding-left: 88px; }
  .rail {
    position: fixed; left: 16px; top: 16px; bottom: 16px; z-index: 60; width: 56px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 12px 0; border-radius: 28px;
    background: linear-gradient(180deg, #1C1C1A, #111110); color: rgba(255, 255, 255, .5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 24px 40px -20px rgba(20, 20, 19, .5);
  }
}
.rail-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.rail-nav { display: grid; gap: 2px; margin-top: 4px; }
.rail-nav a { position: relative; display: grid; place-items: center; width: 40px; height: 32px; border-radius: 10px; font: 500 11px/1 var(--mono); transition: color .2s, background-color .2s; }
.rail-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.rail-nav a.on { color: var(--ink); background: var(--bone); font-weight: 700; }
.rail-nav a.on::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--lime); }
.rail-nav a::after {
  content: attr(data-label); position: absolute; left: calc(100% + 18px); top: 50%; transform: translate(-6px, -50%);
  padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12px/1 var(--sans); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--expo);
}
.rail-nav a:hover::after, .rail-nav a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.rail-ruler { position: relative; flex: 1; min-height: 120px; width: 100%; margin: 20px 0 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.rail-ruler i { display: block; width: 7px; height: 1px; background: rgba(255, 255, 255, .28); }
.rail-ruler i.h { width: 13px; background: rgba(255, 255, 255, .5); }
.rail-ruler::before, .rail-ruler::after { position: absolute; left: 0; right: 0; text-align: center; font: 500 9px/1 var(--mono); color: rgba(255, 255, 255, .45); }
.rail-ruler::before { content: "00"; top: -15px; }
.rail-ruler::after { content: "24"; bottom: -15px; }
.rail-now { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 1px; background: var(--lime); box-shadow: 0 0 10px rgba(185, 232, 43, .6); }
.rail-now b { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); padding: 2px 0; background: #161615; font: 600 9.5px/1 var(--mono); color: var(--lime); }
.rail-now.is-flip b { top: auto; bottom: 7px; }
.rail-cta { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--ink); transition: transform .3s var(--expo); }
.rail-cta:hover { transform: rotate(45deg); }
@media (max-height: 640px) { .rail-nav { display: none; } }

/* ── header ────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; padding: 12px var(--pad) 0; pointer-events: none; }
.top-bar {
  pointer-events: auto; max-width: 1200px; margin-inline: auto; height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 9px 0 12px; border-radius: 999px;
  background: rgba(246, 245, 241, .78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65), 0 0 0 1px var(--line), 0 16px 32px -24px rgba(20, 20, 19, .35);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16.5px; letter-spacing: -.02em; }
.top-links { display: flex; gap: 2px; }
.top-links a { padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--mute); transition: color .2s, background-color .2s; }
.top-links a:hover { color: var(--ink); background: rgba(20, 20, 19, .06); }
.top-right { display: flex; align-items: center; gap: 12px; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
@media (max-width: 980px) { .top-links { display: none; } }
@media (max-width: 480px) { .live-chip { display: none; } .top-bar { height: 54px; } }

/* ── hero ──────────────────────────────────────────── */
.hero { padding: clamp(36px, 6vw, 76px) 0 clamp(40px, 6vw, 72px); }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 500 12.5px/1.4 var(--mono); color: var(--mute); }
.hero h1 {
  margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(48px, 8.4vw, 112px); line-height: 1.03; letter-spacing: -.05em; font-weight: 700;
}
.h1-line { display: block; }
.h1-clock { display: inline-block; width: .8em; height: .8em; vertical-align: -.07em; margin: 0 .1em 0 .02em; }
.h1-clock svg { width: 100%; height: 100%; }
.h1-pulse {
  display: inline-flex; align-items: center; justify-content: center; gap: .055em;
  width: 1.2em; height: .74em; margin: 0 .11em 0 .02em; vertical-align: -.03em;
  border-radius: .37em; background: var(--ink); overflow: hidden;
}
.h1-pulse i { width: .05em; height: .44em; border-radius: .03em; background: var(--lime); transform: scaleY(.28); animation: eq 1.5s ease-in-out infinite; will-change: transform; }
.h1-pulse i:nth-child(2) { animation-delay: -.3s; }
.h1-pulse i:nth-child(3) { animation-delay: -.9s; }
.h1-pulse i:nth-child(4) { animation-delay: -.55s; }
.h1-pulse i:nth-child(5) { animation-delay: -1.2s; }
.h1-pulse i:nth-child(6) { animation-delay: -.15s; background: var(--verm); }
.h1-pulse i:nth-child(7) { animation-delay: -.75s; }
@keyframes eq { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }

.hero-side { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-top: clamp(22px, 3vw, 40px); }
.lede { max-width: 31em; font-size: clamp(16px, 1.5vw, 20.5px); line-height: 1.62; color: var(--text); letter-spacing: -.01em; }
.lede strong { color: var(--ink); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.device {
  margin-top: clamp(28px, 4.4vw, 60px);
  padding: clamp(7px, 1vw, 13px) clamp(7px, 1vw, 13px) 0;
  border-radius: clamp(22px, 3vw, 42px);
  background: linear-gradient(180deg, #1E1E1C, #111110);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 60px 90px -50px rgba(20, 20, 19, .7), 0 0 0 1px rgba(20, 20, 19, .5);
}
.device-screen {
  position: relative; aspect-ratio: 16 / 8.9; overflow: hidden; cursor: pointer;
  border-radius: clamp(16px, 2.2vw, 30px); background: var(--s-bg); color: var(--s-ink);
}
.tile {
  position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h);
  display: flex; flex-direction: column; padding: clamp(8px, 1.15vw, 16px);
  background: var(--s-card); border: 1px solid var(--s-line); border-radius: clamp(12px, 1.6vw, 22px);
  transition: left .95s var(--expo), top .95s var(--expo), width .95s var(--expo), height .95s var(--expo),
    opacity .5s ease var(--td, 0ms), transform .8s var(--expo) var(--td, 0ms), background-color .6s, border-color .6s;
}
.tile-clock { --l: 2.2%; --t: 3.6%; --w: 28%; --h: 50%; padding: 0; }
.tile-topo { --l: 31.6%; --t: 3.6%; --w: 66.2%; --h: 50%; --td: 120ms; }
.tile-sessions { --l: 2.2%; --t: 56.4%; --w: 58%; --h: 30.4%; --td: 200ms; }
.tile-note { --l: 61.6%; --t: 56.4%; --w: 36.2%; --h: 30.4%; --td: 280ms; }
.device[data-mode="clock"] .tile-clock { --w: 95.6%; --h: 83.2%; }
.device[data-mode="clock"] .tile:not(.tile-clock) { opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none; --td: 0ms; }
.tile-clock .ck { transition: opacity .35s ease; }
.tile-clock.switching .ck { opacity: 0; transition-duration: .12s; }

.tile-h { display: flex; align-items: center; gap: 7px; font-size: clamp(9.5px, .92vw, 13px); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.tile-h span { margin-left: auto; font: 500 .86em/1 var(--mono); color: var(--s-mute); }
.tile-h .badge-lime { min-width: 0; height: 1.6em; padding: 0 .5em; font-size: .86em; }
.tile-b { flex: 1; min-height: 0; margin-top: clamp(5px, .8vw, 12px); }
.tile-b svg { width: 100%; height: 100%; }

.mini-rows { display: grid; align-content: space-between; overflow: hidden; }
.mrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: clamp(6px, .8vw, 12px); height: clamp(14px, 1.75vw, 24px); font: 500 clamp(9px, .86vw, 12px)/1 var(--mono); }
.mrow b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow em { font-style: normal; color: var(--s-mute); min-width: 2.6em; text-align: right; }
.mrow.warn em { color: var(--verm); }
.mrow .ticks { height: clamp(8px, 1vw, 13px); gap: 1px; color: var(--s-ink); }
.mrow .ticks i { width: clamp(1.5px, .2vw, 3px); }
.mini-bars { display: flex; align-items: flex-end; gap: clamp(1px, .2vw, 3px); }
.tile-b > .mini-bars { height: 100%; }
.mini-bars i { flex: 1; min-height: 2px; height: calc(var(--v) * 100%); border-radius: 1.5px; background: var(--s-ink); }
.mini-bars i.z { background: var(--s-line2); }
.mini-bars i.l { background: var(--lime); }

.pulse-dock {
  position: absolute; left: 50%; bottom: 3.2%; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: clamp(9px, 1.5vw, 22px);
  height: clamp(26px, 3.5vw, 42px); padding: 0 clamp(11px, 1.5vw, 22px); max-width: 95%;
  border-radius: 999px; background: #111110; color: rgba(255, 255, 255, .58);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 28px -14px rgba(0, 0, 0, .55);
  font-size: clamp(9px, .88vw, 12.5px); white-space: nowrap;
}
.pulse-dock span { display: inline-flex; align-items: center; gap: .55em; }
.pulse-dock b { color: #fff; font: 600 1em/1 var(--mono); }
.pulse-dock .led { width: .6em; height: .6em; }

.device-chin { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(10px, 1.2vw, 16px) clamp(8px, 1.5vw, 20px); color: rgba(255, 255, 255, .55); }
.chin-label, .chin-readout { flex: 1; font: 500 11px/1 var(--mono); letter-spacing: .08em; white-space: nowrap; }
.chin-label em { font-style: normal; opacity: .55; margin-left: .5em; }
.chin-readout { display: inline-flex; align-items: center; justify-content: flex-end; gap: 9px; letter-spacing: .04em; }
.mode-switch {
  position: relative; flex: none; display: grid; grid-template-columns: 1fr 1fr; width: 176px; height: 42px; padding: 4px;
  border-radius: 999px; background: #080808; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .09);
}
.mode-switch button { position: relative; z-index: 1; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .5); transition: color .3s; }
.mode-switch button[aria-pressed="true"] { color: var(--ink); }
.mode-thumb {
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF, #E4E1DA); box-shadow: 0 2px 5px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(0, 0, 0, .12);
  transition: transform .55s var(--expo);
}
.device[data-mode="control"] .mode-thumb { transform: translateX(100%); }

/* ── clock component (container-query scaled) ──────── */
.ck-host { container-type: size; }
.ck { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4.5cqmin; padding: 5cqmin; color: var(--s-ink); }
.ck-face { flex: none; }
.ck[data-kind="analog"] .ck-face { height: min(60cqh, 78cqw); aspect-ratio: 1; filter: drop-shadow(0 3cqmin 4cqmin rgba(20, 20, 19, .22)); }
.ck-face svg { width: 100%; height: 100%; }
.ck-read { display: grid; gap: .5em; text-align: center; min-width: 0; }
.ck-time { font: 600 clamp(14px, 11cqmin, 76px)/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ck-date { font-size: clamp(9.5px, 3.3cqmin, 16px); line-height: 1.3; color: var(--s-mute); white-space: nowrap; }
.ck:not([data-kind="analog"]) .ck-time { display: none; }
html[data-night="true"] .scr .ck-face { filter: brightness(.86) saturate(.92); }
@container (aspect-ratio > 1.7) {
  .ck[data-kind="analog"] { flex-direction: row; gap: 7cqw; }
  .ck[data-kind="analog"] .ck-face { height: min(82cqh, 42cqw); }
  .ck[data-kind="analog"] .ck-read { text-align: left; gap: .7em; }
  .ck[data-kind="analog"] .ck-time { font-size: clamp(16px, 22cqh, 120px); }
  .ck[data-kind="analog"] .ck-date { font-size: clamp(10px, 4.2cqh, 20px); }
}
@container (max-height: 150px) { .ck-date { display: none; } }
@container (max-height: 96px) { .ck-read { display: none; } .ck[data-kind="analog"] .ck-face { height: min(88cqh, 78cqw); } }
@container (max-width: 150px) { .ck-date { display: none; } }

.ck .flip {
  display: flex; align-items: center; gap: .2em; padding: .2em .26em; border-radius: .17em;
  font: 700 1em/1 var(--sans); font-size: min(34cqh, 15.5cqw); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: #DAD3BF; border: .045em solid #C94B34; box-shadow: inset 0 .03em .1em rgba(0, 0, 0, .25), 0 .1em .2em -.06em rgba(20, 20, 19, .4);
}
.flip-card { position: relative; min-width: 1.52em; padding: .15em .18em; border-radius: .08em; text-align: center; color: #F3E6C4; box-shadow: 0 .04em .09em rgba(0, 0, 0, .35); perspective: 4em; }
.flip-card span { display: block; }
.flip-card.fa { background: linear-gradient(#557F96 0 50%, #49728B 50%); }
.flip-card.fb { background: linear-gradient(#3F7E62 0 50%, #35705A 50%); }
.flip-card::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(1px, .02em); background: rgba(0, 0, 0, .35); }
.flip-card.tk span { animation: flipin .6s var(--expo); transform-origin: 50% 0; }
@keyframes flipin { from { transform: rotateX(-88deg); opacity: .2; } to { transform: none; opacity: 1; } }
.flip-colon { display: grid; gap: .24em; }
.flip-colon i { width: .13em; height: .13em; border-radius: 50%; background: #6B6658; }

.ck-led { width: min(90cqw, 300cqh); padding: 3.2% 4%; border-radius: min(5cqmin, 22px); background: #121211; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ck-led svg, .final-led svg { width: 100%; height: auto; }
.dm { fill: rgba(255, 255, 255, .07); transition: fill .18s; }
.dm.on { fill: var(--lime); }

.drifting { animation: drift 18s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, -6px); }
  50% { transform: translate(-4px, 8px); }
  75% { transform: translate(-10px, -4px); }
}

/* ── spec strip ────────────────────────────────────── */
.rule {
  height: 12px;
  background:
    linear-gradient(var(--line-2), var(--line-2)) left top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 60px) left top / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 12px) left top / 100% 6px no-repeat;
}
.strip { padding-bottom: clamp(24px, 4vw, 48px); }
.lineage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: clamp(20px, 3vw, 34px) 0; font-size: clamp(15px, 1.6vw, 21px); font-weight: 700; letter-spacing: -.02em; }
.lineage em { font-style: normal; font-weight: 500; color: var(--mute); }
.lineage > i { font: 400 1em/1 var(--mono); color: var(--faint); font-style: normal; }
.lineage-out { display: inline-flex; align-items: center; gap: 9px; height: 2.1em; padding: 0 .9em; border-radius: 999px; background: var(--ink); color: #fff; }
.lineage-out .led { box-shadow: none; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.specs > div { padding: clamp(16px, 2.2vw, 28px) clamp(12px, 1.6vw, 24px) 4px 0; }
.specs > div + div { padding-left: clamp(12px, 1.6vw, 24px); border-left: 1px solid var(--line); }
.specs dt { font: 600 clamp(40px, 5.4vw, 76px)/1 var(--mono); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.specs dd { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--mute); }
.specs dd strong { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.specs code { font-size: .92em; color: var(--ink); }

/* ── sections ──────────────────────────────────────── */
.sec { padding-block: clamp(64px, 9vw, 128px); scroll-margin-top: 60px; }
.sec-head { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 24px; padding-top: 34px; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background:
    linear-gradient(var(--line-2), var(--line-2)) left top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 60px) left top / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 12px) left top / 100% 6px no-repeat;
}
.sec-no { display: flex; align-items: center; gap: 10px; align-self: start; padding-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--mute); letter-spacing: -.01em; }
.sec-no b { display: inline-grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12px/1 var(--mono); }
.sec h2, .finale h2 { font-size: clamp(31px, 4.7vw, 66px); line-height: 1.1; letter-spacing: -.045em; font-weight: 700; }
.sec-lede { margin-top: clamp(14px, 1.6vw, 22px); max-width: 35em; font-size: clamp(15.5px, 1.32vw, 18.5px); line-height: 1.65; color: var(--text); }

.sec-dark {
  margin-inline: clamp(6px, 1vw, 14px); border-radius: clamp(26px, 4vw, 56px);
  background: var(--ink); color: #F1EFE8;
  --line-2: rgba(255, 255, 255, .22);
}
.sec-dark .sec-no { color: rgba(255, 255, 255, .6); }
.sec-dark .sec-no b { background: var(--lime); color: var(--ink); }
.sec-dark .sec-lede { color: rgba(255, 255, 255, .64); }

/* ── 01 topology ───────────────────────────────────── */
.topo-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26%, 320px); gap: clamp(12px, 1.6vw, 20px); }
.topo-graph {
  position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr) minmax(0, .8fr);
  column-gap: clamp(18px, 7%, 96px); align-items: center;
  min-height: clamp(330px, 36vw, 470px); padding: clamp(12px, 2.4vw, 30px);
  border-radius: var(--r-lg); background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--line);
  background-image: radial-gradient(circle, rgba(20, 20, 19, .11) 1px, transparent 1.4px); background-size: 22px 22px;
}
.topo-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.topo-col { position: relative; z-index: 1; display: grid; gap: clamp(8px, 1.2vw, 15px); }
.topo-hosts { gap: clamp(44px, 8vw, 110px); }
.node {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center;
  width: 100%; padding: 10px 14px; border-radius: 14px; text-align: left;
  background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(20, 20, 19, .25);
  transition: transform .35s var(--expo), box-shadow .25s, opacity .3s;
}
.node .ring { grid-row: 1 / span 2; }
.node-t { font: 600 13.5px/1.2 var(--mono); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-m { grid-column: 2; font: 500 11px/1.2 var(--mono); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node:hover { transform: translateY(-2px); }
.node-warn { box-shadow: 0 0 0 1.5px var(--verm), 0 6px 14px -8px rgba(224, 82, 60, .5); }
.node-host { padding: 14px 16px; background: var(--ink); color: #fff; box-shadow: 0 10px 20px -10px rgba(20, 20, 19, .7); }
.node-host .ring-live { box-shadow: none; }
.node-host .node-t { font: 700 15px/1.2 var(--sans); }
.node-host .node-m { color: rgba(255, 255, 255, .55); }
.node.is-sel { box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--lime); transform: translateY(-2px); }
.node-warn.is-sel { box-shadow: 0 0 0 2px var(--verm), 0 0 0 5px rgba(224, 82, 60, .28); }
.topo-graph.has-sel .node:not(.is-sel):not(.is-rel) { opacity: .5; }
.topo-sessions .node { width: 88%; }
.topo-sessions .node:nth-child(even) { margin-left: 12%; }

.edge { fill: none; stroke: rgba(20, 20, 19, .22); stroke-width: 1.1; transition: opacity .3s, stroke-width .3s; }
.edge-live { stroke: rgba(20, 20, 19, .5); stroke-width: 1.5; }
.edge-warn { stroke: var(--verm); stroke-width: 1.8; stroke-dasharray: 5 5; animation: march 1.2s linear infinite; }
.edge-thin { stroke-width: 1; }
@keyframes march { to { stroke-dashoffset: -20; } }
.edge-pulse { fill: var(--lime); stroke: var(--ink); stroke-width: 1.2; }
.edge-pulse.warn { fill: var(--verm); stroke: none; }
.topo-lines.has-sel .edge:not(.on), .topo-lines.has-sel .edge-pulse:not(.on) { opacity: .18; }
.topo-lines.has-sel .edge.on { stroke-width: 2.2; }

.topo-read { display: flex; flex-direction: column; gap: 14px; padding: clamp(16px, 1.8vw, 24px); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); min-height: 300px; }
.tr-k { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--mute); }
.tr-name { font: 700 19px/1.2 var(--mono); letter-spacing: -.03em; word-break: break-all; }
.tr-sub { margin-top: -8px; font-size: 13px; color: var(--mute); }
.tr-big { display: flex; align-items: baseline; gap: 8px; }
.tr-big strong { font: 700 clamp(48px, 5vw, 68px)/.9 var(--sans); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.tr-big strong small { font-size: .5em; letter-spacing: -.02em; margin-left: .04em; }
.tr-big span { font: 500 12px/1 var(--mono); color: var(--mute); }
.tr-ctx { display: grid; gap: 7px; }
.tr-ctx p { display: flex; justify-content: space-between; font: 500 11.5px/1 var(--mono); color: var(--mute); }
.tr-ctx p b { color: var(--ink); font-weight: 600; }
.tr-ctx.warn p b { color: var(--verm); }
.tr-ticks { display: grid; gap: 7px; }
.tr-ticks .ticks { height: 22px; justify-content: space-between; }
.tr-ticks .ticks i { flex: 1; max-width: 5px; }
.tr-ticks > span:not(.ticks), .tr-out { font: 500 11.5px/1.4 var(--mono); color: var(--mute); }
.tr-rows { display: grid; }
.tr-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tr-rows dt { color: var(--mute); }
.tr-rows dd { font: 600 13px/1.4 var(--mono); text-align: right; }
.tr-foot { margin-top: auto; }

/* ── 02 presets & sessions ─────────────────────────── */
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(16px, 2vw, 24px); }
.keys li { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 18px; background: rgba(246, 245, 241, .6); box-shadow: inset 0 0 0 1px var(--line); }
.keys kbd { width: 38px; height: 38px; border-radius: 11px; font-size: 14px; flex: none; box-shadow: 0 2.5px 0 var(--line-2); }
.kbd-verm { color: var(--verm); border-color: rgba(224, 82, 60, .5); box-shadow: 0 2.5px 0 rgba(224, 82, 60, .35) !important; }
.keys strong { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.keys span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--mute); }

.batch-sub { display: inline-flex; align-items: center; gap: 9px; font: 500 12px/1 var(--mono); color: var(--mute); }
.batch-head, .srow { display: grid; grid-template-columns: minmax(190px, 1.45fr) minmax(190px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1.1fr) auto; gap: clamp(12px, 1.8vw, 24px); align-items: center; }
.batch-head { padding: 0 6px 12px; border-bottom: 1px solid var(--line-2); font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--mute); }
.batch-head span:last-child { width: 128px; text-align: right; }
.srow { padding: 17px 6px; border-bottom: 1px solid var(--line); animation: rowin .7s var(--expo) backwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes rowin { from { opacity: 0; transform: translateY(10px); } }
.srow-id { display: flex; align-items: center; gap: 13px; min-width: 0; }
.model-chip { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font: 600 11.5px/1 var(--mono); }
.srow-id div { min-width: 0; }
.srow-id strong { display: block; font: 700 14.5px/1.25 var(--mono); letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow-id div > span { display: block; font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell { position: relative; min-width: 0; min-height: 38px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
.cell > * { max-width: 100%; transition: opacity .3s, transform .4s var(--expo); }
.cell-t .ticks i { flex: 1; max-width: 4px; }
.cell-t .ticks { width: 100%; max-width: 178px; justify-content: flex-start; }
.cell-t p { display: flex; justify-content: space-between; width: 100%; max-width: 178px; font: 500 11px/1 var(--mono); color: var(--mute); }
.cell-t p b { font-weight: 600; color: var(--ink); }
.cell-t.hot p b { color: var(--verm); }
.cell-d span { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film { display: flex; gap: 3px; }
.film i { width: 24px; height: 16px; border-radius: 3px; background: linear-gradient(135deg, #DCD8CF, #F3F1EC); box-shadow: inset 0 0 0 1px var(--line-2); }
.film i:nth-child(3n+1) { background: linear-gradient(135deg, #2A2A27, #141413); }
.film i:nth-child(4n+2) { background: linear-gradient(135deg, #CFE98A, #B9E82B); }
.cell.is-off > * { opacity: 0; transform: translateY(4px); pointer-events: none; }
.cell.is-off::after { content: "숨김"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--line-2); font: 500 10.5px/1 var(--mono); color: var(--faint); }
.srow-toggles { display: flex; gap: 4px; justify-content: flex-end; }
.srow-toggles button {
  width: 29px; height: 29px; border-radius: 8px; font: 600 11.5px/1 var(--mono); color: var(--faint);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s, color .2s, transform .2s var(--expo), box-shadow .2s;
}
.srow-toggles button:active { transform: translateY(1.5px); }
.srow-toggles button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 2px 0 rgba(20, 20, 19, .28); }
.srow-toggles button[data-k="r"][aria-pressed="true"] { background: var(--verm); box-shadow: 0 2px 0 rgba(224, 82, 60, .35); }
.batch-hint { margin-top: 16px; font-size: 13px; color: var(--mute); }
.batch-hint b { font-family: var(--mono); color: var(--ink); }

/* ── 03 agentnote & attention ──────────────────────── */
.bento { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(12px, 1.6vw, 20px); align-items: stretch; }
.note-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3.4vw, 52px); align-items: end; padding-block: clamp(4px, 1vw, 14px) clamp(16px, 2vw, 26px); }
.note-num strong { display: block; font: 700 clamp(96px, 11.5vw, 164px)/.82 var(--sans); letter-spacing: -.07em; font-variant-numeric: tabular-nums; margin-left: -.04em; }
.note-sub { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.kv { margin-top: 14px; min-width: 200px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kv dt { color: var(--mute); }
.kv dd { font: 600 13px/1.5 var(--mono); }
.matrix { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); padding-top: 30px; }
.mx-col { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: clamp(2px, .42vw, 6px); padding: 6px 0; border-radius: 6px; transition: background-color .2s; }
.mx-col i { width: min(72%, 13px); aspect-ratio: 1; border-radius: 50%; background: rgba(20, 20, 19, .1); }
.mx-col i.v { background: var(--ink); }
.mx-col i.m { background: transparent; box-shadow: inset 0 0 0 1.8px var(--ink); }
.mx-col.fut i { background: transparent; box-shadow: inset 0 0 0 1px rgba(20, 20, 19, .16); }
.mx-col:hover, .mx-col.hot { background: rgba(20, 20, 19, .06); }
.mx-col.now::before { content: ""; position: absolute; left: 50%; top: -8px; bottom: 0; width: 1.5px; background: var(--ink); transform: translateX(-50%); z-index: -1; }
.mx-col.now::after {
  content: attr(data-now); position: absolute; right: -6px; top: -30px; padding: 5px 9px 5px 20px; border-radius: 999px;
  background: var(--ink) radial-gradient(circle at 11px 50%, var(--lime) 0 3px, transparent 3.5px); color: #fff; font: 600 10.5px/1 var(--mono); white-space: nowrap;
}
.note-card.in .mx-col i.v, .note-card.in .mx-col i.m { animation: pop .6s var(--expo) backwards; animation-delay: calc(300ms + var(--c) * 22ms + var(--r) * 60ms); }
@keyframes pop { from { transform: scale(0); } }
.mx-key { width: 10px; height: 10px; border-radius: 50%; }
.mx-key.v { background: var(--ink); }
.mx-key.m { box-shadow: inset 0 0 0 1.8px var(--ink); }
.matrix-axis { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); font: 500 10.5px/1 var(--mono); color: var(--mute); }
.matrix-read { margin-top: 12px; min-height: 1.5em; font: 500 12px/1.5 var(--mono); color: var(--mute); }
.matrix-read b { color: var(--ink); font-weight: 600; }
.note-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.note-list strong { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-list time { font: 500 12px/1 var(--mono); color: var(--mute); }

.queue-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.queue-card .card-bar { padding-right: 110px; min-height: 76px; align-items: flex-start; }
.queue-card h3 { font-size: 20px; }
.radar {
  position: absolute; right: clamp(14px, 2vw, 24px); top: clamp(14px, 2vw, 24px); width: 92px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)) center / 100% 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)) center / 1px 100% no-repeat,
    radial-gradient(circle, transparent 0 33%, rgba(255, 255, 255, .14) 33% calc(33% + 1px), transparent calc(33% + 1px) 66%, rgba(255, 255, 255, .14) 66% calc(66% + 1px), transparent calc(66% + 1px));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 72%, rgba(224, 82, 60, .7) 100%); animation: spin 3.6s linear infinite; }
.radar.clear .radar-sweep { background: conic-gradient(from 0deg, transparent 0 72%, rgba(185, 232, 43, .55) 100%); }
@keyframes spin { to { transform: rotate(360deg); } }
.radar i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--verm); box-shadow: 0 0 0 3px rgba(224, 82, 60, .3); animation: blip 3.6s ease-out infinite; }
@keyframes blip { 0%, 100% { opacity: .35; } 12% { opacity: 1; } }
.queue-list { display: grid; gap: 10px; }
.q-item {
  display: grid; gap: 5px; padding: 15px 16px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: opacity .35s, transform .45s var(--expo); animation: rowin .6s var(--expo) backwards; animation-delay: calc(var(--i) * 70ms);
}
.q-item.out { opacity: 0; transform: translateX(28px) scale(.97); }
.q-code { display: flex; align-items: center; gap: 9px; font: 500 11px/1 var(--mono); color: rgba(255, 255, 255, .5); }
.q-code .ring-done { box-shadow: inset 0 0 0 1.8px rgba(255, 255, 255, .45); }
.q-item strong { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.q-item > span { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .55); }
.q-item.first { padding: 18px; background: var(--bone); color: var(--ink); box-shadow: none; }
.q-item.first .q-code { color: var(--mute); }
.q-item.first strong { font-size: 17.5px; font-weight: 700; }
.q-item.first > span { color: var(--mute); }
.q-act { display: flex; gap: 8px; margin-top: 10px; }
.q-item.first .btn-lime { background: var(--ink); color: #fff; }
.q-item.first .btn-lime kbd { background: rgba(255, 255, 255, .16); color: #fff; }
.q-item.first .btn-line { border-color: var(--line-2); color: var(--ink); }
.q-empty { display: grid; gap: 10px; justify-items: start; padding: 22px 18px; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); animation: rowin .6s var(--expo) backwards; }
.q-empty strong { font-size: 18px; letter-spacing: -.02em; }
.q-empty span { font-size: 13px; color: rgba(255, 255, 255, .55); }
.queue-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; font: 500 11.5px/1 var(--mono); color: rgba(255, 255, 255, .45); }
.queue-foot span { display: inline-flex; align-items: center; gap: 7px; }
.queue-foot kbd { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); box-shadow: none; color: rgba(255, 255, 255, .75); font-size: 9.5px; }

/* ── 04 composer ───────────────────────────────────── */
.cmp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.cmp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmp-stage {
  container-type: inline-size; padding: clamp(5px, .9vw, 12px); border-radius: clamp(16px, 2.4vw, 30px);
  background: var(--s-bg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 clamp(5px, .7vw, 9px) #1F1F1D; margin: clamp(5px, .7vw, 9px);
  overflow: hidden;
}
/* @MX:NOTE: [AUTO] --ratio is row height / column width; site.js reads it to convert pointer deltas into grid units. */
.cmp-grid {
  --ratio: .6; --gap: clamp(2.5px, .45vw, 6px); --rh: calc(100cqw / 12 * var(--ratio));
  position: relative; height: calc(var(--rows) * var(--rh)); transition: height .45s var(--expo);
  background-image: radial-gradient(circle, var(--s-line2) 1px, transparent 1.3px);
  background-size: calc(100cqw / 12) var(--rh); background-position: calc(100cqw / 24) calc(var(--rh) / 2);
}
.wd, .cmp-ghost {
  position: absolute; left: calc(var(--x) / 12 * 100%); top: calc(var(--y) * var(--rh));
  width: calc(var(--w) / 12 * 100%); height: calc(var(--h) * var(--rh)); padding: var(--gap);
}
.wd {
  -webkit-user-select: none; user-select: none; outline: none;
  transition: left .4s var(--expo), top .4s var(--expo), width .4s var(--expo), height .4s var(--expo), opacity .3s, transform .35s var(--expo), visibility 0s;
}
.wd.off { opacity: 0; visibility: hidden; transform: scale(.9); pointer-events: none; transition: opacity .25s, transform .3s var(--expo), visibility 0s .3s; }
.wd.dragging { z-index: 6; transition: none; }
.wd.settling { z-index: 6; transition: transform .38s var(--expo); }
.wd.resizing { z-index: 6; transition: width .16s var(--expo), height .16s var(--expo); }
.wd-in {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: clamp(10px, 1.4vw, 18px); background: var(--s-card); color: var(--s-ink);
  box-shadow: inset 0 0 0 1px var(--s-line); transition: box-shadow .25s, background-color .6s;
}
.wd.is-sel .wd-in, .wd:focus-visible .wd-in { box-shadow: inset 0 0 0 2px var(--lime), 0 0 0 1px rgba(20, 20, 19, .5); }
.wd.dragging .wd-in, .wd.resizing .wd-in { box-shadow: inset 0 0 0 2px var(--lime), 0 26px 40px -14px rgba(0, 0, 0, .55); }
.wd-bar {
  flex: none; display: flex; align-items: center; gap: 6px; height: clamp(22px, 2.5vw, 32px); padding: 0 5px 0 10px;
  border-bottom: 1px solid var(--s-line); font-size: clamp(9.5px, .9vw, 12px); font-weight: 600; white-space: nowrap;
  cursor: grab; touch-action: none;
}
.wd.dragging, .wd.dragging .wd-bar { cursor: grabbing; }
.wd-grip { flex: none; width: 6px; height: 10px; opacity: .4; background: radial-gradient(circle, currentColor 1px, transparent 1.3px) 0 0 / 3px 3.4px; }
.wd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wd-size { flex: none; padding: 2px 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--s-line2); font: 500 .84em/1 var(--mono); color: var(--s-mute); }
.wd.is-sel .wd-size { background: var(--s-ink); color: var(--s-card); box-shadow: none; }
.wd-x { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--s-mute); font-size: 14px; line-height: 1; }
.wd-x:hover { background: var(--s-line); color: var(--s-ink); }
.wd-body { position: relative; flex: 1; min-height: 0; padding: clamp(4px, .8vw, 12px); overflow: hidden; container-type: size; cursor: grab; }
.wd-body.ck-host { padding: 0; }
.wd-rs { position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; cursor: nwse-resize; touch-action: none; }
.wd-rs::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 8px; height: 8px; border-right: 2px solid var(--s-mute); border-bottom: 2px solid var(--s-mute); border-radius: 0 0 3px 0; transition: border-color .2s; }
.wd.is-sel .wd-rs::after, .wd-rs:hover::after { border-color: #8FB81A; }
.cmp-ghost { z-index: 0; opacity: 0; pointer-events: none; transition: left .14s, top .14s, opacity .2s; }
.cmp-ghost.show { opacity: 1; }
.cmp-ghost::after { content: ""; display: block; height: 100%; border-radius: clamp(10px, 1.4vw, 18px); border: 1.5px dashed #9CC81F; background: rgba(185, 232, 43, .12); }

.w-svg { width: 100%; height: 100%; }
.mt-edge { fill: none; stroke: var(--s-mute); stroke-width: 1; opacity: .45; }
.mt-edge.live { stroke: var(--s-ink); stroke-width: 1.3; opacity: .55; }
.mt-edge.warn { stroke: var(--verm); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: 1; animation: march 1.2s linear infinite; }
.mt-host { fill: var(--s-host); }
.mt-node { fill: var(--s-card2); stroke: var(--s-line2); stroke-width: 1; }
.mt-node.warn { stroke: var(--verm); stroke-width: 1.5; }
.mt-led { fill: var(--lime); }
.mt-led.warn { fill: var(--verm); }
.mt-bar { fill: var(--s-mute); opacity: .45; }
.mt-bar.inv { fill: var(--s-host-ink); opacity: .7; }
.mt-pulse { fill: var(--lime); stroke: #141413; stroke-width: .8; }

.w-rows { display: grid; gap: 3px; align-content: start; height: 100%; overflow: hidden; }
.w-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; height: 19px; font: 500 clamp(9px, .82vw, 11.5px)/1 var(--mono); }
.w-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-row .ticks { height: 10px; gap: 1px; color: var(--s-ink); }
.w-row .ticks i { width: 2px; }
.w-row .led { width: 6px; height: 6px; box-shadow: none; }
.w-row .led::after { display: none; }
@container (max-width: 190px) { .w-row .ticks { display: none; } }
.w-note { display: flex; align-items: flex-end; gap: 10px; height: 100%; }
.w-note strong { font: 700 clamp(20px, 56cqh, 84px)/.82 var(--sans); letter-spacing: -.06em; }
.w-note .mini-bars { flex: 1; height: 100%; min-width: 0; }
.w-att { display: grid; gap: 4px; align-content: start; height: 100%; overflow: hidden; }
.w-att li { display: flex; align-items: center; gap: 7px; height: 19px; font-size: clamp(9px, .82vw, 11.5px); white-space: nowrap; }
.w-att b { font: 600 1em/1 var(--mono); }
.w-att span { color: var(--s-mute); overflow: hidden; text-overflow: ellipsis; }
.w-att .led { width: 6px; height: 6px; }
.w-mac { display: grid; gap: 10px; align-content: center; height: 100%; }
.w-mac div { display: grid; grid-template-columns: minmax(0, auto) minmax(20px, 1fr) auto; align-items: center; gap: 8px; font-size: clamp(9px, .82vw, 11.5px); font-weight: 600; white-space: nowrap; }
.w-mac em { font: 500 1em/1 var(--mono); color: var(--s-mute); font-style: normal; }
.w-mac .meter, .w-quota .meter { background: var(--s-line); height: 5px; }
.w-mac .meter i, .w-quota .meter i { background: var(--s-ink); }
.w-dots { display: flex; align-items: flex-end; gap: 1.5%; height: 100%; }
.w-dots span { flex: 1; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; min-width: 0; }
.w-dots i { width: min(100%, 6px); aspect-ratio: 1; border-radius: 50%; background: var(--s-ink); }
.w-dots i.l { background: var(--lime); box-shadow: 0 0 0 .5px rgba(20, 20, 19, .4); }
.w-dots i.e { background: var(--verm); }
.w-quota { display: grid; gap: 6px; align-content: center; height: 100%; }
.w-quota span { font: 500 clamp(8.5px, .78vw, 11px)/1 var(--mono); color: var(--s-mute); white-space: nowrap; }
.w-quota strong { font: 600 clamp(15px, 30cqh, 44px)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
@container (max-height: 64px) { .w-quota > span:not(.meter) { display: none; } }
.w-film { display: flex; gap: 5px; height: 100%; }
.w-film img { flex: 1; min-width: 0; height: 100%; object-fit: cover; object-position: left top; border-radius: 6px; box-shadow: 0 0 0 1px var(--s-line2); -webkit-user-drag: none; pointer-events: none; }

.cmp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.cmp-read { flex: 1 1 260px; font: 500 12px/1.5 var(--mono); color: rgba(255, 255, 255, .6); }
.cmp-read b { color: var(--lime); font-weight: 600; }
.cmp-palette { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color .25s, color .25s, transform .25s var(--expo); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background-color .25s; }
.chip:hover { color: #fff; }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--bone); color: var(--ink); box-shadow: none; }
.chip[aria-pressed="true"] i { background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
.cmp-help { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.cmp-help span { display: inline-flex; align-items: center; gap: 7px; }
.cmp-help kbd { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); box-shadow: none; color: rgba(255, 255, 255, .8); font-size: 10px; }

/* ── 05 clocks ─────────────────────────────────────── */
.spec { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr); gap: clamp(12px, 1.6vw, 20px); align-items: stretch; }
.spec-stage {
  position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; height: clamp(400px, 46vw, 600px); overflow: hidden;
  border-radius: var(--r-xl); background: var(--s-card); color: var(--s-ink);
  box-shadow: inset 0 0 0 1px var(--s-line), 0 40px 60px -48px rgba(20, 20, 19, .4);
  background-image: radial-gradient(circle, var(--s-line) 1px, transparent 1.4px); background-size: 24px 24px;
}
.spec-idx, .spec-live { position: absolute; top: clamp(16px, 2vw, 24px); font: 500 12px/1 var(--mono); color: var(--s-mute); z-index: 1; }
.spec-idx { left: clamp(16px, 2vw, 26px); }
.spec-idx span { color: var(--s-ink); font-weight: 700; }
.spec-live { right: clamp(16px, 2vw, 26px); display: inline-flex; align-items: center; gap: 8px; letter-spacing: .1em; }
.spec-clock { min-height: 0; padding-top: 28px; }
.spec-clock .ck { animation: specin .8s var(--expo); }
@keyframes specin { from { opacity: 0; transform: scale(.94) rotate(-3deg); } }
.spec-cap { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 2vw, 26px) clamp(16px, 2vw, 24px); }
.spec-cap strong { display: block; font-size: clamp(19px, 2vw, 26px); font-weight: 700; letter-spacing: -.03em; }
.spec-cap span { font-size: 13.5px; color: var(--s-mute); }
.spec-nav { display: flex; gap: 6px; flex: none; }
.spec-nav button { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--s-line2); font-size: 16px; transition: background-color .2s, color .2s, transform .2s var(--expo); }
.spec-nav button:hover { background: var(--s-ink); color: var(--s-card); }
.spec-nav button:active { transform: scale(.92); }
.spec-panel { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 26px); padding: clamp(16px, 2vw, 26px); border-radius: var(--r-xl); background: var(--bone); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.faces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.faces button { display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 0 12px 0 10px; border-radius: 13px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: box-shadow .2s, transform .25s var(--expo); }
.faces button span { overflow: hidden; text-overflow: ellipsis; }
.faces button i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(20, 20, 19, .18); }
.faces button:hover { transform: translateY(-1px); }
.faces button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4.5px var(--lime); }
.spec-hint { margin-top: 10px; font: 500 11.5px/1.5 var(--mono); color: var(--mute); }
.spec-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 4px; }

/* ── 06 local-first ────────────────────────────────── */
.local { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 20px); align-items: stretch; }
.pipe { display: flex; flex-direction: column; }
.pipe-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
.pipe-node { display: grid; align-content: start; gap: 6px; padding: clamp(14px, 1.6vw, 20px); border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.pipe-k { display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--mute); margin-bottom: 8px; }
.pipe-node strong { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.pipe-node strong code { font-size: 15.5px; }
.pipe-node > span:last-child { font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.pipe-core { box-shadow: 0 0 0 2px var(--ink); }
.pipe-ink { background: var(--ink); color: #fff; box-shadow: none; }
.pipe-ink .pipe-k { color: var(--lime); }
.pipe-ink > span:last-child { color: rgba(255, 255, 255, .6); }
.pipe-link { align-self: center; width: clamp(16px, 2.6vw, 40px); height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 10px); background-size: 10px 2px; animation: flowx .8s linear infinite; }
@keyframes flowx { to { background-position: 10px 0; } }
@keyframes flowy { to { background-position: 0 10px; } }
.pipe-cloud { display: flex; align-items: center; gap: 12px; margin: 18px 0 22px; font-size: 13px; font-weight: 600; }
.strike { padding: 5px 11px; border-radius: 999px; border: 1px dashed var(--line-2); font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--faint); text-decoration: line-through; text-decoration-color: var(--verm); text-decoration-thickness: 2px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(12px, 1.6vw, 22px); margin-top: auto; }
.facts div { padding-top: 14px; border-top: 1px solid var(--line-2); }
.facts dt { font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; }
.facts dd { margin-top: 5px; font-size: 13px; line-height: 1.55; color: var(--mute); }
.json { display: flex; flex-direction: column; min-width: 0; }
.json-file { display: inline-flex; align-items: center; gap: 9px; font: 600 13px/1 var(--mono); }
.json-code { flex: 1; overflow-x: auto; padding: clamp(14px, 1.6vw, 20px); border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); font-size: clamp(11.5px, 1vw, 13.5px); line-height: 1.85; color: rgba(255, 255, 255, .5); -moz-tab-size: 2; tab-size: 2; }
.json-code b { font-weight: 500; color: rgba(255, 255, 255, .88); }
.json-code .s { color: var(--lime); }
.json-code .n { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.json-code .n.bump { animation: bump .9s ease-out; }
@keyframes bump { 0% { color: var(--lime); } 100% { color: #fff; } }

/* ── finale & structured filmstrip gallery ─────────── */
.finale { padding-bottom: clamp(40px, 6vw, 80px); }
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: rgba(20, 20, 19, 0.06);
  border: 1px solid var(--line-2);
  font: 700 11px/1 var(--mono);
}
.lang-switch a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--mute);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.lang-switch a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}
.lang-switch a:hover:not([aria-current="page"]) { color: var(--ink); }

.film-band {
  position: relative;
  padding: clamp(40px, 5vw, 64px) 0 clamp(36px, 4.5vw, 56px);
  background: var(--ink);
  color: #fff;
}
.film-band::before, .film-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 12px, transparent 12px 28px);
}
.film-band::before { top: 10px; }
.film-band::after { bottom: 10px; }

.film-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 22px;
}
.film-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 11px/1 var(--mono);
  letter-spacing: .12em;
  color: var(--lime);
  margin-bottom: 8px;
}
.film-head h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
}
.film-head p.film-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .58);
}
.film-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.film-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
}
.film-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .64);
  font: 600 11.5px/1 var(--sans);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.film-tabs button[aria-pressed="true"] {
  background: var(--lime);
  color: #111318;
}
.film-tabs button:hover:not([aria-pressed="true"]) { color: #fff; }

.film-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #141720;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  padding: 10px 10px 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .35s var(--expo), border-color .25s, box-shadow .35s var(--expo);
}
.frame[hidden] { display: none; }
.frame:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 232, 43, .45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
}
.frame-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #0A0C12;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .06);
}
.frame-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .5s var(--expo);
}
.frame:hover .frame-media img { transform: scale(1.02); }
.frame-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(10, 12, 18, .78);
  border: 1px solid rgba(255, 255, 255, .14);
  font: 700 9.5px/1 var(--mono);
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
}
.frame-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding: 0 4px;
}
.frame-title {
  font-size: 13px;
  font-weight: 700;
  color: #F2F4F8;
  letter-spacing: -.01em;
}
.frame-no {
  font: 700 10.5px/1 var(--mono);
  color: var(--lime);
  flex-shrink: 0;
}
.frame-desc {
  margin-top: 4px;
  padding: 0 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .54);
}
.film-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* Lightbox modal for full-size native render inspection */
.film-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 15, .90);
  backdrop-filter: blur(12px);
}
.film-lightbox[hidden] { display: none; }
.film-lb-box {
  position: relative;
  width: min(1240px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #12151D;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .65);
}
.film-lb-box img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
  background: #080A0F;
}
.film-lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px;
  color: #fff;
}
.film-lb-bar strong { font-size: 14px; }
.film-lb-bar span { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.film-lb-btns { display: inline-flex; gap: 6px; }
.film-lb-btns button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  border-radius: 9px;
  padding: 7px 12px;
  font: 700 12px/1 var(--mono);
  cursor: pointer;
}
.film-lb-btns button:hover { border-color: var(--lime); color: var(--lime); }

@media (max-width: 980px) { .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .film-grid { grid-template-columns: 1fr; } }
.final-card {
  position: relative; overflow: hidden; margin-top: clamp(16px, 2.4vw, 28px); padding: clamp(28px, 6vw, 88px);
  border-radius: clamp(26px, 4vw, 56px); background: var(--ink); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.final-led { width: min(100%, 640px); margin-bottom: clamp(28px, 4.4vw, 60px); filter: drop-shadow(0 0 14px rgba(185, 232, 43, .22)); }
.finale h2 { font-size: clamp(42px, 7.4vw, 108px); line-height: 1.02; letter-spacing: -.055em; }
.final-card p { margin: clamp(16px, 2vw, 26px) 0 clamp(22px, 3vw, 36px); max-width: 30em; font-size: clamp(15.5px, 1.4vw, 19px); line-height: 1.65; color: rgba(255, 255, 255, .64); }

.foot { padding: 28px 0 44px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; font-size: 13px; color: var(--mute); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand strong { display: block; color: var(--ink); font-size: 15px; letter-spacing: -.02em; }
.foot-line { font: 500 12px/1.5 var(--mono); }
.foot-line b { color: var(--ink); }
.foot-line i { font-style: normal; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { font-weight: 600; color: var(--ink); border-bottom: 1px solid transparent; }
.foot-links a:hover { border-color: var(--ink); }

/* ── scroll reveal ─────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--expo) var(--d, 0ms), transform 1s var(--expo) var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ── responsive ────────────────────────────────────── */
@media (max-width: 1080px) {
  .batch-head { display: none; }
  .srow { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; padding: 16px 2px; }
  .srow-id { grid-column: 1; grid-row: 1; }
  .srow-toggles { grid-column: 2; grid-row: 1; }
  .cell { grid-column: 1 / -1; min-height: 0; }
  .cell.is-off { display: none; }
  .cell-t p, .cell-t .ticks { max-width: 240px; }
  .cell-d { flex-direction: row; align-items: center; gap: 10px; }
}
@media (max-width: 920px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .topo-body, .bento, .spec, .local { grid-template-columns: minmax(0, 1fr); }
  .topo-read { min-height: 0; }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-stage { height: clamp(360px, 70vw, 520px); }
  .spec-row { margin-top: 0; }
}
@media (max-width: 680px) {
  .hide-s { display: none !important; }
  .hero h1 { font-size: 10.8vw; }
  .h1-pulse { display: none; }
  .cta-row { width: 100%; }
  .hero .cta-row .btn { flex: 1 1 auto; padding: 0 18px; }
  .device-screen { aspect-ratio: 1 / 1.1; }
  .tile-clock { --l: 3%; --t: 2.6%; --w: 38%; --h: 36%; }
  .tile-topo { --l: 43.5%; --t: 2.6%; --w: 53.5%; --h: 36%; }
  .tile-sessions { --l: 3%; --t: 40.6%; --w: 94%; --h: 26%; }
  .tile-note { --l: 3%; --t: 68.6%; --w: 94%; --h: 18.4%; flex-direction: row; align-items: stretch; gap: 12px; }
  .tile-note .tile-h { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
  .tile-note .tile-h span { margin-left: 0; }
  .tile-note .tile-b { margin-top: 0; }
  .device[data-mode="clock"] .tile-clock { --w: 94%; --h: 84.4%; }
  .mrow { height: 15px; }
  .mrow:nth-child(n+5) { display: none; }
  .chin-label em, .chin-readout span { display: none; }
  .chin-readout { flex: 1; }
  .mode-switch { width: 148px; height: 40px; }

  .lineage > i { display: none; }
  .lineage { flex-direction: column; align-items: flex-start; gap: 6px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; }

  .seg button { padding: 0 12px; font-size: 13px; }
  .pulse-dock { overflow: hidden; }
  .topo-graph { grid-template-columns: 76px minmax(0, 1fr) 64px; column-gap: 14px; padding: 14px 10px; min-height: 0; }
  .node-sink .node-t { white-space: normal; line-height: 1.15; }
  .topo-sessions .node, .topo-sessions .node:nth-child(even) { width: 100%; margin-left: 0; }
  .node { padding: 8px 9px; column-gap: 6px; border-radius: 11px; }
  .node .ring { width: 7px; height: 7px; }
  .node-t { font-size: 10.5px; }
  .node-m { font-size: 9.5px; }
  .node-host { padding: 10px 9px; grid-template-columns: minmax(0, 1fr); }
  .node-host .ring, .node-sink .ring { position: absolute; right: 7px; top: 7px; grid-row: auto; }
  .node-host .node-t { font-size: 11.5px; }
  .node-host .node-m, .node-sink .node-m { grid-column: 1; }
  .node-sink { grid-template-columns: minmax(0, 1fr); padding: 10px 8px; }
  .node-sink .node-t { font-size: 10px; letter-spacing: -.04em; }

  .keys li { padding: 11px 12px; gap: 10px; border-radius: 15px; }
  .keys span { display: none; }
  .card-bar .mono-tag { display: none; }
  .note-body { grid-template-columns: minmax(0, 1fr); }
  .note-num { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 20px; }
  .note-num .kv { grid-column: 1 / -1; }
  .note-sub { margin: 0 0 8px; }
  .note-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .note-list .pill { display: none; }

  .cmp-grid { --ratio: 1.2; }
  .wd-size, .wd-grip { display: none; }
  .wd-bar { padding: 0 2px 0 7px; }
  .wd-rs { width: 28px; height: 28px; }
  .cmp-tools { width: 100%; justify-content: space-between; }
  .faces button { font-size: 12.5px; padding: 0 9px; gap: 8px; }

  .pipe-flow { grid-template-columns: minmax(0, 1fr); }
  .pipe-link { justify-self: center; width: 2px; height: 20px; background: repeating-linear-gradient(180deg, var(--ink) 0 5px, transparent 5px 10px); background-size: 2px 10px; animation-name: flowy; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .frame { flex-basis: 76vw; }
  .final-card .btn { flex: 1 1 auto; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

/* ── reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .led::after, .radar-sweep { display: none; }
  .h1-pulse i { height: .3em; }
  .h1-pulse i:nth-child(odd) { height: .18em; }
  .drifting { animation: none; }
}

/* ── Photorealistic Horology Canvas & 5-Style Live Graph Modes ── */
.ck[data-kind="horology"] {
  padding: 2.5cqmin;
  gap: 2cqmin;
}
.ck[data-kind="horology"] .ck-face {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spec-clock .ck-read {
  display: none !important;
}
.ck-horology {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: block;
}
.topo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.topo-mode-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
}
.topo-mode-seg button {
  font-size: 11px;
  padding: 4px 9px;
}
.topo-theme-seg button {
  font-size: 11px;
  height: 30px;
  padding: 0 11px;
}
.topo-graph.is-live-canvas {
  display: block;
  padding: 12px;
}
.topo-graph.is-live-canvas > .topo-lines,
.topo-graph.is-live-canvas > .topo-col {
  display: none;
}
.topo-live-canvas {
  width: 100%;
  height: clamp(320px, 34vw, 440px);
  border-radius: 14px;
  display: block;
  border: 1px solid var(--line);
}
html[data-night="true"] .topo-live-canvas {
  border-color: rgba(255, 255, 255, 0.10);
}
.topo-live-canvas[hidden],
.topo-graph:not(.is-live-canvas) > .topo-live-canvas {
  display: none;
}

/* ── 6-Preset Screen Layouts & Dual-Display Strip (Section 04) ── */
.layout-strip {
  margin-bottom: clamp(16px, 2vw, 24px);
  display: grid;
  gap: 12px;
}
.layout-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.layout-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  text-align: left;
  transition: border-color .22s, background-color .22s, transform .25s var(--expo);
}
.layout-card:hover {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .07);
  transform: translateY(-2px);
}
.layout-card[aria-pressed="true"] {
  background: rgba(185, 232, 43, .12);
  border-color: var(--lime);
}
.layout-card-k {
  font: 700 10px/1 var(--mono);
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .52);
  text-transform: uppercase;
}
.layout-card[aria-pressed="true"] .layout-card-k { color: var(--lime); }
.layout-card strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}
.layout-card span {
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .58);
}
.layout-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .74);
}
.layout-meta-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.layout-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font: 600 11px/1.1 var(--mono);
  color: #fff;
}
.layout-pill.is-lime {
  background: rgba(185, 232, 43, .14);
  border-color: rgba(185, 232, 43, .40);
  color: var(--lime);
}
@media (max-width: 1080px) {
  .layout-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .layout-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
