/* ==========================================================================
   aggreybuttons institute — "Ember Intelligence"
   Palette taken from aggreybuttons.cloud
   ========================================================================== */

:root {
  --bg: #0a0705;
  --bg-2: #100b07;
  --surface: #16100b;
  --surface-2: #1d1510;
  --line: rgba(251, 246, 242, 0.09);
  --line-strong: rgba(251, 246, 242, 0.18);
  --cream: #fbf6f2;
  --muted: #b6a598;
  --dim: #8c7b6e;
  --orange: #f18a25;
  --orange-soft: #fdeedf;
  --red: #e2322b;
  --red-dark: #b8241e;
  --grad: linear-gradient(100deg, #ffc46b 0%, #f18a25 42%, #e2322b 100%);
  --grad-soft: linear-gradient(135deg, rgba(241, 138, 37, 0.16), rgba(226, 50, 43, 0.05));
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Sora", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --pad: clamp(20px, 5vw, 48px);
  --maxw: 1240px;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* Fine grain over the whole page */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10000;
  background: var(--cream);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 99px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - (var(--pad) * 2), var(--maxw));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(70px, 9vw, 130px) 0;
}

.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border: 0;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.eyebrow--dim { color: var(--muted); }

.display {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 600;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  max-width: 18ch;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  max-width: 62ch;
}

.muted { color: var(--muted); }
.dim { color: var(--dim); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p { max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--cream);
  --btn-fg: #1a120c;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

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

.btn--primary {
  background: var(--grad);
  color: #1a0c05;
  box-shadow: 0 12px 40px -12px rgba(241, 138, 37, 0.65);
}
.btn--primary:hover { box-shadow: 0 18px 50px -12px rgba(226, 50, 43, 0.7); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: rgba(251, 246, 242, 0.06); border-color: var(--orange); }

.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.85rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.text-link:hover { color: var(--orange); border-color: var(--orange); gap: 14px; }
.text-link svg { width: 16px; height: 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 15px;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(251, 246, 242, 0.03);
}

.chip--live { color: var(--cream); border-color: rgba(241, 138, 37, 0.4); }
.chip--live .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(241, 138, 37, 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(241, 138, 37, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(241, 138, 37, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 138, 37, 0); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--grad);
  z-index: 1200;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 7, 5, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 86px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5px;
  width: 30px;
  height: 30px;
  transform: rotate(-4deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo:hover .logo-mark { transform: rotate(90deg) scale(1.06); }
.logo-mark i { display: block; border-radius: 50%; background: var(--red); }
.logo-mark i:nth-child(2),
.logo-mark i:nth-child(3) { background: var(--orange); }

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word {
  font-family: var(--serif);
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
}
.logo-word .b { font-weight: 600; }
.logo-o {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  width: 0.52em;
  height: 0.52em;
  margin: 0 0.035em;
  align-self: center;
  transform: translateY(-0.02em);
}
.logo-o i { border-radius: 50%; background: var(--red); }
.logo-o i:nth-child(2) { background: var(--orange); }
.logo-tag {
  font-family: var(--sans);
  font-size: 0.54rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 4px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links .mobile-cta { display: none; }

.nav-links a {
  position: relative;
  padding: 9px 14px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--cream); background: rgba(251, 246, 242, 0.05); }
.nav-links a.is-active { color: var(--cream); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--cream);
  margin: 3px auto;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.55;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 12% 18%, rgba(241, 138, 37, 0.16), transparent 62%),
    radial-gradient(50% 50% at 88% 22%, rgba(226, 50, 43, 0.14), transparent 64%),
    radial-gradient(70% 60% at 50% 110%, rgba(10, 7, 5, 0.9), transparent 70%);
}

.hero::after {
  /* perspective grid */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 160%;
  height: 70%;
  transform: translateX(-50%) perspective(600px) rotateX(64deg);
  background-image:
    linear-gradient(rgba(241, 138, 37, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 138, 37, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 68%);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 22px 0 24px;
}

.hero h1 .line { display: block; }
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta b { color: var(--cream); font-weight: 600; }

.hero-scroll {
  position: absolute;
  left: var(--pad);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero-scroll::before {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--orange), transparent);
}

/* Floating model panel */
.hero-panel {
  position: relative;
  perspective: 1200px;
}

.panel-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background:
    linear-gradient(160deg, rgba(251, 246, 242, 0.09), rgba(251, 246, 242, 0.02) 55%),
    rgba(16, 11, 7, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--cream);
  background: rgba(241, 138, 37, 0.12);
  border: 1px solid rgba(241, 138, 37, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
}
.panel-status i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange);
  animation: pulse-dot 2s infinite;
}

.panel-hero {
  padding: 22px 0 18px;
}
.panel-hero .big {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.panel-hero .big span { color: var(--orange); font-size: 0.5em; letter-spacing: 0.04em; margin-left: 6px; }
.panel-hero p { color: var(--muted); font-size: 0.86rem; margin-top: 8px; }

.panel-rows { display: grid; gap: 10px; }
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 7, 5, 0.35);
}
.panel-row b { color: var(--cream); font-family: var(--sans); font-weight: 500; }
.panel-row .bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(251, 246, 242, 0.09);
  overflow: hidden;
  max-width: 90px;
}
.panel-row .bar i {
  display: block;
  height: 100%;
  width: var(--v, 60%);
  background: var(--grad);
  border-radius: 99px;
  transform-origin: left;
  animation: grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.4s;
}
@keyframes grow { from { transform: scaleX(0); } }

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--dim);
}
.panel-foot .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: -0.02em; }

.panel-chip {
  position: absolute;
  right: -14px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: #1a120c;
  border-radius: 14px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7);
  transform: rotate(2deg);
}
.panel-chip svg { width: 15px; height: 15px; color: var(--red); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-2);
  --mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: var(--mask);
  -webkit-mask-image: var(--mask);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.8;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / manifesto ---------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}

.manifesto-copy p + p { margin-top: 18px; }
.manifesto-copy .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--cream); }
.manifesto-copy p { color: var(--muted); }

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 30px;
  padding-left: 22px;
  border-left: 2px solid var(--orange);
  color: var(--cream);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 30px 24px 0 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--cream);
}
.stat-num span { color: var(--orange); }
.stat-label {
  font-size: 0.8rem;
  color: var(--dim);
  margin-top: 10px;
  line-height: 1.45;
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(251, 246, 242, 0.035), rgba(251, 246, 242, 0.01));
  padding: 28px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, background 0.3s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(241, 138, 37, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card:hover::after { opacity: 1; }

.card-index {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  color: var(--dim);
  letter-spacing: 0.08em;
}

.card h3 {
  font-size: 1.28rem;
  margin: 18px 0 10px;
  letter-spacing: -0.02em;
}
.card p { color: var(--muted); font-size: 0.93rem; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.card-tags span {
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  margin-top: 24px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.card:hover .card-arrow { background: var(--orange); color: #1a0c05; border-color: transparent; transform: rotate(-45deg); }
.card-arrow svg { width: 16px; height: 16px; }

.card--program { display: flex; flex-direction: column; min-height: 320px; }
.card--program .card-bottom { margin-top: auto; }
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.screen {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0c0805;
  box-shadow: var(--shadow);
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 246, 242, 0.03);
}
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.screen-bar i:first-child { background: var(--red); }
.screen-bar i:nth-child(2) { background: var(--orange); }
.screen-bar span {
  margin-left: auto;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  color: var(--dim);
}

.code {
  padding: 22px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.85;
  color: #d8c7b9;
  overflow-x: auto;
}
.code .c { color: #6f6157; }
.code .k { color: #f18a25; }
.code .s { color: #e9b98f; }
.code .f { color: #ffd39b; }
.code .n { color: #e2322b; }
.code .cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--orange);
  vertical-align: -2px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Neural art panel (about page) */
.orb-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 196, 107, 0.9), transparent 26%),
    radial-gradient(circle at 68% 62%, rgba(226, 50, 43, 0.85), transparent 34%),
    radial-gradient(circle at 40% 74%, rgba(241, 138, 37, 0.8), transparent 40%),
    radial-gradient(circle at 50% 50%, #24170e, #0a0705 70%);
  border: 1px solid var(--line);
  overflow: hidden;
  filter: saturate(1.05);
}
.orb-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 7, 5, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 7, 5, 0.32) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 78%);
}
.orb-art::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(251, 246, 242, 0.28);
  animation: spin-slow 40s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.orbit-dots i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 18px 3px rgba(255, 255, 255, 0.4);
}
.orbit-dots i:nth-child(1) { top: 22%; left: 26%; }
.orbit-dots i:nth-child(2) { top: 64%; left: 22%; background: var(--orange); }
.orbit-dots i:nth-child(3) { top: 38%; left: 72%; background: var(--red); }
.orbit-dots i:nth-child(4) { top: 78%; left: 62%; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step-num {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  color: var(--orange);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 0.88rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: clamp(38px, 6vw, 74px);
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 85% 10%, rgba(241, 138, 37, 0.22), transparent 60%),
    radial-gradient(50% 100% at 10% 90%, rgba(226, 50, 43, 0.18), transparent 60%),
    var(--surface);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(251, 246, 242, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 246, 242, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 20ch;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 76px) 0 30px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 3fr);
  gap: 48px;
  align-items: start;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 32ch;
  margin-top: 18px;
}
/* The four link groups live inside a single <nav class="footer-nav">, so the
   nav itself is the multi-column grid rather than a direct .footer-grid child. */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  align-items: start;
}
.footer-nav h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}
.footer-nav li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-nav li + li { margin-top: 9px; }
.footer-nav a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.78rem;
}
.socials { display: flex; gap: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.socials a:hover { background: var(--orange); color: #1a0c05; border-color: transparent; }
.socials svg { width: 16px; height: 16px; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding: 170px 0 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 70% at 80% 0%, rgba(241, 138, 37, 0.14), transparent 65%),
    radial-gradient(40% 60% at 6% 30%, rgba(226, 50, 43, 0.1), transparent 65%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  max-width: 16ch;
  margin: 20px 0 22px;
}
.page-hero .lead { max-width: 58ch; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Programs page ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}
.filter-btn:hover { border-color: var(--line-strong); color: var(--cream); }
.filter-btn.is-active { background: var(--cream); color: #1a120c; border-color: var(--cream); }

.program-card { min-height: 0; }
.program-card .meta-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.program-card .meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 7px;
}
.program-card .meta-list b { color: var(--cream); font-weight: 500; }

.curriculum {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.curriculum-item {
  display: contents;
}
.curriculum-term {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.curriculum-body {
  padding: 24px 0 24px 32px;
  border-bottom: 1px solid var(--line);
}
.curriculum-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.curriculum-body p { color: var(--muted); font-size: 0.92rem; }
.curriculum-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.curriculum-body li {
  font-size: 0.74rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ---------- Admissions page ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.timeline-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.timeline-row h3 { font-size: 1.1rem; margin-bottom: 4px; }
.timeline-row p { color: var(--muted); font-size: 0.9rem; }
.timeline-badge {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--dim);
  white-space: nowrap;
}

.checklist { display: grid; gap: 14px; margin-top: 24px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.94rem;
}
.checklist svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--orange);
  margin-top: 2px;
}
.checklist b { color: var(--cream); font-weight: 500; }

.accordion { border-top: 1px solid var(--line); margin-top: 10px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--orange);
  font-weight: 400;
  transition: transform 0.25s;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion p {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0 40px 22px 0;
  max-width: 70ch;
}

/* ---------- Faculty ---------- */
/* Horizontal cards: portrait left, text beside it. Two per row on wide screens
   so the bio keeps a readable measure rather than running the full page width. */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.faculty-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  background: linear-gradient(180deg, rgba(251, 246, 242, 0.04), rgba(251, 246, 242, 0.01));
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.faculty-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 138, 37, 0.35);
  box-shadow: 0 26px 60px -34px rgba(241, 138, 37, 0.5);
}

/* A plain circle. The container clips the image, so nothing can escape the
   round edge at any size -- that is what makes it hold, rather than relying on
   the image's own corners being rounded to match. */
.avatar {
  width: clamp(84px, 11vw, 132px);
  height: clamp(84px, 11vw, 132px);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.6rem;
  color: #1a0c05;
  background: var(--grad);
}
.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  /* Round the image as well as the container. Clipping a child with the parent's
     overflow/radius alone is unreliable once the browser promotes the image to
     its own composited layer (Safari does this readily), and the corners come
     back square. Stating it on both elements means neither has to be trusted. */
  border-radius: inherit;
  object-fit: cover;
  /* The portraits are pre-cropped square with the face centred, so this needs
     to move only for an image that is not. Nana.jpg is uncropped and taller
     than the frame, so it is pinned to the top band where the face sits.
     Override per person with style="--face: 40%". */
  object-position: center var(--face, 50%);
}
.faculty-card:nth-child(2n) .avatar { background: linear-gradient(135deg, #e2322b, #8f1a16); color: var(--cream); }

.faculty-body { min-width: 0; }
.faculty-card h3 { font-size: 1.12rem; }
.faculty-role {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 8px 0 16px;
}
/* :not(.faculty-role) so the role line keeps its own orange/uppercase styling —
   .faculty-card p would otherwise out-specify .faculty-role. */
.faculty-card p:not(.faculty-role) {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.72;
}
/* the global reset zeroes every p margin, so paragraph breaks must be stated */
.faculty-card p:not(.faculty-role) + p:not(.faculty-role) { margin-top: 12px; }

.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  background: var(--surface);
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--cream);
}
.quote-card cite {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Research ---------- */
.lab-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lab-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.25s;
}
.lab-row:hover { background: rgba(251, 246, 242, 0.02); }
.lab-index {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.74rem;
  color: var(--orange);
}
.lab-row h3 { font-size: 1.35rem; }
.lab-row .lab-sub {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}
.lab-row p { color: var(--muted); font-size: 0.92rem; }
.lab-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lab-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-list { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item .ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--orange);
  flex: 0 0 auto;
}
.contact-item .ico svg { width: 18px; height: 18px; }
.contact-item h3 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 5px;
}
.contact-item a, .contact-item p { color: var(--cream); font-size: 0.98rem; }
.contact-item a:hover { color: var(--orange); }
.contact-item small { display: block; color: var(--dim); font-size: 0.8rem; margin-top: 3px; }

.form-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(10, 7, 5, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--cream);
  font: inherit;
  font-size: 0.94rem;
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f6157; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 138, 37, 0.14);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-note { font-size: 0.78rem; color: var(--dim); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 0.88rem; color: var(--orange); min-height: 1.2em; }
.form-status.is-ok { color: var(--orange); }
.form-status.is-error { color: #ea7268; }

/* ---------- File upload field ---------- */
.field input[type="file"] {
  padding: 11px 13px;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #1a0c05;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}
.field input[type="file"]::file-selector-button:hover { filter: brightness(1.06); }
.field-help { font-size: 0.76rem; color: var(--dim); margin: 0; }
.field-help.is-error { color: #ea7268; }
.field-help.is-ok { color: var(--orange); }

/* Honeypot field: hidden from people, but still present for bots. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.map-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0c0805;
  min-height: 300px;
}
.map-panel svg { width: 100%; height: 100%; display: block; }
.map-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(10, 7, 5, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 0.76rem;
}
.map-label b { color: var(--orange); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance */
.hero .line,
.hero .hero-lead,
.hero .hero-cta,
.hero .hero-meta,
.hero .hero-panel,
.hero .eyebrow {
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero .line:nth-child(1) { animation-delay: 0.05s; }
.hero .line:nth-child(2) { animation-delay: 0.13s; }
.hero .hero-lead { animation-delay: 0.24s; }
.hero .hero-cta { animation-delay: 0.32s; }
.hero .hero-meta { animation-delay: 0.4s; }
.hero .hero-panel { animation-delay: 0.3s; }
.hero .eyebrow { animation-delay: 0.0s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-panel { max-width: 440px; }
  .hero { padding-top: 150px; }
  .hero-scroll { display: none; }
}

/* Faculty drops to one column well before the rest of the page does. Two per row
   below this width squeezes the bio to roughly 35-45 characters beside the
   photo — narrower than the layout reads as intentional. The single column is
   capped so it does not stretch the text to an unreadable measure on a tablet. */
@media (max-width: 1180px) {
  .faculty-grid { grid-template-columns: minmax(0, 1fr); max-width: 660px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav { height: 76px; }

  .site-header.is-open {
    background: var(--bg);
    border-bottom-color: var(--line);
  }
  .site-header.is-open .nav { height: auto; padding: 18px 0; align-items: flex-start; }
  .site-header.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px var(--pad) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav-links a {
    font-size: 1.05rem;
    padding: 15px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .mobile-cta { display: flex; }

  .manifesto-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 18px 4px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); padding-top: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding: 24px 20px 20px 0; border-bottom: 1px solid var(--line); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3), .step:nth-child(4) { padding-top: 24px; }
  .curriculum { grid-template-columns: 1fr; }
  .nav-links .mobile-cta {
    margin-top: 14px;
    border: 0;
    border-radius: 999px;
    background: var(--grad);
    color: #1a0c05;
    font-weight: 600;
    justify-content: center;
  }
  .nav-links .mobile-cta::after { display: none; }
  .curriculum-item { display: block; border-bottom: 1px solid var(--line); }
  .curriculum-term { border: 0; padding-bottom: 0; }
  .curriculum-body { border: 0; padding: 10px 0 24px; }
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
  .timeline-badge { justify-self: start; }
  .lab-row { grid-template-columns: 40px 1fr; }
  .lab-row p { grid-column: 2; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .faculty-grid, .form-grid { grid-template-columns: 1fr; }
  /* photo on its own row: beside the text there is only ~28 characters of
     measure left on a phone */
  .faculty-card { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px; }
  .hero { padding: 126px 0 60px; min-height: auto; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero-meta { gap: 10px 18px; }
  .panel-chip { right: 8px; bottom: -14px; }
  .section-head { gap: 20px; }
  .section-title { max-width: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .step { padding-right: 14px; }
  .cta-band { border-radius: 24px; }
  .footer-grid { gap: 32px; }
  .footer-nav { gap: 26px 20px; }
  .page-hero { padding-top: 130px; }
  .form-card { padding: 22px; }
  .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .nav-actions .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #neural-canvas { display: none; }
}
