/* Palette pulled from the UP sablay weave in the hero photo.
   Ink is a soft black. Body and muted text sit evenly above it. */
:root {
  --ink: #0a0a0a;
  --paper: #fff;
  --text: #2e2e2e;
  --muted: #636363;
  --line: #e4e4e4;
  --maroon: #8b1539;
  --marigold: #ff9f1c;
  --cobalt: #2b44e0;
  --leaf: #1e8a4e;
  --sun: #ffd23f;
  --amber: #ffb82d;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
p,
h1,
h2,
h3,
figure {
  margin: 0;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

/* Shared wide display type */
.name,
.role,
.statement,
.section-title,
.metric strong,
.footer-title {
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
}

/* Woven sablay disc. Stops are in percent so it scales with any size. */
.weave {
  display: inline-block;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 8%,
      var(--marigold) 8% 11.5%,
      transparent 11.5% 19%,
      var(--cobalt) 19% 21.5%,
      transparent 21.5% 29%,
      var(--leaf) 29% 31.5%,
      transparent 31.5% 40%
    ),
    var(--maroon);
}
.brand-icon {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand-icon {
  border-radius: 50%;
  object-fit: cover;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-stretch: 112%;
  text-decoration: none;
  color: var(--ink);
}
.brand--light {
  color: var(--paper);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  /* Underline is a gradient pinned left. It grows right on hover and shrinks back left on leave. */
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1.5px
    no-repeat;
  transition: background-size 0.3s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background-size: 100% 1.5px;
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
/* Hover inverts to white. The black outline keeps the shape. */
.btn--ink {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.btn--ink:hover,
.btn--ink:focus-visible {
  background: var(--paper);
  color: var(--ink);
}
.btn--ink:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Hero */
.hero {
  padding-top: clamp(12px, 3vw, 36px);
}

.name {
  font-size: clamp(2.7rem, 13vw, 10.6rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.o-robot {
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  margin-inline: 0.02em;
  /* Round shapes look small at cap height. Overshoot and center it. */
  vertical-align: -0.06em;
}

.hero-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: clamp(10px, 1.6vw, 20px);
  padding-left: 0.3em;
}

.role {
  font-size: clamp(1.4rem, 3.6vw, 2.9rem);
  line-height: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px;
  background: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.pill-knob {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.pill-label {
  margin-left: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  text-decoration: none;
}
/* Only the yellow label is the link. The black shell stays inert. */
.pill-label:hover {
  background: #f5c000;
}

.creds {
  max-width: 46ch;
  margin-top: 14px;
  padding-left: 0.3em;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

/* Stage. White on top, black band below, portrait straddles the seam. */
.stage {
  /* Portrait width, and its radius including the white border. Tags are placed from these. */
  --pw: clamp(250px, 36vw, 440px);
  --pr: calc(var(--pw) / 2 + 6px);
  position: relative;
  height: clamp(400px, 50vw, 600px);
  margin-top: clamp(-10px, -2vw, 0px);
  overflow: hidden;
  isolation: isolate;
}
.stage::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: var(--ink);
  z-index: -1;
}

.portrait {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
}

.portrait {
  bottom: 9%;
  width: var(--pw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 22%;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--paper);
}

.badge {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  top: 2%;
  width: clamp(104px, 12vw, 150px);
  aspect-ratio: 1;
  z-index: 2;
}
.badge svg {
  width: 100%;
  height: 100%;
}
.badge text {
  font-family: var(--font);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 13px;
  fill: var(--ink);
}
.weave--badge {
  position: absolute;
  inset: 31%;
  width: auto;
  height: auto;
}

/* Floating tags. Placed in portrait radii from its center so they never cover the photo.
   a is the horizontal gap to the tag's inner edge. b is the vertical offset. */
.tag {
  position: absolute;
  left: calc(50% + var(--side) * var(--a) * var(--pr));
  top: calc(91% - var(--pr) + 6px + var(--b) * var(--pr));
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: translate(var(--pull), -50%);
  --amp: -6px;
  --dur: 7s;
  animation:
    tag-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--in) backwards,
    tag-drift calc(var(--dur) * var(--k, 1)) ease-in-out calc(var(--in) + 0.9s)
      infinite;
  transition:
    scale 0.25s ease,
    opacity 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}
/* Left tags hang off their right edge, right tags off their left edge. Longer text grows outward. */
.tag--l {
  --side: -1;
  --pull: -100%;
}
.tag--r {
  --side: 1;
  --pull: 0%;
}
.tag--front {
  padding: 0.9em 1.4em;
  font-size: clamp(0.72rem, 0.38rem + 0.53vw, 0.86rem);
  box-shadow: 0 14px 28px rgb(0 0 0 / 60%);
}
.tag--mid {
  padding: 0.8em 1.25em;
  font-size: clamp(0.68rem, 0.36rem + 0.49vw, 0.8rem);
}
.tag--back {
  z-index: 1;
  padding: 0.75em 1.2em;
  font-size: clamp(0.6rem, 0.33rem + 0.42vw, 0.68rem);
  background: #333;
  color: #d6d6d6;
  opacity: 0.8;
  filter: blur(0.4px);
  --amp: -3px;
  --dur: 10s;
}
/* Vary the loop length so tags never bob in sync */
.tag:nth-child(3n + 2) {
  --k: 1.2;
}
.tag:nth-child(3n) {
  --k: 0.85;
}

.tag:hover {
  scale: 1.06;
}
.tag--front:hover,
.tag--mid:hover {
  box-shadow: 0 20px 36px rgb(0 0 0 / 70%);
}
.tag--back:hover {
  scale: 1.15;
  opacity: 1;
  filter: none;
}

/* Tags start hidden behind the portrait and glide out. */
@keyframes tag-in {
  from {
    left: 50%;
    top: 54%;
    opacity: 0;
    scale: 0.4;
    z-index: 1;
  }
}
/* Tags wait behind the portrait until the script sees the whole photo */
.js .stage:not(.is-in) .tag {
  animation-play-state: paused;
}

@keyframes tag-drift {
  50% {
    translate: 0 var(--amp);
  }
}

/* Tag icons */
.ico {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
/* Hero tags are pale tints of the brand colors, with the full color as text */
.tag--cobalt {
  background: color-mix(in srgb, var(--cobalt) 26%, #fff);
  color: var(--cobalt);
}
.tag--maroon {
  background: color-mix(in srgb, var(--maroon) 24%, #fff);
  color: var(--maroon);
}
.tag--sun {
  background: color-mix(in srgb, var(--sun) 40%, #fff);
  color: #6b4e00;
}
.tag--amber {
  background: color-mix(in srgb, var(--amber) 40%, #fff);
  color: #7a4300;
}
.tag--leaf {
  background: color-mix(in srgb, var(--leaf) 26%, #fff);
  color: var(--leaf);
}

/* Statement and growth */
.intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 120px) clamp(32px, 5vw, 64px);
}

.statement {
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  line-height: 0.98;
  max-width: 12ch;
}

.growth {
  padding: clamp(22px, 3vw, 34px);
  border: 1.5px solid var(--line);
  border-radius: 20px;
}
.growth figcaption {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.bars {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.bar-row {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-stretch: 112%;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bar {
  display: block;
  height: 26px;
  width: var(--w);
  min-width: 6px;
  border-radius: 4px;
}
.bar--start {
  background: var(--marigold);
}
.bar--end {
  background: var(--cobalt);
}

.growth-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Section heads */
.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.3rem, 6.4vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.section-title .indent {
  padding-left: 1.6em;
}

.section-sub {
  max-width: 40ch;
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.45;
  color: var(--text);
}

/* Impact Delivered */
.impact {
  /* Last section before the footer. A short gap keeps the footer in view. */
  padding-block: clamp(32px, 5vw, 64px) clamp(40px, 5vw, 64px);
}

.jobs {
  border-top: 2px solid var(--ink);
}

/* Quiet footnote. It should read as fine print. */
.metrics-note {
  max-width: 60ch;
  margin-top: 20px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.75;
}

.job {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 230px;
  gap: 24px clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 5vw, 64px);
  border-bottom: 1.5px solid var(--line);
}

.job-when {
  font-weight: 700;
  font-stretch: 112%;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.4;
}
.job-note {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  font-stretch: 100%;
  font-size: 0.82rem;
  color: var(--muted);
}

.job-role {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 850;
  font-stretch: 115%;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

/* Company sits on a tilted tag */
.job-org {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  background: var(--accent);
  color: var(--on);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 0.88rem;
  transform: rotate(-1.5deg);
}

.wins {
  display: grid;
  gap: 14px;
  max-width: 66ch;
  margin-top: 26px;
}
.wins li,
details li {
  position: relative;
  padding-left: 22px;
}
.wins li::before,
details li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}
.wins strong,
details strong {
  color: var(--ink);
  font-weight: 700;
}
.wins a {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 70ch;
  margin-top: 24px;
}
.stack li {
  padding: 4px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
}

details {
  margin-top: 22px;
  max-width: 66ch;
}
summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
details[open] summary::before {
  transform: rotate(45deg);
}
details ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.metric {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--on);
}
.metric strong {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1;
  white-space: nowrap;
  color: inherit;
}
.metric span {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Highlights */
.highlights {
  padding-block: clamp(40px, 6vw, 80px) clamp(72px, 10vw, 130px);
}
.nda {
  max-width: 34ch;
  padding-left: 16px;
  border-left: 3px solid var(--marigold);
  font-size: 0.95rem;
  color: var(--muted);
}
/* Story. Five chapters hang off a spine that fills as you scroll. */
.story {
  --spine: clamp(28px, 4vw, 56px);
  position: relative;
  display: grid;
  gap: clamp(72px, 10vw, 136px);
  padding-left: var(--spine);
}
.story::before,
.story::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
/* Filled part of the spine. The script sets --fill from 0 to 1. */
.story::after {
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(var(--fill, 1));
}
.js .story::after {
  transform: scaleY(var(--fill, 0));
}

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px clamp(28px, 5vw, 72px);
  align-items: start;
}
/* Media sits left on every other chapter for rhythm */
.chapter:nth-child(even) .ch-media {
  order: -1;
}
/* Keep the bridge under the text column when media sits left */
.chapter:nth-child(even) .ch-bridge {
  grid-column: 2;
}
/* Chapter dot. It takes the chapter color once the spine reaches it. */
.chapter::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(var(--spine) * -1);
  top: 0.55em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  transition: background-color 0.3s ease;
}
.chapter.is-lit::before,
html:not(.js) .chapter::before {
  background: var(--accent);
}

.ch-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-content: start;
  max-width: 34rem;
}
.ch-title {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 900;
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
/* Longer headline. Sized down so it still fits two lines in its column. */
.ch-title--long {
  font-size: clamp(1.3rem, 2.6vw, 2.25rem);
}
.ch-lede {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.55;
}
.ch-lede strong,
.ch-insight {
  color: var(--ink);
  font-weight: 700;
}
.ch-label {
  margin-top: 6px;
  font-weight: 800;
  font-stretch: 112%;
  color: var(--ink);
}
.ch-insight {
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--accent);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.4;
}
/* Hand-off line into the next chapter. Always the last row, under text and media. */
.ch-bridge {
  grid-column: 1 / -1;
  order: 1;
  max-width: 34rem;
  padding-top: 16px;
  border-top: 1.5px dashed var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.ch-media {
  min-width: 0;
}
.ch-media figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Podium. Each level stands a little taller. */
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
  height: 150px;
}
.podium li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  height: var(--h);
  padding: 10px 12px;
  border-radius: 10px 10px 0 0;
  background: color-mix(in srgb, var(--accent) calc(var(--h) * 0.85), #fff);
  color: var(--ink);
  line-height: 1.15;
}
.podium li:last-child {
  color: var(--paper);
}
.podium span {
  font-weight: 800;
  font-stretch: 112%;
  font-size: 0.92rem;
}
.podium small {
  font-size: 0.72rem;
  opacity: 0.85;
}

.video {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent) 30%, #fff);
}
.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Graduation photo with a tilted honor tag, like the company tags above */
.grad {
  position: relative;
  width: min(100%, 340px);
  justify-self: start;
}
.grad img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}
/* Photo is taller than the text. It spans both rows so the bridge tucks right under the text. */
@media (min-width: 961px) {
  /* Photo column shrinks to the photo, so the text sits a normal gap away */
  .chapter:has(.grad) {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .chapter:has(.grad) .grad {
    grid-row: 1 / span 2;
    width: clamp(340px, 34vw, 420px);
  }
  /* Text fills the rest of the row instead of stopping short */
  .chapter:has(.grad) .ch-text,
  .chapter:has(.grad) .ch-bridge {
    max-width: none;
  }
  .chapter:has(.grad) .ch-bridge {
    grid-column: 2;
    align-self: start;
  }
}
.ch-media .grad-tag {
  position: absolute;
  left: -16px;
  bottom: 28px;
  display: grid;
  margin: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on);
  font-weight: 900;
  font-stretch: 118%;
  font-size: 1.05rem;
  line-height: 1.2;
  transform: rotate(-2deg);
}
.grad-tag span {
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.78rem;
  opacity: 0.9;
}

.ch-lists {
  display: grid;
  gap: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, #fff);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}
.ch-link {
  justify-self: start;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.ch-link:hover,
.ch-link:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* Student builds. Tall humanoid on the left, three wide shots stacked right. */
.mosaic {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 10px;
}
.mosaic figure {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--line);
}
.mosaic img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.mosaic .mosaic-tall {
  grid-row: 1 / -1;
}
.mosaic-tall img {
  aspect-ratio: auto;
  object-position: 60% 30%;
}
.ch-media.mosaic figcaption {
  position: absolute;
  left: 8px;
  top: 8px;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Government feature list with line icons */
.feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.feats li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.45;
}
/* Lead phrase sits on its own line so the list scans fast */
.feats strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}
.feats .ico {
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  color: var(--accent);
}

.art {
  display: block;
  width: 100%;
  height: auto;
}
.art text {
  font-family: var(--font);
}
.art-cap {
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
}
.art-code {
  font-size: 12.5px;
  font-weight: 700;
  fill: var(--leaf);
}
.art-big {
  font-size: 17px;
  font-weight: 900;
  font-stretch: 118%;
  fill: var(--sun);
}
.art-small {
  font-size: 12px;
  font-weight: 500;
  fill: #d6d6d6;
}
.art-zz {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 900;
  fill: var(--cobalt);
}
.art-zz--s {
  font-size: 18px;
}
.art-row text {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  fill: #fff;
}
.art-row .art-hl {
  fill: var(--sun);
}
.art-row .art-off {
  font-weight: 500;
  fill: #8a8a8a;
}
.art-note {
  font-size: 11px;
  font-weight: 500;
  fill: var(--muted);
}
.art-say {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 800;
  font-stretch: 112%;
  fill: var(--muted);
}
.art-arrow {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-on {
  fill: #fff;
  font-weight: 800;
}
.art-chip {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  fill: #fff;
}
/* Request dots travel into the system. Slow and quiet. */
.flow {
  animation: flow 2.4s linear infinite;
}
@keyframes flow {
  to {
    stroke-dashoffset: -22;
  }
}

.ch-metric {
  margin-top: 16px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}
.next {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1.5px dashed var(--accent);
  border-radius: 14px;
  font-size: 0.92rem;
}
.next .ico {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.next b {
  color: var(--ink);
}

/* Last chapter spans the row. Three builds side by side, then the closing line. */
.chapter--last {
  grid-template-columns: minmax(0, 1fr);
}
/* Builds stay under the heading whatever the chapter count */
.chapter--last:nth-child(n) .ch-media {
  order: 0;
}
.chapter--last .ch-text {
  max-width: none;
}
.kid-builds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
}
.kid-builds li {
  display: grid;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}
.kid-builds svg {
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.ch-close {
  max-width: 30ch;
  margin-top: 8px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  font-stretch: 118%;
  line-height: 1.1;
  color: var(--muted);
  text-wrap: balance;
}
.ch-close span {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}

/* Footer. A loud closing line, then a quiet nav row. */
.footer {
  background: var(--ink);
  color: var(--paper);
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(72px, 10vw, 128px) clamp(48px, 6vw, 72px);
}
.footer-title {
  color: var(--paper);
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 0.92;
}
.footer-title .hl {
  color: var(--sun);
}
.footer-title .dot {
  margin-left: 0.06em;
  color: var(--sun);
}
.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}
.footer-btn span {
  transition: translate 0.2s ease;
}
.footer-btn:hover {
  background: #f5c000;
}
.footer-btn:hover span {
  translate: 4px 0;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 32px 40px;
  /* Hairline sits inside the gutters so it lines up with the text */
  background: linear-gradient(#2a2a2a, #2a2a2a) top center /
    calc(100% - var(--gutter) * 2) 1px no-repeat;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.92rem;
}
.footer-links a {
  text-decoration: none;
  color: #d6d6d6;
}
.footer-links a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.copy {
  font-size: 0.85rem;
  color: #a8a8a8;
}

/* Tablet and down. Not enough room to float tags around the portrait. */
@media (max-width: 900px) {
  .stage {
    height: auto;
    padding: 370px var(--gutter) 48px;
  }
  .stage::before {
    inset: 180px 0 0;
    height: auto;
  }
  .portrait {
    top: 50px;
    bottom: auto;
    width: 260px;
  }
  .tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 760px;
    margin-inline: auto;
  }
  .tags-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 10px;
  }
  /* Domains always sit three and three */
  .tags-group--domains {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-items: center;
  }
  /* Rows stay level here. Idle drift only reads well when tags are scattered. */
  .tag {
    position: static;
    transform: none;
    animation: tag-pop 0.6s ease var(--in) backwards;
  }
  /* One size for every credential so the rows look even */
  .tag--front,
  .tag--mid {
    font-size: 0.76rem;
    padding: 0.85em 1.3em;
    box-shadow: none;
  }
  .tag--back {
    font-size: 0.66rem;
  }
  .tag--back {
    opacity: 0.9;
    filter: none;
  }
}
@keyframes tag-pop {
  from {
    opacity: 0;
    scale: 0.8;
  }
}

/* Tablet */
@media (max-width: 960px) {
  .job {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .job-when {
    grid-column: 1 / -1;
  }
  .intro {
    grid-template-columns: 1fr;
  }
  .chapter {
    grid-template-columns: minmax(0, 1fr);
  }
  .chapter:nth-child(even) .ch-media {
    order: 0;
  }
  .chapter:nth-child(even) .ch-bridge {
    grid-column: 1;
  }
  .ch-text {
    max-width: 40rem;
  }
  .ch-title--long {
    font-size: clamp(1.3rem, 5vw, 2.25rem);
  }
}

/* Phone */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Move the connect pill under the creds line. Desktop keeps it beside the role. */
  .hero .wrap {
    display: flex;
    flex-direction: column;
  }
  .hero-sub {
    display: contents;
  }
  .role {
    margin-top: 10px;
    padding-left: 0.3em;
  }
  .pill {
    order: 1;
    align-self: flex-start;
    margin: 18px 0 0 0.3em;
  }

  .badge {
    top: 0;
    width: 88px;
  }

  .job {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .job-when {
    margin-bottom: 14px;
  }
  .metric {
    margin-top: 26px;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
  }
  .section-title .indent {
    padding-left: 0.8em;
  }

  .feats {
    grid-template-columns: 1fr;
  }
  .kid-builds {
    grid-template-columns: 1fr 1fr;
  }
  .kid-builds li:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
  }
  .podium small {
    font-size: 0.66rem;
  }
  .grad .grad-tag {
    left: -8px;
  }
}

/* Small phones. Smaller portrait and tags keep the block short. */
@media (max-width: 480px) {
  .stage {
    padding: 290px var(--gutter) 36px;
  }
  .stage::before {
    top: 145px;
  }
  .portrait {
    top: 45px;
    width: 200px;
  }
  .tags {
    gap: 14px;
  }
  .tags-group {
    gap: 8px 6px;
  }
  /* Text eases down on narrow phones so credentials still pair up */
  .tag--front,
  .tag--mid {
    font-size: min(0.6rem, 2.5vw);
    padding: 0.85em 1.1em;
    gap: 0.5em;
  }
  .tag--back {
    font-size: min(0.55rem, 2.3vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tag {
    animation: none;
  }
  .nav-links a {
    transition: none;
  }
  summary::before {
    transition: none;
  }
  .btn--ink {
    transition: none;
  }
  .flow {
    animation: none;
  }
  .chapter::before,
  .ch-link {
    transition: none;
  }
}
