@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-600-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #080808;
  --bg-deep: #030303;
  --surface: rgba(13, 13, 14, 0.94);
  --surface-raised: #111113;
  --surface-soft: #171719;
  --bone: #eee9e1;
  --bone-dim: #d2cbc2;
  --muted: #a9a29c;
  --red: #ef3f38;
  --red-bright: #ff524a;
  --red-deep: #a51218;
  --red-dark: #5f0c10;
  --steel: #353437;
  --steel-light: #5b585b;
  --line: rgba(239, 63, 56, 0.48);
  --line-soft: rgba(239, 63, 56, 0.2);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --glow: 0 0 36px rgba(239, 63, 56, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --content: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--bone);
  background:
    radial-gradient(circle at 2% 8%, rgba(126, 13, 20, 0.22), transparent 24rem),
    radial-gradient(circle at 98% 48%, rgba(126, 13, 20, 0.12), transparent 30rem),
    linear-gradient(180deg, #090909 0%, var(--bg-deep) 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(110deg, transparent 0 44px, rgba(255, 255, 255, 0.018) 45px, transparent 46px),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.012) 6px);
  mask-image: linear-gradient(to bottom, #000, transparent 94%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(239, 63, 56, 0.08);
  box-shadow: inset 0 0 120px rgba(120, 8, 15, 0.12);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

p,
h1,
h2,
h3,
pre,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  color: var(--bone);
  background: var(--red-deep);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  color: var(--bg);
  background: var(--bone);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.resume-shell,
.project-shell,
.utility-shell {
  width: min(var(--content), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

[id] {
  scroll-margin-top: 124px;
}

/* Header */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  width: min(var(--content), calc(100% - (var(--gutter) * 2)));
  min-height: 84px;
  margin: 18px auto 0;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  background: rgba(7, 7, 8, 0.9);
  border: 1px solid rgba(239, 63, 56, 0.42);
  border-radius: 22px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.42), 0 0 28px rgba(239, 63, 56, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--bone-dim);
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.brand-name span,
.footer-brand span {
  color: var(--red);
  font-weight: 700;
}

.brand-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-meta i,
.resume-headline i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 7px 2px;
  background: var(--red);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}

.site-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--bone-dim);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--red-bright);
}

.site-nav a:hover::after,
.site-nav a[aria-current]::after {
  transform: scaleX(1);
}

.menu-button {
  min-width: 100px;
  min-height: 48px;
  padding: 0 14px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--steel-light);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-icon {
  width: 20px;
  display: grid;
  gap: 4px;
}

.menu-icon span {
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-button[aria-expanded="true"] .menu-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* Shared type and controls */

.eyebrow,
.section-rule span,
.case-status,
.resume-sidebar h2 {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.25;
  text-transform: uppercase;
}

.button {
  min-height: 56px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--bone);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #8f1117 0%, #c91d22 55%, #941017 100%);
  border-color: var(--red-bright);
  box-shadow: 0 8px 30px rgba(152, 16, 23, 0.22), inset 0 1px rgba(255, 255, 255, 0.12);
}

.button-primary:hover {
  background: linear-gradient(135deg, #a8141b 0%, #df2829 55%, #a91319 100%);
  box-shadow: 0 10px 40px rgba(239, 63, 56, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.018);
}

.button-secondary:hover {
  color: var(--red-bright);
  border-color: var(--red);
  background: rgba(239, 63, 56, 0.05);
}

.button-icon,
.text-link svg,
.project-arrow svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-icon {
  transform: none;
}

.text-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--red-bright);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(239, 63, 56, 0.6);
}

.text-link:hover {
  color: var(--bone);
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 18px;
}

.section-rule::after {
  min-width: 40px;
  height: 1px;
  flex: 1;
  content: "";
  background: linear-gradient(90deg, var(--red), rgba(239, 63, 56, 0.16));
}

.section-rule-compact {
  margin-bottom: 28px;
}

/* Hero */

.hero {
  min-height: calc(100svh - 102px);
  padding: clamp(56px, 7vh, 78px) 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(48px, 6vw, 90px);
  row-gap: 28px;
}

.hero-copy {
  align-self: center;
}

.hero .eyebrow {
  margin-bottom: 22px;
}

.hero h1,
.project-hero h1,
.utility-shell > h1,
.not-found-shell h1 {
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.84;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4.7rem, 7.4vw, 7.25rem);
}

.hero h1 span,
.work-intro h2 span,
.about-layout h2 span,
.contact-section h2 span,
.project-hero h1 span,
.project-principles h2 span,
.not-found-shell h1 span {
  color: var(--red);
  text-shadow: 0 0 26px rgba(239, 63, 56, 0.1);
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.7;
}

.hero-actions,
.resume-actions,
.contact-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.terminal {
  min-width: 0;
  align-self: center;
  overflow: hidden;
  background: rgba(7, 7, 8, 0.88);
  border: 1px solid rgba(239, 63, 56, 0.48);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow), var(--glow);
}

.terminal-bar {
  min-height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--bone-dim);
  background: linear-gradient(180deg, #1a1a1b, #111112);
  border-bottom: 1px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.terminal-status {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(239, 63, 56, 0.7);
}

.terminal pre {
  margin: 0;
  padding: clamp(24px, 3vw, 42px);
  overflow: auto;
  color: var(--bone-dim);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.05vw, 0.95rem);
  line-height: 1.75;
  tab-size: 2;
}

.code-keyword,
.code-string {
  color: var(--red-bright);
}

.section-jump {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.section-jump-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--red), rgba(239, 63, 56, 0.05));
}

/* Work */

.work-section {
  padding: 96px 0 116px;
}

.work-layout {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(54px, 7vw, 110px);
  align-items: start;
}

.work-intro h2,
.about-layout h2,
.contact-section h2,
.project-principles h2 {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(3.9rem, 6vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.86;
}

.work-intro > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.system-map {
  margin-top: 38px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 22px 0.9fr 22px 0.9fr 22px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    rgba(255, 255, 255, 0.012);
  background-size: 24px 24px;
  box-shadow: inset 0 0 34px rgba(239, 63, 56, 0.04);
}

.system-node {
  min-height: 108px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--steel);
  background: rgba(8, 8, 8, 0.88);
}

.system-node span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-node strong {
  margin-top: 8px;
  color: var(--bone-dim);
  font-size: 0.78rem;
  line-height: 1.45;
}

.system-node-input,
.system-node-output {
  border-color: rgba(239, 63, 56, 0.34);
}

.system-connector {
  position: relative;
  height: 1px;
  background: var(--red);
}

.system-connector::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1px solid var(--red);
  border-right: 1px solid var(--red);
  transform: rotate(45deg);
}

.project-index {
  border-top: 1px solid var(--line-soft);
}

.project-row {
  min-height: 145px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 34px;
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
}

.project-number,
.case-number {
  color: var(--bone-dim);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}

.project-row h3 {
  margin-bottom: 7px;
  color: var(--red-bright);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
}

.project-row h3 a {
  text-decoration: none;
}

.project-row h3 a:hover {
  color: var(--bone);
}

.project-row p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.project-status {
  padding-top: 4px;
  color: var(--bone-dim);
  font-size: 0.78rem;
  white-space: nowrap;
}

.project-arrow {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--red-bright);
  text-decoration: none;
}

.project-arrow:hover {
  color: var(--bone);
}

.project-index > .text-link {
  margin-top: 28px;
}

/* About / lab / contact */

.about-section {
  padding: 90px 0 110px;
}

.about-layout {
  margin-top: 56px;
  padding-left: clamp(26px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(50px, 8vw, 130px);
  border-left: 1px solid var(--red);
}

.about-copy {
  align-self: end;
}

.about-copy p {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--bone-dim);
  font-family: var(--font-mono);
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.85;
}

.about-copy p:last-child {
  color: var(--muted);
}

.lab-section {
  margin-top: 96px;
}

.lab-rail {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}

.lab-rail article {
  min-width: 0;
  padding: 30px clamp(20px, 3vw, 42px);
  border-right: 1px solid var(--steel);
}

.lab-rail article:first-child {
  padding-left: 0;
}

.lab-rail article:last-child {
  padding-right: 0;
  border-right: 0;
}

.lab-rail article > span {
  color: var(--red-bright);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.lab-rail h3 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.lab-rail p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-section {
  margin-bottom: 70px;
  padding: clamp(42px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 50px;
  align-items: end;
  background:
    linear-gradient(120deg, rgba(124, 12, 18, 0.13), transparent 52%),
    rgba(10, 10, 11, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-section .eyebrow {
  margin-bottom: 22px;
}

.contact-section h2 {
  max-width: 770px;
  margin-bottom: 18px;
}

.contact-section p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-actions {
  margin-top: 0;
  flex-direction: column;
}

/* Footer */

.site-footer {
  padding: 34px 0 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-brand {
  color: var(--bone-dim);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a:hover {
  color: var(--red-bright);
}

/* Resume */

.resume-shell {
  padding: 68px 0 30px;
}

.resume-hero {
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.resume-hero h1 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(5.2rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.8;
}

.resume-headline {
  max-width: 900px;
  margin-bottom: 12px;
  color: var(--bone-dim);
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  line-height: 1.45;
}

.resume-location {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.resume-actions {
  margin-top: 0;
  flex-direction: column;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(56px, 7vw, 100px);
}

.resume-main {
  padding: 54px 0 36px;
}

.resume-section {
  margin-bottom: 64px;
}

.resume-section > p {
  max-width: 850px;
  color: var(--muted);
}

.resume-summary {
  color: var(--bone-dim) !important;
  font-size: 1.06rem;
}

.experience-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--steel);
}

.experience-item:first-of-type {
  padding-top: 0;
}

.experience-item header {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.experience-item h2,
.resume-projects h2 {
  margin-bottom: 5px;
  color: var(--bone);
  font-size: 1.08rem;
  line-height: 1.35;
}

.experience-item header p {
  margin-bottom: 0;
  color: var(--red-bright);
  font-size: 0.88rem;
}

.experience-item time {
  color: var(--bone-dim);
  font-size: 0.88rem;
  white-space: nowrap;
}

.experience-item ul {
  margin-bottom: 0;
  padding-left: 22px;
  color: var(--muted);
}

.experience-item li {
  margin-bottom: 7px;
  padding-left: 5px;
}

.experience-item li::marker {
  color: var(--red);
}

.experience-item-condensed > p {
  margin-bottom: 0;
  color: var(--muted);
}

.resume-projects {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--steel);
}

.resume-projects article {
  padding: 23px 0;
  border-bottom: 1px solid var(--steel);
}

.resume-projects p {
  margin-bottom: 0;
  color: var(--muted);
}

.resume-section > .text-link {
  margin-top: 24px;
}

.resume-sidebar {
  padding: 54px 0 36px 38px;
  border-left: 1px solid var(--steel);
}

.resume-sidebar section {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}

.resume-sidebar section:last-child {
  margin-bottom: 0;
}

.resume-sidebar h2 {
  margin-bottom: 18px;
}

.resume-sidebar p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-list,
.capability-list,
.credential-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li,
.capability-list li {
  padding: 8px 0;
  color: var(--bone-dim);
  border-bottom: 1px solid var(--steel);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.detail-list li:last-child,
.capability-list li:last-child {
  border-bottom: 0;
}

.detail-list a {
  text-decoration-color: rgba(239, 63, 56, 0.5);
}

.credential-list {
  display: grid;
  gap: 18px;
}

.credential-list li {
  display: grid;
  gap: 4px;
}

.credential-list strong {
  color: var(--bone-dim);
  font-size: 0.88rem;
}

.credential-list span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.resume-signoff {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

/* Project briefs */

.project-shell {
  padding: 76px 0 40px;
}

.project-hero {
  max-width: 980px;
  padding-bottom: 80px;
}

.project-hero .eyebrow {
  margin-bottom: 24px;
}

.project-hero h1 {
  font-size: clamp(5rem, 9vw, 8.4rem);
}

.project-hero > p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.case-study {
  padding: 60px 0 74px;
  border-top: 1px solid var(--line);
}

.case-header {
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 28px;
}

.case-header h2 {
  margin: 8px 0 12px;
  color: var(--red-bright);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  font-weight: 700;
  line-height: 0.9;
}

.case-header > div > p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.case-grid {
  margin-left: 104px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--steel);
}

.case-grid > div {
  min-height: 190px;
  padding: 30px clamp(22px, 3vw, 42px) 30px 0;
  border-bottom: 1px solid var(--steel);
}

.case-grid > div:nth-child(odd) {
  border-right: 1px solid var(--steel);
}

.case-grid > div:nth-child(even) {
  padding-left: clamp(22px, 3vw, 42px);
}

.case-grid h3 {
  margin-bottom: 12px;
  color: var(--bone);
  font-size: 0.92rem;
}

.case-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-principles {
  margin: 50px 0 40px;
  padding: clamp(40px, 6vw, 76px);
  background: linear-gradient(120deg, rgba(124, 12, 18, 0.14), transparent 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.project-principles .eyebrow {
  margin-bottom: 20px;
}

.project-principles h2 {
  max-width: 1000px;
  font-size: clamp(3.2rem, 5vw, 5rem);
}

/* Utility / 404 */

.utility-shell {
  max-width: 900px;
  padding: 86px 0 80px;
}

.utility-shell > .eyebrow {
  margin-bottom: 24px;
}

.utility-shell > h1 {
  font-size: clamp(4.4rem, 9vw, 7.2rem);
}

.utility-lede {
  margin-bottom: 64px;
  color: var(--bone-dim);
  font-size: 1.12rem;
}

.utility-shell section {
  padding: 30px 0;
  border-top: 1px solid var(--steel);
}

.utility-shell section h2 {
  margin-bottom: 12px;
  color: var(--red-bright);
  font-size: 1rem;
}

.utility-shell section p {
  margin-bottom: 0;
  color: var(--muted);
}

.utility-shell section a {
  color: var(--bone);
}

.privacy-updated {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.not-found-page {
  display: grid;
  place-items: center;
}

.not-found-shell {
  width: min(780px, calc(100% - 40px));
  padding: 80px 0;
}

.error-code {
  margin-bottom: -20px;
  color: rgba(239, 63, 56, 0.16);
  font-family: var(--font-display);
  font-size: clamp(8rem, 30vw, 18rem);
  font-weight: 700;
  line-height: 0.7;
}

.not-found-shell .eyebrow {
  margin: 40px 0 18px;
}

.not-found-shell h1 {
  font-size: clamp(4rem, 9vw, 7rem);
}

.not-found-shell > p:not(.error-code, .eyebrow) {
  max-width: 620px;
  color: var(--muted);
}

.not-found-shell .button {
  margin-top: 22px;
}

/* Responsive */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
    column-gap: 38px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 7.7vw, 6rem);
  }

  .work-layout {
    grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
    gap: 48px;
  }

  .system-map {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .system-connector {
    width: 1px;
    height: 18px;
    margin-inline: auto;
  }

  .system-connector::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .project-row {
    grid-template-columns: 54px minmax(0, 1fr) 34px;
  }

  .project-status {
    grid-column: 2;
    margin-top: -8px;
  }

  .project-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .resume-hero {
    grid-template-columns: 1fr;
  }

  .resume-actions {
    flex-direction: row;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 20px;
  }

  html {
    scroll-padding-top: 104px;
  }

  [id] {
    scroll-margin-top: 108px;
  }

  .site-header {
    top: 10px;
    min-height: 76px;
    margin-top: 10px;
    padding: 12px 14px 12px 18px;
    gap: 12px;
    border-radius: 18px;
  }

  .brand-name {
    font-size: 1.75rem;
  }

  .brand-meta {
    max-width: 260px;
    margin-top: 5px;
    font-size: 0.68rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    grid-column: 1 / -1;
    padding: 14px 0 2px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    border-top: 1px solid var(--steel);
  }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    padding: 12px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    background: rgba(7, 7, 8, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

  .js .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a {
    padding: 4px 12px;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 48px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 42px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(4.2rem, 14vw, 7rem);
  }

  .hero-lede {
    max-width: 700px;
  }

  .terminal {
    max-width: 720px;
  }

  .section-jump {
    grid-column: auto;
  }

  .work-layout {
    grid-template-columns: 1fr;
  }

  .system-map {
    max-width: 620px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-copy {
    max-width: 760px;
  }

  .lab-rail {
    grid-template-columns: 1fr;
  }

  .lab-rail article,
  .lab-rail article:first-child,
  .lab-rail article:last-child {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--steel);
  }

  .lab-rail article:last-child {
    border-bottom: 0;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: row;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p:first-of-type {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .copyright {
    text-align: right;
  }

  .resume-layout {
    grid-template-columns: 1fr;
  }

  .resume-sidebar {
    padding: 0 0 36px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    border-left: 0;
  }

  .resume-sidebar section {
    margin: 0;
  }

  .case-grid {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  body::before {
    opacity: 0.08;
  }

  .site-header {
    width: calc(100% - 24px);
  }

  .brand-name {
    font-size: 1.58rem;
  }

  .brand-meta {
    max-width: 185px;
  }

  .brand-meta i,
  .brand-meta i ~ * {
    display: none;
  }

  .menu-button {
    min-width: 86px;
    min-height: 46px;
    padding-inline: 12px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero .eyebrow {
    margin-bottom: 20px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(3.65rem, 17vw, 5.4rem);
    line-height: 0.84;
  }

  .hero-lede {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero-actions,
  .resume-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button-secondary {
    min-height: 48px;
    padding-inline: 4px;
    justify-content: flex-start;
    gap: 14px;
    border-color: transparent;
    border-bottom-color: var(--red);
    border-radius: 0;
  }

  .terminal pre {
    font-size: 0.72rem;
    line-height: 1.7;
  }

  .work-section,
  .about-section {
    padding: 76px 0;
  }

  .work-layout {
    margin-top: 38px;
  }

  .work-intro h2,
  .about-layout h2,
  .contact-section h2,
  .project-principles h2 {
    font-size: clamp(3.5rem, 16vw, 5rem);
  }

  .project-row {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    gap: 12px;
  }

  .project-number {
    font-size: 1.7rem;
  }

  .project-row h3 {
    font-size: 1.65rem;
  }

  .about-layout {
    padding-left: 22px;
  }

  .about-copy p {
    font-size: 0.84rem;
  }

  .contact-section {
    width: calc(100% - 24px);
    padding: 34px 24px;
  }

  .site-footer {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-footer nav {
    grid-row: auto;
  }

  .site-footer > p:first-of-type {
    grid-column: auto;
    grid-row: auto;
  }

  .copyright {
    text-align: left;
  }

  .resume-shell {
    padding-top: 58px;
  }

  .resume-hero {
    padding-bottom: 40px;
  }

  .resume-hero h1 {
    font-size: clamp(4.7rem, 23vw, 7rem);
  }

  .resume-headline i {
    margin-inline: 4px;
  }

  .experience-item header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .experience-item time {
    grid-row: 1;
  }

  .resume-sidebar {
    grid-template-columns: 1fr;
  }

  .project-shell {
    padding-top: 58px;
  }

  .project-hero h1,
  .utility-shell > h1,
  .not-found-shell h1 {
    font-size: clamp(4rem, 19vw, 6rem);
  }

  .case-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-grid > div,
  .case-grid > div:nth-child(even) {
    min-height: 0;
    padding: 26px 0;
    border-right: 0;
  }

  .project-principles {
    padding: 34px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .brand-meta i,
  .resume-headline i,
  .terminal-status,
  .system-connector {
    border: 1px solid currentColor;
  }

  .hero h1 span,
  .work-intro h2 span,
  .about-layout h2 span,
  .contact-section h2 span,
  .project-hero h1 span {
    color: LinkText;
    text-shadow: none;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.55in;
  }

  :root {
    color-scheme: light;
  }

  body,
  .resume-page {
    color: #111;
    background: #fff;
    font-size: 9pt;
    line-height: 1.36;
  }

  body::before,
  body::after,
  .skip-link,
  .site-header,
  .resume-actions,
  .site-footer,
  .resume-signoff,
  .resume-section > .text-link {
    display: none !important;
  }

  .resume-shell {
    width: 100%;
    padding: 0;
  }

  .resume-hero {
    padding-bottom: 14pt;
    display: block;
    border-color: #555;
  }

  .resume-hero h1 {
    margin-bottom: 8pt;
    color: #111;
    font-size: 42pt;
  }

  .resume-headline,
  .resume-location,
  .resume-section > p,
  .experience-item ul,
  .experience-item-condensed > p,
  .resume-projects p,
  .resume-sidebar p,
  .detail-list li,
  .capability-list li,
  .credential-list span {
    color: #222 !important;
  }

  .resume-layout {
    grid-template-columns: minmax(0, 1fr) 2.25in;
    gap: 0.3in;
  }

  .resume-main {
    padding: 15pt 0 0;
  }

  .resume-sidebar {
    padding: 15pt 0 0 0.22in;
    display: block;
    border-color: #999;
  }

  .resume-sidebar section {
    margin: 0 0 14pt;
    padding: 0 0 14pt;
  }

  .resume-sidebar h2 {
    overflow-wrap: normal;
    word-break: normal;
  }

  .detail-list li,
  .capability-list li,
  .credential-list li,
  .resume-sidebar p {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .resume-section {
    margin-bottom: 13pt;
  }

  .section-rule span,
  .resume-sidebar h2,
  .experience-item header p {
    color: #8a0f15;
  }

  .section-rule::after,
  .experience-item,
  .resume-projects,
  .resume-projects article,
  .resume-sidebar section,
  .detail-list li,
  .capability-list li {
    border-color: #aaa;
  }

  .experience-item {
    padding: 9pt 0;
    break-inside: avoid;
  }

  .experience-item header {
    margin-bottom: 8pt;
  }

  .experience-item li {
    margin-bottom: 3pt;
  }

  .experience-item h2,
  .resume-projects h2,
  .experience-item time,
  .credential-list strong {
    color: #111;
  }

  .resume-projects article,
  .resume-sidebar section {
    break-inside: avoid;
  }

  .resume-projects article {
    padding: 8pt 0;
  }

  a {
    color: #111;
    text-decoration: none;
  }
}
