:root {
  --bg: #06080c;
  --bg-2: #0a0e15;
  --panel: #0e131c;
  --panel-2: #141b28;
  --line: rgba(192, 198, 207, 0.14);
  --line-strong: rgba(192, 198, 207, 0.28);
  --text: #b9c1ce;
  --muted: #7f8998;
  --head: #e8ecf3;
  --silver: #c0c6cf;
  --steel: #7a92be;
  --navy: #0b1f3b;
  --amber: #e0a040;
  --danger: #d46a6a;
  --accent: var(--steel);
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --gutter: 24px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(11, 31, 59, 0.55), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(11, 31, 59, 0.35), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--silver); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--head); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--head); font-weight: 600; letter-spacing: 0.03em; line-height: 1.2; margin: 0 0 0.5em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding: 88px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; display: block; }
.section-title { font-size: clamp(28px, 4vw, 42px); }
.section-lede { max-width: 680px; color: var(--muted); font-size: 21px; }
.divider { text-align: center; color: var(--steel); letter-spacing: 0.4em; font-size: 14px; margin: 0 0 40px; opacity: 0.8; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 8, 12, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--head); font-family: var(--display); letter-spacing: 0.12em; font-size: 15px; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em; color: var(--muted); font-weight: 500; margin-top: 2px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-decoration: none; color: var(--text); padding: 9px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.nav a:hover { background: rgba(122, 146, 190, 0.14); color: var(--head); }
.nav a[aria-current="page"] { color: var(--head); background: rgba(122, 146, 190, 0.2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--silver); content: ""; position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; place-items: center; text-align: center; overflow: hidden; padding: 110px 0 90px; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 20%, var(--bg) 85%); pointer-events: none; }
.swirl { position: absolute; width: min(900px, 130vw); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; opacity: 0.22; animation: spin 90s linear infinite; pointer-events: none; }
@keyframes spin { to { rotate: 360deg; } }
.hero-inner { position: relative; z-index: 2; max-width: 820px; padding-inline: var(--gutter); }
.hero h1 { font-size: clamp(38px, 7vw, 84px); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; text-shadow: 0 0 40px rgba(122, 146, 190, 0.35); }
.hero .tagline { font-size: clamp(20px, 2.6vw, 28px); font-style: italic; color: var(--silver); margin-bottom: 36px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 14px 24px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--head); background: rgba(255, 255, 255, 0.03); transition: transform 0.2s, background 0.2s, border-color 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { transform: translateY(-2px); background: rgba(122, 146, 190, 0.18); border-color: var(--steel); color: var(--head); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #15110a; }
.btn.primary:hover { background: #efb556; border-color: #efb556; color: #15110a; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.stat { background: var(--panel); padding: 28px 20px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: clamp(30px, 4vw, 46px); color: var(--head); font-weight: 600; }
.stat span { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.intro-grid p:first-child::first-letter { font-family: var(--display); font-size: 3.4em; float: left; line-height: 0.85; padding: 6px 10px 0 0; color: var(--amber); }

/* Timeline */
.timeline { margin-top: 40px; position: relative; display: grid; gap: 12px; }
.timeline::before { content: ""; position: absolute; left: 62px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.tl-item { display: grid; grid-template-columns: 124px 1fr; align-items: start; }
.tl-year { font-family: var(--display); font-size: 17px; color: var(--steel); padding: 18px 0 0; text-align: left; background: none; border: 0; text-align: left; position: relative; font-weight: 600; letter-spacing: 0.06em; }
.tl-year::after { content: ""; position: absolute; left: 56px; top: 24px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--steel); transition: background 0.2s, border-color 0.2s; }
.tl-item.open .tl-year { color: var(--amber); }
.tl-item.open .tl-year::after { background: var(--amber); border-color: var(--amber); }
.tl-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; }
.tl-head { width: 100%; text-align: left; background: none; border: 0; padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--display); font-size: 18px; color: var(--head); letter-spacing: 0.03em; }
.tl-head::after { content: "+"; font-family: var(--sans); font-size: 20px; color: var(--steel); transition: rotate 0.25s; }
.tl-item.open .tl-head::after { rotate: 45deg; }
.tl-body { display: none; padding: 0 22px 20px; }
.tl-item.open .tl-body { display: block; }

/* Campus map */
.campus { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; margin-top: 40px; align-items: start; }
.map-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: relative; overflow: hidden; }
.map-box svg { width: 100%; height: auto; display: block; }
.map-hint { font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-align: center; padding: 10px 0 4px; }
.node { cursor: pointer; }
.node rect { fill: #101826; stroke: rgba(192, 198, 207, 0.34); stroke-width: 1.4; transition: fill 0.2s, stroke 0.2s; }
.node:hover rect { fill: #182440; stroke: var(--steel); }
.node.active rect { fill: #1d2c4d; stroke: var(--amber); stroke-width: 2.4; }
.node .lbl { fill: #dfe4ee; font-family: "Inter", sans-serif; font-size: 16px; font-weight: 600; text-anchor: middle; pointer-events: none; }
.node .num { fill: var(--amber); font-family: "Inter", sans-serif; font-size: 13px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.node .badge { fill: var(--bg); stroke: var(--amber); stroke-width: 1.4; }
.node:focus-visible rect { stroke: var(--amber); stroke-width: 3; }
.road { stroke: rgba(122, 146, 190, 0.35); stroke-width: 2; stroke-dasharray: 3 7; fill: none; }
.whirl { transform-origin: 70px 330px; animation: spin 18s linear infinite; }
.loc-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 92px; }
.loc-panel .kind { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.loc-panel h3 { font-size: 24px; margin: 6px 0 12px; }
.loc-panel .summary { color: var(--head); font-style: italic; }
.loc-panel .whisper { border-left: 2px solid var(--amber); padding: 4px 0 4px 16px; margin-top: 20px; color: var(--silver); font-style: italic; }
.loc-panel .whisper b { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); font-style: normal; margin-bottom: 4px; }
.loc-img { display: block; width: 100%; height: auto; max-height: 390px; object-fit: contain; border-radius: 10px; margin-bottom: 18px; background: #080c12; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-family: var(--sans); font-size: 12px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: all 0.2s; }
.chip:hover { border-color: var(--steel); color: var(--head); }
.chip.active { background: rgba(224, 160, 64, 0.14); border-color: var(--amber); color: var(--head); }

/* Law accordion */
.acc { margin-top: 36px; display: grid; gap: 10px; }
.acc-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.acc-item.open { border-color: var(--line-strong); }
.acc-btn { width: 100%; text-align: left; background: none; border: 0; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-family: var(--display); font-size: 18px; color: var(--head); letter-spacing: 0.03em; }
.acc-btn::after { content: "+"; font-family: var(--sans); font-size: 22px; color: var(--amber); transition: rotate 0.25s; flex: none; }
.acc-item.open .acc-btn::after { rotate: 45deg; }
.acc-body { display: none; padding: 0 24px 22px; }
.acc-item.open .acc-body { display: block; }

/* Tabs / faculties */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tab { font-family: var(--sans); font-size: 13px; font-weight: 500; padding: 11px 18px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: all 0.2s; }
.tab:hover { border-color: var(--steel); color: var(--head); }
.tab[aria-selected="true"] { background: rgba(122, 146, 190, 0.2); border-color: var(--steel); color: var(--head); }
.tab-panel { margin-top: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; }
.tab-panel h3 { font-size: 26px; }
.tab-panel .fac-img { width: 100%; height: 190px; object-fit: cover; border-radius: calc(var(--radius) - 4px); border: 1px solid var(--line); display: block; margin-bottom: 22px; }
.tab-panel .glyph { font-size: 38px; color: var(--amber); line-height: 1; display: block; margin-bottom: 14px; }
.course-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.course-list li { font-family: var(--sans); font-size: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--silver); }
.course-title { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; display: block; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform 0.25s, border-color 0.25s; }
.card h3 { font-size: 19px; }
.card .when { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); display: block; margin-bottom: 10px; }
.card .who { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); display: block; margin-bottom: 10px; }
.card p { margin: 0; font-size: 17px; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); border-color: var(--accent); }

/* Maelstrom */
.maelstrom { background: linear-gradient(180deg, rgba(11, 31, 59, 0.5), transparent 70%); }
.palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.swatch i { display: block; height: 70px; }
.swatch div { padding: 12px 16px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.swatch b { display: block; color: var(--head); font-size: 14px; font-weight: 600; }
.traits-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.trait { font-family: var(--display); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; }
.motto { font-family: var(--display); font-size: clamp(20px, 3vw, 30px); color: var(--head); text-align: center; letter-spacing: 0.08em; margin: 44px 0 10px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.shot { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; text-align: left; transition: transform 0.25s, border-color 0.25s; }
.shot:hover { transform: translateY(-4px); border-color: var(--steel); }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.shot div { padding: 12px 14px 14px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.shot b { color: var(--head); font-size: 13px; display: block; margin-bottom: 2px; }
.lightbox { position: fixed; inset: 0; background: rgba(3, 4, 7, 0.94); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; flex-direction: column; gap: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 78vh; width: auto; border-radius: 10px; border: 1px solid var(--line-strong); }
.lightbox p { font-family: var(--sans); font-size: 13px; color: var(--silver); margin: 0; text-align: center; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); color: var(--head); width: 46px; height: 46px; border-radius: 50%; font-size: 22px; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(122, 146, 190, 0.3); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }

/* Entry pages (species, characters) */
.page-hero { padding: 76px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5.4vw, 60px); letter-spacing: 0.08em; text-transform: uppercase; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 21px; }
.entry-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; text-align: left; transition: transform 0.25s, border-color 0.25s; overflow: hidden; display: flex; flex-direction: column; }
.entry-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.entry-card .thumb { height: 150px; display: grid; place-items: center; font-size: 56px; color: var(--accent); background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%), var(--bg-2); border-bottom: 1px solid var(--line); background-size: cover; background-position: center; }
.entry-card .body { padding: 22px 24px 26px; }
.entry-card h3 { font-size: 20px; margin-bottom: 6px; }
.entry-card .epi { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px; }
.entry-card p { font-size: 17px; margin: 0; }
.char-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.pillbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 28px 0 0; }
.entry { display: none; padding: 40px 0 90px; }
.entry.show { display: block; }
.back { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 28px; text-decoration: none; color: var(--silver); border: 0; background: none; padding: 0; }
.back:hover { color: var(--amber); }
.entry-head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.entry-head .glyph-big { font-size: 56px; color: var(--accent); line-height: 1; margin-bottom: 14px; display: block; }
.entry-head h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.entry-head .epi { font-size: 24px; font-style: italic; color: var(--silver); }
.portrait { border-radius: var(--radius); border: 1px solid var(--line-strong); aspect-ratio: 4 / 5; width: 100%; object-fit: cover; display: grid; place-items: center; background: radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%), var(--panel); color: var(--accent); font-size: 96px; font-family: var(--display); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.entry-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.fact-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--panel); padding: 16px 20px; }
.fact b { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; font-weight: 600; }
.fact span { color: var(--head); font-size: 18px; }
.block-title { font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); margin: 36px 0 14px; display: block; }
.block-title:first-child { margin-top: 0; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bullets li { padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 10px; font-size: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-family: var(--sans); font-size: 12px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--silver); }
.hookbox { font-style: italic; font-size: 22px; color: var(--head); border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; margin: 22px 0; }
.cw { border: 1px solid rgba(212, 106, 106, 0.5); background: rgba(212, 106, 106, 0.07); border-radius: var(--radius); padding: 20px 24px; margin-top: 30px; font-family: var(--sans); font-size: 14px; line-height: 1.6; color: #e6c3c3; }
.cw b { display: block; letter-spacing: 0.18em; font-size: 11px; text-transform: uppercase; color: var(--danger); margin-bottom: 6px; }
.entry-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.notable-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notable-list li { font-family: var(--sans); font-size: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.notable-list a { text-decoration: none; color: var(--head); }
.notable-list a:hover { color: var(--amber); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 70px; text-align: center; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.site-footer .links { display: flex; gap: 22px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer p { margin: 6px 0; font-size: 12px; }

/* Reveal */
.reveal { opacity: 0; translate: 0 18px; transition: opacity 0.7s ease, translate 0.7s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

@media (max-width: 960px) {
  .campus { grid-template-columns: 1fr; }
  .loc-panel { position: static; }
  .tab-panel, .entry-head, .entry-cols, .intro-grid { grid-template-columns: 1fr; gap: 26px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .entry-head .portrait { max-width: 360px; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .section { padding: 64px 0; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: rgba(6, 8, 12, 0.97); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 10px; border-radius: 10px; }
  .nav-toggle { display: inline-flex; }
  .palette { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-year { padding: 6px 0 6px 30px; }
  .tl-year::after { left: 0; top: 12px; }
  .node .lbl { display: none; }
  .node .num { font-size: 18px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .swirl, .whirl { animation: none; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
}

/* entry cards as links */
a.entry-card { text-decoration: none; color: inherit; }
a.entry-card p { color: var(--text); }

/* image helpers */
.loc-thumbs { display: flex; gap: 8px; margin: -6px 0 18px; }
.loc-thumb { width: 64px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: none; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.loc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.loc-thumb.on, .loc-thumb:hover { opacity: 1; border-color: var(--amber); }
.portrait img { object-position: top center; }
.entry-card .thumb { background-position: center 18%; height: 230px; }
.hero-bg { opacity: 0.45; }


/* 2026 campus image and residence refinements. */
.loc-image-open {
  position: relative; width: 100%; border: 1px solid var(--line);
  background: #080c12; border-radius: 10px; overflow: hidden;
  padding: 0; display: grid; justify-items: center; cursor: zoom-in;
}
.loc-image-open:hover { border-color: var(--steel); }
.loc-image-open .loc-img {
  width: 100%; height: clamp(215px, 25vw, 310px); max-height: none;
  object-fit: contain; margin: 0; border-radius: 0;
}
.image-expand {
  position: absolute; bottom: 8px; right: 9px; background: rgba(6,8,12,.85);
  color: var(--head); font: 500 11px var(--sans); letter-spacing: .05em;
  padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 6px;
}
.loc-caption { margin: 9px 0 17px; color: var(--muted); font: 12px/1.5 var(--sans); }
.loc-thumbs { margin: 0 0 20px; flex-wrap: wrap; }
.loc-thumb { width: 74px; height: 56px; flex: none; }
.campus-lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(4,6,10,.97);
  display: none; justify-content: center; align-items: center; flex-direction: column;
  gap: 14px; padding: 36px 20px 22px;
}
.campus-lightbox.open { display: flex; }
.campus-lightbox img { max-height: min(82vh, 1050px); max-width: min(94vw, 1600px);
  object-fit: contain; border: 1px solid var(--line-strong); border-radius: 8px; }
.campus-lightbox p { font: 13px/1.5 var(--sans); color: var(--silver); text-align: center; margin: 0; }
.campus-lightbox-close { position: absolute; right: 16px; top: 15px;
  background: var(--panel-2); color: var(--head); width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line-strong); font: 30px/1 var(--sans); }
body.campus-image-open { overflow: hidden; }
.residences { margin-top: 62px; padding-top: 32px; border-top: 1px solid var(--line); }
.residences-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 24px; }
.residences-heading h3 { font-size: clamp(22px,3vw,31px); margin: 0; }
.residences-heading .eyebrow { margin-bottom: 8px; }
.residences-heading p { max-width: 420px; color: var(--muted); font-size: 17px; margin: 0; }
.residence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.residence-card { border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel); }
.residence-image { padding: 0; display: block; background: #080c12;
  border: 0; width: 100%; position: relative; text-align: center; cursor: zoom-in; }
.residence-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.residence-image span { position: absolute; right: 10px; bottom: 10px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: rgba(6,8,12,.86); color: var(--silver);
  padding: 6px 9px; font: 11px var(--sans); }
.residence-image:hover span { color: var(--head); border-color: var(--steel); }
.residence-body { padding: 19px 19px 22px; }
.residence-type { display: block; color: var(--amber); text-transform: uppercase;
  font: 500 10px/1.5 var(--sans); letter-spacing: .14em; margin-bottom: 9px; }
.residence-body h4 { font-size: 18px; }
.residence-body p { margin: 0; font-size: 16px; color: var(--muted); }
@media (max-width: 960px) { .residences-heading { align-items: start; } }
@media (max-width: 760px) {
  .residences-heading { display: block; }
  .residences-heading p { margin-top: 15px; }
  .residence-grid { grid-template-columns: 1fr; }
  .residence-image img { aspect-ratio: 16 / 9; }
  .loc-panel { padding: 20px; }
  .loc-image-open .loc-img { height: 260px; }
}
