/* =========================================================
   Macau Musicological Association 澳門音樂學協會
   Calm, warm, paper-toned palette. Minimal motion.
   ========================================================= */

:root {
  --paper:      #f4efe7;
  --paper-tint: #ebe4d8;
  --paper-deep: #e2d9cb;
  --ink:        #2f2a25;
  --ink-soft:   #574e45;
  --muted:      #877c71;
  --line:       #d3c8ba;
  --accent:     #8a6a52;   /* warm umber */
  --accent-2:   #a88d74;   /* faded walnut */

  --serif-en: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --serif-zh: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans:     "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.25, .6, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Language visibility ---------- */
.lang-zh .en,
.lang-en .zh { display: none !important; }

.lang-en body { letter-spacing: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 231, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand-mark { width: 52px; height: auto; opacity: .9; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-zh { font-family: var(--serif-zh); font-size: 17px; font-weight: 500; letter-spacing: .14em; }
.brand-en { font-family: var(--serif-en); font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink-soft);
  letter-spacing: .12em;
  padding: 6px 0;
  position: relative;
  transition: color .3s var(--ease);
}
.lang-en .site-nav a { letter-spacing: .04em; font-family: var(--serif-en); font-size: 17px; }
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; align-items: center; gap: 4px; color: var(--line); font-size: 13px; }
.lang-switch button {
  background: none; border: 0; cursor: pointer;
  padding: 4px 6px;
  font-size: 13px; letter-spacing: .08em;
  color: var(--muted);
  transition: color .3s;
}
.lang-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.lang-switch button:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 8px; right: 8px; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child  { top: 21px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { top: 17px; transform: rotate(-45deg); }

/* ---------- Common type ---------- */
h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: balance; }
.big-quote, .highlight-title, blockquote { text-wrap: balance; }

.eyebrow, .small-heading, .event-type {
  font-size: 12.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 400;
}
.lang-en .eyebrow, .lang-en .small-heading, .lang-en .event-type { letter-spacing: .18em; }

.muted { color: var(--muted); }

.btn {
  display: inline-block;
  padding: 11px 28px;
  border: 1px solid var(--ink);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }

.text-link {
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-2);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color .3s, border-color .3s;
}
.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-text { display: flex; gap: clamp(20px, 3vw, 44px); align-items: flex-start; }

.vertical-title {
  writing-mode: vertical-rl;
  font-family: var(--serif-zh);
  font-size: 15px;
  letter-spacing: .6em;
  color: var(--accent-2);
  margin: 6px 0 0;
  padding-left: clamp(14px, 2vw, 24px);
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.hero h1 { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.h1-zh {
  font-family: var(--serif-zh);
  font-size: clamp(30px, 3.7vw, 52px);
  font-weight: 500;
  letter-spacing: .16em;
  white-space: nowrap;
  line-height: 1.25;
}
.h1-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink-soft);
  line-height: 1.2;
}
.lede { color: var(--ink-soft); font-size: 16.5px; max-width: 30em; margin: 0 0 34px; }
.hero-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero-figure { margin: 0; position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  filter: saturate(.72) sepia(.12) contrast(.96);
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px 36px 18px;
  border: 1px solid var(--line);
  z-index: -1;
}
figcaption {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: .04em;
  line-height: 1.6;
}
.hero-figure figcaption { margin-top: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* sound-wave divider echoing the logo */
.wave-divider {
  height: 46px;
  max-width: var(--container);
  margin: 0 auto;
  opacity: .5;
  background: center / auto 100% repeat-x url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='46' viewBox='0 0 240 46'%3E%3Cg fill='%23a88d74'%3E%3Crect x='2' y='21' width='1.4' height='4'/%3E%3Crect x='10' y='18' width='1.4' height='10'/%3E%3Crect x='18' y='14' width='1.4' height='18'/%3E%3Crect x='26' y='19' width='1.4' height='8'/%3E%3Crect x='34' y='9' width='1.4' height='28'/%3E%3Crect x='42' y='16' width='1.4' height='14'/%3E%3Crect x='50' y='4' width='1.4' height='38'/%3E%3Crect x='58' y='12' width='1.4' height='22'/%3E%3Crect x='66' y='18' width='1.4' height='10'/%3E%3Crect x='74' y='8' width='1.4' height='30'/%3E%3Crect x='82' y='20' width='1.4' height='6'/%3E%3Crect x='90' y='15' width='1.4' height='16'/%3E%3Crect x='98' y='21' width='1.4' height='4'/%3E%3Crect x='106' y='17' width='1.4' height='12'/%3E%3Crect x='114' y='11' width='1.4' height='24'/%3E%3Crect x='122' y='19' width='1.4' height='8'/%3E%3Crect x='130' y='6' width='1.4' height='34'/%3E%3Crect x='138' y='14' width='1.4' height='18'/%3E%3Crect x='146' y='20' width='1.4' height='6'/%3E%3Crect x='154' y='10' width='1.4' height='26'/%3E%3Crect x='162' y='17' width='1.4' height='12'/%3E%3Crect x='170' y='13' width='1.4' height='20'/%3E%3Crect x='178' y='21' width='1.4' height='4'/%3E%3Crect x='186' y='16' width='1.4' height='14'/%3E%3Crect x='194' y='7' width='1.4' height='32'/%3E%3Crect x='202' y='18' width='1.4' height='10'/%3E%3Crect x='210' y='12' width='1.4' height='22'/%3E%3Crect x='218' y='20' width='1.4' height='6'/%3E%3Crect x='226' y='15' width='1.4' height='16'/%3E%3Crect x='234' y='19' width='1.4' height='8'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* ---------- Highlight strip ---------- */
.highlight { padding: clamp(36px, 5vw, 56px) 0; }
.highlight-inner {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: end;
}
.highlight .small-heading { margin-bottom: 6px; }
.highlight-title { font-family: var(--serif-zh); font-size: clamp(19px, 2vw, 23px); margin: 0 0 4px; line-height: 1.5; }
.lang-en .highlight-title { font-family: var(--serif-en); font-size: clamp(22px, 2.3vw, 27px); }
.highlight .muted { margin: 0; font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--paper-tint); }

.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: 24px;
  align-items: baseline;
  margin-bottom: clamp(40px, 6vw, 72px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-index {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 18px;
  color: var(--accent-2);
  margin: 0;
}
.section-head h2 {
  font-family: var(--serif-zh);
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: .16em;
}
.lang-en .section-head h2 { font-family: var(--serif-en); letter-spacing: .01em; font-size: clamp(34px, 4vw, 48px); }
.section-sub {
  grid-column: 2;
  margin: 2px 0 0;
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--muted);
  font-size: 17px;
}
.lang-en .section-sub { font-family: var(--serif-zh); font-style: normal; letter-spacing: .2em; font-size: 14px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  margin-left: 104px;
}
.about-text p { margin: 0 0 1.2em; color: var(--ink-soft); }
.about-text .big-quote {
  font-family: var(--serif-zh);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.4em;
}
.lang-en .about-text .big-quote { font-family: var(--serif-en); font-style: italic; font-size: clamp(24px, 2.6vw, 31px); line-height: 1.4; }
.about-figure { margin: 0; }
.about-figure img { filter: saturate(.75) sepia(.1); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.pillars {
  list-style: none;
  padding: 0;
  margin: clamp(56px, 8vw, 96px) 0 0 104px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.pillars li {
  padding: 28px 24px 8px 0;
  border-right: 1px solid var(--line);
  margin-right: 24px;
}
.pillars li:last-child { border-right: 0; margin-right: 0; }
.pillar-zh { display: block; font-family: var(--serif-zh); font-size: 22px; letter-spacing: .2em; }
.pillar-en { display: block; font-family: var(--serif-en); font-style: italic; color: var(--muted); font-size: 16px; margin-bottom: 10px; }
.pillars p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; }

/* ---------- Events ---------- */
.upcoming {
  margin: 0 0 clamp(56px, 7vw, 80px) 104px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  max-width: 720px;
}
.upcoming p:last-child { margin: 0; color: var(--ink-soft); }
.upcoming .text-link { margin-left: 6px; }

.list-label { margin-left: 104px; }

.event {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.event:last-child { border-bottom: 1px solid var(--line); }

.event-date { display: flex; flex-direction: column; line-height: 1; padding-top: 4px; }
.event-date .d { font-family: var(--serif-en); font-size: 44px; font-weight: 400; color: var(--ink); }
.event-date .m { font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-top: 8px; white-space: nowrap; }

.event-body { margin-left: 24px; max-width: 820px; }
.event h3 {
  font-family: var(--serif-zh);
  font-size: clamp(21px, 2.4vw, 28px);
  letter-spacing: .06em;
  line-height: 1.45;
  margin-bottom: 18px;
}
.lang-en .event h3 { font-family: var(--serif-en); letter-spacing: 0; font-size: clamp(25px, 2.8vw, 33px); line-height: 1.2; }
.event p { color: var(--ink-soft); margin: 0 0 1.1em; }
.event blockquote {
  margin: 0 0 1.3em;
  padding-left: 18px;
  border-left: 2px solid var(--accent-2);
  font-family: var(--serif-zh);
  color: var(--ink);
  font-size: 15.5px;
}
.lang-en .event blockquote { font-family: var(--serif-en); font-style: italic; font-size: 19px; line-height: 1.5; }

.event-meta { margin: 20px 0 26px; display: grid; gap: 8px; font-size: 14.5px; }
.event-meta div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.event-meta dt { color: var(--muted); letter-spacing: .1em; font-size: 13px; padding-top: 1px; }
.event-meta dd { margin: 0; color: var(--ink-soft); }

.gallery {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1fr 1fr;
  gap: 10px;
}
.thumb {
  padding: 0; border: 0; background: var(--paper-deep);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.thumb.poster { aspect-ratio: 3 / 4; grid-row: span 1; }
.gallery .thumb:not(.poster) { aspect-ratio: auto; }
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.7) sepia(.1);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.thumb:hover img, .thumb:focus-visible img { filter: none; transform: scale(1.02); }

/* ---------- Research ---------- */
.research-intro { margin-left: 104px; max-width: 720px; }
.research-intro p { font-size: 17px; color: var(--ink-soft); margin: 0 0 clamp(40px, 5vw, 56px); }

.groups {
  list-style: none;
  padding: 0;
  margin: 0 0 0 104px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.group {
  padding: 34px 32px 34px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 8px;
}
.group:nth-child(odd) { border-right: 1px solid var(--line); }
.group:nth-child(even) { padding-left: 32px; }
.group-no { font-family: var(--serif-en); font-style: italic; color: var(--accent-2); font-size: 18px; grid-row: span 2; }
.group h3 { font-family: var(--serif-zh); font-size: 21px; letter-spacing: .12em; }
.lang-en .group h3 { font-family: var(--serif-en); letter-spacing: 0; font-size: 25px; }
.group-alt { margin: 4px 0 0; color: var(--muted); font-family: var(--serif-en); font-style: italic; font-size: 16px; }
.lang-en .group-alt { font-family: var(--serif-zh); font-style: normal; letter-spacing: .12em; font-size: 14px; }

.research-note {
  margin: clamp(48px, 6vw, 72px) 0 0 104px;
  display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap;
  max-width: 820px;
}
.research-note p { margin: 0; color: var(--ink-soft); flex: 1 1 340px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  margin-left: 104px;
}
.contact-info > p { color: var(--ink-soft); margin: 0 0 32px; font-size: 16.5px; }
.contact-list { margin: 0; display: grid; gap: 18px; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; border-top: 1px solid var(--line); padding-top: 14px; }
.contact-list div[hidden] { display: none; }
.contact-list dt { color: var(--muted); font-size: 13px; letter-spacing: .12em; padding-top: 2px; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.contact-list a:hover { border-color: var(--accent); }

.contact-form { display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 15.5px;
  letter-spacing: .02em;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
  width: 100%;
}
.contact-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%23877c71'/%3E%3C/svg%3E") right 4px center no-repeat; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.form-status { margin: 0; font-size: 14px; color: var(--accent); min-height: 1.5em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-logo { width: 170px; opacity: .85; }
.footer-meta { text-align: right; font-size: 13px; color: var(--muted); }
.footer-meta p { margin: 6px 0 0; }
.footer-meta a { text-decoration: none; color: var(--ink-soft); }
.footer-meta a:hover { color: var(--accent); }

/* ---------- Year labels & gallery variants ---------- */
.year-label {
  font-family: var(--serif-en);
  font-size: 15px;
  letter-spacing: .3em;
  color: var(--accent-2);
  margin: clamp(40px, 5vw, 60px) 0 0;
  padding-bottom: 10px;
}
.year-label + .event { border-top-color: var(--accent-2); }
.list-label + .year-label { margin-top: 8px; }

.gallery-2 { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-2 .thumb, .gallery-3 .thumb { aspect-ratio: 4 / 3 !important; }

/* ---------- Research: presentations & interviews ---------- */
.sub-heading {
  margin: clamp(64px, 8vw, 96px) 0 28px 104px;
  font-family: var(--serif-zh);
  font-size: 20px;
  letter-spacing: .2em;
  font-weight: 500;
  display: flex; align-items: center; gap: 18px;
}
.sub-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lang-en .sub-heading { font-family: var(--serif-en); letter-spacing: .02em; font-size: 24px; }

.talks { margin-left: 104px; display: grid; gap: 0; }
.talk {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.talk:first-child { padding-top: 0; }
.talk-text { grid-template-columns: 1fr; padding-left: 252px; }
.talk-figure { margin: 0; }
.talk-figure .thumb { width: 100%; aspect-ratio: 4 / 3; }
.talk-meta { margin: 0 0 4px; font-size: 12.5px; letter-spacing: .14em; color: var(--accent); }
.talk h3 { margin: 0 0 10px; font-family: var(--serif-zh); font-weight: 500; font-size: 19px; letter-spacing: .06em; }
.lang-en .talk h3 { font-family: var(--serif-en); font-size: 23px; letter-spacing: 0; }
.talk p { margin: 0 0 .8em; color: var(--ink-soft); font-size: 15px; }
.talk-list { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; }
.talk-list li { margin-bottom: 6px; }
.talk-list li::marker { color: var(--accent-2); }

.interviews { list-style: none; margin: 0 0 0 104px; padding: 0; border-top: 1px solid var(--line); }
.interviews a {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.interviews a:hover { background: var(--paper-tint); padding-left: 10px; padding-right: 10px; }
.iv-date { font-family: var(--serif-en); color: var(--muted); font-size: 15px; }
.iv-title { font-family: var(--serif-zh); font-size: 16.5px; }
.lang-en .iv-title { font-family: var(--serif-en); font-size: 19px; }
.iv-who { font-size: 13px; color: var(--accent); white-space: nowrap; }

@media (max-width: 1080px) {
  .sub-heading, .talks, .interviews { margin-left: 0; }
}
@media (max-width: 700px) {
  .talk { grid-template-columns: 1fr; gap: 16px; }
  .talk-text { padding-left: 0; }
  .talk-figure { max-width: 360px; }
  .interviews a { grid-template-columns: 1fr; gap: 2px; }
  .gallery-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(40, 35, 30, .9);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 64px;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.lightbox button {
  position: absolute;
  background: none; border: 0; cursor: pointer;
  color: #efe8dd; font-size: 34px; line-height: 1;
  padding: 10px 14px; opacity: .7; transition: opacity .3s;
  font-family: var(--serif-en);
}
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 12px; right: 16px; }
.lightbox-nav.prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Gentle reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .thumb img { transition: none; }
}

/* ---------- Focus ---------- */
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .about-grid, .pillars, .upcoming, .list-label, .research-intro, .groups, .research-note, .contact-grid { margin-left: 0; }
  .section-head, .highlight-inner { grid-template-columns: 56px 1fr; }
  .highlight-inner { grid-template-columns: 56px 1fr auto; }
  .event { grid-template-columns: 56px 1fr; }
  .event-body { margin-left: 8px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    visibility: hidden; opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }

  .hero { grid-template-columns: 1fr; }
  .hero-figure { margin-right: 18px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars li:nth-child(2) { border-right: 0; margin-right: 0; }
  .pillars li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .thumb.poster { grid-row: span 2; aspect-ratio: auto; }
  .gallery .thumb:not(.poster) { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .brand-mark { width: 40px; }
  .brand-zh { font-size: 15px; letter-spacing: .1em; }
  .brand-en { font-size: 11.5px; }
  .vertical-title { display: none; }
  .highlight-inner { grid-template-columns: 1fr; gap: 12px; }
  .highlight .section-index { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .section-index { margin-bottom: 4px; }
  .section-sub { grid-column: 1; }
  .event { grid-template-columns: 1fr; gap: 14px; }
  .event-body { margin-left: 0; }
  .event-date { flex-direction: row; align-items: baseline; gap: 12px; }
  .event-date .d { font-size: 34px; }
  .event-meta div { grid-template-columns: 80px 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li { border-right: 0 !important; margin-right: 0 !important; border-top: 1px solid var(--line); }
  .pillars li:first-child { border-top: 0; }
  .groups { grid-template-columns: 1fr; }
  .group:nth-child(odd) { border-right: 0; }
  .group:nth-child(even) { padding-left: 0; }
  .upcoming { padding: 20px; }
  .contact-list div { grid-template-columns: 84px 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .lightbox { padding: 48px 12px; }
}

/* =========================================================
   Multi-page additions
   ========================================================= */

/* ---------- Dropdown navigation ---------- */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group .nav-parent { margin-right: 12px; }
.nav-parent::before {
  content: "";
  position: absolute; right: -12px; top: 50%;
  width: 5px; height: 5px;
  border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.nav-sub {
  position: absolute;
  top: 100%; left: -18px;
  min-width: 200px;
  padding: 10px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(60, 45, 30, .06);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transform: translateY(4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.site-nav .nav-sub a { padding: 8px 18px; font-size: 14px; white-space: nowrap; }
.lang-en .site-nav .nav-sub a { font-size: 16px; }
.site-nav .nav-sub a::after { display: none; }
.site-nav .nav-sub a:hover { background: var(--paper-tint); }
.site-nav .nav-sub a[aria-current="page"] { color: var(--accent); }

/* ---------- Inner page header ---------- */
.page-head { padding: clamp(56px, 8vw, 104px) 0 0; }
.crumb { margin: 0 0 18px; font-size: 12.5px; letter-spacing: .28em; color: var(--accent); }
.lang-en .crumb { letter-spacing: .16em; text-transform: uppercase; }
.page-head h1 {
  font-family: var(--serif-zh);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: .14em;
  line-height: 1.35;
}
.lang-en .page-head h1 { font-family: var(--serif-en); letter-spacing: .01em; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.15; }
.page-sub { margin: 6px 0 0; font-family: var(--serif-en); font-style: italic; color: var(--muted); font-size: 18px; }
.lang-en .page-sub { font-family: var(--serif-zh); font-style: normal; letter-spacing: .2em; font-size: 14px; }
.page-lead { margin: 22px 0 0; color: var(--ink-soft); max-width: 36em; }

.subnav {
  display: flex; flex-wrap: wrap; gap: 6px 32px;
  margin-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.subnav a {
  text-decoration: none;
  font-size: 14.5px; letter-spacing: .1em;
  color: var(--muted);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.lang-en .subnav a { font-family: var(--serif-en); font-size: 17px; letter-spacing: .02em; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.section-first { padding-top: clamp(40px, 6vw, 72px); }
.page-about .section-first, .page-contact .section-first { border-top: 0; }

.section-first .about-grid,
.section-first .pillars,
.section-first .contact-grid,
.section-first .sub-heading,
.section-first .talks,
.section-first .interviews,
.section-first .groups,
.section-first .research-note { margin-left: 0; }
.section-first .sub-heading:first-child { margin-top: 0; }
.event-list > .year-label:first-child { margin-top: 0; }

/* ---------- Events ---------- */
.series-intro { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.series-intro p { margin: 0; font-size: 17px; color: var(--ink-soft); line-height: 1.95; }
.lang-en .series-intro p { font-family: var(--serif-en); font-size: 21px; line-height: 1.6; color: var(--ink); }

.series-tag {
  margin-left: 14px; padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted); text-decoration: none;
  transition: color .3s;
}
.series-tag:hover { color: var(--accent); }

.empty-note { max-width: 560px; padding: clamp(24px, 4vw, 48px) 0; }
.empty-note p { margin: 0 0 10px; }
.empty-note > p:first-of-type { font-family: var(--serif-zh); font-size: 22px; letter-spacing: .1em; margin-bottom: 14px; }
.lang-en .empty-note > p:first-of-type { font-family: var(--serif-en); font-size: 28px; letter-spacing: 0; }
.empty-note p:last-child { margin-top: 26px; }
.empty-mark {
  display: block; width: 120px; height: 34px; margin-bottom: 26px; opacity: .55;
  background: left center / auto 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='34'%3E%3Cg fill='%23a88d74'%3E%3Crect x='0' y='15' width='1.4' height='4'/%3E%3Crect x='8' y='12' width='1.4' height='10'/%3E%3Crect x='16' y='6' width='1.4' height='22'/%3E%3Crect x='24' y='11' width='1.4' height='12'/%3E%3Crect x='32' y='2' width='1.4' height='30'/%3E%3Crect x='40' y='9' width='1.4' height='16'/%3E%3Crect x='48' y='13' width='1.4' height='8'/%3E%3Crect x='56' y='7' width='1.4' height='20'/%3E%3Crect x='64' y='14' width='1.4' height='6'/%3E%3Crect x='72' y='10' width='1.4' height='14'/%3E%3Crect x='80' y='15' width='1.4' height='4'/%3E%3Crect x='88' y='16' width='1.4' height='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Research ---------- */
.centre { max-width: 680px; padding: clamp(8px, 2vw, 24px) 0 clamp(40px, 6vw, 80px); }
.status-tag {
  display: inline-block; margin: 0 0 22px;
  font-size: 12.5px; letter-spacing: .24em; color: var(--accent);
  border: 1px solid var(--accent-2); padding: 4px 12px;
}
.centre-lead { font-family: var(--serif-zh); font-size: clamp(19px, 2vw, 23px); line-height: 1.9; margin: 0 0 18px; }
.lang-en .centre-lead { font-family: var(--serif-en); font-size: clamp(23px, 2.4vw, 28px); line-height: 1.5; }

.groups-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.groups-intro > p { font-size: 17px; color: var(--ink-soft); margin: 0; }

/* =========================================================
   Home
   ========================================================= */
.home {
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h) - 150px);
  padding: clamp(40px, 6vw, 80px) var(--gutter) 20px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.home-text { display: flex; gap: clamp(24px, 4vw, 56px); align-items: flex-start; }
.home-vertical {
  writing-mode: vertical-rl;
  font-family: var(--serif-zh);
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: .32em;
  line-height: 1;
  margin: 0;
  padding-right: clamp(18px, 2.4vw, 30px);
  border-right: 1px solid var(--line);
}
.home-copy { padding-top: 8px; }
.home-copy .eyebrow {
  font-family: var(--serif-en); font-style: italic;
  letter-spacing: .04em; text-transform: none;
  font-size: 17px; color: var(--muted);
  margin-bottom: 28px;
}
.home-line {
  font-family: var(--serif-zh);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: .12em;
  line-height: 1.7;
  margin: 0 0 28px;
}
.lang-en .home-line { font-family: var(--serif-en); font-style: italic; font-size: clamp(30px, 3.2vw, 42px); letter-spacing: 0; line-height: 1.25; }
.home-desc { color: var(--ink-soft); max-width: 25em; margin: 0; font-size: 15.5px; }

.home-figure { margin: 0; position: relative; }
.home-figure::before {
  content: "";
  position: absolute;
  inset: -20px 20px 60px -20px;
  border: 1px solid var(--line);
  z-index: -1;
}
.home-photo { display: block; overflow: hidden; }
.home-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.6) sepia(.14) contrast(.95);
  transition: filter 1.2s var(--ease), transform 1.6s var(--ease);
}
.home-photo:hover img { filter: saturate(.85) sepia(.06); transform: scale(1.01); }
.home-figure figcaption {
  margin-top: 18px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px;
}
.home-cap-label { font-size: 11.5px; letter-spacing: .26em; color: var(--accent); text-transform: uppercase; }
.home-figure figcaption a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .3s, color .3s; }
.home-figure figcaption a:hover { color: var(--ink); border-color: var(--accent); }

.home-wave {
  max-width: 1120px;
  height: 64px;
  margin: 16px auto 56px;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.home-wave span {
  width: 1.5px;
  background: var(--accent-2);
  opacity: .55;
  border-radius: 1px;
  transform-origin: center;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scaleY(.55); }
  50%      { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .home-wave span { animation: none; transform: scaleY(.8); }
}

/* ---------- Responsive (multi-page) ---------- */
@media (max-width: 900px) {
  .site-nav .nav-group { flex-direction: column; align-items: stretch; }
  .nav-parent::before { display: none; }
  .nav-group .nav-parent { margin-right: 0; }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: none;
    padding: 0 0 6px 16px; min-width: 0;
  }
  .site-nav .nav-sub a { padding: 10px 0; font-size: 14.5px; border-bottom: 0; color: var(--muted); }
  .site-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }

  .home { grid-template-columns: 1fr; min-height: 0; }
  .home-figure { margin: 10px 20px 0 20px; }
  .groups-intro { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .home-vertical { font-size: 26px; letter-spacing: .26em; }
  .home-copy .eyebrow { margin-bottom: 18px; }
  .home-wave { margin-bottom: 32px; }
  .series-tag { display: block; margin: 4px 0 0; padding-left: 0; border-left: 0; }
}
