/* Fault-Zone Geology Laboratory — site styles
   Tokens are at the top; change colours or type here and the whole site follows. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans.woff2") format("woff2-variations"), url("fonts/instrument-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-ext.woff2") format("woff2-variations"), url("fonts/instrument-sans-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --stone: #f3f3f1;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d6d6d3;
  --link: #0066cc;
  --focus: #0071e3;
  --black: #000000;
  --on-dark: #f5f5f7;
  --on-dark-muted: #a1a1a6;
  --on-dark-link: #2997ff;

  --font: "Instrument Sans", "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Heiti TC", "Microsoft JhengHei", system-ui, sans-serif;

  --wrap: 980px;
  --wide: 1200px;
  --gutter: clamp(20px, 5vw, 44px);
  --nav-h: 48px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --section-y: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
strong { font-weight: 600; color: var(--ink); }
u { text-decoration-thickness: 1px; text-underline-offset: 3px; }
sup, sub { font-size: 0.72em; line-height: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* links inside running text are underlined, so they do not rely on colour alone (WCAG 1.4.1) */
.prose a, .lead a, .page-lead a, .page-meta a, .pub a, .papers a, .year-items a, .thesis a, .reel-caption a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.prose a:hover, .lead a:hover, .page-lead a:hover, .page-meta a:hover, .pub a:hover, .papers a:hover, .year-items a:hover, .thesis a:hover, .reel-caption a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 10px; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.wide { max-width: calc(var(--wide) + var(--gutter) * 2); }
.muted { color: var(--muted); }

/* ---------- titles ---------- */

.title { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.title-main { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: 0.01em; }
.title-sub { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.3; font-weight: 400; color: var(--muted); letter-spacing: -0.005em; }
.lang-en .title-main { letter-spacing: -0.015em; }

/* ---------- navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--ink);
}
.is-dark .nav { background: rgba(0, 0, 0, 0.76); border-bottom-color: rgba(255, 255, 255, 0.08); color: var(--on-dark); }
.nav-inner {
  max-width: calc(var(--wide) + var(--gutter) * 2);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.lang-en .brand { letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.mark { width: 22px; height: 22px; flex: none; }
.nav-list { display: flex; gap: clamp(14px, 1.7vw, 28px); }
.nav-menu a { color: inherit; opacity: 0.8; font-size: 13px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.nav-menu a:hover { opacity: 1; text-decoration: none; }
.nav-menu a[aria-current] { opacity: 1; }
.nav-toggle { display: none; }

/* section bar: second row on pages that belong to a group (Research: Themes · Projects · Equipment · Photo) */
.subnav { border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.is-dark .subnav { background: #161617; border-bottom-color: #2c2c2e; color: var(--on-dark); }
.subnav-inner { max-width: calc(var(--wide) + var(--gutter) * 2); min-height: 52px; margin: 0 auto; padding: 8px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; }
.subnav-title { color: inherit; font-size: 21px; font-weight: 600; letter-spacing: 0.01em; }
.subnav-title:hover { text-decoration: none; }
.lang-en .subnav-title { letter-spacing: -0.01em; }
.subnav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.subnav li a { display: inline-block; padding: 6px 0; font-size: 13px; color: inherit; opacity: 0.72; }
.subnav li a:hover { opacity: 1; text-decoration: none; }
.subnav li a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* language switch: always visible, beside the menu */
.lang { display: inline-flex; flex: none; padding: 2px; border: 1px solid rgba(0, 0, 0, 0.16); border-radius: 999px; font-size: 12px; line-height: 1; }
.is-dark .lang { border-color: rgba(255, 255, 255, 0.24); }
.lang a { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; color: inherit; opacity: 0.72; }
.lang a:hover { opacity: 1; text-decoration: none; }
.lang a[aria-current] { opacity: 1; background: var(--ink); color: var(--paper); }
.is-dark .lang a[aria-current] { background: var(--on-dark); color: var(--black); }

/* the menu fits on one line from 1001px (English needs about 920); narrower screens use the menu button */
@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0 11px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .nav-toggle .bar { display: block; height: 1.5px; width: 100%; background: currentColor; border-radius: 1px; transition: transform 0.3s ease; }
  .nav-open .nav-toggle .bar:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }
  /* a backdrop-filter would trap the fixed menu inside the 52px bar */
  .nav-open .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .nav-open.is-dark .nav { background: var(--black); }
  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    padding: 24px var(--gutter) 48px;
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .is-dark .nav-menu { background: var(--black); }
  .nav-open .nav-menu { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s ease, transform 0.25s ease; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-menu .nav-top { display: block; padding: 8px 0; font-size: 28px; font-weight: 600; opacity: 0.9; letter-spacing: -0.01em; }
  .nav-open { overflow: hidden; }
  .lang { margin-right: 4px; }
  .subnav-title { font-size: 19px; }
}

/* ---------- hero (home) ---------- */

.hero { background: var(--black); color: var(--on-dark); text-align: center; padding: clamp(48px, 8vh, 96px) var(--gutter) 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 861px) { .hero { min-height: calc(100svh - var(--nav-h)); } }
.hero-title { font-size: clamp(46px, min(9vw, 11vh), 96px); line-height: 1.05; font-weight: 600; letter-spacing: 0.04em; }
.lang-en .hero-title { font-size: clamp(40px, min(7vw, 10vh), 84px); letter-spacing: -0.025em; text-wrap: balance; }
.hero-sub { margin-top: 14px; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.25; font-weight: 400; color: var(--on-dark-muted); letter-spacing: -0.01em; }
.hero-head { position: relative; z-index: 1; }
.hero-media { width: min(960px, 100%, calc((100svh - 400px) * 16 / 9)); min-width: min(100%, 520px); margin: clamp(-64px, -5vw, -12px) auto 0; }
.hero-media video, .hero-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-foot { max-width: 700px; margin: 0 auto; padding: clamp(4px, 1.5vh, 16px) 0 clamp(48px, 8vh, 96px); }
.hero-text { font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: var(--on-dark); text-wrap: balance; }
.hero-aff { margin-top: 18px; font-size: 14px; color: var(--on-dark-muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero-head, .hero-media, .hero-foot { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-media { animation-delay: 0.18s; }
  .hero-foot { animation-delay: 0.36s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */

.is-dark { background: var(--black); }
.section { padding: var(--section-y) 0; background: var(--paper); }
.section.alt { background: var(--stone); }
.section.tight-top { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.more { font-size: 17px; white-space: nowrap; }

.page-head { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); }
.page-title .title-main { font-size: clamp(40px, 6vw, 64px); line-height: 1.1; }
.page-title .title-sub { font-size: clamp(19px, 2vw, 24px); }
.page-meta { margin-top: 20px; font-size: 17px; color: var(--muted); }
.page-lead { max-width: 38em; margin-top: 24px; font-size: clamp(19px, 2vw, 22px); line-height: 1.6; color: var(--ink-2); }
.page-head.dark { background: var(--black); color: var(--on-dark); }
.page-head.dark .title-sub { color: var(--on-dark-muted); }
.page-head.centered { text-align: center; }
.page-head.centered .title { align-items: center; }
.notfound { min-height: 50vh; }

/* ---------- principal investigator ---------- */

.pi-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pi-photo { margin-top: 8px; }
.pi-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); background: var(--stone); }
.pi-name .title-main { font-size: clamp(36px, 5vw, 56px); }
.pi-name .title-sub { font-size: clamp(20px, 2.2vw, 26px); color: var(--ink-2); }
.pi-aff { margin-top: 18px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.contact { margin-top: 32px; }
.contact .row, .specs .row {
  display: grid;
  grid-template-columns: minmax(0, 10em) minmax(0, 1fr);
  gap: 4px 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.contact .row:last-child, .specs .row:last-child { border-bottom: 1px solid var(--line); }
.contact dt, .specs dt { font-size: 14px; line-height: 1.6; color: var(--muted); }
.contact dd { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border: 1px solid var(--link);
  border-radius: 999px;
  color: var(--link);
  font-size: 16px;
  font-weight: 400;
  transition: background-color 0.33s ease, color 0.33s ease, transform 0.15s ease;
}
.pill:hover { background: rgba(0, 102, 204, 0.06); text-decoration: none; }
.pill.primary { background: var(--link); color: #fff; }
.pill.primary:hover { background: #0077ed; }
.pill:active { transform: scale(0.95); }
.dept-logo { margin-top: 36px; }
.dept-logo img { width: 230px; height: auto; }

/* ---------- prose ---------- */

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.prose p + p { margin-top: 1em; }
.prose { color: var(--ink-2); }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.65; color: var(--ink); max-width: 40em; }
.lead-more { margin-top: 24px; }

/* ---------- year-grouped lists (publications, awards, alumni) ---------- */

.year-group { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 8px 24px; padding: 28px 0 12px; border-top: 1px solid var(--line); }
.year { font-size: 17px; line-height: 1.6; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }
.year-items > li { padding-bottom: 18px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.pubs .pub { overflow-wrap: anywhere; }
.awards .year-items > li { font-size: 17px; }

.filter { margin-bottom: 20px; }
.filter input {
  width: 100%;
  max-width: 440px;
  height: 46px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m12.5 12.5 4 4'/%3E%3C/svg%3E") no-repeat 15px 50%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.filter input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2); }
.filter-count { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.empty { padding: 32px 0; color: var(--muted); }

/* ---------- people ---------- */

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(16px, 3vw, 36px); }
.person-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--stone); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.focus-center { object-position: 50% 35%; }
.focus-top { object-position: 50% 12%; }
.focus-bottom { object-position: 50% 85%; }
.focus-left { object-position: 28% 40%; }
.focus-right { object-position: 72% 40%; }
.monogram { display: grid; place-items: center; width: 100%; height: 100%; font-size: clamp(48px, 7vw, 84px); font-weight: 500; color: #a8a8a4; }
.person-name { margin-top: 18px; font-size: 21px; line-height: 1.3; font-weight: 600; }
.person-name span { display: block; margin-top: 2px; font-size: 16px; font-weight: 500; color: var(--muted); }
.person-role { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.person-email { margin-top: 4px; font-size: 14px; overflow-wrap: anywhere; }

.alumni > li { padding-bottom: 22px; }
.alum-name { font-size: 17px; color: var(--ink); }
.alum-name .muted { font-size: 14px; font-variant-numeric: tabular-nums; margin-left: 4px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 500; color: var(--ink-2); vertical-align: 2px; }
.thesis { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.thesis.labeled { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); }
.alum-alt { font-size: 15px; color: var(--ink-2); }
.thesis-label { font-size: 13px; line-height: 1.85; color: var(--muted); }

/* ---------- press ---------- */

.press-item { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 4px 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.press-item:last-child { border-bottom: 1px solid var(--line); }
.press-date { font-size: 15px; line-height: 1.75; color: var(--muted); font-variant-numeric: tabular-nums; }
.press-body a { font-size: 19px; line-height: 1.5; font-weight: 500; }
.press-source { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ---------- equipment ---------- */

.equips { display: flex; flex-direction: column; gap: clamp(80px, 10vw, 140px); }
.equip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.equip.flip .equip-photo { order: 2; }
.equip-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--stone); }
.equip-photo img { width: 100%; height: 100%; object-fit: cover; }
.equip-body .title-main { font-size: clamp(28px, 3.4vw, 40px); }
.equip-body .prose { margin-top: 22px; font-size: 17px; }
.specs { margin-top: 32px; }
.specs dd { font-size: 15px; line-height: 1.6; color: var(--ink); }
.specs .row.single dd { grid-column: 1 / -1; }

/* ---------- teaching ---------- */

.course { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.course:last-child { border-bottom: 1px solid var(--line); }
.course-code { font-size: 14px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.course-name { font-size: 19px; font-weight: 600; }
.lang-en .course-name { font-weight: 500; }

/* ---------- research themes ---------- */

.themes-page { padding-bottom: var(--section-y); }
.theme { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(24px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 12px); }
.theme-side { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
.theme-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 600; }
.lang-en .theme-title { letter-spacing: -0.015em; }
.theme-media { margin-bottom: 28px; overflow: hidden; border-radius: var(--radius-lg); background: var(--black); }
.theme-media video, .theme-media img { width: 100%; height: auto; }
.theme-main .prose { font-size: 18px; line-height: 1.7; }
.papers-title { margin-top: 32px; font-size: 14px; font-weight: 600; color: var(--muted); }
.papers { margin-top: 10px; }
.papers li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- projects ---------- */

.list-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.list-title ~ .list-title { margin-top: 56px; }
.project { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 4px 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project-period { font-size: 15px; line-height: 1.85; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-title { font-size: 19px; line-height: 1.45; font-weight: 600; }
.project-funder { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.project-number { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-partners { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
/* ---------- join ---------- */

.join-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px clamp(24px, 5vw, 72px); padding: 32px 0; border-top: 1px solid var(--line); }
.join-row:last-child { border-bottom: 1px solid var(--line); }
.join-title { font-size: 21px; line-height: 1.35; font-weight: 600; }
.lang-en .join-title { letter-spacing: -0.01em; }
.join-row .prose { font-size: 18px; line-height: 1.7; }
.join-band-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(24px, 5vw, 72px); align-items: start; margin-top: clamp(32px, 4vw, 48px); }
.join-band-text { max-width: 34em; margin-bottom: 24px; font-size: clamp(19px, 2vw, 22px); line-height: 1.6; color: var(--ink-2); }

/* ---------- pages added in the admin (same rows as Join Us) ---------- */

.page-block.untitled .page-block-body { grid-column: 1 / -1; }
.page-block-media { margin-bottom: 24px; overflow: hidden; border-radius: var(--radius-lg); background: var(--stone); }
.page-block-media img, .page-block-media video { width: 100%; height: auto; }

/* ---------- photo (dark) ---------- */

.page-photo main { background: var(--black); }
.reels { background: var(--black); color: var(--on-dark); padding: 0 var(--gutter) var(--section-y); display: flex; flex-direction: column; gap: clamp(88px, 12vw, 160px); }
.reel { text-align: center; }
.reel-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.reel-media { max-width: 960px; margin: clamp(8px, 2vw, 24px) auto 0; }
.reel-media video, .reel-media img { width: 100%; height: auto; }
.reel-caption { max-width: 720px; margin: 8px auto 0; font-size: 14px; line-height: 1.6; color: var(--on-dark-muted); overflow-wrap: anywhere; }
.reel-caption strong, .reel-caption u { color: var(--on-dark); }
.reel-caption a, .page-photo .page-head a { color: var(--on-dark-link); }

/* ---------- banner ---------- */

.banner-section { padding-top: 0; }
.banner { max-width: 1100px; margin: 0 auto; }
.banner img { width: 100%; height: auto; }
.page-home .banner-section { padding-top: var(--section-y); }

/* ---------- footer ---------- */

.footer { background: var(--stone); color: var(--muted); font-size: 13px; line-height: 1.6; padding: 40px 0 28px; border-top: 1px solid var(--line); }
.footer a { color: var(--ink-2); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.footer-id p:first-child { color: var(--ink); font-weight: 500; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }
.footer-legal { margin-top: 28px; }
.footer-legal p { padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.page-photo .footer { background: #161617; color: var(--on-dark-muted); border-top-color: #161617; }
.page-photo .footer a, .page-photo .footer-id p:first-child { color: var(--on-dark); }
.page-photo .footer-legal p { border-top-color: #333336; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .pi-grid, .split, .equip { grid-template-columns: minmax(0, 1fr); }
  .pi-photo { max-width: 520px; }
  .equip.flip .equip-photo { order: 0; }
  .equip-photo { aspect-ratio: 4 / 3; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .theme, .join-row, .join-band-body { grid-template-columns: minmax(0, 1fr); }
  .theme-side { position: static; }
}
@media (max-width: 600px) {
  .subnav-inner { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 12px; padding-bottom: 10px; }
  body { font-size: 16px; }
  .year-group, .press-item, .project { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-top: 22px; }
  .year { position: static; }
  .contact .row, .specs .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .person-name { font-size: 18px; }
  .person-name span { font-size: 14px; }
  .person-role, .person-email { font-size: 13px; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .nav, .skip, .filter, video, .hero-media { display: none !important; }
  .hero, .page-head.dark, .reels { background: none; color: #000; }
  body { font-size: 11pt; }
}
