/* =========================================================
 SEUSL Library — site stylesheet
 One ground, one ink, one accent (university maroon);
 teak (the shelving) as the one dark field.
 ========================================================= */

:root {
 --ground: #f7f7f5;
 --paper: #ffffff;
 --surface: #ecebe7;
 --surface-2: #e1dfd9;
 --ink: #161514;
 --ink-2: #504c47;
 --accent: #7d1a28;
 --accent-hover: #63121f;
 --accent-ink: #ffffff;
 --accent-soft: #f3e6e8;
 --teak: #3a2119;
 --teak-2: #4b2c22;
 --teak-ink: #f4ede8;
 --teak-ink-2: #d9c8be;
 --night: #141313;
 --night-ink: #efedea;
 --night-ink-2: #b6b1ab;
 --ok: #1f6b3a;
 --shut: #8a8580;

 --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
 --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

 /* five sizes */
 --t-display: clamp(2.45rem, 7.6vw, 7.75rem);
 --t-title: clamp(2.4rem, 5vw, 4.75rem);
 --t-h2: clamp(1.9rem, 3.3vw, 3.25rem);
 --t-h3: clamp(1.3rem, 1.6vw, 1.55rem);
 --t-body: 1.125rem;
 --t-small: 0.95rem;

 --gutter: clamp(16px, 3.2vw, 40px);
 --max: 1360px;
 --section: clamp(88px, 11vw, 176px);
 --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
 margin: 0; background: var(--ground); color: var(--ink);
 font: 400 var(--t-body)/1.55 var(--sans);
 -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { line-height: .98; }
h2 { font-size: var(--t-h2); line-height: 1.04; letter-spacing: -0.025em; }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.15em; height: 1.15em; flex: none; }
.i-out { width: .8em; height: .8em; margin-left: .25em; opacity: .7; }
.lead { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.45; max-width: 40ch; color: var(--ink); }
.note { color: var(--ink-2); font-size: var(--t-small); }

/* ---------- buttons ---------- */
.btn {
 display: inline-flex; align-items: center; gap: .55em; border: 0; cursor: pointer;
 background: var(--accent); color: var(--accent-ink); text-decoration: none;
 font: 600 1rem/1 var(--sans); padding: 1rem 1.35rem; border-radius: 0;
 transition: background-color .2s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn-full { width: 100%; justify-content: center; }
.go { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--accent); }
.go .i { transition: transform .25s var(--ease); }
.go:hover .i { transform: translateX(4px); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); transition: background-color .3s; }
.head-row { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 600 1.4rem/1 var(--serif); letter-spacing: -0.02em; }
.brand-text span { font-size: .875rem; color: var(--ink-2); margin-top: 4px; }
.primary-list { display: flex; list-style: none; gap: 4px; align-items: center; }
.menu-btn, .menu-link {
 display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
 font: 500 1rem/1 var(--sans); color: var(--ink); padding: 12px 12px; text-decoration: none;
}
.menu-btn .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.menu-btn:hover, .menu-link:hover { color: var(--accent); }
.is-current > .menu-btn, .is-current > .menu-link { color: var(--accent); }
.has-menu { position: relative; }
.menu {
 position: absolute; top: calc(100% + 14px); left: -12px; min-width: 560px; padding: 18px;
 background: var(--paper); box-shadow: 0 18px 50px rgba(20, 15, 12, .16); /* taste-skill-ignore: dropdown overlay */
 opacity: 0; visibility: hidden; transform: translateY(-6px);
 transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.has-menu:nth-child(n+3) .menu { left: auto; right: -12px; }
.menu ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu a { display: block; padding: 12px 14px; text-decoration: none; transition: background-color .15s; }
.menu a:hover, .menu a[aria-current] { background: var(--ground); color: var(--ink); }
.m-title { display: flex; align-items: center; font-weight: 600; font-size: 1rem; }
.m-desc { display: block; font-size: .875rem; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }
.has-menu.open .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-menu.open .menu-btn .i { transform: rotate(180deg); }
.btn-head { padding: .85rem 1.1rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle .i { width: 28px; height: 28px; }

.drawer { position: fixed; inset: 0; background: var(--paper); z-index: 60; overflow-y: auto; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.drawer-body { padding-bottom: 40px; }
.drawer details { background: var(--ground); margin-top: 8px; }
.drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px; font: 500 1.35rem/1.2 var(--serif); cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details[open] summary .i { transform: rotate(180deg); }
.drawer details ul { list-style: none; padding: 0 16px 12px; }
.drawer details a { display: block; padding: 10px 0; text-decoration: none; font-size: 1.05rem; }
.drawer-link { display: block; padding: 16px; margin-top: 8px; background: var(--ground); font: 500 1.35rem/1.2 var(--serif); text-decoration: none; }
.drawer .btn-full { margin: 8px 0 8px; }

@media (max-width: 1100px) {
 .primary, .btn-head { display: none; }
 .nav-toggle { display: inline-flex; }
 .head-row { height: 72px; }
}

/* ---------- home: hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 0; }
.hero h1 { font-size: var(--t-display); }
.hero-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hero .lead { margin-top: 36px; max-width: 44ch; }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--shut); flex: none; }
.status.is-open .dot { background: var(--ok); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.hero-stage { display: grid; grid-template-columns: 5fr 7fr; gap: 0; margin-top: clamp(40px, 5vw, 72px); align-items: stretch; }
.finder { background: var(--accent); color: #fff; padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.finder h2 { font-size: clamp(1.6rem, 2.4vw, 2.25rem); color: #fff; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
 background: transparent; color: #f2dfe2; border: 0; cursor: pointer; padding: 10px 14px;
 font: 600 .975rem/1 var(--sans); transition: background-color .2s, color .2s;
}
.tab:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.tab[aria-selected="true"] { background: #fff; color: var(--accent); }
.find-form { display: grid; gap: 10px; }
.find-form[hidden] { display: none; }
.find-row { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.find-form label.sr + select, .find-form select, .find-form input[type="search"] {
 font: 500 1.05rem/1.2 var(--sans); border: 0; border-radius: 0; padding: 16px; background: #fff; color: var(--ink); width: 100%; min-width: 0;
}
.find-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161514' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; cursor: pointer; }
.find-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.find-go { background: var(--ink); color: #fff; padding: 0 22px; }
.find-go:hover { background: #000; }
.finder .note { color: #f2dfe2; margin: 0; }
.finder .note a { color: #fff; }

/* ---------- home: hero slider ---------- */
.hero-fig {
 margin: 0; position: relative; overflow: hidden; background: var(--surface);
 min-height: 440px; display: flex; flex-direction: column;
}
.hero-slider .slides { position: relative; flex: 1; width: 100%; height: 100%; }
.hero-slider .slide {
 margin: 0; position: absolute; inset: 0;
 opacity: 0; visibility: hidden; z-index: 0;
 transition: opacity .65s var(--ease), visibility 0s .65s;
}
.hero-slider .slide.is-active {
 opacity: 1; visibility: visible; z-index: 1;
 transition: opacity .65s var(--ease), visibility 0s 0s;
}
.hero-slider .slide img {
 width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
 position: absolute; inset: 0;
 transform: scale(1.04); transition: transform 5.5s var(--ease);
}
.hero-slider .slide.is-active img { transform: scale(1); }
.hero-slider .slide-bar {
 position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
 background: var(--paper); padding: 12px 148px 12px 18px;
 font-size: var(--t-small); color: var(--ink);
 border-top: 1px solid var(--surface-2);
}
.hero-slider .slide-cap {
 display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; line-height: 1.35;
}
.hero-slider .slide-link {
 display: inline-flex; align-items: center; gap: .3em;
 font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap;
}
.hero-slider .slide-link .i { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.hero-slider .slide-link:hover { color: var(--accent-hover); }
.hero-slider .slide-link:hover .i { transform: translateX(3px); }
.slider-controls {
 position: absolute; right: 0; bottom: 0; z-index: 3;
 display: flex; align-items: center; gap: 10px;
 background: var(--paper); padding: 6px 10px 6px 12px;
}
.slider-dots { display: flex; align-items: center; gap: 6px; }
.slider-dot {
 width: 8px; height: 8px; padding: 0; border: 0; cursor: pointer;
 background: var(--surface-2); transition: background-color .2s, width .25s var(--ease);
}
.slider-dot:hover { background: var(--ink-2); }
.slider-dot.is-active { background: var(--accent); width: 20px; }
.slider-arrows { display: flex; gap: 2px; }
.slider-btn {
 width: 34px; height: 34px; display: grid; place-items: center;
 border: 0; background: var(--surface); color: var(--ink); cursor: pointer;
 transition: background-color .2s, color .2s;
}
.slider-btn:hover { background: var(--accent); color: #fff; }
.slider-btn .i { width: 16px; height: 16px; }
.slider-progress {
 position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
 background: rgba(255, 255, 255, .25); pointer-events: none;
}
.slider-progress span {
 display: block; height: 100%; width: 0%; background: var(--accent);
}
.hero-slider.is-playing .slider-progress span {
 animation: slideProgress 6s linear forwards;
}
@keyframes slideProgress { from { width: 0%; } to { width: 100%; } }

/* ---------- home: off-campus band ---------- */
.band { background: var(--ground); }
.remote { padding: var(--section) 0 0; }
.remote-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.remote-grid h2 { max-width: 14ch; }
.remote-grid p { max-width: 44ch; }
.signin { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.signin a {
 display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: var(--paper);
 text-decoration: none; transition: background-color .2s var(--ease), color .2s;
}
.signin a:hover { background: var(--accent); color: #fff; }
.signin a:hover span { color: #f2dfe2; }
.signin strong { font: 500 1.4rem/1.15 var(--serif); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.signin span { font-size: var(--t-small); color: var(--ink-2); }

/* ---------- home: routes ---------- */
.routes { padding: var(--section) 0 0; }
.routes-head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: end; margin-bottom: 40px; }
.routes-head p { margin: 0; max-width: 46ch; }
.route-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.route-list a { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 196px; padding: 24px; background: var(--surface); text-decoration: none; transition: background-color .2s var(--ease); }
.route-list a:hover { background: var(--ink); color: #fff; }
.route-list a:hover span { color: var(--night-ink-2); }
.route-list strong { font: 500 1.6rem/1.1 var(--serif); letter-spacing: -0.015em; }
.route-list span { font-size: var(--t-small); color: var(--ink-2); }
.route-list li:first-child { grid-column: span 2; grid-row: span 2; }
.route-list li:first-child a { background: var(--ink); color: #fff; min-height: 398px; }
.route-list li:first-child strong { font-size: clamp(2rem, 3.2vw, 3rem); }
.route-list li:first-child span { color: var(--night-ink-2); font-size: 1.05rem; max-width: 36ch; }
.route-list li:first-child a:hover { background: var(--accent); }

/* ---------- home: building ---------- */
.building { padding: var(--section) 0 0; }
.building-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.mosaic { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 5 / 4; }
.mosaic figure { margin: 0; overflow: hidden; background: var(--surface); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic .m1 { grid-row: span 2; }
.mosaic figure { min-height: 0; }
.building-text h2 { margin-bottom: 28px; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin: 40px 0 36px; }
.figures div { display: flex; flex-direction: column-reverse; gap: 4px; }
.figures dt { font-size: var(--t-small); color: var(--ink-2); }
.figures dd { margin: 0; font: 500 clamp(2.2rem, 3.6vw, 3.4rem)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- home: collections (teak field) ---------- */
.collections { margin-top: var(--section); background: var(--teak); color: var(--teak-ink); padding: var(--section) 0; }
.collections a { color: var(--teak-ink); }
.coll-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); }
.coll-grid h2 { color: #fff; max-width: 12ch; margin-bottom: 28px; }
.coll-grid p { color: var(--teak-ink-2); max-width: 42ch; }
.coll-fig { margin: 40px 0 0; }
.coll-fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.coll-fig figcaption { font-size: var(--t-small); color: var(--teak-ink-2); margin-top: 10px; }
.coll-list { list-style: none; display: grid; gap: 4px; }
.coll-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 20px 24px; background: var(--teak-2); align-items: baseline; transition: background-color .2s; }
.coll-list li:hover { background: #5a3529; }
.coll-list strong { font: 500 1.45rem/1.15 var(--serif); color: #fff; }
.coll-list span { color: var(--teak-ink-2); font-size: var(--t-small); }
.coll-list .feature { background: var(--accent); }
.coll-list .feature:hover { background: var(--accent-hover); }
.coll-list .feature span { color: #f2dfe2; }

/* ---------- home: visit ---------- */
.visit { padding: var(--section) 0 0; }
.visit-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: stretch; }
.visit-text h2 { margin-bottom: 24px; }
.week { list-style: none; margin: 32px 0; display: grid; gap: 2px; }
.week li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--paper); font-variant-numeric: tabular-nums; }
.week li.today { background: var(--ink); color: #fff; font-weight: 600; }
.week li.closed span:last-child { color: var(--ink-2); }
.week li.today.closed span:last-child { color: #fff; }
.map { margin: 0; background: var(--surface); min-height: 460px; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35); }
.map-cap { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 10px 14px; font-size: var(--t-small); font-weight: 600; }
.visit-text address { font-style: normal; margin-bottom: 20px; }

/* ---------- home: museum + science ---------- */
.elsewhere { padding: var(--section) 0 0; }
.pano { margin: 0; overflow: hidden; background: var(--surface); }
.pano img { width: 100%; aspect-ratio: 1600 / 457; object-fit: cover; }
.else-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); margin-top: 40px; }
.else-grid h2 { margin-bottom: 20px; }
.else-grid p { max-width: 46ch; }
.sci { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.sci img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.else-links { list-style: none; margin-top: 8px; display: grid; gap: 6px; }

/* ---------- home: news ---------- */
.news { padding: var(--section) 0; }
.news-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); }
.news-list { list-style: none; display: grid; gap: 4px; }
.news-list a { display: grid; grid-template-columns: 7.5rem 1fr; gap: 24px; padding: 22px 24px; background: var(--paper); text-decoration: none; transition: background-color .2s; }
.news-list a:hover { background: var(--surface); color: var(--ink); }
.news-list time { color: var(--ink-2); font-size: var(--t-small); font-variant-numeric: tabular-nums; padding-top: 4px; }
.news-list strong { font: 500 1.3rem/1.25 var(--serif); }

/* ---------- inner pages ---------- */
.phero { background: var(--paper); padding: clamp(48px, 7vw, 112px) 0 clamp(48px, 6vw, 88px); }
.phero h1 { font-size: var(--t-title); max-width: 16ch; }
.phero .lead { margin: 32px 0 0; max-width: 46ch; }
.phero-img .phero-grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.phero-fig { margin: 0; overflow: hidden; }
.phero-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.body-grid { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(32px, 5vw, 80px); padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section); align-items: start; }
.body-grid.solo { grid-template-columns: minmax(0, 1fr); }
.side { position: sticky; top: 108px; }
.side-h { font: 500 1.35rem/1.2 var(--serif); margin: 0 0 14px; }
.side ul { list-style: none; display: grid; gap: 2px; }
.side a { display: flex; align-items: center; padding: 10px 14px; text-decoration: none; font-size: 1rem; color: var(--ink-2); transition: background-color .15s, color .15s; }
.side a:hover { background: var(--surface); color: var(--ink); }
.side a[aria-current] { background: var(--ink); color: #fff; }

.prose { max-width: 74ch; min-width: 0; }
.prose.wide { max-width: none; }
.prose > * + h2 { margin-top: 72px; }
.prose > * + h3 { margin-top: 44px; }
.prose h2 { margin-bottom: 20px; }
.prose h3 { margin-bottom: 12px; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li + li { margin-top: .45em; }
.prose a:not([class]) { color: var(--accent); }
.prose blockquote { margin: 0 0 24px; padding: 32px 36px; background: var(--paper); font: 400 clamp(1.3rem, 2vw, 1.75rem)/1.35 var(--serif); }
.prose blockquote.tone-accent { background: var(--accent); color: #fff; }
.prose blockquote.tone-teak { background: var(--teak); color: var(--teak-ink); }
.callout { background: var(--accent-soft); padding: 24px 28px; margin: 0 0 32px; }
.callout p:last-child { margin: 0; }
.prose figure { margin: 32px 0; }
.prose figure img { width: 100%; }
.prose figcaption { font-size: var(--t-small); color: var(--ink-2); margin-top: 10px; }

/* tables (real data: lines allowed) */
.table-wrap { overflow-x: auto; margin: 0 0 32px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem; border: 0; }
tbody tr:hover { background: var(--ground); }
td.num, th.num { text-align: right; }
tr.is-picked td { background: var(--accent-soft); }

/* link directory (e-resources) */
.filter-bar { position: sticky; top: 84px; z-index: 5; background: var(--ground); padding: 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.filter-bar input { font: 500 1.1rem/1.2 var(--sans); padding: 16px 18px; border: 0; background: var(--paper); width: 100%; border-radius: 0; }
.filter-count { font-size: var(--t-small); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 40px; }
.chips a { padding: 9px 14px; background: var(--surface); text-decoration: none; font-size: .95rem; font-weight: 500; transition: background-color .15s; }
.chips a:hover { background: var(--ink); color: #fff; }
.dir-group + .dir-group { margin-top: 72px; }
.dir-group > p { max-width: 64ch; }
.dir { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 24px; }
.dir li { background: var(--paper); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; transition: background-color .15s; }
.dir li:hover { background: #fffdfb; }
.dir h3 { font-size: 1.3rem; }
.dir h3 a { text-decoration: none; display: inline-flex; align-items: center; }
.dir h3 a:hover { color: var(--accent); }
.dir p { margin: 0; font-size: var(--t-small); color: var(--ink-2); }
.dir .acts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-size: .95rem; }
.dir .acts a { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.dir .acts a:hover { text-decoration: underline; }
.dir li[hidden], .dir-group[hidden] { display: none; }
.empty { padding: 32px; background: var(--paper); }

/* steps */
.steps { list-style: none; counter-reset: s; display: grid; gap: 4px; margin: 24px 0 40px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2rem 1fr; gap: 16px; padding: 22px 24px; background: var(--paper); }
.steps li::before { content: counter(s); font: 500 2rem/1 var(--serif); color: var(--accent); }
.steps strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }

/* staff */
.people { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 24px 0 64px; }
.person { background: var(--paper); display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; background: var(--surface); filter: saturate(.92); transition: filter .3s; }
.person:hover img { filter: none; }
.person-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.person h3 { font-size: 1.35rem; }
.person p { margin: 0; color: var(--ink-2); font-size: var(--t-small); }
.person .acts { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .95rem; }
.person .acts a { color: var(--accent); font-weight: 600; text-decoration: none; }
.people.compact { grid-template-columns: repeat(4, 1fr); }
.people.compact img { aspect-ratio: 1 / 1; }
.people.compact h3 { font-size: 1.15rem; }

.profile-top { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: end; }
.profile-top img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 32px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }
.legacy .panel { margin-top: 48px; }
.legacy .panel-heading { font: 500 var(--t-h3)/1.2 var(--serif); margin-bottom: 14px; }
.legacy .panel-heading a { text-decoration: none; color: inherit; }
.legacy ul { padding-left: 1.2em; }
.legacy li + li { margin-top: .5em; }

/* timeline */
.timeline { list-style: none; display: grid; gap: 4px; }
.timeline li { display: grid; grid-template-columns: 12rem 1fr; gap: 32px; padding: 24px 28px; background: var(--paper); align-items: baseline; }
.timeline time { font: 500 1.6rem/1.1 var(--serif); color: var(--accent); }
.timeline li:first-child { background: var(--ink); color: #fff; }
.timeline li:first-child time { color: #f0c9cf; }

/* gallery */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery li:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
.lightbox::backdrop { background: rgba(10, 9, 9, .88); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox p { color: #fff; margin: 12px 0 0; text-align: center; }
.lightbox .lb-close { position: fixed; top: 16px; right: 16px; background: #fff; border: 0; padding: 10px; cursor: pointer; }

/* faq */
.faq details { background: var(--paper); margin-bottom: 4px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; gap: 16px; font: 500 1.3rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .25s var(--ease); margin-top: 4px; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .ans { padding: 0 24px 22px; max-width: 70ch; }
.faq .ans p:last-child { margin: 0; }

/* two-up blocks on inner pages */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 24px 0 40px; }
.duo > div { background: var(--paper); padding: 28px; }
.duo h3 { margin-bottom: 12px; }
.duo address { font-style: normal; }
.form { display: grid; gap: 14px; max-width: 640px; }
.form label { font-weight: 600; font-size: .95rem; display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: 400 1.05rem/1.4 var(--sans); padding: 14px 16px; border: 0; background: var(--paper); border-radius: 0; width: 100%; }
.form textarea { min-height: 160px; resize: vertical; }

.picker { background: var(--accent); color: #fff; padding: 28px; margin: 24px 0 40px; display: grid; gap: 20px; }
.picker label { font-weight: 600; display: grid; gap: 8px; }
.picker select { font: 500 1.05rem/1.2 var(--sans); padding: 14px 16px; border: 0; border-radius: 0; }
.picker-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.picker-out div { background: rgba(255, 255, 255, .1); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.picker-out dd { order: -1; }
.picker-out dt { font-size: .9rem; color: #f2dfe2; }
.picker-out dd { margin: 0; font: 500 2.2rem/1 var(--serif); }

.e404 { padding: var(--section) 0; }
.e404 h1 { font-size: var(--t-title); }

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: var(--night-ink); padding: clamp(64px, 8vw, 120px) 0 32px; position: relative; }
.site-foot a { color: var(--night-ink); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; gap: 40px; }
.foot-h { font: 500 1.3rem/1.2 var(--serif); margin-bottom: 18px; color: #fff; }
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col address { font-style: normal; margin-bottom: 16px; color: var(--night-ink-2); }
.foot-col p a { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.foot-hours { margin: 0; display: grid; gap: 10px; }
.foot-hours dt { color: var(--night-ink-2); font-size: .9rem; }
.foot-hours dd { margin: 0; }
.foot-name { font: 500 clamp(2.2rem, 7.4vw, 7.6rem)/0.95 var(--serif); letter-spacing: -0.04em; color: #fff; margin: clamp(56px, 8vw, 112px) 0 32px; text-wrap: balance; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--night-ink-2); }
.foot-base p { margin: 0; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: #fff !important; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s var(--ease), background-color .2s; z-index: 40; pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }

/* ---------- motion ---------- */
.js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in > * { opacity: 1; transform: none; }
.js .hero-fig { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease) .15s; }
.js .hero-fig.in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 .js [data-reveal] > * { opacity: 1; transform: none; transition: none; }
 .js .hero-fig, .hero-slider .slide img { clip-path: none; transform: none; transition: none; }
 .slider-progress { display: none; }
 .status.is-open .dot { animation: none; }
 * { transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
 .route-list { grid-template-columns: repeat(2, 1fr); }
 .people { grid-template-columns: repeat(2, 1fr); }
 .people.compact { grid-template-columns: repeat(3, 1fr); }
 .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
 .hero-stage, .remote-grid, .routes-head, .building-grid, .coll-grid, .visit-grid, .else-grid, .news-grid,
 .phero-img .phero-grid, .body-grid { grid-template-columns: minmax(0, 1fr); }
 .hero-fig { min-height: 0; aspect-ratio: 960 / 473; order: -1; }
 .side { position: static; }
 .side ul { display: flex; flex-wrap: wrap; gap: 4px; }
 .side a { background: var(--surface); padding: 8px 12px; font-size: .95rem; }
 .map { min-height: 340px; }
 .dir { grid-template-columns: 1fr; }
 .filter-bar { top: 72px; }
}
@media (max-width: 640px) {
 :root { --t-body: 1.0625rem; }
 .hero-slider .slide-bar { padding: 12px 14px 48px; }
 .slider-controls { left: 0; right: 0; justify-content: space-between; border-top: 1px solid var(--surface); }
 .signin { grid-template-columns: 1fr; }
 .route-list { grid-template-columns: 1fr; }
 .route-list li:first-child { grid-column: auto; grid-row: auto; }
 .route-list li:first-child a { min-height: 260px; }
 .route-list a { min-height: 0; gap: 12px; }
 .find-opts { grid-template-columns: 1fr; }
 .coll-list li { grid-template-columns: 1fr; gap: 6px; }
 .sci { grid-template-columns: 1fr; }
 .news-list a, .timeline li { grid-template-columns: 1fr; gap: 6px; }
 .people, .people.compact { grid-template-columns: 1fr 1fr; }
 .people .person-body { padding: 14px; }
 .people h3 { font-size: 1.1rem; }
 .duo { grid-template-columns: 1fr; }
 .profile-top { grid-template-columns: 1fr; }
 .profile-top img { max-width: 240px; }
 .picker-out { grid-template-columns: 1fr 1fr; }
 .foot-grid { grid-template-columns: 1fr; }
 .gallery { grid-template-columns: 1fr 1fr; }
 .facts { grid-template-columns: 1fr; gap: 2px; }
 .facts dd { margin-bottom: 10px; }
 .figures dd { font-size: 2.2rem; }
}
