/* =========================================================
   Helix — portfolio for Jezu Mario Palackal Stanley
   Embedded systems · photoreal DNA hero · phosphor scope
   ---------------------------------------------------------
   One solid background colour for the whole page. The only
   texture is light: the WebGL helix in the hero and the
   oscilloscope traces behind everything after it.
   ========================================================= */

/* ---------- fonts (self-hosted, latin subset, OFL — see fonts/NOTICE.txt) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-var-v22-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/inter-var-v20-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-var-v24-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-v5-latin.woff2') format('woff2');
}

:root {
  --bg:          #05070b;
  --bg-hero:     #04060a;
  --ink:         #eef2f7;
  --ink-dim:     #9aa6b6;
  --ink-faint:   #7a8799;          /* 5.5:1 on --bg, so small mono labels pass AA */

  --amber:       #f2a93b;
  --amber-soft:  #ffc978;
  --cyan:        #6ee7f9;
  --cyan-deep:   #3d93c9;
  --green:       #7ee2a8;

  --line:        rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .15);
  --glass:       rgba(11, 15, 22, .58);
  --glass-hi:    rgba(255, 255, 255, .035);

  --maxw: 1200px;
  --gut:  clamp(20px, 5vw, 64px);
  --nav-h: 72px;

  --display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif:   'Instrument Serif', 'Times New Roman', Georgia, serif;

  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); scroll-padding-top: var(--nav-h); scrollbar-gutter: stable; }
html.con-open { overflow: hidden; }
body, h1, h2, h3, p, ul, ol, li, dl, dt, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
strong { font-weight: 500; color: var(--ink); }
kbd {
  font-family: var(--mono); font-size: .92em; color: var(--ink-dim);
  padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, .5vw + 13.4px, 17px);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: #10130a; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: #10130a; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- oscilloscope layer ---------- */
.scope {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
main, .foot { position: relative; z-index: 1; }

/* scope readout: lives in the left margin, only where the margin is wide enough */
.hud {
  position: fixed; left: 18px; bottom: 18px; z-index: 2;
  width: min(176px, calc(50vw - var(--maxw) / 2 + var(--gut) - 48px));
  display: none; pointer-events: none;
  font-family: var(--mono); font-size: 9.5px; line-height: 1.6; letter-spacing: .06em;
  color: var(--ink-faint);
  opacity: 0; transition: opacity .8s var(--ease);
}
@media (min-width: 1440px) and (hover: hover) { .hud { display: block; } }
.hud.is-on { opacity: 1; }
.hud__row { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 10px; white-space: nowrap; }
.hud__row + .hud__row { margin-top: 1px; }
.hud__run { color: var(--green); }
.hud__run::before {
  content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 6px; vertical-align: 1px;
  background: var(--green); box-shadow: 0 0 6px rgba(126, 226, 168, .9);
}
.hud__c1 { color: rgba(110, 231, 249, .85); }
.hud__c2 { color: rgba(245, 184, 65, .9); }
.hud__dec {
  margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line);
  color: var(--ink); letter-spacing: .08em; white-space: pre; overflow: hidden;
}
.hud__dec b { font-weight: 400; color: var(--amber); }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow__num { color: var(--amber); }
.eyebrow__num::after {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--line-strong); vertical-align: middle; margin-left: 12px;
}
.sep { color: var(--line-strong); }

.sec-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.8vw, 62px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 400;
  margin-top: 22px;
}
.sec-title--xl { font-size: clamp(36px, 6vw, 84px); line-height: 1; }

/* serif italic accent inside grotesk headlines */
.sec-title em, .hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--amber);
}
.sec-title em { font-size: 1.06em; }

.sec-sub {
  margin-top: 22px; max-width: 52ch;
  color: var(--ink-dim); font-size: clamp(15px, 1.1vw, 17.5px);
}

.sec-head { margin-bottom: clamp(48px, 6.5vw, 84px); }

/* keep body copy legible over the traces: a halo in the page colour */
.section p, .section li, .section h3, .section dt, .section dd {
  text-shadow: 0 0 2px var(--bg), 0 0 14px var(--bg), 0 0 28px var(--bg);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: -.005em;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); }
.btn__meta {
  font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .12em;
  color: var(--ink-faint); padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 5px;
}

.btn--pill {
  background: var(--amber); color: #14100a;
  padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(242, 169, 59, 0);
}
.btn--pill:hover {
  background: var(--amber-soft); transform: translateY(-1px);
  box-shadow: 0 8px 30px -8px rgba(242, 169, 59, .55);
}
.btn--pill:hover svg { transform: translateX(3px); }

.btn--lg { padding: 15px 28px; font-size: 15px; }

.btn--ghost {
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink);
  background: rgba(5, 7, 11, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--ink-dim); background: rgba(255,255,255,.05); transform: translateY(-1px); }
.btn--ghost:hover .btn__meta { color: var(--amber); border-color: rgba(242, 169, 59, .45); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink-dim);
  background: rgba(5, 7, 11, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--amber); border-color: rgba(242, 169, 59, .5); transform: translateY(-1px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5, 7, 11, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: 16px var(--gut);
  display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark { width: 24px; height: 24px; color: var(--amber); flex: none; transition: transform .6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(180deg); }
.brand__text {
  font-family: var(--display);
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15;
  display: flex; flex-direction: column;
}
.brand__sub {
  font-family: var(--mono); font-size: 9.5px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 13.5px; color: var(--ink-dim);
  transition: color .25s var(--ease);
  position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__console {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; margin-right: -14px;
  border: 1px solid var(--line-strong); color: var(--ink-dim);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.js .nav__console { display: inline-flex; }
.nav__console svg { width: 19px; height: 19px; }
.nav__console:hover { color: var(--amber); border-color: rgba(242, 169, 59, .5); background: rgba(242, 169, 59, .06); }

.nav__toggle { display: none; width: 34px; height: 34px; flex-direction: column; justify-content: center; gap: 6px; }
.nav__toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column;
  padding: 6px var(--gut) 22px;
  background: rgba(5, 7, 11, .96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a, .nav__mobile button {
  padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-dim); font-size: 15px; text-align: left;
}
.nav__mobile button { display: none; justify-content: space-between; font-family: var(--sans); font-weight: 300; }
.js .nav__mobile button { display: flex; }
.nav__mobile button span { font-family: var(--mono); color: var(--amber); }
.nav__mobile > :last-child { border-bottom: 0; }

/* =========================================================
   HERO — tall scroll container + sticky viewport
   ========================================================= */
.hero { position: relative; z-index: 2; height: 205vh; background: var(--bg-hero); }

.hero__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center;
  background: var(--bg-hero);
}

.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.hero__canvas.is-ready { opacity: 1; }

/* readability veil on the text side + a clean hand-off into the page */
.hero__veil {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 6, 10, .86) 0%, rgba(4, 6, 10, .5) 36%, rgba(4, 6, 10, 0) 64%),
    linear-gradient(180deg, rgba(4, 6, 10, .55) 0%, rgba(4, 6, 10, 0) 22%, rgba(4, 6, 10, 0) 74%, var(--bg) 100%);
}

.hero__content { position: relative; z-index: 3; width: 100%; will-change: transform, opacity; }

.hero__eyebrow { color: var(--ink-dim); gap: 6px 10px; flex-wrap: wrap; }
.hero__eyebrow > span:nth-child(2) { color: var(--ink); }
.led {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex: none;
  box-shadow: 0 0 6px 1px rgba(110, 231, 249, .8), 0 0 18px 2px rgba(110, 231, 249, .35);
  animation: heartbeat 1.6s var(--ease) infinite;
}
@keyframes heartbeat {
  0%, 100% { opacity: .35; transform: scale(.85); }
  12%      { opacity: 1;   transform: scale(1.15); }
  24%      { opacity: .55; transform: scale(.95); }
  36%      { opacity: 1;   transform: scale(1.1); }
  60%      { opacity: .4;  transform: scale(.9); }
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(44px, 7.6vw, 112px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 400;
  margin-top: 28px;
  max-width: 12ch;
}
.hero__title em { font-size: 1.08em; letter-spacing: -.015em; }

.hero__lede {
  margin-top: 30px;
  max-width: 50ch;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.12vw, 17.5px);
  line-height: 1.65;
}

.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__social { display: inline-flex; gap: 10px; }

.hero__stack {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-faint);
}
.hero__stack li { padding: 0 14px; border-left: 1px solid var(--line-strong); line-height: 1; }
.hero__stack li:first-child { padding-left: 0; border-left: 0; }

.hero__fig {
  position: absolute; right: var(--gut); bottom: 34px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); text-align: right;
}
.hero__fig-t { color: var(--ink-dim); letter-spacing: .06em; text-transform: none; font-family: var(--display); font-size: 13px; }
.hero__fig-legend { display: flex; align-items: center; gap: 8px; }

.sw { display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; }
.sw--c { background: var(--cyan); box-shadow: 0 0 8px rgba(110, 231, 249, .7); }
.sw--a { background: var(--amber); box-shadow: 0 0 8px rgba(242, 169, 59, .7); margin-left: 8px; }

.hero__cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__cue i { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, var(--line-strong), transparent); position: relative; overflow: hidden; }
.hero__cue i::after {
  content: ''; position: absolute; inset-inline: 0; top: -50%; height: 50%;
  background: linear-gradient(180deg, transparent, var(--amber));
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { top: -50%; opacity: 0; } 30% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* =========================================================
   SECTIONS — transparent, so the solid page colour and the
   scope traces are the only background
   ========================================================= */
.section {
  position: relative;
  padding: clamp(96px, 13vw, 168px) 0;
}
.section + .section::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--maxw), 100%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* ---------- glass surfaces (desktop gets real backdrop blur) ---------- */
.glass, .readout {
  background: linear-gradient(180deg, var(--glass-hi), rgba(255, 255, 255, 0) 60%), var(--glass);
  border: 1px solid var(--line);
}
@media (hover: hover) and (min-width: 900px) {
  .readout {
    -webkit-backdrop-filter: blur(14px) saturate(130%);
            backdrop-filter: blur(14px) saturate(130%);
  }
}

/* =========================================================
   PROFILE
   ========================================================= */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.profile__body p + p { margin-top: 22px; }
.profile__body .lede {
  font-family: var(--display);
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.42; color: var(--ink);
  letter-spacing: -.02em; font-weight: 400;
}
.profile__body p:not(.lede) { color: var(--ink-dim); max-width: 60ch; }

.profile__now {
  display: inline-flex !important; align-items: center; gap: 12px;
  margin-top: 30px !important;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--ink-dim) !important;
  background: rgba(5, 7, 11, .5);
}

/* measurement panel, styled after a scope's readout */
.readout { border-radius: 18px; overflow: hidden; position: relative; }
.readout::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 60% at 0% 0%, rgba(110, 231, 249, .07), transparent 60%),
              radial-gradient(120% 60% at 100% 100%, rgba(242, 169, 59, .06), transparent 60%);
}
.readout__bar, .readout__foot {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint);
}
.readout__bar { border-bottom: 1px solid var(--line); }
.readout__foot { border-top: 1px solid var(--line); justify-content: flex-start; gap: 22px; letter-spacing: .1em; }
.readout__foot span { display: inline-flex; align-items: center; gap: 8px; }
.readout__foot .sw--a { margin-left: 0; }
.readout__run { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.readout__run i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px rgba(126, 226, 168, .9);
  animation: blink 1.8s steps(1) infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.readout__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.readout__cell { padding: 24px 20px 26px; display: flex; flex-direction: column; gap: 6px; }
.readout__cell:nth-child(odd)  { border-right: 1px solid var(--line); }
.readout__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.readout__cell dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
  opacity: .85;
}
.readout__cell:nth-child(2n) dt { color: var(--amber); }
.readout__v { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.readout__n {
  font-family: var(--display); font-size: clamp(34px, 3.4vw, 48px); font-weight: 400;
  letter-spacing: -.04em; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.readout__v em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-faint); }
.readout__d { font-size: 13px; line-height: 1.45; color: var(--ink-dim); }

/* ---------- signal chain ---------- */
.chain-wrap { margin-top: clamp(72px, 9vw, 120px); }
.chain__head { margin-bottom: 30px; }

.chain {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px);
  padding-top: 34px;
}
/* the wire */
.chain::before {
  content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--line-strong) 50%, var(--amber));
  opacity: .6;
}
/* the packet running along it */
.chain::after {
  content: ''; position: absolute; top: 5px; left: 0; width: 90px; height: 5px; border-radius: 5px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(110, 231, 249, .6) 45%, transparent);
  filter: blur(.4px);
  animation: packet 4.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes packet {
  0%   { transform: translateX(-100px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(calc(min(var(--maxw), 100vw) - 2 * var(--gut))); opacity: 0; }
}
.chain__step { position: relative; }
.chain__step::before {
  content: ''; position: absolute; top: -32px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--ink-faint);
  box-shadow: 0 0 0 4px var(--bg);
}
.chain__step:nth-child(1)::before { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(110, 231, 249, .6); }
.chain__step:nth-child(4)::before { border-color: var(--amber); box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(242, 169, 59, .6); }
.chain__n { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--amber); }
.chain__step h3 {
  font-family: var(--display); font-weight: 400; font-size: clamp(19px, 1.7vw, 23px);
  letter-spacing: -.02em; margin-top: 10px; line-height: 1.2;
}
.chain__step p { margin-top: 10px; color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }

/* =========================================================
   EXPERIENCE — a signal rail that fills as you read
   ========================================================= */
.exp-wrap { position: relative; }
.exp__rail {
  position: absolute; top: 0; bottom: 0; left: 238px; width: 1px;
  background: var(--line);
}
.exp__rail i {
  position: absolute; inset: 0 0 auto 0; height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--amber));
  transform-origin: top; transform: scaleY(var(--p, 0));
  box-shadow: 0 0 10px rgba(110, 231, 249, .45);
}

.exp__item {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(40px, 5vw, 76px);
  padding: clamp(34px, 4vw, 52px) 0;
  position: relative;
}
.exp__item + .exp__item { border-top: 1px solid var(--line); }
/* node where each role taps the rail */
.exp__item::before {
  content: ''; position: absolute; left: 234px; top: calc(clamp(34px, 4vw, 52px) + 8px);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--ink-faint);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.exp__item.is-lit::before { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(110, 231, 249, .7); }

.exp__period {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--amber); display: flex; align-items: center; gap: 9px;
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); flex: none; }
.dot--live { background: var(--amber); box-shadow: 0 0 0 0 rgba(242, 169, 59, .55); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(242,169,59,0); } 100% { box-shadow: 0 0 0 0 rgba(242,169,59,0); } }

.exp__org { margin-top: 14px; font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.exp__loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; }

.exp__role { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -.025em; line-height: 1.15; }
.exp__sum {
  margin-top: 12px; max-width: 62ch;
  font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45;
  color: #c9d3df;
}

.bullets { margin-top: 20px; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; color: var(--ink-dim); font-size: 15px; line-height: 1.6; max-width: 72ch; }
.bullets li::before {
  content: ''; position: absolute; left: 0; top: .66em;
  width: 8px; height: 1px; background: var(--amber); opacity: .8;
}

/* the rest of each role, one click away */
.more { margin-top: 12px; }
.more > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 2px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-faint);
  transition: color .25s var(--ease);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before {
  content: ''; width: 15px; height: 15px; flex: none; border-radius: 4px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 7px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 7px no-repeat;
  transition: transform .35s var(--ease-out), border-color .25s var(--ease);
}
.more > summary:hover { color: var(--amber); }
.more > summary:hover::before { border-color: rgba(242, 169, 59, .5); }
.more[open] > summary::before { transform: rotate(45deg); }
.more__close { display: none; }
.more[open] .more__open { display: none; }
.more[open] .more__close { display: inline; }
.more > .bullets { margin-top: 10px; }
.more[open] > .bullets { animation: moreIn .5s var(--ease-out); }
@keyframes moreIn { from { opacity: 0; transform: translateY(-6px); } }

.tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 7px; }
.tags li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-dim);
  padding: 5px 11px; border-radius: 6px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}

/* =========================================================
   TOOLCHAIN — a bill of materials beside the board it builds
   ========================================================= */
.bom-wrap {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(36px, 4.6vw, 76px); align-items: start;
}

.board {
  display: none; position: sticky; top: calc(var(--nav-h) + 24px);
}
.js .board { display: block; }
.board:empty { aspect-ratio: 640 / 640; }
.board__cap {
  display: flex; align-items: baseline; gap: 14px; min-height: 1.7em; margin-top: 14px; padding-left: 4px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim);
  opacity: 0; transform: translateY(4px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.board__cap::before {
  content: ''; width: 18px; height: 1px; background: var(--amber); align-self: center; flex: none;
}
.board__cap.is-on { opacity: 1; transform: none; }
.board__cap b { font-weight: 400; color: var(--amber); }

.bom__head {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: end;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.bom__rev { letter-spacing: .1em; }

.bom__row {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr);
  padding: 22px 0 24px; border-bottom: 1px solid var(--line);
}
.bom__row::before {
  content: ''; position: absolute; left: -20px; top: 24px; bottom: 26px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--amber), var(--cyan));
  transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease-out);
}
.bom__row.is-hot::before { transform: scaleY(1); }
.bom__ref {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--amber);
  padding-top: 3px; transition: text-shadow .3s var(--ease);
}
.bom__row.is-hot .bom__ref { text-shadow: 0 0 12px rgba(242, 169, 59, .8); }
.bom__k {
  font-family: var(--display); font-size: clamp(18px, 1.5vw, 20px); font-weight: 500;
  letter-spacing: -.015em; line-height: 1.25;
}
.bom__blurb { margin-top: 4px; font-size: 13.5px; color: var(--ink-faint); line-height: 1.5; }

.chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 12.5px; color: var(--ink-dim); text-shadow: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
  background: rgba(5, 7, 11, .55);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.bom__row.is-hot .chips li { border-color: var(--line-strong); color: var(--ink); }

/* ---------- the board itself (drawn by board.js) ---------- */
.pcb { width: 100%; height: 100%; overflow: visible; }
.pcb text { font-family: var(--mono); }
.pcb__body   { fill: #080d13; stroke: rgba(255, 255, 255, .13); stroke-width: 1.2; }
.pcb__pour   { fill: url(#pcbHatch); opacity: .55; }
.pcb__edge   { fill: none; stroke: rgba(201, 163, 90, .18); stroke-width: 1; }
.pcb__hole   { fill: var(--bg); stroke: rgba(201, 163, 90, .55); stroke-width: 2.2; }
.pcb__silk   { fill: none; stroke: rgba(226, 233, 242, .30); stroke-width: 1; }
.pcb__silkt  { fill: rgba(226, 233, 242, .42); font-size: 8.5px; letter-spacing: .06em; }
.pcb__silkt--big { font-size: 10px; letter-spacing: .14em; }
.pcb__trace  { fill: none; stroke: rgba(185, 139, 78, .30); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s var(--ease), stroke-width .35s var(--ease); }
.pcb__trace--fat { stroke-width: 5; }
.pcb__trace--hv  { stroke-width: 6; stroke: rgba(185, 139, 78, .24); }
.pcb__via    { fill: var(--bg); stroke: rgba(201, 163, 90, .45); stroke-width: 1.4; }
.pcb__pad    { fill: rgba(214, 176, 98, .58); transition: fill .35s var(--ease); }
.pcb__pkg    { fill: #0d131b; stroke: rgba(255, 255, 255, .12); stroke-width: 1; transition: stroke .35s var(--ease), fill .35s var(--ease); }
.pcb__pkg--metal { fill: #1a2029; stroke: rgba(255, 255, 255, .2); }
.pcb__die    { fill: #111925; stroke: rgba(255, 255, 255, .06); }
.pcb__ball   { fill: rgba(255, 255, 255, .07); }
.pcb__mark   { fill: rgba(226, 233, 242, .55); font-size: 9px; letter-spacing: .1em; transition: fill .35s var(--ease); }
.pcb__mark--sub { fill: rgba(226, 233, 242, .3); font-size: 7px; }
.pcb__pin1   { fill: rgba(226, 233, 242, .35); }
.pcb__fid    { fill: rgba(214, 176, 98, .7); }
.pcb__fidr   { fill: none; stroke: rgba(226, 233, 242, .18); stroke-width: 1; }
.pcb__led    { fill: #2a5a45; transition: fill .3s; }
.pcb__ledglow { fill: var(--green); opacity: 0; transform-box: fill-box; transform-origin: center; }
.pcb__sticker { fill: rgba(242, 169, 59, .1); stroke: rgba(242, 169, 59, .55); stroke-width: 1; }
.pcb__sticker-t { fill: var(--amber); font-size: 8.5px; letter-spacing: .1em; }
.pcb__check  { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pcb__hv     { fill: none; stroke: rgba(242, 169, 59, .35); stroke-width: 1; stroke-dasharray: 5 4; }
.pcb__hvt    { fill: rgba(242, 169, 59, .6); font-size: 8.5px; letter-spacing: .14em; }

/* signals: a short bright dash that runs along a trace (pathLength = 100) */
.pcb__sig {
  fill: none; stroke: var(--cyan); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 7 100; stroke-dashoffset: 7; opacity: 0;
  transition: opacity .4s var(--ease);
}
.pcb__sig--a { stroke: var(--amber); }
.pcb.is-live .pcb__sig.is-hot,
.pcb.is-live:not(.has-hot) .pcb__sig--amb { animation: sig var(--dur, 2.2s) linear var(--del, 0s) infinite; }
@keyframes sig { from { stroke-dashoffset: 7; } to { stroke-dashoffset: -100; } }
.pcb.is-live .pcb__led + .pcb__ledglow { animation: ledbeat 1.6s var(--ease) infinite; }
@keyframes ledbeat {
  0%, 100% { opacity: .15; transform: scale(.8); }
  12%      { opacity: .95; transform: scale(1.25); }
  24%      { opacity: .35; transform: scale(1); }
  36%      { opacity: .9;  transform: scale(1.2); }
  60%      { opacity: .2;  transform: scale(.9); }
}

/* ambient: a third of the nets carry a faint pulse; the focused part's nets light up */
.pcb .pcb__sig--amb { opacity: .24; }
.pcb.has-hot .pcb__sig--amb { opacity: 0; }
.pcb.has-hot .pcb__trace { stroke: rgba(185, 139, 78, .16); }
.pcb.has-hot .pcb__trace--hv { stroke: rgba(185, 139, 78, .12); }
.pcb [data-net].is-hot .pcb__trace,
.pcb .pcb__trace.is-hot { stroke: rgba(242, 169, 59, .55); }
.pcb .pcb__sig.is-hot { opacity: 1; }
.pcb .is-hot .pcb__pkg, .pcb .pcb__pkg.is-hot { stroke: var(--amber); fill: #141b25; }
.pcb .is-hot .pcb__mark { fill: var(--ink); }
.pcb .is-hot .pcb__pad { fill: rgba(255, 201, 120, .95); }
.pcb .pcb__halo { fill: none; stroke: var(--amber); stroke-width: 1; opacity: 0; transition: opacity .35s var(--ease); }
.pcb .is-hot > .pcb__halo { opacity: .5; }
.pcb__part { cursor: crosshair; }

/* =========================================================
   EDUCATION
   ========================================================= */
.edu__item {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: clamp(28px, 3vw, 38px) 0;
  border-top: 1px solid var(--line);
  transition: padding-left .4s var(--ease-out);
}
.edu__item:last-child { border-bottom: 1px solid var(--line); }
.edu__item:hover { padding-left: 10px; }
.edu__year { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--amber); }
.edu__deg { font-family: var(--display); font-size: clamp(17px, 1.6vw, 22px); font-weight: 400; letter-spacing: -.018em; line-height: 1.3; }
.edu__school { font-size: 14px; color: var(--ink-dim); margin-top: 6px; }
.edu__grade { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.tag {
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(242, 169, 59, .42); color: var(--amber);
  padding: 3px 9px; border-radius: 999px; text-shadow: none;
}
.tag--c { border-color: rgba(110, 231, 249, .42); color: var(--cyan); }

/* =========================================================
   CONTACT
   ========================================================= */
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.mailto {
  display: inline-flex; align-items: center; gap: clamp(10px, 2vw, 22px);
  font-family: var(--display);
  font-size: clamp(24px, 4.6vw, 58px);
  font-weight: 300; letter-spacing: -.04em; line-height: 1.1;
  padding-bottom: 18px;
  background: linear-gradient(90deg, var(--amber), var(--amber)) left bottom / 0% 1px no-repeat,
              linear-gradient(90deg, var(--line-strong), var(--line-strong)) left bottom / 100% 1px no-repeat;
  transition: color .3s var(--ease), background-size .6s var(--ease-out);
  max-width: 100%;
  text-shadow: 0 0 24px var(--bg);
}
.mailto span { overflow-wrap: anywhere; }
.mailto svg { width: clamp(20px, 2.6vw, 34px); height: clamp(20px, 2.6vw, 34px); flex: none; color: var(--amber); transition: transform .35s var(--ease); }
.mailto:hover { color: var(--amber); background-size: 100% 1px, 100% 1px; }
.mailto:hover svg { transform: translate(4px, -4px); }

.copy {
  display: none; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(5, 7, 11, .5);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-dim);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.js .copy { display: inline-flex; }
.copy svg { width: 15px; height: 15px; }
.copy:hover { color: var(--amber); border-color: rgba(242, 169, 59, .5); }
.copy.is-done { color: var(--green); border-color: rgba(126, 226, 168, .5); }

.contact-grid {
  margin-top: clamp(52px, 7vw, 86px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 34px;
}
.contact-grid li { display: flex; flex-direction: column; gap: 10px; }
.contact-grid__k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber);
}
.contact-grid a, .contact-grid span { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.contact-grid a { transition: color .25s var(--ease); }
.contact-grid a:hover { color: var(--amber); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 30px 0; background: var(--bg); }
.foot__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot p, .foot a { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-faint); }
.foot__hint { display: none; }
@media (hover: hover) and (pointer: fine) { .js .foot__hint { display: inline; } }
.foot kbd { font-size: 10.5px; }
.foot__top { display: inline-flex; align-items: center; gap: 8px; transition: color .25s var(--ease); }
.foot__top svg { width: 13px; height: 13px; }
.foot__top:hover { color: var(--amber); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 300;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  background: rgba(12, 16, 23, .94); border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--ink);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .45s var(--ease-out);
}
.toast:empty { display: none; }
.toast::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px rgba(126, 226, 168, .9); flex: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   SERIAL CONSOLE (console.js)
   ========================================================= */
.con {
  padding: 0; border: 0; background: transparent; color: var(--ink);
  width: min(880px, calc(100vw - 32px)); max-width: none; max-height: none;
  overflow: visible;
}
.con::backdrop {
  background: rgba(2, 3, 6, .66);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.con__win {
  display: flex; flex-direction: column;
  height: min(580px, calc(100svh - 40px));
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: radial-gradient(120% 80% at 50% 0%, #0a1018, #05080c 70%);
  box-shadow: 0 50px 140px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 60px -20px rgba(110, 231, 249, .15);
}
.con[open] .con__win { animation: conIn .4s var(--ease-out); }
@keyframes conIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.con__bar {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0));
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-faint);
}
.con__dots { display: flex; gap: 7px; }
.con__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.con__dots i:first-child { background: rgba(242, 169, 59, .75); }
.con__title { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.con__title b { font-weight: 400; color: var(--ink-dim); }
.con__x {
  width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-dim); transition: color .2s, background .2s;
}
.con__x:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.con__x svg { width: 14px; height: 14px; }

.con__out {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 20px 4px;
  font-family: var(--mono); font-size: 13px; line-height: 1.62; letter-spacing: .01em;
  white-space: pre-wrap; overflow-wrap: anywhere;
  color: #d5dde8; text-shadow: 0 0 10px rgba(110, 231, 249, .08);
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 3px);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent;
}
.con__out p { min-height: 1.62em; }
.con__out .d { color: var(--ink-faint); }
.con__out .a { color: var(--amber); }
.con__out .c { color: var(--cyan); }
.con__out .g { color: var(--green); }
.con__out .e { color: #ff9b8a; }
.con__out .w { color: var(--ink); }
.con__out a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(110, 231, 249, .35); text-underline-offset: 3px; }
.con__out a:hover { color: var(--ink); }
.con__echo .a { color: var(--amber); }

.con__form {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 8px 20px 12px;
  font-family: var(--mono); font-size: 13px;
}
.con__ps { color: var(--amber); white-space: nowrap; }
.con__in {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 4px 0;
  color: var(--ink); font: inherit; caret-color: var(--amber);
}
.con__in:focus-visible { outline: none; }
.con__chips {
  display: flex; flex-wrap: wrap; gap: 6px; flex: none;
  padding: 10px 20px 16px; border-top: 1px solid var(--line);
}
.con__chips button {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-dim);
  padding: 5px 11px; border-radius: 6px; border: 1px solid var(--line-strong);
  transition: color .2s, border-color .2s, background .2s;
}
.con__chips button:hover { color: var(--amber); border-color: rgba(242, 169, 59, .5); background: rgba(242, 169, 59, .05); }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.nf__main { width: 100%; padding: 96px 0; }
.nf__trace { width: min(640px, 100%); height: auto; margin: 52px 0 12px; overflow: visible; }
.nf__trace text { font-family: var(--mono); font-size: 11px; fill: var(--ink-faint); letter-spacing: .1em; }
.nf__scl { fill: none; stroke: var(--cyan); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(110, 231, 249, .6)); }
.nf__sda { fill: none; stroke: var(--amber); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(242, 169, 59, .6)); }
.nf__nack { fill: rgba(255, 138, 122, .06); stroke: rgba(255, 138, 122, .6); stroke-dasharray: 4 3; }
.nf__trace .nf__nack-t { fill: #ff9b8a; }

/* =========================================================
   MOTION — reveal + word-by-word headline rise
   (only when JS is running, so nothing hides without it)
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-split].is-split { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em 0; margin: 0 -.06em -.12em 0; }
.w__i {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 55ms);
}
.is-in .w__i, .is-in.w__i { transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .chain::before, .chain::after { display: none; }
  .chain__step::before { display: none; }
  .chain { padding-top: 0; }
  .chain__step { padding-top: 18px; border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --glass: rgba(9, 12, 18, .88); --nav-h: 66px; }
  .nav__links, .nav__cta, .nav__console { display: none !important; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__mobile { display: flex; }
  .nav.is-open { background: rgba(5, 7, 11, .96); border-bottom-color: var(--line); }

  .hero { height: 175vh; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(4, 6, 10, .35) 0%, rgba(4, 6, 10, .72) 45%, rgba(4, 6, 10, .78) 70%, var(--bg) 100%);
  }
  .hero__fig { display: none; }

  .profile { grid-template-columns: 1fr; }
  .exp__rail, .exp__item::before { display: none; }
  .exp__item { grid-template-columns: 1fr; gap: 18px; }
  .exp__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
  .exp__org { margin-top: 0; }
  .edu__item { grid-template-columns: 1fr; gap: 10px; }
  .edu__grade { white-space: normal; flex-wrap: wrap; }

  .bom-wrap { grid-template-columns: 1fr; gap: 36px; }
  .board { position: relative; top: 0; width: 100%; max-width: 560px; margin-inline: auto; }
  .bom__row::before { left: -12px; }
}

@media (max-width: 560px) {
  .readout__grid { grid-template-columns: 1fr 1fr; }
  .readout__cell { padding: 18px 16px 20px; }
  .chain { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__actions .btn--lg { width: 100%; }
  .hero__cue { display: none; }
  .hero__stack { gap: 8px 16px; }
  .hero__stack li, .hero__stack li:first-child { padding: 0; border-left: 0; }
  .hero__eyebrow { letter-spacing: .14em; font-size: 10px; }
  .icon-btn { width: 48px; height: 48px; }
  .bom__row { grid-template-columns: 48px minmax(0, 1fr); }
  .bom__head { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .con__win { height: calc(100svh - 24px); }
  .con { width: calc(100vw - 16px); }
  .con__out { font-size: 12px; padding: 14px 14px 4px; }
  .con__form, .con__chips { padding-inline: 14px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .w__i { transform: none; }
  .hero { height: 100vh; height: 100svh; }
  .pcb__sig { display: none; }
}

/* =========================================================
   PRINT — the page doubles as a clean one-column CV
   ========================================================= */
@media print {
  @page { margin: 13mm 15mm; }
  html { color-scheme: light !important; }
  *, *::before, *::after {
    color: #14181f !important; background: transparent !important;
    text-shadow: none !important; box-shadow: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    animation: none !important; transition: none !important;
  }
  html, body { background: #fff !important; }
  body { font-size: 9.5pt; line-height: 1.45; }
  .scope, .hud, .nav, .skip, .hero__canvas, .hero__veil, .hero__cue, .hero__fig, .hero__actions,
  .board, .bom__head, .chain-wrap, .exp__rail, .exp__item::before, .readout__foot, .readout__bar,
  .copy, .toast, .con, .foot__top, .foot__hint, .more > summary, .sec-sub,
  .section + .section::before, .bom__row::before, .profile__now .dot, .bom__blurb { display: none !important; }

  .hero { height: auto !important; }
  .hero__sticky { position: static; height: auto; display: block; overflow: visible; }
  .hero__content { transform: none !important; opacity: 1 !important; visibility: visible !important; }
  .hero__eyebrow { font-size: 8pt; letter-spacing: .12em; }
  .hero__title { font-size: 22pt; max-width: none; margin-top: 4pt; }
  .hero__lede { max-width: none; margin-top: 6pt; font-size: 9.5pt; }
  .hero__stack { margin-top: 6pt; font-size: 8pt; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .w__i { transform: none !important; }

  .wrap { padding-inline: 0; max-width: none; }
  .section { padding: 14pt 0 0 !important; }
  .sec-head { margin-bottom: 6pt !important; }
  .eyebrow { font-size: 7.5pt; }
  .sec-title, .sec-title--xl { font-size: 14pt !important; margin-top: 2pt; line-height: 1.15; break-after: avoid; }
  .sec-title em, .hero__title em { color: #8a5300 !important; }

  .profile { display: block; }
  .profile__body .lede { font-size: 11pt; }
  .profile__body p + p { margin-top: 6pt; }
  .profile__now { margin-top: 8pt !important; padding: 0; border: 0; font-size: 8.5pt; }
  .readout { border: 1px solid #c9ced6 !important; border-radius: 6pt; margin-top: 8pt; break-inside: avoid; }
  .readout__cell { padding: 6pt 10pt; }
  .readout__n { font-size: 15pt; }

  .exp__item { grid-template-columns: 118px 1fr; gap: 14pt; padding: 8pt 0; }
  .exp__meta { display: block; }
  .exp__org { margin-top: 3pt; font-size: 10pt; }
  .exp__role { font-size: 12pt; break-after: avoid; }
  .exp__sum { font-size: 10.5pt; margin-top: 2pt; }
  .bullets { margin-top: 4pt; gap: 2pt; }
  .bullets li { font-size: 9.5pt; line-height: 1.4; break-inside: avoid; }
  .bullets li::before { background: #8a5300 !important; }
  .more { margin-top: 2pt; }
  .more > .bullets { display: grid !important; margin-top: 2pt; }
  details.more::details-content { content-visibility: visible; }
  .tags { margin-top: 5pt; gap: 4pt; }
  .tags li { font-size: 7.5pt; padding: 1pt 5pt; }

  .bom-wrap { display: block; }
  .bom__row { break-inside: avoid; padding: 5pt 0; grid-template-columns: 40px 1fr; border-color: #e3e6ea !important; }
  .bom__k { font-size: 10pt; }
  .chips { margin-top: 3pt; gap: 3pt; }
  .chips li, .tags li { border: 1px solid #c9ced6 !important; }
  .chips li { font-size: 8pt; padding: 1pt 6pt; }

  .edu__item { break-inside: avoid; padding: 5pt 0; grid-template-columns: 60px 1fr auto; gap: 10pt; }
  .edu__deg { font-size: 10pt; }
  .edu__school { margin-top: 0; font-size: 9pt; }

  .mailto { font-size: 13pt; padding-bottom: 2pt; }
  .contact-grid { margin-top: 8pt; gap: 8pt; }
  .contact-grid a, .contact-grid span { font-size: 9.5pt; }
  .contact-grid a[href^="http"]::after { content: " \2014 " attr(href); font-size: 7.5pt; }
  .foot { border-top: 1px solid #c9ced6; margin-top: 12pt; padding: 8pt 0; }
  a { text-decoration: none; }
}
