/* Layout: gallery margins, three-column grids divided by hairlines, charcoal signage bands. Tokens from the TRIION design system. */
:root {
  --charcoal: #282828; --stone: #8F8272; --ivory: #E9E3DC; --bronze: #94704B; --bronze-light: #B18D69;
  --surface: #F4F0EA; --surface-raised: #FBF9F5; --surface-sunken: #E9E3DC; --surface-inverse: #282828;
  --ink: #282828; --ink-muted: #6B6157; --ink-inverse: #F4F0EA; --ink-inverse-muted: #B5AB9F;
  --accent: #7A5A3A; --accent-mark: #94704B; --line: #D9D1C6; --line-strong: #7F7364;
  --focus: #7A5A3A; --ph: #8F8272; --ph-ink: #E9E3DC;
  /* fixed brand inks for signage, hoardings and text over photography */
  --fx-charcoal: #282828; --fx-ivory: #E9E3DC; --fx-paper: #F4F0EA; --fx-muted: #B5AB9F; --fx-bronze: #B18D69; --fx-line: #45423E;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-32: 128px;
  --container-max: 1280px; --measure: 640px; --rule-dash: 24px;
  --gutter: clamp(16px, 5vw, 64px);
  --section: clamp(64px, 9vw, 96px);
  --hdr-h: 77px; /* header row 76px + hairline */
  --font-display: "DM Serif Display", "Noto Serif SC", "Times New Roman", Georgia, serif;
  --font-sans: Jost, "Noto Sans SC", "Futura PT", Futura, "Century Gothic", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --surface: #282828; --surface-raised: #333230; --surface-sunken: #1F1F1F; --surface-inverse: #F4F0EA;
  --ink: #F4F0EA; --ink-muted: #B5AB9F; --ink-inverse: #282828; --ink-inverse-muted: #6B6157;
  --accent: #C9A881; --accent-mark: #B18D69; --line: #45423E; --line-strong: #8F8272; --focus: #C9A881;
  --ph: #3A3734; --ph-ink: #B5AB9F; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --surface: #282828; --surface-raised: #333230; --surface-sunken: #1F1F1F; --surface-inverse: #F4F0EA;
  --ink: #F4F0EA; --ink-muted: #B5AB9F; --ink-inverse: #282828; --ink-inverse-muted: #6B6157;
  --accent: #C9A881; --accent-mark: #B18D69; --line: #45423E; --line-strong: #8F8272; --focus: #C9A881;
  --ph: #3A3734; --ph-ink: #B5AB9F; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; font-weight: 400; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }

.wrap { max-width: calc(var(--container-max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section); }
.sunken { background: var(--surface-sunken); }
.measure { max-width: var(--measure); }

/* type */
.display-xl { font-family: var(--font-display); font-size: clamp(44px, 7.2vw, 80px); line-height: 1.05; letter-spacing: 0.04em; }
.display-l { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: 1.07; letter-spacing: 0.02em; }
.display-m { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 36px); line-height: 1.17; letter-spacing: 0.01em; }
.heading { font-family: var(--font-display); font-size: 24px; line-height: 30px; }
.stat { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 48px); line-height: 1.08; font-variant-numeric: tabular-nums; }
.tagline { font-family: var(--font-display); font-size: 16px; line-height: 24px; letter-spacing: 0.3em; text-transform: uppercase; }
.lead { font-size: 20px; line-height: 32px; font-weight: 300; }
.body-small { font-size: 14px; line-height: 22px; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.caption { font-size: 12px; line-height: 18px; letter-spacing: 0.02em; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.caps { text-transform: uppercase; }
:lang(zh) .eyebrow, :lang(zh) .tagline { letter-spacing: 0.12em; }
:lang(zh) .display-xl, :lang(zh) .display-l { letter-spacing: 0.04em; line-height: 1.25; }
:lang(zh) .caps { text-transform: none; }
:lang(zh) .lead { font-weight: 300; line-height: 34px; }

.dash { display: block; width: var(--rule-dash); height: 2px; background: var(--accent-mark); border: 0; margin: 0; }
.stack > * + * { margin-top: var(--space-6); }
.stack-s > * + * { margin-top: var(--space-3); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--surface); text-decoration: none; cursor: pointer; border-radius: 0; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--ink); }
.btn.on-photo { background: var(--fx-paper); color: var(--fx-charcoal); border-color: var(--fx-paper); }
.btn.on-photo:hover { background: transparent; color: var(--fx-paper); }
.btn.ghost-photo { background: transparent; color: var(--fx-paper); border-color: rgba(244,240,234,.6); }
.btn.ghost-photo:hover { border-color: var(--fx-paper); }
.text-link { font: 500 13px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--accent-mark); padding-bottom: 6px; display: inline-block; }
.text-link:hover { color: var(--accent); }
:lang(zh) .btn, :lang(zh) .text-link { letter-spacing: 0.1em; }

/* media placeholders: Stone fields until the photography lands */
.ph { position: relative; overflow: hidden; background: var(--ph); margin: 0; max-width: 100%; }
.ph::after { content: none; position: absolute; left: 16px; bottom: 14px; right: 16px; font: 500 11px/14px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ph-ink); opacity: .85; }
.ph:has(img[data-missing])::after { content: attr(data-label); }
.ph:has(img[data-loaded]), .ph:has(video) { background: transparent; }
.js .ph img:not([data-loaded]) { opacity: 0; }
.ph img { transition: opacity .6s ease; }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ph img[data-missing] { display: none; }
.r-3x2 { aspect-ratio: 3 / 2; } .r-4x5 { aspect-ratio: 4 / 5; } .r-16x9 { aspect-ratio: 16 / 9; } .r-21x9 { aspect-ratio: 21 / 9; } .r-1x1 { aspect-ratio: 1; }
figure.fig { margin: 0; }
figure.fig figcaption { margin-top: var(--space-2); }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); min-height: 76px; }
.lockup { display: inline-flex; flex-direction: row; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); line-height: 1; }
.lockup .emblem { height: 34px; width: auto; flex: none; }
.site-footer .lockup .emblem { height: 44px; }
.lockup .wm { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.08em; line-height: 1; }
.lockup .lt { display: inline-grid; justify-items: stretch; }
.lockup .wm { margin-right: -0.08em; } /* drop the trailing tracking so the visible word sets the width */
.lockup .ds { display: flex; justify-content: space-between; font: 500 9px/1 var(--font-sans); letter-spacing: 0; text-transform: uppercase; color: var(--ink-muted); margin-top: 6px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a.nl { font: 500 12px/16px var(--font-sans); letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--ink-muted); padding-block: 8px; border-bottom: 1px solid transparent; }
.nav a.nl:hover { color: var(--ink); }
.nav a.nl[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent-mark); }
:lang(zh) .nav a.nl { letter-spacing: 0.08em; font-size: 13px; }
.lang { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/16px var(--font-sans); letter-spacing: 0.12em; color: var(--ink-muted); }
.lang button { background: none; border: 0; padding: 6px 2px; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--ink); border-bottom: 1px solid var(--accent-mark); }
.header-actions { display: flex; align-items: center; gap: var(--space-6); }
.header-actions .btn { padding: 12px 20px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); font: 500 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .site-header.open .nav { display: flex; }
  .nav a.nl { padding-block: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav a.nl[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .header-actions .btn { display: none; }
}

/* hero */
.hero { position: relative; min-height: calc(100vh - var(--hdr-h)); min-height: calc(100svh - var(--hdr-h)); display: flex; align-items: flex-end; color: var(--fx-paper); background: var(--fx-charcoal); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(40,40,40,.42) 0%, rgba(40,40,40,0) 62%), linear-gradient(180deg, rgba(40,40,40,.15) 0%, rgba(40,40,40,.25) 45%, rgba(40,40,40,.82) 100%); }
.hero-inner { position: relative; z-index: 3; width: 100%; padding-block: clamp(48px, 12vh, 128px) calc(var(--space-12) + 72px); }
.hero .eyebrow { color: var(--fx-bronze); }
.hero .lead { color: var(--fx-ivory); max-width: 600px; }
.hero .dash { background: var(--fx-bronze); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
.hero-credit { position: absolute; z-index: 2; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 20px; color: var(--fx-muted); }


/* three-column hairline grid */
/* Equal-width columns; the hairline sits in the middle of the gap, so every column (and its image) is the same size. */
.cols3 { --col-gap: var(--space-16); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
.cols3 > * { position: relative; min-width: 0; }
.cols3 > * + *::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--col-gap) / -2); width: 1px; background: var(--line); }
.cols3.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); --col-gap: var(--space-12); }
@media (max-width: 820px) {
  .cols3 { grid-template-columns: 1fr; }
  .cols3 > * + * { border-top: 1px solid var(--line); padding-top: var(--space-8); margin-top: var(--space-8); }
  .cols3 > * + *::before { content: none; }
}
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12) var(--space-8); }
@media (max-width: 980px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr; } }
/* FAQ accordion */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: 20px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent), var(--accent)) center / 14px 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 14px no-repeat; transition: transform .3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover .faq-q { color: var(--accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.faq-q { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 28px; transition: color .2s; }
.faq-a { padding: 0 var(--space-12) var(--space-6) 0; max-width: var(--measure); }
.faq-a p { margin: 0; color: var(--ink-muted); }
.faq-a .faq-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-top: var(--space-4); }
@media (max-width: 880px) {
  .faq-item summary { padding: 16px 0; }
  .faq-q { font-size: 18px; line-height: 24px; }
  .faq-a { padding-right: 0; }
}
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-16); align-items: start; }
.split.rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 880px) { .split, .split.rev { grid-template-columns: 1fr; gap: var(--space-8); } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-12); }
.section-head .stack-s { max-width: var(--measure); }

/* stat block */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: var(--space-8); }
.stats .label { margin-top: var(--space-2); }
.stat.is-text { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }

/* project card */
.pcard { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: var(--space-4); }
.pcard .ph img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .ph img { transform: scale(1.03); }
.pcard .chip { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 6px 10px; background: var(--charcoal); color: #F4F0EA; font: 500 11px/14px var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; }
.pcard .meta { display: flex; justify-content: space-between; gap: var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-3); }
.pcard .go { font: 500 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.pcard:hover .go { color: var(--accent); }

/* triad */
.triad h3 { margin-top: var(--space-6); }
.triad .dash { margin-block: var(--space-4); }

/* signage band */
.signage { background: var(--fx-charcoal); color: var(--fx-paper); }
.signage .eyebrow { color: var(--fx-bronze); }
.signage .dash { background: var(--fx-bronze); }
.signage .muted, .signage .caption { color: var(--fx-muted); }
.signage .btn { background: var(--fx-paper); color: var(--fx-charcoal); border-color: var(--fx-paper); }
.signage .btn:hover { background: transparent; color: var(--fx-paper); }
.signage .text-link { color: var(--fx-paper); border-color: var(--fx-bronze); }
:root[data-theme="dark"] .signage, :root[data-theme="dark"] .site-footer { border-top: 1px solid var(--fx-line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .signage, :root:not([data-theme="light"]) .site-footer { border-top: 1px solid var(--fx-line); } }
.signage-centre { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.signage-centre .muted { max-width: 520px; }

/* film band */
.film { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-12); align-items: end; }
@media (max-width: 880px) { .film { grid-template-columns: 1fr; gap: var(--space-8); } }

/* news */
.ncard { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: var(--space-4); }
.ncard h3 { font-family: var(--font-display); font-size: 22px; line-height: 28px; }
.ncard:hover h3 { color: var(--accent); }
.archive { border-top: 1px solid var(--line); }
.archive a { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: var(--space-6); align-items: baseline; padding-block: var(--space-6); border-bottom: 1px solid var(--line); text-decoration: none; }
.archive a:hover .heading { color: var(--accent); }
@media (max-width: 620px) { .archive a { grid-template-columns: 1fr; gap: var(--space-2); } }

/* quotes */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; gap: var(--space-12); } }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 32px; }
.quote .who { margin-top: var(--space-6); display: flex; gap: var(--space-3); align-items: baseline; }

/* process */
.steps { counter-reset: none; }
.step .num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: var(--space-6); }
.group-label { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-8); }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* project detail */
.facts dt { margin-bottom: var(--space-2); }
.facts dd { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery .wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .gallery, .gallery.two { grid-template-columns: 1fr; } }
.back { font: 500 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ink-muted); }
.back:hover { color: var(--ink); }

/* partners: zigzag rows; the portrait swaps to the off-duty one on hover (mouse) or tap (touch, via site.js) */
.partners { display: grid; gap: var(--space-24); }
.partner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-16); align-items: center; }
.partner:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.partner:nth-child(even) .partner-photo { order: 2; }
.partner-copy { max-width: var(--measure); }
.partner-photo { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.partner-photo .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.partner-photo .pp-fun { opacity: 0; transition: opacity .45s ease; }
.partner-photo[aria-pressed="true"] .pp-fun { opacity: 1; }
.partner-photo:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .partner-photo:hover .pp-fun, .partner-photo:focus-visible .pp-fun { opacity: 1; }
}
.swap-hint .on-tap { display: none; }
@media (hover: none), (pointer: coarse) {
  .swap-hint .on-hover { display: none; }
  .swap-hint .on-tap { display: inline; }
}
@media (max-width: 760px) {
  .partners { gap: var(--space-16); }
  .partner, .partner:nth-child(even) { grid-template-columns: 1fr; gap: var(--space-6); }
  .partner:nth-child(even) .partner-photo { order: 0; }
}

/* form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-8); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: var(--space-3); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/26px var(--font-sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 8px 0 10px; border-radius: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--surface); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.notice { border-left: 2px solid var(--accent-mark); padding: 4px 0 4px var(--space-4); }
.contact-list { display: grid; gap: var(--space-6); }
.contact-list .row { display: flex; justify-content: space-between; gap: var(--space-4); align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: var(--space-4); }
.copy { background: none; border: 0; padding: 4px 0; font: 500 11px/14px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); cursor: pointer; white-space: nowrap; }
.selectable { user-select: all; overflow-wrap: anywhere; }

/* footer */
.site-footer { background: var(--fx-charcoal); color: var(--fx-paper); padding-block: var(--space-16) var(--space-8); }
.site-footer .lockup { color: var(--fx-paper); }
.site-footer .lockup .ds { color: var(--fx-muted); }
.site-footer .eyebrow { color: var(--fx-bronze); }
.site-footer .muted, .site-footer .caption { color: var(--fx-muted); }
.site-footer a { color: var(--fx-paper); text-decoration: none; }
.site-footer a:hover { color: var(--fx-bronze); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: var(--space-12); padding-bottom: var(--space-12); border-bottom: 1px solid var(--fx-line); }
.foot-grid ul { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-3); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); }
.foot-base nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* language switch as links between page twins */
.lang a { text-decoration: none; color: inherit; padding: 6px 2px; }
.lang a[aria-current="true"] { color: var(--ink); border-bottom: 1px solid var(--accent-mark); }
.lang a:hover { color: var(--ink); }

/* ---------- hero slideshow ---------- */
.hero-media { position: absolute; inset: 0; overflow: hidden; background: #5d544a; z-index: 1; will-change: transform; }
.hero-slide { position: absolute; inset: -8% 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide .ph { position: absolute; inset: 0; background: transparent; }
.hero-slide .ph::after { content: none; }
.hero-slide img { transform: scale(1.12); transition: transform 8s cubic-bezier(.2,.6,.2,1); }
.hero-slide.is-active img { transform: scale(1); }
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-block: 20px; }
.hero-caption { color: var(--fx-muted); min-height: 18px; }
.hero-caption a { color: var(--fx-paper); text-decoration: none; border-bottom: 1px solid var(--fx-bronze); padding-bottom: 2px; }
.hero-caption a:hover { color: var(--fx-bronze); }
.hero-controls { display: flex; align-items: center; gap: var(--space-4); }
.hero-count { font: 500 12px/1 var(--font-sans); letter-spacing: 0.2em; color: var(--fx-paper); font-variant-numeric: tabular-nums; }
.hero-progress { display: flex; gap: 6px; }
.hero-progress i { position: relative; width: 28px; height: 2px; background: rgba(244, 240, 234, .28); overflow: hidden; }
.hero-progress b { position: absolute; inset: 0; background: var(--fx-bronze); transform: scaleX(0); transform-origin: left; }
.hero-progress i.is-done b { transform: scaleX(1); }
.hero-progress i.is-active b { animation: hero-progress var(--hero-interval, 6.5s) linear forwards; }
.hero.is-paused .hero-progress i.is-active b { animation: none; transform: scaleX(1); opacity: .5; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; background: transparent; color: var(--fx-paper); border: 1px solid rgba(244, 240, 234, .4); font: 400 14px/1 var(--font-sans); cursor: pointer; transition: border-color .2s, color .2s; }
.hero-btn:hover { border-color: var(--fx-paper); color: var(--fx-bronze); }
.hero-btn:focus-visible { outline-color: var(--fx-bronze); }
@media (max-width: 560px) { .hero-progress { display: none; } .hero-bar { padding-block: 14px; } }

/* ---------- motion ---------- */
/* Hero copy waits for the entrance timeline; site.js and a head-script fallback remove the flag if GSAP is unavailable. */
.js-motion .hero-copy > * { opacity: 0; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; }
.site-header { transition: transform .35s ease; }
.site-header.is-hidden { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }
.text-link, .pcard .go, .back { transition: color .2s, letter-spacing .3s; }

/* ---------- phones and touch ---------- */
@media (max-width: 820px) {
  .stats.is-numeric .cols3 { --col-gap: var(--space-6); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats.is-numeric .cols3 > * + * { border-top: 0; margin-top: 0; padding-top: 0; }
  .stats.is-numeric .cols3 > * + *::before { content: ""; }
  .stats.is-numeric .stat { font-size: 32px; }
  /* Four figures on a phone: two by two, dividers only between the pair on each row */
  .stats.is-numeric .cols3.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-8); }
  .stats.is-numeric .cols3.c4 > :nth-child(3)::before { content: none; }
  .stats.is-numeric .label { font-size: 11px; line-height: 16px; }
  .triad .r-4x5 { aspect-ratio: 4 / 3; }
}
@media (max-width: 1020px) {
  .lang { white-space: nowrap; }
  .menu-btn { min-width: 92px; text-align: center; } /* MENU and CLOSE take the same width */
  .header-row { gap: var(--space-4); }
  .header-actions { gap: var(--space-4); }
}
@media (max-width: 560px) {
  .r-21x9 { aspect-ratio: 16 / 9; } /* a 21:9 strip is too thin on a phone */
  .hero .display-xl { font-size: clamp(36px, 10.5vw, 44px); }
  .hero .lead { font-size: 18px; line-height: 28px; }
  .hero-inner { padding-bottom: calc(var(--space-8) + 72px); }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: var(--space-6); }
  .hero-actions .btn { justify-content: center; }
  .hero-bar { flex-wrap: nowrap; }
  .hero-caption { flex: 1; min-width: 0; }
  .hero-controls { gap: var(--space-3); flex: none; }
  .hero [data-hero-prev], .hero [data-hero-next] { display: none; } /* swipe instead */
}
@media (pointer: coarse), (max-width: 820px) {
  .menu-btn { min-height: 44px; padding: 12px 16px; }
  .hero-btn { width: 44px; height: 44px; }
  .lang a, .text-link, .back, .copy, .hero-caption a, .site-footer a, .pcard .go { position: relative; }
  .lang a::before, .text-link::before, .back::before, .copy::before, .hero-caption a::before, .site-footer a::before {
    content: ""; position: absolute; inset: -12px -6px;
  }
  .foot-grid ul { gap: var(--space-4); }
}

/* ---------- floating bar: takes over from the header on scroll ---------- */
.site-header.is-hidden { visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; }
.dock {
  position: fixed; z-index: 55; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: var(--space-6); height: 60px; padding: 0 8px 0 18px;
  max-width: calc(100vw - 32px); background: var(--surface-raised); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow-lift);
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s ease, visibility 0s linear .45s;
}
.dock.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s ease; }
.dock-home { display: inline-grid; place-items: center; height: 44px; }
.dock-home .emblem { height: 26px; width: auto; }
.dock-links { display: flex; align-items: center; gap: var(--space-6); }
.dock-link, .dock-menu { font: 500 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ink-muted); white-space: nowrap; padding-block: 14px; border-bottom: 1px solid transparent; }
.dock-link:hover { color: var(--ink); }
.dock-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent-mark); }
:lang(zh) .dock-link, :lang(zh) .dock-menu { letter-spacing: 0.08em; font-size: 13px; }
.dock-rule { width: 1px; height: 24px; background: var(--accent-mark); flex: none; }
.dock-cta { font: 500 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  padding: 14px 20px; background: var(--ink); color: var(--surface); border: 1px solid var(--ink); transition: background .2s, color .2s; }
.dock-cta:hover { background: transparent; color: var(--ink); }
.dock-menu { display: none; background: none; border: 0; cursor: pointer; min-height: 44px; }
.dock-sheet { position: absolute; left: -1px; right: -1px; bottom: calc(100% + 8px); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-lift); padding: 8px 18px; }
.dock-sheet a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 13px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ink-muted); }
.dock-sheet a:last-child { border-bottom: 0; }
.dock-sheet a[aria-current="page"] { color: var(--accent); }
:lang(zh) .dock-sheet a { letter-spacing: 0.08em; }
@media (max-width: 1100px) {
  .dock-links { display: none; }
  .dock-menu { display: inline-block; }
  .dock { gap: var(--space-4); }
}
/* Leave room so the bar never sits on top of the footer's last line */
.site-footer { padding-bottom: calc(var(--space-8) + 96px); }

/* ---------- film player ---------- */
.film-modal { width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 0; background: var(--fx-charcoal); color: var(--fx-paper); }
.film-modal::backdrop { background: rgba(24, 23, 22, .9); }
.film-modal[open] { animation: film-in .5s cubic-bezier(.2,.7,.2,1); }
.film-modal[open]::backdrop { animation: film-fade .4s ease; }
@keyframes film-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes film-fade { from { opacity: 0; } to { opacity: 1; } }
.film-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 10px 10px 10px 18px; }
.film-modal .eyebrow { color: var(--fx-bronze); margin: 0; }
.film-modal video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 120px); background: #000; }
.film-close { min-height: 44px; padding: 0 16px; background: transparent; color: var(--fx-paper); border: 1px solid rgba(244, 240, 234, .4); font: 500 12px/1 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.film-close:hover { border-color: var(--fx-paper); color: var(--fx-bronze); }
.film-error { padding: 0 18px 16px; color: var(--fx-muted); }
@media (max-width: 560px) { .film-modal { width: 100vw; } .film-modal-bar { padding-left: 16px; } }

/* ---------- emblem sheen (hover) and page loader ---------- */
.em-band { transform: translateX(-150px); }
@keyframes em-sweep { from { transform: translateX(-150px); } to { transform: translateX(470px); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lockup:hover .em-band, .dock-home:hover .em-band { animation: em-sweep 1.1s cubic-bezier(.45,0,.25,1) both; }
}
@media (prefers-reduced-motion: no-preference) {
  .lockup:focus-visible .em-band, .dock-home:focus-visible .em-band { animation: em-sweep 1.1s cubic-bezier(.45,0,.25,1) both; }
}

/* Lintel (once, 1.4 s), then Sheen (loop) while the page finishes loading. Without JS there is no loader. */
.loader { display: none; }
html.js .loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--surface);
  animation: ld-failsafe .4s ease 9s forwards; }
.ld-em { position: relative; width: clamp(60px, 8vw, 84px); aspect-ratio: 296 / 287; }
.ld-p { position: absolute; top: 0; overflow: hidden; animation: ld-grow .75s cubic-bezier(.65,0,.35,1) both; }
.ld-p svg { position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block; }
.ld-p path { fill: var(--accent-mark); }
.ld-l { animation-delay: .34s; } .ld-r { animation-delay: .46s; } .ld-c { animation-delay: .6s; animation-duration: .8s; }
.ld-hair { position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--accent-mark); opacity: 0;
  animation: ld-hair 1.4s cubic-bezier(.65,0,.35,1) both; }
.ld-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ld-band { position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%;
  background: linear-gradient(90deg, rgba(255,246,234,0), rgba(255,246,234,.75), rgba(255,246,234,0)); transform: translateX(-130%) skewX(-16deg); }
.loader.is-sheen .ld-band { animation: ld-sheen 2.4s cubic-bezier(.45,0,.25,1) infinite; }
/* Lift: the finished mark holds a beat and fades first, then the stage clears. Both run on the compositor. */
html.js .loader.is-out { opacity: 0; visibility: hidden; animation: none; will-change: opacity;
  transition: opacity .55s cubic-bezier(.4,0,.2,1) .16s, visibility 0s linear .71s; }
.loader.is-out .ld-em { opacity: 0; transform: translateY(-4px); transition: opacity .3s ease .08s, transform .45s cubic-bezier(.4,0,.2,1) .08s; }
html.js .loader.is-done { display: none; }
html.js .loader.is-leaving { animation: ld-in .22s ease both; }
.loader.is-leaving .ld-em { opacity: 0; }
@keyframes ld-grow { from { height: 0; } }
@keyframes ld-hair { 0% { transform: scaleX(0); opacity: 1; } 28% { transform: scaleX(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes ld-sheen { 0% { transform: translateX(-130%) skewX(-16deg); } 62%, 100% { transform: translateX(330%) skewX(-16deg); } }
@keyframes ld-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ld-failsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .loader *, .loader { animation: none !important; transition: none !important; } }
