@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bradley Wassef: portfolio stylesheet
   Fixed section surfaces (ink / graphite / paper / fog / white), one signal hue,
   Inter + JetBrains Mono, 12-column grid, hairline rules, square corners.
   Spec: anduril-audits/FINAL-TAKEAWAY.md */

:root {
  --c-ink: #0B0B0A;
  --c-graphite: #1A1B19;
  --c-paper: #F2F1EC;
  --c-fog: #DCDCD7;
  --c-white: #FFFFFF;

  --c-text-on-dark: #F2F1EC;
  --c-muted-on-dark: #A3A39B;
  --c-text-on-light: #0B0B0A;
  --c-muted-on-light: #55554F;
  --c-rule-on-dark: #3A3A36;
  --c-rule-on-light: #B3B2AB;

  --c-signal: #FF5A1F;
  --c-signal-on-light: #A8380A;

  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-mega: clamp(3.25rem, 10vw, 9rem);
  --t-statement: clamp(2.75rem, 8vw, 7rem);
  --t-h1: clamp(2.5rem, 5.5vw, 5rem);
  --t-h2: clamp(2rem, 3.6vw, 3.5rem);
  --t-h3: clamp(1.375rem, 2vw, 2rem);
  --t-metric: clamp(1.75rem, 3vw, 2.75rem);
  --t-lead: clamp(1.1875rem, 1.6vw, 1.5rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.75rem;
  --t-code: 0.8125rem;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 7rem;
  --section-y: clamp(4rem, 8vw, 7rem);
  --margin: clamp(1.25rem, 2.2vw, 2rem);
  --gap-x: clamp(.75rem, 1.25vw, 1.125rem);
  --gap-y: 1.25rem;
  --max: 1600px;
  --header-h: 4rem;

  --rule-w: 1px;
  --radius: 0;
  --radius-media: 2px;
  --chamfer: 1.5rem;
  --ease: cubic-bezier(.215, .62, .34, 1);
  --dur-fast: 150ms;
  --dur: 300ms;
}

/* ---------- Surfaces ---------- */
.s-ink, .s-graphite {
  --fg: var(--c-text-on-dark);
  --fg-muted: var(--c-muted-on-dark);
  --rule: var(--c-rule-on-dark);
  --focus: var(--c-signal);
  --accent: var(--c-signal);
  color-scheme: dark;
  color: var(--fg);
}
.s-ink { --bg: var(--c-ink); background: var(--c-ink); }
.s-graphite { --bg: var(--c-graphite); background: var(--c-graphite); }

.s-paper, .s-fog, .s-white, body {
  --fg: var(--c-text-on-light);
  --fg-muted: var(--c-muted-on-light);
  --rule: var(--c-rule-on-light);
  --focus: var(--c-signal-on-light);
  --accent: var(--c-signal-on-light);
  color-scheme: light;
  color: var(--fg);
}
.s-paper, body { --bg: var(--c-paper); background: var(--c-paper); }
.s-fog { --bg: var(--c-fog); background: var(--c-fog); }
.s-white { --bg: var(--c-white); background: var(--c-white); }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

img, video, svg, iframe { display: block; max-width: 100%; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-weight: 400; text-wrap: balance; }
h1 { font-size: var(--t-h1); font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; max-width: 20ch; }
h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.02em; }
h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.01em; }

p { max-width: 66ch; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--c-signal); color: var(--c-ink); }

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: var(--t-code); }
.muted { color: var(--fg-muted); }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.label {
  display: block;
  font-size: var(--t-label);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.label.is-strong { color: var(--fg); }
.code {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.keepcase { text-transform: none; }
.code.tag-line, .tile-tags { text-transform: none; letter-spacing: 0; }

.lead { font-size: var(--t-lead); line-height: 1.3; max-width: 60ch; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--c-signal); color: var(--c-ink);
  padding: .75rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.section { padding-block: var(--section-y); }
.section.is-tight { padding-top: var(--space-4); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-y) var(--gap-x);
}
.grid12 > * { grid-column: 1 / -1; }

.section-head {
  border-top: var(--rule-w) solid var(--rule);
  padding-top: var(--space-3);
  margin-bottom: var(--space-6);
  row-gap: var(--space-2);
}
.section-head .label { margin-bottom: var(--space-2); }
.section-head-aside { color: var(--fg-muted); }

@media (min-width: 900px) {
  .section-head-main { grid-column: 1 / 7; }
  .section-head-aside { grid-column: 7 / 13; align-self: end; }
}

/* ---------- Links + buttons ---------- */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: var(--t-small);
  font-weight: 500;
  min-height: 44px;
}
.link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 10px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }

.text-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease);
}
.text-link:hover, .text-link:focus-visible { background-size: 100% 1px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--fg); color: var(--bg); }
.btn-sm { min-height: 36px; padding: 0 .85rem; font-size: var(--t-label); letter-spacing: .04em; text-transform: uppercase; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.brand { font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand .code { color: var(--fg-muted); margin-left: .6rem; }

.nav-desktop { display: none; gap: var(--space-4); }
.nav-desktop a {
  position: relative;
  font-size: var(--t-small);
  color: var(--fg-muted);
  padding-block: .5rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav-desktop a:hover { color: var(--fg); }
.nav-desktop a[aria-current="page"] { color: var(--fg); }
.nav-desktop a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--c-signal);
}
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-resume { display: none; }
.menu-toggle { min-width: 5.5rem; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .header-resume { display: inline-flex; }
  .menu-toggle { display: none; }
}

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-4) var(--margin) var(--space-5);
  overflow-y: auto;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile-list a {
  display: block;
  font-size: var(--t-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding-block: .35rem;
  border-bottom: 1px solid var(--rule);
}
.nav-mobile-foot { display: grid; gap: .35rem; margin-top: var(--space-5); font-size: var(--t-small); }
body.menu-open { overflow: hidden; }

/* ---------- Spec cells ---------- */
.spec-cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--gap-x);
}
.spec-cell {
  border-top: 1px solid var(--rule);
  padding: .85rem 0 1.1rem;
}
.spec-cell dt { margin-bottom: .45rem; }
.spec-cell dd { font-size: var(--t-small); line-height: 1.4; }
@media (min-width: 900px) {
  .spec-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spec-cells.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: var(--space-4); }
.hero-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-3); }
.mega {
  font-size: var(--t-mega);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -0.04em;
  max-width: none;
  margin-bottom: var(--space-5);
}
.hero-band {
  border-top: 1px solid var(--rule);
  padding-top: var(--space-3);
  margin-bottom: var(--space-5);
  row-gap: var(--space-3);
}
.hero-current .label { margin-bottom: .45rem; }
.hero-current p { font-size: var(--t-small); line-height: 1.4; }
.hero-statement { font-size: var(--t-lead); line-height: 1.3; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; }
@media (min-width: 900px) {
  .hero-current { grid-column: 1 / 4; }
  .hero-statement { grid-column: 4 / 9; }
  .hero-ctas { grid-column: 9 / 13; justify-content: flex-end; }
}
.hero .spec-cells { margin-bottom: var(--space-5); }

/* ---------- Media ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--c-graphite);
}
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.is-16x9 { aspect-ratio: 16 / 9; }
.media-caption {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: .75rem;
}
.media-toggle {
  position: absolute; right: .75rem; bottom: .75rem;
  --fg: var(--c-text-on-dark); --bg: var(--c-ink);
  color: var(--fg);
  background: rgba(11, 11, 10, .72);
  border-color: rgba(242, 241, 236, .5);
}

/* ---------- Project bento ---------- */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--gap-x);
}
.tile { position: relative; display: flex; flex-direction: column; }
.tile-media { aspect-ratio: 16 / 10; }
.tile-media.is-contain img { object-fit: contain; padding: 1rem; }
.tile-media img, .tile-media video { transition: transform 600ms var(--ease); }
.tile:hover .tile-media img, .tile:hover .tile-media video { transform: scale(1.03); }
.tile-body { padding-top: 1rem; display: grid; gap: .75rem; }
.tile-meta { display: flex; justify-content: space-between; gap: 1rem; }
.tile-title { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.02em; }
.tile-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile-title .arrow { display: inline-block; font-weight: 400; transition: transform var(--dur) var(--ease); }
.tile:hover .tile-title .arrow { transform: translate(3px, -3px); }
.tile-outcome { color: var(--fg-muted); font-size: var(--t-small); line-height: 1.45; max-width: 52ch; }
.tile-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap-x); }
.tile-metrics > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid var(--rule); padding-top: .6rem; }
.tile-metrics .val { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: .35rem; }
.tile-tags { color: var(--fg-muted); }

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tile:nth-child(1) { grid-column: 1 / 9; }
  .tile:nth-child(1) .tile-media { aspect-ratio: 16 / 9; }
  .tile:nth-child(2) { grid-column: 9 / 13; }
  .tile:nth-child(2) .tile-media { aspect-ratio: auto; flex: 1; min-height: 16rem; }
  .tile:nth-child(3) { grid-column: 1 / 7; }
  .tile:nth-child(4) { grid-column: 7 / 13; }
}

/* ---------- Ruled rows (experience, what/how/outcome, architecture, limits) ---------- */
.rows > li, .row { border-top: 1px solid var(--rule); padding-block: var(--space-4); row-gap: var(--space-2); }
.rows > li:last-child { border-bottom: 1px solid var(--rule); }
.row-meta .label { margin-top: .6rem; }
.row-meta h3 + .row-org { margin-top: .35rem; }
.row-org { font-size: var(--t-small); }
.row-body { display: grid; gap: 1rem; }
.row-body .lead { max-width: 60ch; }
@media (min-width: 900px) {
  .row-meta { grid-column: 1 / 6; }
  .row-body { grid-column: 7 / 13; }
  .rows.is-narrow-meta .row-meta { grid-column: 1 / 4; }
  .rows.is-narrow-meta .row-body { grid-column: 5 / 13; }
}

.square-list { display: grid; gap: .55rem; }
.square-list li { position: relative; padding-left: 1.1rem; max-width: 70ch; }
.square-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; background: currentColor;
}

.sub-head { margin: var(--space-6) 0 var(--space-3); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.rows.is-compact h3 { font-size: clamp(1.15rem, 1.5vw, 1.5rem); }
.rows.is-compact > li { padding-block: var(--space-3); }

.woh-item dt { margin-bottom: .4rem; }
.woh-item dd { font-size: var(--t-small); line-height: 1.5; max-width: 66ch; }
.woh-item + .woh-item { margin-top: .9rem; }

/* ---------- About + skills ---------- */
.about-body { display: grid; gap: 1.1rem; }
.about-body p:first-child { font-size: var(--t-lead); line-height: 1.3; }
@media (min-width: 900px) {
  .about-head { grid-column: 1 / 6; }
  .about-body { grid-column: 7 / 13; }
}
.focus-rows { margin-top: var(--space-6); }
.focus-rows .row-meta { display: flex; gap: 1rem; align-items: baseline; }

.skills { margin-top: var(--space-7); }
.skill-cols { display: grid; gap: var(--space-4) var(--gap-x); }
@media (min-width: 900px) { .skill-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.skill-col .label { margin-bottom: .75rem; }
.skill-col li { border-top: 1px solid var(--rule); padding: .6rem 0; font-size: var(--t-small); line-height: 1.4; }

/* ---------- Contact ---------- */
.contact-grid { row-gap: var(--space-5); }
@media (min-width: 900px) {
  .contact-rows { grid-column: 1 / 9; }
  .contact-side { grid-column: 10 / 13; }
}
.contact-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  padding-block: 1rem;
}
.contact-row:last-child { border-bottom: 1px solid var(--rule); }
.contact-row dd { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-width: 0; }
.contact-row dd a { overflow-wrap: anywhere; }
.contact-email { font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.15; }
.copy-feedback { color: var(--fg-muted); font-size: var(--t-label); }
.contact-side { display: grid; align-content: start; gap: .75rem; }
.contact-side .btn { justify-content: space-between; }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--space-6); padding-bottom: var(--space-4); border-top: 1px solid var(--rule); }
.footer-name { font-size: var(--t-h3); letter-spacing: -0.02em; margin-bottom: var(--space-5); }
.footer-cols { display: grid; gap: var(--space-4) var(--gap-x); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-col .label { margin-bottom: .8rem; }
.footer-col li { font-size: var(--t-small); padding-block: .2rem; }
.footer-col a { color: var(--fg-muted); transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--fg); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid var(--rule);
}

/* ---------- Project detail ---------- */
.detail-head { padding-top: var(--space-4); padding-bottom: var(--space-5); }
.back-link { margin-bottom: var(--space-4); color: var(--fg-muted); }
.back-link:hover { color: var(--fg); }
.detail-kicker { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: var(--space-3); }
.detail-head h1 { max-width: 18ch; margin-bottom: var(--space-5); }
.spec-band { border-top: 1px solid var(--rule); padding-top: var(--space-3); row-gap: var(--space-3); }
.spec-band-meta .label + .label { margin-top: .5rem; }
.spec-band-sub { font-size: var(--t-lead); line-height: 1.3; max-width: 52ch; }
.spec-band-ctas { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; }
@media (min-width: 900px) {
  .spec-band-meta { grid-column: 1 / 4; }
  .spec-band-sub { grid-column: 4 / 10; }
  .spec-band-ctas { grid-column: 10 / 13; flex-direction: column; align-items: stretch; }
}

.stage { padding-block: var(--space-4) var(--space-5); }
.stage-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem;
  margin-bottom: var(--space-2);
}
.stage-tabs { display: flex; gap: var(--space-3); }
.stage-tab {
  position: relative;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-muted);
  font: inherit;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.stage-tab:hover { color: var(--fg); }
.stage-tab.is-active { color: var(--fg); }
.stage-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--c-signal); }
.stage-frame { aspect-ratio: 16 / 9; }
.stage-frame iframe { width: 100%; height: 100%; border: 0; }
.stage-frame.is-plate { background: var(--c-white); }
.stage-frame.is-plate img { object-fit: contain; }
.stage-frame.is-plate.is-dark { background: var(--c-ink); }
.stage-frame video { object-fit: contain; background: #000; }

.woh-rows .row-meta { display: flex; gap: 1rem; align-items: baseline; }
.woh-rows .row-meta .code { color: var(--accent); }
.woh-rows .row-body { font-size: var(--t-lead); line-height: 1.35; }
.woh-rows .row-body p { max-width: 60ch; }
.woh-rows .row-body .square-list { font-size: var(--t-lead); gap: .75rem; }
.woh-rows .row-body .square-list li { padding-left: 1.3rem; }
.woh-rows .row-body .square-list li::before { top: .55em; width: 6px; height: 6px; }

.spec-sheet {
  --chamfer-cut: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  clip-path: var(--chamfer-cut);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.spec-sheet-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-3); }
.spec-metrics { display: grid; gap: 0 var(--gap-x); grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-5); }
@media (min-width: 700px) { .spec-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spec-metrics > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid var(--c-text-on-light); padding: .8rem 0 1rem; }
.spec-metrics .val { font-size: var(--t-metric); line-height: 1; letter-spacing: -0.02em; margin-bottom: .55rem; }
.spec-rows > li {
  display: grid;
  gap: .35rem var(--gap-x);
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
  padding-block: .85rem;
  font-size: var(--t-small);
  line-height: 1.45;
}
.spec-rows > li:last-child { border-bottom: 1px solid var(--rule); }
.spec-rows .v { font-weight: 500; }
@media (min-width: 900px) {
  .spec-rows > li { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .spec-rows .v { text-align: right; }
}

.arch-rows .row-meta .mono { font-size: var(--t-small); font-weight: 500; overflow-wrap: anywhere; }
.arch-rows .row-body p, .limit-rows .row-body p { font-size: var(--t-body); }
.arch-rows .row-meta { display: flex; gap: 1rem; align-items: baseline; }

.figure-grid { display: grid; gap: var(--space-5) var(--gap-x); }
@media (min-width: 820px) { .figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.figure-trigger {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--c-white);
  border-radius: var(--radius-media);
  overflow: hidden;
}
.figure-trigger.is-dark-media { background: var(--c-ink); }
.figure-trigger img { width: 100%; height: auto; transition: transform 600ms var(--ease); }
.figure-trigger:hover img { transform: scale(1.015); }
.figure-caption { margin-top: .85rem; font-size: var(--t-small); line-height: 1.45; color: var(--fg-muted); max-width: 62ch; }
.figure-caption .label { color: var(--fg); margin-bottom: .4rem; }
.figure-caption strong { color: var(--fg); font-weight: 500; }

.code-wrap { position: relative; }
.code-block {
  margin: 0;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  overflow-x: auto;
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--t-code);
  line-height: 1.7;
}
.code-block .prompt { color: var(--c-signal); user-select: none; }
.code-copy { position: absolute; top: .75rem; right: .75rem; }

.next-project { display: block; border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.next-project .label { margin-bottom: var(--space-2); }
.next-project h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.next-project .arrow { transition: transform var(--dur) var(--ease); }
.next-project:hover .arrow { transform: translateX(6px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: var(--margin);
  background: rgba(11, 11, 10, .94);
}
.lightbox.is-open { display: flex; }
.lightbox-inner { width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: .75rem; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lightbox-frame { background: var(--c-white); overflow: auto; max-height: calc(100dvh - 8rem); }
.lightbox-frame.is-dark-media { background: var(--c-ink); }
.lightbox-frame img { width: 100%; height: auto; }

/* ---------- Resume ---------- */
.resume-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: var(--space-3); }
.resume-sheet { max-width: 860px; margin-inline: auto; padding: clamp(1.25rem, 4vw, 3rem); }
.resume-wrap { max-width: 860px; margin-inline: auto; }
.resume-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .6rem; }
.resume-contact { font-size: var(--t-small); display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.resume-clearance { margin-top: .5rem; font-size: var(--t-small); font-weight: 600; }
.resume-section { margin-top: var(--space-4); }
.resume-section > .label { color: var(--fg); padding-bottom: .5rem; border-bottom: 1px solid var(--fg); margin-bottom: .75rem; }
.resume-block + .resume-block { margin-top: .9rem; }
.resume-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; font-size: var(--t-small); }
.resume-row strong { font-weight: 600; }
.resume-row .when { color: var(--fg-muted); white-space: nowrap; }
.resume-list { margin-top: .35rem; display: grid; gap: .2rem; font-size: var(--t-small); line-height: 1.45; }
.resume-list li { position: relative; padding-left: 1rem; }
.resume-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 4px; height: 4px; background: currentColor; }
.resume-skills { display: grid; gap: .3rem; font-size: var(--t-small); line-height: 1.45; }
.resume-skills strong { font-weight: 600; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print (resume) ---------- */
@media print {
  @page { margin: 0.5in; }
  html, body { background: #fff !important; color: #000 !important; font-size: 10.5pt; }
  .site-header, .site-footer, .no-print, .skip-link, .nav-mobile { display: none !important; }
  .section { padding: 0 !important; }
  .s-ink, .s-graphite, .s-paper, .s-fog, .s-white {
    background: #fff !important; color: #000 !important;
    --fg: #000; --fg-muted: #333; --rule: #999;
  }
  .resume-sheet { padding: 0 !important; max-width: none; }
  a { color: #000 !important; }
  .resume-section { break-inside: avoid-page; margin-top: 12pt; }
}
