/* ==========================================================================
   CW Chu College 20th Anniversary — "Twenty Years, One Table"
   Design prototype stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --burgundy: #8F1D30;
  --burgundy-deep: #5C1020;
  --burgundy-ink: #3A0A14;
  --gold: #D9C58A;
  --gold-deep: #B8984A;
  --gold-pale: #EFE6C8;
  --brown: #775B3E;
  --wood: #4A2E1F;
  --ink: #231815;
  --grey: #727171;
  --grey-light: #B5B5B6;
  --cream: #F7F6F0;
  --cream-deep: #ECE5D2;
  --paper: #FFFDF8;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-zh: 'Noto Serif TC', 'PMingLiU', serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --rail-w: 96px;

  /* Header metrics — taken from cwchu.cuhk.edu.hk so the motto and logos render at the same size as the main site:
     gold bar 73px (motto 200 x 49, 12px padding); logo row 75px with 42px logos (> 1550px wide),
     85px with 50px logos (<= 1550px), compact crests 50 / 35 / 30px on phones. */
  --topbar-h: 73px;
  --masthead-h: 75px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 2px 10px rgba(35,24,21,.08);
  --shadow-md: 0 12px 36px rgba(35,24,21,.14);
  --shadow-lg: 0 30px 70px rgba(35,24,21,.22);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; } /* smooth anchor scrolling is done in JS: CSS scroll-behavior breaks ScrollTrigger measurements */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p,figure { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; flex: none; }
.center { text-align: center; }
:lang(zh-Hant) { font-family: var(--font-zh); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--burgundy); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Typography ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--burgundy-deep);
}
.h-display--light { color: var(--paper); }
.h-serif { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; }
.h-serif-lg { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; color: var(--burgundy-deep); }
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--burgundy);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: #3f3532; }
.motto { font-family: var(--font-display); font-size: 1.35rem; color: var(--brown); margin-top: 28px; display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.motto em { font-style: italic; font-weight: 500; }
.motto span { font-family: var(--font-zh); font-size: 1.05rem; letter-spacing: .14em; }

.chapter__num {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--burgundy);
  margin-bottom: 16px;
}
.chapter__num::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.chapter__num--light { color: var(--gold); }

.ph-tag {
  display: inline-block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--gold); border: 1px dashed currentColor; padding: 3px 8px; border-radius: 2px; opacity: .85;
}
.ph-tag--dark { color: var(--brown); }
.ph-inline { font-size: .8em; color: var(--grey); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  padding: 14px 24px; border-radius: 2px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--primary { background: var(--burgundy); color: #fff; }
.btn--primary:hover { background: var(--burgundy-deep); }
.btn--gold { background: var(--gold); color: var(--burgundy-ink); }
.btn--gold:hover { background: #e4d39f; box-shadow: var(--shadow-md); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--outline { border-color: var(--burgundy); color: var(--burgundy); }
.btn--outline:hover { background: var(--burgundy); color: #fff; }
.btn--text { color: var(--burgundy); padding-inline: 6px; }
.btn--sm { padding: 10px 16px; font-size: .78rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .86rem; color: var(--burgundy);
  border-bottom: 1px solid transparent; transition: border-color .2s, gap .2s;
}
.link-arrow:hover { border-color: currentColor; gap: 12px; }
.link-arrow--light { color: var(--gold); }

/* ---------- Header ---------- */
/* The gold motto bar is full main-site height at the top of the page and slides away once the page is scrolled,
   leaving only the logo + menu row fixed. (Animated with `top`, not `transform`, so the fixed mobile menu inside
   the header keeps the viewport as its containing block.) */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: top .4s var(--ease); }
.is-scrolled .site-header { top: calc(var(--topbar-h) * -1); }
.topbar { background: var(--gold); color: var(--burgundy-ink); font-size: .86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); }
.topbar__motto img { width: 200px; height: auto; }
.topbar__right { display: flex; align-items: center; gap: 26px; }
.topbar__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.topbar__link:hover { text-decoration: underline; }
.lang { display: flex; gap: 4px; }
.lang__btn { padding: 3px 9px; border-radius: 2px; font-size: 1rem; font-weight: 500; opacity: .75; }
.lang__btn.is-active { background: var(--burgundy); color: #fff; opacity: 1; }
.lang__btn:not(.is-active):hover { opacity: 1; background: rgba(0,0,0,.08); }

/* Over the hero the logo + menu row sits on a semi-transparent cream gradient that fades out below the row,
   so the full-colour logos and dark menu text stay legible on any slide. Once scrolled, the row turns solid cream. */
.masthead { position: relative; background: rgba(247,246,240,0); transition: background .4s, box-shadow .4s; }
.masthead::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -44px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(247,246,240,.9) 0%, rgba(247,246,240,.78) 55%, rgba(247,246,240,.45) 76%, rgba(247,246,240,0) 100%);
  transition: opacity .4s; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; height: var(--masthead-h); gap: 24px; }
.masthead__brand { display: flex; align-items: center; gap: 14px; flex: none; }
.masthead__brand picture { display: contents; }
.masthead__brand source { display: none; }
.masthead__crest { height: 41px; width: auto; max-width: none; } /* main site: 42px box incl. 1px top padding */
.masthead__divider { width: 1px; height: 30px; background: rgba(35,24,21,.15); }
.masthead__mark { color: var(--burgundy); }
.logo20 { width: 44px; height: 44px; color: currentColor; }
.is-scrolled .masthead { background: rgba(247,246,240,.96); box-shadow: 0 1px 0 rgba(35,24,21,.08), 0 10px 30px rgba(35,24,21,.08); backdrop-filter: blur(10px); }
.is-scrolled .masthead::before { opacity: 0; }

.mainnav { display: flex; align-items: center; gap: 28px; }
.mainnav ul { display: flex; gap: 26px; }
.mainnav a { white-space: nowrap; }
.mainnav a:not(.btn) { font-size: .86rem; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; transition: color .4s; }
.mainnav a small { font-family: var(--font-display); font-size: .72rem; font-weight: 600; margin-right: 4px; opacity: .8; }
.mainnav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .3s var(--ease); }
.mainnav a:not(.btn):hover::after, .mainnav a.is-active::after { right: 0; }
.mainnav a:not(.btn):hover, .mainnav a.is-active { color: var(--burgundy); }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Chapter rail ---------- */
.rail { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 90; padding-left: 18px; }
.rail ol { display: flex; flex-direction: column; gap: 14px; }
.rail a { display: flex; align-items: center; gap: 10px; color: var(--grey); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; transition: color .3s; }
.rail__num { font-family: var(--font-display); font-weight: 600; font-size: .85rem; width: 22px; text-align: center; position: relative; }
.rail__num::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 1px; height: 6px; background: currentColor; opacity: .35; transform: translateX(-50%); }
.rail li:last-child .rail__num::after { display: none; }
.rail__label { opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; white-space: nowrap; padding: 3px 8px; background: var(--paper); box-shadow: var(--shadow-sm); border-radius: 2px; }
.rail ol:hover .rail__label { opacity: 1; transform: none; }
.rail a.is-active { color: var(--burgundy); }
.rail a.is-active .rail__num { transform: scale(1.25); }
.rail__num { transition: transform .3s var(--ease); }
.rail.on-dark a { color: rgba(255,255,255,.55); }
.rail.on-dark a.is-active { color: var(--gold); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--burgundy-ink); }
.hero__swiper { position: absolute; inset: 0; }
.hero__slide { position: relative; overflow: hidden; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.swiper-slide-active img { transform: scale(1); }
.hero__promo {
  position: absolute; right: clamp(20px, 5vw, 80px); bottom: 250px; z-index: 3;
  display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 14px 20px;
  border-left: 2px solid var(--gold); background: rgba(35,24,21,.35); backdrop-filter: blur(8px);
  font-size: .8rem; opacity: 0; transform: translateX(16px); transition: opacity .8s .4s, transform .8s .4s var(--ease);
}
.swiper-slide-active .hero__promo { opacity: 1; transform: none; }
.hero__promo-k { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hero__promo strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(35,24,21,.55) 0%, rgba(35,24,21,0) 30%),
    linear-gradient(90deg, rgba(58,10,20,.78) 0%, rgba(58,10,20,.35) 55%, rgba(58,10,20,.15) 100%),
    linear-gradient(0deg, rgba(35,24,21,.85) 0%, rgba(35,24,21,.2) 45%, rgba(35,24,21,0) 70%);
}
.hero__grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>"); }
.hero__content { position: relative; z-index: 2; padding: calc(var(--topbar-h) + var(--masthead-h) + 26px) 0 140px; max-width: 760px; margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.hero__mark { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--gold); }
.logo20--hero { width: 72px; height: 72px; }
.hero__title { font-family: var(--font-display); font-weight: 500; line-height: .98; margin: 6px 0 22px; }
.hero__title-en { display: block; font-size: clamp(3rem, min(7.4vw, 10.6vh), 6rem); letter-spacing: -.02em; }
.hero__title-zh { display: block; font-family: var(--font-zh); font-weight: 400; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: .3em; color: var(--gold); margin-top: 18px; }
.hero__lede { font-size: clamp(1rem, 1.3vw, 1.2rem); max-width: 560px; color: rgba(255,255,255,.88); margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__welcome {
  position: absolute; z-index: 3; right: clamp(20px, 5vw, 80px); bottom: 0;
  width: min(380px, calc(100% - 40px)); display: flex; gap: 16px; padding: 22px 22px 26px;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold);
}
.hero__welcome-photo { width: 64px; height: 84px; object-fit: cover; object-position: top; flex: none; }
.hero__welcome-k { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; margin-bottom: 6px; }
.hero__welcome-q { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3; margin-bottom: 10px; color: var(--burgundy-ink); }
.hero__nav { position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: 84px; z-index: 3; }
.hero__dots { position: static !important; display: flex; gap: 10px; }
.hero__dots .swiper-pagination-bullet { width: 36px; height: 2px; border-radius: 0; background: rgba(255,255,255,.4); opacity: 1; margin: 0 !important; transition: background .3s; }
.hero__dots .swiper-pagination-bullet-active { background: var(--gold); }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; z-index: 3; width: 1px; height: 56px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--gold); animation: scrollhint 2.2s var(--ease) infinite; }
@keyframes scrollhint { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ==========================================================================
   THEME + NUMBERS
   ========================================================================== */
.theme { position: relative; background: var(--paper); overflow: hidden; }
.theme::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/texture-stripes.png") center/1400px no-repeat; opacity: .5; pointer-events: none; }
.theme__grid { position: relative; display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; padding: clamp(80px, 10vw, 140px) 0; }
.theme__logo-card { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--burgundy); color: var(--gold); box-shadow: var(--shadow-lg); }
.theme__logo-card::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(217,197,138,.35); pointer-events: none; }
.logo20--xl { width: 62%; height: 62%; }
.theme__logo-card .ph-tag { position: absolute; top: 26px; color: var(--gold); }
.seals { display: flex; gap: 18px; justify-content: center; margin-top: -34px; position: relative; z-index: 1; }
.seals img { width: 76px; height: 76px; object-fit: cover; border: 4px solid var(--paper); box-shadow: var(--shadow-md); transform: rotate(-6deg); }
.seals img + img { transform: rotate(5deg); margin-top: 10px; }
.theme__text p + p { margin-top: 18px; }
.theme__text .h-display { margin-bottom: 26px; }

.numbers { position: relative; background: var(--burgundy); color: #fff; padding: 56px 0 40px; }
.numbers::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent 60%); }
.numbers__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.numbers__list li { border-left: 1px solid rgba(217,197,138,.35); padding-left: 20px; }
.numbers__list strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 3.6vw, 3.6rem); line-height: 1; color: var(--gold); letter-spacing: -.02em; }
.numbers__list span { display: block; font-size: .8rem; line-height: 1.4; margin-top: 10px; color: rgba(255,255,255,.82); }
.numbers__note { font-size: .7rem; color: rgba(255,255,255,.55); margin-top: 28px; }

/* ==========================================================================
   CHAPTERS — shared
   ========================================================================== */
.chapter { padding: clamp(80px, 10vw, 140px) 0; }
.chapter__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.chapter__head .h-display { margin-bottom: 20px; }
.chapter__head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.chapter__head--split > div:first-child { max-width: 640px; }

/* ==========================================================================
   CHAPTER I — TOGETHER
   ========================================================================== */
.chapter--together { background: var(--cream); }
.letter-card { display: grid; grid-template-columns: 360px 1fr; background: var(--paper); box-shadow: var(--shadow-md); margin-bottom: clamp(60px, 8vw, 110px); position: relative; }
.letter-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--burgundy); }
.letter-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; min-height: 420px; }
.letter-card__body { padding: clamp(28px, 4vw, 56px); }
.letter-card__body .h-serif { color: var(--burgundy-deep); margin-bottom: 20px; font-style: italic; }
.letter-card__body p + p { margin-top: 16px; }
.letter-card__sign { display: flex; flex-direction: column; gap: 2px; margin-top: 26px !important; font-size: .82rem; color: var(--grey); }
.sig { font-family: var(--font-display); font-style: italic; font-size: 1.7rem; color: var(--burgundy); line-height: 1; }
.letter-card__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; align-items: center; }

.voices__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border: 1px solid rgba(35,24,21,.2); border-radius: 999px; font-size: .8rem; font-weight: 500; transition: all .2s; background: var(--paper); }
.chip:hover { border-color: var(--burgundy); color: var(--burgundy); }
.chip.is-active { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }

.voice-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; grid-auto-flow: dense; gap: 18px; margin-bottom: 40px; }
.voice--tall { grid-row: span 2; }
.voice--wide { grid-column: span 2; }
.voice--wide .voice__quote { max-height: 120px; opacity: 1; margin-top: 6px; font-family: var(--font-display); font-size: 1.1rem; max-width: 520px; }
.voice.is-hidden { display: none; }
.voice__card { position: relative; display: block; height: 100%; overflow: hidden; background: var(--burgundy-ink); color: #fff; box-shadow: var(--shadow-sm); }
.voice__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: saturate(.85); }
.voice__card:hover img { transform: scale(1.06); filter: saturate(1); }
.voice__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35,24,21,.92) 0%, rgba(35,24,21,.45) 45%, rgba(35,24,21,0) 75%); }
.voice__play { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); font-size: 1.1rem; transition: background .3s, transform .3s; }
.voice__card:hover .voice__play { background: var(--gold); color: var(--burgundy-ink); transform: scale(1.08); }
.voice__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.voice__role { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.voice__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.voice__quote { font-size: .84rem; line-height: 1.45; color: rgba(255,255,255,.88); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.voice__card:hover .voice__quote, .voice__card:focus-visible .voice__quote { max-height: 120px; opacity: 1; margin-top: 6px; }
.voice--tall .voice__quote { max-height: 140px; opacity: 1; margin-top: 8px; font-family: var(--font-display); font-size: 1.1rem; }

/* ==========================================================================
   CHAPTER II — HIGHLIGHTS
   ========================================================================== */
.chapter--highlights { background: var(--paper); }
.countdown { background: var(--burgundy-ink); color: #fff; padding: 22px 26px; min-width: 340px; border-top: 3px solid var(--gold); }
.countdown__k { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.countdown__nums { display: flex; gap: 22px; margin-bottom: 12px; }
.countdown__nums div { display: flex; flex-direction: column; }
.countdown__nums strong { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__nums span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px; }
.countdown .link-arrow { color: var(--gold); }

.events { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: repeat(3, 230px); gap: 18px; margin-bottom: 44px; }
.event { position: relative; display: block; overflow: hidden; background: var(--burgundy-ink); color: #fff; }
.event--lg { grid-row: span 3; }
.event img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.event:hover img { transform: scale(1.05); }
.event::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35,24,21,.92) 0%, rgba(35,24,21,.35) 50%, rgba(35,24,21,.05) 100%); }
.event__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.event--lg .event__body { padding: 40px; max-width: 560px; }
.event h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.1; }
.event:not(.event--lg) .event__body { padding: 20px; gap: 6px; }
.event--lg h3 { font-size: clamp(2rem, 3vw, 2.8rem); }
.event__status { align-self: flex-start; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; background: var(--gold); color: var(--burgundy-ink); padding: 4px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.event__meta { font-size: .78rem; color: rgba(255,255,255,.78); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.event__meta .ico { color: var(--gold); }
.event__desc { font-size: .92rem; color: rgba(255,255,255,.85); }
.event .link-arrow { color: var(--gold); margin-top: 4px; }

/* ==========================================================================
   CHAPTER III — THE LONG TABLE
   ========================================================================== */
.chapter--table { padding: 0; background: var(--burgundy-ink); color: #fff; }
.table-pin { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(143,29,48,.55), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(119,91,62,.35), transparent 50%),
    var(--burgundy-ink); }
.table-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: calc(var(--masthead-h) + 10px) 0 6px; position: relative; z-index: 3; }
.table-head .h-display { margin-bottom: 10px; }
.table-head__hint { font-size: .8rem; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; opacity: .85; }
.table-head__hint .ico { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.eras { display: flex; gap: 6px; flex-wrap: wrap; }
.era { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 1px solid rgba(217,197,138,.25); color: rgba(255,255,255,.7); font-family: var(--font-display); font-size: 1rem; font-weight: 600; transition: all .25s; }
.era small { font-family: var(--font-body); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; opacity: .7; }
.era:hover { border-color: var(--gold); color: #fff; }
.era.is-active { background: var(--gold); border-color: var(--gold); color: var(--burgundy-ink); }

.table-year { position: absolute; right: clamp(16px, 4vw, 60px); top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(8rem, 22vw, 20rem); line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(217,197,138,.22); letter-spacing: -.04em; }
.table-year span { display: block; }

.table-viewport { position: relative; flex: 1; display: flex; align-items: center; z-index: 2; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 40px), transparent); }
.table-track { display: flex; align-items: center; gap: clamp(60px, 7vw, 120px); padding: 0 calc(50vw - 180px) 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)); position: relative; height: clamp(430px, calc(100vh - 214px - var(--masthead-h)), 640px); will-change: transform; }

/* The table itself */
.table-surface { position: absolute; left: -10vw; right: -10vw; top: 50%; height: 64px; transform: translateY(-50%); z-index: 0;
  background: linear-gradient(180deg, #6a3f2b 0%, #4a2e1f 35%, #3b2317 100%);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); }
.table-surface::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(217,197,138,.6), transparent); }
.table-surface::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px; background: linear-gradient(180deg, #2a1810, transparent); }
.table-runner { position: absolute; left: 0; right: 0; top: 50%; height: 14px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, var(--burgundy) 0 60px, #7a1729 60px 120px); opacity: .9; box-shadow: 0 2px 4px rgba(0,0,0,.4); }

/* Seats (milestones) */
.seat { position: relative; z-index: 1; flex: none; width: 320px; height: 100%; display: grid; grid-template-rows: 1fr 64px 1fr; align-items: center; justify-items: center; }
.seat__photo { width: 100%; margin: 0; position: relative; }
.seat__photo img { width: 100%; height: clamp(140px, 21vh, 210px); object-fit: cover; border: 6px solid var(--paper); box-shadow: 0 18px 40px rgba(0,0,0,.45); background: var(--paper); transition: transform .5s var(--ease); }
.seat__photo img.is-portrait { width: auto; aspect-ratio: 3/4; height: clamp(140px, 21vh, 210px); margin-inline: auto; }
.seat:hover .seat__photo img { transform: translateY(-4px) rotate(-1deg); }
.seat__photo figcaption { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); text-align: center; margin-top: 10px; }
.seat__plate { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fffdf6, #e9e1cc 70%, #cfc3a4); box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 0 0 4px rgba(184,152,74,.35), inset 0 0 0 5px rgba(255,255,255,.6); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--burgundy-deep); letter-spacing: -.02em; }
/* Place setting: fork to the left of the plate, knife (edge facing the plate) to the right */
.seat__plate::before, .seat__plate::after { content: ""; position: absolute; top: 50%; width: 14px; height: 58px; transform: translateY(-50%); background: center / contain no-repeat; filter: drop-shadow(0 2px 2px rgba(0,0,0,.55)); }
.seat__plate::before { left: -25px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 56'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='0'><stop offset='0' stop-color='%23fffaea'/><stop offset='.55' stop-color='%23e3d19c'/><stop offset='1' stop-color='%23b8984a'/></linearGradient></defs><path fill='url(%23g)' d='M1 1.2a1.1 1.1 0 0 1 2.2 0V13h1.9V1.2a1.1 1.1 0 0 1 2.2 0V13h1.9V1.2a1.1 1.1 0 0 1 2.2 0V16c0 3.6-2 5.4-4 6.2l.7 31.3a1.9 1.9 0 0 1-3.8 0L5 22.2C3 21.4 1 19.6 1 16z'/></svg>"); }
.seat__plate::after { right: -25px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 56'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='0'><stop offset='0' stop-color='%23fffaea'/><stop offset='.55' stop-color='%23e3d19c'/><stop offset='1' stop-color='%23b8984a'/></linearGradient></defs><path fill='url(%23g)' d='M8.8.6C4.6 4.2 3 12.4 3 21.2v7.4h5.8zM4.6 29.8h4.2v23.6a2.1 2.1 0 0 1-4.2 0z'/></svg>"); }
.seat__plate--key { width: 78px; height: 78px; font-size: 1.25rem; box-shadow: 0 0 0 6px rgba(217,197,138,.25), 0 8px 18px rgba(0,0,0,.5), inset 0 0 0 4px rgba(184,152,74,.45), inset 0 0 0 5px rgba(255,255,255,.6); }
.seat__plate--key::before, .seat__plate--key::after { width: 16px; height: 66px; }
.seat__plate--key::before { left: -32px; } .seat__plate--key::after { right: -32px; }
.seat__text { width: 100%; align-self: start; padding-top: 22px; }
.seat--above .seat__text { align-self: start; }
.seat--above .seat__photo { align-self: end; margin-bottom: 18px; }
.seat--below { grid-template-areas: "text" "plate" "photo"; }
.seat--below .seat__text { grid-area: text; align-self: end; padding-top: 0; padding-bottom: 22px; }
.seat--below .seat__plate { grid-area: plate; }
.seat--below .seat__photo { grid-area: photo; align-self: start; margin-top: 18px; }
.seat--below .compare { grid-area: photo; align-self: start; margin-top: 18px; }
.seat__text h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; color: var(--gold); margin-bottom: 8px; }
.seat__text p { font-size: .86rem; line-height: 1.5; color: rgba(255,255,255,.82); }
.seat__text .link-arrow { margin-top: 10px; }
.seat--last { width: 360px; }

/* Then & Now compare */
.compare { position: relative; width: 100%; height: clamp(152px, calc(21vh + 12px), 222px); overflow: hidden; border: 6px solid var(--paper); box-shadow: 0 18px 40px rgba(0,0,0,.45); background: #000; user-select: none; }
.compare img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.compare__before { position: absolute; inset: 0; width: var(--pos, 52%); overflow: hidden; }
.compare__before img { width: calc(100% / (var(--posf, .52))); max-width: none; filter: sepia(.45) contrast(.95) brightness(.95); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 52%); width: 2px; background: var(--gold); transform: translateX(-50%); z-index: 2; pointer-events: none; }
.compare__handle::after { content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--burgundy-ink); display: grid; place-items: center; font-size: .95rem; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.compare__tag { position: absolute; bottom: 10px; z-index: 2; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; padding: 4px 8px; background: rgba(35,24,21,.75); color: var(--gold); pointer-events: none; }
.compare__tag--l { left: 10px; } .compare__tag--r { right: 10px; }

.table-progress { position: relative; z-index: 3; height: 3px; background: rgba(255,255,255,.1); margin: 0 var(--gutter) 22px; }
.table-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .1s linear; }

/* ==========================================================================
   CHAPTER IV — MEMORIES
   ========================================================================== */
.chapter--memories { background: var(--cream); position: relative; }
.chapter--memories::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/texture-stripes.png") right -200px top -100px/1400px no-repeat; opacity: .5; pointer-events: none; }
.chapter--memories .wrap { position: relative; }
.fourI { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.fourI__btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border: 1px solid rgba(35,24,21,.18); border-radius: 999px; background: var(--paper); font-size: .84rem; font-weight: 500; transition: all .25s; }
.fourI__btn img { width: 28px; height: 28px; border-radius: 50%; padding: 5px; object-fit: contain; background: var(--burgundy); }
.fourI__btn[data-wall="international"] img { background: var(--gold-deep); }
.fourI__btn[data-wall="intellectual"] img { background: var(--brown); }
.fourI__btn[data-wall="involved"] img { background: var(--burgundy-deep); }
.fourI__btn.is-active img { box-shadow: 0 0 0 2px var(--gold); }
.fourI__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--burgundy); display: inline-block; }
.fourI__btn:hover { border-color: var(--burgundy); color: var(--burgundy); }
.fourI__btn.is-active { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.fourI__btn.is-active .fourI__dot { background: var(--gold); }

/* Memory wall: polaroids pinned onto a plain, slightly deeper cream panel (no board, frame or texture) so the
   white prints stand out. Each photo's tilt, nudge, width and pin (--tilt, --dx, --dy, --w, --pin, --pin-x) are set
   per item in main.js from a seeded random, so the arrangement looks casual but is the same on every load.
   The nth-child rules below are only the no-JS fallback. */
.wall { columns: 4; column-gap: 28px; margin-bottom: 40px; padding: 46px 34px 22px; position: relative; background: var(--cream-deep); }
.polaroid { break-inside: avoid; margin: 0 0 30px; padding-top: 8px; position: relative; }
.polaroid.is-hidden { display: none; }
.polaroid button { display: block; position: relative; left: var(--dx, 0px); top: var(--dy, 0px); width: var(--w, 100%); margin-inline: auto; text-align: left; background: var(--paper); padding: 10px 10px 12px;
  box-shadow: 0 1px 2px rgba(59,35,23,.25), 0 10px 18px rgba(59,35,23,.3); transition: transform .45s var(--ease), box-shadow .45s;
  transform: rotate(var(--tilt, 0deg)); transform-origin: var(--pin-x, 50%) 2px; }
.polaroid:nth-child(3n+1) { --tilt: -2.4deg; } .polaroid:nth-child(3n+2) { --tilt: 1.8deg; } .polaroid:nth-child(4n+3) { --tilt: -1.1deg; } .polaroid:nth-child(5n+4) { --tilt: 3deg; }
/* The pin */
.polaroid button::before { content: ""; position: absolute; z-index: 2; left: var(--pin-x, 50%); top: -8px; width: 17px; height: 17px; margin-left: -8.5px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.8) 0 9%, rgba(255,255,255,0) 28%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 52%, rgba(0,0,0,.3) 100%),
    var(--pin, var(--burgundy));
  box-shadow: 1px 2px 2px rgba(0,0,0,.45), 4px 9px 7px rgba(59,35,23,.28); }
.polaroid:nth-child(4n+2) { --pin: var(--gold-deep); } .polaroid:nth-child(4n+3) { --pin: var(--ink); } .polaroid:nth-child(4n+4) { --pin: var(--brown); }
/* On hover the photo straightens, swinging on its pin */
.polaroid button:hover, .polaroid button:focus-visible { transform: rotate(0deg) scale(1.04); box-shadow: 0 2px 3px rgba(59,35,23,.25), 0 18px 30px rgba(59,35,23,.38); z-index: 3; }
.polaroid img { width: 100%; height: auto; filter: sepia(.12) contrast(.98); }
.polaroid figcaption { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px 0; }
.polaroid figcaption span { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--burgundy-deep); line-height: 1.2; }
.polaroid figcaption small { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }

.stories { margin-top: clamp(60px, 8vw, 110px); }
.stories__head { margin-bottom: 30px; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story { display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.story:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.story img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.story__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.story__cat { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--burgundy); }
.story h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--burgundy-ink); }
.story p { font-size: .9rem; color: #4a403d; flex: 1; }

.share { margin-top: clamp(60px, 8vw, 110px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); background: var(--paper); box-shadow: var(--shadow-md); padding: clamp(28px, 4vw, 56px); position: relative; }
.share::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--burgundy), var(--gold)); }
.share__intro p + p { margin-top: 14px; }
.share__intro .h-serif-lg { margin-bottom: 14px; }
.share__count { font-size: .86rem; color: var(--grey); }
.share__count strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--burgundy); margin-right: 4px; }
.memory-preview { margin-top: 28px; max-width: 300px; }
.polaroid--preview { transform: rotate(-2deg); background: var(--paper); padding: 10px 10px 12px; box-shadow: var(--shadow-md); border: 1px dashed rgba(143,29,48,.35); }
.polaroid--preview img { aspect-ratio: 4/3; object-fit: cover; }
.polaroid--preview::before { content: ""; position: absolute; z-index: 2; left: 50%; top: -8px; width: 17px; height: 17px; margin-left: -8.5px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.8) 0 9%, rgba(255,255,255,0) 28%), radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 52%, rgba(0,0,0,.3) 100%), var(--burgundy);
  box-shadow: 1px 2px 2px rgba(0,0,0,.45), 4px 9px 7px rgba(59,35,23,.22); }
.polaroid--preview figcaption > span { font-family: var(--font-display); font-size: 1rem; font-weight: 500; font-style: italic; color: var(--burgundy-deep); display: block; }
.polaroid--preview figcaption small { display: block; margin-top: 6px; }
.polaroid--preview figcaption small span { font: inherit; color: inherit; display: inline; }

.share__form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--burgundy-ink); }
.field small { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea { font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid rgba(35,24,21,.18); background: #fff; border-radius: 2px; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(143,29,48,.12); }
.field input[type=file] { padding: 9px 10px; font-size: .84rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-chips label { position: relative; }
.radio-chips input { position: absolute; opacity: 0; inset: 0; }
.radio-chips span { display: inline-block; padding: 8px 14px; border: 1px solid rgba(35,24,21,.2); border-radius: 999px; font-size: .8rem; font-weight: 500; transition: all .2s; cursor: pointer; }
.radio-chips input:checked + span { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.radio-chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(143,29,48,.25); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: #4a403d; }
.consent input { margin-top: 4px; accent-color: var(--burgundy); }
.consent a { text-decoration: underline; }
.share__form .btn { align-self: flex-start; }
.share__done { font-size: .9rem; color: var(--burgundy); font-weight: 500; }

/* ==========================================================================
   EPILOGUE
   ========================================================================== */
.epilogue { position: relative; min-height: 80vh; display: grid; align-items: center; color: #fff; overflow: hidden; }
.epilogue__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.epilogue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58,10,20,.9), rgba(58,10,20,.55) 60%, rgba(58,10,20,.3)); }
.epilogue__content { position: relative; z-index: 1; max-width: 700px; padding: clamp(80px, 10vw, 140px) 0; }
.epilogue__motto { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
.epilogue__motto span { font-family: var(--font-zh); font-size: 1rem; letter-spacing: .14em; }
.epilogue .h-display { margin-bottom: 20px; }
.epilogue p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.epilogue__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #1d1412; color: rgba(255,255,255,.75); font-size: .86rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer h4 { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer li + li { margin-top: 8px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__logos { display: inline-flex; gap: 16px; align-items: center; margin-bottom: 18px; padding: 10px 16px; border-radius: 3px; background: var(--paper); }
.footer__logos img { height: 36px; width: auto; }
.logo20--footer { width: 64px; height: 64px; color: var(--gold); margin-bottom: 12px; }
.footer__tag { font-family: var(--font-display); font-size: 1.2rem; color: #fff; line-height: 1.3; }
.footer__tag span { font-size: .85rem; letter-spacing: .2em; color: var(--gold); }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .76rem; color: rgba(255,255,255,.5); }

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(35,24,21,.78); backdrop-filter: blur(6px); }
.modal__panel { position: relative; background: var(--paper); color: var(--ink); max-width: 720px; width: 100%; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(35,24,21,.06); z-index: 2; font-size: 1.1rem; }
.modal__close:hover { background: var(--burgundy); color: #fff; }
.letter { padding: 0; }
.letter__head { display: flex; gap: 20px; align-items: center; padding: 36px 44px 24px; border-bottom: 1px solid rgba(35,24,21,.1); background: var(--cream); }
.letter__head img { width: 72px; height: 90px; object-fit: cover; object-position: top; }
.letter__head .eyebrow { margin-bottom: 6px; }
.letter__body { padding: 32px 44px 44px; font-size: 1rem; line-height: 1.75; }
.letter__body p + p { margin-top: 16px; }
.letter__sign { margin-top: 28px !important; font-size: .86rem; color: var(--grey); line-height: 1.5; }
.letter__sign .sig { display: block; margin-bottom: 6px; }
.modal__panel--video { max-width: 1000px; background: #000; color: #fff; padding: 0 0 12px; }
.video-frame { aspect-ratio: 16/9; width: 100%; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__panel--photo { max-width: 1040px; background: var(--paper); padding: 14px 14px 18px; }
.modal__panel--photo img { width: 100%; max-height: 72vh; object-fit: contain; background: #111; }
.lb-caption { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 14px 6px 0; }
.lb-caption strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--burgundy-deep); }
.lb-caption span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); align-self: center; }

/* ---------- Prototype notice ---------- */
.proto { position: fixed; left: 16px; bottom: 16px; z-index: 150; max-width: 340px; font-size: .74rem; line-height: 1.45; background: var(--burgundy-ink); color: rgba(255,255,255,.85); padding: 12px 40px 12px 14px; border-left: 3px solid var(--gold); box-shadow: var(--shadow-lg); }
.proto strong { color: var(--gold); }
.proto button { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; display: grid; place-items: center; color: #fff; opacity: .7; }
.proto button:hover { opacity: 1; }
/* Links between the three homepage designs (review aid only) */
.proto__switch { display: flex; gap: 6px; margin-top: 9px; margin-right: -26px; }
.proto__switch a { padding: 2px 7px; white-space: nowrap; border: 1px solid rgba(217,197,138,.5); border-radius: 2px; color: var(--gold); font-weight: 600; }
.proto__switch a:hover { border-color: var(--gold); }
.proto__switch a[aria-current] { background: var(--gold); color: var(--burgundy-ink); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* Main site switches to its compact header (taller logos) at 1550px */
@media (max-width: 1550px) {
  :root { --masthead-h: 85px; }
  .masthead__crest { height: 49px; }
  .masthead .logo20 { width: 48px; height: 48px; }
}
@media (max-width: 1280px) {
  .voice-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; }
  .wall { columns: 3; }
  .numbers__list { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}
/* With the logos at main-site size the row gets tight: drop the header CTA first, then tighten the menu */
@media (max-width: 1340px) {
  .mainnav__cta { display: none; }
}
@media (max-width: 1200px) {
  .mainnav ul { gap: 18px; }
}
@media (max-width: 1100px) {
  .rail { display: none; }
  .letter-card { grid-template-columns: 300px 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__promo { display: none; }
}
@media (max-width: 1100px) {
  /* The main site has no motto bar at tablet/phone widths, so there is no size to match: keep ours compact */
  :root { --topbar-h: 44px; }
  .topbar { font-size: .78rem; }
  .topbar__motto img { width: 114px; }
  .topbar__right { gap: 18px; }
  .lang__btn { font-size: .84rem; padding: 2px 7px; }

  /* Mobile nav */
  .burger { display: flex; }
  .mainnav { position: fixed; inset: 0; background: var(--paper); flex-direction: column; justify-content: center; align-items: flex-start; padding: 100px var(--gutter) 40px; gap: 30px; transform: translateX(100%); transition: transform .45s var(--ease); z-index: -1; }
  .nav-open .mainnav { transform: none; }
  .nav-open .site-header .masthead { background: var(--paper); }
  .mainnav ul { flex-direction: column; gap: 18px; }
  .mainnav a:not(.btn) { color: var(--ink) !important; text-shadow: none; font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
  .mainnav a small { font-size: 1rem; }
  .mainnav .mainnav__cta { display: inline-flex; padding: 14px 22px; font-size: .9rem; }
  .nav-open { overflow: hidden; }

  /* Long table on tablet/mobile: native horizontal scroll */
  .table-pin { min-height: 0; }
  .table-head { padding-top: 90px; }
  .table-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .table-viewport::-webkit-scrollbar { display: none; }
  .table-track { height: 600px; gap: 48px; padding-right: 60px; }
  .seat__photo img, .seat__photo img.is-portrait, .compare { height: 200px; }
  .seat { scroll-snap-align: center; width: 280px; }
  .seat--last { width: 300px; }
  .table-year { font-size: clamp(6rem, 24vw, 12rem); top: auto; bottom: 10px; transform: none; }
  .table-progress { margin-top: 10px; }
}
@media (max-width: 900px) {
  .theme__grid { grid-template-columns: 1fr; }
  .theme__logo { max-width: 360px; margin: 0 auto; }
  .letter-card { grid-template-columns: 1fr; }
  .letter-card__photo img { min-height: 0; aspect-ratio: 4/3; object-position: center 20%; }
  .voice-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .events { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .event { height: 260px; }
  .event--lg { grid-column: span 2; grid-row: span 1; height: 400px; }
  .story-grid { grid-template-columns: 1fr; }
  .share { grid-template-columns: 1fr; }
  .wall { columns: 2; }
  .hero { display: block; padding-bottom: 40px; min-height: 0; }
  .hero__shade { background: linear-gradient(180deg, rgba(35,24,21,.6) 0%, rgba(58,10,20,.55) 40%, rgba(35,24,21,.92) 100%); }
  .hero__content { padding-bottom: 40px; }
  .wall { padding: 40px 22px 14px; column-gap: 22px; }
  .hero__welcome { position: relative; right: auto; left: auto; width: auto; bottom: auto; margin: 0 var(--gutter) 0; box-shadow: none; }
  .hero__nav { display: none; }
  .hero__scroll { display: none; }
}
@media (max-width: 640px) {
  .topbar__link { display: none; }
  .hero__content { padding-bottom: 36px; }
  .wall { padding: 36px 18px 10px; }
  .hero__lede { font-size: .95rem; }
  .hero__title-zh { letter-spacing: .2em; }
  .numbers__list { grid-template-columns: 1fr 1fr; }
  .voice-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .voice--tall { grid-row: span 1; }
  .voice--wide { grid-column: span 1; }
  .countdown { min-width: 0; width: 100%; }
  .countdown__nums { gap: 16px; }
  .countdown__nums strong { font-size: 1.9rem; }
  .events { grid-template-columns: 1fr; }
  .event--lg { grid-column: span 1; height: 400px; }
  .event--lg .event__body { padding: 22px; }
  .event--lg h3 { font-size: 1.7rem; }
  .wall { columns: 1; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .proto { left: 16px; max-width: none; }
  .eras { width: 100%; }
  .era { flex: 1 1 40%; }
}
/* Phone logo sizes, as on the main site */
@media (max-width: 450px) {
  :root { --masthead-h: 67px; }
  .masthead__crest { height: 34px; }
  .masthead__brand { gap: 10px; }
  .masthead__divider { height: 24px; }
  .masthead .logo20 { width: 38px; height: 38px; }
  .logo20--hero { width: 56px; height: 56px; }
}
@media (max-width: 375px) {
  .masthead__crest { height: 29px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide img, .swiper-slide-active img { transform: none; transition: none; }
  .hero__scroll span, .table-head__hint .ico { animation: none; }
  .voice__card img, .event img, .seat__photo img, .btn { transition: none; }
}
