/* Luminous Dance · NZIDS Central
   Layout: a film-and-paper magazine. Deep olive "night" spreads carry the moving image;
   ivory "paper" spreads carry the words. One olive family throughout, brass used only as a hairline accent. */
:root {
  --ink: #161b12;        /* deepest olive-black, film background */
  --moss: #232b1d;       /* dark section ground */
  --moss-2: #2e3825;     /* raised dark surface */
  --olive: #5e6b3a;      /* brand olive */
  --olive-2: #87915f;    /* mid olive for lines and dots */
  --sage: #bec3a0;       /* soft text on dark */
  --ivory: #efe9d9;      /* paper */
  --ivory-2: #e1d9c4;    /* paper shade */
  --ink-text: #1c2116;   /* text on paper */
  --muted-paper: #5f6450;/* secondary text on paper */
  --brass: #b49a5d;      /* hairlines, tiny details */
  --line-dark: rgba(185, 190, 156, .18);
  --line-paper: rgba(28, 33, 22, .16);

  --f-display: "Bodoni Moda", "Noto Serif SC", "Songti SC", Didot, "Times New Roman", serif;
  --f-zh-display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --f-body: "Hanken Grotesk", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(.78rem, .74rem + .15vw, .86rem);
  --step-0: clamp(.95rem, .9rem + .2vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.2vw, 3.6rem);
  --step-4: clamp(2.8rem, 1.9rem + 4.2vw, 6.2rem);
  --step-5: clamp(3.6rem, 2rem + 8vw, 11rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 85rem;
  --ease: cubic-bezier(.22, .61, .21, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; font-size: 100%; }
/* anything wider than a phone reads at 75% of the phone-first sizes, with the desktop layout */
@media (min-width: 700px) { html { font-size: 75%; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 0.1875rem; border-radius: 2px; }
::selection { background: var(--olive); color: var(--ivory); }

/* ---------- languages ---------- */
html[data-locale="ru"] {
  --f-display: "Playfair Display", "Bodoni Moda", Georgia, serif;
  --f-body: "Hanken Grotesk", "Noto Sans", system-ui, sans-serif;
}
/* ---------- bilingual ---------- */
html[data-lang="zh"] .en { display: none !important; }
html[data-lang="en"] .zh { display: none !important; }
.zh { font-feature-settings: "palt"; }
html[data-lang="zh"] body { letter-spacing: .02em; }

/* ---------- shared atoms ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 4rem);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
@media (min-width: 700px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.label {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 400;
}
.label .zh { letter-spacing: .2em; }
.paren::before { content: "( "; }
.paren::after { content: " )"; }
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0;
}
.display { hyphens: auto; overflow-wrap: break-word; }
.display .zh { font-family: var(--f-zh-display); font-weight: 600; letter-spacing: .02em; line-height: 1.18; }
.display em { font-style: italic; }
.zh em { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* film grade: every photo is pulled into the same olive-warm world */
.grade { position: relative; overflow: hidden; background: var(--moss-2); }
.grade img, .grade video {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.26) saturate(.92) contrast(1.02) brightness(1) hue-rotate(-6deg);
  transition: filter .9s var(--ease), transform 1.2s var(--ease);
}
.grade::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(94, 107, 58, .08), rgba(22, 27, 18, .16));
  mix-blend-mode: multiply;
}

/* grain over everything, very quiet */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- intro (pointillist assembly) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__mark {
  position: relative; z-index: 1; text-align: center; color: var(--sage);
  display: grid; gap: 0.625rem; justify-items: center;
  transition: opacity .8s var(--ease);
}
.intro__mark .logo-mask { width: 2.875rem; height: 3rem; background: var(--sage); }
.intro__skip {
  position: absolute; z-index: 2;
  right: calc(var(--gutter-r) + 0.5rem); bottom: calc(env(safe-area-inset-bottom, 0px) + 1.375rem);
  background: none; border: 0; color: var(--sage); cursor: pointer; padding: 0.5rem;
}
.intro.is-done { opacity: 0; visibility: hidden; }
.intro.is-assembled .intro__mark { opacity: 0; }

.logo-mask {
  display: inline-block;
  -webkit-mask: url("assets/img/logo-nzids.png") center / contain no-repeat;
  mask: url("assets/img/logo-nzids.png") center / contain no-repeat;
  background: currentColor;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 80;
  top: calc(env(safe-area-inset-top, 0px) + 0.875rem);
  left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  display: flex; justify-content: center; pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  width: min(77.5rem, 100%);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.125rem;
  border-radius: 62.4375rem;
  background: linear-gradient(100deg, rgba(98, 111, 60, .64), rgba(50, 60, 38, .68));
  border: 1px solid rgba(236, 230, 214, .12);
  -webkit-backdrop-filter: blur(1.125rem) saturate(1.2);
  backdrop-filter: blur(1.125rem) saturate(1.2);
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, .25);
  transition: transform .6s var(--ease), background .6s var(--ease);
}
.nav.is-hidden .nav__bar { transform: translateY(calc(-100% - 1.875rem)); }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; min-width: 0; }
.brand .logo-mask { width: 1.625rem; height: 1.6875rem; color: var(--ivory); flex: none; }
.brand__name { font-family: var(--f-display); font-style: italic; font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; }
.brand__sub { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); display: block; margin-top: 0.1875rem; }
.nav__links { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 62.4375rem; text-decoration: none;
  font-size: .86rem; color: rgba(236, 230, 214, .86); transition: background .3s, color .3s;
}
.nav__links a:hover { background: rgba(236, 230, 214, .1); color: var(--ivory); }
.nav__end { display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; }
.nav__end .btn { white-space: nowrap; }
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 0.375rem; cursor: pointer;
  border: 1px solid rgba(236, 230, 214, .22); border-radius: 999px; padding: 0.4375rem 0.75rem;
  background: rgba(22, 27, 18, .25); color: var(--ivory);
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: .08em; transition: background .3s, border-color .3s;
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { background: rgba(236, 230, 214, .12); border-color: rgba(236, 230, 214, .4); }
.lang__btn svg { width: 0.9375rem; height: 0.9375rem; flex: none; }
.lang__btn .lang__chev { width: 0.75rem; height: 0.75rem; transition: transform .3s var(--ease); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 0.625rem); right: 0; z-index: 5; min-width: 11.5rem;
  list-style: none; margin: 0; padding: 0.375rem; border-radius: 0.75rem;
  background: var(--ivory); color: var(--ink-text); box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, .35);
}
.lang__menu button {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: none; border: 0; border-radius: 0.5rem; padding: 0.5625rem 0.75rem; cursor: pointer; text-align: left;
  font-family: var(--f-body); font-size: 0.9375rem; color: var(--ink-text);
}
.lang__menu button small { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: .08em; color: var(--muted-paper); }
.lang__menu button:hover, .lang__menu button:focus-visible { background: var(--ivory-2); outline: none; }
.lang__menu button[aria-selected="true"] { font-weight: 600; }
.lang__menu button[aria-selected="true"]::after { content: "✓"; margin-left: auto; color: var(--olive); }
.lang__menu button[aria-selected="true"] small { display: none; }
.btn {
  display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; cursor: pointer;
  border-radius: 62.4375rem; padding: 0.6875rem 1.25rem; border: 1px solid transparent;
  font-size: .9rem; font-weight: 500; letter-spacing: .01em; line-height: 1.2;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.btn--ink { background: var(--ink); color: var(--ivory); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn--ink:hover { background: var(--ivory); color: var(--ink-text); }
.btn--paper { background: var(--ivory); color: var(--ink-text); }
.btn--paper:hover { background: var(--olive); color: var(--ivory); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--ivory); color: var(--ink-text); border-color: var(--ivory); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(0.1875rem); }
.menu-btn { display: none; width: 2.625rem; height: 2.625rem; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; place-items: center; }
.menu-btn span { display: block; width: 1rem; height: 1.5px; background: var(--ivory); box-shadow: 0 0.3125rem 0 var(--ivory), 0 -5px 0 var(--ivory); }

.sheet {
  position: fixed; inset: 0; z-index: 85; background: var(--moss);
  padding: calc(env(safe-area-inset-top, 0px) + 6rem) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 2rem) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.sheet.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.sheet ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.sheet ol a { text-decoration: none; font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.15; display: flex; gap: 0.875rem; align-items: baseline; }
.sheet ol a .zh { font-family: var(--f-zh-display); font-weight: 600; }
.sheet ol a small { font-family: var(--f-mono); font-size: .7rem; color: var(--sage); letter-spacing: .1em; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__bar { grid-template-columns: 1fr auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 520px) {
  .nav__end .btn { display: none; }
  .brand__sub { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 210svh; background: var(--ink); }
.hero__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; }
.hero__media {
  position: absolute; inset: 0; transform-origin: 50% 50%;
  border-radius: 0; overflow: hidden; will-change: transform, clip-path;
}
.hero__media video { width: 100%; height: 100%; object-fit: cover; filter: sepia(.38) saturate(1.15) brightness(1.06) contrast(1.02) hue-rotate(-6deg); }
.hero__media::before {
  /* halftone screen, a nod to the pointillist intro */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .22;
  background: radial-gradient(circle at center, transparent 0 1.1px, rgba(22, 27, 18, .55) 1.6px) 0 0 / 0.25rem 0.25rem;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(22, 27, 18, .35) 0%, rgba(22, 27, 18, 0) 26%, rgba(22, 27, 18, .12) 46%, rgba(22, 27, 18, .62) 72%, rgba(22, 27, 18, .9) 100%);
}
.hero__copy {
  position: relative; z-index: 2; align-self: end;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(1.75rem, 6vh, 4rem));
  display: grid; gap: clamp(1.125rem, 3vh, 1.75rem);
}
.hero__title { font-size: var(--step-4); color: var(--ivory); max-width: 16ch; text-shadow: 0 2px 1.875rem rgba(22, 27, 18, .45); }
.hero__title .zh { font-size: .82em; }
.hero__line1, .hero__line2 { display: block; }
.hero__line2 { color: var(--sage); }
.hero__line2 em { color: var(--ivory); }
.hero__meta { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem; flex-wrap: wrap; color: var(--sage); }
.hero__meta p { margin: 0; max-width: 42ch; font-size: var(--step-0); }
.scroll-cue { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); white-space: nowrap; }
.scroll-cue::before { content: "[ "; } .scroll-cue::after { content: " ]"; }

/* ---------- manifesto (paper) ---------- */
.paper { background: var(--ivory); color: var(--ink-text); position: relative; }
.paper ::selection { background: var(--olive); color: var(--ivory); }
.manifesto { padding-block: clamp(5.625rem, 14vw, 12.5rem) clamp(9.375rem, 20vw, 18.75rem); overflow: hidden; }
.fact b .zh { font-family: var(--f-zh-display); font-weight: 600; font-size: .86em; }
.manifesto__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; position: relative; z-index: 1; }
.manifesto__label { grid-column: 1 / span 3; color: var(--muted-paper); padding-top: .8em; }
.manifesto__text { grid-column: 4 / span 9; font-size: var(--step-3); line-height: 1.12; }
.manifesto__text .zh { font-size: .86em; line-height: 1.4; }
.manifesto__text .w { opacity: .18; transition: opacity .25s linear; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__text em { font-style: italic; color: var(--olive); }
.facts {
  grid-column: 4 / span 9; margin-top: clamp(3rem, 7vw, 6rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-paper);
}
.fact { padding: 1.125rem 1.125rem 0 0; display: grid; gap: 0.25rem; }
.fact + .fact { padding-left: 1.125rem; border-left: 1px solid var(--line-paper); }
.fact b { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.fact > span { color: var(--muted-paper); font-size: var(--step--1); }
.draw { position: absolute; pointer-events: none; z-index: 0; overflow: visible; }
.draw path, .draw ellipse { fill: none; stroke: var(--olive); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.draw .fillable { fill: var(--olive-2); fill-opacity: 0; transition: fill-opacity 1.2s var(--ease); }
.draw.is-filled .fillable { fill-opacity: .22; }
.draw--branch { width: min(32.5rem, 62vw); right: -40px; top: 2.5rem; }
.draw--ribbon { width: 120%; left: -10%; bottom: -4%; max-height: clamp(7.5rem, 17vw, 16.25rem); }
.draw--ribbon path { stroke: var(--brass); stroke-width: 1; }
@media (max-width: 699px) {
  .manifesto__label, .manifesto__text, .facts { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact { padding-bottom: 1.125rem; }
  .draw--branch { opacity: .55; top: 0; }
}

/* ---------- pillars ---------- */
.pillars { padding-block: clamp(4.375rem, 10vw, 8.75rem); background: var(--ivory); color: var(--ink-text); border-top: 1px solid var(--line-paper); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; align-items: end; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-head .label { grid-column: 1 / span 3; color: var(--muted-paper); }
.section-head h2 { grid-column: 4 / span 9; font-size: var(--step-4); }
.section-head p { grid-column: 4 / span 6; margin: 0; color: var(--muted-paper); max-width: 52ch; }
.on-dark .section-head .label, .on-dark .section-head p { color: var(--sage); }
@media (max-width: 699px) { .section-head > * { grid-column: 1 / -1 !important; } }

.pillar-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
.pillar { display: grid; gap: 1.375rem; align-content: start; min-width: 0; }
.pillar:nth-child(1) { grid-column: 1 / span 5; }
.pillar:nth-child(2) { grid-column: 7 / span 6; margin-top: clamp(5rem, 14vw, 13.75rem); }
.pillar__media { aspect-ratio: 4 / 5; border-radius: 2px; max-width: 100%; }
.pillar:nth-child(2) .pillar__media { aspect-ratio: 5 / 6; }
.pillar__word {
  font-family: var(--f-display); font-style: italic; font-size: var(--step-5); line-height: .8; letter-spacing: -.03em;
  color: var(--olive); margin: -0.48em 0 0 -.04em; position: relative; z-index: 2; mix-blend-mode: multiply;
}
.pillar:nth-child(2) .pillar__word { text-align: right; margin-right: -.04em; }
.pillar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line-paper); padding-bottom: 0.75rem; }
.pillar__head h3 { margin: 0; font-family: var(--f-zh-display); font-size: var(--step-2); font-weight: 600; line-height: 1.2; }
.pillar__head h3 .en { font-family: var(--f-display); font-weight: 400; }
.pillar__head .label { color: var(--muted-paper); }
.pillar p { margin: 0; max-width: 54ch; color: #3a3f30; }
.levels { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.levels li { border: 1px solid var(--line-paper); border-radius: 62.4375rem; padding: 0.3125rem 0.8125rem; font-size: var(--step--1); }
@media (max-width: 699px) {
  .pillar:nth-child(1), .pillar:nth-child(2) { grid-column: 1 / -1; margin-top: 0; }
  .pillar:nth-child(2) { margin-top: 2.5rem; }
}

/* ---------- film / phone ---------- */
.film { position: relative; height: 420svh; background: var(--ink); }
.film__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.film__side {
  position: absolute; top: 0; bottom: 0; width: min(30vw, 22.5rem);
  display: grid; gap: 0.875rem; align-content: center; color: var(--sage); z-index: 1;
}
.film__side--l { left: max(32px, env(safe-area-inset-left, 0px)); }
.film__side--r { right: max(32px, env(safe-area-inset-right, 0px)); text-align: right; justify-items: end; }
.film__side h2 { font-size: var(--step-3); color: var(--ivory); }
.film__side p { margin: 0; max-width: 30ch; }
.phone {
  --pw: min(18.75rem, 62vw, 40svh);
  position: relative; z-index: 2; width: var(--pw); aspect-ratio: 9 / 19.5; max-width: 100%;
  border-radius: calc(var(--pw) * .16); padding: calc(var(--pw) * .035);
  background: linear-gradient(145deg, #3e4734, #161b12 40%, #2e3825);
  box-shadow: 0 0 0 1px rgba(236, 230, 214, .14), 0 2.5rem 7.5rem rgba(0, 0, 0, .55), inset 0 0 0 1.5px rgba(236, 230, 214, .08);
  will-change: transform;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .13); overflow: hidden; background: #000; }
.phone__island {
  position: absolute; z-index: 4; top: 2.4%; left: 50%; transform: translateX(-50%);
  width: 30%; height: 3.6%; background: #000; border-radius: 62.4375rem; transition: opacity .3s;
}
.phone__portrait, .phone__landscape { position: absolute; }
.phone__portrait { inset: 0; }
.phone__portrait video, .phone__landscape video { width: 100%; height: 100%; object-fit: cover; filter: sepia(.28) saturate(1) brightness(1.04) hue-rotate(-6deg); }
.phone__landscape {
  /* sized as the rotated screen; rotated back so it reads upright once the phone turns */
  width: calc(var(--pw) * 1.93); height: calc(var(--pw) * .93);
  top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.reel-ui { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; padding: 14% 7% 8%; color: #fff; pointer-events: none; transition: opacity .3s; }
.reel-ui__top { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 500; opacity: .9; }
.reel-ui__bottom { display: grid; gap: 0.375rem; font-size: .74rem; text-shadow: 0 1px 0.5rem rgba(0, 0, 0, .5); }
.reel-ui__who { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.reel-ui__who i { width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--ivory); display: grid; place-items: center; }
.reel-ui__who i .logo-mask { width: 0.8125rem; height: 0.8125rem; color: var(--ink-text); }
.reel-ui__bar { height: 2px; background: rgba(255, 255, 255, .3); border-radius: 2px; overflow: hidden; }
.reel-ui__bar span { display: block; height: 100%; width: 40%; background: #fff; }
.film__caption {
  position: absolute; z-index: 3; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 1.625rem); transform: translateX(-50%);
  color: var(--sage); text-align: center; opacity: 0; width: max-content; max-width: calc(100% - 2rem);
}
@media (max-width: 699px) {
  .film__side { width: auto; left: var(--gutter); right: var(--gutter-r); }
  .film__side--l { top: calc(env(safe-area-inset-top, 0px) + 5.75rem); bottom: auto; }
  .film__side--r { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 1.75rem); text-align: left; justify-items: start; }
  .film__side--r h2 { display: none; }
  .film__side h2 { font-size: var(--step-2); }
  .phone { --pw: min(15rem, 52vw, 34svh); }
}

/* ---------- gallery scatter ---------- */
.scatter { position: relative; height: 320svh; background: var(--ink); }
.scatter__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.scatter__center { position: relative; z-index: 5; text-align: center; display: grid; gap: 1.125rem; justify-items: center; padding-inline: 1rem; }
.scatter__center h2 { font-size: var(--step-4); color: var(--ivory); max-width: 14ch; }
.scatter__center p { margin: 0; color: var(--sage); max-width: 46ch; }
.counter { font-family: var(--f-display); font-style: italic; font-size: var(--step-3); color: var(--olive-2); line-height: 1; font-variant-numeric: tabular-nums; }
.shot {
  position: absolute; left: 50%; top: 50%; width: var(--w, 13.75rem); aspect-ratio: var(--ar, 4 / 3); max-width: 46vw;
  transform: translate(-50%, -50%); border-radius: 2px; will-change: transform, opacity;
  box-shadow: 0 1.875rem 5rem rgba(0, 0, 0, .45);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover img { filter: none; }
.shot figcaption {
  position: absolute; left: 0.5rem; bottom: 0.5rem; z-index: 2; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ivory); background: rgba(22, 27, 18, .6); padding: 2px 0.375rem;
}

/* ---------- classes index ---------- */
.classes { padding-block: clamp(5.625rem, 12vw, 10.625rem); background: var(--moss); position: relative; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.index li { border-bottom: 1px solid var(--line-dark); }
.index a, .index .row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 1.5rem; align-items: baseline;
  padding: clamp(1.125rem, 2.4vw, 1.875rem) 0; text-decoration: none; position: relative;
  transition: padding .5s var(--ease), color .4s;
}
.index .row:hover { padding-left: 1.125rem; }
.index .row:hover .row__title { color: var(--ivory); }
.row__title { font-family: var(--f-display); font-size: var(--step-3); line-height: 1.05; color: #d9d6c2; transition: color .4s; }
.row__title .zh { font-family: var(--f-zh-display); font-weight: 600; font-size: .78em; }
.row__title small { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; color: var(--olive-2); margin-top: 0.375rem; text-transform: uppercase; }
.row__desc { color: var(--sage); margin: 0; min-width: 0; }
.row__tags { display: flex; flex-wrap: wrap; gap: 0.375rem; justify-content: flex-end; }
.row__tags > span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; border: 1px solid var(--line-dark); color: var(--sage); border-radius: 62.4375rem; padding: 0.1875rem 0.625rem; white-space: nowrap; }
.peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: 16.25rem; aspect-ratio: 4 / 5; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .35s var(--ease); border-radius: 2px;
}
.peek.is-on { opacity: 1; }
@media (max-width: 699px) {
  .index .row { grid-template-columns: 1fr; gap: 0.5rem; }
  .row__tags { justify-content: flex-start; }
  .peek { display: none; }
}

/* ---------- timetable ---------- */
.timetable { padding-block: clamp(5.625rem, 12vw, 10.625rem); }
.tt { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1.5rem; }
.tt__days { display: grid; gap: 2px; align-content: start; position: sticky; top: 6.25rem; }
.day-btn {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.625rem; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--line-paper); padding: 0.75rem 0.25rem; cursor: pointer; text-align: left;
  color: var(--muted-paper); transition: color .3s, padding .4s var(--ease);
}
.day-btn b { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.day-btn b .zh { font-family: var(--f-zh-display); font-weight: 600; font-size: .8em; }
.day-btn > span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; }
.day-btn[aria-selected="true"] { color: var(--ink-text); padding-left: 0.875rem; }
.day-btn[aria-selected="true"] b { font-style: italic; }
.day-btn:hover { color: var(--ink-text); }
.tt__panel { min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.375rem; }
.chip {
  border: 1px solid var(--line-paper); background: transparent; border-radius: 62.4375rem; padding: 0.375rem 0.875rem; cursor: pointer;
  font-size: var(--step--1); color: var(--ink-text); display: inline-flex; align-items: center; gap: 0.5rem; transition: background .3s, color .3s;
}
.chip i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--c, var(--olive)); }
.chip[aria-pressed="true"] { background: var(--ink-text); color: var(--ivory); border-color: var(--ink-text); }
.slots { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-text); }
.slot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.125rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line-paper);
}
.slot time { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .92rem; letter-spacing: .02em; }
.slot__name { display: flex; align-items: center; gap: 0.75rem; min-width: 0; font-size: var(--step-1); }
.slot__name i { width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: var(--c); flex: none; }
.slot__name small { color: var(--muted-paper); font-size: var(--step--1); margin-left: 0.25rem; }
.slot__who { font-family: var(--f-display); font-style: italic; font-size: var(--step-1); color: var(--olive); text-align: right; }
.slot--private .slot__name { color: var(--muted-paper); font-size: var(--step-0); }
.slot--open .slot__name { color: var(--olive); font-style: italic; }
.tt__note { margin-top: 1.125rem; color: var(--muted-paper); font-size: var(--step--1); display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.empty { padding: 1.75rem 0; color: var(--muted-paper); }
.flex-note {
  margin-top: 1.375rem; padding: 1.25rem 1.375rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.125rem; align-items: center;
  background: var(--ivory-2); border-radius: 2px;
}
.flex-note p { margin: 0; color: #3a3f30; max-width: 62ch; }
.flex-note b { color: var(--ink-text); font-weight: 600; }
@media (max-width: 699px) {
  .tt { grid-template-columns: 1fr; }
  .tt__days { position: static; display: flex; overflow-x: auto; gap: 0.375rem; padding-bottom: 0.375rem; scrollbar-width: none; }
  .day-btn { flex: none; width: auto; border: 1px solid var(--line-paper); border-radius: 62.4375rem; padding: 0.375rem 0.875rem; }
  .day-btn > span { display: none; }
  .day-btn b { font-size: 1rem; }
  .day-btn[aria-selected="true"] { background: var(--ink-text); color: var(--ivory); padding-left: 0.875rem; }
  .slot { gap: 0.25rem 0.75rem; }
  .flex-note { grid-template-columns: 1fr; }
}

/* ---------- pathway ---------- */
.pathway { position: relative; background: var(--ink); }
.pathway__bg { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.pathway__bg video { width: 100%; height: 100%; object-fit: cover; filter: sepia(.38) saturate(.85) brightness(.62) hue-rotate(-8deg); }
.pathway__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(22, 27, 18, .15), rgba(22, 27, 18, .8)); }
.pathway__content { position: relative; margin-top: -100svh; padding-block: 22svh 30svh; }
.pathway__intro { min-height: 60svh; display: grid; align-content: center; }
.pathway__intro h2 { font-size: var(--step-4); max-width: 14ch; }
.pathway__intro .label { color: var(--sage); margin-bottom: 1.25rem; }
.step {
  min-height: 70svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; align-content: center;
}
.step__n { grid-column: 1 / span 3; font-family: var(--f-display); font-style: italic; font-size: var(--step-5); line-height: .8; color: var(--olive-2); font-variant-numeric: tabular-nums; }
.step__body { grid-column: 5 / span 6; display: grid; gap: 0.875rem; align-content: center; border-top: 1px solid var(--line-dark); padding-top: 1.25rem; }
.step__body h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: var(--step-3); line-height: 1.05; }
.step__body h3 .zh { font-family: var(--f-zh-display); font-weight: 600; font-size: .85em; }
.step__body p { margin: 0; color: var(--sage); max-width: 46ch; }
@media (max-width: 699px) {
  .step__n, .step__body { grid-column: 1 / -1; }
  .step { min-height: 56svh; }
}

/* ---------- faculty ---------- */
.faculty { padding-block: clamp(5.625rem, 12vw, 10.625rem); overflow: hidden; }
.faculty__track {
  display: flex; gap: clamp(1rem, 2vw, 1.75rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.25rem;
  scrollbar-width: thin; scrollbar-color: var(--olive) transparent; cursor: grab;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .faculty__track { padding-left: max(32px, calc((100vw - var(--wrap)) / 2)); } }
.faculty__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.tcard {
  flex: none; width: clamp(13rem, 17vw, 17.5rem); scroll-snap-align: start; display: grid; gap: 0.875rem; align-content: start;
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink-text);
}
.tcard:nth-child(even) { margin-top: 3.5rem; }
@media (max-width: 699px) { .tcard { width: 15rem; } } /* phones keep the original card size */
.tcard__img { aspect-ratio: 3 / 4; border-radius: 2px; max-width: 100%; }
.tcard__img img { object-position: 50% 18%; }
.tcard:hover .tcard__img img { filter: sepia(.1) saturate(.95) brightness(1); transform: scale(1.03); }
.tcard__name { font-family: var(--f-display); font-style: italic; font-size: var(--step-2); line-height: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 0.625rem; }
.tcard__name > span { font-family: var(--f-mono); font-style: normal; font-size: .7rem; letter-spacing: .12em; color: var(--muted-paper); text-transform: uppercase; }
.tcard__role { color: var(--muted-paper); font-size: var(--step--1); margin: -6px 0 0; }
.drag-hint { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.125rem; color: var(--muted-paper); }
.faculty__note { margin-top: 1.875rem; color: var(--muted-paper); font-size: var(--step--1); max-width: 70ch; }

.bio {
  border: 0; padding: 0; background: var(--ivory); color: var(--ink-text);
  width: min(57.5rem, calc(100vw - 2rem)); max-height: calc(100svh - 3rem); border-radius: 2px; overflow: auto;
}
.bio::backdrop { background: rgba(22, 27, 18, .72); -webkit-backdrop-filter: blur(0.375rem); backdrop-filter: blur(0.375rem); }
.bio__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.bio__img { min-height: 20rem; }
.bio__img img { object-position: 50% 15%; }
.bio__text { padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1rem; align-content: start; min-width: 0; }
.bio__text h3 { margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: var(--step-3); line-height: 1; }
.bio__text ul { margin: 0; padding-left: 1.1em; display: grid; gap: 0.375rem; color: #3a3f30; }
.bio__close { position: sticky; top: 0.75rem; float: right; margin: 0.75rem 0.75rem 0 0; z-index: 2; }
@media (max-width: 700px) { .bio__inner { grid-template-columns: 1fr; } .bio__img { height: 300px; } }

/* ---------- careers ---------- */
.careers { background: var(--moss); padding-block: clamp(5.625rem, 12vw, 10.625rem); position: relative; overflow: hidden; }
.marquee { overflow: hidden; border-block: 1px solid var(--line-dark); padding-block: 1.125rem; margin-block: clamp(2.5rem, 6vw, 4.375rem); }
.marquee__row { display: flex; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__row > span { font-family: var(--f-display); font-style: italic; font-size: var(--step-3); line-height: 1; color: var(--sage); white-space: nowrap; display: flex; align-items: center; gap: 3rem; }
.marquee__row > span::after { content: ""; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--olive); }
.marquee__row .zh { font-family: var(--f-zh-display); font-style: normal; font-weight: 600; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.careers__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
.offer { grid-column: 1 / span 4; display: grid; gap: 1.75rem; align-content: start; }
.offer h3 { margin: 0; font-family: var(--f-mono); font-weight: 400; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.offer dl { margin: 0; display: grid; gap: 1.125rem; }
.offer dt { font-family: var(--f-display); font-size: var(--step-1); }
.offer dt .zh { font-family: var(--f-zh-display); font-weight: 600; font-size: .92em; }
.offer dd { margin: 0.25rem 0 0; color: var(--sage); font-size: var(--step--1); }
.offer__mail { border-top: 1px solid var(--line-dark); padding-top: 1.125rem; display: grid; gap: 0.5rem; color: var(--sage); font-size: var(--step--1); }
.mailrow { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.mailrow code { font-family: var(--f-mono); font-size: .9rem; color: var(--ivory); user-select: all; word-break: break-all; }
.mini { border: 1px solid var(--line-dark); background: none; border-radius: 62.4375rem; padding: 0.25rem 0.75rem; font-size: .74rem; cursor: pointer; color: var(--sage); }
.mini:hover { color: var(--ivory); border-color: var(--sage); }

.apply { grid-column: 6 / span 7; display: grid; gap: 1.375rem; background: var(--moss-2); padding: clamp(1.375rem, 3.4vw, 2.75rem); border-radius: 2px; border: 1px solid var(--line-dark); min-width: 0; }
.apply__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.apply__head h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); }
.apply__head h3 .zh { font-family: var(--f-zh-display); font-weight: 600; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem 1.25rem; }
.field { display: grid; gap: 0.375rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field legend { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(185, 190, 156, .35); padding: 0.5rem 0; color: var(--ivory);
  border-radius: 0; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 5.25rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ivory); }
.field input::placeholder, .field textarea::placeholder { color: rgba(185, 190, 156, .45); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.picks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick > span { display: inline-block; border: 1px solid var(--line-dark); border-radius: 62.4375rem; padding: 0.375rem 0.8125rem; font-size: .84rem; color: var(--sage); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.pick input:checked + span { background: var(--ivory); color: var(--ink-text); border-color: var(--ivory); }
.pick input:focus-visible + span { outline: 1.5px solid var(--brass); outline-offset: 2px; }
.drop {
  position: relative; border: 1px dashed rgba(185, 190, 156, .4); border-radius: 2px; padding: 1.25rem; display: flex; gap: 0.875rem; align-items: center;
  color: var(--sage); transition: border-color .3s, background .3s; cursor: pointer;
}
.drop.is-over, .drop:hover { border-color: var(--ivory); background: rgba(236, 230, 214, .04); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { flex: none; }
.drop b { color: var(--ivory); font-weight: 500; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-foot small { color: var(--sage); max-width: 40ch; }
.err { color: #e3b7a0; font-size: .8rem; min-height: 1em; }
.done { display: grid; gap: 0.875rem; align-content: start; }
.done h3 { margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: var(--step-3); line-height: 1; }
.done p { margin: 0; color: var(--sage); }
@media (max-width: 699px) {
  .offer, .apply { grid-column: 1 / -1; }
  .fields { grid-template-columns: 1fr; }
}

/* ---------- visit / footer ---------- */
.visit { padding-block: clamp(5.625rem, 12vw, 10rem) 0; overflow: hidden; }
.visit__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
.visit__lead { grid-column: 1 / span 7; display: grid; gap: 1.5rem; align-content: start; }
.visit__lead h2 { font-size: var(--step-4); }
.visit__cols { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; align-content: start; }
.visit__cols h3 { margin: 0 0 0.5rem; font-family: var(--f-mono); font-weight: 400; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-paper); }
.visit__cols p { margin: 0; }
.visit__cols a { text-decoration: none; border-bottom: 1px solid var(--line-paper); }
.visit__cols a:hover { border-color: var(--ink-text); }
.socials { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; }
.visit__cols a.east {
  grid-column: 1 / -1; display: grid; gap: 0.25rem; padding: 1.125rem 1.25rem; border: 1px solid var(--line-paper); border-radius: 2px;
  text-decoration: none; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.visit__cols a.east:hover { background: var(--olive); color: var(--ivory); border-color: var(--olive); }
.east__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.east__name { font-family: var(--f-display); font-style: italic; font-size: var(--step-2); line-height: 1.1; }
.east__addr { font-size: var(--step--1); opacity: .8; }
.east .arrow { display: inline-block; transition: transform .4s var(--ease); }
.east:hover .arrow { transform: translate(0.1875rem, -3px); }
.footbar a { text-decoration: none; }
.footbar a:hover { color: var(--ink-text); }
.sheet__foot { display: flex; flex-wrap: wrap; gap: 1rem 1.375rem; align-items: center; }
.sheet__east { color: var(--sage); text-decoration: none; font-size: .92rem; border-bottom: 1px solid var(--line-dark); }
.wordmark {
  font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--olive);
  font-size: clamp(5rem, 24vw, 22rem); line-height: .76; letter-spacing: -.045em; text-align: center; margin: clamp(3.125rem, 8vw, 6.25rem) 0 0;
  white-space: nowrap; user-select: none;
}
.footbar { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding-block: 1.125rem calc(env(safe-area-inset-bottom, 0px) + 1.125rem); border-top: 1px solid var(--line-paper); color: var(--muted-paper); font-size: .78rem; }
@media (max-width: 699px) {
  .visit__lead, .visit__cols { grid-column: 1 / -1; }
}

/* ---------- reveal ---------- */
.rise { transform: translateY(1.625rem); opacity: .001; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.rise.in { transform: none; opacity: 1; }
.no-js .rise, .reduced .rise { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
}

/* ---------- free-trial channels dialog ---------- */
.book {
  border: 0; padding: clamp(1.5rem, 4vw, 3rem); background: var(--moss); color: var(--ivory);
  width: min(48.75rem, calc(100vw - 2rem)); max-height: calc(100svh - 3rem); overflow: auto; border-radius: 2px;
  box-shadow: 0 2.5rem 7.5rem rgba(0, 0, 0, .45);
}
.book::backdrop { background: rgba(22, 27, 18, .72); -webkit-backdrop-filter: blur(0.375rem); backdrop-filter: blur(0.375rem); }
.book__close { float: right; }
.book__head { display: grid; gap: 0.875rem; margin-bottom: 1.75rem; }
.book__head .label { color: var(--sage); }
.book__head h3 { font-size: var(--step-3); }
.book__head p { margin: 0; color: var(--sage); max-width: 56ch; }
.channels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.channels > li { border-bottom: 1px solid var(--line-dark); min-width: 0; }
.channels > li:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.ch {
  --knock: var(--moss);
  display: grid; grid-template-columns: 1.875rem minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 1rem; row-gap: 2px; align-items: center;
  padding: 1.125rem 1rem; text-decoration: none; color: var(--ivory); transition: background .35s var(--ease);
}
a.ch:hover { background: var(--moss-2); --knock: var(--moss-2); }
.ch__i { grid-row: 1 / 3; width: 1.875rem; height: 1.875rem; color: var(--ivory); }
.ch__name { font-family: var(--f-display); font-style: italic; font-size: var(--step-1); line-height: 1.1; }
.ch__name .zh { font-family: var(--f-zh-display); font-style: normal; font-weight: 600; font-size: .9em; }
.ch__h { grid-column: 2; font-family: var(--f-mono); font-size: .8rem; color: var(--sage); word-break: break-all; }
.ch__go { grid-column: 3; grid-row: 1 / 3; font-size: .82rem; color: var(--sage); white-space: nowrap; }
a.ch:hover .ch__go { color: var(--ivory); }
.ch__go a { color: var(--ivory); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ivory); text-decoration: underline; cursor: pointer; font-size: inherit; }
@media (max-width: 640px) {
  .channels { grid-template-columns: 1fr; }
  .channels > li:nth-child(odd) { border-right: 0; }
}

/* ---------- follow (central socials) ---------- */
.follow { margin-top: clamp(4.375rem, 9vw, 7.5rem); display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); }
.follow__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; align-items: end; }
.follow__head .label { grid-column: 1 / span 3; color: var(--muted-paper); }
.follow__head h2 { grid-column: 4 / span 9; font-size: var(--step-3); }
.follow__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem; }
.soc {
  --circle: var(--ink-text); --glyph: var(--ivory);
  position: relative; display: grid; gap: 0.375rem; align-content: start; padding: clamp(1.25rem, 2.4vw, 1.875rem);
  border: 1px solid var(--line-paper); border-radius: 2px; text-decoration: none; color: var(--ink-text); min-width: 0;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s;
}
.soc:hover { background: var(--ink-text); color: var(--ivory); border-color: var(--ink-text); --circle: var(--ivory); --glyph: var(--ink-text); }
.soc__i {
  --knock: var(--circle);
  width: clamp(4.5rem, 6.4vw, 5.75rem); height: clamp(4.5rem, 6.4vw, 5.75rem); border-radius: 50%; background: var(--circle); color: var(--glyph);
  display: grid; place-items: center; margin-bottom: 0.875rem; transition: background .45s var(--ease), color .45s var(--ease);
}
.soc__i svg { width: 50%; height: 50%; }
.soc__name { font-family: var(--f-display); font-style: italic; font-size: var(--step-2); line-height: 1.05; }
.soc__name .zh { font-family: var(--f-zh-display); font-style: normal; font-weight: 600; font-size: .86em; }
.soc__h { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em; color: var(--muted-paper); word-break: break-all; transition: color .45s; }
.soc:hover .soc__h { color: var(--sage); }
.soc__go { position: absolute; top: 1.125rem; right: 1.25rem; font-size: 1.2rem; transition: transform .45s var(--ease); }
.soc:hover .soc__go { transform: translate(0.1875rem, -3px); }
@media (max-width: 699px) {
  .follow__head > * { grid-column: 1 / -1 !important; }
  .follow__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
