/* ════════════════════════════════════════════════════════════════
   曉學莊文理補習班 — DAWN STUDY MANOR
   wantai cinematic studio · demo · 2026
   ════════════════════════════════════════════════════════════════ */

:root {
  --indigo: #0f1422;
  --ash: #3a3949;
  --grape: #58586f;
  --peach: #e8b59a;
  --amber: #f5a35e;
  --cream: #f7efe0;
  --paper: #fbf6ea;
  --ink: #1a1612;
  --ink-2: #4a3f33;
  --vermil: #c44d2a;
  --moss: #7a8a6f;
  --wood: #c2a075;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif TC', 'Crimson Pro', serif;
  background: var(--cream);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
iframe, img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
em, i { font-family: 'Crimson Pro', serif; font-style: italic; font-weight: 500; }

/* Common eyebrow */
.eyb {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
}

/* ── LOADER · 破曉 / FIRST LIGHT ─────────────────────────────── */
.ldr {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  background: linear-gradient(180deg, #060810 0%, #0f1422 60%, #1a1f30 100%);
}
.ldr__sky { position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 30% at 50% 85%, rgba(245,163,94,0.18) 0%, transparent 60%);
  opacity: 0;
}
.ldr__horizon {
  position: absolute; left: 50%; top: 78%; height: 1px; width: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(245,163,94,0.7) 50%, transparent 100%);
  transform: translateX(-50%);
}
.ldr__sun {
  position: absolute; left: 50%; top: 78%;
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #ffe6c2 0%, #ffb678 50%, rgba(245,163,94,0.6) 80%, transparent 100%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 80px rgba(245,163,94,0.7);
  opacity: 0;
}
.ldr__brand {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  display: flex; gap: 14px;
  font-family: 'Noto Serif TC', serif; font-weight: 800;
  color: var(--cream); font-size: clamp(56px, 8vw, 92px);
  letter-spacing: 0.14em;
}
.ldr__brand span { display: inline-block; clip-path: inset(0 100% 0 0); opacity: 0; }
.ldr__sub {
  position: absolute; left: 50%; top: 57%; transform: translateX(-50%);
  font-family: 'Courier Prime', monospace; color: rgba(247,239,224,0.55);
  font-size: 10.5px; letter-spacing: 0.32em; opacity: 0;
  white-space: nowrap;
}
.ldr__wipe {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: linear-gradient(0deg, var(--cream) 0%, var(--paper) 60%, rgba(245,163,94,0.7) 100%);
  pointer-events: none;
}

/* ── CURSOR · 米字格 INK-WELL — character-practice grid w/ vermilion bloom ── */
.cur {
  position: fixed; left: 0; top: 0; width: 28px; height: 28px;
  pointer-events: none; z-index: 9998;
  transform: translate(-9999px, -9999px);
  mix-blend-mode: multiply;
}
.cur__mi {
  width: 28px; height: 28px;
  transition: transform 0.42s cubic-bezier(.2,.9,.3,1.2);
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.05));
}
.cur__ink {
  transition: r 0.4s cubic-bezier(.2,.9,.3,1.4), opacity 0.4s;
}
.cur.is-hot .cur__mi { transform: rotate(12deg) scale(1.18); }
.cur.is-hot .cur__ink { r: 7; opacity: 0.85; }
.cur__label {
  position: absolute; top: 8px; left: 38px;
  font-family: 'Crimson Pro', serif; font-style: italic; font-weight: 500;
  font-size: 13px; color: var(--ink);
  white-space: nowrap; opacity: 0; transform: translateX(-4px);
  transition: opacity 0.24s, transform 0.36s;
  padding-left: 8px;
  border-left: 1px solid rgba(196,77,42,0.6);
}
.cur.is-hot .cur__label { opacity: 1; transform: translateX(0); }
@media (hover: none), (pointer: coarse) {
  .cur { display: none; }
  body { cursor: auto; }
}

/* ── HEADER ──────────────────────────────────────────────────── */
.chr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 14px 5vw;
  font-family: 'Courier Prime', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--cream);
  background: rgba(15, 20, 34, 0.62);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(247, 239, 224, 0.08);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
/* When scrolled past the dark hero, flip to a light glass so the bar stays legible on cream sections. */
.chr.is-scrolled {
  background: rgba(247, 239, 224, 0.78);
  border-bottom-color: rgba(26, 22, 18, 0.10);
  color: var(--ink);
}
.chr.is-scrolled .chr__brand,
.chr.is-scrolled .chr__nav a,
.chr.is-scrolled .chr__hud { color: var(--ink); }
.chr.is-scrolled .chr__cta { border-color: var(--ink); }
.chr__brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: inherit; }
.chr__brand b { font-family: 'Noto Serif TC', serif; font-weight: 800; font-size: 15px; letter-spacing: 0.06em; }
.chr__brand i { font-family: 'Crimson Pro', serif; font-style: italic; font-size: 11px; opacity: 0.65; }
.chr__nav { display: flex; gap: 22px; justify-self: center; }
.chr__nav a { color: inherit; text-decoration: none; opacity: 0.78; transition: opacity 0.3s; }
.chr__nav a:hover { opacity: 1; }
.chr__cta { padding: 6px 12px; border: 1px solid currentColor; }
.chr__hud { justify-self: end; display: flex; gap: 14px; align-items: center; opacity: 0.85; color: inherit; }
.chr__hud em { font-style: normal; }

/* push first section under the bar so the desk lamp / hero copy never tucks behind it on load */
.hero { padding-top: 0; }
main, body > section:first-of-type { scroll-margin-top: 60px; }

/* ── SECTION DEFAULTS ────────────────────────────────────────── */
section { position: relative; padding: 140px 7vw 110px; }

/* ── 1 · HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; padding: 0;
  background: linear-gradient(180deg, var(--indigo) 0%, var(--ash) 55%, var(--grape) 78%, var(--peach) 100%);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  grid-template-rows: 1fr;
  overflow: hidden;
}
.hero__window {
  position: absolute; right: 0; top: 0;
  width: 58vw; height: 80vh;
  border-left: 1px solid rgba(247,239,224,0.16);
  border-bottom: 1px solid rgba(247,239,224,0.16);
  background: linear-gradient(180deg, #0a0e1a 0%, #1c1d36 35%, #4d4156 65%, #ad6f5e 85%, #f3b986 100%);
  overflow: hidden;
}
.hero__sky { position: absolute; inset: 0; opacity: 0.65;
  background: radial-gradient(ellipse 60% 40% at 70% 90%, rgba(255,194,140,0.6) 0%, transparent 70%); }
.hero__sun {
  position: absolute; left: 65%; top: 70%;
  width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(circle, #ffe1b8 0%, #ffaa66 60%, rgba(245,163,94,0.2) 90%);
  box-shadow: 0 0 80px rgba(245,163,94,0.6);
  animation: rise 8s ease-in-out infinite alternate;
}
@keyframes rise {
  from { transform: translate(0, 6px); opacity: 0.85; }
  to   { transform: translate(0, -6px); opacity: 1; }
}
.hero__grid {
  position: absolute; inset: 0; opacity: 0.85;
  background-image:
    linear-gradient(rgba(247,239,224,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,239,224,0.05) 1px, transparent 1px),
    linear-gradient(rgba(247,239,224,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,239,224,0.18) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px, 50% 50%, 50% 50%;
}
.hero__motes { position: absolute; inset: 0; pointer-events: none; }
.hero__motes span {
  position: absolute; width: 3px; height: 3px;
  background: rgba(255,218,170,0.85); border-radius: 50%;
  filter: blur(0.4px);
  animation: drift 18s ease-in-out infinite;
}
.hero__motes span:nth-child(1) { left: 14%; top: 36%; animation-delay: -2s; }
.hero__motes span:nth-child(2) { left: 32%; top: 58%; animation-delay: -6s; }
.hero__motes span:nth-child(3) { left: 48%; top: 18%; animation-delay: -10s; }
.hero__motes span:nth-child(4) { left: 62%; top: 42%; animation-delay: -14s; animation-duration: 22s; }
.hero__motes span:nth-child(5) { left: 78%; top: 30%; animation-delay: -4s; animation-duration: 26s; }
.hero__motes span:nth-child(6) { left: 22%; top: 72%; animation-delay: -12s; }
.hero__motes span:nth-child(7) { left: 56%; top: 66%; animation-delay: -8s; animation-duration: 20s; }
.hero__motes span:nth-child(8) { left: 82%; top: 52%; animation-delay: -16s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50%      { transform: translate(24px, -34px); opacity: 1; }
}

.hero__lamp { position: absolute; right: 12vw; bottom: 24vh; z-index: 4; pointer-events: none; }
.hero__pool {
  position: absolute; right: -160px; bottom: -180px;
  width: 420px; height: 280px;
  background: radial-gradient(ellipse at center, rgba(255,218,170,0.5) 0%, rgba(245,163,94,0.18) 40%, transparent 70%);
  filter: blur(10px);
  animation: breath 4.2s ease-in-out infinite;
}
@keyframes breath {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.hero__neck { width: 4px; height: 90px; background: var(--ink); margin-left: 40px; }
.hero__shade { width: 80px; height: 36px; background: var(--ink);
  border-radius: 50% 50% 14% 14%; position: relative; top: -16px; left: 4px; }

.hero__desk {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 18vh;
  background: linear-gradient(180deg, #3a2818 0%, #1a0e06 100%);
  border-top: 1px solid rgba(255,200,140,0.15);
  z-index: 3;
}

.hero__copy {
  position: relative; z-index: 5;
  align-self: end;
  padding: 0 0 26vh 6vw;
  grid-column: 1; grid-row: 1;
}
.hero__copy .eyb { color: rgba(247,239,224,0.65); }
.hero__h {
  font-family: 'Noto Serif TC', serif; font-weight: 800;
  font-size: clamp(54px, 8.6vw, 132px); line-height: 1.02; letter-spacing: -0.01em;
  color: var(--cream);
}
.hero__h .ln { display: block; overflow: hidden; padding: 2px 0; }
.hero__h .ln > span { display: inline-block; transform: translateY(110%); }
.hero__sub {
  margin-top: 24px;
  font-size: 14px; line-height: 1.75;
  color: rgba(247,239,224,0.7); max-width: 30em;
  font-family: 'Crimson Pro', serif; font-weight: 400;
}
.hero__sub em { color: var(--peach); }

.hero__rail {
  position: relative; z-index: 5;
  align-self: end; justify-self: end;
  padding: 0 6vw 26vh 0;
  font-family: 'Courier Prime', monospace; font-size: 11px;
  letter-spacing: 0.14em; color: rgba(247,239,224,0.65);
  text-align: right;
  grid-column: 2; grid-row: 1;
}
.hero__rail p { margin: 7px 0; }
.hero__rail i { font-family: 'Crimson Pro', serif; font-style: italic; color: var(--peach); font-size: 12px; margin-left: 8px; }
.hero__cue { margin-top: 30px !important; color: var(--amber); }

/* ── 2 · POEM ────────────────────────────────────────────────── */
.pm { background: var(--paper); padding-top: 160px; padding-bottom: 160px; }
.pm__lines {
  list-style: none; max-width: 26ch; margin: 0 auto;
  font-family: 'Noto Serif TC', serif; font-weight: 500;
  font-size: clamp(26px, 4.4vw, 56px); line-height: 1.55;
  color: var(--ink);
}
.pm__lines li { overflow: hidden; padding: 3px 0; }
.pm__lines li > span {
  display: inline-block; transform: translateY(110%);
  opacity: 0; filter: blur(8px);
}
.pm__lines li:nth-child(2) { padding-left: 2.4ch; }
.pm__lines li:nth-child(4) { padding-left: 4ch; }
.pm__lines li:nth-child(5) { padding-left: 0.6ch; }
.pm__lines li:nth-child(6) { padding-left: 6ch; }
.pm__lines em { color: var(--vermil); font-style: italic; }

/* ── 3 · DAYBREAK · pinned ──────────────────────────────────── */
.dbk { padding: 0; height: 380vh; background: var(--cream); }
.dbk__pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--indigo); color: var(--cream);
}
.dbk__sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0f1422 0%, #1c1f34 60%, #2a2640 100%);
  transition: background 0.9s cubic-bezier(.4,0,.3,1);
}
.dbk__horizon {
  position: absolute; left: 0; right: 0; bottom: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(247,239,224,0.45) 50%, transparent 100%);
}
.dbk__sun {
  position: absolute; left: 50%; bottom: 20%;
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, #ffe1b8 0%, #ffae6e 50%, rgba(245,163,94,0.3) 80%, transparent 100%);
  transform: translate(-50%, 80%);
  opacity: 0;
  box-shadow: 0 0 80px rgba(245,163,94,0.7);
}
.dbk__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background-image:
    linear-gradient(rgba(247,239,224,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,239,224,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.dbk__hud { position: absolute; top: 28px; left: 36px; z-index: 5; }
.dbk__eyb { color: rgba(247,239,224,0.65) !important; margin-bottom: 14px; }
.dbk__readout {
  display: grid; grid-template-columns: repeat(4, auto); gap: 28px;
  font-family: 'Courier Prime', monospace; font-size: 11px; letter-spacing: 0.14em;
}
.dbk__readout > div { display: flex; flex-direction: column; gap: 4px; color: rgba(247,239,224,0.5); }
.dbk__readout em { font-style: normal; color: var(--cream); font-size: 17px; letter-spacing: 0.06em; }
.dbk__caption {
  position: absolute; left: 36px; bottom: 26%; max-width: 28em; z-index: 5;
}
.dbk__caption h2 {
  font-family: 'Noto Serif TC', serif; font-weight: 800;
  font-size: clamp(36px, 5vw, 76px); line-height: 1.15;
  color: var(--cream); transition: opacity 0.3s;
}
.dbk__caption p {
  margin-top: 14px; font-size: 15px; line-height: 1.75;
  color: rgba(247,239,224,0.7); max-width: 24em;
  font-family: 'Crimson Pro', serif; font-style: italic;
}
.dbk__bar {
  list-style: none; position: absolute; left: 0; right: 0; bottom: 4%;
  display: grid; grid-template-columns: repeat(8, 1fr);
  padding: 12px 36px 0;
  font-family: 'Noto Serif TC', serif; font-size: 14px;
  text-align: center; color: rgba(247,239,224,0.28);
  border-top: 1px solid rgba(247,239,224,0.1);
}
.dbk__bar li { padding-top: 14px; position: relative;
  transition: color 0.4s, transform 0.4s; }
.dbk__bar li::before {
  content: ''; position: absolute; top: -1px; left: 50%; width: 0; height: 2px;
  background: var(--amber); transform: translateX(-50%); transition: width 0.4s;
}
.dbk__bar li.is-on { color: var(--amber); transform: translateY(-3px); }
.dbk__bar li.is-on::before { width: 70%; }

/* ── 4 · THREE THINGS ───────────────────────────────────────── */
.thr { background: var(--paper); }
.thr__h {
  font-family: 'Noto Serif TC', serif; font-weight: 800;
  font-size: clamp(36px, 5.4vw, 76px); line-height: 1.15;
  margin-bottom: 80px; max-width: 16ch;
}
.thr__h em { color: var(--vermil); font-style: italic; }
.thr__rows {
  list-style: none;
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  row-gap: 60px; column-gap: 40px;
}
.thr__rows li { display: contents; }
.thr__no {
  font-family: 'Noto Serif TC', serif; font-size: 84px; font-weight: 800;
  color: var(--vermil); opacity: 0.85; line-height: 1;
  padding: 14px 0 0 0; border-top: 1px solid var(--ink);
}
.thr__rows h3 {
  font-family: 'Noto Serif TC', serif; font-weight: 800;
  font-size: clamp(28px, 3.2vw, 44px); padding: 14px 0 0 0;
  border-top: 1px solid var(--ink); line-height: 1.2;
}
.thr__bd {
  font-family: 'Crimson Pro', serif; font-weight: 400;
  font-size: 17px; line-height: 1.78; color: var(--ink-2);
  margin-top: 18px; grid-column: 2;
}
.thr__bd em { color: var(--vermil); font-style: italic; }
.thr__meta {
  font-family: 'Courier Prime', monospace; font-size: 11px;
  letter-spacing: 0.14em; color: var(--moss);
  margin-top: 14px; grid-column: 2; padding-bottom: 22px;
  border-bottom: 1px solid rgba(26,22,18,0.15);
}

/* ── 5 · FIVE GRADES — stacked notebook pages ──────────────── */
.gr { background: var(--cream); }
.gr__h {
  font-family: 'Noto Serif TC', serif; font-weight: 800;
  font-size: clamp(34px, 4.8vw, 72px); line-height: 1.2;
  margin-bottom: 70px; max-width: 22ch;
}
.gr__h em { color: var(--vermil); font-style: italic; }
.gr__stack { list-style: none; position: relative; max-width: 880px; margin: 0 auto; }
.gr__page {
  background: var(--paper);
  padding: 32px 44px 28px;
  margin-top: -28px;
  position: relative;
  border: 1px solid rgba(26,22,18,0.12);
  box-shadow: 0 -8px 14px rgba(26,22,18,0.05);
  transform-origin: top center;
  transform: translateY(0) rotate(calc(var(--i) * 0.5deg - 1deg));
  transition: transform 0.5s cubic-bezier(.2,.9,.3,1.1), box-shadow 0.5s;
  cursor: none;
}
.gr__page:first-child { margin-top: 0; }
.gr__page::before {
  content: ''; position: absolute; left: 22px; top: 14px; bottom: 14px; width: 1px;
  border-left: 1px dashed rgba(196,77,42,0.45);
}
.gr__page::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(196,77,42,0.5) 20%, rgba(196,77,42,0.5) 80%, transparent 100%);
}
.gr__page:hover {
  transform: translateY(-14px) rotate(0deg);
  box-shadow: 0 20px 36px rgba(26,22,18,0.14), 0 -2px 4px rgba(26,22,18,0.05);
  z-index: 5;
}
.gr__page header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px; padding-left: 32px;
}
.gr__page header b { font-family: 'Noto Serif TC', serif; font-weight: 800; font-size: 24px; letter-spacing: 0.02em; }
.gr__page header span {
  font-family: 'Courier Prime', monospace; font-size: 11px;
  letter-spacing: 0.20em; color: var(--moss);
}
.gr__page p {
  padding-left: 32px; font-family: 'Crimson Pro', serif; font-size: 16.5px;
  line-height: 1.75; color: var(--ink-2);
}
.gr__page p em { color: var(--vermil); font-style: italic; }
.gr__meta {
  font-family: 'Courier Prime', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.12em; color: var(--moss); margin-top: 10px;
}

/* ── 6 · 田字格 — ONE DESK COUNTED ─────────────────────────── */
.num { background: var(--paper); }
.tian {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  position: relative; max-width: 940px; margin: 0 auto;
  background: var(--cream);
}
.tian::before, .tian::after {
  content: ''; position: absolute; background: var(--ink);
}
.tian::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.tian::after  { left: 0; right: 0; top: 50%; height: 1px; }
.tian__cell {
  padding: 52px 44px; position: relative; min-height: 280px;
}
.tian__chk {
  position: absolute; top: 16px; right: 18px;
  color: var(--vermil); font-family: 'Crimson Pro', serif;
  font-weight: 600; font-size: 30px; font-style: italic;
}
.tian__big {
  font-family: 'Crimson Pro', serif; font-style: italic; font-weight: 600;
  font-size: clamp(80px, 12vw, 156px); line-height: 1; color: var(--ink);
  letter-spacing: -0.02em;
}
.tian__sup {
  font-family: 'Noto Serif TC', serif; font-weight: 500; font-size: 22px;
  color: var(--ink-2); margin-left: 10px; font-style: normal;
}
.tian__lbl {
  font-family: 'Noto Serif TC', serif; font-weight: 500; font-size: 18px;
  margin-top: 26px; color: var(--ink);
}
.tian__cell small {
  display: block; font-family: 'Crimson Pro', serif; font-style: italic;
  font-size: 14px; color: var(--moss); margin-top: 6px;
}

/* ── 7 · MAP ─────────────────────────────────────────────────── */
.mp { background: var(--cream); }
.mp__grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 60px; align-items: start;
}
.mp__copy h2 {
  font-family: 'Noto Serif TC', serif; font-weight: 800;
  font-size: clamp(34px, 4.8vw, 68px); line-height: 1.18;
  margin-bottom: 28px;
}
.mp__copy h2 em { color: var(--vermil); font-style: italic; }
.mp__lede {
  font-family: 'Crimson Pro', serif; font-size: 17px; line-height: 1.78;
  color: var(--ink-2); margin-bottom: 36px; max-width: 30em;
}
.mp__dl { display: grid; }
.mp__dl div {
  display: grid; grid-template-columns: 110px 1fr;
  padding: 14px 0; align-items: baseline;
  border-top: 1px solid rgba(26,22,18,0.15);
}
.mp__dl div:last-child { border-bottom: 1px solid rgba(26,22,18,0.15); }
.mp__dl dt {
  font-family: 'Courier Prime', monospace; font-size: 11px;
  letter-spacing: 0.18em; color: var(--moss);
}
.mp__dl dd {
  font-family: 'Noto Serif TC', serif; font-weight: 500; font-size: 16px;
  color: var(--ink);
}
.mp__dl a { color: var(--vermil); text-decoration: none;
  border-bottom: 1px dashed var(--vermil); padding-bottom: 1px; }
.mp__map {
  position: relative; border: 1px solid var(--ink); background: var(--paper);
  display: flex; flex-direction: column;
}
.mp__map-tab {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--ink);
  font-family: 'Courier Prime', monospace; font-size: 11px; letter-spacing: 0.18em;
  background: var(--paper); color: var(--ink);
}
.mp__map-tab i {
  font-family: 'Crimson Pro', serif; font-style: italic; color: var(--moss);
  font-size: 12px; letter-spacing: 0.04em;
}
.mp__map iframe {
  width: 100%; height: 480px; border: 0;
  filter: sepia(0.16) saturate(0.92) brightness(0.97);
}
.mp__map-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--ink);
  font-family: 'Courier Prime', monospace; font-size: 11px; letter-spacing: 0.14em;
  background: var(--paper);
}
.mp__map-foot i { font-family: 'Crimson Pro', serif; font-style: italic; color: var(--ink); font-size: 12px; }
.mp__map-foot a { color: var(--vermil); text-decoration: none; }

/* ── 8 · ENROLMENT ──────────────────────────────────────────── */
.en { background: var(--paper); }
.en__paper {
  max-width: 760px; margin: 0 auto;
  background: var(--cream); padding: 60px 56px;
  border: 1px solid var(--ink); position: relative;
  box-shadow: 0 24px 48px rgba(26,22,18,0.08);
  background-image:
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(58,57,73,0.05) 30px 31px);
}
.en__paper::before {
  content: ''; position: absolute; left: 56px; top: 0; bottom: 0; width: 1px;
  background: rgba(196,77,42,0.5);
}
.en__hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px; margin-bottom: 24px;
  border-bottom: 1px solid var(--ink); padding-left: 16px;
}
.en__no { font-family: 'Courier Prime', monospace; font-size: 11px;
  letter-spacing: 0.18em; color: var(--moss); }
.en__no em { color: var(--vermil); font-style: italic; }
.en__seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--vermil); color: var(--cream);
  font-family: 'Noto Serif TC', serif; font-weight: 800; font-size: 22px;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 1px rgba(255,239,224,0.4);
}
.en__h {
  font-family: 'Noto Serif TC', serif; font-weight: 800;
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1.22;
  margin-bottom: 14px; padding-left: 16px;
}
.en__h em { color: var(--vermil); font-style: italic; }
.en__lede {
  font-family: 'Crimson Pro', serif; font-size: 16px; line-height: 1.78;
  color: var(--ink-2); margin-bottom: 36px; max-width: 36em; padding-left: 16px;
}
.en__lede em { color: var(--vermil); font-style: italic; }
.en__rows {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px 28px; padding-left: 16px;
}
.en__rows label { display: flex; flex-direction: column; }
.en__rows label.en__row-full { grid-column: 1 / -1; }
.en__rows label span {
  font-family: 'Crimson Pro', serif; font-style: italic;
  font-size: 12.5px; letter-spacing: 0.06em; color: var(--moss);
  margin-bottom: 6px;
}
.en__rows input, .en__rows select, .en__rows textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 6px 0; font-family: 'Noto Serif TC', serif; font-weight: 500;
  font-size: 15px; color: var(--ink); cursor: none;
}
.en__rows input::placeholder, .en__rows textarea::placeholder {
  color: rgba(74,63,51,0.4); font-style: italic; font-family: 'Crimson Pro', serif;
}
.en__rows textarea { resize: vertical; min-height: 64px; }
.en__rows input:focus, .en__rows select:focus, .en__rows textarea:focus {
  outline: 0; border-bottom-color: var(--vermil);
}
.en__foot {
  display: flex; align-items: center; gap: 22px;
  margin-top: 36px; padding: 24px 0 0 16px;
  border-top: 1px dashed rgba(26,22,18,0.3);
}
.en__foot button {
  background: var(--ink); color: var(--cream);
  font-family: 'Noto Serif TC', serif; font-weight: 800; font-size: 16px;
  letter-spacing: 0.12em; padding: 14px 28px; border: 0;
  cursor: none; transition: background 0.3s, transform 0.3s;
}
.en__foot button:hover { background: var(--vermil); transform: translateY(-2px); }
.en__foot small {
  font-family: 'Courier Prime', monospace; font-size: 10.5px;
  letter-spacing: 0.10em; color: var(--moss); line-height: 1.65;
}

/* ── FOOTER · CHRONO ───────────────────────────────────────── */
.ft {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ink); background: var(--cream);
}
.ft__cell {
  padding: 18px 22px;
  border-right: 1px solid rgba(26,22,18,0.15);
  font-family: 'Courier Prime', monospace; font-size: 11px;
  letter-spacing: 0.14em;
  display: flex; flex-direction: column; gap: 4px;
}
.ft__cell:last-child { border-right: 0; }
.ft__cell span { color: var(--moss); }
.ft__cell em {
  font-style: normal; color: var(--ink); font-size: 13.5px;
  letter-spacing: 0.06em;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 110px 6vw 80px; }
  .chr { padding: 14px 5vw; }
  .chr__nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 110px 0 60px; }
  .hero__window { position: relative; width: 92vw; height: 44vh; margin: 0 auto; }
  .hero__lamp { display: none; }
  .hero__desk { height: 12vh; }
  .hero__copy { padding: 30px 6vw 20px; }
  .hero__rail { padding: 0 6vw 30px; text-align: left; justify-self: start; }
  .pm__lines { padding: 0 6vw; }
  .thr__rows { grid-template-columns: 1fr; row-gap: 36px; }
  .thr__no { padding: 0; border-top: 0; font-size: 56px; }
  .thr__rows h3 { padding-top: 0; }
  .thr__bd, .thr__meta { grid-column: 1; }
  .gr__page { padding: 26px 28px; }
  .gr__page header { padding-left: 24px; }
  .gr__page p { padding-left: 24px; }
  .tian { grid-template-columns: 1fr; }
  .tian::before { display: none; }
  .tian::after { top: 25%; }
  .tian__cell { padding: 36px 28px; min-height: 200px; }
  .mp__grid, .en__rows { grid-template-columns: 1fr; }
  .mp__map iframe { height: 360px; }
  .en__paper { padding: 36px 28px; }
  .en__paper::before { left: 28px; }
  .en__hdr, .en__h, .en__lede, .en__rows, .en__foot { padding-left: 8px; }
  .dbk__readout { grid-template-columns: 1fr 1fr; gap: 14px; }
  .dbk__caption { left: 24px; right: 24px; bottom: 22%; }
  .ft { grid-template-columns: 1fr 1fr; }
  .ft__cell:nth-child(2n) { border-right: 0; }
  .ft__cell:nth-child(-n+4) { border-bottom: 1px solid rgba(26,22,18,0.15); }
  .ft__cell:last-child { grid-column: 1 / -1; }
}
