/* CUW AI & Quantum Innovation Lab.
   Self-hosted fonts, CUW navy / lake blue / sunrise gold, no third-party assets. */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/assets/fonts/montserrat-normal-500-800-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/roboto-normal-400-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/roboto-italic-400-latin.woff2") format("woff2");
}
:root {
  --midnight: #002641;
  --ink: #041321;
  --lake: #005596;
  --sky: #90b9e2;
  --gold: #faa634;
  --sunset: #e89a30;
  --paper: #f4f7fa;
  --line: #dce4eb;
  --ash: #526170;
  --white: #fff;
  --down: #ae3e29;
  --down-on-dark: #ffab92;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0; background: var(--paper); color: var(--midnight);
  font: 400 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--lake); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--midnight); }
code { font-family: var(--mono); font-size: .88em; }
svg { display: block; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; border-radius: 2px; }
.wrap { width: min(var(--wrap), calc(100% - 96px)); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 10;
  padding: 12px 18px; background: var(--gold); color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Navigation */
.masthead {
  background: var(--ink); color: var(--white);
  border-bottom: 1px solid rgb(144 185 226 / 15%);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 100px; padding-block: 18px;
}
.lockup { display: flex; align-items: center; gap: 16px; color: white; text-decoration: none; }
.lockup:hover { color: white; }
.lockup-symbol { width: 42px; height: 46px; flex: none; color: var(--sky); stroke-width: 1.15; }
.lockup-text { display: grid; gap: 5px; }
.lockup-school { font-size: .69rem; letter-spacing: .12em; text-transform: uppercase; color: #a9bdd0; }
.lockup-lab { font: 700 .97rem/1.3 var(--display); letter-spacing: -.025em; }
.topnav { display: flex; align-items: center; gap: 25px; }
.topnav a {
  padding: 8px 0; color: #c2ced9; font-size: .85rem; font-weight: 500;
  text-decoration: none; transition: color .2s;
}
.topnav a:hover { color: var(--gold); }
.topnav .nav-contact {
  color: white; padding: 9px 15px; border: 1px solid #415163; border-radius: 4px;
}
.nav-contact span { margin-left: 12px; color: var(--gold); }

/* Actions */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 24px;
  min-height: 50px; padding: 14px 23px; border: 1px solid transparent;
  border-radius: 4px; font: 700 .9rem/1.3 var(--body); text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn span { font-size: 1.2rem; font-weight: 400; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffb84e; color: var(--ink); }
.btn-ghost { border-color: #566371; color: white; background: rgb(4 19 33 / 50%); }
.btn-ghost:hover { background: #152b3d; color: white; border-color: var(--sky); }
.btn-light { background: white; color: var(--midnight); }
.btn-light:hover { background: var(--gold); color: var(--ink); }
.btn-blue { background: var(--midnight); color: white; }
.btn-blue:hover { background: var(--lake); color: white; }

/* Hero and computational sculpture */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: white;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 79% 28%, rgb(0 85 150 / 15%), transparent 55%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: 20px; padding: 76px 0 58px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 25px;
  color: #bccbda; font: 500 .69rem/1.6 var(--display);
  letter-spacing: .16em; text-transform: uppercase;
}
.kicker-line { width: 28px; height: 2px; background: var(--gold); flex: none; }
.hero h1 {
  font: 700 clamp(3rem, 5.5vw, 4.95rem)/1.065 var(--display);
  letter-spacing: -.065em;
}
.hero h1 > span { color: #9bbfe1; }
.hero-lede { max-width: 49ch; margin-top: 26px; color: #afc0d0; font-size: 1.04rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.hero-community { margin-top: 18px; font-size: .72rem; color: #94a9bb; letter-spacing: .015em; }
.hero-visual { position: relative; min-width: 0; height: 470px; }
.hero-visual picture { position: absolute; inset: -15% -24% -12%; display: flex; align-items: center; }
.quantum-field {
  display: block; width: 100%; height: auto;
  mask-image: radial-gradient(ellipse at center, #000 42%, transparent 72%);
  animation: field-drift 12s ease-in-out infinite alternate;
}
.visual-label {
  position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px;
  color: #a6c0d8; font: .59rem/1.5 var(--mono); letter-spacing: .13em; text-transform: uppercase;
}
.visual-label-top { top: 3%; left: 14%; }
.visual-label-bottom { bottom: 1%; right: 0; }
.visual-node { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px #faa63490; }
.visual-rule { width: 45px; height: 1px; background: #5b6c7c; }
.visual-cross { position: absolute; color: #61788b; font: 300 22px/1 var(--mono); }
.visual-cross-top { top: -5%; right: 0; }
.visual-cross-bottom { bottom: -5%; left: 0; }
@keyframes field-drift { from { transform: translateY(-5px) rotate(-1deg); } to { transform: translateY(7px) rotate(1deg); } }
.hero-bottom { padding-bottom: 45px; }

/* Real-time status, kept separate from decorative graphics */
.board {
  padding: 21px 28px 25px; border: 1px solid #2d4356; border-radius: 10px;
  background: linear-gradient(115deg, #102539, #091b2a); box-shadow: 0 16px 48px rgb(0 0 0 / 10%);
}
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 17px; }
.board-head h2 {
  display: flex; align-items: center; gap: 10px; color: #d4e2ee;
  font: 500 .7rem/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase;
}
.board-indicator { width: 6px; height: 6px; border: 1px solid var(--sky); border-radius: 50%; }
.board-updated { font: .67rem/1.5 var(--mono); color: #a9bed0; font-variant-numeric: tabular-nums; }
.board-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board-row { min-width: 0; padding: 18px 26px 0; border-top: 1px solid #304254; transition: opacity .5s; }
.board-row:first-child { padding-left: 0; }
.board-row:last-child { padding-right: 0; }
.board-row + .board-row { border-left: 1px solid #304254; }
.board-row[data-state="loading"] { opacity: .6; }
.board-name { color: white; text-decoration: none; font: 700 1.45rem/1.2 var(--display); letter-spacing: -.04em; }
.board-name:hover { color: var(--gold); }
.board-role { min-height: 2.9em; margin-top: 6px; color: #acbdcc; font-size: .78rem; line-height: 1.45; }
.board-state { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; color: #c5d6e5; font-size: .72rem; line-height: 1.4; min-height: 2em; }
.board-state .dot { margin-top: 4px; }
.board-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.board-stats dt { font-size: .65rem; color: #a3b5c5; }
.board-stats dd { margin-top: 3px; font: 500 1.1rem/1.3 var(--mono); color: #edf4fb; font-variant-numeric: tabular-nums; }
.meter { height: 3px; margin-top: 18px; background: #304356; border-radius: 2px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #90b9e2, #faa634); border-radius: 2px; transition: width 1s; }
.meter-label { margin-top: 8px; font-size: .65rem; color: #a3b5c5; font-variant-numeric: tabular-nums; }
.dot { position: relative; display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--sky); }
[data-state="online"] .board-state .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px #faa63440; }
[data-state="degraded"] .board-state .dot { background: var(--down-on-dark); border-color: var(--down-on-dark); }
[data-state="offline"] .board-state .dot { border-color: var(--down-on-dark); }

/* Editorial section rhythm */
.servers, .docs, .programs, .lab, .contact { padding-block: 100px; }
.section-head { max-width: 740px; margin-bottom: 44px; }
.eyebrow {
  margin: 0 0 16px; color: #526b80; font: 600 .67rem/1.5 var(--display);
  text-transform: uppercase; letter-spacing: .15em;
}
.section-head h2, .lab h2, .contact h2 {
  font: 700 clamp(2rem, 3.4vw, 3rem)/1.14 var(--display);
  letter-spacing: -.055em; text-wrap: balance;
}
.section-head > p:not(.eyebrow) { margin-top: 17px; color: var(--ash); font-size: 1.03rem; max-width: 64ch; }

/* Server portraits and access */
.server {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 34px; margin-top: 24px; padding: 34px;
  border: 1px solid var(--line); border-radius: 12px; background: white;
  box-shadow: 0 6px 22px rgb(0 38 65 / 2%); scroll-margin-top: 24px;
}
.server-id, .server-body, .server-live { min-width: 0; }
.server-art {
  position: relative; height: 162px; margin-bottom: 23px; overflow: hidden;
  border: 1px solid #dbe7f0; border-radius: 6px;
  background: radial-gradient(ellipse at 60% 40%, #d8eafa, #eff5f9 70%);
}
.server-art-abraham { background: radial-gradient(ellipse at 50% 45%, #d5e6ed, #f1f6f8 70%); }
.server-art-isaac { background: radial-gradient(ellipse at 55% 45%, #e5e5ef, #f2f4fa 70%); }
.server-art svg { height: 136px; width: 100%; stroke: #668ca8; stroke-width: 1.1; }
.server-art .art-orbit { stroke: #a6bfce; stroke-dasharray: 3 5; }
.server-art .art-highlight { stroke: #986020; fill: #faa63430; }
.server-number { position: absolute; top: 9px; left: 12px; color: #60778b; font: .6rem/1 var(--mono); }
.server-art-label { position: absolute; bottom: 11px; left: 12px; color: #526b80; font: .54rem/1 var(--mono); letter-spacing: .1em; }
.server-id h3 { font: 700 clamp(1.8rem, 2.8vw, 2.45rem)/1.1 var(--display); letter-spacing: -.05em; }
.server-role { margin-top: 11px; color: #354c60; font-size: .91rem; line-height: 1.55; }
.specs { list-style: none; margin-top: 23px; }
.specs li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .76rem; line-height: 1.6; color: var(--ash); }
.server-body { padding-top: 2px; }
.server-body h4, .server-live h4 { margin: 23px 0 9px; font: 700 .82rem/1.4 var(--display); letter-spacing: -.015em; }
.server-body h4:first-child, .server-live h4:first-child { margin-top: 0; }
.server-body p, .steps { color: #405467; font-size: .87rem; line-height: 1.8; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 33px; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 3px; left: 0;
  color: #55758f; font: .67rem/1.8 var(--mono);
}
.server-live { align-self: start; padding: 22px; background: #f0f5f9; border: 1px solid #e1e9f0; border-radius: 6px; }
.server-live h4 { display: flex; align-items: center; gap: 7px; }
.server-live h4:first-child::before { content: ""; width: 5px; height: 5px; background: var(--lake); border-radius: 50%; }
.live-list { list-style: none; display: grid; gap: 14px; }
.live-list li { display: grid; grid-template-columns: 7px minmax(0, 1fr); gap: 9px; align-items: start; }
.live-list .dot { margin-top: 5px; border-color: #526f86; }
.live-list li[data-state="running"] .dot { background: #526f86; }
.live-list li[data-state="down"] .dot { background: var(--down); border-color: var(--down); }
.live-list strong { display: block; font-size: .8rem; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.live-list .does { display: block; margin-top: 3px; color: var(--ash); font-size: .74rem; line-height: 1.5; overflow-wrap: anywhere; }
.live-list li[data-state="down"] strong { color: var(--down); }
.live-list .live-empty, .chips .live-empty { display: block; color: var(--ash); font-size: .78rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chips li { padding: 5px 8px; background: white; border: 1px solid #d3dfe8; border-radius: 4px; font: .65rem/1.4 var(--mono); overflow-wrap: anywhere; }
.chips li small { display: block; color: var(--ash); font: .66rem/1.4 var(--body); }

/* Developer section */
.docs { position: relative; background: var(--ink); color: white; }
.docs::before { content: ""; position: absolute; top: 0; left: max(48px, calc((100% - var(--wrap)) / 2)); height: 3px; width: 60px; background: var(--gold); }
.docs .eyebrow { color: #9bb8d1; }
.docs .section-head > p:not(.eyebrow) { color: #aebfcf; }
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 80px; }
.docs-grid .section-head { grid-column: 1 / -1; }
.docs-grid > * { min-width: 0; }
.endpoints h3, .doc-links h3 { margin-bottom: 23px; font: 600 1.03rem/1.4 var(--display); letter-spacing: -.02em; }
.endpoint-list { display: grid; gap: 17px; }
.endpoint-list dt { margin-bottom: 7px; font-size: .72rem; color: #a9becf; }
.endpoint-list dd code { display: block; padding: 12px 15px; border: 1px solid #314456; border-radius: 4px; background: #0e2234; color: #d2e6f8; font-size: .79rem; overflow-wrap: anywhere; }
.code-label { margin-top: 28px; margin-bottom: 12px; color: #a9becf; font-size: .72rem; }
.terminal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid #314456; border-radius: 6px 6px 0 0; background: #142637; font: .55rem/1.5 var(--mono); letter-spacing: .07em; color: #a9becf; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 6px; height: 6px; border: 1px solid #94a9bb; border-radius: 50%; }
.terminal-dots i:first-child { background: var(--gold); border-color: var(--gold); }
.code { max-width: 100%; margin: 0; padding: 22px 18px; overflow-x: auto; border: 1px solid #314456; border-top: 0; border-radius: 0 0 6px 6px; color: #bed9ed; background: #06101a; font: .68rem/1.85 var(--mono); }
.code code { font-size: inherit; }
.link-table { list-style: none; border-top: 1px solid #314456; }
.link-table li { position: relative; border-bottom: 1px solid #314456; padding: 19px 27px 19px 0; }
.link-table li::after { content: "↗"; position: absolute; top: 19px; right: 1px; color: var(--gold); font-size: 1.15rem; pointer-events: none; transition: transform .2s; }
.link-table li:hover::after { transform: translate(2px, -2px); }
.link-table a { color: #eaf2fa; font: 600 .93rem/1.4 var(--display); text-decoration: none; }
.link-table a:hover { color: var(--gold); }
.link-table span { display: block; margin-top: 5px; color: #aebfcf; font-size: .8rem; line-height: 1.5; }

/* Academic pathways */
.programs { background: white; }
.program-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.program {
  display: flex; flex-direction: column; align-items: flex-start; gap: 19px; overflow: hidden;
  padding: 0 36px 36px; border: 1px solid #31465c; border-radius: 10px; color: white;
}
.program-ba { background: #073453; }
.program-ms { background: #111f35; }
.program-art {
  position: relative; align-self: stretch; height: 161px; margin: 0 -36px 6px; overflow: hidden;
  border-bottom: 1px solid rgb(144 185 226 / 25%);
  background: radial-gradient(ellipse at center, #28537760, transparent 75%);
}
.program-art svg { width: 100%; height: 155px; stroke: #8db8dd; stroke-width: .8; opacity: .6; }
.program-art circle { fill: var(--gold); stroke: var(--gold); }
.program-art span { position: absolute; bottom: 13px; left: 36px; color: #b3cee3; font: .56rem/1 var(--mono); letter-spacing: .15em; }
.program-level { color: #bed4e7; font-size: .69rem; letter-spacing: .13em; text-transform: uppercase; }
.program h3 { font: 600 clamp(1.4rem, 2.1vw, 1.85rem)/1.28 var(--display); letter-spacing: -.04em; max-width: 23ch; }
.program-facts { display: grid; grid-template-columns: .55fr 1fr 1fr; gap: 20px; width: 100%; padding: 20px 0; border-block: 1px solid rgb(144 185 226 / 27%); }
.program-facts dt { color: #afc6db; font-size: .64rem; }
.program-facts dd { margin-top: 5px; font-size: .78rem; font-weight: 500; line-height: 1.55; color: white; }
.program-facts > div:first-child dd { font: 500 1.8rem/1.2 var(--display); letter-spacing: -.04em; }
.program > p:not(.program-level) { color: #c3d2df; font-size: .86rem; line-height: 1.8; }
.program .btn { margin-top: auto; font-size: .8rem; gap: 10px; }

/* Lab mission */
.lab { background: #e9f0f5; position: relative; overflow: hidden; }
.lab::after {
  content: ""; position: absolute; width: 400px; height: 400px; top: -265px; right: -100px;
  border: 1px solid #c5d6e2; border-radius: 50%; outline: 1px solid #c5d6e2; outline-offset: 35px; pointer-events: none;
}
.lab-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 54px; }
.lab-grid > div:first-child > p:not(.eyebrow) { margin: 19px 0 26px; color: #465e72; font-size: .95rem; line-height: 1.8; }
.lab h3 { margin: 5px 0 20px; font: 600 .9rem/1.4 var(--display); letter-spacing: -.02em; }
.plain { list-style: none; border-top: 1px solid #c6d5e1; }
.plain li { padding: 13px 0; border-bottom: 1px solid #c6d5e1; color: #40576b; font-size: .83rem; }

/* People */
.contact { background: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 54px; margin-top: 40px; }
.contact-group h3 { font: 600 .97rem/1.4 var(--display); letter-spacing: -.025em; }
.contact-note { margin-top: 6px; color: var(--ash); font-size: .8rem; }
.contact-group:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-content: start; }
.contact-group:last-child h3, .contact-group:last-child .contact-note { grid-column: 1 / -1; }
.person { display: grid; gap: 5px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.person::before { content: ""; display: block; width: 25px; height: 3px; margin: -24px 0 14px; background: var(--gold); }
.person-name { font: 600 1.05rem/1.4 var(--display); letter-spacing: -.03em; }
.person-title { color: var(--ash); font-size: .8rem; }
.person a { margin-top: 5px; font-size: .82rem; overflow-wrap: anywhere; }
.footer { padding: 35px 0; color: #a9bdcf; background: var(--ink); font-size: .73rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.footer strong { color: #d7e3ed; font-weight: 500; }
.footer a { color: #c0dbf1; }
.footer a:hover { color: var(--gold); }

/* Layouts */
@media (min-width: 1600px) {
  .hero-grid { padding-top: 94px; padding-bottom: 74px; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .topnav { gap: 18px; }
  .topnav a { font-size: .77rem; }
  .lockup-lab { font-size: .85rem; }
  .lockup-symbol { width: 33px; }
  .lockup { gap: 11px; }
  .hero-grid { padding-top: 58px; }
  .hero-visual { height: 415px; }
  .server { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); }
  .server-live { grid-column: 1 / -1; }
  .server-live .live-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
  .docs-grid { gap: 0 44px; }
  .lab-grid { grid-template-columns: 1.4fr 1fr; gap: 36px; }
  .lab-grid > div:first-child { grid-row: span 2; }
}
@media (max-width: 850px) {
  .masthead-inner { flex-wrap: wrap; gap: 18px; padding-block: 20px 15px; }
  .lockup-lab { font-size: 1rem; }
  .topnav { width: 100%; justify-content: space-between; gap: 12px; }
  .topnav a { font-size: .82rem; }
  .topnav .nav-contact { border: 0; padding: 8px 0; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 8px; }
  .hero h1 { font-size: clamp(2.8rem, 6.3vw, 4rem); }
  .hero-lede { font-size: .92rem; }
  .hero-visual { height: 360px; }
  .hero-visual picture { inset: -5% -35%; }
  .visual-label-top { top: 0; left: 2%; font-size: .5rem; }
  .visual-label-bottom { bottom: 0; right: -5%; font-size: .5rem; }
  .hero-actions .btn { padding: 13px 16px; font-size: .82rem; gap: 14px; }
  .board { padding: 20px; }
  .board-row { padding-inline: 17px; }
  .board-role { min-height: 4.4em; }
  .board-name { font-size: 1.25rem; }
  .board-stats dd { font-size: .93rem; }
  .board-stats dt { font-size: .59rem; }
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-links { margin-top: 42px; }
  .program-pair { gap: 20px; }
  .program { padding: 0 25px 28px; }
  .program-art { margin-inline: -25px; }
  .program-art span { left: 25px; }
  .program-facts { grid-template-columns: 1fr 2fr; gap: 17px; }
  .program-facts > div:last-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .masthead-inner { padding-top: 18px; gap: 12px; }
  .lockup-symbol { width: 31px; height: 36px; }
  .lockup-school { font-size: .55rem; letter-spacing: .08em; }
  .lockup-lab { font-size: .79rem; letter-spacing: -.03em; }
  .lockup-text { gap: 4px; }
  .topnav { gap: 7px; }
  .topnav a { font-size: .7rem; padding-block: 8px; }
  .nav-contact span { margin-left: 4px; }
  .hero-grid { grid-template-columns: 1fr; padding: 42px 0 16px; gap: 0; }
  .hero-kicker { font-size: .58rem; gap: 10px; margin-bottom: 20px; letter-spacing: .13em; }
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 4.7rem); line-height: 1.07; }
  .hero-lede { max-width: 48ch; font-size: .94rem; line-height: 1.8; margin-top: 20px; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .btn { padding-inline: 14px; font-size: .78rem; min-height: 48px; gap: 12px; }
  .hero-community { font-size: .66rem; margin-top: 16px; }
  .hero-visual { height: clamp(230px, 68vw, 390px); margin-top: 16px; }
  .hero-visual picture { inset: -7% -12%; }
  .visual-label-top { top: 8%; left: 0; font-size: .48rem; }
  .visual-label-bottom { bottom: 4%; right: 0; font-size: .48rem; }
  .visual-cross-top { top: 5%; right: 0; }
  .visual-cross-bottom { bottom: 3%; left: 0; }
  .hero-bottom { padding-bottom: 28px; }
  .board { padding: 18px 20px 8px; }
  .board-head { flex-wrap: wrap; gap: 9px; padding-bottom: 18px; }
  .board-head h2 { font-size: .65rem; }
  .board-updated { font-size: .61rem; }
  .board-list { grid-template-columns: 1fr; }
  .board-row, .board-row:first-child, .board-row:last-child { padding: 21px 0; }
  .board-row + .board-row { border-left: 0; }
  .board-name { font-size: 1.4rem; }
  .board-role { min-height: 0; font-size: .77rem; }
  .board-state { min-height: 0; margin-top: 10px; }
  .board-stats { margin-top: 16px; }
  .board-stats dd { font-size: 1.05rem; }
  .board-stats dt { font-size: .64rem; }
  .meter { margin-top: 15px; }
  .servers, .docs, .programs, .lab, .contact { padding-block: 62px; }
  .section-head { margin-bottom: 28px; }
  .eyebrow { font-size: .58rem; margin-bottom: 14px; }
  .section-head h2, .lab h2, .contact h2 { font-size: 2rem; }
  .section-head > p:not(.eyebrow) { font-size: .93rem; }
  .server { grid-template-columns: 1fr; gap: 25px; padding: 23px; margin-top: 18px; }
  .server-id h3 { font-size: 2rem; }
  .server-art { height: 173px; }
  .server-art svg { height: 148px; }
  .server-art-label { font-size: .55rem; }
  .server-role { font-size: .93rem; }
  .specs li { font-size: .8rem; }
  .server-body p, .steps { font-size: .9rem; }
  .server-live { padding: 19px; }
  .server-live .live-list { grid-template-columns: 1fr; }
  .live-list strong { font-size: .83rem; }
  .live-list .does { font-size: .79rem; }
  .chips li { font-size: .69rem; }
  .docs::before { left: 20px; }
  .endpoint-list dd code { font-size: .7rem; padding-inline: 12px; }
  .terminal-head { font-size: .5rem; }
  .code { font-size: .65rem; padding: 18px 13px; }
  .link-table a { font-size: .88rem; }
  .program-pair { grid-template-columns: 1fr; gap: 22px; }
  .program { padding: 0 25px 29px; }
  .program h3 { font-size: 1.6rem; }
  .program-facts { grid-template-columns: .65fr 1fr 1fr; gap: 14px; }
  .program-facts > div:last-child { grid-column: auto; }
  .program-facts dd { font-size: .73rem; }
  .program-art { height: 150px; }
  .lab-grid { grid-template-columns: 1fr; gap: 32px; }
  .lab-grid > div:first-child { grid-row: auto; }
  .lab-grid > div:first-child > p:not(.eyebrow) { font-size: .93rem; }
  .plain li { font-size: .89rem; }
  .contact-group:last-child { grid-template-columns: 1fr; }
  .contact-group h3 { font-size: 1rem; }
  .contact-note { font-size: .85rem; }
  .person-name { font-size: 1.1rem; }
  .person a { font-size: .89rem; }
  .footer { padding-block: 28px; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 32px); }
  .topnav a { font-size: .65rem; }
  .lockup-lab { font-size: .72rem; }
  .lockup { gap: 9px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .program-facts { grid-template-columns: 1fr 2fr; }
  .program-facts > div:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
