/* ============================================================
   Neeraj Sharma — short-scroll deck
   Light, dense, a few screens. A horizontal ingestion pipeline
   as the centrepiece band.

   RULE: nothing is hidden waiting on JS or an animation. Every
   element paints at rest; motion is only ever added on top.
   ============================================================ */

:root {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono",
    "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --bg:         #F6F7FA;
  --panel:      #FFFFFF;
  --panel-2:    #FCFCFE;
  --edge:       #E4E7ED;
  --edge-hot:   #C7CCD6;
  --ink:        #15171C;
  --ink-2:      #4C5361;
  --ink-3:      #6E7583;   /* 4.63:1 on panel, 4.52:1 on panel-2 — clears AA */
  --accent:     #0F766E;   /* teal-700 — ~4.9:1 on white, so it carries text */
  --accent-2:   #115E59;
  --accent-dim: rgba(15, 118, 110, 0.09);
  --on-accent:  #FFFFFF;
  --warn:       #B45309;

  --gap: clamp(10px, 1vw, 16px);
  --pad: clamp(16px, 1.5vw, 26px);
  --r:   clamp(12px, 1vw, 18px);
  --maxw: 1240px;

  /* Layered elevation. Two shadows per level — a tight contact shadow plus a
     wide ambient one — because a single blur reads as a smudge, not as depth. */
  --shadow-1: 0 1px 2px rgba(18, 22, 38, 0.04), 0 3px 10px rgba(18, 22, 38, 0.045);
  --shadow-2: 0 2px 6px rgba(18, 22, 38, 0.06), 0 16px 34px rgba(18, 22, 38, 0.10);

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --d-fast: 160ms; --d-mid: 320ms;
  --tempo: 2600ms;   /* one shared heartbeat for every loop on the page */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #101218;
    --panel:      #171A21;
    --panel-2:    #1C202A;
    --edge:       #262B35;
    --edge-hot:   #39404E;
    --ink:        #ECEFF4;
    --ink-2:      #A7AEBD;
    --ink-3:      #7C8493;
    --accent:     #5EEAD4;
    --accent-2:   #99F6E4;
    --accent-dim: rgba(94, 234, 212, 0.13);
    --on-accent:  #06201D;
    --warn:       #FBBF24;
    /* On a dark surface a drop shadow is invisible; depth has to come from a
       hairline rim of light along the top edge instead. */
    --shadow-1: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 10px rgba(0, 0, 0, 0.30);
    --shadow-2: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.45);
  }
  body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale }
}

*, *::before, *::after { box-sizing: border-box }
* { margin: 0; font-synthesis: none }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem)/1.5 var(--font-sans);
  overflow-wrap: anywhere;
}

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.028em }
ul, ol { list-style: none; padding: 0 }
a { color: inherit }
b, strong { font-weight: 600; color: var(--ink) }
code { font: 500 max(0.92em, 0.75rem) var(--font-mono); color: var(--accent) }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px }
:focus:not(:focus-visible) { outline: none }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--panel); border: 1px solid var(--edge-hot);
  padding: 10px 18px; border-radius: 999px; font-size: 0.875rem; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px }

/* ---------- the deck: bands in normal flow ---------- */
.deck {
  width: min(100% - 2 * var(--gap), var(--maxw));
  margin-inline: auto;
  padding-block: var(--gap) clamp(28px, 4vw, 56px);
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

/* Explicit rows so DOM order and visual order stay independent. A grid row
   stretches every panel in it to the tallest one, so a short panel beside a
   tall one becomes a mostly-empty box — Stack and Focus are the only two
   close enough in height to pair. Re-measure before changing these. */
.p-id    { grid-column: 1 / 13; grid-row: 1 }
.p-pipe  { grid-column: 1 / 13; grid-row: 2 }
.p-own   { grid-column: 1 / 13; grid-row: 3 }
.p-exp   { grid-column: 1 / 13; grid-row: 4 }
.p-lead  { grid-column: 1 / 13; grid-row: 5 }
.p-stack { grid-column: 1 / 8;  grid-row: 6 }
.p-focus { grid-column: 8 / 13; grid-row: 6 }

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  padding: var(--pad);
  min-width: 0;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: border-color var(--d-mid) var(--ease-out),
              box-shadow var(--d-mid) var(--ease-out),
              background-color var(--d-mid) var(--ease-out);
}
@media (hover: hover) {
  .panel:hover { border-color: var(--edge-hot); background: var(--panel-2); box-shadow: var(--shadow-2) }
}

/* cursor-reactive lighting — a soft highlight tracking the pointer. Pure
   decoration: the highlight lives in a ::before overlay, so if the script
   never runs the panels simply sit unlit. */
.panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              var(--accent-dim), transparent 70%);
  transition: opacity var(--d-mid) var(--ease-out);
}
@media (hover: hover) { .panel:hover::before { opacity: 1 } }
.panel > * { position: relative }

.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px }
.panel-head h2 { font-size: clamp(1rem, 0.88rem + 0.5vw, 1.3rem); line-height: 1.1 }
.panel-sub { font-size: 0.75rem; color: var(--ink-3); margin-bottom: 10px }

/* ---------- identity ----------
   A full-bleed hero band rather than a column card. Statement first, then the
   numbers as a strip beneath it, so the figures read as the footing under the
   claim rather than as a separate widget. */
.p-id { overflow: hidden; padding-block: clamp(28px, 4vw, 60px) }
/* The measure belongs on the prose, not on the column — constraining the whole
   lead is what wraps the name onto a second line. */
.hero-lead { min-width: 0 }
.role-line, .actions, .links { max-width: 60ch }

.kicker {
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none;
  animation: pulse var(--tempo) ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-dim) }
  70%  { box-shadow: 0 0 0 10px transparent }
  100% { box-shadow: 0 0 0 0 transparent }
}
/* Optical tracking: display type needs tighter letter-spacing the larger it
   gets, or it reads loose at hero scale. */
.p-id h1 {
  font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5rem);
  line-height: 0.94; letter-spacing: -0.045em; margin-top: 16px;
  text-wrap: balance;
}
.role-line {
  color: var(--ink-2); margin-top: 18px; line-height: 1.4;
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem);
}
.blurb {
  color: var(--ink-3); margin-top: 12px; line-height: 1.55;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  max-width: 52ch; text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px }
.btn {
  display: inline-flex; align-items: center;
  font: 500 0.8125rem/1 var(--font-sans);
  text-decoration: none; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--edge-hot); color: var(--ink);
  transition: transform var(--d-fast) var(--ease-out),
              box-shadow var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-standard),
              background-color var(--d-fast) var(--ease-standard),
              color var(--d-fast) var(--ease-standard);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600 }
.btn-primary:focus-visible { outline-color: var(--ink) }
@media (hover: hover) {
  .btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-2) }
  .btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent) }
}
.btn:active { transform: translateY(0) scale(0.98) }

.links {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px;
  font: 400 0.75rem/1 var(--font-mono); color: var(--ink-3);
}
/* an underline that wipes in from the left rather than snapping on */
.links a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  border-bottom: 1px solid var(--edge-hot); padding-bottom: 2px;
  transition: background-size var(--d-mid) var(--ease-out),
              color var(--d-fast) var(--ease-standard),
              border-color var(--d-fast) var(--ease-standard);
}
@media (hover: hover) {
  .links a:hover { color: var(--accent); border-color: var(--accent); background-size: 100% 1px }
}

/* ---------- stats: sit with the name, where the eye lands first ----------
   auto-fit, not a fixed 3, because "4+ GB/day" at display size is close to the
   track width — let the browser drop a column rather than wrap a figure */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: clamp(18px, 2vw, 28px) clamp(12px, 1.4vw, 24px);
  margin-top: clamp(28px, 3.5vw, 48px);
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--edge);
}
.stats li { border-left: 2px solid var(--accent); padding-left: 12px; min-width: 0 }
.stats strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 0.8rem + 1.25vw, 1.75rem);
  line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.stats span { display: block; font-size: 0.75rem; color: var(--ink-3); margin-top: 5px; line-height: 1.35 }

/* Each stat's accent rule draws itself downward on load. scaleY only — the
   text is never touched, so the figures are readable from the first paint. */
@media (prefers-reduced-motion: no-preference) {
  .stats li { position: relative; border-left-color: transparent }
  .stats li::before {
    content: ""; position: absolute; inset: 0 auto 0 -2px; width: 2px;
    background: var(--accent); transform-origin: 50% 0;
    animation: drawRule 620ms var(--ease-out) both;
  }
  .stats li:nth-child(2)::before { animation-delay: 70ms }
  .stats li:nth-child(3)::before { animation-delay: 140ms }
  .stats li:nth-child(4)::before { animation-delay: 210ms }
  .stats li:nth-child(5)::before { animation-delay: 280ms }
  .stats li:nth-child(6)::before { animation-delay: 350ms }
  @keyframes drawRule { from { transform: scaleY(0) } to { transform: scaleY(1) } }
}

/* ---------- centrepiece band ---------- */
.tag-live {
  margin-left: auto;
  font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid var(--accent-dim);
  padding: 5px 9px; border-radius: 999px; white-space: nowrap;
}
.pull {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1rem, 0.9rem + 0.55vw, 1.35rem);
  letter-spacing: -0.02em; line-height: 1.25;
  margin: 4px 0 12px; max-width: 40ch;
}
/* The claim under the pull quote: what the pipeline actually does, not what it is. */
.outcome {
  font-size: clamp(0.875rem, 0.82rem + 0.3vw, 1rem); color: var(--ink-2);
  line-height: 1.5; margin: 10px 0 16px; max-width: 70ch;
  border-left: 2px solid var(--accent); padding-left: 14px;
}
/* The limit nobody asks about. A portfolio that only lists what shipped is
   less credible than one that names what has not. */
.honest {
  font-size: 0.78125rem; color: var(--ink-3); line-height: 1.55;
  margin-top: 14px; padding: 12px 14px; max-width: 86ch;
  background: var(--panel-2);
  border: 1px solid var(--edge); border-left: 2px solid var(--warn);
  border-radius: 10px;
}
.honest b { color: var(--ink-2) }

/* ---------- the pipeline diagram ----------
   Capped rather than full-bleed: it should read as a diagram, not as wallpaper. */
.fanout { margin: 0; display: grid; gap: 14px }
.fanout svg {
  width: 100%; max-width: 660px; height: auto;
  margin-inline: auto; overflow: visible; display: block;
}
.fanout path, .fanout rect {
  fill: none; stroke: var(--edge-hot); stroke-width: 1.4; vector-effect: non-scaling-stroke;
}
.fanout .trunk, .fanout .tail { stroke: var(--ink-3) }
.fanout .node {
  fill: var(--panel); stroke: var(--ink-3); stroke-width: 1.4;
  vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center;
}
.fanout .node.owner { fill: var(--ink); stroke: var(--ink) }
/* the audit emission points, where a write also becomes a history row */
.fanout .node.join { fill: var(--accent-dim); stroke: var(--accent); stroke-width: 1.6 }
.fanout .ledger { stroke: var(--accent); fill: var(--accent-dim); stroke-width: 1.2 }
.fanout .gate { stroke: var(--accent); fill: var(--accent-dim) }

/* The duplicate turned away. Drawn dashed and marching so it reads as a row
   being actively rejected, not as part of the static structure. */
.fanout .reject, .fanout .emit {
  stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 5;
  opacity: 0.75;
  animation: march calc(var(--tempo) / 3) linear infinite;
}
.fanout .reject { stroke: var(--warn) }
@keyframes march { to { stroke-dashoffset: -18 } }
.fanout .x-mark path { stroke: var(--warn); stroke-width: 1.8; stroke-linecap: round }

/* 11px, not 12 — at 12 the five stage labels collide across a 740-unit box */
.fanout .fan-labels text {
  font: 600 11px var(--font-mono); letter-spacing: 0.04em; fill: var(--ink-2);
  paint-order: stroke; stroke: var(--panel); stroke-width: 6px; stroke-linejoin: round;
}
.fanout .owner-tag { font-size: 10px; fill: var(--ink); letter-spacing: 0.03em }
.fanout .sub-tag { font-size: 10px; fill: var(--ink-3); letter-spacing: 0.03em }
.fanout figcaption { font-size: 0.78125rem; color: var(--ink-3); line-height: 1.6; max-width: 92ch }

/* Work travelling the whole pipeline — additive only; the diagram reads fine
   without any of it. pathLength=1 normalises every segment, so one set of
   keyframes drives paths of different lengths at the same apparent speed, and
   the stage delays make a single wave roll left to right. */
.fanout .pulse {
  stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 0.13 0.87; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 3px color-mix(in oklab, var(--accent) 55%, transparent));
  animation: travel var(--tempo) cubic-bezier(0.2, 0.55, 0.25, 1) infinite;
}
.fanout .s0 { animation-delay: 0ms }
.fanout .s1 { animation-delay: 260ms }
.fanout .s2 { animation-delay: 520ms }
.fanout .s3 { animation-delay: 900ms }
.fanout .s4 { animation-delay: 1320ms }
.fanout .s5 { animation-delay: 1560ms }
/* fades in fast, holds, then dims as it hands off to the next stage */
@keyframes travel {
  0%   { stroke-dashoffset: 1; opacity: 0 }
  8%   { opacity: 1 }
  78%  { opacity: 1 }
  100% { stroke-dashoffset: 0; opacity: 0 }
}

.fanout .node { animation: nodeBeat var(--tempo) ease-in-out infinite; animation-delay: 700ms }
.fanout .node.join { animation: joinBeat var(--tempo) ease-in-out infinite; animation-delay: 1240ms }
@keyframes nodeBeat { 0%,10%,100% { transform: scale(1) } 22% { transform: scale(1.45) } }
@keyframes joinBeat {
  0%,12%,100% { fill: var(--accent-dim); r: 5 }
  24% { fill: var(--accent); r: 6.4 }
}

/* The arrival payoff. Work reaching the API should resolve into something, not
   just tint — the gate fills, a ring expands out of it once, and a tick
   confirms. That is the row becoming queryable, made visible. */
.fanout .gate { animation: gateBeat var(--tempo) ease-out infinite }
@keyframes gateBeat {
  0%, 62%, 100% { fill: var(--accent-dim) }
  76% { fill: var(--accent) }
}
.fanout .gate-ring {
  stroke: var(--accent); fill: none; transform-box: fill-box; transform-origin: center;
  animation: ringOut var(--tempo) var(--ease-out) infinite;
}
@keyframes ringOut {
  0%, 62% { opacity: 0; transform: scale(1) }
  70% { opacity: 0.8 }
  100% { opacity: 0; transform: scale(1.7) }
}
.fanout .gate-tick {
  stroke: var(--on-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  fill: none; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: tick var(--tempo) var(--ease-out) infinite;
}
@keyframes tick {
  0%, 68% { stroke-dashoffset: 1; opacity: 0 }
  78%, 92% { stroke-dashoffset: 0; opacity: 1 }
  100% { stroke-dashoffset: 0; opacity: 0 }
}

/* ---------- what I own ---------- */
.own-list { columns: 2; column-gap: clamp(24px, 3vw, 52px); margin-top: 4px }
/* Each entry is its own tile. As bordered-left paragraphs in two columns they
   run together and you cannot tell where one system ends and the next begins —
   a surface and a real gap is what separates them, not a hairline. */
.own-list li {
  line-height: 1.55; color: var(--ink-2);
  background: var(--panel-2);
  border: 1px solid var(--edge); border-left: 2px solid var(--edge-hot);
  border-radius: 10px; padding: 14px 16px;
  transition: border-color var(--d-fast) var(--ease-standard),
              box-shadow var(--d-mid) var(--ease-out),
              transform var(--d-mid) var(--ease-out);
  break-inside: avoid; margin-bottom: 14px;
}
@media (max-width: 820px) { .own-list { columns: 1 } }
/* only the leading label is a block; emphasis inside the sentence stays inline */
.own-list li > b:first-child {
  display: block; color: var(--ink); margin-bottom: 5px;
  font-size: 0.9375rem; letter-spacing: -0.012em;
}
@media (hover: hover) {
  .own-list li:hover {
    border-color: var(--edge-hot); border-left-color: var(--accent);
    box-shadow: var(--shadow-1); transform: translateY(-2px);
  }
}
/* An item still in flight. Saying so is the point — a portfolio where
   everything is finished is a portfolio nobody believes. */
.wip {
  font: 600 0.6875rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warn); border: 1px solid var(--warn); border-radius: 999px;
  padding: 3px 7px; margin-left: 6px; vertical-align: 1px; white-space: nowrap;
}

/* ---------- build hygiene field ----------
   Sixteen chores is a number nobody feels as a sentence. Shown as the actual
   list, the volume is the point — so it renders as a dense field of names. */
.toolkit { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--edge) }
.toolkit-head {
  font-size: 0.78125rem; font-weight: 400; color: var(--ink-3);
  line-height: 1.5; margin-bottom: 12px;
}
.toolkit-head span {
  font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-2);
  display: block; margin-bottom: 5px;
}

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px }
.chips span, .chips li {
  font: 500 0.75rem/1 var(--font-sans);
  border: 1px solid var(--edge); border-radius: 999px;
  padding: 7px 11px; color: var(--ink-2); white-space: nowrap;
  transition: transform var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-standard),
              color var(--d-fast) var(--ease-standard);
}
.chips .hot { border-color: var(--accent); color: var(--accent); background: var(--accent-dim) }
.chips.sm { gap: 6px }
.chips.sm li { font-size: 0.75rem; padding: 7px 11px }
/* Chips lift individually, so the field feels like objects rather than text. */
@media (hover: hover) {
  .chips span:hover, .chips li:hover {
    transform: translateY(-2px); border-color: var(--accent); color: var(--accent);
  }
}
/* Stagger reads as the set assembling itself. `both` plus a finite run means
   they end visible no matter what — nothing here gates on the animation. */
@media (prefers-reduced-motion: no-preference) {
  .chips.sm li { animation: chipIn 420ms var(--ease-out) both }
  .chips.sm li:nth-child(3n+1) { animation-delay: 40ms }
  .chips.sm li:nth-child(3n+2) { animation-delay: 80ms }
  .chips.sm li:nth-child(3n)   { animation-delay: 120ms }
  @keyframes chipIn { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }

  .chips span { animation: chipIn 400ms var(--ease-out) both }
  .chips span:nth-child(n+5)  { animation-delay: 60ms }
  .chips span:nth-child(n+11) { animation-delay: 120ms }
  .chips span:nth-child(n+17) { animation-delay: 180ms }
  .chips span:nth-child(n+25) { animation-delay: 240ms }
}

/* ---------- experience ---------- */
.track { display: grid; gap: 12px; margin-top: 4px }
.track li { padding-bottom: 13px; border-bottom: 1px solid var(--edge) }
.track li:last-child { border-bottom: 0; padding-bottom: 0 }
.track-top { display: flex; align-items: center; gap: 12px }
.track-top b { font-size: 0.9375rem }
.track-top i {
  margin-left: auto; font: 400 0.75rem/1 var(--font-mono);
  color: var(--ink-3); font-style: normal; white-space: nowrap;
}
.track p { line-height: 1.55; color: var(--ink-3); margin-top: 6px; max-width: 110ch }
@media (hover: hover) {
  .track li { transition: transform var(--d-fast) var(--ease-out) }
  .track li:hover { transform: translateX(3px) }
}

/* ---------- employer emblems ----------
   Serrala, Dailzer and L&T are wordmarks; a hand-approximated trademark reads
   as a counterfeit, so each carries a monogram instead. Uniform size either way. */
.emblem {
  width: 36px; height: 36px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--edge-hot);
  color: var(--ink);
  font: 650 0.8125rem/1 var(--font-display); letter-spacing: -0.02em;
  box-shadow: var(--shadow-1);
  transition: border-color var(--d-fast) var(--ease-standard),
              color var(--d-fast) var(--ease-standard),
              box-shadow var(--d-mid) var(--ease-out);
}
/* Multi-character monograms need to step down or they touch the tile edge. */
.emblem.mono:not(.short) { font-size: 0.6875rem; letter-spacing: 0.01em }
.emblem.mono.short { font-size: 0.9375rem }
.track li:hover .emblem { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-2) }

/* ---------- how I work ---------- */
.lead-list { columns: 2; column-gap: clamp(28px, 3.5vw, 56px); margin-top: 8px }
.lead-list li { break-inside: avoid; margin-bottom: 20px; padding-left: 14px; border-left: 2px solid var(--edge-hot) }
.lead-list li:last-child { margin-bottom: 0 }
.lead-list h3 {
  font: 600 0.9375rem/1.3 var(--font-display); letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 5px;
}
.lead-list p { font-size: 0.8125rem; line-height: 1.6; color: var(--ink-3) }
@media (max-width: 900px) { .lead-list { columns: 1 } }
@media (hover: hover) {
  .lead-list li { transition: border-color var(--d-fast) var(--ease-standard) }
  .lead-list li:hover { border-left-color: var(--accent) }
}

/* ---------- focus ----------
   Same figure treatment as the hero stats, so it reads as a claim with weight
   rather than as a tag cloud. */
.reach {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(18px, 2.2vw, 32px); margin-top: 12px;
}
.reach li { border-left: 2px solid var(--accent); padding-left: 14px; min-width: 0 }
.reach strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 0.8rem + 0.7vw, 1.3rem);
  line-height: 1.1; letter-spacing: -0.03em;
}
.reach span { display: block; font-size: 0.75rem; color: var(--ink-3); margin-top: 7px; line-height: 1.5 }
.reach span b { display: block; color: var(--ink-2); font-size: 0.8125rem; margin-bottom: 2px }

/* ---------- education ----------
   Same structure as everything else on the page: what it is, where, and when. */
.cert-head {
  font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-2); margin: 0;
}
.edu-head { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--edge) }
.edu { display: grid; gap: 14px; margin-top: 12px }
.edu li { padding-left: 12px; border-left: 2px solid var(--edge-hot) }
.edu b { display: block; font-size: 0.875rem; line-height: 1.3 }
.edu span { display: block; font-size: 0.78125rem; color: var(--ink-2); margin-top: 2px }
.edu i {
  display: block; font: 400 0.75rem/1.45 var(--font-mono);
  color: var(--ink-3); font-style: normal; margin-top: 4px;
}

/* ---------- entrance motion ----------
   Scroll-linked lift for the lower bands. Scroll-driven timelines are
   positional, not clock-driven, so a stalled frame loop cannot strand a panel
   mid-fade — and where unsupported nothing hides at all. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .p-own, .p-exp, .p-lead, .p-stack, .p-focus {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 62%;
    }
    @keyframes rise-in {
      from { opacity: 0.25; transform: translateY(26px) scale(0.985) }
      to   { opacity: 1; transform: none }
    }
  }

  /* rows tick in as their panel arrives */
  .own-list li, .track li { animation: slide-in 520ms var(--ease-out) both }
  .own-list li:nth-child(2), .track li:nth-child(2) { animation-delay: 70ms }
  .own-list li:nth-child(3), .track li:nth-child(3) { animation-delay: 140ms }
  .own-list li:nth-child(4) { animation-delay: 210ms }
  .own-list li:nth-child(5) { animation-delay: 280ms }
  @keyframes slide-in { from { opacity: 0; transform: translateX(-8px) } to { opacity: 1; transform: none } }
}

/* Off-screen panels stop animating. Play-state only — geometry and opacity
   freeze exactly where they are, so nothing disappears and nothing reflows.
   The observer un-sets this 150px before a panel is actually visible, so an
   entrance animation is never frozen at its `from` state on screen. */
.panel.off, .panel.off *, .panel.off *::before, .panel.off *::after {
  animation-play-state: paused !important;
}

/* ---------- scroll progress ----------
   Scroll-driven, not clock-driven: the bar's position is a function of where
   the page is, so it cannot desync or strand mid-way. */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: grow linear both; animation-timeline: scroll(root block) }
    @keyframes grow { to { transform: scaleX(1) } }
  }
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--edge);
  margin-top: clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 3.5vw, 48px);
}
.foot-in {
  width: min(100% - 2 * var(--gap), var(--maxw));
  margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 56px);
  align-items: flex-start; justify-content: space-between;
}
.foot-lead { min-width: 0; max-width: 52ch }
.foot-name { font: 600 1rem/1.2 var(--font-display); letter-spacing: -0.02em }
.foot-line { color: var(--ink-3); font-size: 0.8125rem; margin-top: 6px; line-height: 1.5 }
.foot-meta {
  font: 400 0.75rem/1.5 var(--font-mono); color: var(--ink-3);
  margin-top: 12px; letter-spacing: 0.02em;
}
.foot-meta span { color: var(--ink-2) }
.foot-nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start }
.foot-nav a {
  font-size: 0.8125rem; color: var(--ink-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: color var(--d-fast) var(--ease-standard);
}
/* The sweep lives on the label, not the anchor — with an icon inside the
   anchor, an underline on the anchor would run under the mark too. */
.foot-nav a span {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--d-mid) var(--ease-out);
}
/* Every entry carries a mark so the column reads as one list. The two brand
   marks are filled and the rest are stroked, which at 15px in a muted ink
   reads as the same weight. */
.foot-nav .fi { width: 15px; height: 15px; flex: none; fill: none;
  stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
.foot-nav .fi.brand { fill: currentColor; stroke: none }
@media (hover: hover) {
  .foot-nav a:hover { color: var(--accent) }
  .foot-nav a:hover span { background-size: 100% 1px }
}
@media (max-width: 600px) { .foot-in { flex-direction: column } }

/* ---------- colophon ---------- */
.colophon {
  width: min(100% - 2 * var(--gap), var(--maxw));
  margin: clamp(22px, 3vw, 36px) auto 0;
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--edge);
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  align-items: baseline; justify-content: space-between;
}
.colo-build { font-size: 0.75rem; color: var(--ink-3); line-height: 1.5; max-width: 72ch }
.colo-build b { color: var(--ink-2); font-weight: 500 }
.colo-k {
  font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--edge); border-radius: 999px;
  padding: 4px 9px; margin-right: 8px; white-space: nowrap;
}
.colo-right {
  display: flex; align-items: baseline; gap: 16px;
  font: 400 0.75rem/1.4 var(--font-mono); color: var(--ink-3); white-space: nowrap;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .p-id, .p-pipe, .p-own, .p-exp, .p-lead, .p-stack, .p-focus {
    grid-column: 1 / 13; grid-row: auto; align-self: stretch;
  }
  .stats { grid-template-columns: repeat(3, 1fr) }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr) }
  .fanout .fan-labels text { font-size: 15px }
  .fanout .owner-tag, .fanout .sub-tag { font-size: 13px }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
  .fanout .pulse { opacity: 0 }
  .fanout .gate { fill: var(--accent) }
  .fanout .gate-ring { opacity: 0 }
  .fanout .gate-tick { stroke-dashoffset: 0; opacity: 1 }
}

/* ---------- print ---------- */
@media print {
  :root { --bg:#fff; --panel:#fff; --panel-2:#fff; --edge:#ccc; --ink:#000; --ink-2:#333; --ink-3:#555; --accent:#000; --warn:#555 }
  .panel { break-inside: avoid; margin-bottom: 8px; box-shadow: none }
  .panel::before, .fanout .pulse, .skip-link, .progress { display: none }
  * { animation: none !important; transition: none !important }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9px }
}
