/* Night Desk · full palette · Designed using Design Lounge (https://designlounge.vercel.app) */
:root {
  --primary: #e0a34b;
  --primary-ink: #141210;
  --primary-soft: #45361f;
  --secondary: #8fbf7a;
  --secondary-ink: #141210;
  --secondary-soft: #323c2a;
  --tertiary: #c48a8a;
  --tertiary-ink: #141210;
  --tertiary-soft: #3e302e;

  --bg: #141311;
  --surface: #1b1a17;
  --surface-2: #242320;
  --surface-3: #383733;
  --ink: #ece7dc;
  --ink-2: #a7a196;
  --ink-3: #928d83;
  --line: #2b2925;
  --line-strong: #74716b;

  --success: #8fbf7a;
  --success-soft: #323c2a;
  --success-on-soft: #8fbf7a;
  --danger: #e07060;
  --danger-soft: #452924;
  --danger-on-soft: #e48173;

  --focus: #e0a34b;
  --link: #e0a34b;
  --overlay: #070605;
  --inverse: #ece7dc;
  --inverse-ink: #141311;
}

/* Terminal Native · type pairing · Designed using Design Lounge (https://designlounge.vercel.app) */
:root {
  --font-display: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-text: "IBM Plex Sans", "IBM Plex Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-np: "IBM Plex Sans Devanagari", "IBM Plex Sans", sans-serif;
}

/* Editorial family · Motion tokens · Designed using Design Lounge (https://designlounge.vercel.app) */
:root {
  --radius: 2px;
  --radius-card: 2px;
  --control: 40px;
  --gap: 24px;
  --pad: 20px;
  --shadow: none;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-micro: 160ms;
  --t-ui: 200ms;
  --t-layout: 320ms;
  --t-sheet: 400ms;

  --rail: 88px;
  --item: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0; }
p { margin: 0; }
a { color: var(--link); }
code, kbd, samp, .mono { font-family: var(--font-mono); }
.num { font-family: var(--font-text); font-variant-numeric: tabular-nums; }
.accent { color: var(--primary); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Button ---------- */
.btn {
  height: var(--control);
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 500 14px/1 var(--font-text);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color var(--t-ui) var(--ease), background var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}
.btn:hover { border-color: var(--ink); }
.btn-primary { border-color: var(--primary); color: var(--primary); }
.btn-primary:hover { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn-mini { height: 32px; padding: 0 10px; font-size: 13px; }

/* ============ RAIL ============ */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 20;
  display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
  background: var(--surface); border-right: 2px solid var(--line);
}
.rail-word {
  writing-mode: vertical-rl; transform: rotate(180deg); align-self: center;
  padding: 20px 0; margin-top: 4px;
  font: 700 22px/1 var(--font-display); letter-spacing: .04em; white-space: nowrap;
  color: var(--ink); text-decoration: none;
}
.rail-word em { font-style: normal; background: var(--primary); color: var(--primary-ink); padding: 8px 2px; }
.rail-nav { position: relative; border-block: 2px solid var(--line); }
.rail-nav ol { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.rail-nav li + li { border-top: 1px solid var(--line); }
.rail-nav a {
  height: var(--item); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink); text-decoration: none; transition: color var(--t-layout) var(--expo);
}
.rail-nav .n { font: 700 22px/1 var(--font-display); }
.rail-nav .l { font: 500 10px/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.rail-nav a:hover .l { text-decoration: underline; text-underline-offset: 3px; }
.rail-nav a[aria-current="true"], .rail-nav a[aria-current="true"] .l { color: var(--primary-ink); }
.rail-ind {
  position: absolute; left: 0; top: 0; width: 100%; height: var(--item); background: var(--primary);
  transform: translateY(var(--y, 0px)); transition: transform 420ms var(--expo);
}
.rail-ind::after { content: ""; position: absolute; right: -2px; top: 0; bottom: 0; width: 6px; background: var(--ink); }
.rail-foot {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 22px;
  font: 500 10px/1.3 var(--font-text); letter-spacing: .08em; color: var(--ink-2); text-align: center;
}
.rail-time { font: 700 20px/1 var(--font-display); color: var(--ink); letter-spacing: 0; }
.rail-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.7); opacity: .5; } }
.menu-btn { display: none; }
.mobile-nav { display: none; }

main { margin-left: var(--rail); }

/* ============ HERO ============ */
@property --r { syntax: "<length>"; inherits: true; initial-value: 168px; }
.stage {
  --x: 380px; --y: 300px; --r: 168px;
  --hl: min(128px, calc((100vw - var(--rail) - 112px) / 8.2));
  position: relative; height: auto; min-height: max(720px, 100vh); overflow: hidden;
  cursor: none; touch-action: pan-y; outline: none;
}
.stage:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.stage.full { --r: 1600px; }
.layer {
  position: absolute; inset: 0; padding: 48px 56px 48px;
  display: grid; grid-template-rows: auto 1fr auto; align-content: stretch;
}
.base { position: relative; min-height: inherit; background: var(--bg); }
.beam {
  pointer-events: none; z-index: 2;
  background-color: var(--inverse); color: var(--inverse-ink);
  background-image:
    linear-gradient(rgba(20,19,17,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,19,17,.08) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at var(--x) var(--y), #000 calc(var(--r) - .5px), transparent calc(var(--r) + .5px));
          mask-image: radial-gradient(circle at var(--x) var(--y), #000 calc(var(--r) - .5px), transparent calc(var(--r) + .5px));
  transition: --r 700ms var(--expo);
}
.pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 13px/1 var(--font-text); color: var(--ink-2);
}
.beam .pill { border-color: rgba(20,19,17,.25); color: var(--inverse-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ok { background: var(--success); }
.dot.bad { background: var(--danger); }
.headline {
  align-self: center; margin: 0;
  font: 700 var(--hl)/.92 var(--font-display); letter-spacing: -0.045em;
}
.beam .headline mark { background: var(--primary); color: var(--primary-ink); padding: 0 .06em; margin-left: -.06em; }
.row { display: grid; grid-template-columns: 440px 1fr; gap: 64px; align-items: end; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 42ch; min-height: calc(1.55em * 3); }
.beam .lede { color: #3d3a35; }
.ctas { display: flex; gap: 12px; margin-top: 24px; }
.beam .btn { border-color: rgba(20,19,17,.4); color: var(--inverse-ink); }
.beam .btn-primary { border-color: var(--inverse-ink); background: var(--inverse-ink); color: var(--inverse); }

.fp { justify-self: end; width: min(560px, 100%); }
.fp-head {
  display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font: 500 11px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.beam .fp-head { border-color: rgba(20,19,17,.2); color: #3d3a35; }
.fp-list { margin: 0; }
.fp-list > div {
  display: grid; grid-template-columns: 96px 1fr 170px; gap: 12px; align-items: center;
  height: 36px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.beam .fp-list > div { border-color: rgba(20,19,17,.12); }
.fp-list dt { color: var(--ink-3); }
.beam .fp-list dt { color: #3d3a35; }
.fp-list dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.base .fp-list dd { letter-spacing: .1em; color: var(--line-strong); }
.beam .fp-list dd { color: var(--inverse-ink); font-weight: 600; }
.fp-list .why { font-size: 12px; line-height: 1.3; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beam .fp-list .why { color: #8a3d2f; }

.cross, .readout { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; transition: opacity var(--t-micro) var(--ease); }
.cross {
  width: 14px; height: 14px; transform: translate(calc(var(--x) - 7px), calc(var(--y) - 7px));
  background: linear-gradient(var(--primary), var(--primary)) center/2px 100% no-repeat, linear-gradient(var(--primary), var(--primary)) center/100% 2px no-repeat;
}
.readout {
  transform: translate(calc(var(--x) + var(--r) * .72), calc(var(--y) + var(--r) * .72));
  font-size: 10px; font-weight: 500; letter-spacing: .08em; color: var(--ink-2);
  background: var(--bg); padding: 3px 6px;
}
.stage.full .cross, .stage.full .readout { opacity: 0; }
.hint { position: absolute; top: 48px; right: 56px; z-index: 5; display: flex; align-items: center; gap: 16px; cursor: auto; }
.hint-text { font: 500 11px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.reveal { background: var(--bg); }
.reveal[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.stage .btn, .stage a { cursor: pointer; }
@media (hover: none) { .stage { cursor: auto; } }

/* ============ WORK ============ */
.work { padding: 120px 56px 80px; }
.work-head { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: end; margin-bottom: 24px; }
.work-title { font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.045em; line-height: .98; }
.work-intro p { color: var(--ink-2); font-size: 17px; }
.cue { margin-top: 16px !important; display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--font-text) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3) !important; }
.cue svg { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

@property --dim { syntax: "<number>"; inherits: true; initial-value: 0; }
.stack { list-style: none; margin: 0; padding: 0; view-timeline: --stack block; }
.stack > li { position: sticky; top: 0; padding-top: calc(32px + var(--i) * 16px); }
.card {
  position: relative; height: 580px; display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 16px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  transform-origin: 50% 0;
  animation: recede linear both; animation-timeline: --stack;
  animation-range: exit-crossing calc(var(--i) / var(--n) * 100%) exit-crossing calc((var(--i) + 1) / var(--n) * 100%);
}
.stack > li:last-child .card { animation: none; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--overlay); opacity: calc(var(--dim) * 2.6); pointer-events: none; }
@keyframes recede { to { transform: scale(calc(1 - (var(--n) - 1 - var(--i)) * .035)); --dim: .16; } }

.txt { display: flex; flex-direction: column; gap: 20px; padding: 16px 12px 12px; min-width: 0; }
.step { display: flex; justify-content: space-between; font: 500 12px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.step .num { color: var(--primary); letter-spacing: .04em; }
.txt h3 { font-size: 48px; letter-spacing: -0.05em; line-height: .95; }
.copy { font-size: 17px; color: var(--ink-2); max-width: 40ch; }
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.meta dt { font: 500 11px/1.4 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.meta dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.meta a { color: var(--link); }
.txt > .btn { align-self: flex-start; }

.art { border-radius: var(--radius); display: grid; place-items: center; padding: 28px; min-width: 0; overflow: hidden; }
.a1 { background: var(--primary); }
.a2 { background: var(--secondary); }
.a3 { background: var(--tertiary); }
.a4 { background: var(--inverse); }
.a5 { background: var(--surface-3); }

.win {
  width: 100%; max-width: 560px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--overlay); border-radius: var(--radius); overflow: hidden;
}
.win-bar {
  display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 12px;
  border-bottom: 1px solid var(--line); background: var(--surface);
  font: 500 12px/1 var(--font-mono); color: var(--ink-2);
}
.win-note { color: var(--ink-3); font-family: var(--font-text); }

/* CrawlGuard */
.cg-rows { width: 100%; border-collapse: collapse; font-size: 13px; }
.cg-rows th { text-align: left; font: 500 11px/1 var(--font-mono); color: var(--ink-3); padding: 10px 12px 8px; border-bottom: 1px solid var(--line); }
.cg-rows td { padding: 7px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; transition: background var(--t-ui) var(--ease), color var(--t-ui) var(--ease); }
.cg-rows td:nth-child(3) { font-family: var(--font-mono); font-size: 12px; }
.cg-rows tr.fail td { background: var(--danger-soft); color: var(--danger-on-soft); }
.cg-rows tr.pass td:first-child { box-shadow: inset 2px 0 0 var(--success); }
.cg-foot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.cg-status { font-size: 13px; color: var(--ink-3); }
.cg-rules { list-style: none; margin: 0; padding: 0 12px 12px; min-height: 120px; font: 12px/1.7 var(--font-mono); color: var(--ink-2); }
.cg-rules li { opacity: 0; transform: translateY(4px); transition: opacity var(--t-layout) var(--expo), transform var(--t-layout) var(--expo); }
.cg-rules li.in { opacity: 1; transform: none; }
.cg-rules b { color: var(--primary); font-weight: 500; }

/* Isomer */
.iso-room { display: block; width: 100%; height: 460px; border: 0; background: #8fc4df; }
.iso-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-top: 1px solid var(--line); }
.iso-range { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); flex: 1; }
.iso-range input { flex: 1; accent-color: var(--secondary); }

/* Waybar */
.desk { width: 100%; max-width: 580px; display: grid; gap: 14px; }
.waybar {
  display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 8px;
  background: var(--bg); border: 1px solid var(--overlay); border-radius: var(--radius);
  font: 500 13px/1 var(--font-mono); color: var(--ink-2);
}
.wb-ws { display: flex; gap: 2px; }
.wb-ws span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: var(--radius); color: var(--ink-3); }
.wb-ws .on { background: var(--surface-3); color: var(--ink); }
.wb-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-clock {
  height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--tertiary); cursor: pointer;
  font: 500 14px/1 var(--font-np); white-space: nowrap;
  transition: background var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.wb-clock:hover { background: var(--surface-2); border-color: var(--line-strong); }
.wb-clock.ad { font-family: var(--font-mono); font-size: 13px; }
.wb-tip {
  justify-self: end; padding: 8px 12px; background: var(--bg); border: 1px solid var(--overlay); border-radius: var(--radius);
  font: 500 13px/1 var(--font-np); color: var(--ink);
}
.wb-hint { font-size: 15px; color: var(--tertiary-ink); }
.term { max-width: none; }
.term-out {
  margin: 0; padding: 14px 14px 16px; min-height: 150px; white-space: pre-wrap; word-break: break-word;
  font: 12.5px/1.7 var(--font-mono); color: var(--ink-2);
}
.term-out .p { color: var(--tertiary); }
.term-out .np { font-family: var(--font-np); color: var(--ink); }

/* YouTube hider */
.yt { background: #fffdf8; color: var(--inverse-ink); border-color: rgba(20,19,17,.2); }
.yt-bar { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid rgba(20,19,17,.12); }
.yt-bar input {
  flex: 1; height: 32px; padding: 0 10px; border: 1px solid rgba(20,19,17,.3); border-radius: var(--radius);
  background: #fff; color: var(--inverse-ink); font: 400 14px/1 var(--font-text);
}
.yt .btn { border-color: rgba(20,19,17,.4); color: var(--inverse-ink); }
.yt .btn:hover { border-color: var(--inverse-ink); }
.yt-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; min-height: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px 0 10px; border-radius: var(--radius);
  background: var(--inverse-ink); color: var(--inverse); font: 500 12px/1 var(--font-text); border: 0; cursor: pointer;
}
.chip svg { opacity: .7; }
.yt-grid { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.yt-grid li { min-width: 0; transition: opacity var(--t-layout) var(--expo); }
.thumb { aspect-ratio: 16 / 9; border-radius: var(--radius); position: relative; overflow: hidden; }
.thumb i { position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; background: var(--inverse-ink); color: var(--inverse); font: 500 10px/1.4 var(--font-text); font-style: normal; border-radius: var(--radius); }
.yt-grid .t { margin-top: 6px; font-size: 12px; line-height: 1.3; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-grid .c { font-size: 11px; color: #5c5a55; margin-top: 2px; }
.yt-grid li.hid .thumb { background: repeating-linear-gradient(135deg, #e3ddd0 0 6px, #ece7dc 6px 12px) !important; }
.yt-grid li.hid .thumb i { display: none; }
.yt-grid li.hid .t { color: #8a3d2f; }
.yt-grid li.hid .c { visibility: hidden; }

/* RPS */
.rps-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px 16px 12px; gap: 12px; }
.rps-side { display: grid; justify-items: center; gap: 8px; }
.rps-who { font: 500 11px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.rps-move { font: 700 30px/1 var(--font-display); letter-spacing: -0.04em; min-height: 30px; }
.rps-vs { font: 500 14px/1 var(--font-text); color: var(--ink-2); padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 96px; text-align: center; }
.rps-vs.win { background: var(--success-soft); color: var(--success-on-soft); border-color: transparent; }
.rps-vs.lose { background: var(--danger-soft); color: var(--danger-on-soft); border-color: transparent; }
.rps-picks { display: flex; justify-content: center; gap: 8px; padding: 0 12px 14px; }
.rps-log { list-style: none; margin: 0; padding: 10px 12px; height: 150px; overflow: hidden; border-top: 1px solid var(--line); background: var(--surface); font: 12px/1.75 var(--font-mono); color: var(--ink-3); display: flex; flex-direction: column; justify-content: flex-end; }
.rps-log .out { color: var(--ink-2); }
.rps-log .in { color: var(--primary); }

/* ============ NOW ============ */
.now { padding: 120px 56px 120px; border-top: 1px solid var(--line); }
.now-top { display: flex; justify-content: space-between; font: 500 13px/1.5 var(--font-text); color: var(--ink-2); }
.now-label { letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--ink-3); }
.now-idx b { color: var(--primary); font-weight: 500; }
.scr { display: flex; flex-direction: column; gap: 28px; padding: 56px 0 40px; }
.scr-h {
  font: 400 clamp(30px, 4.6vw, 60px)/1.15 var(--font-display); letter-spacing: -0.02em;
  white-space: pre-wrap; max-width: 30ch; min-height: calc(1.15em * 3); color: var(--ink);
}
.scr-h .g { color: var(--ink-3); font-weight: 400; }
.scr-h .c { display: inline-block; width: .6ch; height: .9em; background: var(--primary); vertical-align: -.1em; margin-left: .1ch; animation: blink 1s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scr-sub { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.scr-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.scr-dots { display: flex; gap: 8px; }
.sd { width: 56px; height: 2px; background: var(--line); overflow: hidden; }
.sd i { display: block; height: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; }
.sd.done i { transform: scaleX(1); }
.sd.on i { animation: fill 4000ms linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.now-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; margin-top: 96px; }
.now-h { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 16px; }
.post + .post { margin-top: 16px; }
.post + .now-h { margin-top: 40px; }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roles li { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.roles b { display: block; font-weight: 600; font-size: 18px; }
.roles span { color: var(--ink-2); font-size: 16px; }
.roles .when { white-space: nowrap; color: var(--ink-2); font-size: 15px; padding-top: 3px; }
.post {
  display: grid; gap: 10px; padding: var(--pad); text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  transition: background var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.post:hover { background: var(--surface-2); border-color: var(--line-strong); }
.post-t { font: 700 20px/1.2 var(--font-display); letter-spacing: -0.03em; }
.post-d { color: var(--ink-2); font-size: 16px; }
.post-go { display: inline-flex; align-items: center; gap: 8px; color: var(--link); font-size: 15px; font-weight: 500; }
.post-go svg { transition: transform 240ms var(--expo); }
.post:hover .post-go svg { transform: translateX(6px); }
.now-p { color: var(--ink-2); font-size: 18px; }

/* ============ FOOTER ============ */
.foot { --p: 1; position: relative; overflow: hidden; margin-left: var(--rail); padding: 48px 56px 0; border-top: 1px solid var(--line); background: var(--bg); }
.foot-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot-kick { font: 500 11px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-mail {
  font: 700 clamp(28px, 3.6vw, 44px)/1.05 var(--font-display); letter-spacing: -0.04em; color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--primary), var(--primary)) 0 100% / 0 2px no-repeat; padding-bottom: 4px;
  transition: background-size 400ms var(--expo);
}
.foot-mail:hover, .foot-mail:focus-visible { background-size: 100% 2px; }
.clock { text-align: right; }
.clock-t { font: 700 44px/1 var(--font-display); letter-spacing: -0.04em; }
.clock-t span { color: var(--ink-3); }
.clock-z { margin-top: 12px; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.clock-z .rail-dot { width: 7px; height: 7px; animation: dotp 2s var(--ease) infinite; }
@keyframes dotp { 50% { opacity: .25; } }
.cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 32px; padding: 36px 0; }
.cols h3 { font: 500 11px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cols a { display: inline-flex; align-items: center; color: var(--ink-2); text-decoration: none; font-size: 16px; transition: color 240ms var(--expo); }
.cols a::before { content: ""; width: 0; height: 2px; margin-right: 0; background: var(--primary); transition: width 240ms var(--expo), margin-right 240ms var(--expo); }
.cols a:hover { color: var(--ink); }
.cols a:hover::before { width: 14px; margin-right: 8px; }
.note { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.legal { display: flex; align-items: center; gap: 24px; padding-bottom: 20px; font-size: 13px; color: var(--ink-3); }
.legal a { color: var(--ink-2); }
.legal .sp { flex: 1; }
.word {
  --word: 360px; display: flex; width: max-content; height: .7em; margin-top: 8px; padding-right: .08em;
  font: 700 var(--word)/.8 var(--font-display); letter-spacing: -0.07em; color: var(--ink); user-select: none;
}
.word span {
  display: inline-block;
  --q: clamp(0, calc(var(--p) * 1.5 - var(--i) * .07), 1);
  transform: translateY(calc((1 - var(--q)) * 100%));
  transition: transform 520ms var(--expo), color var(--t-micro) var(--ease);
}
.word span:hover { color: var(--primary); }
.word .end { color: var(--primary); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1279px) {
  .stage { --r: 150px; }
  .row { grid-template-columns: 380px 1fr; gap: 40px; }
  .fp-list > div { grid-template-columns: 88px 1fr 150px; }
  .card { grid-template-columns: 400px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .row { grid-template-columns: 1fr; gap: 28px; }
  .fp { justify-self: stretch; width: 100%; }
  .card { height: 760px; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .art { order: -1; padding: 16px; }
  .iso-room { height: 500px; }
  .txt { gap: 14px; }
  .txt h3 { font-size: 36px; }
  .work-head { grid-template-columns: 1fr; }
  .now-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .clock { text-align: left; }
  .cols { grid-template-columns: 1fr 1fr; }
  .note { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .rail {
    inset: 0 0 auto 0; width: auto; height: 56px; flex-direction: row; align-items: center; padding: 0 8px 0 20px;
    border-right: 0; border-bottom: 2px solid var(--line);
  }
  .rail-word { writing-mode: horizontal-tb; transform: none; padding: 0; margin: 0; font-size: 18px; }
  .rail-nav, .rail-foot { display: none; }
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong);
    border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer;
  }
  .mobile-nav:not([hidden]) {
    display: grid; position: fixed; inset: 56px 0 auto 0; z-index: 19; padding: 12px 20px 20px;
    background: var(--surface); border-bottom: 2px solid var(--line);
  }
  .mobile-nav a { padding: 12px 0; font: 700 28px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav a[aria-current="true"] { color: var(--primary); }
  main, .foot { margin-left: 0; }
  main { padding-top: 56px; }
  .stage { --hl: clamp(30px, 7.8vw, 56px); height: auto; min-height: 0; cursor: auto; }
  .stage .base { position: relative; }
  .stage .layer { grid-template-rows: 32px 116px auto; gap: 20px; padding-bottom: 20px; }
  .stage .beam { bottom: 68px; mask-image: none; -webkit-mask-image: none; visibility: hidden; transition: none; }
  .stage.full .beam { visibility: visible; }
  .stage .headline { line-height: 1.05; }
  .stage .cross, .stage .readout { display: none; }
  .stage .row { gap: 24px; }
  .stage .lede-wrap { display: flex; flex-direction: column; }
  .stage .lede { min-height: 150px; margin: 0; }
  .stage .ctas { margin-top: 16px; }
  .stage .fp-head { gap: 12px; line-height: 1.5; letter-spacing: .06em; }
  .stage .fp-count { flex-shrink: 0; white-space: nowrap; }
  .stage .fp-list { max-height: none; overflow: visible; }
  .stage .fp-list > div { min-height: 44px; height: auto; }
  .stage .fp-list dd { white-space: normal; overflow-wrap: anywhere; }
  .stage .pill { padding: 0 10px; font-size: 12px; }
  .stage .hint { position: relative; inset: auto; display: flex; padding: 0 20px 24px; }
  .stage .hint-text { display: none; }
  .stage .reveal { width: 100%; min-height: 44px; }
  .btn { min-height: 44px; }
  .work-title { font-size: clamp(32px, 8vw, 48px); line-height: 1.12; }
  .work-head { gap: 20px; margin-bottom: 24px; }
  .work-intro p { font-size: 16px; }
  .cue { display: none; }
  .stack > li { position: static; margin-bottom: 24px; }
  .stack .card { animation: none !important; transform: none; gap: 20px; }
  .stack .card::after { display: none; }
  .card .art { order: 0; }
  .card .txt { padding: 12px 8px 0; gap: 16px; }
  .step { flex-wrap: wrap; gap: 8px; line-height: 1.5; }
  .copy { font-size: 16px; line-height: 1.65; }
  section, .foot, .txt h3 { scroll-margin-top: 76px; }
  .layer { padding: 24px 20px 28px; position: absolute; }
  
  .fp-list > div { grid-template-columns: 88px minmax(0, 1fr); }
  .fp-list .why { display: none; }
  .lede { font-size: 16px; min-height: calc(1.55em * 5); }
  .ctas { flex-wrap: wrap; }
  .work, .now { padding: 40px 20px; }
  .foot { padding: 40px 20px 0; }
  .stack > li { padding-top: 0; }
  .card { height: auto; padding: 10px; }
  .cg-rows [data-field="url"] { display: none; }
  .art { padding: 10px; }
  .iso-room { height: clamp(360px, 108vw, 520px); }
  .txt h3 { font-size: 32px; }
  .meta { grid-template-columns: 1fr 1fr; }
  .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yt-grid li:nth-child(n+5) { display: none; }
  .roles li { flex-direction: column; gap: 4px; }
  .legal { flex-wrap: wrap; gap: 12px; }
  .legal .sp { display: none; }
  .cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam { transition: none; }
  .card { animation: none !important; }
  .card::after { opacity: 0; }
  .cue svg, .rail-dot, .clock-z .rail-dot, .scr-h .c { animation: none; }
  .rail-ind { transition: none; }
  .word span { transform: none !important; transition: none; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}
