/* CCNL — Cognitive Computing & Networking Lab */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f7f8fa;
  --ink: #101722;
  --ink-2: #3c4757;
  --ink-3: #414c5c;
  --muted: #6b7686;
  --muted-2: #8a97a8;
  --line: #dfe4ea;
  --line-2: #e2e7ee;
  --line-3: #e7ebf0;
  --blue: #1e4ea8;
  --blue-bright: #2b6cd9;
  --blue-deep: #14356f;
  --navy: #0d1622;
  --navy-ink: #eef2f7;
  --navy-muted: #b9c5d6;
  --navy-faint: #92a0b4;
  --accent-soft: #7fa8e8;
  --chip-bg: #eef1f6;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --disp: "Space Grotesk", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: #c9dcf7; }
img { max-width: 100%; }

@keyframes ccnlRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ccnlFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccnlFloat { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@keyframes ccnlOrbitA { from { transform: rotateX(74deg) rotateZ(0deg); } to { transform: rotateX(74deg) rotateZ(360deg); } }
@keyframes ccnlOrbitB { from { transform: rotateX(62deg) rotateZ(360deg); } to { transform: rotateX(62deg) rotateZ(0deg); } }
@keyframes ccnlPlanetA { 0%, 100% { opacity: 0.3; transform: rotateX(-74deg) scale(0.65); } 50% { opacity: 1; transform: rotateX(-74deg) scale(1.3); } }
@keyframes ccnlPlanetB { 0%, 100% { opacity: 0.3; transform: rotateX(-62deg) scale(0.65); } 50% { opacity: 1; transform: rotateX(-62deg) scale(1.3); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } html { scroll-behavior: auto; } }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247,248,250,0.93); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { height: 46px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-abbr { font-family: var(--disp); font-size: 15px; font-weight: 600; letter-spacing: 0.06em; }
.brand-full { font-size: 11.5px; color: var(--muted); letter-spacing: 0.01em; }

.site-nav { display: flex; gap: 4px; font-size: 13.5px; }
.site-nav a { position: relative; padding: 8px 14px; color: var(--ink-2); }
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -15px;
  height: 2px; background: var(--blue);
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; cursor: pointer; color: var(--ink-2); font-size: 18px; line-height: 1; }

/* ---------- hero (dark banners) ---------- */
.hero { background: var(--navy); color: var(--navy-ink); position: relative; overflow: hidden; }
.hero .eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-soft); margin: 0 0 18px;
}
.hero h1 { font-family: var(--disp); font-weight: 500; letter-spacing: -0.025em; margin: 0 0 20px; }
.hero .lede { font-size: 18px; line-height: 1.65; color: var(--navy-muted); max-width: 66ch; margin: 0; text-wrap: pretty; }

.subhero .container { padding-top: 68px; padding-bottom: 60px; }
.subhero h1 { font-size: 46px; }

/* hero backgrounds (all pages) */
.hero .field-host { position: absolute; inset: 0; pointer-events: none; animation: ccnlFade 1.6s ease both; }
.hero .glow {
  position: absolute; inset: -20%;
  background-image: radial-gradient(circle at 78% 38%, rgba(30,78,168,0.55), transparent 45%);
  pointer-events: none;
  animation: ccnlGlowA 16s ease-in-out infinite alternate;
}
.hero .glow-b {
  position: absolute; inset: -20%;
  background-image: radial-gradient(circle at 18% 72%, rgba(64,120,220,0.28), transparent 40%);
  pointer-events: none;
  animation: ccnlGlowB 21s ease-in-out infinite alternate;
}
@keyframes ccnlGlowA {
  0% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(-3%, 4%) scale(1.12); opacity: 1; }
  100% { transform: translate(2%, -3%) scale(0.96); opacity: 0.8; }
}
@keyframes ccnlGlowB {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(4%, -3%) scale(1.18); opacity: 1; }
  100% { transform: translate(-3%, 2%) scale(1.02); opacity: 0.65; }
}
.home-hero .container {
  padding-top: 108px; padding-bottom: 96px;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; position: relative;
}
.home-hero .eyebrow { font-size: 12px; margin-bottom: 26px; animation: ccnlRise 0.8s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.home-hero h1 { font-size: 62px; line-height: 1.06; margin-bottom: 26px; text-wrap: pretty; animation: ccnlRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.18s both; }
.home-hero .lede { font-size: 19px; max-width: 50ch; margin-bottom: 34px; animation: ccnlRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.34s both; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: ccnlRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.48s both; }

.btn { display: inline-block; padding: 13px 24px; font-size: 14.5px; border-radius: 3px; transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue-bright); color: #fff; border: none; cursor: pointer; font-family: var(--sans); }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-ghost { border: 1px solid #3a4a60; color: var(--navy-ink); }
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--navy-ink); }

/* orbit visual */
.orbit-wrap {
  justify-self: end; position: relative; width: 100%; max-width: 380px; aspect-ratio: 1 / 1;
  display: grid; place-items: center; perspective: 900px; animation: ccnlFade 1.4s ease 0.3s both;
}
.orbit { position: absolute; transform-style: preserve-3d; }
.orbit-a { inset: 4%; animation: ccnlOrbitA 20s linear infinite; }
.orbit-b { inset: 16%; animation: ccnlOrbitB 31s linear infinite; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; }
.orbit-a .ring { border: 1.5px solid rgba(127,168,232,0.6); }
.orbit-b .ring { border: 1.5px solid rgba(170,190,215,0.4); }
.orbit .sat { position: absolute; top: 50%; left: 50%; transform-style: preserve-3d; }
.orbit .sat > span { display: block; transform-style: preserve-3d; }
.orbit .planet { border-radius: 50%; display: block; }
.orbit-logo { position: relative; width: 84%; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55)); animation: ccnlFloat 9s ease-in-out 1.7s infinite; }
.orbit-wrap.video-wrap { aspect-ratio: auto; max-width: 470px; animation: none; isolation: auto; }
.logo-video { width: 100%; display: block; animation: ccnlFloat 9s ease-in-out 1.7s infinite; }
.logo-video.keyed { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.logo-canvas { width: 100%; display: block; animation: ccnlFloat 9s ease-in-out 1.7s infinite; }

/* ---------- stats band ---------- */
.stats-band { border-bottom: 1px solid var(--line); background: #fff; }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 26px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat + .stat { border-left: 1px solid var(--line-3); }
.stat-num { font-family: var(--disp); font-size: 34px; font-weight: 500; letter-spacing: -0.02em; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- sections ---------- */
.section .container { padding-top: 84px; padding-bottom: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--disp); font-weight: 500; font-size: 34px; letter-spacing: -0.02em; margin: 0; }
.section-head .more { font-size: 14px; }
h2.h-md { font-family: var(--disp); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; margin: 0; }
h2.h-sm { font-family: var(--disp); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; margin: 0; }
.tag-note { font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; }

/* research topic cards */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.topic-card {
  background: #fff; border: 1px solid var(--line-2); border-top: 3px solid var(--blue-bright);
  padding: 32px 30px; transition: transform 0.3s, box-shadow 0.3s;
}
.topic-card.alt { border-top-color: var(--muted-2); }
.topic-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,23,34,0.09); }
.topic-card h3 { font-family: var(--disp); font-weight: 500; font-size: 21px; margin: 0 0 12px; letter-spacing: -0.01em; }
.topic-card p { font-size: 15px; line-height: 1.65; color: var(--ink-3); margin: 0; text-wrap: pretty; }

/* news + recent work */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
.col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.list-box { display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.news-item { background: #fff; padding: 20px 22px; display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: baseline; }
.news-item .date { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); }
.news-item p { margin: 0; font-size: 15px; color: var(--ink-3); }
.news-item.placeholder p { color: var(--muted); }

.recent-list { display: grid; gap: 18px; }
.recent-item { color: var(--ink); display: block; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.recent-item:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-item:hover { color: var(--blue); text-decoration: none; }
.recent-item .meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.recent-item p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.45; }

/* research page */
.flagship {
  border: 1px solid var(--line-2); background: #fff; padding: 44px 42px;
  display: grid; grid-template-columns: 1fr 300px; gap: 48px;
}
.flagship .kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-bright); margin: 0 0 16px; }
.flagship h2 { font-family: var(--disp); font-weight: 500; font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; }
.flagship .sub { font-size: 17px; color: var(--ink-3); margin: 0 0 22px; }
.flagship p.body { font-size: 16px; line-height: 1.7; color: var(--ink-3); margin: 0 0 18px; text-wrap: pretty; }
.flagship p.body:last-child { margin-bottom: 0; }
.flagship-stats { display: grid; gap: 1px; background: var(--line-2); align-content: start; border: 1px solid var(--line-2); }
.flagship-stats > div { background: var(--bg); padding: 20px; }
.flagship-stats .num { font-family: var(--disp); font-size: 30px; font-weight: 500; color: var(--blue); }
.flagship-stats .lbl { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.area-card { background: #fff; border: 1px solid var(--line-2); padding: 34px 32px; }
.area-card .idx { font-family: var(--mono); font-size: 11.5px; color: var(--blue-bright); letter-spacing: 0.1em; margin-bottom: 16px; }
.area-card h3 { font-family: var(--disp); font-weight: 500; font-size: 22px; margin: 0 0 12px; letter-spacing: -0.01em; }
.area-card p { font-size: 15px; line-height: 1.65; color: var(--ink-3); margin: 0 0 20px; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11px; padding: 5px 9px; background: var(--chip-bg); color: var(--ink-3); }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.slot { border: 1px dashed #c8d0da; padding: 28px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.slot p { margin: 0; font-size: 15px; color: var(--muted); }
.slot .hint { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }

/* people */
.pi-grid { display: grid; grid-template-columns: 320px 1fr; gap: 52px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.photo-frame {
  background-color: var(--chip-bg);
  background-image: repeating-linear-gradient(135deg, var(--line-2) 0 8px, var(--chip-bg) 8px 16px);
  border: 1px solid var(--line-2); display: flex; align-items: flex-end; padding: 14px;
}
.photo-frame.portrait { aspect-ratio: 3 / 4; }
.photo-frame.square { aspect-ratio: 1 / 1; }
.photo-frame.wide { aspect-ratio: 4 / 3; }
.photo-frame .cap { font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: #fff; padding: 5px 8px; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.has-photo { padding: 0; background: none; }
.kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-bright); margin: 0 0 14px; }
.pi-grid h2 { font-family: var(--disp); font-weight: 500; font-size: 32px; margin: 0 0 8px; letter-spacing: -0.02em; }
.pi-grid .role { font-size: 15.5px; color: var(--muted); margin: 0 0 26px; }
.pi-grid p.bio { font-size: 16px; line-height: 1.75; color: var(--ink-3); max-width: 66ch; margin: 0 0 16px; text-wrap: pretty; }
.pi-links { display: flex; gap: 22px; font-size: 14px; flex-wrap: wrap; margin-top: 12px; }

.student-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.student-card { background: #fff; border: 1px solid var(--line-2); }
.student-card .pad { padding: 24px 22px; }
.student-card .kicker { font-size: 11px; letter-spacing: 0.1em; margin-bottom: 10px; }
.student-card h3 { font-family: var(--disp); font-weight: 500; font-size: 20px; margin: 0 0 4px; }
.student-card .dept { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.student-card .desc { font-size: 14.5px; line-height: 1.6; color: var(--ink-3); margin: 0 0 16px; text-wrap: pretty; }
.student-card .desc.placeholder { color: var(--muted); margin-bottom: 0; }
.student-card .mail { font-size: 13.5px; font-family: var(--mono); }
.open-slot { border: 1px dashed #c8d0da; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.open-slot .kicker { color: var(--muted-2); margin-bottom: 10px; font-size: 11px; }
.open-slot h3 { font-family: var(--disp); font-weight: 500; font-size: 20px; margin: 0 0 10px; }
.open-slot p { font-size: 14.5px; line-height: 1.6; color: var(--ink-3); margin: 0 0 14px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* publications */
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.pub-item { background: #fff; padding: 24px 26px; display: grid; grid-template-columns: 68px 1fr 210px; gap: 26px; align-items: baseline; }
.pub-item .year { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); }
.pub-item h3 { font-family: var(--sans); font-weight: 500; font-size: 17px; line-height: 1.45; margin: 0; text-wrap: pretty; }
.pub-item .venue { font-size: 13.5px; color: var(--muted); }
.pub-item.placeholder { background: var(--bg); border-top: 1px dashed #c8d0da; }
.pub-item.placeholder h3 { font-weight: 400; color: var(--muted); }
.pub-item.placeholder .venue { color: var(--muted-2); }

/* join */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.join-grid h2 { font-family: var(--disp); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; margin: 0 0 20px; }
.join-grid p.body { font-size: 16.5px; line-height: 1.75; color: var(--ink-3); margin: 0 0 18px; text-wrap: pretty; }
.callout { border-left: 3px solid var(--blue-bright); padding: 4px 0 4px 20px; }
.callout p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-3); }

.apply-box { border: 1px solid var(--line-2); background: #fff; padding: 36px 34px; }
.apply-box h3 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 26px; font-weight: 500; }
.steps { display: grid; gap: 24px; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 16px; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--blue-bright); }
.step p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-3); }

/* application form */
.form-card { border: 1px solid var(--line-2); background: #fff; padding: 44px 42px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field label .req { color: #c0392b; }
.field .help { font-size: 12px; color: var(--muted-2); margin: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
.field select, .field textarea {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  padding: 11px 12px; border: 1px solid #c8d0da; border-radius: 3px; background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(43,108,217,0.15); background: #fff;
}
.field input[type="file"] { font-size: 13.5px; color: var(--ink-3); padding: 9px 10px; border: 1px dashed #c8d0da; border-radius: 3px; background: var(--bg); }
.field input[type="file"]::file-selector-button {
  font-family: var(--sans); font-size: 13px; margin-right: 12px; padding: 7px 14px;
  border: 1px solid var(--blue-bright); border-radius: 3px; background: #fff; color: var(--blue-bright); cursor: pointer;
}
.check-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.check-row label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-3); font-weight: 400; }
fieldset.field { border: none; margin: 0; padding: 0; }
.form-divider { grid-column: 1 / -1; border-top: 1px solid var(--line-3); margin: 10px 0 2px; padding-top: 18px; }
.form-divider h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0; font-weight: 500; }
.form-divider .help { font-size: 12.5px; color: var(--muted-2); margin: 6px 0 0; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 12.5px; color: var(--muted-2); margin: 0; }
.form-status { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 3px; font-size: 14.5px; }
.form-status.ok { display: block; background: #e8f5ec; border: 1px solid #b7dfc3; color: #1e6b38; }
.form-status.err { display: block; background: #fdecea; border: 1px solid #f2c2bd; color: #a02417; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #dde4ee; border-top: 3px solid var(--blue-bright); }
.site-footer .container { padding-top: 68px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid #26313f; }
.site-footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.site-footer .f-brand img { height: 38px; width: 38px; object-fit: contain; }
.site-footer .f-brand span { font-family: var(--disp); font-size: 15px; font-weight: 600; letter-spacing: 0.06em; color: #fff; }
.site-footer .f-name { font-family: var(--disp); font-size: 20px; font-weight: 400; line-height: 1.35; margin: 0 0 16px; color: #fff; }
.site-footer .f-addr { font-size: 14px; line-height: 1.65; color: var(--navy-faint); margin: 0; }
.site-footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.f-links { display: grid; gap: 10px; font-size: 14px; }
.f-links a { color: #dde4ee; }
.f-links span { color: var(--navy-faint); }
.copyright { font-size: 12.5px; color: var(--muted); margin: 22px 0 0; }

/* reveal helper */
[data-reveal] { }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .home-hero .container { grid-template-columns: 1fr; gap: 48px; padding-top: 72px; padding-bottom: 64px; }
  .home-hero h1 { font-size: 44px; }
  .subhero h1 { font-size: 36px; }
  .orbit-wrap { justify-self: center; max-width: 300px; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 20px !important; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-3); }
  .card-grid, .slot-grid { grid-template-columns: 1fr; }
  .two-col, .join-grid, .form-grid { grid-template-columns: 1fr; }
  .flagship { grid-template-columns: 1fr; padding: 32px 26px; }
  .flagship-stats { grid-template-columns: repeat(3, 1fr); }
  .pi-grid { grid-template-columns: 1fr; gap: 32px; }
  .pi-grid .photo-frame { max-width: 320px; }
  .student-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .pub-item { grid-template-columns: 56px 1fr; }
  .pub-item .venue { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 30px 22px; }
  .field { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 0; box-shadow: 0 12px 24px rgba(16,23,34,0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 24px; font-size: 15px; }
  .site-nav a.active::after { display: none; }
  .site-nav a.active { color: var(--blue); font-weight: 500; }
  .nav-toggle { display: block; }
  .home-hero h1 { font-size: 36px; }
  .section-head h2 { font-size: 28px; }
  .student-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .flagship-stats { grid-template-columns: 1fr; }
}
