/* =========================================================================
   Rahul Varma Alluri — Data Engineer portfolio
   Design system: warm off-white base + one molten accent. Editorial type,
   mono for technical labels. One signature interaction (pipeline diagram).
   ========================================================================= */

:root {
  /* Neutrals */
  --bg:        #faf9f6;
  --surface:   #ffffff;
  --surface-2: #f4f1ea;
  --ink:       #17140f;
  --ink-2:     #443f38;
  --muted:     #7c756b;
  --hairline:  #e7e1d6;

  /* One accent — molten, complements the cool tones elsewhere */
  --accent:      #e35205;
  --accent-ink:  #b23f02;   /* accent used as text on light bg */
  --accent-tint: #fcecdf;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
          system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  /* Structure */
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 20, 15, .04),
            0 12px 32px -12px rgba(23, 20, 15, .12);
  --shadow-lift: 0 2px 4px rgba(23, 20, 15, .05),
                 0 22px 48px -16px rgba(23, 20, 15, .22);

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

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.02em; font-weight: 640; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- helpers */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--accent);
  display: inline-block;
}
.section { padding-block: clamp(64px, 10vw, 128px); }
/* keep anchored headings clear of the sticky nav */
#top, #work, #skills, #experience, #contact { scroll-margin-top: 76px; }
.section--alt { background: var(--surface); border-block: 1px solid var(--hairline); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__title { font-size: clamp(28px, 4.4vw, 44px); }
.section__lede { color: var(--ink-2); font-size: clamp(16px, 2vw, 19px); margin: 16px 0 0; }

/* ---------------------------------------------------------------- button */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 560; font-size: 15.5px; letter-spacing: -.01em;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease),
              box-shadow .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(227, 82, 5, .7);
}
.btn--primary:hover { background: var(--accent-ink); box-shadow: 0 12px 26px -8px rgba(227, 82, 5, .55); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

/* ==================================================================== nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav[data-scrolled="true"] { border-color: var(--hairline); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.brand__name { font-size: 15.5px; }
.brand__name small { color: var(--muted); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link[aria-current="true"] { color: var(--accent-ink); }
.nav__link .num { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-right: 6px; }
.nav__link[aria-current="true"] .num { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.nav__cta { padding: 10px 18px; font-size: 14.5px; }
.nav__toggle {
  display: none; width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--hairline); background: var(--surface);
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .x { display: none; }
.nav[data-open="true"] .nav__toggle .x { display: block; }
.nav[data-open="true"] .nav__toggle .bars { display: none; }

/* =================================================================== hero */
.hero { padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 88px); }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__eyebrow { font-size: 13px; }
.hero__title {
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.02; letter-spacing: -.028em; font-weight: 660;
  margin: 0 0 24px; max-width: 15ch;
}
.hero__title .accent { color: var(--accent-ink); }
.hero__sub {
  font-size: clamp(16px, 2.1vw, 20px); color: var(--ink-2);
  max-width: 46ch; margin: 0 0 30px; line-height: 1.5;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__cred {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  padding-top: 22px; border-top: 1px solid var(--hairline);
}
.hero__cred span { display: inline-flex; align-items: center; gap: 8px; }
.hero__cred span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* portrait with graceful placeholder fallback */
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; background: #1a2740; box-shadow: var(--shadow-lift);
  border: 1px solid var(--hairline);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.portrait__ph {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center; gap: 10px;
  color: #cdd6e6; background:
    radial-gradient(120% 90% at 50% 0%, #24365a 0%, #16233c 60%, #101a2e 100%);
  font-family: var(--mono); text-align: center;
}
.portrait__ph b { font-size: 44px; letter-spacing: .06em; color: #f2f5fb; font-weight: 600; }
.portrait__ph small { font-size: 11px; letter-spacing: .1em; opacity: .7; }
.portrait__badge {
  position: absolute; z-index: 3; left: 14px; bottom: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 8px 12px; font-family: var(--mono); font-size: 11.5px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow);
}
.portrait__badge b { color: var(--accent-ink); font-weight: 600; }

/* ============================================================ proof strip */
.proof { border-block: 1px solid var(--hairline); background: var(--surface); }
.proof__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: var(--maxw); margin-inline: auto;
}
.proof__item { padding: clamp(30px, 4vw, 48px) var(--pad); }
.proof__item + .proof__item { border-left: 1px solid var(--hairline); }
.proof__stat {
  font-size: clamp(30px, 4.4vw, 46px); font-weight: 660; letter-spacing: -.03em;
  line-height: 1; margin-bottom: 12px;
}
.proof__stat .to { color: var(--accent-ink); font-family: var(--mono); font-size: .62em; }
.proof__label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px;
}
.proof__desc { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ================================================================== work */
.case { position: relative; }
.case + .case { margin-top: clamp(48px, 7vw, 90px); padding-top: clamp(48px, 7vw, 90px); border-top: 1px solid var(--hairline); }
.case__meta {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 18px;
}
.tag {
  padding: 4px 11px; border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--ink-2); background: var(--surface);
}
.tag--accent { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, var(--hairline)); background: var(--accent-tint); }
.case__title { font-size: clamp(24px, 3.4vw, 36px); max-width: 20ch; }
.case__intro { color: var(--ink-2); font-size: clamp(16px, 2vw, 18px); max-width: 60ch; margin: 16px 0 0; }

/* --------------------------------------- signature interaction: pipeline */
.pipe {
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.pipe__hint {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 20px; border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.pipe__hint .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%,100% { box-shadow: 0 0 0 9px transparent; }
}

.pipe__track {
  position: relative; display: flex; align-items: stretch;
  gap: 10px; padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 28px);
}
/* connecting line behind the nodes */
.pipe__track::before {
  content: ""; position: absolute; z-index: 0;
  left: clamp(48px, 9vw, 92px); right: clamp(48px, 9vw, 92px);
  top: 50%; height: 2px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--hairline) 0 8px, transparent 8px 14px);
}
.node {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--hairline);
  transition: transform .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease), background .2s var(--ease);
  text-align: center;
}
.node:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--hairline)); box-shadow: var(--shadow); }
.node[aria-selected="true"] {
  border-color: var(--accent); background: var(--accent-tint);
  box-shadow: 0 10px 24px -12px rgba(227, 82, 5, .5);
}
.node__ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.node[aria-selected="true"] .node__ico { background: var(--accent); color: #fff; }
.node__ico svg { width: 20px; height: 20px; }
.node__meta { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.node__step { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.node__name { font-size: 14px; font-weight: 560; letter-spacing: -.01em; }
.node[aria-selected="true"] .node__name { color: var(--accent-ink); }

/* detail panel */
.pipe__detail {
  border-top: 1px solid var(--hairline);
  padding: clamp(24px, 3.4vw, 36px) clamp(20px, 3vw, 32px);
  background: var(--surface-2);
}
.stage { display: none; }
.stage[data-active="true"] { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
/* without JS, show first panel */
html:not(.js) .stage:first-of-type { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; }
.stage__step { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.stage__name { font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 12px; }
.stage__body { color: var(--ink-2); font-size: 16px; max-width: 62ch; margin: 0 0 16px; }
.stage__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11.5px; padding: 5px 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--hairline); color: var(--ink-2); }
.stage__metric {
  justify-self: end; min-width: 190px;
  background: var(--ink); color: var(--bg); border-radius: 14px;
  padding: 22px; text-align: left; box-shadow: var(--shadow-lift);
}
.stage__metric .val { font-size: clamp(26px, 3.4vw, 34px); font-weight: 660; letter-spacing: -.02em; line-height: 1; }
.stage__metric .val .to { color: #ff8f52; font-family: var(--mono); font-size: .6em; }
.stage__metric .cap { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: #b8b2a6; margin-top: 12px; text-transform: uppercase; }

.case__nudge {
  margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 3vw, 28px); border-radius: var(--radius);
  background: var(--surface); border: 1px dashed var(--hairline);
}
.case__nudge p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.case__nudge b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------- secondary project cards */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.pcard {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--hairline)); }
.pcard__meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.pcard__title { font-size: 20px; margin-bottom: 10px; }
.pcard__body { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; }
.pcard__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.pcard__stats .chip { background: var(--surface-2); }
.pcard__stats .chip b { color: var(--accent-ink); font-weight: 600; }

/* ============================================================== SKILLS */
.spine {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-top: clamp(30px, 4vw, 46px); position: relative;
}
.spine__stage {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; position: relative;
}
.spine__stage:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2; right: -12px; top: 46px;
  width: 12px; height: 12px; border-top: 2px solid var(--hairline); border-right: 2px solid var(--hairline);
  transform: rotate(45deg); background: var(--bg);
}
.spine__head { display: flex; align-items: center; gap: 11px; }
.spine__ico { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-tint); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.spine__ico svg { width: 18px; height: 18px; }
.spine__step { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spine__name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.spine__list { display: flex; flex-wrap: wrap; gap: 6px; }
.spine__list .chip { font-size: 11px; padding: 4px 9px; }

.skillcats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.skillcat { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 20px; }
.skillcat h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 12px; font-weight: 600; }
.skillcat__chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ========================================================== EXPERIENCE */
.timeline { display: grid; gap: 0; margin-top: clamp(24px, 3vw, 40px); }
.xp {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: clamp(26px, 3.4vw, 38px) 0; border-top: 1px solid var(--hairline);
}
.xp:first-child { border-top: none; }
.xp__when { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.xp__when .co { display: block; color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 16px; margin-top: 8px; letter-spacing: -.01em; }
.xp__when .loc { display: block; margin-top: 4px; }
.xp__role { font-size: clamp(18px, 2.4vw, 22px); margin-bottom: 14px; }
.xp__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.xp__list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; }
.xp__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.xp__list b { color: var(--ink); font-weight: 640; }

.credrow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(30px, 4vw, 48px); }
.credbox { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 24px; }
.credbox h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 16px; font-weight: 600; }
.credbox ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.credbox li b { display: block; font-weight: 600; letter-spacing: -.01em; }
.credbox li span { color: var(--muted); font-size: 14px; font-family: var(--mono); }

/* =============================================================== contact */
.contact { background: var(--ink); color: var(--bg); }
.contact .eyebrow { color: #ff8f52; }
.contact .eyebrow::before { background: #ff8f52; }
.contact__title { font-size: clamp(30px, 5vw, 52px); max-width: 16ch; }
.contact__lede { color: #cbc6bc; font-size: clamp(16px, 2vw, 19px); max-width: 52ch; margin: 18px 0 32px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.contact .btn--ghost { color: var(--bg); border-color: rgba(255,255,255,.22); }
.contact .btn--ghost:hover { border-color: var(--bg); background: rgba(255,255,255,.06); }
.contact__links { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--mono); font-size: 14px; }
.contact__links a { color: #cbc6bc; display: inline-flex; align-items: center; gap: 8px; transition: color .15s var(--ease); }
.contact__links a:hover { color: #fff; }
.placeholder-note { display:inline-block; font-family: var(--mono); font-size: 10px; color:#ff8f52; border:1px solid rgba(255,143,82,.4); border-radius:5px; padding:1px 5px; margin-left:7px; letter-spacing:.05em; vertical-align: middle; }

/* footer */
.foot { background: var(--ink); color: #8f887d; border-top: 1px solid rgba(255,255,255,.1); }
.foot__inner { max-width: var(--maxw); margin-inline: auto; padding: 26px var(--pad); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; }

/* ============================================================ animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =========================================================== responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 320px; }
  .proof__grid { grid-template-columns: 1fr; }
  .proof__item + .proof__item { border-left: none; border-top: 1px solid var(--hairline); }
  .spine { grid-template-columns: 1fr 1fr; }
  .spine__stage::after { display: none; }
  .skillcats { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr; }
  .xp { grid-template-columns: 1fr; gap: 14px; }
  .xp__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
  .xp__when .co { margin-top: 0; }
  .credrow { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--hairline);
    padding: 8px var(--pad) 16px; box-shadow: var(--shadow); display: none;
  }
  .nav[data-open="true"] .nav__links { display: flex; }
  .nav__link { padding: 13px 8px; font-size: 16px; border-radius: 8px; }
  .nav__toggle { display: inline-flex; }
  .spine { grid-template-columns: 1fr; }
  .skillcats { grid-template-columns: 1fr; }
  .stage[data-active="true"], html:not(.js) .stage:first-of-type { grid-template-columns: 1fr; }
  .stage__metric { justify-self: stretch; min-width: 0; }
  /* pipeline goes vertical */
  .pipe__track { flex-direction: column; gap: 10px; }
  .pipe__track::before { display: none; }
  .node { flex-direction: row; justify-content: flex-start; gap: 14px; text-align: left; padding: 14px 16px; }
  .node__meta { display: flex; flex-direction: column; gap: 2px; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
