/* ==========================================================
   Avnish Rai — portfolio
   Paper, ink and one loud colour. Light and dark themes.
   ========================================================== */

:root {
  /* light theme */
  --bg: #F1EDE4;
  --bg2: #E6E0D3;
  --fg: #14120E;
  --fg2: #4B463D;
  --mute: #6F695D;
  --rule: rgba(20, 18, 14, .2);
  --accent: #FF4A1C;
  --accent-ink: #C2330A;
  --on-accent: #14120E;
  --ok: #1E7A3C;

  /* what an "inverted" block looks like in this theme */
  --inv-bg: #14120E;
  --inv-bg2: #211E19;
  --inv-fg: #F1EDE4;
  --inv-fg2: #C9C2B3;
  --inv-mute: #9A9385;
  --inv-rule: rgba(241, 237, 228, .2);
  --inv-accent-ink: #FF6A3D;
  --inv-ok: #58D07F;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --pad: clamp(18px, 4vw, 56px);
  --bar-h: 60px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0E0D0B;
  --bg2: #191714;
  --fg: #EDE7DA;
  --fg2: #C2BBAC;
  --mute: #8F8879;
  --rule: rgba(237, 231, 218, .18);
  --accent: #FF5526;
  --accent-ink: #FF6A3D;
  --ok: #58D07F;

  --inv-bg: #EDE7DA;
  --inv-bg2: #DFD8C8;
  --inv-fg: #14120E;
  --inv-fg2: #4B463D;
  --inv-mute: #6F695D;
  --inv-rule: rgba(20, 18, 14, .2);
  --inv-accent-ink: #C2330A;
  --inv-ok: #1E7A3C;
  color-scheme: dark;
}

.invert {
  --bg: var(--inv-bg);
  --bg2: var(--inv-bg2);
  --fg: var(--inv-fg);
  --fg2: var(--inv-fg2);
  --mute: var(--inv-mute);
  --rule: var(--inv-rule);
  --accent-ink: var(--inv-accent-ink);
  --ok: var(--inv-ok);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: clamp(16px, 0.35vw + 15px, 19px);
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1560px; margin-inline: auto; padding-inline: var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; font-family: var(--mono); font-size: 13px; }
.skip:focus { top: 12px; }

.mini, .sec-no, .desk-tag, .tc, .theme, .nav a, .pill, .lang, .clip, .credit, .demo-note,
.flag-tag, .row-no, .row-go, .heat-key, .heat-months, .foot-row, .form label, .form legend, .form-note,
.reach li > span, .chan-role, .tally dt, .gh-nums dt, .flag-nums dt, .facts span, .kit dt, .burger, .studio-terms {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ---------- buttons, pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  padding: 15px 20px;
  border: 1px solid var(--fg);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-fill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-fill:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translate(2px, 0); }

.pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-live { color: var(--ok); }
.pill-soon { color: var(--accent-ink); }
.pill-build { color: var(--mute); }
.pill-build::before { background: none; border: 1px solid currentColor; }

.live, .rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; }
.rec { background: var(--accent); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: background-color .35s ease;
}
.bar-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-inline: var(--pad); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.mark-box { display: grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav a { text-decoration: none; padding: 6px 0; position: relative; color: var(--fg2); transition: color .2s; }
.nav a i { font-style: normal; color: var(--mute); margin-right: 6px; font-size: 10px; }
.nav a:hover, .nav a.on { color: var(--fg); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.bar-end { display: flex; align-items: center; gap: 18px; }
.tc { color: var(--fg2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.theme { display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; }
.theme-track { width: 34px; height: 18px; border: 1px solid var(--fg); border-radius: 20px; position: relative; }
.theme-knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--fg); transition: transform .3s cubic-bezier(.6, 0, .2, 1); }
[data-theme="dark"] .theme-knob { transform: translateX(16px); background: var(--accent); }
.theme-label { min-width: 4ch; text-align: left; }

.burger { display: none; border: 1px solid var(--fg); padding: 8px 12px; }
.sheet { position: fixed; inset: var(--bar-h) 0 0 0; z-index: 49; background: var(--bg); padding: 28px var(--pad) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow: auto; }
.sheet[hidden] { display: none; }
.sheet a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; font-size: clamp(34px, 10vw, 56px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; border-bottom: 1px solid var(--rule); padding: 6px 0; font-variation-settings: "wdth" 80; }
.sheet a i { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--mute); letter-spacing: .04em; font-weight: 400; }
.sheet-foot { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-top: 24px; }

/* ---------- hero: the edit ---------- */
.edit { display: flex; flex-direction: column; height: calc(100vh - var(--bar-h)); height: calc(100svh - var(--bar-h)); min-height: 540px; max-height: 1200px; }

/* program monitor */
.mon { --m-bg: var(--bg); --m-fg: var(--fg); --m-ac: var(--accent); position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--m-bg); color: var(--m-fg); overflow: hidden; }
.mon[data-tone="ink"] { --m-bg: var(--inv-bg); --m-fg: var(--inv-fg); }
.mon[data-tone="accent"] { --m-bg: var(--accent); --m-fg: #14120E; --m-ac: #F1EDE4; }
.mon[data-tone="frame"] { --m-bg: #0A0908; --m-fg: #F5F1E8; }
.mon-top, .mon-bot { position: absolute; left: var(--pad); right: var(--pad); z-index: 3; display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; pointer-events: none; opacity: .78; }
.mon-top { top: 16px; }
.mon-bot { bottom: 14px; }
.mon-tc { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mon-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corner { position: absolute; z-index: 3; width: 18px; height: 18px; border: 0 solid currentColor; opacity: .55; pointer-events: none; }
.c1 { top: 42px; left: var(--pad); border-top-width: 1px; border-left-width: 1px; }
.c2 { top: 42px; right: var(--pad); border-top-width: 1px; border-right-width: 1px; }
.c3 { bottom: 40px; left: var(--pad); border-bottom-width: 1px; border-left-width: 1px; }
.c4 { bottom: 40px; right: var(--pad); border-bottom-width: 1px; border-right-width: 1px; }

.stage { position: relative; flex: 1; min-height: 0; }
.scene { position: absolute; inset: 0; padding: 62px calc(var(--pad) + 22px) 58px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; visibility: hidden; }
.scene.on { visibility: visible; }
.scene em { color: var(--m-ac); }
.fit { display: inline-block; white-space: nowrap; }
.js .scene.on .a { animation: cut-in .42s cubic-bezier(.2, .8, .2, 1) both; }
.js .scene.on .a:nth-child(2) { animation-delay: .05s; }
.js .scene.on .a:nth-child(3) { animation-delay: .1s; }
.js .scene.on .a:nth-child(4) { animation-delay: .15s; }
@keyframes cut-in { from { transform: translateY(26px); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(-20% -5% -20% -5%); } }

/* title scene */
.hero h1 { line-height: 0; max-width: 100%; }
.name { font-size: 18vw; line-height: .82; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-variation-settings: "wdth" 75, "opsz" 96, "wght" 800; }
.name i { display: inline-block; font-style: normal; text-align: center; }
.scene-row { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 3vw, 46px); margin-top: clamp(14px, 2.4vh, 30px); font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.stamp { position: absolute; right: calc(var(--pad) + 6px); top: 50px; width: clamp(84px, 11vw, 176px); height: auto; transform: rotate(-9deg); z-index: 2; }
.stamp circle { fill: var(--accent); }
.stamp text { font-family: var(--mono); font-size: 14.5px; letter-spacing: .08em; fill: #14120E; }
.stamp .stamp-mid { font-family: var(--display); font-weight: 800; font-size: 33px; letter-spacing: -.03em; }
.stamp .stamp-sub { font-family: var(--display); font-size: 20px; letter-spacing: 0; }
.stamp-spin { transform-origin: 100px 100px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* statement, product, stat scenes */
.say { font-size: 9vw; line-height: .98; font-weight: 700; letter-spacing: -.012em; font-variation-settings: "wdth" 82, "opsz" 96; }
.say em { font-size: 1.06em; letter-spacing: -.02em; }
.big { font-size: 16vw; line-height: .84; font-weight: 800; letter-spacing: -.02em; font-variation-settings: "wdth" 75, "opsz" 96; margin: .06em 0 .08em -.02em; }
.big sup { font-size: .45em; vertical-align: .9em; color: var(--m-ac); }
.scene-k { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.scene-k .pill { color: inherit; }
.scene-line { font-size: clamp(22px, 3.4vw, 54px); line-height: 1.04; }
.scene-go { margin-top: clamp(14px, 2.6vh, 30px); font-family: var(--mono); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.scene-go:hover { color: var(--m-ac); }
.scene-end .cta { margin-top: clamp(16px, 3vh, 34px); }
.scene-end .btn { border-color: #14120E; }
.scene-end .btn:hover { background: #14120E; color: #F1EDE4; }

/* video scenes */
.scene-vid { justify-content: flex-end; }
.scene-vid > img, .shorts-row { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shorts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.shorts-row img { width: 100%; height: 100%; object-fit: cover; }
.scene-vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 9, 8, .92) 0%, rgba(10, 9, 8, .5) 42%, rgba(10, 9, 8, .22) 100%); }
.scene-vid > p, .scene-vid > a { position: relative; z-index: 1; }
.js .scene-vid.on > img, .js .scene-vid.on .shorts-row { animation: push 2.4s linear both; }
@keyframes push { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.vid-title { font-size: clamp(34px, 6.6vw, 118px); line-height: .92; font-weight: 800; letter-spacing: -.008em; font-variation-settings: "wdth" 80, "opsz" 96; max-width: 15ch; margin-top: .16em; text-wrap: balance; }

/* timeline */
.tl { background: var(--bg2); border-top: 1px solid var(--fg); padding: 0 var(--pad) 12px; user-select: none; -webkit-user-select: none; }
html:not(.js) .tl { display: none; }
.tl-ctrl { display: flex; align-items: center; gap: 14px; height: 44px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.tl-play { width: 28px; height: 28px; background: var(--accent); display: grid; place-items: center; flex: none; }
.tl-play i { width: 9px; height: 11px; border-inline: 3px solid #14120E; }
.tl-play.paused i { width: 0; height: 0; border-inline: 0; border-left: 10px solid #14120E; border-block: 6px solid transparent; margin-left: 2px; }
.tl-now { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-hint, .tl-hint-s { margin-left: auto; color: var(--mute); white-space: nowrap; }
.tl-hint-s { display: none; }
.tl-body { display: grid; grid-template-columns: 30px minmax(0, 1fr); }
.tl-labs { display: grid; grid-template-rows: 18px repeat(3, 28px); gap: 3px; font-family: var(--mono); font-size: 10px; color: var(--mute); align-items: center; }
.tl-lanes { position: relative; display: grid; grid-template-rows: 18px repeat(3, 28px); gap: 3px; cursor: ew-resize; touch-action: pan-y; }
.tl-ruler { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); background-image: linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: var(--sec, 4%) 100%; font-family: var(--mono); font-size: 9px; color: var(--mute); }
.tl-ruler span { position: absolute; top: 2px; padding-left: 4px; }
.tl-track { position: relative; background: color-mix(in srgb, var(--fg) 5%, transparent); }
.tclip { position: absolute; top: 0; bottom: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 6px; font-family: var(--mono); font-size: 10px; line-height: 27px; letter-spacing: .02em; text-transform: uppercase; border-left: 2px solid var(--bg2); background: var(--fg); color: var(--bg); transition: background-color .12s, color .12s; }
#trk-v2 .tclip { background: color-mix(in srgb, var(--fg) 22%, var(--bg2)); color: var(--fg); }
#trk-v2 .tclip.nest { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--mute); }
.tclip.on, #trk-v2 .tclip.on { background: var(--accent); color: #14120E; }
.tl-audio .tclip { background: transparent; padding: 0; color: var(--mute); border-left: 0; }
.tl-audio svg { display: block; width: 100%; height: 100%; }
.tl-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; z-index: 2; }
.tl-head::before { content: ""; position: absolute; top: 0; left: -6px; border-inline: 7px solid transparent; border-top: 10px solid var(--accent); }
.tl-lanes:focus-visible { outline-offset: 4px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; padding: clamp(30px, 5vw, 80px) 0 clamp(30px, 4vw, 60px); }
.hero-say { font-size: clamp(30px, 4.6vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -.025em; font-variation-settings: "wdth" 88; padding-top: clamp(14px, 2vw, 28px); }
.hero-say em { color: var(--accent); font-size: 1.08em; letter-spacing: -.02em; }
.hero-side p { color: var(--fg2); max-width: 46ch; }
.hero-side p a { color: var(--fg); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.tally { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.tally > div { padding: 18px 20px 22px 0; border-right: 1px solid var(--rule); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.tally > div + div { padding-left: 20px; }
.tally > div:last-child { border-right: 0; }
.tally dt { color: var(--mute); }
.tally dd { font-size: clamp(34px, 4.4vw, 68px); font-weight: 700; letter-spacing: -.025em; line-height: 1; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; }
.tally sup { font-size: .5em; color: var(--accent); vertical-align: .7em; margin-left: .04em; }

.ticker { overflow: hidden; border-block: 1px solid var(--fg); background: var(--accent); color: var(--on-accent); }
.ticker-run { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker span { font-size: clamp(18px, 2vw, 28px); font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; padding: 12px 0; white-space: nowrap; font-variation-settings: "wdth" 80; }
.ticker span::after { content: "✳"; margin: 0 clamp(18px, 2.4vw, 38px); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(70px, 9vw, 150px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 12px clamp(16px, 3vw, 40px); align-items: start; margin-bottom: clamp(34px, 5vw, 76px); }
.sec-no { color: var(--accent-ink); padding-top: .9em; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.sec-no span { color: var(--mute); }
.sec-head h2 { font-size: clamp(38px, 6.6vw, 112px); line-height: .94; font-weight: 700; letter-spacing: -.025em; font-variation-settings: "wdth" 82, "opsz" 96; max-width: 17ch; text-wrap: balance; }
.sec-head h2 em { letter-spacing: -.02em; font-size: 1.04em; }
.sec-lede { grid-column: 2; max-width: 58ch; color: var(--fg2); font-size: 1.08em; margin-top: 10px; }

/* ---------- about ---------- */
.desks { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--fg); }
.desk { padding: clamp(22px, 3vw, 44px) clamp(20px, 3vw, 48px) clamp(26px, 3vw, 48px) 0; }
.desk + .desk { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 48px); padding-right: 0; }
.desk-tag { color: var(--accent-ink); margin-bottom: 18px; }
.desk h3 { font-size: clamp(24px, 2.7vw, 42px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-variation-settings: "wdth" 86; margin-bottom: 18px; max-width: 18ch; }
.desk p { color: var(--fg2); max-width: 52ch; }
.desk p + p { margin-top: .9em; }
.facts { margin-top: 28px; border-top: 1px solid var(--rule); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.facts span { color: var(--mute); }
.facts b { font-weight: 600; text-align: right; }

/* ---------- products: flagship ---------- */
.flag { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); padding: clamp(24px, 4vw, 64px); align-items: center; }
.flag-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--mute); }
.flag h3 { font-size: clamp(76px, 15vw, 250px); line-height: .8; font-weight: 800; letter-spacing: -.03em; font-variation-settings: "wdth" 75, "opsz" 96; margin: .16em 0 .12em -.02em; }
.flag-line { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 46px); line-height: 1.05; color: var(--accent); }
.flag-desc { color: var(--fg2); max-width: 58ch; margin-top: 18px; }
.flag-nums { display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 4vw, 60px); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.flag-nums dd { font-size: clamp(28px, 3.2vw, 50px); font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variation-settings: "wdth" 80; }
.flag-nums dt { color: var(--mute); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 30px; }
.chips li { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border: 1px solid var(--rule); color: var(--fg2); }
.flag .btn { border-color: var(--accent); }

.chat { background: var(--bg2); border: 1px solid var(--rule); padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; max-width: 440px; margin-left: auto; transform: rotate(1.6deg); box-shadow: 10px 10px 0 var(--accent); }
.chat-top { font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; }
.chat-top span { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--mute); margin-left: auto; }
.msg { padding: 10px 13px; max-width: 86%; }
.msg.me { align-self: flex-end; background: var(--fg); color: var(--bg); border-radius: 14px 14px 2px 14px; }
.msg.bot { align-self: flex-start; border: 1px solid var(--rule); border-radius: 14px 14px 14px 2px; }
.prod { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--rule); font-size: 14px; }
.prod b { font-weight: 700; }
.prod i { grid-column: 1 / -1; font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .04em; }
.chat-in { margin-top: 4px; border: 1px solid var(--rule); border-radius: 20px; padding: 9px 14px; color: var(--mute); font-size: 14px; }
.demo-note { color: var(--mute); text-align: right; margin-top: 22px; font-size: 11px; }

/* ---------- products: index ---------- */
.index { border-bottom: 1px solid var(--fg); margin-top: clamp(20px, 3vw, 40px); }
.row {
  display: grid;
  grid-template-columns: 56px minmax(0, 4fr) minmax(0, 6fr) minmax(150px, 2fr) minmax(150px, auto);
  gap: 8px clamp(14px, 2.4vw, 36px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 30px) clamp(8px, 1.2vw, 18px);
  border-top: 1px solid var(--fg);
  text-decoration: none;
  position: relative;
  transition: background-color .25s, color .25s, padding .25s;
}
.row-no { color: var(--mute); }
.row-name { font-size: clamp(30px, 4.3vw, 72px); line-height: .95; font-weight: 700; letter-spacing: -.028em; font-variation-settings: "wdth" 80, "opsz" 96; }
.row-name small { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(17px, 1.5vw, 24px); letter-spacing: 0; color: var(--accent-ink); margin-top: .35em; line-height: 1.1; }
.row-desc { color: var(--fg2); font-size: .96em; max-width: 60ch; }
.row-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lang { color: var(--mute); }
.row-go { text-align: right; white-space: nowrap; }
.row-go b { display: inline-block; font-size: 18px; margin-left: 4px; transition: transform .25s; font-weight: 400; }
@media (hover: hover) {
  .row:hover { background: var(--fg); color: var(--bg); }
  .row:hover .row-desc { color: color-mix(in srgb, var(--bg) 78%, var(--fg)); }
  .row:hover .row-no, .row:hover .lang { color: color-mix(in srgb, var(--bg) 60%, var(--fg)); }
  .row:hover .row-name small { color: var(--accent); }
  .row:hover .pill-live, .row:hover .pill-soon, .row:hover .pill-build { color: var(--bg); }
  .row:hover .row-go b { transform: translate(4px, -4px); }
}
.index-foot { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-top: 18px; text-align: right; }
.index-foot a { color: var(--fg); }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); border-top: 1px solid var(--fg); padding-top: clamp(22px, 3vw, 40px); position: relative; }
.studio-lede { font-size: clamp(20px, 1.9vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; margin: 16px 0 18px; max-width: 26ch; }
.studio-terms { color: var(--mute); line-height: 1.7; margin-bottom: 26px; max-width: 44ch; }
.studio-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.studio-list li:first-child { border-top: 1px solid var(--rule); }
.studio-list b { font-weight: 600; letter-spacing: -.01em; }
.studio-list span { color: var(--fg2); font-size: .94em; }
.studio-price { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: flex-end; gap: 18px; font-size: clamp(64px, 12vw, 200px); font-weight: 800; letter-spacing: -.02em; line-height: .85; font-variation-settings: "wdth" 75, "opsz" 96; color: var(--accent); margin-top: clamp(6px, 2vw, 24px); }
.studio-price span { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; color: var(--mute); }

/* ---------- code ---------- */
.gh { border-top: 1px solid var(--fg); }
.gh-nums { display: grid; grid-template-columns: repeat(4, 1fr); }
.gh-nums > div { padding: 20px 20px 24px 0; border-right: 1px solid var(--rule); }
.gh-nums > div + div { padding-left: 20px; }
.gh-nums > div:last-child { border-right: 0; }
.gh-nums dd { font-size: clamp(40px, 5.4vw, 92px); font-weight: 700; letter-spacing: -.025em; line-height: .95; font-variation-settings: "wdth" 78, "opsz" 96; font-variant-numeric: tabular-nums; }
.gh-nums > div:first-child dd { color: var(--accent); }
.gh-nums dt { color: var(--mute); margin-top: 8px; max-width: 24ch; line-height: 1.5; }

.heat-box { border: 1px solid var(--rule); padding: clamp(14px, 2vw, 26px); background: var(--bg2); }
.heat-scroll { overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.heat, .heat-months { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11px, 1fr); gap: 3px; min-width: 760px; }
.heat { grid-template-rows: repeat(7, auto); }
.heat i { aspect-ratio: 1; background: color-mix(in srgb, var(--fg) 9%, transparent); }
.heat i[data-l="1"], .key i[data-l="1"] { background: color-mix(in srgb, var(--accent) 32%, var(--bg2)); }
.heat i[data-l="2"], .key i[data-l="2"] { background: color-mix(in srgb, var(--accent) 55%, var(--bg2)); }
.heat i[data-l="3"], .key i[data-l="3"] { background: color-mix(in srgb, var(--accent) 78%, var(--bg2)); }
.heat i[data-l="4"], .key i[data-l="4"] { background: var(--accent); }
.heat i.pad { background: none; }
.heat-months { color: var(--mute); margin-bottom: 8px; font-size: 11px; }
.heat-months span { white-space: nowrap; overflow: visible; width: 0; }
.heat-key { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--mute); margin-top: 14px; font-size: 11px; }
.key { display: inline-flex; align-items: center; gap: 4px; }
.key i { width: 11px; height: 11px; background: color-mix(in srgb, var(--fg) 9%, transparent); }

.gh-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); margin-top: clamp(30px, 4vw, 56px); }
.mini { color: var(--mute); margin-bottom: 12px; }
.pushes li { border-top: 1px solid var(--rule); }
.pushes li:last-child { border-bottom: 1px solid var(--rule); }
.pushes li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: baseline; padding: 12px 0; }
.pushes b { font-weight: 600; font-size: 1.1em; letter-spacing: -.02em; }
.pushes span { font-family: var(--mono); font-size: 12px; color: var(--mute); white-space: nowrap; }
.langbar { display: flex; height: 14px; gap: 2px; margin-bottom: 14px; }
.langbar i { background: var(--fg); min-width: 4px; }
.langbar i:nth-child(1) { background: var(--accent); }
.langbar i:nth-child(2) { background: var(--fg); }
.langbar i:nth-child(3) { background: color-mix(in srgb, var(--fg) 55%, var(--bg)); }
.langbar i:nth-child(n+4) { background: color-mix(in srgb, var(--fg) 28%, var(--bg)); }
.langs { margin-bottom: 26px; }
.langs li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.langs span { font-family: var(--mono); font-size: 12px; color: var(--mute); }

/* ---------- reel ---------- */
.vid { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vid.tall { aspect-ratio: 9 / 16; }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .6, .2, 1), filter .3s; }
.vid:hover img { transform: scale(1.04); filter: brightness(.82); }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 14px; bottom: 14px; width: 54px; height: 54px; background: var(--accent); display: grid; place-items: center; transition: transform .25s; }
.play::before { content: ""; border-left: 15px solid #14120E; border-block: 9px solid transparent; margin-left: 4px; }
.vid:hover .play { transform: scale(1.1); }

.feature { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(18px, 3vw, 44px); align-items: end; border-top: 1px solid var(--fg); padding-top: clamp(18px, 2.4vw, 32px); }
.feature-cap h3 { font-size: clamp(26px, 3vw, 50px); line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variation-settings: "wdth" 82; margin: 12px 0 14px; }
.feature-cap p { color: var(--fg2); }
.clip { color: var(--accent-ink) !important; }
.credit { color: var(--mute) !important; margin-top: 14px; }

.only-s { display: none; }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: clamp(44px, 6vw, 90px); }
.strip {
  --hole: 12px;
  background: var(--inv-bg);
  color: var(--inv-fg);
  padding: 34px 0;
  position: relative;
  margin-inline: calc(var(--pad) * -1);
}
.strip::before, .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background-image: linear-gradient(90deg, var(--bg) 0 14px, transparent 14px);
  background-size: 30px 100%;
  border-radius: 2px;
}
.strip::before { top: 10px; }
.strip::after { bottom: 10px; }
.strip-run { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 18px); padding-inline: var(--pad); }
.strip figcaption, .longs figcaption { font-size: .94em; padding-top: 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; line-height: 1.25; font-weight: 500; }
.strip figcaption b, .longs figcaption b { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--accent-ink); letter-spacing: .04em; }
.strip figcaption b { color: var(--inv-accent-ink); }
.longs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 26px); }
.longs figcaption small { flex-basis: 100%; font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .04em; text-transform: uppercase; font-weight: 400; padding-left: 28px; }

.games { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 2vw, 30px); margin-top: clamp(40px, 5vw, 70px); font-size: clamp(30px, 5.4vw, 92px); font-weight: 800; letter-spacing: -.015em; line-height: .95; text-transform: uppercase; font-variation-settings: "wdth" 75, "opsz" 96; }
.games li:nth-child(even) { color: color-mix(in srgb, var(--fg) 26%, var(--bg)); }
.games li:nth-child(3) { color: var(--accent); }

.sub { margin-top: clamp(50px, 6vw, 96px); }
.chan li { border-top: 1px solid var(--fg); }
.chan li:last-child { border-bottom: 1px solid var(--fg); }
.chan a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr) 30px; gap: 6px clamp(14px, 2vw, 30px); align-items: baseline; padding: 18px clamp(8px, 1.2vw, 18px); text-decoration: none; transition: background-color .25s, color .25s; }
.chan-role { color: var(--mute); }
.chan-handle { font-size: clamp(22px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variation-settings: "wdth" 82; }
.chan-desc { color: var(--fg2); font-size: .96em; }
.chan b { text-align: right; font-weight: 400; font-size: 18px; transition: transform .25s; }
@media (hover: hover) {
  .chan a:hover { background: var(--accent); color: var(--on-accent); }
  .chan a:hover .chan-role, .chan a:hover .chan-desc { color: var(--on-accent); }
  .chan a:hover b { transform: translate(4px, -4px); }
}

.serv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: s; border-top: 1px solid var(--fg); border-left: 1px solid var(--rule); }
.serv li { counter-increment: s; padding: 22px 22px 30px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.serv li::before { content: "0" counter(s); font-family: var(--mono); font-size: 12px; color: var(--accent-ink); margin-bottom: 26px; }
.serv b { font-size: clamp(20px, 1.8vw, 27px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; font-variation-settings: "wdth" 86; }
.serv span { color: var(--fg2); font-size: .95em; }
.serv-foot { margin-top: 20px; color: var(--fg2); }
.serv-foot a { color: var(--fg); font-weight: 600; }

/* ---------- toolkit ---------- */
.sec-kit { padding-bottom: clamp(70px, 9vw, 150px); }
.kit { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--fg); }
.kit-col { padding: clamp(22px, 3vw, 40px) clamp(20px, 3vw, 48px) 0 0; }
.kit-col + .kit-col { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 48px); padding-right: 0; }
.kit dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.kit dt { color: var(--mute); }
.kit dd { font-weight: 500; line-height: 1.45; }

/* ---------- contact ---------- */
.sec-contact { padding-top: clamp(64px, 8vw, 130px); }
.sec-contact .sec-head h2 { max-width: 18ch; }
.sec-contact .sec-head h2 em { color: var(--accent); }
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 90px); border-top: 1px solid var(--fg); padding-top: clamp(24px, 3vw, 44px); }
.form { display: grid; gap: 22px; }
.form legend, .form label { color: var(--mute); display: block; margin-bottom: 8px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { width: 100%; }
.topics label { margin: 0; color: inherit; cursor: pointer; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics span { display: block; border: 1px solid var(--rule); padding: 10px 14px; transition: background-color .2s, color .2s, border-color .2s; }
.topics label:hover span { border-color: var(--fg); }
.topics input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.topics input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: clamp(18px, 1.5vw, 24px); color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0;
  padding: 6px 0 12px; resize: vertical; letter-spacing: -.01em;
}
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-note { color: var(--fg2); text-transform: none; letter-spacing: 0; font-size: 13px; }
.form .btn { border-color: var(--accent); }

.reach ul:first-child li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.reach ul:first-child li:first-child { padding-top: 0; }
.reach li > span { display: block; color: var(--mute); margin-bottom: 4px; }
.reach ul:first-child a { font-size: clamp(20px, 2vw, 30px); font-weight: 600; letter-spacing: -.03em; text-decoration: none; overflow-wrap: anywhere; }
.reach a:hover { color: var(--accent-ink); }
.socials { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

.foot { margin-top: clamp(60px, 8vw, 120px); overflow: hidden; }
.foot .wrap { container-type: inline-size; }
.foot-big { font-size: 21cqw; line-height: .8; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; font-variation-settings: "wdth" 75, "opsz" 96; display: flex; justify-content: space-between; align-items: baseline; margin-left: -.03em; }
.foot-big span { color: var(--accent); font-size: .52em; letter-spacing: 0; font-weight: 700; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 22px; border-top: 1px solid var(--rule); margin-top: 2.2cqw; color: var(--mute); }
.foot-row a { color: var(--fg); text-decoration: none; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tc { display: none; }
  .row { grid-template-columns: 44px minmax(0, 4fr) minmax(0, 6fr) minmax(140px, auto); }
  .row-go { grid-column: 2 / -1; text-align: left; color: var(--mute); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-block; }
  .theme-label { display: none; }
  .hide-s { display: none; }
  .tl-hint, .mon-file { display: none; }
  .tl-hint-s { display: inline; }
  #trk-v1 .tclip { font-size: 0; }
  .mon-top { justify-content: flex-end; }
  .scene { padding-inline: calc(var(--pad) + 8px); }
  .tl-labs, .tl-lanes { grid-template-rows: 16px repeat(3, 22px); }
  .tclip { line-height: 21px; font-size: 9px; padding: 0 3px; }
  .tl-body { grid-template-columns: 22px minmax(0, 1fr); }
  .only-s { display: inline; }
  .hero-grid, .flag, .studio, .gh-cols, .feature, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { align-items: start; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-no { flex-direction: row; gap: 10px; padding-top: 0; }
  .sec-lede { grid-column: 1; }
  .desks, .kit { grid-template-columns: minmax(0, 1fr); }
  .desk, .kit-col { padding-right: 0; }
  .desk + .desk, .kit-col + .kit-col { border-left: 0; border-top: 1px solid var(--fg); padding-left: 0; }
  .kit-col + .kit-col { margin-top: 30px; }
  .tally, .gh-nums { grid-template-columns: 1fr 1fr; }
  .tally > div, .gh-nums > div { border-bottom: 1px solid var(--rule); }
  .tally > div:nth-child(even), .gh-nums > div:nth-child(even) { border-right: 0; }
  .tally > div:nth-child(odd), .gh-nums > div:nth-child(odd) { padding-left: 0; }
  .tally > div:nth-last-child(-n+2) { border-bottom: 0; }
  .chat { margin-inline: auto; max-width: 100%; transform: rotate(1deg); box-shadow: 6px 6px 0 var(--accent); }
  .row { grid-template-columns: 34px minmax(0, 1fr); padding-inline: 0; align-items: start; }
  .row-no { padding-top: .7em; }
  .row-desc, .row-meta, .row-go { grid-column: 2; }
  .row-meta { flex-direction: row; gap: 16px; margin-top: 4px; }
  .studio-list li { grid-template-columns: minmax(0, 1fr); }
  .strip-run { grid-template-columns: repeat(4, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .strip-run figure { scroll-snap-align: center; }
  .longs { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .chan a { grid-template-columns: minmax(0, 1fr) 24px; padding-inline: 0; }
  .chan-role, .chan-desc { grid-column: 1; }
  .chan b { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .serv { grid-template-columns: 1fr 1fr; }
  .serv li { padding: 16px 14px 22px; }
  .serv li::before { margin-bottom: 14px; }
  .foot-row { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .name .w { display: block; }
  .stamp { top: 46px; width: 84px; }
  .scene-row { flex-direction: column; gap: 4px; }
  .scene-k { flex-direction: column; align-items: flex-start; gap: 6px; }
  .serv { grid-template-columns: 1fr; }
  .kit dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .btn { padding: 14px 16px; }
  .studio-price { justify-content: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp-spin, .ticker-run, .rec, .js .scene.on .a, .js .scene-vid.on > img, .js .scene-vid.on .shorts-row { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

@media print {
  .bar, .ticker, .stamp, .form, .burger, .tl { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- hero: the commit wall (avnishrai.in) ---------- */
.wall { --m-ac: var(--accent-ink); display: flex; flex-direction: column; height: calc(100vh - var(--bar-h)); height: calc(100svh - var(--bar-h)); min-height: 560px; max-height: 1200px; }
.wall-top { display: flex; justify-content: space-between; gap: 16px; padding: 14px var(--pad) 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg2); white-space: nowrap; }
.wall-top > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.wall-stage { position: relative; flex: 1; min-height: 0; margin-inline: var(--pad); }
.wall-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.wall-h1 { font-size: 18vw; line-height: .9; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-variation-settings: "wdth" 75, "opsz" 96; }
.js .wall-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wall-cap .stamp { position: static; align-self: center; width: clamp(88px, 8.6vw, 132px); pointer-events: none; }
.wall-cap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) auto; gap: 16px clamp(24px, 4vw, 64px); align-items: end; margin-top: 14px; padding: 18px var(--pad) 20px; border-top: 1px solid var(--fg); background: var(--bg2); }
.wall-k { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.wall-line { font-family: var(--serif); font-style: italic; font-size: clamp(25px, 3vw, 46px); line-height: 1.04; margin: 8px 0 12px; min-height: 2.08em; text-wrap: balance; }
.wall .scene-go { display: inline-block; margin-top: 0; }
.wall-ctrl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: start; }
.wall-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.wall-steps button { position: relative; overflow: hidden; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 10px 9px; border: 1px solid var(--rule); white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.wall-steps button:hover { border-color: var(--fg); }
.wall-steps button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.wall-steps button.on::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--accent); }
.wall-hint { grid-column: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }

/* about, developer-only version */
.layers { display: flex; flex-wrap: wrap; gap: 0 .32em; font-size: clamp(26px, 3.1vw, 50px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; font-variation-settings: "wdth" 84; }
.layers li:not(:last-child)::after { content: "/"; margin-left: .32em; color: var(--accent); font-weight: 400; }
.layers li:nth-child(even) { color: color-mix(in srgb, var(--fg) 46%, var(--bg)); }
.rules { margin-top: 28px; border-top: 1px solid var(--rule); counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 34px minmax(0, 4fr) minmax(0, 6fr); gap: 4px 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rules li::before { content: "0" counter(r); font-family: var(--mono); font-size: 12px; color: var(--accent-ink); }
.rules b { font-weight: 600; }
.rules span { color: var(--fg2); font-size: .95em; }
.kit-solo { grid-template-columns: minmax(0, 1fr); }
.kit-solo .kit-col { padding-right: 0; }
.kit-solo dl > div { grid-template-columns: minmax(110px, 2fr) minmax(0, 10fr); }

@media (max-width: 900px) {
  .wall-cap { grid-template-columns: minmax(0, 1fr); padding-bottom: 14px; }
  .wall-line { min-height: 0; }
  .wall-cap .stamp { position: absolute; top: -46px; right: var(--pad); width: 82px; }
  .wall-now { padding-right: 84px; }
  .wall-steps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .wall-steps::-webkit-scrollbar { display: none; }
  .wall-hint { display: none; }
  .rules li { grid-template-columns: 34px minmax(0, 1fr); }
  .rules span { grid-column: 2; }
}
@media (max-width: 520px) {
  .wall-top > span:first-child { display: none; }
  .wall-top { justify-content: flex-end; }
  .kit-solo dl > div { grid-template-columns: minmax(0, 1fr); }
}
@media print { .wall-cap, .wall-top { display: none; } }
