/* =====================================================================
   Boğaziçi Chronicles — design system
   Editorial archive · brand green #197129 · Fraunces + Inter
   ===================================================================== */

:root {
  --paper: #f5f2ea;
  --paper-2: #ece7db;
  --card: #fbf9f4;
  --ink: #141812;
  --ink-2: #3c4339;
  --muted: #6c7268;
  --line: rgba(20, 24, 18, .12);
  --line-strong: rgba(20, 24, 18, .24);
  --green: #197129;
  --green-ink: #145d22;
  --green-deep: #0c3315;
  --green-soft: #dbe8d6;
  --blue: #00529c;
  --sky: #00b1f0;
  --on-green: #f5f2ea;
  --shadow: 0 1px 2px rgba(20, 24, 18, .06), 0 12px 32px -12px rgba(20, 24, 18, .18);
  --radius: 3px;
  --radius-sm: 2px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f130f; --paper-2: #161b16; --card: #161b16;
    --ink: #ecebe3; --ink-2: #c9cbc1; --muted: #949a8f;
    --line: rgba(236, 235, 227, .12); --line-strong: rgba(236, 235, 227, .26);
    --green: #4fb563; --green-ink: #6cc97e; --green-deep: #0a240f; --green-soft: #1c2d1e;
    --on-green: #0f130f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f130f; --paper-2: #161b16; --card: #161b16;
  --ink: #ecebe3; --ink-2: #c9cbc1; --muted: #949a8f;
  --line: rgba(236, 235, 227, .12); --line-strong: rgba(236, 235, 227, .26);
  --green: #4fb563; --green-ink: #6cc97e; --green-deep: #0a240f; --green-soft: #1c2d1e;
  --on-green: #0f130f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--green); color: var(--on-green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--green); color: var(--on-green); padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }

.eyebrow {
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; line-height: .98; margin: 0;
}
.display em { font-style: italic; color: var(--green); }
.h-xl { font-size: clamp(44px, 8.4vw, 128px); }
.h-lg { font-size: clamp(38px, 5.6vw, 84px); }
.h-md { font-size: clamp(30px, 3.6vw, 52px); }
.h-sm { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; }
.lead { font: 400 clamp(18px, 1.5vw, 22px)/1.55 var(--serif); color: var(--ink-2); }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px;
  font: 500 15px/1 var(--sans); border: 1px solid var(--line-strong); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-ink); border-color: var(--green-ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color .2s, gap .3s var(--ease); }
.link-arrow:hover { border-color: var(--green); gap: 12px; color: var(--green-ink); }
.link-arrow svg { width: 16px; height: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); font: 500 13px/1 var(--sans); white-space: nowrap; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .count { font-size: 11px; opacity: .6; }
.tag { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, height .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 118px; height: auto; color: var(--green); }
.brand-mark .t { fill: var(--on-green); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--ink-2); transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--green); transform: translateX(-50%); }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: 14px; transition: border-color .2s;
}
.search-trigger:hover { border-color: var(--line-strong); color: var(--ink); }
.search-trigger svg { width: 16px; height: 16px; }
.kbd { font: 500 11px/1 var(--sans); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; color: var(--muted); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .tools { margin-left: auto; }
  .search-trigger .label, .search-trigger .kbd { display: none; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; border: 0; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--green-deep); color: #f5f2ea;
  display: flex; flex-direction: column; padding: 20px var(--gutter) 32px;
  clip-path: circle(0 at calc(100% - 40px) 36px); transition: clip-path .6s var(--ease); visibility: hidden;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.drawer .icon-btn { color: #f5f2ea; }
.drawer .icon-btn:hover { background: rgba(255,255,255,.1); }
.drawer nav { margin-top: 6vh; display: flex; flex-direction: column; }
.drawer nav a {
  font: 400 clamp(34px, 9vw, 56px)/1.15 var(--serif); letter-spacing: -.02em; padding: 4px 0;
  opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s var(--ease), color .2s;
}
.drawer nav a:hover { color: #9fe0aa; }
.drawer.is-open nav a { opacity: 1; transform: none; }
.drawer nav a:nth-child(2) { transition-delay: .04s; } .drawer nav a:nth-child(3) { transition-delay: .08s; }
.drawer nav a:nth-child(4) { transition-delay: .12s; } .drawer nav a:nth-child(5) { transition-delay: .16s; }
.drawer nav a:nth-child(6) { transition-delay: .2s; } .drawer nav a:nth-child(7) { transition-delay: .24s; }
.drawer-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; opacity: .75; }

/* ---------- home hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero-title { font-size: clamp(52px, 7.6vw, 132px); }
.hero-title .line { display: block; overflow: hidden; padding: 0 .12em .06em 0; margin-right: -.12em; }
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-copy { display: flex; flex-direction: column; gap: 28px; padding-bottom: 8px; }
.hero-copy .lead { max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; gap: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-meta b { display: block; font: 400 34px/1 var(--serif); letter-spacing: -.02em; }
.hero-meta span { font-size: 13px; color: var(--muted); }

.slider { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: var(--green-deep); isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.slide.is-active img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 20, 9, .85)); }
.slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 3vw, 36px); color: #fff;
  display: flex; flex-direction: column; gap: 12px;
}
.slide-cap .tag { color: #a6e2b0; }
.slide-cap a { font: 400 clamp(20px, 2.3vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; max-width: 26ch; transform: translateY(14px); opacity: 0; transition: transform .9s var(--ease) .2s, opacity .9s .2s; }
.slide.is-active .slide-cap a { transform: none; opacity: 1; }
.slide-cap a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.slider-ui { position: absolute; z-index: 3; top: 18px; left: 18px; right: 18px; display: flex; gap: 6px; }
.slider-ui button { flex: 1; height: 3px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; position: relative; }
.slider-ui button::before { content: ""; position: absolute; inset: -10px 0; }
.slider-ui button i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.slider-ui button.is-done i { transform: scaleX(1); }
.slider-ui button.is-active i { animation: progress var(--dur, 6s) linear forwards; }
.slider.is-paused .slider-ui button.is-active i { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .slider { aspect-ratio: 4 / 3.4; }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { font: 400 clamp(22px, 2.6vw, 36px)/1 var(--serif); letter-spacing: -.01em; padding-inline: 28px; display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; transition: color .2s; }
.marquee a::after { content: "✦"; font-size: .5em; color: var(--green); }
.marquee a:hover { color: var(--green-ink); font-style: italic; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .display { max-width: 16ch; }
.section-head > div { display: flex; flex-direction: column; gap: 18px; }
.band { background: var(--green-deep); color: #eef1e8; }
.band .eyebrow { color: #9fe0aa; }
.band .muted, .band .lead { color: rgba(238, 241, 232, .72); }
.band ::selection { background: #9fe0aa; color: var(--green-deep); }
.alt { background: var(--paper-2); }

/* intro split */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro-media { position: relative; }
.intro-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; filter: saturate(.85); }
.intro-media figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--paper); padding: 8px 12px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow); }
.objectives { list-style: none; padding: 0; margin: 28px 0 32px; counter-reset: o; display: grid; gap: 0; }
.objectives li { counter-increment: o; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.objectives li:last-child { border-bottom: 1px solid var(--line); }
.objectives li::before { content: "0" counter(o); font: 400 14px/1.8 var(--serif); color: var(--green-ink); }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

/* ---------- resident index rows (home) ---------- */
.roster { border-top: 1px solid var(--line-strong); }
.roster-row {
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 1.6fr) minmax(0, 1fr) 160px 40px; gap: 20px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background .3s, padding .4s var(--ease);
}
.roster-row:hover { background: var(--card); padding-left: 20px; }
.roster-no { font: 400 15px/1 var(--serif); color: var(--muted); font-variant-numeric: tabular-nums; }
.roster-name { font: 400 clamp(26px, 3.2vw, 46px)/1.05 var(--serif); letter-spacing: -.02em; transition: color .25s; }
.roster-row:hover .roster-name { color: var(--green-ink); font-style: italic; }
.roster-role { color: var(--ink-2); font-size: 15px; }
.roster-date { color: var(--muted); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.roster-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all .3s var(--ease); }
.roster-arrow svg { width: 16px; height: 16px; }
.roster-row:hover .roster-arrow { background: var(--green); border-color: var(--green); color: var(--on-green); transform: rotate(-45deg); }
.hover-preview {
  position: fixed; z-index: 40; left: 0; top: 0; width: 260px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-4deg); transition: opacity .3s, transform .4s var(--ease); box-shadow: var(--shadow);
}
.hover-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .roster-row { grid-template-columns: 40px 1fr 32px; row-gap: 6px; }
  .roster-role, .roster-date { grid-column: 2; text-align: left; font-size: 13px; }
  .roster-arrow { grid-column: 3; grid-row: 1; width: 32px; height: 32px; }
  .hover-preview { display: none; }
}
@media (hover: none) { .hover-preview { display: none; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: rgba(238,241,232,.14); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--green-deep); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.stat b { font: 300 clamp(40px, 5vw, 72px)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: rgba(238,241,232,.7); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:last-child { grid-column: span 2; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.card:hover .card-media img { transform: scale(1.045); }
.card-media .placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px;
  background: var(--green-deep); color: #e9efe5; overflow: hidden;
}
.card-media .placeholder::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(120% 80% at 100% 0%, rgba(79,181,99,.45), transparent 60%), repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.035) 14px 15px);
}
.placeholder .ph-name { position: relative; font: 400 clamp(24px, 2.4vw, 34px)/1 var(--serif); letter-spacing: -.02em; }
.placeholder .ph-mark { position: relative; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9fe0aa; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.card-title { font: 400 clamp(20px, 1.6vw, 24px)/1.2 var(--serif); letter-spacing: -.01em; margin: 0; transition: color .2s; }
.card a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title { color: var(--green-ink); }
.card-excerpt { color: var(--ink-2); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* feature card (first news) */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 48px); align-items: center; position: relative; }
.feature .card-media { aspect-ratio: 16 / 10; }
.feature .card-title { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* resident cards */
.r-card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.r-card .card-media { aspect-ratio: 4 / 5; }
.r-card .card-media img { filter: grayscale(1) contrast(1.05); }
.r-card:hover .card-media img { filter: grayscale(0); }
.r-no {
  position: absolute; z-index: 2; top: 14px; left: 14px; background: var(--paper); color: var(--ink);
  font: 500 12px/1 var(--sans); letter-spacing: .06em; padding: 7px 10px; border-radius: 999px;
}
.r-card h3 { font: 400 clamp(24px, 2.2vw, 32px)/1.05 var(--serif); letter-spacing: -.02em; margin: 0; }
.r-card .r-role { color: var(--ink-2); font-size: 15px; }
.r-card .r-stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }

/* ---------- page header ---------- */
.page-head { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head .display { margin-top: 20px; }
.page-head .lead { margin-top: 24px; max-width: 52ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--green-ink); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 8), minmax(0, 1fr)); border-top: 1px solid var(--line-strong); margin-top: 8px; }
.tl-year { position: relative; padding: 18px 14px 6px 0; border-left: 1px solid var(--line); padding-left: 14px; min-height: 140px; }
.tl-year:first-child { border-left: 0; padding-left: 0; }
.tl-year > b { font: 400 28px/1 var(--serif); letter-spacing: -.02em; color: var(--muted); }
.tl-year.has > b { color: var(--ink); }
.tl-year ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-year li a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.3; padding: 6px 10px 6px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); transition: all .2s; }
.tl-year li a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.tl-year li a:hover { background: var(--green); color: var(--on-green); border-color: var(--green); }
.tl-year li a:hover::before { background: var(--on-green); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; }
  .tl-year:nth-child(4n+1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tl-year:nth-child(odd) { border-left: 0; padding-left: 0; } .tl-year:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; } }

/* ---------- resident page ---------- */
.r-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 5vw, 72px); }
.r-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.r-hero .display { font-size: clamp(52px, 8vw, 128px); margin: 22px 0 18px; }
.r-hero .role { font: 400 italic clamp(20px, 2vw, 28px)/1.3 var(--serif); color: var(--ink-2); }
.r-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 40px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.r-facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.r-facts dd { margin: 0; font: 400 22px/1.15 var(--serif); }
.r-portrait { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.r-portrait img { width: 100%; height: 100%; object-fit: cover; }
.r-portrait .badge {
  position: absolute; right: 14px; bottom: 14px; width: 92px; height: 92px; border-radius: 50%; background: var(--green); color: var(--on-green);
  display: grid; place-items: center; text-align: center; font: 400 13px/1.1 var(--serif); animation: spin 22s linear infinite;
}
.r-portrait .badge svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .r-hero-grid { grid-template-columns: 1fr; }
  .r-portrait { order: -1; aspect-ratio: 4 / 3.6; }
  .r-facts { grid-template-columns: repeat(2, auto); }
}

.subnav { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; display: inline-flex; gap: 8px; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--ink-2); transition: all .2s; }
.subnav a:hover { color: var(--ink); background: var(--paper-2); }
.subnav a.is-active { background: var(--ink); color: var(--paper); }
.subnav a sup { font-size: 11px; opacity: .6; top: 0; }

.r-section { padding: clamp(56px, 7vw, 104px) 0; border-bottom: 1px solid var(--line); }
.r-section:last-of-type { border-bottom: 0; }
.r-section-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); }
.r-section-grid > header { position: relative; }
.r-section-grid > header .sticky { position: sticky; top: calc(var(--header-h) + 90px); display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .r-section-grid { grid-template-columns: 1fr; } .r-section-grid > header .sticky { position: static; } }

/* works */
.works { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.work.no-photo { grid-template-columns: 1fr; }
.work:nth-child(even):not(.no-photo) .work-media { order: 2; }
.work-media { display: grid; gap: 10px; }
.work-media a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.work-media img { width: 100%; transition: transform .8s var(--ease); }
.work-media a:hover img { transform: scale(1.03); }
.work-index { font: 400 13px/1 var(--sans); letter-spacing: .1em; color: var(--green-ink); margin-bottom: 14px; display: block; }
.work .prose { font-size: 17px; }
.work.no-photo .prose { column-width: 34ch; column-gap: 48px; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } .work:nth-child(even):not(.no-photo) .work-media { order: 0; } }

/* chronicle list */
.chron { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.chron li { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr) 96px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.chron time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chron h3 { margin: 0; font: 400 clamp(19px, 1.6vw, 23px)/1.25 var(--serif); letter-spacing: -.01em; transition: color .2s; }
.chron li:hover h3 { color: var(--green-ink); }
.chron .thumb { width: 96px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.chron .thumb img { width: 100%; height: 100%; object-fit: cover; }
.chron a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 640px) { .chron li { grid-template-columns: 1fr 72px; gap: 6px 16px; } .chron time { grid-column: 1; } .chron h3 { grid-column: 1; } .chron .thumb { grid-row: 1 / span 2; grid-column: 2; width: 72px; } }

/* masonry gallery */
.masonry { columns: 4 200px; column-gap: 14px; }
.masonry figure { break-inside: avoid; margin: 0 0 14px; }
.masonry a { display: block; position: relative; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.masonry img { width: 100%; transition: transform .7s var(--ease), opacity .3s; }
.masonry a:hover img { transform: scale(1.04); }
.masonry figcaption { font-size: 13px; color: var(--muted); padding: 8px 2px 0; line-height: 1.35; }
.zoom-hint { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); color: #141812; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: all .25s; }
.zoom-hint svg { width: 16px; height: 16px; }
a:hover > .zoom-hint { opacity: 1; transform: none; }

/* pager between residents/articles */
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.pager a { display: flex; flex-direction: column; gap: 10px; padding: clamp(28px, 4vw, 56px) 0; transition: background .3s; }
.pager a + a { text-align: right; align-items: flex-end; border-left: 1px solid var(--line); padding-left: 24px; }
.pager a:first-child { padding-right: 24px; }
.pager small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pager strong { font: 400 clamp(22px, 3vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; transition: color .2s; }
.pager a:hover strong { color: var(--green-ink); font-style: italic; }
.pager .empty { pointer-events: none; }

/* ---------- prose ---------- */
.prose { font: 400 18px/1.72 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.05em; }
.prose > * { margin-bottom: 0; }
.prose p { margin-top: 0; }
.prose > p + p, .prose > * + p { margin-top: 1.05em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin: 1.8em 0 .5em; }
.prose h2 { font-size: 1.6em; } .prose h3 { font-size: 1.3em; } .prose h4 { font-size: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--green-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--green) 45%, transparent); transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; }
.prose img { border-radius: 10px; margin: 1.6em auto; cursor: zoom-in; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--green); font-style: italic; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .embed { margin: 1.6em 0; }
.prose-lg { font-size: clamp(18px, 1.35vw, 20px); }
.dropcap > p:first-of-type::first-letter {
  float: left; font: 400 5.1em/.8 var(--serif); padding: .06em .1em 0 0; color: var(--green);
}
.cols-2 { column-width: 30ch; column-gap: clamp(32px, 4vw, 64px); }
.cols-2 > * { break-inside: avoid-column; }

/* ---------- article ---------- */
.article-head { padding: clamp(32px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.article-head .display { font-size: clamp(34px, 5.2vw, 76px); line-height: 1.02; margin: 24px 0 28px; max-width: 22ch; overflow-wrap: break-word; hyphens: auto; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.article-meta .who { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.article-meta .who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.article-meta .who:hover { color: var(--green-ink); }
.article-hero { margin-block: 0; }
.article-hero img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); padding-block: clamp(40px, 6vw, 80px); }
.article-body { max-width: 700px; }
.article-aside { display: flex; flex-direction: column; gap: 28px; }
.article-aside .sticky { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .article-aside .sticky { position: static; } }

.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); display: flex; flex-direction: column; gap: 14px; position: relative; }
.aside-card .who { display: flex; gap: 14px; align-items: center; }
.aside-card .who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.aside-card .who strong { font: 400 22px/1.1 var(--serif); display: block; }
.aside-card h4 { margin: 0; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { border-top: 1px solid var(--line); }
.mini-list a { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; font: 400 16px/1.3 var(--serif); transition: color .2s; }
.mini-list a:hover { color: var(--green-ink); }
.mini-list time { font: 400 12px/1 var(--sans); color: var(--muted); }
.share { display: flex; gap: 6px; }
.share .icon-btn { border: 1px solid var(--line); }

/* panels (media blocks inside articles) */
.panel { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.panel-title { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--serif); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery a { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.gallery a:first-child:nth-last-child(n+4) { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery .more-count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12, 51, 21, .66); color: #fff; font: 400 28px/1 var(--serif); }

.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b0f0b; display: block; width: 100%; color: #fff;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .8s var(--ease); }
.video:hover img { opacity: 1; transform: scale(1.03); }
.video .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.video:hover .play { transform: scale(1.1); }
.video .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video .vlabel { position: absolute; left: 16px; bottom: 14px; font-size: 13px; opacity: .9; display: flex; gap: 8px; align-items: center; }
.video.vimeo-ph { background: radial-gradient(120% 120% at 0% 100%, #1d5c2a, #0b0f0b 60%); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos { display: grid; gap: 16px; }
.videos.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .videos.two { grid-template-columns: 1fr; } }
.sound iframe { width: 100%; height: 166px; border: 0; border-radius: var(--radius); }
.sound-fallback { font-size: 14px; }
.docs { display: grid; gap: 10px; }
.doc {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .2s, transform .3s var(--ease);
}
.doc:hover { border-color: var(--green); transform: translateY(-2px); }
.doc .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; flex-shrink: 0; font: 700 10px/1 var(--sans); letter-spacing: .06em; }
.doc .nm { font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.doc small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.doc .dl { margin-left: auto; width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }

/* ---------- news index ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in oklab, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.toolbar .wrap { display: flex; flex-direction: column; gap: 12px; padding-block: 14px; }
.toolbar-row { display: flex; gap: 10px; align-items: center; }
.toolbar-row.scroll { overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 32px; }
.toolbar-row.scroll::-webkit-scrollbar { display: none; }
.field { position: relative; flex: 1; max-width: 420px; }
.field svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); }
.field input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); padding: 0 16px 0 40px; font: inherit; font-size: 15px; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in oklab, var(--green) 18%, transparent); }
.select { height: 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); padding: 0 34px 0 16px; font: inherit; font-size: 14px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
@media (max-width: 600px) { .toolbar-row:first-child { flex-wrap: wrap; } .toolbar-row:first-child .field { flex-basis: 100%; max-width: none; } }
.result-count { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.empty-state { display: none; text-align: center; padding: 80px 0; color: var(--muted); }
.empty-state.is-on { display: block; }
.empty-state .display { color: var(--ink); margin-bottom: 12px; }
.news-grid .card[hidden] { display: none; }
.year-sep { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.year-sep b { font: 400 clamp(36px, 4vw, 56px)/1 var(--serif); letter-spacing: -.02em; }
.year-sep::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.year-sep[hidden] { display: none; }

/* ---------- info pages ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.info-block { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.info-block h2 { margin: 0; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); }
.namelist { list-style: none; margin: 0; padding: 0; }
.namelist li { font: 400 21px/1.25 var(--serif); padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.namelist li small { font: 400 13px/1 var(--sans); color: var(--muted); white-space: nowrap; }
.namelist li.note { font: 400 14px/1.4 var(--sans); color: var(--muted); border-bottom: 0; padding: 6px 0 2px; }
.contact-card { background: var(--green-deep); color: #eef1e8; border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.contact-card a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.35); }
.contact-card a:hover { text-decoration-color: #fff; }
.contact-card .big { font: 400 clamp(20px, 2.2vw, 28px)/1.3 var(--serif); letter-spacing: -.01em; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: saturate(.7); }
:root[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }
.kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.kit a { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .2s, transform .3s var(--ease); }
.kit a:hover { border-color: var(--green); transform: translateY(-3px); }
.kit img { height: 100px; width: auto; object-fit: contain; align-self: flex-start; }
.kit span { font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kit svg { width: 18px; height: 18px; color: var(--green-ink); }

/* ---------- listen/watch CTA ---------- */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.channel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid rgba(238,241,232,.18); transition: background .25s, border-color .25s; }
.channel:hover { background: rgba(238,241,232,.06); border-color: rgba(238,241,232,.5); }
.channel strong { font: 400 24px/1.1 var(--serif); display: block; }
.channel small { color: rgba(238,241,232,.65); }
.channel svg { width: 26px; height: 26px; flex-shrink: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-deep); color: #e8ece2; padding: clamp(56px, 8vw, 104px) 0 28px; margin-top: 0; overflow: hidden; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #9fe0aa; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.footer-top h3 { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9fe0aa; margin: 0 0 18px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.footer-top p { margin: 0; color: rgba(232,236,226,.72); font-size: 15px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(232,236,226,.22); display: grid; place-items: center; }
.socials a:hover { background: #e8ece2; color: var(--green-deep); border-color: #e8ece2; }
.socials svg { width: 18px; height: 18px; }
.footer-word { font: 400 clamp(54px, 13.5vw, 230px)/.85 var(--serif); letter-spacing: -.045em; margin: clamp(48px, 7vw, 96px) 0 28px; white-space: nowrap; color: #e8ece2; }
.footer-word em { color: #9fe0aa; font-style: italic; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(232,236,226,.16); font-size: 13px; color: rgba(232,236,226,.6); }
.footer-bottom img { height: 54px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- search palette ---------- */
.palette { position: fixed; inset: 0; z-index: 120; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(8, 14, 9, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.palette.is-open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.palette-box { width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--card); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; animation: pop .25s var(--ease); border: 1px solid var(--line); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette-in svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.palette-in input { flex: 1; height: 62px; border: 0; background: none; font: 400 19px/1 var(--sans); color: var(--ink); min-width: 0; }
.palette-in input:focus { outline: none; }
.palette-res { overflow-y: auto; padding: 8px; }
.palette-res a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.palette-res a.is-sel, .palette-res a:hover { background: var(--paper-2); }
.palette-res .pi { width: 44px; height: 44px; border-radius: 8px; background: var(--green-soft); overflow: hidden; display: grid; place-items: center; color: var(--green-ink); font: 600 10px/1 var(--sans); letter-spacing: .06em; }
.palette-res .pi img { width: 100%; height: 100%; object-fit: cover; }
.palette-res strong { display: block; font: 400 17px/1.25 var(--serif); }
.palette-res small { color: var(--muted); font-size: 12.5px; }
.palette-res mark { background: color-mix(in oklab, var(--green) 25%, transparent); color: inherit; border-radius: 3px; }
.palette-group { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 8px; }
.palette-empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(6, 10, 7, .94); display: none; color: #eee; touch-action: pan-y; }
.lightbox.is-open { display: block; animation: fade .25s ease; }
.lb-stage { position: absolute; inset: 64px 72px 84px; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 148px); max-height: calc(100dvh - 148px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: pop .3s var(--ease); }
.lb-top { position: absolute; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 24px; font-size: 14px; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 0; min-height: 84px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px 24px; font: 400 17px/1.35 var(--serif); color: #ddd; }
.lightbox .icon-btn { color: #eee; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (max-width: 700px) { .lb-stage { inset: 56px 8px 96px; } .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.img-fade { opacity: 0; transition: opacity .6s ease; }
.img-fade.is-loaded { opacity: 1; }

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

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf .display { font-size: clamp(120px, 24vw, 320px); color: var(--green); }

/* back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; opacity: 0; transform: translateY(16px); transition: all .3s var(--ease); pointer-events: none; box-shadow: var(--shadow); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--green); transform-origin: left; transform: scaleX(0); }

@media print {
  .site-header, .site-footer, .subnav, .toolbar, .to-top, .progress, .article-aside { display: none !important; }
  body { background: #fff; color: #000; }
}


/* =====================================================================
   Restrained overrides — fewer ornaments, institutional feel
   ===================================================================== */
.display em { font-style: normal; color: inherit; }
.h-xl { font-size: clamp(38px, 5vw, 68px); }
.h-lg { font-size: clamp(32px, 3.8vw, 52px); }
.h-md { font-size: clamp(26px, 2.8vw, 38px); }
.h-sm { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.2; }
.eyebrow { color: var(--muted); letter-spacing: .06em; font-weight: 600; }
.eyebrow::before { display: none; }
.tag { letter-spacing: .04em; text-transform: none; font-size: 13px; font-weight: 600; }
.lead { font-family: var(--sans); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; }

.brand-mark { width: 128px; height: auto; display: block; }
.nav a { border-radius: 0; padding: 8px 10px; font-size: 15px; }
.nav a:hover { background: none; color: var(--green-ink); }
.nav a[aria-current="page"] { color: var(--green-ink); }
.nav a[aria-current="page"]::after { width: auto; height: 2px; left: 10px; right: 10px; bottom: -2px; border-radius: 0; transform: none; }
.search-trigger { border-radius: var(--radius); }
.icon-btn { border-radius: var(--radius); }
.btn { border-radius: var(--radius); height: 44px; font-size: 15px; font-weight: 600; }
.btn:hover svg { transform: none; }
.chip { border-radius: var(--radius); }
.link-arrow { border-bottom-width: 1px; font-weight: 600; color: var(--green-ink); border-color: currentColor; }
.link-arrow:hover { gap: 8px; }

.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.hero-grid { align-items: center; }
.hero-title { font-size: clamp(42px, 5.6vw, 80px); }
.hero-copy { gap: 22px; }
.slider { aspect-ratio: 16 / 11; }
.slide img { transform: none; transition: none; }
.slide-cap a { font-family: var(--serif); font-weight: 500; transform: none; opacity: 1; transition: none; }
.slider-ui { top: auto; bottom: 0; left: 0; right: 0; gap: 0; }
.slider-ui button { height: 4px; border-radius: 0; background: rgba(255,255,255,.25); }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { align-items: baseline; margin-bottom: clamp(24px, 3vw, 40px); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.section-head .display { max-width: none; }
.intro-media img { filter: none; aspect-ratio: auto; }
.intro-media figcaption { position: static; background: none; box-shadow: none; padding: 8px 0 0; border-radius: 0; color: var(--muted); }
.objectives li::before { font-family: var(--sans); font-weight: 600; }

.roster { border-top: 0; }
.roster-row { grid-template-columns: 72px minmax(0, 1.4fr) minmax(0, 1fr) 190px; padding: 14px 0; }
.roster-row:hover { background: none; padding-left: 0; }
.roster-row:hover .roster-name { font-style: normal; }
.roster-thumb { width: 72px; height: 72px; overflow: hidden; background: var(--paper-2); }
.roster-thumb img { width: 100%; height: 100%; object-fit: cover; }
.roster-name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; }
@media (max-width: 760px) {
  .roster-row { grid-template-columns: 56px 1fr; column-gap: 14px; }
  .roster-thumb { width: 56px; height: 56px; grid-row: 1 / span 3; }
  .roster-role, .roster-date { grid-column: 2; }
}

.card-title { font-weight: 500; }
.card:hover .card-media img { transform: none; opacity: .9; }
.card-media .placeholder::before { display: none; }
.card-media .placeholder { background: var(--green-deep); }
.r-card .card-media img { filter: none; }
.r-card h3 { font-weight: 500; }
.feature .card-title { font-size: clamp(26px, 2.6vw, 36px); }

.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); }
.page-head .display { margin-top: 14px; }
.timeline { border-top: 2px solid var(--ink); }
.tl-year > b { font-family: var(--sans); font-weight: 600; font-size: 22px; }
.tl-year li a { border-radius: var(--radius); }
.tl-year li a::before { border-radius: 0; width: 6px; height: 6px; }

.r-hero .display { font-size: clamp(40px, 5.4vw, 76px); margin: 16px 0 10px; }
.r-hero .role { font-style: normal; font-family: var(--sans); font-size: clamp(18px, 1.5vw, 21px); }
.r-dates { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.r-portrait { aspect-ratio: 4 / 4.6; }
.subnav a { border-radius: 0; height: 44px; padding: 0 14px; border-bottom: 2px solid transparent; }
.subnav a:hover { background: none; }
.subnav a.is-active { background: none; color: var(--green-ink); border-bottom-color: var(--green); }
.subnav .wrap { padding-block: 0; }
.r-section { padding: clamp(44px, 5vw, 72px) 0; }
.r-section-grid { grid-template-columns: minmax(0, 2.4fr) minmax(0, 9fr); }

.pager strong { font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); }
.pager a:hover strong { font-style: normal; }
.prose { font-size: 18px; }
.prose img { border-radius: 0; }
.article-head .display { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.12; max-width: 28ch; margin: 16px 0 20px; }
.aside-card .who strong { font-weight: 500; }

.sub-h { font: 600 22px/1.2 var(--serif); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.contact-card { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.contact-card a { text-decoration-color: var(--line-strong); }
.contact-card .sub-h { border-bottom-color: var(--line); }
.contact-card .big { font-size: 19px; line-height: 1.45; }
.contact-card .socials a { border-color: var(--line-strong); }
.contact-card .socials a:hover { background: var(--green); border-color: var(--green); color: var(--on-green); }
.info-block { border-top-width: 2px; }
.namelist li { font-size: 19px; }

.socials a { border-radius: var(--radius); }
.site-footer { padding: clamp(48px, 6vw, 80px) 0 24px; }
.footer-bottom { margin-top: clamp(40px, 5vw, 64px); }
.doc, .kit a, .aside-card { border-radius: var(--radius); }
.doc .ic { border-radius: 2px; }
.gallery a, .masonry a, .work-media a, .chron .thumb { border-radius: 0; }
.video .play { border-radius: 4px; width: 68px; height: 48px; margin: -24px 0 0 -34px; }
.palette-box { border-radius: 6px; }
.to-top { border-radius: var(--radius); }

.info-block .prose > * + p { margin-top: .25em; }

/* PHP site additions */
.intro-text p { margin: 0; font-size: 19px; }
.about-body ol, .intro ol.objectives { list-style: none; padding: 0; counter-reset: o; margin: 22px 0 28px; }
.about-body ol li { counter-increment: o; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); margin: 0; font-family: var(--sans); font-size: 17px; color: var(--ink-2); }
.about-body ol li:last-child { border-bottom: 1px solid var(--line); }
.about-body ol li::before { content: "0" counter(o); font: 600 14px/1.8 var(--sans); color: var(--green-ink); }
.slide-title { color: #fff; font: 500 clamp(20px, 2.3vw, 32px)/1.15 var(--serif); }

/* University seal + Chronicles lockup */
.brand-lockup { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-uni { display: block; width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 2px; flex-shrink: 0; }
.brand-uni img { width: 100%; height: 100%; }
.brand-sep { width: 1px; height: 32px; background: var(--line-strong); }
.footer-seal { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: #e8ece2; }
.footer-seal img { width: 72px; height: 72px; border-radius: 50%; background: #fff; padding: 3px; flex-shrink: 0; }
.footer-seal strong { display: block; font: 500 20px/1.2 var(--serif); }
.footer-seal small { color: rgba(232,236,226,.65); font-size: 13px; }
.footer-uni p { max-width: 38ch; }
@media (max-width: 480px) { .brand-uni { width: 38px; height: 38px; } .brand-mark { width: 108px; } .brand-lockup { gap: 10px; } }

/* Wide hero: title row + full-width cinematic slider */
.hero-wide { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.hero-wide .hero-title { font-size: clamp(46px, 7.4vw, 112px); line-height: .98; letter-spacing: -.025em; }
.hero-side { display: flex; flex-direction: column; gap: 20px; padding-bottom: 8px; }
.hero-side .lead { margin: 0; max-width: 44ch; }
.hero-wide .slider { aspect-ratio: 21 / 9; }
.hero-wide .slide::after { background: linear-gradient(180deg, rgba(6,20,9,0) 45%, rgba(6,20,9,.82)); }
.hero-wide .slide-cap { padding: clamp(18px, 3vw, 40px); }
.hero-wide .slide-cap a, .hero-wide .slide-title { font-size: clamp(22px, 2.6vw, 38px); max-width: 30ch; }
@media (max-width: 900px) { .hero-top { grid-template-columns: 1fr; } .hero-wide .slider { aspect-ratio: 4 / 3; } }
.brand-uni { width: 52px; height: 52px; }
.brand-uni { width: auto; height: auto; background: none; border-radius: 0; padding: 0; display: flex; align-items: center; gap: 10px; color: #1d4f8f; }
.brand-uni img { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.uni-name { font: 700 11.5px/1.15 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
:root[data-theme="dark"] .uni-name { color: #9cc3f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .uni-name { color: #9cc3f0; } }
@media (max-width: 1240px) { .uni-name { display: none; } }
@media (max-width: 480px) { .brand-uni img { width: 40px; height: 40px; } }
