/* vimoxshah.github.io — one token system, two registers.
   Night is the theater (hero, work, tools, the ask). Paper is the reading room
   (principles, writing, about, essays). A section picks its register by class;
   every component reads only the semantic tokens, so both registers share one
   set of parts. No build step. Fonts are self-hosted under the OFL. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/instrument-serif-regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); }

:root {
  /* ground + ink, both registers */
  --night: #0B0B0F; --night-2: #0F0F16; --card: #15151D; --card-2: #1A1A24;
  --bone: #F2EDE4; --bone-2: #C9C3B8; --bone-3: #9A948A; --mute: #8B857B;
  --paper: #F4EFE6; --paper-2: #EAE3D6; --paper-card: #FBF8F2; --paper-card-2: #F1EBDF;
  --ink: #17161B; --ink-2: #4A4740; --ink-3: #6E6A61;
  /* the hue — site.js swaps these five when a visitor picks another */
  --accent: #E0803F; --accent-2: #F09A5E; --accent-rgb: 224, 128, 63;
  --accent-paper: #9E3E1B; --accent-paper-rgb: 158, 62, 27;
  /* semantic tokens — night register by default */
  --bg: var(--night); --bg-2: var(--night-2); --surface: var(--card); --surface-2: var(--card-2);
  --fg: var(--bone); --fg-2: var(--bone-2); --fg-3: var(--bone-3); --fg-mute: var(--mute);
  --ln: rgba(242, 237, 228, .10); --ln-2: rgba(242, 237, 228, .20);
  --ac: var(--accent); --ac-2: var(--accent-2); --ac-rgb: var(--accent-rgb);
  --glass: rgba(255, 255, 255, .035); --glass-2: rgba(255, 255, 255, .07);
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 32px 90px -34px rgba(0, 0, 0, .9);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1160px; --r: 18px; --r-sm: 11px;
  color-scheme: dark;
}
.paper {
  --bg: var(--paper); --bg-2: var(--paper-2); --surface: var(--paper-card); --surface-2: var(--paper-card-2);
  --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3); --fg-mute: var(--ink-3);
  --ln: rgba(23, 22, 27, .12); --ln-2: rgba(23, 22, 27, .24);
  --ac: var(--accent-paper); --ac-2: var(--accent-paper); --ac-rgb: var(--accent-paper-rgb);
  --glass: rgba(23, 22, 27, .03); --glass-2: rgba(23, 22, 27, .06);
  --shadow: 0 1px 2px rgba(23, 22, 27, .06), 0 24px 60px -30px rgba(23, 22, 27, .28);
  color-scheme: light;
  background: var(--bg); color: var(--fg);
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ac); }
img, video, svg, canvas { max-width: 100%; display: block; }
code, pre, .mono { font-family: var(--mono); font-feature-settings: "liga" 0; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: -.015em; line-height: 1.04; }
h2 { font-size: clamp(34px, 4.2vw, 56px); }
h2 em, h1 em { font-style: italic; color: var(--ac); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 21px; letter-spacing: -.018em; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ac); color: var(--night); padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 12px; z-index: 90; }
.paper .skip { color: #fff; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
::selection { background: rgba(var(--ac-rgb), .35); }

.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 9px; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); padding: 8px 14px 8px 12px; border-radius: 999px; border: 1px solid var(--ln); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip .spark { width: 6px; height: 6px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 12px var(--ac); flex: none; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid var(--ln-2); background: var(--glass); color: var(--fg); transition: transform .18s ease-out, border-color .18s, background .18s, box-shadow .2s; white-space: nowrap; }
.btn:hover { border-color: var(--fg-3); color: var(--fg); background: var(--glass-2); }
.btn.primary { background: var(--ac); color: var(--night); border-color: transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 46px -18px rgba(var(--ac-rgb), .75); }
.btn.primary:hover { color: var(--night); background: var(--ac-2); transform: translateY(-1px); }
.paper .btn.primary { color: #fff; }
.paper .btn.primary:hover { color: #fff; filter: brightness(1.08); }
.btn svg { width: 15px; height: 15px; }
.btn .arr { transition: transform .18s ease-out; }
.btn:hover .arr { transform: translateX(3px); }

/* ---- nav ---- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--night) 72%, transparent); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--ln); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 18px; }
.mark { display: inline-flex; align-items: center; min-height: 32px; font: 500 15px/1 var(--mono); letter-spacing: -.01em; color: var(--bone); }
.mark b { color: var(--ac); font-weight: 500; }
.nav { display: flex; gap: 20px; font-size: 14px; font-weight: 500; color: var(--bone-2); }
.nav a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 2px; }
.nav a:hover { color: var(--bone); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.hues { display: inline-flex; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 999px; border: 1px solid var(--ln); background: var(--glass); }
.hues button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; transition: transform .18s cubic-bezier(.34, 1.5, .64, 1); }
.hues button i { width: 12px; height: 12px; border-radius: 50%; display: block; background: var(--h); box-shadow: 0 0 0 0 transparent; transition: box-shadow .18s; }
.hues button:hover { transform: scale(1.2); }
.hues button[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--night), 0 0 0 3.5px var(--h); }
.nav-cta { font-weight: 600; font-size: 13.5px; padding: 9px 16px; border-radius: 10px; color: var(--night); background: var(--bone); transition: transform .15s, background .2s; white-space: nowrap; }
.nav-cta:hover { color: var(--night); background: #fff; transform: translateY(-1px); }

/* ---- hero ---- */
.hero-zone { position: relative; overflow: hidden; background: var(--night); }
#constel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: 0; pointer-events: none; background: radial-gradient(700px 420px at 18% 22%, rgba(var(--ac-rgb), .16), transparent 62%), radial-gradient(640px 380px at 82% 72%, rgba(var(--ac-rgb), .08), transparent 60%); filter: saturate(1.1); }
.gridfloor { position: absolute; left: 0; right: 0; bottom: -6vh; height: 44vh; z-index: 0; pointer-events: none; background: linear-gradient(rgba(242, 237, 228, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 237, 228, .07) 1px, transparent 1px); background-size: 56px 44px; transform: perspective(620px) rotateX(63deg); transform-origin: 50% 0; mask-image: linear-gradient(180deg, transparent 0%, black 34%, transparent 96%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 34%, transparent 96%); opacity: .6; }
.hero { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 52px; align-items: center; padding: 96px 0 44px; min-height: calc(100vh - 62px); }
.hero h1 { font-size: clamp(42px, 5.6vw, 84px); margin-top: 26px; }
.hero .lede { margin-top: 24px; font-size: 18.5px; line-height: 1.6; color: var(--bone-2); max-width: 36em; }
.hero .lede b { color: var(--bone); font-weight: 600; }
.cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.cta .quiet { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 500; color: var(--bone-2); }
.cta .quiet:hover { color: var(--ac); }

/* the deck — a terminal that replays real, dated captures */
.deck { position: relative; border-radius: 20px; border: 1px solid var(--ln); background: linear-gradient(180deg, rgba(21, 21, 29, .92), rgba(12, 12, 18, .96)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 -1px 0 rgba(255, 255, 255, .10) inset, var(--shadow); overflow: hidden; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.deck::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--ac-rgb), .8), transparent); opacity: .8; }
.deck-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--ln); font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.deck-bar .traffic { display: flex; gap: 7px; }
.deck-bar .traffic span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.deck-bar .traffic span:nth-child(1) { background: rgba(251, 113, 133, .7); }
.deck-bar .traffic span:nth-child(2) { background: rgba(250, 204, 21, .6); }
.deck-bar .traffic span:nth-child(3) { background: rgba(52, 211, 153, .7); }
.deck-bar .live { display: flex; align-items: center; gap: 7px; color: var(--bone-2); white-space: nowrap; }
.deck-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px var(--ac); animation: breathe 2.4s ease-in-out infinite; }
.ttabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 18px 0; }
.ttabs button { font: 500 11.5px/1 var(--mono); color: var(--bone-2); cursor: pointer; background: rgba(255, 255, 255, .04); border: 1px solid var(--ln); border-radius: 999px; padding: 7px 11px; min-height: 28px; transition: color .15s, border-color .15s, background .15s; }
.ttabs button:hover { color: var(--bone); border-color: var(--ln-2); }
.ttabs button[aria-selected="true"] { color: var(--ac-2); border-color: rgba(var(--ac-rgb), .55); background: rgba(var(--ac-rgb), .10); }
.term { padding: 16px 18px 18px; font: 400 13px/1.7 var(--mono); color: var(--bone-2); min-height: 292px; overflow-x: auto; }
.term .tc { color: var(--bone); font-weight: 500; white-space: pre; }
.term .tc::before { content: "$ "; color: var(--ac); }
.term .caret { display: inline-block; width: 7px; height: 13px; background: var(--ac-2); vertical-align: -2px; margin-left: 2px; animation: caret 1.1s steps(1) infinite; }
.term .out { margin-top: 10px; white-space: pre; }
.term .out div { white-space: pre-wrap; opacity: 0; transform: translateY(3px); transition: opacity .25s ease, transform .25s ease; }
.term .out div.on { opacity: 1; transform: none; }
.term .k { color: var(--bone); }
.term .d { color: var(--mute); }
.term .g { color: #8FCFA8; }
.term .a { color: var(--ac-2); }
.deck-foot { padding: 0 18px 16px; font: 400 11px/1.5 var(--mono); color: var(--mute); }
.deck-foot b { color: var(--bone-2); font-weight: 500; }

/* the proof strip — every number on it is registry-owned */
.proof { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--ln); border-radius: var(--r); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin: 8px 0 72px; position: relative; z-index: 2; }
.stat { padding: 22px 24px 20px; }
.stat + .stat { border-left: 1px solid var(--ln); }
.stat .num { font: 400 40px/1 var(--serif); letter-spacing: -.01em; color: var(--bone); }
.stat .num small { font-size: 22px; color: var(--bone-3); margin-left: 2px; }
.stat .lbl { margin-top: 9px; font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--mute); }

/* ---- sections ---- */
section { padding: 96px 0; border-top: 1px solid var(--ln); position: relative; }
.sec-head { max-width: 46em; margin-bottom: 44px; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head p { margin-top: 16px; font-size: 18px; color: var(--fg-2); }
.sec-head p b { color: var(--fg); font-weight: 600; }

/* ---- the work — four acts, one sticky stage ---- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.acts { display: flex; flex-direction: column; }
.act { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; }
.act .k { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ac); margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.act .k::before { content: ""; width: 22px; height: 1px; background: var(--ac); }
.act h3 { font: 400 clamp(28px, 2.8vw, 38px)/1.1 var(--serif); letter-spacing: -.012em; color: var(--fg); margin-bottom: 14px; }
.act h3 em { font-style: italic; color: var(--ac); }
.act p { font-size: 16.5px; color: var(--fg-2); max-width: 34em; }
.act p + p { margin-top: 12px; }
.act .fact { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--ac); background: rgba(var(--ac-rgb), .08); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15px; color: var(--fg); max-width: 34em; }
.act .fact b { font-weight: 600; }
.act .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.act .tags span { font: 500 12px/1 var(--mono); padding: 7px 10px; border: 1px solid var(--ln); border-radius: 7px; color: var(--fg-2); background: var(--glass); }
.act .scene-inline { display: none; margin: 18px 0 8px; border: 1px solid var(--ln); border-radius: var(--r); background: var(--surface); padding: 20px; }
.stage { position: sticky; top: 16vh; height: 68vh; border: 1px solid var(--ln); border-radius: var(--r); background: linear-gradient(180deg, var(--surface), var(--bg-2)); overflow: hidden; box-shadow: var(--shadow); }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 360px at 50% 100%, rgba(var(--ac-rgb), .10), transparent 70%); }
.stage .scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 5% 6% 9%; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .55s ease, transform .55s ease; }
.stage .scene.on { opacity: 1; transform: none; }
.stage .scene svg, .scene-inline svg { width: 100%; height: auto; max-height: 100%; }
.stage .rail { position: absolute; left: 22px; bottom: 20px; display: flex; gap: 6px; z-index: 2; }
.stage .rail i { width: 26px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .16); transition: background .3s; }
.stage .rail i.on { background: var(--ac); }
.stage .cap { position: absolute; right: 22px; bottom: 16px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); z-index: 2; }

/* scene drawings share one vocabulary */
.scene .box { fill: var(--surface-2); stroke: var(--ln-2); }
.scene .lbl { font: 500 11px var(--mono); fill: var(--fg-2); }
.scene .lbl.s { font-size: 9.5px; fill: var(--fg-mute); }
.scene .ac { stroke: var(--ac); }
.scene .acf { fill: var(--ac); }
.scene .ln { stroke: var(--ln-2); fill: none; }
.scene .flow { stroke: var(--ac); fill: none; stroke-dasharray: 6 10; animation: dash 2.6s linear infinite; }
.scene .pulse { fill: var(--ac-2); filter: drop-shadow(0 0 6px rgba(var(--ac-rgb), .9)); }
.scene .ok { fill: #8FCFA8; }
.scene .okl { stroke: #8FCFA8; }

/* ---- open source ---- */
.oss { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { --mx: 50%; --my: 50%; position: relative; background: var(--surface); border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .25s, box-shadow .25s; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(460px circle at var(--mx) var(--my), rgba(var(--ac-rgb), .12), transparent 55%); opacity: 0; transition: opacity .3s; }
.card:hover { border-color: var(--ln-2); }
.card:hover::before { opacity: 1; }
.card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.card .media { position: relative; background: var(--bg-2); border-bottom: 1px solid var(--ln); aspect-ratio: 16 / 8.4; overflow: hidden; display: grid; place-items: center; }
.card.wide .media { border-bottom: 0; border-right: 1px solid var(--ln); aspect-ratio: auto; min-height: 330px; background: #0B132B; }
.card.wide .media img { object-fit: contain; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media.pad { padding: 20px; background: var(--surface); }
.card .media.pad img { object-fit: contain; }
.card .media.shot img { object-fit: cover; object-position: top left; }
.card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.card .title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card .title h3 { font-family: var(--mono); font-weight: 500; font-size: 17px; letter-spacing: -.01em; color: var(--fg); }
.card .meta { font: 500 11.5px/1.5 var(--mono); color: var(--fg-mute); letter-spacing: .02em; }
.card .desc { font-size: 15.5px; color: var(--fg-2); }
.card .desc b { color: var(--fg); font-weight: 600; }
.card .desc code { font-size: 12.5px; background: var(--glass-2); border: 1px solid var(--ln); border-radius: 6px; padding: 1px 6px; color: var(--fg); }
.install { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--ln); border-radius: var(--r-sm); padding: 10px 12px; font: 500 13px/1.4 var(--mono); color: var(--fg); overflow-x: auto; white-space: nowrap; }
.install .p { color: var(--ac); }
.links { display: flex; gap: 14px; font-size: 14px; font-weight: 600; margin-top: auto; flex-wrap: wrap; }
.links a { display: inline-flex; align-items: center; min-height: 28px; color: var(--ac-2); }
.paper .links a { color: var(--ac); }
.links a:hover { text-decoration: underline; }
.badge { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(var(--ac-rgb), .45); color: var(--ac-2); background: rgba(var(--ac-rgb), .10); }

/* lite video embed: a poster until you press play */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .6)); color: #fff; cursor: pointer; display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 18px; text-align: left; font: inherit; }
.video .play .label { font-weight: 600; font-size: 14.5px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.video .play .label small { display: block; font-weight: 400; font-size: 12.5px; opacity: .85; margin-top: 3px; }
.video .play .disc { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #111; display: grid; place-items: center; flex: none; transition: transform .15s ease; }
.video .play:hover .disc { transform: scale(1.06); }
.video .play .disc svg { width: 20px; height: 20px; margin-left: 3px; }

/* ---- principles ---- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pr { background: var(--surface); border: 1px solid var(--ln); border-radius: var(--r); padding: 26px 26px 24px; box-shadow: var(--shadow); }
.pr .num { font: 500 12px/1 var(--mono); color: var(--ac); letter-spacing: .1em; margin-bottom: 14px; }
.pr h3 { margin-bottom: 10px; font-family: var(--serif); font-weight: 400; font-size: 27px; letter-spacing: -.01em; }
.pr p { font-size: 15.5px; color: var(--fg-2); }
.pr .ex { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--ac); background: rgba(var(--ac-rgb), .07); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14.5px; color: var(--fg); }
.pr .ex b { font-weight: 600; }
.pr .ex a { color: var(--ac); text-decoration: underline; text-decoration-color: rgba(var(--ac-rgb), .4); }

/* ---- writing ---- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { background: var(--surface); border: 1px solid var(--ln); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: transform .18s ease, border-color .18s ease; box-shadow: var(--shadow); }
.post:hover { transform: translateY(-3px); border-color: var(--ln-2); color: inherit; }
.post .meta { font: 500 11.5px/1 var(--mono); color: var(--fg-mute); letter-spacing: .06em; }
.post h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.01em; }
.post p { font-size: 15px; color: var(--fg-2); flex: 1; }
.post .more { font-weight: 600; font-size: 14px; color: var(--ac); }

/* ---- now ---- */
.now { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.portrait { border-radius: var(--r); border: 1px solid var(--ln); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; }
.now .prose { font-size: 17px; color: var(--fg-2); }
.now .prose p + p { margin-top: 14px; }
.now .prose b { color: var(--fg); font-weight: 600; }
.arc { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ln); }
.arc li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ln); font-size: 15px; color: var(--fg-2); }
.arc li .y { font: 500 12.5px/1.6 var(--mono); color: var(--fg-mute); }
.arc li b { color: var(--fg); font-weight: 600; }
.stack { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { font: 500 12.5px/1 var(--mono); padding: 7px 10px; border: 1px solid var(--ln); border-radius: 7px; color: var(--fg-2); background: var(--surface); }
.stacks { margin-top: 10px; }   /* the arc above already closes with a rule */
.srow { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ln); }
.srow .sk { font: 500 11px/1.8 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-mute); padding-top: 4px; }
.srow .stack { margin-top: 0; }

/* ---- hire ---- */
.hire { text-align: left; padding: 120px 0 128px; background: radial-gradient(900px 520px at 70% 0%, rgba(var(--ac-rgb), .10), transparent 60%), var(--bg); }
.hire h2 { font-size: clamp(38px, 5.4vw, 74px); max-width: 17em; }
.hire .lede { margin-top: 20px; font-size: 18.5px; color: var(--fg-2); max-width: 36em; }
.hire .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hire .fine { margin-top: 22px; font: 400 13px/1.6 var(--mono); color: var(--fg-mute); }
.hire .fine a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--ln-2); }

footer { padding: 34px 0 52px; border-top: 1px solid var(--ln); color: var(--fg-mute); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .mono { font-size: 12.5px; }

/* ---- the dock — the one strip that follows you, with the honesty stamp ---- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 14px; padding: 0 16px; height: 40px; background: rgba(11, 11, 15, .84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--ln); color: var(--bone-2); font: 500 12px/1 var(--sans); }
.dock a { color: inherit; }
.dock .wm { display: inline-flex; align-items: center; min-height: 28px; gap: 8px; font: 500 12.5px/1 var(--mono); color: var(--bone); white-space: nowrap; }
.dock .wm i { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); display: inline-block; box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .25); }
.dock nav { display: flex; gap: 2px; margin-left: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.dock nav::-webkit-scrollbar { display: none; }
.dock nav a { padding: 6px 10px; border-radius: 99px; white-space: nowrap; color: var(--bone-2); border: 1px solid transparent; transition: color .15s, border-color .15s, background .15s; }
.dock nav a:hover { color: #fff; border-color: var(--ln-2); }
.dock nav a.on { color: #fff; border-color: rgba(var(--ac-rgb), .55); background: rgba(var(--ac-rgb), .14); }
.dock .sp { margin-left: auto; }
.dock .stamp { flex: none; color: var(--mute); white-space: nowrap; background: none; border: 0; font: 500 11px/1 var(--mono); cursor: pointer; padding: 8px 0; min-height: 26px; }
.dock .stamp b { color: var(--bone-2); font-weight: 500; }
.dock .stamp u { color: var(--bone-2); text-decoration-color: rgba(255, 255, 255, .35); }
.dock .stamp:hover u { color: #fff; }
body { padding-bottom: 40px; }

/* the facts report — how this page checked its own numbers */
.facts { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(6, 6, 10, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 20px; }
.facts[hidden] { display: none; }
.facts .in { max-width: 820px; width: 100%; max-height: 88vh; overflow: auto; padding: 26px 28px 24px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); font: 14px/1.55 var(--sans); }
.facts .hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.facts .k { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.facts h2 { margin: 8px 0 10px; font-size: 30px; color: var(--ink); }
.facts h2 em { color: var(--accent-paper); }
.facts .close { background: none; border: 1px solid rgba(23, 22, 27, .2); border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--ink-2); font: 12px var(--mono); min-height: 28px; }
.facts .scroll { overflow-x: auto; border: 1px solid rgba(23, 22, 27, .12); border-radius: 10px; margin-top: 14px; }
.facts table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13px; }
.facts th, .facts td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(23, 22, 27, .08); vertical-align: top; }
.facts th { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.facts code { font-size: 12px; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.facts a { color: var(--accent-paper); text-decoration: underline; }
.facts .fine { color: var(--ink-3); font-size: 12.5px; margin-top: 14px; }

/* ---- wow pack (fine pointers, motion allowed) ---- */
#hair { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--ac); z-index: 65; pointer-events: none; transition: width .1s linear; }
#aura { position: fixed; left: 0; top: 0; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(var(--accent-rgb), .13), transparent 62%); mix-blend-mode: screen; transition: opacity .5s; }
.tiltable { transform-style: preserve-3d; will-change: transform; }

/* reveal: CSS/IO path; GSAP takes over when present */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.gsap-on .reveal { transition: none; }
.gw { display: inline-block; }

/* ---- article pages (paper) ---- */
.article { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.article .eyebrow { margin-bottom: 18px; }
.article h1 { font-size: clamp(36px, 5vw, 56px); }
.article .summary { margin-top: 18px; font-size: 19px; color: var(--fg-2); line-height: 1.5; }
.article .byline { margin-top: 22px; padding-bottom: 28px; border-bottom: 1px solid var(--ln); font: 500 12.5px/1 var(--mono); color: var(--fg-mute); }
.article .body { margin-top: 36px; font-size: 18px; line-height: 1.7; }
.article .body p { margin: 0 0 22px; }
.article .body h2 { font-size: 32px; margin: 44px 0 14px; }
.article .body h3 { font-size: 20px; margin: 32px 0 10px; }
.article .body ul, .article .body ol { margin: 0 0 22px; padding-left: 22px; }
.article .body li { margin: 6px 0; }
.article .body pre { background: var(--night); color: var(--bone-2); border: 1px solid #22262f; border-radius: var(--r-sm); padding: 16px 18px; font-size: 13.5px; line-height: 1.6; overflow-x: auto; margin: 0 0 22px; }
.article .body code { font-size: .9em; background: var(--bg-2); border: 1px solid var(--ln); border-radius: 5px; padding: 1px 5px; }
.article .body pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.article .body table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15.5px; }
.article .body th, .article .body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ln); vertical-align: top; }
.article .body th { font-weight: 600; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-mute); }
.article .body blockquote { margin: 0 0 22px; padding: 4px 0 4px 18px; border-left: 3px solid var(--ac); color: var(--fg-2); font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.article .body hr { border: 0; border-top: 1px solid var(--ln); margin: 36px 0; }
.article .back { display: inline-flex; gap: 8px; align-items: center; min-height: 32px; font-weight: 600; font-size: 14px; color: var(--ac); margin-top: 40px; }
.article .body a { color: var(--ac); text-decoration: underline; text-decoration-color: rgba(var(--ac-rgb), .4); }
.paper .site-header, .site-header.paper { background: color-mix(in srgb, var(--paper) 80%, transparent); }
.site-header.paper .mark, .site-header.paper .nav { color: var(--ink); }
.site-header.paper .nav { color: var(--ink-2); }
.site-header.paper .nav a:hover { color: var(--ink); }
.site-header.paper .nav-cta { background: var(--ink); color: var(--paper); }
.site-header.paper .nav-cta:hover { background: #000; color: #fff; }

/* grid children default to min-width:auto, which lets nowrap content widen a track past the viewport */
.hero > *, .proof > *, .story > *, .oss > *, .card .body, .principles > *, .posts > *, .now > * { min-width: 0; }

@keyframes breathe { 50% { opacity: .45; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -32; } }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .nav { gap: 14px; font-size: 13.5px; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding-top: 72px; }
  .proof { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--ln); }
  .nav { display: none; }
}
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .stage { display: none; }
  .act { min-height: 0; padding: 34px 0; border-top: 1px dashed var(--ln); }
  .act:first-child { border-top: 0; }
  .act .scene-inline { display: block; }
  .card.wide { grid-template-columns: 1fr; }
  .card.wide .media { border-right: 0; border-bottom: 1px solid var(--ln); min-height: 0; aspect-ratio: 16 / 8.4; }
  .now { grid-template-columns: 1fr; gap: 28px; }
  .portrait { width: 200px; }
  .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero { padding-top: 56px; padding-bottom: 32px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 52px); }
  .hero .lede { font-size: 17px; }
  .proof { grid-template-columns: 1fr 1fr; margin-bottom: 56px; }
  .stat { padding: 18px 18px 16px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--ln); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--ln); }
  .stat .num { font-size: 32px; }
  section { padding: 72px 0; }
  .oss, .principles, .posts { grid-template-columns: 1fr; }
  .arc li { grid-template-columns: 1fr; gap: 2px; }
  .srow { grid-template-columns: 1fr; gap: 8px; }
  .hues { display: none; }
  .dock { gap: 8px; padding: 0 10px; height: 44px; font-size: 11.5px; }
  .dock .wm span { display: none; }
  .dock .stamp .long { display: none; }
  body { padding-bottom: 44px; }
  .term { min-height: 0; font-size: 12px; }
  .hire h2 { font-size: clamp(34px, 9.5vw, 48px); }
  .install { white-space: pre-wrap; word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .post, .video .play .disc, .hues button, .ttabs button { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .term .caret, .deck-bar .live::before { animation: none; }
  .scene .flow { animation: none; }
  .stage .scene { transition: none; }
  .term .out div { opacity: 1; transform: none; transition: none; }
  #aura, #hair { display: none; }
}
