/* Gaurav Ghop: drafting-sheet portfolio (round 3).
   Palette: paper ground, blueprint navy as the dominant, cyan as the signal.
   Rule: every section head is full width, so every dimension rule is the same length. */

:root {
  --paper: #F4F1EA;
  --paper-2: #FBFAF6;
  --tint: #ECE8DD;
  --ink: #0D2A47;
  --navy: #0D3B66;
  --cyan: #9FDBFF;
  --cyan-ink: #0B5C8F;
  --muted: #4F5D6E;
  --line: rgba(13, 59, 102, .22);
  --line-dark: rgba(159, 219, 255, .28);
  --on-dark: #EAF3FB;
  --on-dark-2: #C4D7EA;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6rem;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(13, 59, 102, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 59, 102, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; }
.kicker {
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan-ink);
}
.dark .kicker { color: var(--cyan); }

:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 3px; }
.dark :focus-visible, .site-foot :focus-visible { outline-color: var(--cyan); }

.skip {
  position: absolute; left: 12px; top: 0; z-index: 100;
  background: var(--cyan); color: var(--navy); padding: 12px 16px;
  transform: translateY(-160%); text-decoration: none; font-weight: 600;
}
.skip:focus { transform: translateY(12px); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand {
  font-family: var(--f-display); font-weight: 800; font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  color: var(--navy); padding: 10px 0;
}
.nav-desk { display: none; gap: 28px; }
.nav-desk a, .nav-menu nav a {
  font-size: .95rem; text-decoration: none; color: var(--ink);
  background-image: linear-gradient(var(--cyan-ink), var(--cyan-ink));
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding: 10px 0;
}
.nav-desk a:hover { background-size: 100% 1px; }

.nav-menu { position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center; padding: 0 16px;
  font-family: var(--f-mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--navy); color: var(--navy);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--navy); color: var(--on-dark); }
.nav-menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: var(--paper-2); border: 1px solid var(--navy);
  box-shadow: 6px 6px 0 var(--cyan);
  display: flex; flex-direction: column; padding: 6px 18px;
}
.nav-menu nav a { min-height: 44px; display: flex; align-items: center; padding: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 22px; font-weight: 600; text-decoration: none; font-size: .98rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: #C4E9FF; transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--cyan); color: var(--cyan); }
.btn-ghost:hover { background: rgba(159, 219, 255, .12); }
.btn-quiet { border: 1.5px solid var(--on-dark-2); color: var(--on-dark); }
.btn-quiet:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Hero ---------- */
.dark { background-color: var(--navy); color: var(--on-dark); background-image: none; }
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 0;
  background-image:
    linear-gradient(rgba(159, 219, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 219, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  background-color: var(--navy);
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px; border: 1px solid var(--line-dark); border-radius: 50%;
  pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(4.4rem, 14vw, 10.5rem); line-height: .84; letter-spacing: -.005em;
  margin: 18px 0 22px; color: var(--on-dark);
}
.h1-b { display: block; color: var(--cyan); }
.headline {
  font-size: 1.2rem; font-weight: 500; color: var(--cyan); max-width: 36ch; line-height: 1.4;
}
.summary { margin-top: 22px; font-size: 1.08rem; color: var(--on-dark-2); max-width: 60ch; line-height: 1.66; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }

.plate { position: relative; justify-self: center; width: min(100%, 360px); }
.plate::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--cyan); pointer-events: none;
}
.plate img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  object-position: center top; filter: saturate(.92) contrast(1.02);
  border: 1px solid var(--line-dark);
}
.plate figcaption {
  position: relative; z-index: 1; margin-top: 14px; color: var(--cyan); font-size: .75rem;
  background: var(--navy); padding: 4px 8px 4px 0; display: inline-block;
  text-transform: uppercase; letter-spacing: .1em;
}

.readouts {
  display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 56px;
  border-top: 1px solid var(--line-dark);
}
.readout { padding: 24px 20px 26px 0; border-bottom: 1px solid var(--line-dark); }
.readout + .readout { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.readout dd {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: .95; color: var(--on-dark); margin-top: 6px;
}
.readout dd.nowrap { white-space: nowrap; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.readout dt { font-family: var(--f-mono); font-size: .78rem; color: var(--on-dark-2); line-height: 1.45; }

/* ---------- Sheets ---------- */
.sheet { padding: 96px 0; position: relative; }
.sheet-tint {
  background-color: var(--tint);
  background-image: linear-gradient(rgba(13,59,102,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(13,59,102,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.sheet-head { width: 100%; }
.sheet-head h2 {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: .92; color: var(--navy); margin: 10px 0 0; max-width: 22ch;
}
/* One dimension rule, full width of the wrap, under every section head */
.dimline {
  margin-top: 24px; height: 14px; width: 100%;
  background:
    linear-gradient(var(--navy), var(--navy)) left 6px / 100% 1px no-repeat,
    linear-gradient(var(--navy), var(--navy)) left / 1px 100% no-repeat,
    linear-gradient(var(--navy), var(--navy)) right / 1px 100% no-repeat;
}
.sub-label {
  margin-top: 56px; color: var(--cyan-ink); text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; display: flex; align-items: center; gap: 14px;
}
.sub-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Experience ---------- */
.roles { margin-top: 48px; border-top: 1px solid var(--navy); }
.role {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.role:last-child { border-bottom: 0; }
.role-when { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); }
.role-when p { font-size: .85rem; }
.status {
  display: inline-block; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; padding: 5px 10px; border: 1px dashed var(--navy); color: var(--navy);
  background: rgba(159, 219, 255, .35);
}
.status-ended { border-style: solid; background: transparent; color: var(--muted); border-color: var(--line); }
.role-id { display: flex; gap: 18px; align-items: center; }
.logo {
  flex: 0 0 auto; width: 104px; height: 60px; display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); border: 1px solid var(--line); padding: 8px;
}
.logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.role h3 { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--navy); }
.role-title { font-weight: 500; margin-top: 4px; }
.loc { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.role-desc { color: var(--muted); max-width: 66ch; }
.role-body { display: grid; gap: 16px; min-width: 0; }
.bullets { display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; max-width: 68ch; font-size: 1rem; line-height: 1.6; }
.bullets li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px;
  background: var(--cyan-ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips li {
  font-family: var(--f-mono); font-size: .78rem; padding: 6px 10px; line-height: 1.2;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink);
}

/* ---------- Projects: featured rows ---------- */
.feature-list { display: grid; gap: 24px; margin-top: 24px; }
.proj {
  display: flex; flex-direction: column; background: var(--paper-2);
  border: 1px solid var(--line); min-width: 0;
}
.proj-visual { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.proj-visual img, .proj-visual svg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block;
}
.proj-body { padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; }
.cat { color: var(--cyan-ink); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; }
.proj h3 { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--navy); }
.proj-body > p:not(.cat):not(.links) { font-size: .98rem; line-height: 1.6; }
.proj .bullets { gap: 8px; }
.proj .bullets li { font-size: .95rem; }
.proj .chips { margin-top: 0; }
.links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: auto; }
.links a {
  display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-mono); font-size: .84rem;
  color: var(--cyan-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.links a:hover { color: var(--navy); }

/* ---------- Projects: compact ledger ---------- */
.ledger {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px;
  border-top: 1px solid var(--navy); border-left: 1px solid var(--line);
}
.mini {
  display: flex; flex-direction: column; background: var(--paper-2);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0;
  transition: background-color .2s ease;
}
.mini:hover { background: #FFFFFF; }
.mini-visual { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.mini-visual img, .mini-visual svg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block;
}
.mini-body { padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.mini h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; line-height: 1; color: var(--navy); }
.mini .cat { font-size: .68rem; }
.mini-sum { font-size: .9rem; line-height: 1.5; }
.mini .links { gap: 0 16px; margin-top: auto; }
.mini .links a { min-height: 40px; }

/* Drawn visuals (inline SVG): sized in viewBox units so labels stay legible */
.s-bg { fill: var(--navy); }
.proj-visual svg text, .mini-visual svg text {
  font-family: var(--f-mono); font-size: 16px; fill: var(--on-dark); letter-spacing: .03em;
}
.proj-visual svg .s-note, .mini-visual svg .s-note { font-size: 14px; fill: var(--cyan); }
.proj-visual svg .s-line path, .mini-visual svg .s-line path { fill: none; stroke: var(--cyan); stroke-width: 1.5; }
.proj-visual svg .s-line path[stroke-dasharray], .mini-visual svg .s-line path[stroke-dasharray] { stroke-dasharray: 5 5; }
.proj-visual svg .s-box rect, .proj-visual svg .s-chip rect,
.mini-visual svg .s-box rect, .mini-visual svg .s-chip rect { fill: #124C7C; stroke: var(--cyan); stroke-width: 1.2; }
.proj-visual svg rect.s-hot, .mini-visual svg rect.s-hot { fill: #0B6BA8; }
.proj-visual svg rect.s-warn, .mini-visual svg rect.s-warn { fill: #7A2E1A; stroke: #FFB38A; }
.proj-visual svg rect.s-dim, .mini-visual svg rect.s-dim { fill: none; stroke-dasharray: 4 4; }
.proj-visual svg .s-hot-line, .mini-visual svg .s-hot-line { fill: none; stroke: #FFB38A; stroke-width: 2; }
.proj-visual svg .s-cool-line, .mini-visual svg .s-cool-line { fill: none; stroke: var(--cyan); stroke-width: 2.5; }
.proj-visual svg .s-dash, .mini-visual svg .s-dash { stroke: var(--on-dark); stroke-opacity: .5; stroke-dasharray: 6 6; fill: none; }
.proj-visual svg .s-arrow, .mini-visual svg .s-arrow { fill: var(--cyan); }

/* ---------- Stack ---------- */
.bom { margin-top: 48px; border-top: 1px solid var(--navy); }
.bom-row {
  display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.bom-row dt { color: var(--navy); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; padding-top: 3px; }
.bom-row dd { font-size: 1rem; line-height: 1.6; max-width: 90ch; }

/* ---------- About + Education ---------- */
.about-grid { display: grid; gap: 40px; }
.about-main { display: grid; gap: 40px; align-content: start; }
.about-copy { display: grid; gap: 18px; max-width: 60ch; font-size: 1.08rem; line-height: 1.7; }
.spec { border-top: 1px solid var(--navy); }
.spec > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--cyan-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; padding-top: 3px; }
.spec dd { font-size: .98rem; }
.edu { display: grid; gap: 28px; align-content: start; }
.edu-h { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-ink); }
.edu-card { border-left: 3px solid var(--navy); padding: 4px 0 4px 22px; }
.edu-card > p.mono { color: var(--muted); font-size: .8rem; }
.edu-card h4 { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1.02; color: var(--navy); margin: 8px 0 10px; }
.edu-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.edu-meta .mono { color: var(--muted); }
.edu-card .bullets li { font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { padding: 96px 0 104px; position: relative; background-color: var(--navy); background-image: linear-gradient(rgba(159, 219, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 219, 255, .07) 1px, transparent 1px); background-size: 32px 32px; }
.contact .sheet-head h2 { color: var(--on-dark); }
.contact-grid { display: grid; gap: 40px; }
.contact-body { display: grid; gap: 26px; }
.lede { font-size: 1.22rem; line-height: 1.6; color: var(--on-dark); max-width: 46ch; }
.avail .status { color: var(--navy); background: var(--cyan); border-style: solid; border-color: var(--cyan); }
.contact-list { border-top: 1px solid var(--line-dark); }
.contact-list li {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line-dark);
}
.contact-list .mono { color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.contact-list a {
  color: var(--on-dark); font-size: 1.12rem; font-weight: 500; min-height: 44px;
  display: inline-flex; align-items: center; word-break: break-word;
  text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.contact-list a:hover { color: var(--cyan); }
.contact-list a.email { font-family: var(--f-mono); font-size: 1.02rem; }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: flex; align-items: center; padding: 96px 0; background-color: var(--navy); }
.nf h1 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.6rem, 12vw, 8rem); line-height: .86; color: var(--on-dark); margin: 14px 0 20px; }
.nf-lede { font-size: 1.2rem; color: var(--on-dark-2); margin-bottom: 32px; max-width: 40ch; }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy); color: var(--on-dark-2); border-top: 1px solid var(--line-dark); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; align-items: center; }
.foot-row p { color: var(--on-dark-2); font-size: .8rem; }
.foot-row a { color: var(--cyan); min-height: 44px; display: inline-flex; align-items: center; font-size: .8rem; }

/* ---------- Motion (enhancement only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .plate::before { transition: transform .6s ease; }
  .hero .plate:hover::before { transform: translate(-6px, -6px); }
  .proj-visual img, .proj-visual svg, .mini-visual img, .mini-visual svg { transition: transform .5s ease; }
  .proj:hover .proj-visual img, .mini:hover .mini-visual img { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Tablet and up ---------- */
@media (min-width: 600px) {
  .readouts { grid-template-columns: repeat(4, 1fr); }
  .readout { padding-right: 24px; }
  .readout + .readout { padding-left: 24px; border-left: 1px solid var(--line-dark); }
  .role { grid-template-columns: 220px 1fr; gap: 40px; }
  .role-when { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bom-row { grid-template-columns: 220px 1fr; gap: 40px; align-items: baseline; }
  .bom-row dt { padding-top: 0; }
}

@media (min-width: 860px) {
  .nav-desk { display: flex; }
  .nav-menu { display: none; }
  .hero { padding-top: 88px; }
  .hero-grid { grid-template-columns: 1.45fr 1fr; align-items: center; gap: 56px; }
  .hero::after { width: 620px; height: 620px; right: -180px; top: -200px; }
  .sheet { padding: 128px 0; }
  .sheet-head h2 { font-size: clamp(3.4rem, 5.4vw, 4.6rem); }

  /* Featured rows: drawing and text side by side; the drawing fills the full card height */
  .p-feature { display: grid; grid-template-columns: 1.08fr 1fr; }
  .p-feature:nth-child(even) { grid-template-columns: 1fr 1.08fr; }
  .p-feature:nth-child(even) .proj-visual { order: 2; }
  .p-feature .proj-visual { aspect-ratio: auto; min-height: 320px; align-self: stretch; }
  .p-feature .proj-body { padding: 36px 40px; }
  .p-feature h3 { font-size: 2.7rem; }
  .p-feature:hover { box-shadow: 6px 6px 0 var(--cyan-ink); }

  /* Compact ledger: three across */
  .ledger { grid-template-columns: repeat(3, 1fr); }
  .mini-body { padding: 22px 22px 18px; }
  .mini h3 { font-size: 1.9rem; }
  .mini-sum { font-size: .95rem; }

  .about-grid { grid-template-columns: 1fr 1fr; column-gap: 88px; row-gap: 48px; align-items: start; }
  .about-grid > .sheet-head { grid-column: 1 / -1; }
  .about-grid > .about-main { grid-column: 1; grid-row: 2; }
  .about-grid > .edu { grid-column: 2; grid-row: 2; }
  .about-copy { font-size: 1.12rem; }

  .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; }
  .contact-grid .sheet-head { position: sticky; top: 112px; }
}

@media (min-width: 1100px) {
  .p-feature .proj-body { padding: 40px 48px; }
}

/* ---------- Phones: composed, not stacked ---------- */
@media (max-width: 599px) {
  body { font-size: 1rem; line-height: 1.56; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .sheet { padding: 36px 0; }
  .contact { padding: 48px 0 56px; }
  .sheet-head h2 { font-size: 2.4rem; }
  .dimline { margin-top: 14px; }

  /* Hero: photo sits beside the name; the copy wraps around it */
  .hero { padding-top: 28px; }
  .hero-grid { display: grid; grid-template-columns: 1fr 112px; column-gap: 16px; align-items: start; }
  .hero-copy { display: contents; }
  .hero-copy > .kicker { grid-column: 1; grid-row: 1; }
  .hero h1 { grid-column: 1; grid-row: 2; font-size: clamp(3.3rem, 17vw, 4.4rem); margin: 10px 0 0; }
  .plate { grid-column: 2; grid-row: 1 / span 2; width: 112px; justify-self: end; }
  .plate::before { inset: 10px -8px -8px 10px; }
  .plate figcaption { font-size: .6rem; margin-top: 8px; padding-right: 0; background: none; line-height: 1.4; }
  .headline { grid-column: 1 / -1; grid-row: 3; font-size: 1.05rem; margin-top: 12px; }
  .summary { grid-column: 1 / -1; grid-row: 4; font-size: .92rem; margin-top: 10px; line-height: 1.6; }
  .ctas { grid-column: 1 / -1; grid-row: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .ctas .btn-primary { grid-column: 1 / -1; min-height: 52px; }
  .ctas .btn { min-height: 52px; padding: 12px 8px; font-size: .9rem; }
  .readouts { margin-top: 20px; grid-template-columns: 1fr 1fr; }
  .readout { padding: 12px 12px 14px 0; }
  .readout:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line-dark); }
  .readout:nth-child(n+3) { border-bottom: 0; }
  .readout dt { font-size: .7rem; }
  .readout dd { font-size: 2.2rem; margin-top: 2px; }
  .readout dd.nowrap { font-size: 1.95rem; }

  .sub-label { margin-top: 28px; }

  /* Experience: date and status on one line, logo beside the title */
  .roles { margin-top: 22px; }
  .role { grid-template-columns: minmax(0, 1fr); padding: 16px 0; gap: 8px; }
  .role-when { flex-direction: row; align-items: center; gap: 10px; }
  .role-when p { font-size: .78rem; }
  .status { font-size: .66rem; padding: 4px 8px; }
  .role-id { gap: 12px; align-items: center; }
  .logo { width: 96px; height: 46px; padding: 5px; flex: 0 0 96px; }
  .role h3 { font-size: 1.65rem; }
  .role-title { font-size: .94rem; margin-top: 2px; }
  .loc { margin-top: 0; }
  .role-desc { font-size: .92rem; line-height: 1.5; }
  .role-body { gap: 8px; min-width: 0; }
  .bullets { gap: 6px; }
  .bullets li { font-size: .92rem; line-height: 1.45; }

  /* Tech lists read as one quiet line of separated names */
  .chips { display: block; margin-top: 0; line-height: 1.7; }
  .chips li {
    display: inline; background: none; border: 0; padding: 0; margin: 0;
    font-size: .74rem; color: var(--muted);
  }
  .chips li:not(:last-child)::after { content: " · "; color: var(--cyan-ink); }

  /* Featured projects: drawing on top, full text below */
  .feature-list { gap: 14px; margin-top: 14px; }
  .proj-visual { aspect-ratio: 2.2 / 1; }
  .proj-body { padding: 14px 14px 12px; gap: 7px; }
  .proj h3 { font-size: 1.75rem; }
  .proj-body > p:not(.cat):not(.links) { font-size: .92rem; line-height: 1.5; }
  .proj .bullets { gap: 6px; }
  .proj .bullets li { font-size: .9rem; line-height: 1.48; padding-left: 20px; }
  .proj .bullets li::before { top: .5em; }
  .links { margin-top: 0; gap: 0 18px; }
  .links a { min-height: 40px; font-size: .8rem; }

  /* Compact ledger: two across, drawing above the name */
  .ledger { grid-template-columns: 1fr 1fr; margin-top: 14px; }
  .mini-visual { aspect-ratio: 2 / 1; }
  .mini-body { padding: 11px 11px 8px; gap: 5px; }
  .mini h3 { font-size: 1.3rem; }
  .mini-sum { font-size: .78rem; line-height: 1.42; }
  .mini .cat { font-size: .6rem; letter-spacing: .06em; }
  .mini .links { flex-direction: row; flex-wrap: wrap; gap: 0 10px; margin-top: 2px; }
  .mini .links a { min-height: 36px; font-size: .74rem; }
  .mini-visual svg text { font-size: 22px; }

  /* Stack: one condensed line per category */
  .bom { margin-top: 24px; }
  .bom-row { padding: 10px 0; gap: 2px; }
  .bom-row dt { font-size: .7rem; }
  .bom-row dd { font-size: .9rem; line-height: 1.5; }

  /* About */
  .about-grid { gap: 28px; }
  .about-main { gap: 16px; }
  .about-copy { font-size: .97rem; gap: 10px; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .spec dd { font-size: .92rem; }
  .edu { gap: 14px; }
  .edu-card { padding-left: 14px; }
  .edu-card h4 { font-size: 1.45rem; }
  .edu-card .bullets li { font-size: .9rem; }

  /* Contact */
  .contact-body { gap: 18px; }
  .lede { font-size: 1.08rem; }
  .contact-list li { grid-template-columns: 1fr; gap: 0; padding: 6px 0; }
  .contact-list a { font-size: 1.04rem; min-height: 40px; }
}
