/* ==========================================================================
   星光來了 Astro Light Ra — stylesheet
   Night → Light → Night. One page, one journey.
   ========================================================================== */

/* ==========================================================================
   FONTS — 自託管子集（只含本站用到的字，重新產生：tools/subset-fonts.py）
   ========================================================================== */
/* 300 只含標題用到的字（unicode-range 由 tools/subset-fonts.py 產生）；不在範圍內的字自動用 400 檔，不會掉回系統字型 */
@font-face { font-family: "LXGW WenKai TC"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/lxgw-wenkai-tc-300.woff2") format("woff2");
  unicode-range: U+20-7E, U+B0, U+B7, U+D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2026, U+3000-3002, U+3008-3011, U+3014-3015, U+30FB, U+4E00, U+4E0D, U+4E4B, U+4E86, U+4EAE, U+4EE5, U+4F4D, U+4F5C, U+4F60, U+4F86, U+500B, U+5011, U+5099, U+5148-5149, U+5167-5168, U+5171, U+5177, U+5207, U+5230, U+524D, U+5275, U+529B, U+52D5, U+5408, U+540C, U+547D, U+555F, U+55CE, U+56DB, U+5718, U+5728, U+57DF, U+5834, U+5916, U+591A, U+5927, U+597D, U+5B78, U+5BDF, U+5BE6, U+5C08, U+5C0E, U+5C6C, U+5DF1, U+5E2B, U+5E38, U+5EFA, U+5F15, U+5F71, U+5FC3, U+60C5, U+610F, U+6211, U+627E, U+628A, U+632F, U+63DB, U+6574, U+65B9, U+65BC, U+65C5, U+65E5, U+661F, U+662F, U+667A, U+66F4, U+6709, U+6838, U+68B5, U+69CB, U+6B21, U+6B63, U+6BCF, U+6CD5, U+6D3B, U+6DC5, U+6E96, U+70BA, U+7387, U+751F, U+7565, U+7642, U+7652, U+7684, U+76DB, U+770B, U+771F, U+77E5, U+795E, U+7ACB, U+7B56, U+7BC0, U+7BC9, U+7CFB, U+7D61, U+7D71, U+7DD2, U+7DF4, U+7F8E, U+7FA4, U+7FD2, U+8005, U+8056, U+805A, U+806F, U+8072, U+80FD, U+81EA, U+8207, U+822A, U+843D, U+88E1, U+898B, U+89BA, U+8A0A, U+8ABF, U+8B58, U+8C50, U+8CC7, U+8CE6, U+8D77, U+8EAB, U+9019, U+90FD, U+9192, U+91CF, U+958B, U+95DC, U+968A, U+969B, U+9748, U+97F3, U+97FF, U+9801, U+9818, U+983B, U+9928, U+9AD4, U+9EDE, U+FF01, U+FF08-FF09, U+FF0C, U+FF0F-FF1B, U+FF1F, U+FF5C, U+FF5E; /* FONT-RANGE-300 */ }
@font-face { font-family: "LXGW WenKai TC"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lxgw-wenkai-tc-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 400; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-var.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-italic-var.woff2") format("woff2"); }

:root {
  /* palette */
  --night: #0b0a12;
  --night-rgb: 11, 10, 18;
  --night-2: #15131f;
  --night-3: #221f2e;
  --cream: #f3eee4;
  --cream-2: #e9e1d2;
  --cream-3: #d9cfbb;
  --ink: #1b1822;
  --ink-2: #4a4452;
  --ink-3: #8a8390;
  --gold: #c9a35c;
  --gold-2: #e6c98a;
  --gold-3: #9a7a3c;

  /* semantic (light sections default) */
  --bg: var(--cream);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --line: rgba(27, 24, 34, 0.14);

  /* type */
  /* 霞鶩文楷：楷書骨架、手寫溫度，整站的「身心靈」語氣都靠它 */
  --serif-cn: "LXGW WenKai TC", "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans-cn: "LXGW WenKai TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --ui-cn: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;

  --fs-display: clamp(4.2rem, 12.5vw, 12.5rem);
  --fs-h2: clamp(2rem, 4.6vw, 4.4rem);
  --fs-h3: clamp(1.5rem, 2.6vw, 2.4rem);
  --fs-lead: clamp(1.05rem, 1.35vw, 1.3rem);
  --fs-body: clamp(1.02rem, 1.1vw, 1.14rem);
  --fs-label: 0.72rem;

  /* spacing */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(6rem, 14vw, 13rem);
  --nav-h: 4.5rem;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans-cn);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-menu-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 1000;
  padding: 0.6rem 1rem; background: var(--gold); color: var(--night);
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip:focus { transform: none; }

/* ---------- sections / theme ---------- */
main { background: var(--cream); }
.section { position: relative; padding: var(--section) var(--gutter); }
[data-theme="light"] { background: var(--bg); color: var(--fg); --line: rgba(27, 24, 34, 0.14); --fg-2: var(--ink-2); --fg-3: var(--ink-3); }
[data-theme="dark"] { background: var(--night); color: var(--cream); --line: rgba(243, 238, 228, 0.14); --fg-2: rgba(243,238,228,0.7); --fg-3: rgba(243,238,228,0.6); } /* 0.45 → 0.6：深色區塊小字對比 6:1 */

.section__head {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
@media (min-width: 900px) {
  .section__head { grid-template-columns: 1fr 3fr; align-items: start; }
  .section__head .label { padding-top: 0.9em; }
}
.section__title {
  font-family: var(--serif-cn); font-weight: 300;
  font-size: var(--fs-h2); line-height: 1.3; letter-spacing: 0.02em;
}
.section__hint {
  grid-column: 1 / -1; font-size: var(--fs-label); letter-spacing: 0.25em;
  color: var(--fg-3); text-transform: uppercase;
}

.label {
  display: inline-flex; align-items: baseline; gap: 0.8em;
  font-size: var(--fs-label); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-2); font-weight: 400;
}
.label i { font-style: normal; font-family: var(--serif-en); font-size: 1.1em; color: var(--gold); letter-spacing: 0.1em; }
.label em { font-style: italic; font-family: var(--serif-en); font-size: 1.2em; letter-spacing: 0.05em; text-transform: none; color: var(--fg-3); }
.label--light { color: rgba(243,238,228,0.75); }
.label--light em { color: rgba(243,238,228,0.65); } /* 0.5 → 0.65：深色區塊上 6.6:1 */

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.8em;
  padding: 0.95em 1.7em; border-radius: 999px;
  font-size: 0.86rem; letter-spacing: 0.2em; font-weight: 400;
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease-out), border-color 0.5s;
  will-change: transform;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--gold); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--ghost { color: var(--cream); border-color: rgba(243,238,228,0.3); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--night); border-color: var(--gold); }
.btn--ghost.btn--dark { color: var(--ink); border-color: var(--line); }
.btn--ghost.btn--dark:hover, .btn--ghost.btn--dark:focus-visible { color: var(--night); border-color: var(--gold); }
.btn--text { border: 0; padding-inline: 0.4em; color: rgba(243,238,228,0.75); }
.btn--text::before { display: none; }
.btn--text span { position: relative; }
.btn--text span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.3em; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(0.35);
  transition: transform 0.6s var(--ease-out), opacity 0.3s;
}
.btn--text:hover span::after { transform: scaleX(1); transform-origin: left; }
.btn--text:hover { color: var(--gold-2); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--nav-h); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  color: #fff; mix-blend-mode: difference;
  transform: translateY(-110%); opacity: 0;
  transition: transform 0.9s var(--ease-out) 0.2s, opacity 0.6s 0.2s;
}
.is-ready .nav { transform: none; opacity: 1; }
.nav__brand { display: flex; align-items: center; gap: 0.7rem; line-height: 1.1; }
.nav__brand .mark { width: 2.9rem; height: auto; flex: none; --gold-2: currentColor; opacity: 0.95; }
.nav__brand-text { display: flex; flex-direction: column; }
.nav__brand-cn { font-family: var(--serif-cn); font-weight: 400; letter-spacing: 0.3em; font-size: 0.95rem; }
.nav__brand-en { font-family: var(--serif-en); font-style: italic; font-size: 0.78rem; letter-spacing: 0.12em; opacity: 0.7; }
.nav__links { display: none; gap: 2.2rem; }
.nav__links a {
  position: relative; font-size: 0.82rem; letter-spacing: 0.3em; padding: 0.4em 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0.15em; right: 0.45em; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  display: none; align-items: center; gap: 0.6em;
  padding: 0.65em 1.2em; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px;
  font-size: 0.78rem; letter-spacing: 0.2em; transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.nav__cta:hover { background: #fff; color: #000; border-color: #fff; }
.nav__burger {
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center; gap: 0;
  position: relative;
}
.nav__burger span {
  position: absolute; width: 1.5rem; height: 1px; background: currentColor;
  transition: transform 0.5s var(--ease-io), opacity 0.3s;
}
.nav__burger span:first-child { transform: translateY(-4px); }
.nav__burger span:last-child { transform: translateY(4px); }
.is-menu-open .nav__burger span:first-child { transform: rotate(45deg); }
.is-menu-open .nav__burger span:last-child { transform: rotate(-45deg); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--night); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-io);
  visibility: hidden;
}
.menu[aria-hidden="false"] { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.menu__links { position: relative; display: grid; gap: 0.2em; }
.menu__links a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--serif-cn); font-weight: 300; font-size: clamp(2rem, 9vw, 3.4rem);
  letter-spacing: 0.08em; line-height: 1.5;
  transform: translateY(40px); opacity: 0;
  transition: transform 0.8s var(--ease-out), opacity 0.6s;
}
.menu__links a i { font-style: normal; font-family: var(--serif-en); font-size: 0.4em; color: var(--gold); letter-spacing: 0.1em; }
.menu[aria-hidden="false"] .menu__links a { transform: none; opacity: 1; }
.menu[aria-hidden="false"] .menu__links a:nth-child(1) { transition-delay: 0.25s; }
.menu[aria-hidden="false"] .menu__links a:nth-child(2) { transition-delay: 0.32s; }
.menu[aria-hidden="false"] .menu__links a:nth-child(3) { transition-delay: 0.39s; }
.menu[aria-hidden="false"] .menu__links a:nth-child(4) { transition-delay: 0.46s; }
.menu[aria-hidden="false"] .menu__links a:nth-child(5) { transition-delay: 0.53s; }
.menu[aria-hidden="false"] .menu__links a:nth-child(6) { transition-delay: 0.6s; }
.menu__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  display: flex; gap: 2rem; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--fg-3);
}

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--night); color: var(--cream);
  display: grid; place-content: center; justify-items: center; gap: 0.6rem; overflow: hidden;
}
.loader__orbit { width: clamp(160px, 22vw, 240px); opacity: 0.95; }
.loader__ring { stroke: var(--cream); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease-io) forwards; }
.loader__ellipse { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease-io) 0.3s forwards; opacity: 0.85; }
.loader__star { fill: var(--gold-2); opacity: 0; animation: fadein 0.6s 0.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.loader__word {
  position: relative; display: flex; gap: 0.3em; margin-top: -0.4rem;
  font-family: var(--serif-cn); font-weight: 300; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 0.3em;
}
.loader__word span { opacity: 0; transform: translateY(0.4em); animation: fadeup 0.9s var(--ease-out) forwards; }
.loader__word span:nth-child(1) { animation-delay: 0.5s; }
.loader__word span:nth-child(2) { animation-delay: 0.62s; }
.loader__word span:nth-child(3) { animation-delay: 0.74s; }
.loader__word span:nth-child(4) { animation-delay: 0.86s; }
@keyframes fadeup { to { opacity: 1; transform: none; } }
.loader__count {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font-family: var(--serif-en); font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 300; line-height: 1;
  color: rgba(243,238,228,0.5); font-variant-numeric: tabular-nums;
}
.loader.is-done { pointer-events: none; }
.no-loader .loader { display: none; } /* boot.js：24 小時內回訪直接略過 preloader */

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; mix-blend-mode: difference; }
  .cursor__dot {
    position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff;
    transform: translate(-50%, -50%);
  }
  .cursor__ring {
    position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7);
    transform: translate(-50%, -50%) scale(1); display: grid; place-items: center;
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
  }
  .cursor__label { font-size: 0.7rem; letter-spacing: 0.2em; color: #000; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
  .cursor.is-link .cursor__ring { width: 56px; height: 56px; background: rgba(255,255,255,0.18); }
  .cursor.is-media .cursor__ring { width: 96px; height: 96px; background: #fff; border-color: #fff; }
  .cursor.is-media .cursor__label { opacity: 1; }
  .cursor.is-media .cursor__dot { opacity: 0; }
  .cursor.is-hidden { opacity: 0; }
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -20%; z-index: 150; pointer-events: none; opacity: 0.045; will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 33% { transform: translate(-2%, 1%); } 66% { transform: translate(1%, -2%); } 100% { transform: translate(0, 0); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: clip;
  display: grid; align-items: center; padding: calc(var(--nav-h) + 2rem) var(--gutter) 6rem;
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 2; max-width: 1400px; width: 100%; margin: 0 auto; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  font-size: var(--fs-label); letter-spacing: 0.3em; color: rgba(243,238,228,0.65);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.hero__eyebrow span:first-child { font-family: var(--serif-en); font-style: italic; font-size: 1.1rem; letter-spacing: 0.15em; color: var(--gold-2); }
.hero__eyebrow-sep { width: 3rem; height: 1px; background: rgba(243,238,228,0.3); }
.hero__title {
  font-family: var(--serif-cn); font-weight: 300; font-size: var(--fs-display);
  line-height: 1; letter-spacing: 0.08em; display: grid; gap: 0.08em; margin: 0;
}
.hero__title-row { display: flex; }
.hero__title-row--sub { color: var(--gold-2); font-size: 0.38em; letter-spacing: 0.35em; margin-top: 0.5em; margin-left: 0.15em; }
.char { display: inline-block; will-change: transform, opacity; }
.js .char { opacity: 0; transform: translateY(0.5em) rotate(4deg); }
.hero__vertical {
  position: absolute; right: 0; top: 0; writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--serif-cn); font-size: 0.85rem; letter-spacing: 0.5em; color: rgba(243,238,228,0.45);
  display: none;
}
.hero__vertical::before { content: ""; display: block; width: 1px; height: 4rem; margin: 0 auto 1.5rem; background: var(--gold); opacity: 0.6; }
@media (min-width: 900px) { .hero__vertical { display: block; } }
.hero__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: clamp(2rem, 5vw, 4rem); }
.js .hero__actions, .js .hero__eyebrow { opacity: 0; transform: translateY(16px); }

.hero__portal {
  position: absolute; z-index: 1; left: 50%; bottom: -6vh;
  width: min(36vw, 520px); aspect-ratio: 3 / 4; transform: translateX(-50%);
  pointer-events: none;
}
@media (min-width: 900px) {
  .hero__portal { left: auto; right: 8vw; transform: none; width: min(30vw, 460px); bottom: -4vh; }
  .hero__vertical { right: 1.5vw; }
}
.hero__portal::before {
  content: ""; position: absolute; inset: -30% -40% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(230,201,138,0.22), rgba(230,201,138,0.06) 50%, transparent 72%);
  filter: blur(10px);
}
.hero__portal-mask {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 0 120px rgba(230,201,138,0.14);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.15); }
@media (max-width: 899px) {
  .hero { padding-bottom: 46vh; }
  .hero__portal { width: 62vw; bottom: -4vh; }
  .hero__scroll { display: none; }
  .br-desk { display: none; }
}
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 2rem; z-index: 2;
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--serif-en); font-style: italic; font-size: 0.85rem; letter-spacing: 0.2em; color: rgba(243,238,228,0.5);
}
.hero__scroll-line { width: 3rem; height: 1px; background: rgba(243,238,228,0.4); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--gold-2); transform: translateX(-100%); animation: scrollline 2.2s var(--ease-io) infinite; }
@keyframes scrollline { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ---------- about ---------- */
.about__grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 7fr 5fr; column-gap: var(--gutter); row-gap: clamp(3rem, 6vw, 5rem); align-items: start;
  }
  .about__quote { grid-column: 1 / -1; }
  .about__body { padding-left: clamp(0px, 8vw, 8rem); }
}
.about__quote {
  font-family: var(--serif-cn); font-weight: 300; font-size: var(--fs-h2); line-height: 1.35; letter-spacing: 0.02em;
}
.about__body { display: grid; gap: 1.6em; max-width: 32em; font-size: var(--fs-lead); line-height: 2.1; color: var(--fg-2); }
.about__body p::first-letter { color: var(--gold-3); }
.about__photo { margin-top: 1rem; }
@media (min-width: 900px) { .about__photo { margin-top: -4rem; } }
.about__photo figcaption { margin-top: 0.8rem; font-size: var(--fs-label); letter-spacing: 0.25em; color: var(--fg-3); }
.img-reveal { position: relative; overflow: hidden; }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1.4s var(--ease-out); }
.js .img-reveal { clip-path: inset(0 0 100% 0); }
.js .img-reveal.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-io); }
.js .img-reveal.is-in img { transform: scale(1.02); }

.about__video { margin-top: var(--section); }
.video {
  position: relative; overflow: hidden; border-radius: 4px; background: var(--night);
  aspect-ratio: 16 / 9; width: min(100%, calc(80vh * 16 / 9)); margin: 0 auto;
}
.video video { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--cream);
  transition: opacity 0.5s, visibility 0.5s;
}
.video.is-playing .video__play { opacity: 0; visibility: hidden; }
.video__ring {
  width: clamp(120px, 14vw, 180px); animation: spin 14s linear infinite;
  font-family: var(--sans-cn); font-size: 7.2px; letter-spacing: 0.22em; fill: var(--cream);
}
.video__tri { position: absolute; width: 28px; color: var(--gold-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.video__tag {
  position: absolute; left: 1.5rem; bottom: 1.2rem; font-size: var(--fs-label); letter-spacing: 0.25em;
  color: rgba(243,238,228,0.7); pointer-events: none;
}
.video.is-playing .video__tag { opacity: 0; }

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden; border-top: 1px solid rgba(27,24,34,0.14); border-bottom: 1px solid rgba(27,24,34,0.14);
  background: var(--cream); color: var(--ink-2);
  padding: 1.1rem 0; font-family: var(--serif-cn); font-size: clamp(1rem, 1.6vw, 1.4rem); letter-spacing: 0.3em;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__row { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker__row span { padding-right: 2.2em; white-space: nowrap; }
.ticker__row i { font-style: normal; color: var(--gold); padding-right: 2.2em; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker--dark { color: rgba(243,238,228,0.65); --line: rgba(243,238,228,0.14); }

/* ---------- programs: sticky stack ---------- */
.programs { padding-bottom: 0; }
.stack { display: grid; gap: 0; }
.stack__card {
  position: sticky; top: calc(var(--nav-h) + 2vh);
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  min-height: 74vh; padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--cream); border-top: 1px solid var(--line);
  transform-origin: top center; will-change: transform;
}
.stack__card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--cream-3);
  opacity: var(--dim, 0); transition: none;
}
.stack__card:nth-child(2) { background: var(--cream-2); top: calc(var(--nav-h) + 4vh); }
.stack__card:nth-child(3) { background: var(--cream-3); top: calc(var(--nav-h) + 6vh); }
.stack__card:nth-child(4) { background: var(--night-3); color: var(--cream); top: calc(var(--nav-h) + 8vh); --line: rgba(243,238,228,0.14); --fg-2: rgba(243,238,228,0.7); }
@media (min-width: 900px) {
  .stack__card { grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; }
}
.stack__media { overflow: hidden; aspect-ratio: 4 / 3; }
.stack__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.6s var(--ease-out); }
.stack__card:hover .stack__media img { transform: scale(1); }
.stack__text { display: grid; gap: 0.6rem; align-content: center; max-width: 30em; }
.stack__index { font-family: var(--serif-en); font-size: 1.1rem; letter-spacing: 0.2em; color: var(--gold); }
.stack__text h3 { font-family: var(--serif-cn); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.2; letter-spacing: 0.06em; }
.stack__sub { font-size: 1rem; letter-spacing: 0.4em; color: var(--gold-3); margin-top: -0.2rem; }
.stack__card:nth-child(4) .stack__sub { color: var(--gold-2); }
.stack__desc { margin-top: 1rem; font-size: var(--fs-lead); color: var(--fg-2); line-height: 2; }
.stack__spacer { height: 10vh; }

/* ---------- mentors ---------- */
.mentors__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
}
@media (min-width: 900px) { .mentors__grid { grid-template-columns: repeat(4, 1fr); } }
.mentor { display: grid; gap: 1rem; }
@media (min-width: 900px) { .mentor:nth-child(2n) { transform: translateY(clamp(0px, 5vw, 4rem)); } }
@media (max-width: 899px) { .mentor:nth-child(2n) { transform: translateY(3rem); } }
.mentor__photo { aspect-ratio: 3 / 4; }
.mentor__photo img { filter: saturate(0.85); transition: transform 1.4s var(--ease-out), filter 0.8s; }
.mentor:hover .mentor__photo img { transform: scale(1.06) !important; filter: saturate(1); }
.mentor__meta { display: grid; gap: 0.3rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.mentor__meta h3 { font-family: var(--serif-cn); font-weight: 400; font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: 0.12em; }
.mentor__skills { display: flex; flex-wrap: wrap; gap: 0.2em 1em; font-size: 0.85rem; color: var(--fg-2); letter-spacing: 0.06em; }
.mentor__skills li { position: relative; }
.mentor__skills li + li::before { content: "·"; position: absolute; left: -0.65em; color: var(--gold); }

/* ---------- news: horizontal ---------- */
.news { padding-right: 0; overflow: clip; }
.news .section__head { padding-right: var(--gutter); }
.news__track {
  display: flex; gap: clamp(1rem, 2.5vw, 2.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-right: var(--gutter); padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.news__track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  /* pinned horizontal scroll: the whole section must fit one viewport, so posters scale with height */
  /* deterministic sizing: head row is fixed, poster height is a calc of the viewport, so the track
     width is identical before and during the pin (ScrollTrigger measures it on refresh) */
  .news { --news-head: 7.5rem; --news-body: 11.5rem; height: 100vh; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 2.5rem; display: grid; grid-template-rows: var(--news-head) 1fr; align-items: start; }
  .news .section__head { margin-bottom: 0; height: var(--news-head); align-content: start; }
  .news .section__title { font-size: clamp(1.8rem, 3vw, 2.8rem); }
  .news__track { overflow: visible; scroll-snap-type: none; width: max-content; padding-bottom: 0; align-items: start; }
}
.event { flex: 0 0 auto; width: min(78vw, 360px); scroll-snap-align: start; display: grid; gap: 1.2rem; }
.event__poster { overflow: hidden; aspect-ratio: 3 / 4; background: var(--cream-2); }
.event__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.event:hover .event__poster img { transform: scale(1.05); }
.event__body { display: grid; gap: 0.8rem; }
.event__body h3 { font-family: var(--serif-cn); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.08em; line-height: 1.4; }
.event dl { display: grid; gap: 0.15rem; font-size: 0.85rem; }
.event dl div { display: flex; gap: 1em; border-top: 1px solid var(--line); padding: 0.45em 0; }
.event dt { flex: 0 0 3em; color: var(--fg-3); letter-spacing: 0.2em; }
.event dd { color: var(--fg-2); font-variant-numeric: tabular-nums; font-family: var(--ui-cn); font-weight: 300; }
.event__link {
  justify-self: start; font-size: 0.82rem; letter-spacing: 0.25em; color: var(--gold-3);
  border-bottom: 1px solid currentColor; padding-bottom: 0.2em; transition: color 0.3s;
}
.event__link:hover { color: var(--ink); }
@media (min-width: 900px) {
  /* inside the pinned viewport: poster takes all remaining height, card width follows the 3:4 poster */
  .event { width: auto; display: grid; grid-template-rows: auto auto; gap: 1rem; }
  .event__poster { height: calc(100vh - var(--nav-h) - 2rem - var(--news-head) - 2.5rem - var(--news-body) - 1rem); min-height: 260px; width: auto; aspect-ratio: 3 / 4; }
  .event__body { width: 0; min-width: 100%; gap: 0.5rem; }
  .event__body h3 { font-size: clamp(1.05rem, 1.3vw, 1.3rem); }
  .event dl { font-size: 0.78rem; }
  .event dl div { padding: 0.3em 0; }
}
@media (min-width: 900px) and (max-height: 820px) {
  /* short desktop viewports: give the posters the room instead of the heading */
  .news { --news-head: 4.5rem; padding-top: calc(var(--nav-h) + 1rem); padding-bottom: 1.5rem; }
  .news .section__head { grid-template-columns: 1fr; gap: 0.4rem; }
  .event__poster { height: calc(100vh - var(--nav-h) - 1rem - var(--news-head) - 1.5rem - var(--news-body) - 1rem); }
  .news .section__head .label { padding-top: 0; }
  .news .section__title { font-size: 1.6rem; }
  .news .section__hint { display: none; }
}

/* ---------- moments: marquee ---------- */
.moments { padding-left: 0; padding-right: 0; }
.moments .section__head { padding: 0 var(--gutter); }
.marquee { overflow: hidden; padding: 0.5rem 0; }
.marquee__row { display: flex; gap: clamp(0.8rem, 1.5vw, 1.5rem); width: max-content; will-change: transform; }
.marquee figure { flex: 0 0 auto; height: clamp(180px, 28vw, 380px); overflow: hidden; }
.marquee figure img { height: 100%; width: auto; object-fit: cover; filter: saturate(0.9); transition: filter 0.6s, transform 1.2s var(--ease-out); }
.marquee figure:hover img { filter: saturate(1.05); transform: scale(1.04); }
.moments__more { display: flex; justify-content: center; margin-top: clamp(3rem, 6vw, 5rem); }

/* ---------- beyond ---------- */
.beyond { position: relative; min-height: 100svh; overflow: clip; display: grid; align-items: end; padding: var(--section) var(--gutter); isolation: isolate; }
.beyond__media { position: absolute; inset: -12% 0; z-index: -1; }
.beyond__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.55); }
.beyond__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--night-rgb),0.95) 0%, rgba(var(--night-rgb),0.25) 50%, rgba(var(--night-rgb),0.55) 100%); }
.beyond__inner { max-width: 1400px; width: 100%; margin: 0 auto; display: grid; gap: 1.5rem; }
.beyond__title { font-family: var(--serif-cn); font-weight: 300; font-size: clamp(3rem, 9vw, 8.5rem); line-height: 1.05; letter-spacing: 0.06em; }
.beyond__text { max-width: 32em; font-size: var(--fs-lead); color: rgba(243,238,228,0.75); }

/* ---------- contact ---------- */
.contact { position: relative; overflow: clip; padding-bottom: 3rem; }
.contact__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
.contact .section__head, .contact__grid, .footer { position: relative; }
.contact__grid { display: grid; gap: 3rem; margin-bottom: var(--section); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.contact__title { font-family: var(--serif-cn); font-weight: 300; font-size: clamp(2.4rem, 5.6vw, 5.8rem); line-height: 1.2; letter-spacing: 0.04em; }
.contact__links { display: grid; }
.contact__item {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label arrow" "value arrow";
  padding: 1.6rem 0; border-top: 1px solid var(--line); transition: padding 0.5s var(--ease-out);
}
.contact__item:last-child { border-bottom: 1px solid var(--line); }
.contact__item:hover { padding-left: 1rem; }
.contact__item-label { grid-area: label; font-size: var(--fs-label); letter-spacing: 0.3em; color: var(--fg-3); }
.contact__item-value { grid-area: value; font-family: var(--serif-en); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; letter-spacing: 0.04em; transition: color 0.4s; }
.contact__item:hover .contact__item-value { color: var(--gold-2); }
.contact__item-arrow { grid-area: arrow; align-self: center; font-size: 1.4rem; color: var(--gold); transition: transform 0.5s var(--ease-out); }
.contact__item:hover .contact__item-arrow { transform: translate(4px, -4px); }

.footer { display: grid; gap: 2rem; }
.footer__lockup { width: min(60vw, 420px); height: auto; margin: 0 auto; color: var(--cream); }
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.78rem; letter-spacing: 0.18em; color: var(--fg-3); font-family: var(--ui-cn);
}
.footer__tag { font-family: var(--serif-cn); color: rgba(243,238,228,0.7); letter-spacing: 0.25em; }
.footer__top { transition: color 0.3s; }
.footer__top:hover { color: var(--gold-2); }

/* ---------- reveal helpers ---------- */
.js .split .word { display: inline-block; overflow: hidden; vertical-align: top; }
.js .split .word > span { display: inline-block; transform: translateY(110%); }
.js .split-lines { opacity: 0; transform: translateY(24px); }
.js [data-reveal] { opacity: 0; transform: translateY(30px); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .char, .js .hero__actions, .js .hero__eyebrow, .js .split-lines, .js [data-reveal] { opacity: 1; transform: none; }
  .js .split .word > span { transform: none; }
  .js .img-reveal { clip-path: none; }
  .js .img-reveal img { transform: none; }
  .grain { display: none; }
  .loader { display: none; }
  .nav { transform: none; opacity: 1; }
  .hero__stars, .contact__stars, .menu__stars { opacity: 0.5; }
}

/* ==========================================================================
   DAWN — 老師 2026-10-09 定案的「B 晨光」美術方向（html[data-skin="dawn"] 固定）。
   其他方向（夜空／留白／墨韻／彩光）的 CSS 已於 2026-11 移除，需要時到 git 歷史找
   commit 4425df8 之前的版本。
   ========================================================================== */
/* B. 晨光 Dawn — sand, clay, sage: photography-led quiet luxury */
html[data-skin="dawn"] {
  --night: #2a2622; --night-rgb: 42, 38, 34; --night-2: #332e29; --night-3: #3b352f;
  --cream: #efe6d8; --cream-2: #e5d9c6; --cream-3: #d6c6ad;
  --ink: #2a2622; --ink-2: #5a5048; --ink-3: #675b4e;   /* ink-3 由 #8f8378 調深：小字對比 4.7:1（WCAG AA） */
  --gold: #b8865a; --gold-2: #d4a373; --gold-3: #7a5230; /* gold-3 由 #8f6238 調深：4.9:1 */
  --accent: #4a5844;                                     /* accent 由 #5c6b55 調深：5.4:1 */
}
html[data-skin="dawn"] .hero { background: var(--cream); color: var(--ink); }
html[data-skin="dawn"] .hero__stars { display: none; }
html[data-skin="dawn"] .hero__eyebrow { color: var(--ink-2); }
html[data-skin="dawn"] .hero__eyebrow span:first-child { color: var(--gold-3); }
html[data-skin="dawn"] .hero__eyebrow-sep, html[data-skin="dawn"] .hero__scroll-line { background: rgba(0,0,0,0.18); }
html[data-skin="dawn"] .hero__title-row--sub { color: var(--gold-3); }
html[data-skin="dawn"] .hero__vertical, html[data-skin="dawn"] .hero__scroll { color: var(--ink-3); }
html[data-skin="dawn"] .hero .btn--ghost { color: var(--ink); border-color: rgba(0,0,0,0.22); }
html[data-skin="dawn"] .hero .btn--ghost:hover { color: var(--cream); border-color: var(--gold); }
html[data-skin="dawn"] .hero .btn--text { color: var(--ink-2); }
html[data-skin="dawn"] .hero .btn--text:hover { color: var(--gold-3); }
html[data-skin="dawn"] .hero__portal::before { background: radial-gradient(closest-side, rgba(212,163,115,0.35), rgba(212,163,115,0.08) 50%, transparent 72%); }
html[data-skin="dawn"] .hero__portal-mask { box-shadow: 0 30px 80px rgba(0,0,0,0.12); }
/* dawn: sage for labels / numbering, warmer image treatment */
html[data-skin="dawn"] .label i, html[data-skin="dawn"] .menu__links a i { color: var(--accent); }
html[data-skin="dawn"] section[data-theme="dark"] .label i, html[data-skin="dawn"] .menu__links a i { color: var(--gold-2); } /* 深色區塊上 sage 對比不足，改回金色 */
html[data-skin="dawn"] .offer__index { color: var(--gold-3); } /* 淺底上的編號用深金，4.9:1 */
html[data-skin="dawn"] .marquee figure img { filter: saturate(0.9) sepia(0.08); }
html[data-skin="dawn"] .ticker { background: var(--cream-2); }
.hero__bleed { display: none; }
/* ---------- B. 晨光 dawn ---------- */
/* hero: full-bleed photography, type sits on the image */
html[data-skin="dawn"] .hero { color: var(--cream); align-items: end; padding-bottom: clamp(3rem, 8vh, 6rem); min-height: 100svh; }
html[data-skin="dawn"] .hero__bleed { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; }
html[data-skin="dawn"] .hero__bleed img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.06); will-change: transform; }
html[data-skin="dawn"] .hero__bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42,38,34,0.82) 0%, rgba(42,38,34,0.25) 45%, rgba(42,38,34,0.15) 100%); }
html[data-skin="dawn"] .hero__portal { display: none; }
html[data-skin="dawn"] .hero__inner { max-width: none; }
html[data-skin="dawn"] .hero__eyebrow { color: rgba(239,230,216,0.8); }
html[data-skin="dawn"] .hero__eyebrow span:first-child { color: var(--gold-2); }
html[data-skin="dawn"] .hero__eyebrow-sep, html[data-skin="dawn"] .hero__scroll-line { background: rgba(239,230,216,0.35); }
html[data-skin="dawn"] .hero__title { font-size: clamp(3.6rem, 10vw, 10rem); font-weight: 300; text-shadow: 0 2px 40px rgba(0,0,0,0.25); }
html[data-skin="dawn"] .hero__title-row--sub { color: var(--gold-2); }
html[data-skin="dawn"] .hero__vertical, html[data-skin="dawn"] .hero__scroll { color: rgba(239,230,216,0.6); }
html[data-skin="dawn"] .hero .btn--ghost { color: var(--cream); border-color: rgba(239,230,216,0.4); }
html[data-skin="dawn"] .hero .btn--ghost:hover { color: var(--night); border-color: var(--gold); }
html[data-skin="dawn"] .hero .btn--text { color: rgba(239,230,216,0.8); }
html[data-skin="dawn"] .hero .btn--text:hover { color: var(--gold-2); }
@media (max-width: 899px) {/* text moves to the top (over the trees) so the chair below stays unobstructed */
html[data-skin="dawn"] .hero { align-items: start; padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 4rem; }
/* portrait crop: keep the chair on the dock in frame (it sits right of centre in the photo) */
html[data-skin="dawn"] .hero__bleed img { object-position: 81% 50%; }
html[data-skin="dawn"] .hero__bleed::after { background: linear-gradient(to bottom, rgba(42,38,34,0.78) 0%, rgba(42,38,34,0.45) 34%, rgba(42,38,34,0) 52%, rgba(42,38,34,0) 88%, rgba(42,38,34,0.35) 100%); }
html[data-skin="dawn"] .hero__scroll { display: none; }
}
/* programs: editorial alternating rows with large photography, no stacking */
html[data-skin="dawn"] .stack { gap: clamp(4rem, 10vw, 9rem); }
html[data-skin="dawn"] .stack__card {
  position: static; min-height: 0; padding: 0; background: transparent !important; border: 0; color: var(--ink);
  grid-template-columns: 1fr; gap: 2rem; transform: none !important;
}
html[data-skin="dawn"] .stack__card::after { display: none; }
html[data-skin="dawn"] .stack__media { aspect-ratio: 16 / 10; }
html[data-skin="dawn"] .stack__media img { transform: scale(1.0); filter: saturate(0.9) sepia(0.06); }
@media (min-width: 900px) {
  html[data-skin="dawn"] .stack__card { grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: center; }
html[data-skin="dawn"] .stack__card:nth-child(even) .stack__media { order: 2; }
}
/* mentors: one wide row of portrait cards, skills revealed on hover */
/* dawn: moments marquee slightly taller, quieter */
html[data-skin="dawn"] .marquee figure { height: clamp(200px, 32vw, 440px); }
/* hero: typography only, centred, letters drift apart on scroll */
/* about: vertical quote, text block, photo as a footnote */
/* programs: text list; the image floats and follows the cursor */
/* news: a tabular list instead of posters, no pinning */
/* hero: the image is a thin horizon band that rises into a full sunrise on scroll */
.seal { display: none; }
/* paper: heavier, warmer grain */
/* hero: vertical calligraphic title on the right, the photo unrolls like a scroll on the left */
/* programmes: a ledger — Chinese numerals, double rules, wash images */
/* mentors: wash portraits, names with a vertical rule */
/* news / moments: calmer images */
/* dark sections stay sumi */
/* hero: the photo is a light orb ringed by a slowly turning spectrum; it swells to full screen on scroll */
/* chakra accents per section */
/* glass surfaces */
/* programmes: 2×2 glass cards */
/* mentors: glass tiles with a coloured halo */
/* news / moments */
/* dark sections: deep indigo with the aurora still visible */
/* ==========================================================================
   CONTENT V2 — sections introduced by the 2026-10 copy
   ========================================================================== */
/* team: photo-backed dark section with a two-column list */
.team { position: relative; overflow: clip; padding: var(--section) var(--gutter); isolation: isolate; color: var(--cream); --line: rgba(243,238,228,0.16); --fg-2: rgba(243,238,228,0.72); --fg-3: rgba(243,238,228,0.6); } /* 0.45 → 0.6：深色區塊小字對比 6:1 */
.team__media { position: absolute; inset: -12% 0; z-index: -1; }
.team__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) brightness(0.45); }
.team__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(var(--night-rgb),0.9), rgba(var(--night-rgb),0.55) 60%, rgba(var(--night-rgb),0.35)); }
.team__inner { max-width: 1400px; margin: 0 auto; }
.team .section__title { color: var(--cream); }
.team__list { display: grid; gap: 1.2rem 3rem; counter-reset: t; }
.team__list li { counter-increment: t; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.4rem 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.team__list li::before { content: counter(t, decimal-leading-zero); font-family: var(--serif-en); font-size: 1.1rem; color: var(--gold-2); letter-spacing: 0.1em; padding-top: 0.35em; }
.team__list h3 { grid-column: 2; font-family: var(--serif-cn); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: 0.1em; }
.team__list p { grid-column: 2; color: var(--fg-2); font-size: 1rem; max-width: 30em; }
@media (min-width: 900px) { .team__list { grid-template-columns: 1fr 1fr; }
}
/* motto: three big lines over a faint photo */
.motto { position: relative; overflow: clip; padding: clamp(5rem, 12vw, 11rem) var(--gutter); isolation: isolate; text-align: center; }
.motto__media { position: absolute; inset: 0; z-index: -1; opacity: 0.22; }
.motto__media img { width: 100%; height: 100%; object-fit: cover; }
.motto__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--cream), transparent 30%, transparent 70%, var(--cream)); }
.motto__inner { display: grid; gap: 0.6em; }
.motto__line { font-family: var(--serif-cn); font-weight: 300; font-size: clamp(1.6rem, 4.4vw, 4rem); letter-spacing: 0.14em; line-height: 1.4; color: var(--ink); }
.motto__line:nth-child(2) { color: var(--gold-3); }
/* journey */
.journey__grid { display: grid; gap: 2.5rem; margin-bottom: clamp(3rem, 7vw, 6rem); }
.journey__body { display: grid; gap: 1.4em; max-width: 34em; font-size: var(--fs-lead); line-height: 2.05; color: var(--fg-2); }
.journey__photo .img-reveal { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .journey__grid { grid-template-columns: 1fr 1.1fr; column-gap: var(--gutter); align-items: center; }
}
.offers { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .offers { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.offer { display: grid; gap: 0.7rem; padding: clamp(1.6rem, 3vw, 2.6rem); border: 1px solid var(--line); background: var(--cream-2); align-content: start; }
.offer__index { font-family: var(--serif-en); color: var(--gold); letter-spacing: 0.2em; }
.offer h3 { font-family: var(--serif-cn); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: 0.08em; }
.offer__sub { color: var(--gold-3); letter-spacing: 0.18em; font-size: 0.95rem; }
.offer__desc { color: var(--fg-2); margin-top: 0.2rem; }
.offer dl { display: grid; gap: 0.2rem; margin: 0.6rem 0 0.8rem; font-size: 0.9rem; }
.offer dl div { display: flex; gap: 1em; border-top: 1px solid var(--line); padding: 0.45em 0; }
.offer dt { flex: 0 0 3em; color: var(--fg-3); letter-spacing: 0.2em; }
.offer dd { color: var(--fg-2); }
.offer .btn { justify-self: start; }
/* halls (mandala / sound) */
.hall__grid { display: grid; gap: 2.5rem; }
.hall__photo .img-reveal { aspect-ratio: 16 / 10; }
.hall__photo--portrait .img-reveal { aspect-ratio: 3 / 4; }
.hall__photo figcaption { margin-top: 0.8rem; font-size: var(--fs-label); letter-spacing: 0.25em; color: var(--fg-3); }
.hall__poem { display: grid; gap: 1.5em; font-size: var(--fs-lead); line-height: 2.1; color: var(--fg-2); max-width: 34em; }
.hall__close { color: var(--ink); }
.hall--sound .hall__close { color: var(--cream); }
@media (min-width: 900px) {
  .hall__grid { grid-template-columns: 5fr 7fr; column-gap: var(--gutter); align-items: start; }
.hall__grid--rev { grid-template-columns: 7fr 5fr; }
.hall__poem { padding-top: 0.5rem; }
}
.hall--sound { color: var(--cream); --line: rgba(243,238,228,0.16); --fg-2: rgba(243,238,228,0.72); --fg-3: rgba(243,238,228,0.6); } /* 0.45 → 0.6：深色區塊小字對比 6:1 */
.hall--sound .section__title { color: var(--cream); }
/* event feature */
.feature__grid { display: grid; gap: 2.5rem; }
.feature__poster .img-reveal { aspect-ratio: 694 / 1230; max-width: 420px; }
.feature__body { display: grid; gap: 1.4rem; align-content: start; max-width: 40em; }
.feature__meta { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature__meta div { display: grid; grid-template-columns: 4.5em 1fr; gap: 1em; padding: 0.7em 0; border-bottom: 1px solid var(--line); }
.feature__meta dt { color: var(--fg-3); letter-spacing: 0.25em; font-size: 0.85rem; padding-top: 0.2em; }
.feature__meta dd { font-family: var(--serif-cn); font-size: 1.15rem; letter-spacing: 0.06em; display: grid; }
.feature__meta dd span { font-family: var(--sans-cn); font-size: 0.85rem; color: var(--fg-3); letter-spacing: 0.1em; }
.feature__lead { font-size: var(--fs-lead); line-height: 2; color: var(--fg-2); }
.feature__points { display: grid; gap: 1rem; }
.feature__points li { display: grid; gap: 0.3rem; padding: 1rem 0 1rem 1.4rem; position: relative; }
.feature__points li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold); }
.feature__points h3 { font-family: var(--serif-cn); font-weight: 400; font-size: 1.2rem; letter-spacing: 0.08em; }
.feature__points p { color: var(--fg-2); font-size: 1rem; }
.feature__close { color: var(--ink); }
.feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 0.4rem; }
.btn--solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--night); }
.btn--text-dark { color: var(--ink-2); }
.btn--text-dark:hover { color: var(--gold-3); }
@media (min-width: 900px) { .feature__grid { grid-template-columns: 5fr 7fr; column-gap: var(--gutter); align-items: start; }
}
@media (min-width: 900px) and (max-width: 1200px) { .nav__links { gap: 1.4rem; }
.nav__links a { letter-spacing: 0.2em; }
}
/* skin accents for the new sections */
html[data-skin="dawn"] .team__list li::before, html[data-skin="dawn"] .feature__points li::before { color: var(--gold-2); background-color: transparent; }
html[data-skin="dawn"] .feature__points li::before { background: var(--accent); }
html[data-skin="dawn"] .motto__line:nth-child(2) { color: var(--accent); }
html[data-skin="dawn"] .hero__title-row--sub { font-size: 0.3em; letter-spacing: 0.3em; }
/* ---------- 2026-10-06 readability: section names + body copy ---------- */
.section__head .label, .team .label, .hall .label {
  font-family: var(--serif-cn); font-size: clamp(1.2rem, 1.7vw, 1.55rem); letter-spacing: 0.2em; text-transform: none; color: var(--ink); font-weight: 400;
}
.section__head .label i { font-size: 1em; }
.section__head .label em { font-size: 0.85em; }
.label--light, .team .label, .hall--sound .label, .contact .label { color: var(--cream) !important; }
.team__list h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.team__list p { font-size: clamp(1.05rem, 1.25vw, 1.2rem); color: rgba(243,238,228,0.88); line-height: 1.95; }
.journey__body, .hall__poem { font-size: clamp(1.12rem, 1.45vw, 1.38rem); color: var(--ink-2); }
.hall--sound .hall__poem { color: rgba(243,238,228,0.88); }
.offer__desc { font-size: clamp(1.05rem, 1.25vw, 1.18rem); }
.offer__sub { font-size: 1rem; }
.hall__photo figcaption { font-size: 0.85rem; }
/* eight-week path */
.weeks { margin-top: 0.8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.weeks__title { font-family: var(--serif-cn); font-size: 1.2rem; letter-spacing: 0.15em; color: var(--gold-3); margin-bottom: 0.6rem; }
.weeks__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.weeks__list::before { content: ""; position: absolute; left: 1.15rem; top: 0.9rem; bottom: 0.9rem; width: 1px; background: var(--gold); opacity: 0.45; }
.weeks__list li { display: grid; grid-template-columns: 2.3rem 1fr; grid-template-areas: "n t" "n d"; column-gap: 0.8rem; padding: 0.45rem 0; position: relative; }
.weeks__list span { grid-area: n; align-self: start; justify-self: center; z-index: 1; font-family: var(--serif-en); font-size: 0.85rem; letter-spacing: 0.05em; color: var(--gold-3); background: var(--cream-2); border: 1px solid var(--gold); border-radius: 999px; padding: 0.05rem 0.4rem; margin-top: 0.15rem; }
.weeks__list b { grid-area: t; font-family: var(--serif-cn); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.08em; color: var(--ink); }
.weeks__list em { grid-area: d; font-style: normal; font-size: 0.98rem; color: var(--fg-2); }
/* keep the Chinese section name on one line; the English subtitle may wrap below it */
.section__head .label { flex-wrap: wrap; white-space: nowrap; row-gap: 0.15em; }
/* about: the infographic spans the full width under the copy */
.marquee figure img { filter: none; }
/* ---------- four core fields (rebuilt from the A000 infographic) ---------- */
.fields__grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.fields__core { display: grid; place-items: center; position: relative; width: min(60vw, 260px); aspect-ratio: 1; margin: 0 auto 0.5rem; }
.fields__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 48s linear infinite; }
.fields__core-text { position: relative; display: grid; text-align: center; font-family: var(--serif-cn); line-height: 1.5; letter-spacing: 0.18em; }
.fields__core-text span:first-child { font-size: clamp(1.2rem, 1.8vw, 1.6rem); color: var(--ink); }
.fields__core-text span:last-child { font-size: clamp(0.95rem, 1.3vw, 1.15rem); color: var(--gold-3); }
.field {
  display: grid; gap: 0.6rem; align-content: start; padding: clamp(1.4rem, 2.6vw, 2.2rem); background: var(--cream-2); border: 1px solid var(--line);
  color: var(--ink); position: relative; isolation: isolate; transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}
.field::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.field:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(42,38,34,0.1); }
.field__n { font-family: var(--serif-cn); font-size: 0.95rem; letter-spacing: 0.3em; color: var(--c); }
.field h3 { font-family: var(--serif-cn); font-weight: 400; font-size: clamp(1.3rem, 1.9vw, 1.7rem); letter-spacing: 0.08em; line-height: 1.4; }
.field__method { font-size: 0.9rem; letter-spacing: 0.12em; color: var(--fg-3); }
.field__keys { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin-top: 0.3rem; }
.field__keys li { font-size: 0.95rem; padding: 0.25em 0.75em; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); background: rgba(255,255,255,0.35); }
.field__cta { margin-top: 0.6rem; font-size: 0.85rem; letter-spacing: 0.15em; color: var(--c); display: inline-flex; gap: 0.4em; align-items: center; }
.field__cta i { font-style: normal; transition: transform 0.4s var(--ease-out); }
.field:hover .field__cta i { transform: translateX(4px); }
@media (min-width: 900px) {
  .fields__grid { grid-template-columns: 1fr minmax(240px, 300px) 1fr; grid-template-rows: auto auto; gap: 1.6rem; align-items: stretch; }
.fields__core { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 100%; margin: 0; }
.field:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.field:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.field:nth-of-type(3) { grid-column: 1; grid-row: 2; }
.field:nth-of-type(4) { grid-column: 3; grid-row: 2; }
}
/* ---------- gallery captions (HTML, not baked into photos) ---------- */
.marquee figure { position: relative; }
.marquee figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 0.9rem; color: #fff; display: grid; gap: 0.1rem;
  background: linear-gradient(to top, rgba(31,28,26,0.72), rgba(31,28,26,0)); pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.marquee figcaption b { font-family: var(--serif-cn); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.12em; }
.marquee figcaption span { font-size: 0.8rem; letter-spacing: 0.1em; opacity: 0.85; }
.marquee figure:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .marquee figcaption { opacity: 1; transform: none; }
}
/* records: captioned cards under the marquee */
.records { display: grid; gap: 1.6rem 1.2rem; grid-template-columns: repeat(2, 1fr); padding: clamp(3rem, 6vw, 5rem) var(--gutter) 0; max-width: 1400px; margin: 0 auto; }
.record { display: grid; gap: 0.5rem; align-content: start; }
.record__photo { aspect-ratio: 4 / 3; }
.record h3 { font-family: var(--serif-cn); font-weight: 400; font-size: clamp(1.05rem, 1.4vw, 1.25rem); letter-spacing: 0.1em; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.record p { font-size: 0.9rem; color: var(--fg-2); letter-spacing: 0.06em; margin-top: -0.2rem; }
/* fields core column: fills the full height with a hairline spine */
.fields__core { width: 100%; aspect-ratio: auto; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; position: relative; gap: 0.6rem; }
.fields__core::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: 0; }
.fields__core-ring { position: relative; display: grid; place-items: center; width: min(60vw, 280px); aspect-ratio: 1; background: var(--cream); border-radius: 50%; z-index: 1; }
.fields__core-top, .fields__core-bottom { position: relative; z-index: 1; background: var(--cream); padding: 0.3rem 0.8rem; text-align: center; font-family: var(--serif-cn); letter-spacing: 0.25em; color: var(--fg-3); font-size: 0.9rem; }
.fields__core-top { display: grid; line-height: 1.3; }
.fields__core-top span { font-size: 1.3rem; color: var(--ink); letter-spacing: 0.4em; }
.fields__core-top em { font-family: var(--serif-en); font-style: italic; letter-spacing: 0.1em; font-size: 0.95rem; }
@media (max-width: 899px) { .fields__core { margin-bottom: 1rem; }
.fields__core-top, .fields__core-bottom { display: none; }
.fields__core::before { display: none; }
}
/* about without the photo: copy takes the full width */
@media (min-width: 900px) {
  .records { grid-template-columns: repeat(12, 1fr); gap: 2rem 1.4rem; }
.record { grid-column: span 3; }
.record:nth-child(n+5) { grid-column: span 4; }
}
/* about: quote left, copy right, faint brand mark behind */
.about { position: relative; overflow: clip; }
.about__mark { position: absolute; right: -6vw; top: 50%; width: min(64vw, 720px); height: auto; transform: translateY(-50%); color: var(--gold); opacity: 0.16; pointer-events: none; }
.about .section__head, .about__grid { position: relative; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 5fr 6fr; column-gap: clamp(3rem, 7vw, 8rem); align-items: start; }
.about__quote { grid-column: 1; }
.about__body { grid-column: 2; padding-left: 0; max-width: 32em; padding-top: 0.6rem; }
}
@media (max-width: 899px) { .about__mark { width: 90vw; right: -30vw; opacity: 0.12; }
}
/* records grid: without the marquee above it, give it its own top rhythm */
.records { padding-top: 0; }
