:root {
  --red: #a3001a;
  --red-bright: #d7192d;
  --red-dark: #6e0011;
  --ink: #171312;
  --ink-soft: #514846;
  --cream: #f2ead9;
  --cream-deep: #dfd2b7;
  --paper: #fbf7ee;
  --gold: #d1a340;
  --line: rgba(23, 19, 18, .18);
  --shadow: 0 22px 60px rgba(36, 4, 10, .16);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: 'Courier New', Courier, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); overflow-x: hidden; }
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--red); color: white; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 112px 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1000; padding: 12px 16px; background: white; color: black; }
.skip-link:focus { top: 20px; }

.boot-screen { position: fixed; inset: 0; z-index: 999; display: grid; place-content: center; gap: 18px; background: var(--paper); transition: opacity .55s ease, visibility .55s ease; }
body.ready .boot-screen { opacity: 0; visibility: hidden; }
.boot-mark { width: 92px; height: 92px; margin: auto; display: grid; place-content: center; position: relative; border: 2px solid var(--ink); background: var(--red); color: white; font-family: var(--serif); font-weight: 900; transform: rotate(-2deg); box-shadow: 8px 8px 0 var(--ink); }
.boot-mark span { font-size: 25px; line-height: .85; letter-spacing: -2px; }
.boot-mark b { font-size: 35px; line-height: .85; text-align: center; color: var(--cream); }
.boot-copy { font: 700 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.boot-track { width: 220px; height: 3px; background: rgba(0,0,0,.1); overflow: hidden; }
.boot-track i { display: block; height: 100%; width: 45%; background: var(--red); animation: boot 1.2s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }

.site-header { height: 76px; position: fixed; z-index: 100; top: 0; left: 0; right: 0; display: flex; align-items: center; padding: 0 34px; border-bottom: 1px solid rgba(255,255,255,.15); color: white; transition: background .25s, color .25s, border-color .25s, height .25s; }
.site-header.scrolled { height: 66px; background: rgba(251,247,238,.96); color: var(--ink); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 240px; }
.brand-play { width: 39px; height: 28px; display: grid; place-content: center; background: var(--red-bright); border-radius: 5px; box-shadow: inset 0 -2px rgba(0,0,0,.15); }
.brand-play i { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid white; margin-left: 3px; }
.brand-copy { display: flex; align-items: baseline; gap: 7px; }
.brand-copy strong { font-family: var(--serif); font-size: 21px; letter-spacing: -.04em; }
.brand-copy small { font: 700 8px var(--mono); letter-spacing: .2em; }
.desktop-nav { display: flex; justify-content: center; gap: 30px; flex: 1; }
.desktop-nav a, .back-link { font: 700 10px var(--mono); letter-spacing: .11em; text-transform: uppercase; text-decoration: none; position: relative; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: currentColor; transition: right .2s; }
.desktop-nav a:hover::after { right: 0; }
.header-actions { min-width: 240px; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.button { appearance: none; border: 1px solid var(--ink); min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; font: 800 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; background: transparent; color: var(--ink); transition: transform .18s, box-shadow .18s, background .18s, color .18s; }
.button:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--ink); }
.button-small { min-height: 38px; padding: 0 15px; font-size: 9px; }
.button-large { min-height: 56px; padding: 0 25px; }
.button-red { background: var(--red-bright); color: white; border-color: var(--red-bright); }
.button-red:hover { box-shadow: 5px 5px 0 #42000a; }
.button-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.button-ghost { background: rgba(255,255,255,.05); color: inherit; border-color: currentColor; }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 10px; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: currentColor; }
.mobile-menu { position: fixed; z-index: 90; top: 66px; left: 0; right: 0; padding: 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.mobile-menu a { display: block; padding: 14px 8px; text-decoration: none; font: 800 12px var(--mono); letter-spacing: .12em; border-bottom: 1px solid var(--line); }

.hero { min-height: 820px; padding: 150px 0 88px; position: relative; background: radial-gradient(circle at 76% 40%, #c92037 0, #990017 34%, #65000f 72%, #400009 100%); color: white; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,0,4,.62) 0 38%, transparent 70%), repeating-linear-gradient(90deg, transparent 0 89px, rgba(255,255,255,.025) 90px); }
.hero-noise { position: absolute; inset: 0; opacity: .14; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E"); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 78px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.42); margin-bottom: 26px; font: 700 9px var(--mono); letter-spacing: .12em; }
.eyebrow span, .eyebrow b { padding: 10px 12px; }
.eyebrow b { background: var(--cream); color: var(--red-dark); }
.hero h1 { margin: 0; font: 400 clamp(57px, 6.5vw, 96px)/.9 var(--serif); letter-spacing: -.07em; }
.hero h1 em { color: var(--cream); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px; }
.hero-lede { max-width: 650px; margin: 31px 0 28px; color: rgba(255,255,255,.8); font: 400 17px/1.65 var(--sans); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-promises { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 37px; font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero-promises span { display: flex; align-items: center; gap: 8px; }
.hero-promises i { display: grid; place-content: center; width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-style: normal; font-size: 8px; }
.crest-stage { min-height: 560px; position: relative; display: grid; place-content: center; padding: 24px 0; }
.paper-shadow { position: absolute; width: min(410px, 80%); height: 82%; left: 50%; top: 50%; background: rgba(24,0,3,.52); filter: blur(20px); transform: translate(-46%, -47%) rotate(3deg); }
.admission-card { width: min(420px, 86vw); position: relative; z-index: 2; padding: 20px 26px 24px; border: 1px solid #b8a98b; background: linear-gradient(#faf5e9, #e9ddc5); color: var(--ink); transform: rotate(1.35deg); transform-origin: center; box-shadow: 10px 12px 0 rgba(38,0,6,.32); }
.admission-card::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(92,69,41,.36); pointer-events: none; }
.card-topline { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.3); padding-bottom: 12px; font: 700 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.crest { width: 238px; margin: 22px auto 7px; }
.crest-wreath, .crest-leaves { fill: none; stroke: #8b6b28; stroke-width: 7; stroke-linecap: round; }
.crest-leaves { stroke-width: 6; }
.crest-shield { fill: var(--red); stroke: #24130e; stroke-width: 7; }
.crest-split { fill: none; stroke: #e2bd66; stroke-width: 5; }
.crest-screen { fill: var(--cream); stroke: #24130e; stroke-width: 4; }
.crest-play { fill: var(--red-bright); }
.crest-book, .crest-mic, .crest-stars { fill: none; stroke: var(--cream); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.crest-crown { fill: #d5a93f; stroke: #24130e; stroke-width: 5; }
.crest-banner { fill: #15110f; stroke: #24130e; stroke-width: 4; }
.crest-letter { fill: var(--cream); font: 900 30px var(--serif); letter-spacing: 0; }
.motto { margin: 0 auto 20px; text-align: center; font: 800 9px/1.45 var(--mono); letter-spacing: .19em; }
.class-stamp { width: 100%; margin: 0; padding: 14px; border: 2px solid var(--red); display: flex; align-items: baseline; justify-content: center; gap: 10px; text-align: center; color: var(--red); font: 800 12px/1.2 var(--mono); letter-spacing: .12em; }
.class-stamp strong { font-family: var(--serif); font-size: 19px; }
.tape { position: absolute; z-index: 3; width: 100px; height: 34px; background: rgba(230,203,143,.67); box-shadow: 0 1px rgba(255,255,255,.4); }
.tape-one { top: -17px; left: -36px; transform: rotate(-14deg); }
.tape-two { bottom: -17px; right: -36px; transform: rotate(13deg); }
.hero-ticker { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 46px; border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); background: rgba(32,0,5,.34); overflow: hidden; }
.hero-ticker-track { width: max-content; height: 100%; display: flex; align-items: stretch; animation: ticker 31s linear infinite; will-change: transform; }
.hero-ticker-set { flex: 0 0 auto; width: max(100vw, 980px); height: 100%; display: flex; align-items: center; justify-content: space-around; gap: clamp(18px, 2vw, 42px); padding-inline: clamp(16px, 2.3vw, 44px); font: 800 10px var(--mono); letter-spacing: .18em; white-space: nowrap; }
.hero-ticker-set span { flex: 0 0 auto; }
.hero-ticker-set b { flex: 0 0 auto; color: var(--gold); }
@keyframes ticker { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

.section-kicker { display: flex; align-items: center; gap: 13px; font: 800 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.section-kicker span { display: grid; place-content: center; width: 31px; height: 31px; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; }
.section-kicker.light { color: var(--cream); }
.manifesto { background: var(--paper); }
.manifesto-grid { display: grid; grid-template-columns: 180px 1fr 330px; gap: 55px; align-items: start; }
.manifesto-copy h2, .section-heading h2, .semester h2, .code h2, .faq h2 { margin: 0 0 30px; font: 400 clamp(44px, 5.2vw, 73px)/.98 var(--serif); letter-spacing: -.055em; }
.manifesto-copy h2 em { color: var(--red); }
.manifesto-copy p { max-width: 720px; font: 400 18px/1.72 var(--serif); color: var(--ink-soft); }
.founding-note { position: relative; margin-top: 76px; padding: 34px 30px 29px; background: #efe0b7; transform: rotate(2deg); box-shadow: 10px 12px 0 rgba(0,0,0,.07); }
.founding-note::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(0,0,0,.13); }
.note-pin { position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--red); box-shadow: 0 3px 6px rgba(0,0,0,.3); }
.founding-note small { font: 800 9px var(--mono); letter-spacing: .14em; }
.founding-note p { position: relative; font: italic 24px/1.35 var(--serif); }
.founding-note strong { font: 800 9px var(--mono); letter-spacing: .08em; }
.numbers-strip { border-block: 1px solid var(--line); background: #f7f0e4; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.number-card { min-height: 190px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; border-right: 1px solid var(--line); text-align: center; }
.number-card:first-child { border-left: 1px solid var(--line); }
.number-card strong { font: 400 67px/1 var(--serif); color: var(--red); }
.number-card span { font: 800 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; }

.section-heading { max-width: 820px; margin-bottom: 55px; }
.section-heading .section-kicker { margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading > p { max-width: 650px; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.tracks { background: var(--cream); }
.track-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--ink); }
.track-card { min-height: 455px; position: relative; padding: 42px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(255,255,255,.2); transition: background .25s, color .25s, transform .25s; overflow: hidden; }
.track-card:nth-child(2n) { border-right: 0; }
.track-card:nth-last-child(-n+2) { border-bottom: 0; }
.track-card::after { content: ''; position: absolute; width: 200px; height: 200px; right: -115px; bottom: -115px; border: 1px solid rgba(0,0,0,.15); border-radius: 50%; box-shadow: 0 0 0 22px rgba(0,0,0,.03), 0 0 0 44px rgba(0,0,0,.03); }
.track-card:hover { z-index: 2; background: var(--red); color: white; transform: translate(-4px, -4px); box-shadow: 9px 9px 0 var(--ink); }
.track-index { position: absolute; top: 24px; right: 25px; font: 800 9px var(--mono); }
.track-card h3 { margin: 24px 0 11px; font: 400 38px/1 var(--serif); letter-spacing: -.04em; }
.track-card p { max-width: 480px; color: var(--ink-soft); line-height: 1.6; }
.track-card:hover p { color: rgba(255,255,255,.8); }
.track-card ul { padding: 0; margin: 23px 0 28px; list-style: none; font: 800 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.track-card li { padding: 9px 0; border-top: 1px solid currentColor; opacity: .78; }
.track-card button { border: 0; padding: 0; background: transparent; color: inherit; font: 800 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.track-icon { width: 78px; height: 66px; position: relative; }
.track-icon-controller::before { content: ''; position: absolute; inset: 15px 0 0; border: 4px solid currentColor; border-radius: 28px 28px 20px 20px; transform: perspective(60px) rotateX(-12deg); }
.track-icon-controller i::before, .track-icon-controller i::after { content: ''; position: absolute; background: currentColor; }
.track-icon-controller i::before { width: 25px; height: 5px; left: 14px; top: 37px; }
.track-icon-controller i::after { width: 5px; height: 25px; left: 24px; top: 27px; }
.track-icon-controller b { position: absolute; right: 17px; top: 33px; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; box-shadow: 12px -6px 0 -2px var(--cream), 12px -6px 0 0 currentColor; }
.track-card:hover .track-icon-controller b { box-shadow: 12px -6px 0 -2px var(--red), 12px -6px 0 0 currentColor; }
.track-icon-mic::before { content: ''; position: absolute; left: 25px; top: 0; width: 26px; height: 43px; border: 4px solid currentColor; border-radius: 16px; }
.track-icon-mic::after { content: ''; position: absolute; left: 16px; top: 29px; width: 44px; height: 25px; border: 4px solid currentColor; border-top: 0; border-radius: 0 0 25px 25px; }
.track-icon-mic i { position: absolute; left: 36px; top: 53px; width: 4px; height: 13px; background: currentColor; }
.track-icon-mic b { position: absolute; left: 22px; bottom: 0; width: 32px; height: 4px; background: currentColor; }
.track-icon-cut::before, .track-icon-cut::after { content: ''; position: absolute; width: 23px; height: 23px; border: 4px solid currentColor; border-radius: 50%; bottom: 0; }
.track-icon-cut::before { left: 5px; }.track-icon-cut::after { right: 5px; }
.track-icon-cut i::before, .track-icon-cut i::after { content: ''; position: absolute; left: 34px; bottom: 20px; width: 5px; height: 52px; background: currentColor; transform-origin: bottom; }
.track-icon-cut i::before { transform: rotate(40deg); }.track-icon-cut i::after { transform: rotate(-40deg); }
.track-icon-live::before { content: ''; position: absolute; left: 26px; top: 20px; width: 25px; height: 25px; border: 4px solid currentColor; border-radius: 50%; }
.track-icon-live::after { content: ''; position: absolute; inset: 7px; border: 4px solid currentColor; border-block-color: transparent; border-radius: 50%; }
.track-icon-live i { position: absolute; inset: -4px; border: 4px solid currentColor; border-block-color: transparent; border-radius: 50%; }
.track-icon-live b { position: absolute; left: 36px; top: 30px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); }

.semester { background: #181111; color: white; position: relative; overflow: hidden; }
.semester::after { content: '2026'; position: absolute; right: -35px; bottom: -100px; font: 900 260px var(--serif); color: rgba(255,255,255,.025); }
.semester-grid { display: grid; grid-template-columns: 380px 1fr; gap: 100px; position: relative; z-index: 2; }
.semester-intro { position: sticky; top: 100px; align-self: start; }
.semester-intro .section-kicker { margin-bottom: 30px; }
.semester-intro h2 { font-size: 58px; }
.semester-intro p { color: rgba(255,255,255,.62); line-height: 1.7; margin-bottom: 27px; }
.timeline { border-top: 1px solid rgba(255,255,255,.23); }
.timeline-row { min-height: 175px; display: grid; grid-template-columns: 110px 1fr 95px; gap: 30px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.23); }
.week { font: 700 9px var(--mono); letter-spacing: .1em; color: rgba(255,255,255,.5); }
.week b { display: block; margin-top: 4px; font: 400 38px var(--serif); color: var(--cream); }
.timeline-row h3 { margin: 0 0 10px; font: 400 29px var(--serif); }
.timeline-row p { margin: 0; color: rgba(255,255,255,.6); line-height: 1.55; }
.timeline-row > span { justify-self: end; border: 1px solid rgba(255,255,255,.3); padding: 8px 9px; font: 700 8px var(--mono); letter-spacing: .09em; }

.campus { background: var(--paper); }
.campus-map { height: 600px; position: relative; border: 1px solid var(--ink); background-color: #eadfca; background-image: linear-gradient(rgba(58,42,29,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(58,42,29,.08) 1px, transparent 1px); background-size: 34px 34px; overflow: hidden; }
.campus-map::before { content: 'VIRTUAL CAMPUS MAP // NOT TO SCALE'; position: absolute; top: 16px; left: 18px; font: 700 8px var(--mono); letter-spacing: .13em; }
.campus-map::after { content: ''; position: absolute; inset: 22px; border: 1px dashed rgba(0,0,0,.22); pointer-events: none; }
.campus-building { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 24px; border: 2px solid var(--ink); background: #f9f2e5; color: var(--ink); text-align: left; box-shadow: 9px 9px 0 rgba(23,19,18,.15); transition: transform .2s, background .2s, color .2s; }
.campus-building::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(0,0,0,.17); }
.campus-building:hover, .campus-building.active { z-index: 3; background: var(--red); color: white; transform: translate(-5px, -5px); box-shadow: 14px 14px 0 var(--ink); }
.campus-building strong { position: relative; font: 800 14px var(--mono); letter-spacing: .1em; }
.campus-building small { position: relative; margin-top: 7px; font: 700 9px var(--mono); opacity: .68; }
.map-path { position: absolute; z-index: 1; border: 9px double rgba(92,73,54,.3); border-radius: 50%; }
.path-a { width: 410px; height: 170px; left: 28%; top: 31%; transform: rotate(13deg); }
.path-b { width: 250px; height: 350px; left: 33%; top: 22%; transform: rotate(-14deg); }
.map-seal { position: absolute; z-index: 1; left: 45%; top: 41%; width: 94px; height: 94px; display: grid; place-content: center; border: 3px solid rgba(0,0,0,.22); border-radius: 50%; font: 900 25px var(--serif); color: rgba(0,0,0,.27); transform: rotate(-10deg); }
.room-detail { margin-top: 18px; display: grid; grid-template-columns: 130px 260px 1fr; gap: 26px; align-items: baseline; padding: 29px 34px; border: 1px solid var(--ink); background: var(--ink); color: white; }
.room-detail span { font: 700 8px var(--mono); letter-spacing: .12em; color: var(--gold); }
.room-detail h3 { margin: 0; font: 400 28px var(--serif); }
.room-detail p { margin: 0; color: rgba(255,255,255,.65); line-height: 1.55; }

.code { background: var(--cream); }
.code-grid { display: grid; grid-template-columns: 180px 1fr; gap: 60px; }
.code-copy h2 { margin-top: -8px; }
.code-rules { border-top: 1px solid var(--ink); }
.code-rules article { display: grid; grid-template-columns: 65px 300px 1fr; gap: 35px; padding: 28px 0; border-bottom: 1px solid var(--ink); align-items: baseline; }
.code-rules b { font: 800 10px var(--mono); color: var(--red); }
.code-rules h3 { margin: 0; font: 400 25px var(--serif); }
.code-rules p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

.roster { background: #f5ede0; }
.roster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roster-card { min-height: 220px; padding: 28px; border: 1px solid var(--ink); background: var(--paper); }
.roster-card .avatar { width: 52px; height: 52px; display: grid; place-content: center; background: var(--red); color: white; font: 900 20px var(--serif); }
.roster-card h3 { margin: 22px 0 5px; font: 400 27px var(--serif); }
.roster-card > span { font: 800 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.roster-card p { color: var(--ink-soft); line-height: 1.5; }
.roster-card a { font: 800 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 390px 1fr; gap: 95px; }
.faq-intro { position: sticky; top: 100px; align-self: start; }
.faq-intro .section-kicker { margin-bottom: 28px; }
.faq-intro h2 { font-size: 54px; }
.faq-intro p { color: var(--ink-soft); line-height: 1.6; }
.accordion { border-top: 1px solid var(--ink); }
.accordion details { border-bottom: 1px solid var(--ink); }
.accordion summary { list-style: none; position: relative; padding: 27px 48px 27px 0; font: 400 22px/1.35 var(--serif); cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { position: absolute; right: 4px; top: 25px; font: 300 28px var(--sans); transition: transform .2s; }
.accordion details[open] summary span { transform: rotate(45deg); }
.accordion details p { margin: -4px 60px 28px 0; color: var(--ink-soft); line-height: 1.65; }

.final-cta { position: relative; padding: 125px 0; background: var(--red); color: white; overflow: hidden; }
.final-lines { position: absolute; inset: -30%; background: repeating-radial-gradient(circle at center, transparent 0 44px, rgba(255,255,255,.07) 45px 47px); }
.final-cta-inner { position: relative; z-index: 2; text-align: center; }
.mini-crest { width: 74px; height: 74px; margin: 0 auto 20px; display: grid; place-content: center; border: 2px solid var(--cream); font: 900 19px var(--serif); transform: rotate(-4deg); }
.mini-crest span { color: var(--gold); }
.final-cta p { font: 800 9px var(--mono); letter-spacing: .15em; }
.final-cta h2 { margin: 22px 0 35px; font: 400 clamp(46px, 6vw, 80px)/.98 var(--serif); letter-spacing: -.05em; }
.site-footer { background: #151110; color: white; padding: 70px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 60px; }
.footer-brand strong { display: block; font: 400 30px var(--serif); }
.footer-brand span { display: block; margin-top: 4px; font: 800 9px var(--mono); letter-spacing: .18em; }
.footer-brand small { display: block; margin-top: 26px; color: rgba(255,255,255,.48); }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 12px; }
.footer-grid b { margin-bottom: 7px; font: 800 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.footer-grid a, .footer-grid button { width: fit-content; padding: 0; border: 0; background: none; color: rgba(255,255,255,.66); text-decoration: none; font-size: 13px; }
.footer-grid a:hover, .footer-grid button:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 65px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.38); font: 700 8px var(--mono); letter-spacing: .09em; text-transform: uppercase; }

.apply-dialog { width: min(900px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; color: var(--ink); background: transparent; overflow: visible; }
.apply-dialog::backdrop { background: rgba(17,8,8,.88); backdrop-filter: blur(10px); }
.dialog-shell { max-height: calc(100vh - 28px); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--ink); box-shadow: 16px 16px 0 rgba(163,0,26,.55); overflow: hidden; }
.dialog-header { min-height: 77px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--ink); background: var(--cream); }
.dialog-brand { display: flex; align-items: center; gap: 12px; }
.dialog-brand > span { width: 40px; height: 40px; display: grid; place-content: center; background: var(--red); color: white; font: 900 13px var(--serif); }
.dialog-brand b, .dialog-brand small { display: block; }
.dialog-brand b { font: 800 10px var(--mono); letter-spacing: .1em; }
.dialog-brand small { margin-top: 3px; font: 700 8px var(--mono); letter-spacing: .13em; color: var(--red); }
.dialog-close { border: 0; background: none; font-size: 31px; line-height: 1; }
.application-progress { height: 33px; position: relative; display: flex; align-items: center; justify-content: flex-end; padding: 0 25px; border-bottom: 1px solid var(--ink); background: #e5d9c3; overflow: hidden; }
.application-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 25%; background: var(--red); transition: width .3s ease; }
.application-progress span { position: relative; z-index: 1; padding: 4px 7px; background: var(--paper); font: 800 8px var(--mono); letter-spacing: .11em; }
.application-step { display: none; flex: 1; padding: 38px 44px 30px; overflow-y: auto; }
.application-step.active { display: block; animation: stepIn .25s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } }
.step-heading { margin-bottom: 28px; }
.step-heading > span { font: 800 8px var(--mono); letter-spacing: .13em; color: var(--red); }
.step-heading h2 { margin: 8px 0 8px; font: 400 41px/1.05 var(--serif); letter-spacing: -.04em; }
.step-heading p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.form-grid.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid.two .wide { grid-column: 1 / -1; }
.application-step label { display: block; font: 800 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.application-step label > small { float: right; color: #897a70; text-transform: none; letter-spacing: 0; }
.application-step input, .application-step textarea, .application-step select { width: 100%; margin-top: 8px; border: 1px solid var(--ink); border-radius: 0; background: #fffdfa; color: var(--ink); outline: 0; }
.application-step input, .application-step select { height: 49px; padding: 0 13px; }
.application-step textarea { min-height: 119px; padding: 13px; resize: vertical; line-height: 1.5; }
.application-step input:focus, .application-step textarea:focus, .application-step select:focus { box-shadow: 4px 4px 0 var(--red); }
.application-step input.invalid, .application-step textarea.invalid, .application-step select.invalid { border-color: var(--red); background: #fff3f3; }
.full-label { margin-top: 18px; }
.full-label > small { display: block; float: none !important; margin-top: 6px; font: 400 11px var(--sans); color: #766b65 !important; }
.honeypot { position: absolute !important; left: -9999px; }
.track-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.track-picker label { position: relative; }
.track-picker input { position: absolute; opacity: 0; pointer-events: none; }
.track-picker span { min-height: 104px; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; align-content: center; padding: 18px; border: 1px solid var(--ink); background: #fffdfa; transition: background .15s, color .15s, box-shadow .15s; }
.track-picker b { grid-row: 1 / span 2; align-self: start; color: var(--red); font: 800 9px var(--mono); }
.track-picker strong { font: 400 19px var(--serif); text-transform: none; letter-spacing: 0; }
.track-picker small { margin-top: 5px; font: 400 11px var(--sans); text-transform: none; letter-spacing: 0; opacity: .7; }
.track-picker input:checked + span { background: var(--red); color: white; box-shadow: 5px 5px 0 var(--ink); }
.track-picker input:checked + span b { color: var(--gold); }
.check-list { display: grid; gap: 10px; }
.check-list label { display: flex; gap: 13px; padding: 15px; border: 1px solid var(--line); background: #fffdfa; text-transform: none; letter-spacing: 0; }
.check-list input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.check-list b, .check-list small { display: block; }
.check-list b { font-size: 12px; }
.check-list small { margin-top: 4px; color: var(--ink-soft); font: 400 11px/1.35 var(--sans); }
.submission-error { margin-top: 14px; padding: 12px; border: 1px solid var(--red); background: #fff0f1; color: var(--red); font-size: 12px; line-height: 1.45; }
.dialog-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 28px; border-top: 1px solid var(--ink); background: var(--cream); }
.dialog-footer .button:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.application-success { flex: 1; display: grid; place-items: center; align-content: center; text-align: center; padding: 48px 30px; }
.success-seal { width: 112px; height: 112px; display: grid; place-content: center; border: 4px double var(--red); border-radius: 50%; color: var(--red); font: 900 10px/1.45 var(--mono); transform: rotate(-8deg); }
.application-success > span { margin-top: 24px; font: 800 9px var(--mono); letter-spacing: .14em; color: var(--red); }
.application-success h2 { margin: 12px 0 8px; font: 400 42px var(--serif); }
.application-success p { max-width: 520px; color: var(--ink-soft); line-height: 1.55; }
.application-success > strong { margin: 14px 0 28px; padding: 11px 16px; border: 1px dashed var(--ink); font: 800 14px var(--mono); letter-spacing: .12em; }
.toast { position: fixed; z-index: 120; right: 22px; bottom: 22px; max-width: 380px; padding: 14px 17px; background: var(--ink); color: white; box-shadow: 6px 6px 0 var(--red); font-size: 12px; line-height: 1.4; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .15s; }

@media (max-width: 1000px) {
  .site-header { padding-inline: 22px; }
  .desktop-nav, .back-link { display: none; }
  .brand, .header-actions { min-width: 0; }
  .header-actions { margin-left: auto; }
  .menu-button { display: block; }
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 760px; }
  .crest-stage { min-height: 520px; padding-block: 20px; }
  .manifesto-grid { grid-template-columns: 150px 1fr; }
  .founding-note { grid-column: 2; margin-top: 10px; max-width: 420px; }
  .semester-grid { grid-template-columns: 1fr; gap: 55px; }
  .semester-intro, .faq-intro { position: static; }
  .faq-grid { grid-template-columns: 1fr; gap: 50px; }
  .faq-intro { max-width: 600px; }
  .campus-map { height: 520px; }
  .room-detail { grid-template-columns: 110px 220px 1fr; }
  .code-rules article { grid-template-columns: 50px 240px 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 78px 0; }
  .site-header { height: 66px; padding: 0 14px; }
  .brand-copy small { display: none; }
  .header-actions .button { display: none; }
  .hero { min-height: auto; padding: 110px 0 72px; }
  .hero::before { background: linear-gradient(rgba(28,0,4,.36), rgba(28,0,4,.08)); }
  .hero h1 { font-size: clamp(52px, 16vw, 74px); }
  .hero-lede { font-size: 15px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-promises { gap: 14px; }
  .crest-stage { min-height: 0; padding: 34px 0 42px; }
  .admission-card { width: min(400px, calc(100vw - 42px)); padding: 18px 19px 20px; transform: rotate(.8deg); box-shadow: 7px 9px 0 rgba(38,0,6,.3); }
  .paper-shadow { width: min(385px, 78%); height: 80%; filter: blur(16px); }
  .crest { width: 205px; margin-top: 18px; }
  .motto { margin-bottom: 17px; letter-spacing: .16em; }
  .class-stamp { padding: 12px 10px; }
  .tape-one { top: -17px; left: -28px; }
  .tape-two { bottom: -17px; right: -28px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 30px; }
  .founding-note { grid-column: auto; margin-top: 0; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-card:nth-child(2) { border-right: 0; }
  .number-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .track-grid { grid-template-columns: 1fr; }
  .track-card, .track-card:nth-child(2n), .track-card:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--ink); }
  .track-card:last-child { border-bottom: 0; }
  .track-card { min-height: 420px; padding: 34px 27px; }
  .semester-intro h2 { font-size: 49px; }
  .timeline-row { grid-template-columns: 75px 1fr; padding: 24px 0; }
  .timeline-row > span { display: none; }
  .campus-map { height: auto; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 55px 15px 15px; background-size: 25px 25px; }
  .campus-building { position: relative; inset: auto !important; width: 100% !important; height: 135px !important; }
  .map-path, .map-seal { display: none; }
  .room-detail { grid-template-columns: 1fr; gap: 8px; padding: 23px; }
  .code-grid { grid-template-columns: 1fr; gap: 35px; }
  .code-rules article { grid-template-columns: 35px 1fr; gap: 17px; }
  .code-rules p { grid-column: 2; }
  .roster-grid { grid-template-columns: 1fr; }
  .faq-intro h2 { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 25px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 9px; }
  .dialog-shell { max-height: calc(100vh - 10px); }
  .apply-dialog { width: calc(100% - 10px); max-height: calc(100vh - 10px); }
  .dialog-header { padding: 0 17px; min-height: 65px; }
  .application-step { padding: 27px 20px 24px; }
  .step-heading h2 { font-size: 34px; }
  .form-grid.two, .track-picker { grid-template-columns: 1fr; }
  .dialog-footer { padding: 12px 16px; }
  .dialog-footer .button { min-width: 120px; padding-inline: 13px; }
  .application-success h2 { font-size: 35px; }
}

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

/* v1.2.2 — UI reliability and responsive repair */
[hidden] { display: none !important; }

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

.apply-dialog {
  max-width: 900px;
}

.dialog-shell {
  min-height: 0;
}

.application-step {
  min-height: 0;
  overscroll-behavior: contain;
}

.dialog-footer {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(48px, 14vw, 66px);
    line-height: .94;
  }

  .hero-lede {
    line-height: 1.65;
  }

  .apply-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .dialog-shell {
    max-height: calc(100dvh - 16px);
    box-shadow: 6px 6px 0 rgba(163,0,26,.55);
  }

  .dialog-header {
    min-height: 62px;
  }

  .dialog-brand > span {
    width: 38px;
    height: 38px;
  }

  .application-progress {
    flex: 0 0 31px;
    padding-inline: 14px;
  }

  .application-step {
    padding: 24px 18px 22px;
  }

  .step-heading {
    margin-bottom: 22px;
  }

  .step-heading h2 {
    font-size: clamp(30px, 9.2vw, 38px);
  }

  .application-step input,
  .application-step select {
    height: 48px;
  }

  .track-picker span {
    min-height: 92px;
  }

  .dialog-footer {
    min-height: 68px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 12px;
  }

  .dialog-footer .button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding-inline: 10px;
    font-size: 9px;
  }

  .dialog-footer [data-submit] {
    grid-column: 2;
  }

  .application-success {
    overflow-y: auto;
    padding: 34px 20px;
  }

  .success-seal {
    width: 94px;
    height: 94px;
  }

  .application-success h2 {
    font-size: 32px;
    line-height: 1.03;
  }
}

@media (max-width: 390px) {
  .eyebrow span,
  .eyebrow b {
    padding-inline: 9px;
  }

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

  .dialog-brand b {
    font-size: 9px;
  }

  .dialog-brand small {
    font-size: 7px;
  }
}

/* v1.2.5 — original visual direction, crest geometry + alignment repair */
@media (max-width: 430px) {
  .crest-stage { padding-inline: 4px; }
  .admission-card { width: calc(100vw - 36px); padding-inline: 17px; }
  .card-topline { gap: 12px; font-size: 8px; letter-spacing: .1em; }
  .crest { width: min(198px, 62vw); }
  .motto { max-width: 92%; font-size: 8px; }
  .class-stamp { font-size: 11px; letter-spacing: .1em; }
  .class-stamp strong { font-size: 18px; }
}


/* v1.2.5 — targeted crest and poster alignment repair */
.crest svg { display: block; width: 100%; height: auto; overflow: visible; }
.class-stamp span,
.class-stamp strong { display: block; }

@media (max-width: 430px) {
  .crest-stage { place-items: center; }
  .admission-card { margin-inline: auto; transform: rotate(.45deg); }
  .paper-shadow { left: 50%; transform: translate(-50%, -48%) rotate(1.2deg); }
  .class-stamp { gap: 8px; }
}


/* v1.2.6 — targeted crest details and corner-tape placement */
.crest-stars { vector-effect: non-scaling-stroke; }

@media (max-width: 430px) {
  .tape { width: 92px; height: 32px; }
  .tape-one { top: -16px; left: -25px; }
  .tape-two { bottom: -16px; right: -25px; }
}

/* v1.2.7 — hero poster finish pass: crest symmetry, paper depth, tape + type alignment */
.admission-card {
  transform: rotate(.9deg);
  border-color: #b6a588;
  background:
    linear-gradient(165deg, rgba(255,255,255,.2), transparent 32%),
    linear-gradient(180deg, #fbf7ed 0%, #f5eddc 67%, #e9dcc4 100%);
  box-shadow:
    0 24px 42px rgba(38,0,6,.22),
    5px 7px 0 rgba(38,0,6,.14);
}

.admission-card::before {
  inset: 10px;
  border-color: rgba(92,69,41,.32);
}

.paper-shadow {
  width: min(420px, 82%);
  height: 84%;
  background: rgba(24,0,3,.36);
  filter: blur(25px);
  transform: translate(-49%, -47%) rotate(1.4deg);
}

.card-topline {
  padding-bottom: 11px;
  font-size: 9.5px;
  letter-spacing: .12em;
}

.crest {
  width: 242px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.crest-wreath {
  stroke-width: 6;
}

.crest-leaves {
  stroke-width: 5;
}

.crest-shield {
  stroke-width: 6;
}

.crest-split {
  stroke-width: 4.5;
}

.crest-crown {
  stroke-width: 5;
  stroke-linejoin: round;
}

.crest-stars {
  stroke-width: 4.5;
  vector-effect: non-scaling-stroke;
}

.crest-banner {
  stroke-width: 3.5;
  stroke-linejoin: round;
}

.crest-letter {
  font-size: 29px;
  dominant-baseline: alphabetic;
}

.motto {
  margin-bottom: 19px;
  letter-spacing: .175em;
}

.class-stamp {
  min-height: 56px;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
}

.class-stamp strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: .01em;
  transform: translateY(1px);
}

.tape {
  width: 92px;
  height: 31px;
  opacity: .82;
  border: 1px solid rgba(126,88,34,.1);
  background:
    linear-gradient(100deg, rgba(255,255,255,.28), transparent 37%, rgba(120,80,24,.08)),
    rgba(230,203,143,.72);
  box-shadow: 0 2px 5px rgba(54,17,4,.10);
  clip-path: polygon(2% 8%, 98% 0, 100% 88%, 4% 100%, 0 20%);
}

.tape-one {
  top: -14px;
  left: -29px;
  transform: rotate(-12deg);
}

.tape-two {
  right: -29px;
  bottom: -14px;
  transform: rotate(12deg);
}

@media (max-width: 760px) {
  .admission-card {
    transform: rotate(.55deg);
    box-shadow:
      0 18px 34px rgba(38,0,6,.2),
      4px 5px 0 rgba(38,0,6,.12);
  }

  .paper-shadow {
    width: min(390px, 80%);
    height: 82%;
    filter: blur(20px);
    transform: translate(-50%, -48%) rotate(.8deg);
  }

  .crest { width: 210px; }
  .tape-one { top: -13px; left: -22px; }
  .tape-two { right: -22px; bottom: -13px; }
}

@media (max-width: 430px) {
  .admission-card { transform: rotate(.3deg); }
  .crest { width: min(202px, 63vw); }
  .card-topline { font-size: 8.5px; }
  .motto { font-size: 8.25px; letter-spacing: .15em; }
  .class-stamp { min-height: 52px; }
  .class-stamp strong { font-size: 19px; }
  .tape { width: 84px; height: 29px; }
  .tape-one { left: -18px; }
  .tape-two { right: -18px; }
}

/* v1.2.7 laurel refinement: use real leaf silhouettes instead of radiating branch strokes. */
.crest-leaves { fill: #8b6b28; stroke: none; }


/* v1.2.8 — full-width seamless hero ticker repair */
@media (max-width: 760px) {
  .hero-ticker-track { animation-duration: 27s; }
  .hero-ticker-set { width: 980px; justify-content: space-between; gap: 22px; padding-inline: 22px; }
}


/* v1.2.9 — sitewide finish pass: responsive rhythm, alignment, controls, and edge-case cleanup */
html {
  scroll-padding-top: 86px;
  scrollbar-gutter: stable;
}

body {
  min-width: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main, section, footer, header, nav, article, aside { min-width: 0; }

#program, #tracks, #semester, #faq, #roster { scroll-margin-top: 84px; }

.site-header {
  isolation: isolate;
  padding-inline: clamp(18px, 2.4vw, 34px);
}
.site-header:not(.scrolled) {
  background: linear-gradient(180deg, rgba(40,0,7,.24), rgba(40,0,7,0));
}
.brand { min-width: max-content; flex: 0 0 auto; }
.header-actions { min-width: max-content; flex: 0 0 auto; }
.desktop-nav { min-width: 0; gap: clamp(16px, 2vw, 30px); }
.desktop-nav a, .back-link { white-space: nowrap; }
.mobile-menu { max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }

.hero {
  min-height: max(820px, 100svh);
  padding-bottom: 106px;
}
.hero-grid { gap: clamp(44px, 5.4vw, 78px); }
.hero-copy { min-width: 0; }
.hero h1,
.manifesto-copy h2,
.section-heading h2,
.semester h2,
.code h2,
.faq h2,
.final-cta h2 {
  text-wrap: balance;
}
.hero-lede,
.section-heading > p,
.manifesto-copy p,
.founding-note p,
.timeline-row p,
.room-detail p,
.code-rules p,
.faq-intro p,
.accordion details p {
  text-wrap: pretty;
}
.hero h1 { letter-spacing: -.06em; }
.hero-actions .button { min-width: 0; }
.hero-promises { row-gap: 12px; }

/* Keep the ticker visually full while preventing the track itself from affecting layout width. */
.hero-ticker { contain: layout paint; }
.hero-ticker-track { min-width: 200%; }
.hero-ticker-set { min-width: max(100vw, 980px); }

.manifesto-grid > *, .semester-grid > *, .faq-grid > *, .code-grid > * { min-width: 0; }
.founding-note { transform-origin: center top; }

.track-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.track-card p { margin-bottom: 0; }
.track-card ul { width: 100%; }
.track-card button {
  margin-top: auto;
  min-height: 40px;
  text-align: left;
}
.track-card button:hover,
.track-card button:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.timeline-row > div { min-width: 0; }
.timeline-row h3 { text-wrap: balance; }
.timeline-row > span { white-space: nowrap; }

.campus-building { overflow: hidden; }
.campus-building strong,
.campus-building small { max-width: 100%; overflow-wrap: anywhere; }
.campus-building:focus-visible { z-index: 4; }
.room-detail > * { min-width: 0; }

.code-rules article > * { min-width: 0; }

.roster-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.roster-card p { overflow-wrap: anywhere; }
.roster-card a { margin-top: auto; overflow-wrap: anywhere; }

.accordion summary { min-height: 72px; display: flex; align-items: center; }
.accordion summary:focus-visible { outline-offset: -3px; }
.accordion details[open] summary { color: var(--red); }
.accordion details p { max-width: 760px; }

.final-cta-inner { max-width: 980px; }
.site-footer a, .site-footer button { min-height: 28px; display: inline-flex; align-items: center; }

.apply-dialog {
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}
.dialog-shell { max-height: calc(100dvh - 24px); }
.dialog-close { width: 44px; height: 44px; display: grid; place-content: center; flex: 0 0 auto; }
.application-step { scrollbar-gutter: stable; }
.application-step input,
.application-step textarea,
.application-step select { min-width: 0; }
.track-picker span { height: 100%; }
.track-picker input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check-list label:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.toast { max-width: min(380px, calc(100vw - 28px)); }

@media (max-width: 1180px) {
  .manifesto-grid { grid-template-columns: 150px minmax(0, 1fr); gap: 48px; }
  .founding-note { grid-column: 2; width: min(100%, 430px); margin-top: 10px; }
  .code-grid { grid-template-columns: 145px minmax(0, 1fr); gap: 46px; }
  .faq-grid { grid-template-columns: 330px minmax(0, 1fr); gap: 62px; }
  .room-detail { grid-template-columns: 110px 220px minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 1060px) {
  .desktop-nav, .back-link { display: none; }
  .header-actions { margin-left: auto; }
  .menu-button { display: block; }
  .mobile-menu { top: 76px; }
  .site-header.scrolled + .mobile-menu { top: 66px; max-height: calc(100dvh - 66px); }

  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { max-width: 800px; }
  .crest-stage { min-height: 535px; }

  .semester-grid { grid-template-columns: 1fr; gap: 48px; }
  .semester-intro, .faq-intro { position: static; }
  .faq-grid { grid-template-columns: 1fr; gap: 42px; }
  .faq-intro { max-width: 650px; }
}

@media (max-width: 900px) {
  .section { padding-block: 92px; }
  .section-heading { margin-bottom: 42px; }
  .code-grid { grid-template-columns: 1fr; gap: 28px; }
  .code-rules article { grid-template-columns: 46px minmax(180px, .75fr) minmax(0, 1.25fr); gap: 24px; }
  .room-detail { grid-template-columns: 100px 190px minmax(0, 1fr); padding-inline: 26px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  #program, #tracks, #semester, #faq, #roster { scroll-margin-top: 72px; }

  .site-header,
  .site-header.scrolled { height: 66px; }
  .mobile-menu,
  .site-header.scrolled + .mobile-menu { top: 66px; max-height: calc(100dvh - 66px); }

  .hero { padding-top: 102px; padding-bottom: 104px; }
  .hero-grid { gap: 22px; }
  .hero h1 { letter-spacing: -.055em; }
  .hero-promises { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .hero-promises span { min-height: 30px; }
  .hero-ticker { height: 44px; }

  .manifesto-grid { grid-template-columns: 1fr; gap: 26px; }
  .founding-note { grid-column: auto; width: 100%; margin-top: 4px; transform: rotate(.7deg); }
  .numbers-grid { align-items: stretch; }
  .number-card { min-height: 155px; padding: 20px 10px; }
  .number-card strong { font-size: clamp(48px, 15vw, 62px); }

  .track-card { min-height: 0; padding: 32px 26px; }
  .track-card h3 { font-size: clamp(32px, 9vw, 38px); }
  .track-card button { min-height: 44px; }

  .semester::after { right: -18px; bottom: -38px; font-size: 150px; }
  .timeline-row { min-height: 0; grid-template-columns: 66px minmax(0, 1fr); gap: 18px; }
  .timeline-row h3 { font-size: 26px; }

  .campus-map { padding-top: 58px; }
  .campus-building { min-height: 122px; padding: 22px; }
  .room-detail { grid-template-columns: 1fr; gap: 7px; padding: 22px; }

  .code-rules article { grid-template-columns: 34px minmax(0, 1fr); gap: 15px; padding: 25px 0; }
  .code-rules p { grid-column: 2; }

  .accordion summary { min-height: 68px; padding: 22px 42px 22px 0; font-size: 20px; }
  .accordion summary span { top: 19px; }
  .accordion details p { margin-right: 32px; }

  .final-cta { padding-block: 96px; }
  .final-cta h2 br { display: none; }

  .footer-grid { gap: 34px 22px; }
  .footer-bottom { margin-top: 46px; }

  .apply-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); }
  .dialog-shell { max-height: calc(100dvh - 12px); }
  .dialog-header { padding-inline: 14px; }
  .application-step { padding: 23px 17px 21px; }
  .application-progress { padding-inline: 12px; }
  .dialog-footer { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}

@media (max-width: 520px) {
  .container { width: min(100% - 24px, 1180px); }
  .section { padding-block: 68px; }
  .site-header { padding-inline: 12px; }
  .brand { gap: 8px; }
  .brand-play { width: 36px; height: 26px; }
  .brand-copy strong { font-size: 19px; }
  .menu-button { width: 40px; height: 40px; }

  .eyebrow { max-width: 100%; }
  .eyebrow span, .eyebrow b { padding: 9px 8px; }
  .hero-actions { gap: 9px; }
  .button-large { min-height: 52px; padding-inline: 18px; }

  .admission-card { width: calc(100vw - 34px); }
  .tape-one { left: -15px; }
  .tape-two { right: -15px; }

  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .number-card { min-width: 0; }
  .number-card span { max-width: 120px; line-height: 1.35; }

  .semester-intro h2,
  .faq-intro h2 { font-size: clamp(40px, 12vw, 49px); }

  .campus-building strong { font-size: 12px; }
  .campus-building small { font-size: 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .site-footer { padding-top: 54px; }

  .dialog-brand small { letter-spacing: .09em; }
  .dialog-close { margin-right: -6px; }
  .application-progress span { font-size: 7px; }
  .application-success { padding-inline: 16px; }
  .application-success > strong { max-width: 100%; overflow-wrap: anywhere; }
  .toast { right: 12px; bottom: 12px; }
}

@media (hover: hover) and (pointer: fine) {
  .campus-building:hover { transform: translate(-4px, -4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticker-track { animation: none !important; transform: none !important; }
  .hero-ticker-set:nth-child(2) { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.scrolled { background: var(--paper); backdrop-filter: none; }
  .apply-dialog::backdrop { backdrop-filter: none; }
}
