/* AIMA 2026 · dark academia. Tokens follow huy-northwestern.vercel.app */
:root {
  --ink: #151016;
  --ink-2: #1b151d;
  --surface: #1f1820;
  --surface-2: #2a2129;
  --aub-900: #24121f;
  --aub-700: #3d1f38;
  --aub-500: #5a2f5a;
  --parchment: #ebe1cc;
  --parchment-2: #b9ab93;
  --parchment-3: #8a7f6d;
  --lilac: #c7a6d9;
  --teal: #6fb8ad;
  --gold: #c9a45f;
  --gold-light: #ddc08a;
  --gold-hi: #ecd29b;
  --gold-dim: rgba(201, 164, 95, .14);
  --rule: rgba(201, 164, 95, .22);
  --rule-strong: rgba(201, 164, 95, .45);
  --display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --body: "Source Serif 4", Georgia, serif;
  --ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font: 400 18px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold-hi); }
em { font-style: italic; color: var(--gold-light); }
::selection { background: var(--aub-500); color: var(--parchment); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--parchment-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* paper grain */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--aub-500), var(--gold), var(--gold-hi)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px; padding: 14px 32px;
  transition: transform .45s var(--ease), background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(21, 16, 22, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--rule); }
.nav.hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--parchment); }
.brand-word { font: 600 22px/1 var(--display); letter-spacing: .22em; display: flex; flex-direction: column; gap: 4px; }
.brand-word small { font: 500 9.5px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--parchment-2); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font: 500 13px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--parchment-2); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--parchment); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.nav-new { color: var(--gold-light); }
.btn-home {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  font: 600 12.5px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light);
  transition: background .3s, color .3s, border-color .3s;
}
.btn-home:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-home svg, .btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.btn-home:hover svg, .btn:hover svg { transform: translate(2px, -2px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; position: relative;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 13.5px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, #a8843f); color: var(--ink); }
.btn-gold:hover { color: var(--ink); box-shadow: 0 10px 40px -10px rgba(201, 164, 95, .6); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--parchment); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-portal { color: var(--gold-hi); background: rgba(36, 18, 31, .7); isolation: isolate; overflow: hidden; }
.btn-portal .portal-ring {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), transparent 0 55%, var(--gold-hi) 70%, var(--lilac) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-a 3.2s linear infinite;
}
.btn-portal::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--rule-strong); z-index: -2; }
.btn-portal::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(236, 210, 155, .22), transparent);
  transition: left .7s var(--ease);
}
.btn-portal:hover { color: var(--parchment); transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(201, 164, 95, .08), 0 18px 50px -14px rgba(199, 166, 217, .45); }
.btn-portal:hover::after { left: 120%; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-a { to { --a: 360deg; } }
.btn-xl { padding: 22px 38px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px;
  background: radial-gradient(120% 90% at 78% 40%, var(--aub-700) 0%, var(--aub-900) 38%, var(--ink) 75%); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 30% 55%, transparent 40%, rgba(21, 16, 22, .75) 100%), linear-gradient(transparent 70%, var(--ink)); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.eyebrow { font: 500 12.5px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 28px; }
.eyebrow .sep { color: var(--lilac); margin: 0 8px; }
.hero h1 { font: 500 clamp(44px, 6.2vw, 88px)/1 var(--display); letter-spacing: -.015em; margin: 0 0 30px; }
.hero h1 .line { display: block; }
@media (min-width: 1021px) { .hero h1 .line { white-space: nowrap; } .hero-inner { grid-template-columns: 1.4fr .6fr; } }
.hero h1 em { font-weight: 500; background: linear-gradient(100deg, var(--gold-hi), var(--gold) 45%, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--parchment-2); max-width: 36em; margin: 0 0 40px; }
.lede strong { color: var(--parchment); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-seal { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; justify-self: end; }
.seal-slot { position: absolute; inset: 9%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); transition: transform .2s linear; }
.seal-slot svg, .finale-seal svg { width: 100%; height: 100%; }
.seal-slot .ring-text, .finale-seal .ring-text { transform-origin: 120px 120px; animation: rot 60s linear infinite; }
.seal-orbit, .seal-orbit span { position: absolute; inset: 0; border-radius: 50%; }
.seal-orbit span { border: 1px solid var(--rule); animation: rot 40s linear infinite; }
.seal-orbit span:nth-child(2) { inset: -7%; border-style: dashed; border-color: rgba(199, 166, 217, .18); animation-duration: 70s; animation-direction: reverse; }
.seal-orbit span:nth-child(3) { inset: -15%; border-color: rgba(201, 164, 95, .1); }
.seal-orbit span::after { content: ""; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 14px var(--gold); }
.seal-orbit span:nth-child(2)::after { background: var(--lilac); box-shadow: 0 0 14px var(--lilac); top: 12%; left: 22%; }
.seal-orbit span:nth-child(3)::after { background: var(--teal); box-shadow: 0 0 14px var(--teal); top: auto; bottom: 18%; left: auto; right: 6%; }
@keyframes rot { to { transform: rotate(360deg); } }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 1px solid var(--rule-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--rule); overflow: hidden; padding: 22px 0; background: var(--ink-2);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 500 italic 30px/1 var(--display); color: var(--parchment-2); padding: 0 26px; white-space: nowrap; display: flex; align-items: center; gap: 52px; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: 13px; color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 140px 0; position: relative; }
.section-dark { background: linear-gradient(180deg, var(--ink) 0%, var(--aub-900) 18%, var(--aub-900) 82%, var(--ink) 100%); }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; margin-bottom: 64px; }
.numeral { font: 500 italic 92px/.8 var(--display); color: transparent; -webkit-text-stroke: 1px var(--gold); min-width: 1.4em; }
.kicker { font: 600 12px/1 var(--ui); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 6px 0 16px; }
.sec-head h2, .finale h2 { font: 500 clamp(38px, 5vw, 66px)/1.02 var(--display); margin: 0 0 18px; letter-spacing: -.01em; }
.sec-lede { color: var(--parchment-2); max-width: 40em; margin: 0; }
h3 { font: 600 26px/1.15 var(--display); margin: 0 0 10px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- record ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--rule); margin-bottom: 56px; }
.stat { padding: 34px 20px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--rule); }
.stat b { display: block; font: 500 clamp(48px, 5.5vw, 74px)/1 var(--display); color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; }
.stat span { font: 500 12px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--parchment-2); }
.record-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.if-chart { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule); }
.if-chart h3 { font-size: 22px; }
.if-row { display: grid; grid-template-columns: minmax(0, 15em) 1fr 2.6em; align-items: center; gap: 12px; padding: 4px 0; font: 500 12.5px/1.25 var(--ui); color: var(--parchment-2); text-decoration: none; }
.if-row:hover { color: var(--parchment); }
.if-row .track { display: block; height: 10px; position: relative; background: rgba(199, 166, 217, .06); border-radius: 0 4px 4px 0; }
.if-row .fillbar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--lilac); opacity: .85; transition: opacity .2s, width 1.2s var(--ease); }
.if-row:hover .fillbar { opacity: 1; }
.if-row b { font: 600 17px var(--display); color: var(--parchment); text-align: right; }
.venue-group { font: 600 11px var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--parchment-3); margin: 22px 0 4px; }
.venue-cloud.small button { font-size: 14px !important; }
.chart-card, .venue-card { margin: 0; background: linear-gradient(160deg, var(--surface), var(--ink-2)); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; position: relative; }
.chart-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.legend { display: flex; gap: 18px; font: 500 12.5px/1 var(--ui); color: var(--parchment-2); }
.legend span { display: flex; align-items: center; gap: 7px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-conf { background: var(--gold); }
.sw-jour { background: var(--lilac); }
.chart { height: 300px; margin-top: 18px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .bar { cursor: pointer; transition: opacity .2s; }
.chart .bar-group:hover .bar, .chart .bar-group:focus .bar { opacity: 1; }
.chart:hover .bar-group:not(:hover) .bar { opacity: .45; }
.chart text { font: 500 12px var(--ui); fill: var(--parchment-2); }
.chart .val { font: 600 22px var(--display); fill: var(--parchment); }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.tooltip { position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -110%); background: var(--ink); border: 1px solid var(--rule-strong); border-radius: 10px; padding: 10px 14px; font: 500 13px/1.5 var(--ui); color: var(--parchment); white-space: nowrap; transition: opacity .15s; z-index: 5; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.tooltip.on { opacity: 1; }
.tooltip i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.table-view { margin-top: 14px; font: 500 13px var(--ui); color: var(--parchment-2); }
.table-view summary { cursor: pointer; }
.table-view table { border-collapse: collapse; margin-top: 10px; width: 100%; }
.table-view th, .table-view td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--rule); }
.venue-cloud { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; }
.venue-cloud button {
  font-family: var(--display); font-weight: 600; color: var(--parchment); background: transparent; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px; padding: .28em .8em; line-height: 1.1;
  transition: border-color .25s, color .25s, background .25s, transform .25s var(--ease);
}
.venue-cloud button small { font: 600 .5em var(--ui); color: var(--gold); margin-left: .45em; vertical-align: .35em; }
.venue-cloud button:hover { border-color: var(--gold); color: var(--gold-hi); background: var(--gold-dim); transform: translateY(-2px); }

/* ---------- cabinet ---------- */
.cabinet { --gut: max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); display: flex; gap: 22px; overflow-x: auto; padding: 8px var(--gut) 30px; scroll-padding-inline: var(--gut); scroll-snap-type: x mandatory; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.cabinet.drag { cursor: grabbing; scroll-snap-type: none; }
.cabinet.drag * { user-select: none; pointer-events: none; }
.plate {
  flex: 0 0 min(360px, 82vw); min-height: 400px; scroll-snap-align: start; position: relative;
  display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: 4px;
  background: linear-gradient(170deg, #2b1a28, #1a1119 70%);
  border: 1px solid var(--rule-strong); box-shadow: inset 0 0 0 6px rgba(21, 16, 22, .9), inset 0 0 0 7px var(--rule);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.plate:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: inset 0 0 0 6px rgba(21, 16, 22, .9), inset 0 0 0 7px var(--gold), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.plate-no { font: italic 500 18px/1 var(--display); color: var(--gold); margin: 0 0 22px; }
.plate-venue { font: 600 11.5px/1.3 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); margin: 0 0 14px; }
.plate h3 { font-size: 29px; line-height: 1.1; }
.plate p { color: var(--parchment-2); font-size: 16px; margin: 0 0 18px; }
.plate a { margin-top: auto; font: 600 12.5px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.plate-trophy { background: linear-gradient(170deg, #3a2a17, #1d140e 75%); }
.trophy { margin-top: auto; font-size: 44px; filter: sepia(.4) saturate(.8); }
.plate-end { background: transparent; border-style: dashed; justify-content: center; text-align: center; box-shadow: none; }
.plate-end h3 { font-size: 36px; font-style: italic; color: var(--gold-hi); }
.plate-end a { margin: 10px auto 0; }

/* ---------- library ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--ink-2); transition: border-color .25s, box-shadow .25s; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); }
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--gold); stroke-width: 1.7; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--parchment); font: 17px var(--body); padding: 13px 0; }
.search input::placeholder { color: var(--parchment-3); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 12.5px/1 var(--ui); letter-spacing: .04em; color: var(--parchment-2); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 9px 13px; cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--parchment); border-color: var(--rule-strong); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chip .n { opacity: .6; margin-left: 4px; }
.theme-chips { margin-bottom: 10px; }
.theme-chips .chip[aria-pressed="true"] { background: var(--lilac); border-color: var(--lilac); }
.lib-status { font: 500 13px var(--ui); color: var(--parchment-3); margin: 16px 0 10px; }
.shelf { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.book {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; padding: 26px 8px; border-bottom: 1px solid var(--rule);
  position: relative; transition: background .3s; animation: rise .6s var(--ease) both; animation-delay: var(--d, 0s);
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.book:hover { background: linear-gradient(90deg, rgba(61, 31, 56, .45), transparent); }
.book:hover::before { transform: scaleY(1); }
.book-year { font: 500 34px/1 var(--display); color: var(--parchment-3); }
.book:hover .book-year { color: var(--gold); }
.book h4 { font: 600 23px/1.2 var(--display); margin: 0 0 8px; color: var(--parchment); }
.book-authors { font-size: 15px; color: var(--parchment-2); margin: 0 0 10px; }
.book-authors .m { color: var(--gold-light); }
.mentor-demo { color: var(--gold-light); }
.book-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 12.5px/1 var(--ui); }
.venue { color: var(--parchment); font-weight: 600; letter-spacing: .04em; }
.venue-full { color: var(--parchment-3); }
.tag { padding: 5px 9px; border-radius: 999px; border: 1px solid var(--rule); color: var(--parchment-2); letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
.tag-Oral, .tag-Highlight { border-color: var(--gold); color: var(--gold-hi); background: var(--gold-dim); }
.tag-if { border-color: rgba(199, 166, 217, .45); color: var(--lilac); }
.tag-th { border-color: rgba(111, 184, 173, .35); color: var(--teal); text-transform: none; letter-spacing: .02em; }
.book-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.act { font: 600 11.5px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 9px 14px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.act:hover { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.shelf-more { text-align: center; margin-top: 36px; }
.empty { padding: 40px 0; text-align: center; font-style: italic; color: var(--parchment-2); }

/* ---------- atlas ---------- */
.atlas { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: start; }
#atlas-svg { width: 100%; height: auto; overflow: visible; }
#atlas-svg .link { fill: none; stroke: var(--rule); stroke-width: 1; transition: stroke .25s, stroke-width .25s, opacity .25s; }
#atlas-svg .paper { fill: var(--parchment-3); transition: fill .25s, r .25s; }
#atlas-svg .theme-node { cursor: pointer; }
#atlas-svg .theme-node circle { fill: var(--aub-900); stroke: var(--gold); stroke-width: 1.2; transition: fill .25s; }
#atlas-svg .theme-node text { font: 600 15px var(--display); fill: var(--parchment); text-anchor: middle; pointer-events: none; }
#atlas-svg .theme-node .cnt { font: 600 11px var(--ui); fill: var(--gold); letter-spacing: .1em; }
#atlas-svg.focus .link { opacity: .15; }
#atlas-svg.focus .link.on { opacity: 1; stroke: var(--gold); stroke-width: 1.4; }
#atlas-svg.focus .paper.on { fill: var(--gold-hi); }
#atlas-svg .theme-node.on circle, #atlas-svg .theme-node:hover circle { fill: var(--aub-700); }
.atlas-list { border-left: 1px solid var(--rule); padding-left: 26px; min-height: 300px; }
.atlas-list h3 { color: var(--gold-hi); font-size: 30px; }
.atlas-list p { color: var(--parchment-2); font-size: 16px; }
.atlas-list ul { list-style: none; padding: 0; margin: 14px 0 20px; }
.atlas-list li { font: 500 16.5px/1.3 var(--display); padding: 9px 0; border-bottom: 1px dashed var(--rule); }
.atlas-list li span { font: 500 11px var(--ui); color: var(--gold); letter-spacing: .08em; margin-right: 8px; }

/* ---------- path ---------- */
.path { position: relative; padding-left: 70px; margin-bottom: 90px; }
.path-rail { position: absolute; left: 25px; top: 10px; bottom: 10px; width: 1px; background: var(--rule); }
.path-rail span { position: absolute; top: 0; left: -1px; width: 3px; height: 0; background: linear-gradient(var(--gold-hi), var(--gold), var(--lilac)); border-radius: 2px; box-shadow: 0 0 16px var(--gold); }
.path-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 30px; position: relative; }
.step-no { position: absolute; left: -70px; top: -2px; width: 51px; height: 51px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--rule-strong); font: italic 600 21px/1 var(--display); color: var(--gold); transition: background .5s, color .5s, box-shadow .5s; }
.step.lit .step-no { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 6px var(--gold-dim); }
.step h3 { font-size: 34px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--parchment-2); max-width: 38em; }
.step > div { grid-column: 1 / -1; }
.cohort { margin-bottom: 70px; }
.cohort-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 26px; }
.cohort-head h3 { font-size: 32px; margin: 0; }
.cohort-head p { margin: 0; font-size: 16px; }
.cohort-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj { perspective: 1000px; min-height: 250px; cursor: pointer; }
.proj-inner { position: relative; height: 100%; min-height: 250px; transition: transform .8s var(--ease); transform-style: preserve-3d; }
.proj.flip .proj-inner { transform: rotateY(180deg); }
.proj-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--rule); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; background: var(--ink-2); }
.proj-back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--aub-700), var(--aub-900)); border-color: var(--rule-strong); }
.proj-no { font: 600 11px var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.proj h4 { font: 600 22px/1.15 var(--display); margin: 0; }
.proj-hint { margin-top: auto; font: 500 11.5px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--parchment-3); }
.proj-back p { font-size: 15px; color: var(--parchment); margin: 0 0 12px; }
.proj-back a { margin-top: auto; font: 600 12px var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.notice { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 34px 38px; border-radius: 18px; border: 1px solid var(--rule-strong); background: radial-gradient(120% 140% at 0% 0%, rgba(90, 47, 90, .55), transparent 60%), var(--ink-2); }
.notice-mark { font-size: 46px; color: var(--gold); line-height: 1; }
.notice h3 { font-size: 30px; }
.notice p { margin: 0; color: var(--parchment-2); }
.notice-cta { display: flex; flex-direction: column; gap: 10px; }

/* ---------- mentors ---------- */
.mentor-rows { display: grid; gap: 18px; overflow: hidden; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mentor-row { display: flex; gap: 18px; width: max-content; animation: slide 55s linear infinite; }
.mentor-row.reverse { animation-direction: reverse; animation-duration: 65s; }
.mentor-rows:hover .mentor-row { animation-play-state: paused; }
.mentor { display: flex; align-items: center; gap: 16px; padding: 14px 24px 14px 14px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(21, 16, 22, .6); transition: border-color .3s, background .3s; }
.mentor:hover { border-color: var(--gold); background: var(--aub-700); }
.mentor img { width: 62px; height: 62px; border-radius: 50%; background: var(--parchment); border: 2px solid var(--gold); object-fit: cover; }
.mentor b { display: block; font: 600 20px/1.1 var(--display); }
.mentor span { font: 500 12.5px var(--ui); color: var(--parchment-2); }

/* ---------- finale ---------- */
.finale { padding: 150px 0 160px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 45%, rgba(90, 47, 90, .6), transparent 70%), var(--ink); }
.finale::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; border: 1px solid var(--rule); box-shadow: 0 0 0 80px rgba(201, 164, 95, .02), 0 0 0 160px rgba(201, 164, 95, .015); }
.finale-inner { position: relative; padding: 0 24px; }
.finale-seal { width: 170px; height: 170px; margin: 0 auto 30px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.finale h2 { margin-bottom: 44px; }

/* ---------- footer / toast ---------- */
.footer { border-top: 1px solid var(--rule); padding: 36px 0; background: var(--ink); font: 500 13.5px var(--ui); color: var(--parchment-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer p { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--gold); color: var(--ink); font: 600 13px var(--ui); padding: 12px 20px; border-radius: 999px; transition: all .35s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .btn-home { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-seal { order: -1; max-width: 220px; justify-self: start; }
  .record-grid, .atlas { grid-template-columns: 1fr; }
  .atlas-list { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; min-height: 0; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4)::before { display: none; }
  .cohort-grid { grid-template-columns: repeat(2, 1fr); }
  .notice { grid-template-columns: 1fr; }
  .notice-cta { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap, .hero-inner { padding: 0 16px; }
  .nav { padding: 12px 16px; gap: 12px; }
  .brand-word small { display: none; }
  .btn-home span { display: none; }
  .btn-home { padding: 10px; }
  .hero { padding-top: 100px; }
  .hero-seal { max-width: 150px; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 96px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 6px; }
  .numeral { font-size: 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat::before { display: none; }
  .stat:last-child { grid-column: 1 / -1; }
  .chart-card, .venue-card { padding: 20px 16px; }
  .cabinet { --gut: 16px; }
  .book { grid-template-columns: 1fr; gap: 8px; }
  .book-year { font-size: 22px; }
  .book-actions { flex-direction: row; align-items: center; }
  .cohort-grid { grid-template-columns: 1fr; }
  .path { padding-left: 58px; }
  .step-no { left: -58px; width: 42px; height: 42px; }
  .path-rail { left: 20px; }
  .notice { padding: 26px 20px; }
  .btn-xl { padding: 18px 26px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
