/* =========================================================
   Rushabh Yeole · portfolio
   Dark, editorial, signal-lime. Archivo (variable width) for
   display, Instrument Serif for accents, JetBrains Mono for HUD.
   ========================================================= */

:root {
  --bg: #07080a;
  --bg-2: #0d0f12;
  --bg-3: #14171b;
  --ink: #eceae4;
  --ink-2: #a9aaa6;
  --ink-3: #6b6d6c;
  --line: rgba(236, 234, 228, 0.09);
  --line-2: rgba(236, 234, 228, 0.16);
  --accent: #c6ff3d;
  --accent-dim: rgba(198, 255, 61, 0.14);
  --accent-ink: #0b0d05;
  --alert: #ff5533;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* display type: slightly condensed from full width so headlines feel less shouty */
  --stretch: 110%;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
code { font-family: var(--f-mono); font-size: 0.86em; color: var(--ink); background: var(--line); padding: 0.1em 0.35em; border-radius: 4px; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.mono, .mono-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 16px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader { display: block; position: fixed; inset: 0; z-index: 200; background: var(--bg); clip-path: inset(0 0 0 0); }
.loader-timeout .loader { display: none !important; }
.loader__inner { position: absolute; inset: 0; padding: var(--gutter); display: flex; flex-direction: column; justify-content: space-between; }
.loader__log { font-family: var(--f-mono); font-size: clamp(11px, 1vw, 14px); color: var(--ink-2); padding-top: 64px; }
.loader__log p { opacity: 0; line-height: 2; }
.loader__log .k { color: var(--accent); margin-right: 8px; }
.loader__log .dim { color: var(--ink-3); }
.loader__log .ok { color: var(--accent); }
.loader__foot { display: flex; justify-content: space-between; align-items: flex-end; }
.loader__label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-3); padding-bottom: 1.6vw; }
.loader__num { font-weight: 900; font-stretch: var(--stretch); font-size: clamp(72px, 14vw, 220px); line-height: 0.78; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.loader__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- Ambient layers ---------- */
.webgl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
.guides { position: fixed; inset: 0 var(--gutter); z-index: 1; pointer-events: none; display: flex; justify-content: space-between; }
.guides i { width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(236, 234, 228, 0.035) 20%, rgba(236, 234, 228, 0.035) 80%, transparent); }
.grain {
  position: fixed; top: -10%; left: -10%; width: 120%; height: 120%; z-index: 150; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -4%); } 80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); }
}
main, .foot { position: relative; z-index: 2; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring, .cursor__label { position: fixed; left: 0; top: 0; z-index: 180; pointer-events: none; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.9); mix-blend-mode: difference;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background-color 0.3s, border-color 0.3s;
}
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: #fff; }
.cursor.is-down .cursor__ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor.has-label .cursor__ring { width: 0; height: 0; margin: 0; border-color: transparent; }
.cursor__label {
  font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink); height: 80px; width: 80px; border-radius: 50%;
  display: grid; place-items: center; margin: -40px 0 0 -40px; scale: 0; transition: scale 0.45s var(--ease);
}
.cursor.has-label .cursor__label { scale: 1; }

/* ---------- Nav + HUD ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); mix-blend-mode: difference; color: #fff;
}
.nav__logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; }
.nav__mark { font-family: var(--f-display); font-weight: 900; font-stretch: var(--stretch); font-size: 16px; letter-spacing: -0.02em; border: 1.5px solid currentColor; padding: 4px 7px 3px; border-radius: 7px; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }
.nav__cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; border: 1px solid currentColor; border-radius: 99px; padding: 8px 15px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #fff; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

.hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; display: flex; justify-content: space-between; align-items: flex-end;
  padding: 14px var(--gutter); font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0.7;
}
.hud__col { display: flex; flex-direction: column; gap: 4px; }
.hud__col--r { align-items: flex-end; }
.hud__tx { display: inline-flex; align-items: center; gap: 8px; }
.hud__meter { width: 72px; height: 2px; background: rgba(255, 255, 255, 0.25); position: relative; overflow: hidden; }
.hud__meter i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.hud b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Rolling link text */
[data-roll] .r { display: inline-block; overflow: hidden; vertical-align: top; position: relative; height: 1.25em; line-height: 1.25em; }
[data-roll] .r > span { display: block; transition: transform 0.55s var(--ease); transition-delay: calc(var(--i) * 18ms); }
[data-roll] .r > span:last-child { position: absolute; top: 100%; left: 0; }
a:hover [data-roll] .r > span, button:hover [data-roll] .r > span, [data-roll]:hover .r > span { transform: translateY(-100%); }

/* ---------- Shared ---------- */
section { position: relative; }
.label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.label span { color: var(--accent-ink); background: var(--accent); padding: 2px 7px; border-radius: 4px; font-weight: 500; }
.sh { font-weight: 850; font-stretch: var(--stretch); text-transform: uppercase; line-height: 0.9; letter-spacing: -0.03em; font-size: clamp(38px, 5.2vw, 92px); }
.ch, .w { display: inline-block; }
.w { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.6); animation: live 1.8s infinite; vertical-align: middle; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(198, 255, 61, 0); } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
  padding: 88px var(--gutter) 84px;
}
.hero__top { display: flex; justify-content: space-between; gap: 16px; }
.hero__eyebrow { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.hero__main { margin-top: auto; margin-bottom: 5vh; }
.hero__kicker { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 18px; }
.hero__name {
  font-weight: 900; font-stretch: 118%; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.035em;
  font-size: clamp(44px, 7.2vw, 132px); user-select: none;
}
.hero__line { display: block; overflow: hidden; padding: 0.04em 0 0.02em; white-space: nowrap; }
.hero__line .ch { will-change: transform; }
.hero__bottom { display: grid; grid-template-columns: 1.3fr 1.2fr auto; gap: 24px; align-items: end; border-top: 1px solid var(--line-2); padding-top: 22px; }
.hero__tag { font-size: clamp(17px, 1.5vw, 24px); line-height: 1.18; font-weight: 500; font-stretch: 100%; letter-spacing: -0.01em; }
.hero__tag em { color: var(--accent); font-size: 1.12em; display: inline-block; min-width: 4.2ch; }
.hero__tag .u { background: linear-gradient(var(--accent), var(--accent)) left 92% / 100% 2px no-repeat; }
.hero__stats { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats b { font-weight: 800; font-stretch: var(--stretch); font-size: clamp(17px, 1.5vw, 24px); letter-spacing: -0.02em; line-height: 1; }
.hero__stats span { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: var(--ink-3); }
.hero__scroll { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: var(--ink-2); }
.hero__scroll-line { width: 1px; height: 40px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { 0% { top: -40%; } 100% { top: 100%; } }
@media (min-width: 900px) {
  .hero__name { display: flex; gap: 0.28em; }
}

/* ---------- Profile ---------- */
.about { padding: 20vh var(--gutter) 14vh; }
.manifesto {
  margin-top: 36px; max-width: 1200px; font-size: clamp(24px, 3vw, 48px); line-height: 1.12; font-weight: 600; font-stretch: 96%;
  letter-spacing: -0.02em;
}
.manifesto em { color: var(--ink); font-size: 1.06em; letter-spacing: -0.01em; }
.manifesto b { color: var(--accent); font-weight: 700; }
.js .manifesto .wd { opacity: 0.13; }
.about__meta { margin-top: 10vh; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.about__meta > div { padding: 22px 22px 0 0; }
.about__meta dt { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.about__meta dd { font-size: 17px; font-weight: 600; line-height: 1.3; }
.about__meta dd span { font-size: 13px; color: var(--ink-2); font-weight: 400; }
.about__link { border-bottom: 1px solid var(--line-2); transition: color 0.3s, border-color 0.3s; }
.about__link:hover { color: var(--accent); border-color: var(--accent); }
.about__link i { display: inline-block; font-style: normal; font-weight: 400; color: var(--accent); transition: transform 0.4s var(--ease); }
.about__link:hover i { transform: translate(3px, -3px); }

/* ---------- Pods ---------- */
.pods__pin {
  height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5vw;
  padding: 80px var(--gutter);
}
.pods__title { font-weight: 900; font-stretch: var(--stretch); text-transform: uppercase; font-size: clamp(38px, 4.8vw, 84px); line-height: 0.9; letter-spacing: -0.035em; margin: 24px 0 32px; }
.pods__title .arrow { color: var(--accent); font-stretch: 62%; font-weight: 300; }
.pods__steps { position: relative; min-height: 8.6em; font-size: clamp(16px, 1.3vw, 21px); line-height: 1.38; max-width: 32ch; color: var(--ink-2); }
.pods__step { position: absolute; inset: 0 auto auto 0; }
.pods__step b { color: var(--ink); font-weight: 650; }
.pods__step b.hl { color: var(--accent); }
.js .pods__step:not(.is-first) { opacity: 0; visibility: hidden; }
.pods__viz { justify-self: center; width: min(36vw, 54vh); }
.pods__readout { display: flex; justify-content: space-between; margin-bottom: 18px; }
.pods__readout > div { display: flex; flex-direction: column; gap: 4px; }
.pods__readout > div:last-child { align-items: flex-end; }
.pods__readout b { font-weight: 900; font-stretch: var(--stretch); font-size: clamp(30px, 3.4vw, 56px); line-height: 0.9; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.pods__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(4px, 0.55vw, 8px); aspect-ratio: 1; transform-origin: center; }
.pods__grid i { display: block; border-radius: 4px; background: var(--bg-3); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.pods__grid i::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 18%; height: 14%; background: var(--ink-3); border-radius: 2px; opacity: 0.5; }
.pods__grid i.is-live { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 28px rgba(198, 255, 61, 0.45); }
.pods__bar { margin-top: 20px; height: 5px; background: var(--line); border-radius: 6px; overflow: hidden; }
.pods__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #e6ff9a); transform-origin: left; border-radius: 6px; }
.pods__runtime { margin-top: 12px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-2); }

.odo { display: inline-flex; font-variant-numeric: tabular-nums; }
.odo__d { display: inline-block; height: 1em; overflow: hidden; position: relative; }
.odo__col { display: flex; flex-direction: column; }
.odo__col span { display: block; height: 1em; line-height: 1em; }

/* ---------- Case studies (horizontal) ---------- */
.work__pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; position: relative; }
.work__track { display: flex; align-items: stretch; gap: 2.4vw; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.panel {
  flex: 0 0 auto; width: min(82vw, 1240px); height: min(76vh, 740px); display: grid; grid-template-columns: 5fr 7fr; gap: 2.6vw;
  border: 1px solid var(--line-2); border-radius: 20px; background: rgba(12, 14, 17, 0.94); padding: clamp(20px, 2.2vw, 34px);
  position: relative; overflow: hidden;
}
.panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 0% 0%, rgba(198, 255, 61, 0.05), transparent 70%); }
.panel__info { display: flex; flex-direction: column; min-width: 0; }
.panel__meta { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-3); }
.panel__idx { color: var(--accent-ink); background: var(--accent); padding: 2px 7px; border-radius: 4px; }
.panel__title { margin-top: 18px; font-weight: 850; font-stretch: 106%; font-size: clamp(28px, 2.6vw, 46px); line-height: 1; letter-spacing: -0.03em; }
.panel__pitch { margin-top: 14px; font-size: clamp(14px, 1.05vw, 16.5px); line-height: 1.45; color: var(--ink-2); max-width: 44ch; }
.panel__stat {
  margin-top: auto; padding-top: 16px; display: flex; align-items: flex-start; color: var(--accent);
  font-weight: 900; font-stretch: var(--stretch); font-size: clamp(44px, 4.2vw, 76px); line-height: 1; letter-spacing: -0.045em;
}
.panel__sign { margin-right: 0.02em; }
.panel__unit { font-size: 0.5em; margin-top: 0.08em; margin-left: 0.04em; }
.panel__stat em {
  align-self: flex-end; margin: 0 0 0.3em 14px; font-family: var(--f-mono); font-style: normal; font-size: 11px; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ink-2); max-width: 18ch; line-height: 1.35;
}
.panel__specs { margin-top: 12px; display: grid; }
.panel__specs li { display: grid; grid-template-columns: 4.6em 1fr; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.panel__specs b { font-weight: 800; font-stretch: 106%; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.panel__specs span { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.panel__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.panel__tags span { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 9px; }
.panel__link { margin-top: 14px; font-family: var(--f-mono); font-size: 11px; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; width: fit-content; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.panel__link:hover { color: var(--accent); border-color: var(--accent); }
.panel__link span { transition: transform 0.4s var(--ease); }
.panel__link:hover span { transform: translate(3px, -3px); }

.panel__viz { position: relative; border-radius: 14px; overflow: hidden; background: #050607; border: 1px solid var(--line); min-height: 0; }
.panel__media { position: absolute; top: 0; bottom: 0; left: -8%; right: -8%; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.viz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel__viz--light { background: linear-gradient(135deg, #2b3a8c, #3b2a73 60%, #23214f); }
.panel__media--contain { left: -4%; right: -4%; display: grid; place-items: center; padding: 9% 12% 13%; }
.panel__media--contain img { width: 100%; height: auto; object-fit: contain; border-radius: 1.6% / 2.2%; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }

.panel--intro { width: min(40vw, 620px); grid-template-columns: 1fr; background: transparent; border-color: transparent; align-content: space-between; }
.panel--intro::before { display: none; }
.work__big { font-weight: 900; font-stretch: var(--stretch); text-transform: uppercase; font-size: clamp(48px, 5.8vw, 108px); line-height: 0.88; letter-spacing: -0.04em; }
.work__big em { text-transform: none; color: var(--accent); font-size: 1.05em; }
.work__hint { color: var(--ink-2); max-width: 34ch; font-size: 15px; }
.work__hint .mono { display: block; margin-top: 10px; }
.panel--outro { width: min(30vw, 460px); grid-template-columns: 1fr; align-content: center; justify-items: start; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.panel--outro::before { display: none; }
.panel--outro .mono { color: var(--accent-ink); opacity: 0.6; }
.panel--outro h3 { font-weight: 900; font-stretch: var(--stretch); text-transform: uppercase; font-size: clamp(32px, 3.2vw, 58px); line-height: 0.92; letter-spacing: -0.035em; margin-top: 14px; }
.panel--outro em { text-transform: none; }

.work__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; display: flex; align-items: center; gap: 16px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); max-width: 420px; margin: 0 auto; }
.work__bar { flex: 1; height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.work__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* FinOps live card */
.finops-live {
  position: absolute; right: 5%; bottom: 6%; width: min(340px, 62%); padding: 12px 12px 8px; border-radius: 12px;
  background: rgba(8, 9, 11, 0.9); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.7);
}
.finops-live__head { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: var(--ink-2); }
.finops-live__val { margin-left: auto; color: var(--ink); }
.finops-live canvas { width: 100%; height: 88px; margin-top: 10px; }
.finops-live__alert {
  position: absolute; left: 12px; right: 12px; top: -16px; transform: translateY(-100%) scale(0.96); opacity: 0;
  font-size: 12.5px; background: var(--alert); color: #160400; border-radius: 9px; padding: 8px 11px; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.finops-live__alert b { font-weight: 800; margin-right: 6px; }
.finops-live.is-alert .finops-live__alert { opacity: 1; transform: translateY(-100%) scale(1); }

/* SpaceSaver scanline */
.scanline { position: absolute; left: 12%; right: 12%; top: 9%; height: 2px; background: #fff; box-shadow: 0 0 18px 4px rgba(150, 170, 255, 0.85); opacity: 0.9; border-radius: 2px; animation: scan 3.6s var(--ease-io) infinite; }
@keyframes scan { 0% { top: 9%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 84%; opacity: 0; } }
.scan-readout { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: #fff; background: rgba(10, 10, 30, 0.6); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 99px; padding: 6px 14px; }
.scan-readout .mono { color: rgba(255, 255, 255, 0.6); font-size: 10px; }
.scan-readout b { font-variant-numeric: tabular-nums; }

/* Slack bot (day-job card) */
.bot { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; background: radial-gradient(70% 60% at 50% 30%, rgba(198, 255, 61, 0.06), transparent 70%); }
.bot__win { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: #0b0d10; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.bot__bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 12px; }
.bot__feed { padding: 12px; display: grid; gap: 10px; min-height: 318px; align-content: start; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.booted .msg { opacity: 0; }
.av { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 800; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ink-2); }
.av--bot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.msg b { font-size: 12.5px; font-weight: 700; }
.msg p { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.45; }
.bot__code { margin: 6px 0 0; padding: 10px 12px; background: #050607; border: 1px solid var(--line); border-radius: 8px; font-family: var(--f-mono); font-size: 10.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; min-height: 10.8em; }
.bot__code .kw { color: var(--accent); }
.msg p.bot__mr { color: var(--accent); }
.dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-2); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { opacity: 0.2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.bot__note { position: absolute; right: 18px; bottom: 6px; font-size: 9px; }
.msg { grid-template-columns: 26px 1fr; gap: 8px; }
.av { width: 26px; height: 26px; border-radius: 7px; font-size: 9px; }
.msg b { font-size: 11.5px; }
.msg p { font-size: 12px; }
.bot__code { font-size: 10px; padding: 8px 10px; min-height: 9.6em; }

/* ---------- Lab: featured build ---------- */
.feature { padding: 16vh var(--gutter) 6vh; }
.feature__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.feature__head .sh { font-size: clamp(56px, 8vw, 150px); }
.feature__sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.6vw, 42px); color: var(--accent); line-height: 1; margin-top: -0.2em; }
.feature__grid { margin-top: 48px; display: grid; grid-template-columns: 4fr 8fr; gap: 3.2vw; align-items: start; }
.feature__lede { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.feature__specs { margin-top: 26px; }
.feature__specs li { display: grid; grid-template-columns: 5em 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.feature__specs b { white-space: nowrap; font-weight: 850; font-stretch: var(--stretch); font-size: 20px; color: var(--accent); letter-spacing: -0.02em; }
.feature__specs span { font-size: 13.5px; color: var(--ink-2); }
.feature__road { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-3); }
.feature__road li { display: flex; align-items: center; gap: 12px; }
.feature__road li span { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none; }
.feature__road li.is-done { color: var(--ink); }
.feature__road li.is-done span { background: var(--accent); border-color: var(--accent); }
.feature__road li.is-doing { color: var(--ink); }
.feature__road li.is-doing span { border-color: var(--accent); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
.feature__road em { font-family: var(--f-mono); font-style: normal; font-size: 10px; text-transform: uppercase; color: var(--accent); margin-left: auto; }
.feature__stack { margin-top: 28px; }
.feature__links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.feature__link { margin-top: 0; font-size: 12px; }
.mg { border: 1px solid var(--line-2); border-radius: 18px; background: rgba(8, 9, 11, 0.92); overflow: hidden; }
.mg__canvas { position: relative; aspect-ratio: 16 / 9.4; }
.mg__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.mg__bar button { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 11px; display: inline-flex; gap: 7px; align-items: center; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.mg__bar button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mg__bar button:hover { border-color: var(--ink-2); }
.mg__bar button[aria-pressed="true"] { color: var(--alert); border-color: rgba(255, 85, 51, 0.5); text-decoration: line-through; }
.mg__bar button[aria-pressed="true"]::before { background: var(--alert); }
.mg__stat { margin-left: auto; color: var(--ink-2); }
.mg__note { padding: 0 14px 12px; font-size: 9.5px; text-transform: none; }

/* ---------- Day job cards ---------- */
.dayjob { padding: 4vh var(--gutter) 12vh; }
.dayjob__head { margin-bottom: 20px; }
.dayjob__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dj { border: 1px solid var(--line-2); border-radius: 16px; background: rgba(12, 14, 17, 0.94); overflow: hidden; display: flex; flex-direction: column; }
.dj__viz { position: relative; height: 410px; background: #050607; border-bottom: 1px solid var(--line); }
.dj__body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.dj__stat { font-weight: 900; font-stretch: var(--stretch); font-size: 34px; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.dj h3 { font-weight: 800; font-stretch: 106%; font-size: 19px; letter-spacing: -0.02em; margin-top: 4px; }
.dj p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- Experience ---------- */
.xp { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; padding: 16vh var(--gutter) 12vh; }
.xp__side { position: sticky; top: 14vh; align-self: start; }
.xp__side .sh { margin-top: 24px; }
.xp__note { margin-top: 24px; max-width: 30ch; color: var(--ink-2); font-size: 16px; }
.xp__list { position: relative; padding-left: 36px; }
.xp__rail { position: absolute; left: 0; top: 8px; bottom: 0; width: 1px; background: var(--line); }
.xp__rail i { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--accent), rgba(198, 255, 61, 0.2)); transform-origin: top; transform: scaleY(0); }
.job { padding-bottom: 64px; position: relative; }
.job::before { content: ""; position: absolute; left: -41px; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.job__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.job__co { font-weight: 850; font-stretch: 106%; font-size: clamp(26px, 2.5vw, 42px); line-height: 1; letter-spacing: -0.03em; }
.job__role { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.job__date { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.job__sum { margin-top: 20px; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.job__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.job__more { display: inline-block; margin-top: 22px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.job__items li { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding: 18px 0; border-bottom: 1px dashed var(--line-2); }
.job__items b { font-size: 16.5px; font-weight: 650; }
.job__items p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; max-width: 56ch; }
.pill { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; white-space: nowrap; color: var(--ink); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 11px; }
.pill--hot { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.job--edu { padding-bottom: 0; }

/* ---------- Side projects ---------- */
.archive { padding: 12vh var(--gutter) 10vh; }
.archive__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.archive__note { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2vw, 32px); color: var(--ink-2); }
.archive__list { margin-top: 28px; border-bottom: 1px solid var(--line-2); }
.archive__row {
  position: relative; display: grid; grid-template-columns: 48px 1fr 2fr 1fr; gap: 24px; align-items: baseline;
  padding: 22px 12px; border-top: 1px solid var(--line-2); overflow: hidden; isolation: isolate; transition: color 0.4s var(--ease);
}
.archive__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: var(--origin, bottom); transition: transform 0.55s var(--ease); }
.archive__row:hover { color: var(--accent-ink); }
.archive__row:hover::before { transform: scaleY(1); }
.archive__row:hover span, .archive__row:hover em, .archive__row:hover code { color: var(--accent-ink); }
.archive__n { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.archive__row b { font-weight: 800; font-stretch: 106%; font-size: clamp(19px, 1.7vw, 27px); letter-spacing: -0.02em; line-height: 1.05; }
.archive__row b i { font-style: normal; font-weight: 400; font-size: 0.7em; color: var(--ink-3); margin-left: 4px; }
.archive__row:hover b i { color: var(--accent-ink); }
.archive__row > span:not(.archive__n) { color: var(--ink-2); font-size: 14.5px; }
.archive__row em { font-family: var(--f-mono); font-style: normal; font-size: 11px; text-transform: uppercase; color: var(--ink-2); text-align: right; }
.archive__a { position: absolute; inset: 0; z-index: 2; }

/* ---------- Lab ---------- */
.lab { padding: 14vh var(--gutter) 10vh; }
.lab__head { display: grid; grid-template-columns: 1fr minmax(300px, 480px); gap: 4vw; align-items: end; }
.lab__head .label { grid-column: 1 / -1; }
.lab__intro { margin: 48px 0 36px; max-width: 58ch; color: var(--ink-2); font-size: 17px; }
.term { border: 1px solid var(--line-2); border-radius: 12px; background: rgba(8, 9, 11, 0.9); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.term__bar span { margin-left: 8px; }
.term__body { margin: 0; padding: 14px; min-height: 186px; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; }
.term__body .c-acc { color: var(--accent); }
.term__body .c-dim { color: var(--ink-3); }
.term__body .caret { display: inline-block; width: 0.6em; height: 1.1em; background: var(--accent); vertical-align: -0.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.lab__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; perspective: 1200px; }
.lab__card {
  --mx: -500px; --my: -500px;
  position: relative; border-radius: 16px; padding: 22px; background: rgba(13, 15, 18, 0.92); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; min-height: 320px; overflow: hidden; isolation: isolate;
}
.lab__card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(198, 255, 61, 0.09), transparent 45%); }
.lab__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(198, 255, 61, 0.85), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.lab__card header { display: flex; justify-content: space-between; align-items: center; }
.status { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; border: 1px dashed var(--line-2); color: var(--ink-2); border-radius: 99px; padding: 3px 9px; }
.lab__card h3 { font-weight: 800; font-stretch: 106%; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.05; letter-spacing: -0.02em; margin-top: 14px; }
.lab__card p { color: var(--ink-2); font-size: 14px; }
.lab__card ul { margin-top: auto; display: grid; }
.lab__card li { display: grid; grid-template-columns: 66px 1fr; gap: 10px; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); }
.lab__card li span { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; color: var(--accent); padding-top: 2px; }
.lab__card footer { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: var(--ink-3); }
.lab__card--open { border-style: dashed; border-color: var(--line-2); background: transparent; }
.lab__card--open footer { margin-top: auto; color: var(--accent); }

/* ---------- Stack marquee ---------- */
.stack { padding: 6vh 0 12vh; overflow: hidden; }
.marquee { overflow: hidden; padding: 4px 0; }
.marquee__track { display: flex; width: max-content; align-items: center; will-change: transform; }
.marquee__track span { font-weight: 900; font-stretch: var(--stretch); text-transform: uppercase; font-size: clamp(34px, 4.8vw, 84px); line-height: 1.08; letter-spacing: -0.035em; padding: 0 0.22em; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--accent); font-size: clamp(24px, 2.6vw, 46px); }
.marquee--alt .marquee__track span { color: transparent; -webkit-text-stroke: 1px var(--ink-2); font-stretch: 100%; }

/* ---------- Contact ---------- */
.contact { padding: 16vh var(--gutter) 14vh; min-height: 100vh; display: flex; flex-direction: column; }
.contact__title { margin: 4vh 0 7vh; font-weight: 900; font-stretch: var(--stretch); text-transform: uppercase; font-size: clamp(38px, 6vw, 112px); line-height: 0.88; letter-spacing: -0.04em; }
.contact__line { display: block; white-space: nowrap; }
.contact__title em { text-transform: none; color: var(--accent); font-size: 1.08em; letter-spacing: -0.02em; }
.contact__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3vw; align-items: start; margin-top: auto; }
.contact__side { display: grid; gap: 28px; }
.mail { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.mail__text { font-weight: 700; font-stretch: 102%; font-size: clamp(18px, 1.9vw, 30px); letter-spacing: -0.02em; border-bottom: 2px solid var(--accent); line-height: 1.15; padding-bottom: 4px; }

/* contact form → FormSubmit → inbox */
.cform { border: 1px solid var(--line-2); border-radius: 12px; background: rgba(8, 9, 11, 0.92); overflow: hidden; }
.cform__body { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; }
.cform__field { display: grid; gap: 6px; }
.cform__field--full { grid-column: 1 / -1; }
.cform__field > span { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: var(--ink-3); }
.cform input, .cform textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: rgba(236, 234, 228, 0.03); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 11px 12px; outline: none; resize: vertical; transition: border-color 0.3s, background 0.3s;
}
.cform textarea { min-height: 120px; }
.cform input:focus, .cform textarea:focus { border-color: var(--accent); background: rgba(198, 255, 61, 0.04); }
.cform input[aria-invalid="true"], .cform textarea[aria-invalid="true"] { border-color: var(--alert); }
.cform ::placeholder { color: var(--ink-3); }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cform__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.cform__send[disabled] { opacity: 0.55; pointer-events: none; }
.cform__status { font-size: 11px; text-transform: none; color: var(--ink-2); }
.cform__status[data-state="ok"] { color: var(--accent); }
.cform__status[data-state="err"] { color: var(--alert); }
.has-cursor input, .has-cursor textarea { cursor: text; }
.mail__hint { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-3); }
.mail.is-copied .mail__hint { color: var(--accent); }
.contact__btns { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; padding: 14px 22px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.ping { border: 1px solid var(--line-2); border-radius: 12px; background: rgba(8, 9, 11, 0.9); overflow: hidden; }
.ping__out { margin: 0; padding: 14px; min-height: 160px; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.ping__out .c-acc { color: var(--accent); }
.ping__btn { margin: 0 14px 14px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; border: 1px solid var(--accent); color: var(--accent); border-radius: 99px; padding: 9px 15px; display: inline-flex; gap: 10px; transition: background 0.3s, color 0.3s; }
.ping__btn:hover { background: var(--accent); color: var(--accent-ink); }
.ping__btn[disabled] { opacity: 0.5; }

/* ---------- Footer ---------- */
.foot { padding: 30px var(--gutter) 56px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 24px; background: var(--bg); }
.foot__links { display: flex; flex-wrap: wrap; gap: 26px; font-weight: 800; font-stretch: var(--stretch); font-size: clamp(18px, 1.8vw, 28px); text-transform: uppercase; letter-spacing: -0.02em; }
.foot__links a:hover { color: var(--accent); }
.foot__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-3); }
.foot__top:hover { color: var(--accent); }

/* ---------- Reveal defaults (JS adds motion) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.reduced [data-reveal], .no-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
[data-split] .w { overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-todo] { display: none; }
.no-motion .pods__steps { min-height: 0; display: grid; gap: 12px; }
.no-motion .pods__step { position: static; opacity: 1 !important; visibility: visible !important; }
.no-motion .pods__pin { height: auto; }
.no-motion .msg { opacity: 1; }
/* if the scripts never arrived, show everything after the loader safety timeout */
.loader-timeout:not(.booted) [data-reveal] { opacity: 1; transform: none; }
.loader-timeout:not(.booted) .pods__steps { min-height: 0; display: grid; gap: 12px; }
.loader-timeout:not(.booted) .pods__step { position: static; opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lab__grid { grid-template-columns: repeat(2, 1fr); }
  .dayjob__grid { grid-template-columns: 1fr 1fr; }
  .feature__grid { grid-template-columns: 1fr; }
  .hero__bottom { grid-template-columns: 1fr 1fr; }
  .hero__scroll { display: none; }
}

@media (max-width: 899px) {
  .nav__links { display: none; }
  .nav__name { display: none; }
  .hud { display: none; }
  .hero { padding-top: 80px; padding-bottom: 56px; }
  .hero__top .hero__eyebrow--r { display: none; }
  .hero__kicker { font-size: 11px; margin-bottom: 12px; }
  .hero__main { margin-bottom: 4vh; }
  .hero__bottom { grid-template-columns: 1fr; gap: 24px; }
  .about { padding-top: 12vh; }
  .about__meta { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .pods__pin { grid-template-columns: 1fr; align-content: center; gap: 24px; padding: 72px var(--gutter) 56px; }
  .pods__title { margin: 14px 0 14px; }
  .pods__steps { min-height: 7.4em; font-size: 16px; }
  .pods__viz { width: min(84vw, 44vh); }
  .pods__readout b { font-size: 34px; }
  .xp { grid-template-columns: 1fr; gap: 40px; }
  .xp__side { position: static; }
  .job__head { flex-direction: column; gap: 6px; }
  .job__items li { grid-template-columns: 1fr; gap: 10px; }
  .pill { width: fit-content; }
  .work__pin { height: auto; overflow: visible; display: block; padding: 10vh 0 4vh; }
  .work__track { flex-direction: column; width: auto; gap: 18px; }
  .panel, .panel--intro, .panel--outro { width: auto; height: auto; grid-template-columns: 1fr; }
  .panel__viz { aspect-ratio: 4 / 3.4; }
  .panel--outro { display: none; }
  .panel__stat { margin-top: 18px; }
  .work__progress { display: none; }
  .archive__head { flex-direction: column; align-items: flex-start; }
  .archive__row { grid-template-columns: 30px 1fr; gap: 8px 12px; }
  .archive__row > span:not(.archive__n), .archive__row em { grid-column: 2; text-align: left; }
  .lab__head { grid-template-columns: 1fr; }
  .lab__grid { grid-template-columns: 1fr; }
  .lab__card { min-height: 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .cform__body { grid-template-columns: 1fr; }
  .contact__line { white-space: normal; }
  .finops-live { width: 78%; right: 4%; bottom: 4%; }
  .dayjob__grid { grid-template-columns: 1fr; }
  .mg__canvas { aspect-ratio: 4 / 3.6; }
  .mg__stat { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .hero__stats { gap: 16px; }
  .about__meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scanline, .hero__scroll-line::after, .pulse::after, .live-dot, .dots i { animation: none !important; }
  .js .manifesto .wd { opacity: 1; }
  .js .pods__step:not(.is-first) { opacity: 1; visibility: visible; position: static; }
  .pods__steps { min-height: 0; display: grid; gap: 12px; }
  .pods__step { position: static; }
}
