:root {
	--indigo: #292c68;
	--indigo-deep: #171938;
	--indigo-soft: #51538a;
	--parchment: #eee3cb;
	--paper: #fbf6e9;
	--paper-dark: #d8c7a7;
	--ochre: #a84f39;
	--ochre-deep: #6c302a;
	--gold: #b58d42;
	--gold-light: #dfc47d;
	--charcoal: #302c34;
	--muted: #706a68;
	--line: rgba(41, 44, 104, 0.25);
	--line-light: rgba(238, 227, 203, 0.25);
	--container: 1440px;
	--gutter: clamp(20px, 4vw, 64px);
	--header-height: 94px;
	--transition: 360ms cubic-bezier(0.22, 0.75, 0.2, 1);
	--shadow: 0 24px 60px rgba(23, 25, 56, 0.17);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; overflow-x: hidden; background: var(--parchment); color: var(--charcoal); font-family: "Noto Sans TC", sans-serif; font-size: 17px; line-height: 1.8; }
body.menu-open { overflow: hidden; }

img { display: block; width: 100%; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }

::selection { background: var(--ochre); color: var(--paper); }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; padding: 10px 16px; transform: translateY(-150%); background: var(--paper); color: var(--indigo-deep); border: 1px solid var(--indigo); transition: transform var(--transition); }
.skip-link:focus { transform: translateY(0); }

.section-inner { width: min(calc(100% - (var(--gutter) * 2)), var(--container)); margin: 0 auto; }
.section-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--ochre); font-size: 14px; font-weight: 800; letter-spacing: 0.12em; }
.section-kicker::before { width: 34px; height: 2px; background: currentColor; content: ""; }
.section-heading { margin: 0; color: var(--indigo-deep); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.28; letter-spacing: -0.03em; }
.section-intro { max-width: 680px; margin: 20px 0 0; color: #59535a; }

.text-link { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid currentColor; color: var(--indigo); font-weight: 700; transition: gap var(--transition), color var(--transition); }
.text-link::after { content: "↗"; font-size: 15px; }
.text-link:hover { gap: 18px; color: var(--ochre); }

.reveal-line { position: relative; }
.reveal-line::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--gold); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 800ms cubic-bezier(0.18, 0.8, 0.2, 1); }

.is-visible .reveal-line::after { transform: scaleX(1); }

/* header */
header { min-height: 100vh; background: var(--indigo-deep); color: var(--parchment); }
header .top-ledger { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 38px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line-light); color: rgba(238, 227, 203, 0.72); font-size: 13px; letter-spacing: 0.08em; }
header .top-ledger span:nth-child(2) { color: var(--gold-light); }
header .top-ledger span:last-child { text-align: right; }
header .main-nav { position: relative; z-index: 30; display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; min-height: var(--header-height); padding: 0 var(--gutter); border-bottom: 1px solid var(--line-light); transition: background var(--transition), min-height var(--transition), box-shadow var(--transition); }
header .main-nav.is-scrolled { position: fixed; top: 0; right: 0; left: 0; min-height: 74px; background: rgba(23, 25, 56, 0.96); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22); backdrop-filter: blur(10px); }
header .brand-lockup { display: flex; align-items: center; gap: 14px; }
header .brand-mark { position: relative; width: 38px; height: 38px; }
header .brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
header .brand-copy strong { font-size: 17px; letter-spacing: 0.06em; }
header .brand-copy small { color: rgba(238, 227, 203, 0.62); font-size: 12px; letter-spacing: 0.14em; }
header .nav-list { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); margin: 0; padding: 0; list-style: none; }
header .nav-list a { position: relative; display: block; padding: 12px 0; color: rgba(238, 227, 203, 0.78); font-size: 15px; font-weight: 600; }
header .nav-list a::after { position: absolute; right: 0; bottom: 6px; left: 0; height: 1px; background: var(--gold-light); content: ""; transform: scaleX(0); transform-origin: right; transition: transform var(--transition); }
header .nav-list a:hover, header .nav-list a.is-active { color: var(--paper); }
header .nav-list a:hover::after, header .nav-list a.is-active::after { transform: scaleX(1); transform-origin: left; }
header .menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line-light); background: transparent; cursor: pointer; }
header .menu-toggle span { display: block; width: 22px; height: 1px; margin: 6px auto; background: var(--parchment); transition: transform var(--transition), opacity var(--transition); }
header .menu-toggle.is-active span:first-child { transform: translateY(7px) rotate(45deg); }
header .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
header .menu-toggle.is-active span:last-child { transform: translateY(-7px) rotate(-45deg); }
header .hero-layout { display: grid; grid-template-columns: minmax(210px, 0.62fr) minmax(360px, 1.15fr) minmax( 380px, 1.4fr ); min-height: calc(100vh - 132px); }
header .hero-index { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(40px, 5vw, 78px) clamp(24px, 3vw, 48px) 38px var(--gutter); border-right: 1px solid var(--line-light); }
header .hero-index-title { margin: 0 0 26px; color: var(--gold-light); font-size: 13px; font-weight: 800; letter-spacing: 0.16em; }
header .chapter-list { margin: 0; padding: 0; list-style: none; counter-reset: chapter; }
header .chapter-list li { counter-increment: chapter; }
header .chapter-list a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-light); color: rgba(238, 227, 203, 0.68); font-size: 14px; transition: color var(--transition), padding-left var(--transition); }
header .chapter-list a::before { color: var(--gold); content: "0" counter(chapter); font-size: 11px; }
header .chapter-list a:hover { padding-left: 8px; color: var(--paper); }
header .hero-index-note { margin: 28px 0 0; color: rgba(238, 227, 203, 0.54); font-size: 13px; line-height: 1.7; }
header .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 7vw, 106px) clamp(34px, 5vw, 78px); }
header .hero-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; color: var(--gold-light); font-size: 14px; font-weight: 700; letter-spacing: 0.13em; }
header .hero-eyebrow::before { width: 42px; height: 1px; background: var(--gold-light); content: ""; }
header h1 { max-width: 640px; margin: 0; color: var(--paper); font-size: clamp(36px, 4.8vw, 64px); line-height: 1.18; letter-spacing: -0.04em; }
header h1 span { display: block; margin-top: 14px; color: var(--gold-light); font-size: 0.38em; font-weight: 500; letter-spacing: 0.08em; line-height: 1.45; }
header .hero-lead { max-width: 590px; margin: 30px 0 34px; color: rgba(238, 227, 203, 0.78); font-size: clamp(16px, 1.25vw, 19px); }
header .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
header .primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; background: var(--ochre); color: var(--paper); font-weight: 800; transition: background var(--transition), transform var(--transition); }
header .primary-link:hover { background: #bf6048; transform: translateY(-2px); }
header .secondary-link { padding: 7px 0; border-bottom: 1px solid var(--gold-light); color: var(--gold-light); font-weight: 700; }
header .hero-visual { position: relative; min-height: 680px; overflow: hidden; background: var(--charcoal); }
header .hero-visual img { height: 100%; object-fit: cover; object-position: 54% center; filter: saturate(0.54) sepia(0.1) hue-rotate(188deg) brightness(0.7); transform: scale(1.04); transition: transform 1400ms cubic-bezier(0.18, 0.82, 0.2, 1), filter var(--transition); }
header.is-ready .hero-visual img { transform: scale(1); }
header .hero-visual::after { position: absolute; inset: 0; background: linear-gradient( 90deg, rgba(23, 25, 56, 0.46), transparent 48%, rgba(23, 25, 56, 0.14) ); content: ""; }
header .maze-map { position: absolute; z-index: 2; right: clamp(18px, 3vw, 48px); bottom: clamp(30px, 5vw, 76px); width: min(58%, 430px); color: rgba(238, 227, 203, 0.84); filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.28)); }
header .maze-map path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 1500; stroke-dashoffset: 1500; transition: stroke-dashoffset 1800ms cubic-bezier(0.22, 0.7, 0.18, 1) 220ms; }
header.is-ready .maze-map path { stroke-dashoffset: 0; }
header .hero-stamp { position: absolute; z-index: 3; top: 34px; right: 34px; display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid rgba(238, 227, 203, 0.7); border-radius: 50%; color: var(--paper); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-align: center; transform: rotate(8deg); }
header .hero-caption { position: absolute; z-index: 3; right: 28px; bottom: 20px; left: 28px; display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; border-top: 1px solid rgba(238, 227, 203, 0.5); color: rgba(238, 227, 203, 0.78); font-size: 12px; letter-spacing: 0.06em; }

/* academy */
#academy { padding: clamp(90px, 10vw, 150px) 0; background: var(--paper); }
#academy .academy-layout { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(500px, 1.55fr); gap: clamp(40px, 7vw, 108px); }
#academy .academy-copy { align-self: start; position: sticky; top: 118px; }
#academy .academy-copy blockquote { margin: 36px 0 0; padding: 24px 0 0 24px; border-top: 1px solid var(--line); border-left: 3px solid var(--ochre); color: var(--indigo); font-size: clamp(19px, 1.8vw, 25px); font-weight: 700; line-height: 1.65; }
#academy .academy-board { position: relative; padding: clamp(20px, 3vw, 40px); background: #e4d6ba; box-shadow: var(--shadow); }
#academy .academy-image { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16/10; background: var(--indigo-deep); }
#academy .academy-image img { height: 100%; object-fit: cover; object-position: center 56%; filter: saturate(.6) sepia(.1) hue-rotate(185deg) contrast(.96); transition: clip-path 1100ms cubic-bezier(.2, .8, .2, 1); }
#academy .academy-image figcaption { position: absolute; right: 0; bottom: 0; padding: 10px 16px; background: rgba(23, 25, 56, 0.92); color: var(--parchment); font-size: 13px; }
#academy .academy-notes { display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 28px; margin-top: 26px; }
#academy .academy-note { position: relative; padding-top: 18px; border-top: 1px solid var(--indigo); }
#academy .academy-note h3 { margin: 0 0 8px; color: var(--ochre); font-size: 18px; }
#academy .academy-note p { margin: 0; color: #514d53; font-size: 15px; }
#academy .seal-note { align-self: start; padding: 24px; background: var(--ochre); color: var(--paper); transform: rotate(1.3deg); }
#academy .seal-note strong { display: block; margin-bottom: 6px; color: var(--gold-light); font-size: 14px; letter-spacing: 0.1em; }
#academy .seal-note p { margin: 0; color: rgba(251, 246, 233, 0.82); font-size: 14px; }

/* courses */
#courses { padding: clamp(90px, 9vw, 136px) 0; background: var(--parchment); }
#courses .course-header { display: grid; grid-template-columns: 1fr 0.9fr; gap: 60px; align-items: end; margin-bottom: 54px; }
#courses .course-header .section-intro { margin: 0 0 3px auto; }
#courses .course-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); border-top: 1px solid var(--indigo); border-bottom: 1px solid var(--indigo); }
#courses .course-tab-list { margin: 0; padding: 0; border-right: 1px solid var(--indigo); list-style: none; }
#courses .course-tab { width: 100%; padding: 24px 28px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--indigo); text-align: left; cursor: pointer; transition: background var(--transition), color var(--transition), padding-left var(--transition); }
#courses .course-tab span { display: block; margin-bottom: 6px; color: var(--ochre); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
#courses .course-tab:hover, #courses .course-tab.is-active { padding-left: 38px; background: var(--indigo); color: var(--paper); }
#courses .course-tab.is-active span { color: var(--gold-light); }
#courses .course-panels { position: relative; min-height: 510px; }
#courses .course-panel { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 0.95fr; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity var(--transition), visibility var(--transition); }
#courses .course-panel.is-active { position: relative; visibility: visible; opacity: 1; pointer-events: auto; }
#courses .course-panel-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 5vw, 76px); }
#courses .course-panel-copy h3 { margin: 0 0 20px; color: var(--indigo-deep); font-size: clamp(24px, 2.5vw, 36px); line-height: 1.35; }
#courses .course-panel-copy p { max-width: 540px; margin: 0 0 28px; }
#courses .lesson-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
#courses .lesson-list li { display: grid; grid-template-columns: 86px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
#courses .lesson-list strong { color: var(--ochre); }
#courses .course-panel-image { position: relative; min-height: 510px; overflow: hidden; background: var(--indigo-deep); }
#courses .course-panel-image img { height: 100%; object-fit: cover; filter: saturate(0.5) sepia(0.08) hue-rotate(182deg) contrast(0.96); transform: scale(1.03); transition: transform 900ms cubic-bezier(0.22, 0.75, 0.2, 1); }
#courses .course-panel.is-active .course-panel-image img { transform: scale(1); }
#courses .course-panel-image::before { position: absolute; z-index: 1; inset: 20px; border: 1px solid rgba(251, 246, 233, 0.72); content: ""; pointer-events: none; }

/* students */
#students { padding: clamp(90px, 10vw, 150px) 0; overflow: hidden; background: var(--indigo-deep); color: var(--parchment); }
#students .students-heading-row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-bottom: 52px; }
#students .section-kicker { color: var(--gold-light); }
#students .section-heading { color: var(--paper); }
#students .students-heading-row p { max-width: 460px; margin: 0; color: rgba(238, 227, 203, 0.68); }
#students .student-track { display: grid; grid-template-columns: 1.12fr 0.86fr 1fr 0.8fr; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
#students .student-profile { position: relative; min-height: 600px; overflow: hidden; background: var(--indigo-deep); cursor: pointer; }
#students .student-profile:nth-child(even) { margin-top: 46px; }
#students .student-profile img { height: 100%; object-fit: cover; filter: saturate(0.38) sepia(0.08) hue-rotate(185deg) contrast(1.03) brightness(0.8); transform: scale(1.02); transition: filter var(--transition), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
#students .student-profile:hover img, #students .student-profile.is-active img { filter: none; transform: scale(1.055); }
#students .student-profile::after { position: absolute; inset: 0; background: linear-gradient( 180deg, transparent 42%, rgba(23, 25, 56, 0.95) ); content: ""; }
#students .student-meta { position: absolute; z-index: 2; right: 24px; bottom: 28px; left: 24px; }
#students .student-meta span { color: var(--gold-light); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
#students .student-meta h3 { margin: 5px 0; color: var(--paper); font-size: clamp(22px, 2vw, 30px); }
#students .student-meta p { margin: 0; color: rgba(238, 227, 203, 0.68); font-size: 14px; line-height: 1.65; }
#students .relationship-ledger { display: grid; grid-template-columns: 210px 1fr; gap: 42px; margin-top: 58px; padding-top: 34px; border-top: 1px solid var(--line-light); }
#students .relationship-title { margin: 0; color: var(--gold-light); font-size: 16px; letter-spacing: 0.08em; }
#students .relationship-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
#students .relationship-content article { padding-left: 18px; border-left: 2px solid var(--ochre); }
#students .relationship-content strong { display: block; color: var(--paper); font-size: 15px; }
#students .relationship-content p { margin: 5px 0 0; color: rgba(238, 227, 203, 0.62); font-size: 14px; line-height: 1.65; }

/* labyrinths */
#labyrinths { padding: clamp(90px, 10vw, 150px) 0; background: var(--paper); }
#labyrinths .labyrinth-head { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; margin-bottom: 58px; }
#labyrinths .labyrinth-head .section-intro { margin-top: 6px; }
#labyrinths .maze-storyboard { display: grid; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: auto auto; gap: 24px; }
#labyrinths .maze-scene { position: relative; margin: 0; overflow: hidden; background: var(--indigo); }
#labyrinths .maze-scene:first-child { grid-row: 1/3; min-height: 720px; }
#labyrinths .maze-scene:not(:first-child) { min-height: 348px; }
#labyrinths .maze-scene img { height: 100%; object-fit: cover; filter: saturate(0.48) sepia(0.08) hue-rotate(182deg) contrast(0.98); }
#labyrinths .maze-scene:nth-child(2) img { transition-delay: 120ms; }
#labyrinths .maze-scene:nth-child(3) img { transition-delay: 240ms; }
#labyrinths .maze-scene::after { position: absolute; inset: 0; background: linear-gradient( 180deg, transparent 50%, rgba(23, 25, 56, 0.92) ); content: ""; }
#labyrinths .maze-caption { position: absolute; z-index: 2; right: 26px; bottom: 24px; left: 26px; color: var(--paper); }
#labyrinths .maze-caption span { color: var(--gold-light); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
#labyrinths .maze-caption h3 { margin: 4px 0 6px; font-size: clamp(20px, 2vw, 28px); }
#labyrinths .maze-caption p { max-width: 520px; margin: 0; color: rgba(251, 246, 233, 0.72); font-size: 14px; }
#labyrinths .mechanism-ledger { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 42px; border-top: 1px solid var(--indigo); border-bottom: 1px solid var(--indigo); }
#labyrinths .mechanism-item { padding: 28px 24px; border-right: 1px solid var(--line); }
#labyrinths .mechanism-item:last-child { border-right: 0; }
#labyrinths .mechanism-item span { color: var(--ochre); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
#labyrinths .mechanism-item h3 { margin: 8px 0 10px; color: var(--indigo-deep); font-size: 19px; }
#labyrinths .mechanism-item p { margin: 0; color: #5b565b; font-size: 14px; line-height: 1.7; }

/* strategy */
#strategy { padding: clamp(90px, 10vw, 150px) 0; background: var(--ochre-deep); color: var(--parchment); }
#strategy .strategy-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr); gap: clamp(48px, 7vw, 100px); align-items: center; }
#strategy .section-kicker { color: var(--gold-light); }
#strategy .section-heading { color: var(--paper); }
#strategy .strategy-copy .section-intro { color: rgba(238, 227, 203, 0.72); }
#strategy .turn-sequence { margin: 42px 0 0; padding: 0; list-style: none; counter-reset: turn; }
#strategy .turn-sequence li { display: grid; grid-template-columns: 58px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(238, 227, 203, 0.23); counter-increment: turn; }
#strategy .turn-sequence li::before { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold-light); color: var(--gold-light); content: counter(turn); font-weight: 800; }
#strategy .turn-sequence strong { color: var(--paper); }
#strategy .turn-sequence span { color: rgba(238, 227, 203, 0.55); font-size: 13px; }
#strategy .strategy-board { position: relative; padding: 34px; background: var(--parchment); color: var(--indigo-deep); box-shadow: 0 28px 70px rgba(28, 10, 12, 0.3); }
#strategy .strategy-board::before { position: absolute; inset: 14px; border: 1px solid var(--gold); content: ""; pointer-events: none; }
#strategy .board-image { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 5/4; }
#strategy .board-image img { height: 100%; object-fit: cover; filter: saturate(0.42) sepia(0.18) hue-rotate(185deg); }
#strategy .board-grid { position: absolute; z-index: 2; inset: 12% 10%; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr); border-top: 1px solid rgba(238, 227, 203, 0.72); border-left: 1px solid rgba(238, 227, 203, 0.72); }
#strategy .board-grid span { border-right: 1px solid rgba(238, 227, 203, 0.72); border-bottom: 1px solid rgba(238, 227, 203, 0.72); }
#strategy .unit-token { position: absolute; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; background: var(--ochre); color: var(--paper); font-size: 12px; font-weight: 900; box-shadow: 0 7px 18px rgba(0, 0, 0, 0.25); transition: transform var(--transition), background var(--transition); }
#strategy .unit-token.token-a { top: 31%; left: 24%; }
#strategy .unit-token.token-b { top: 51%; left: 58%; background: var(--indigo); }
#strategy .unit-token.token-c { top: 70%; left: 42%; background: var(--gold); color: var(--indigo-deep); }
#strategy .strategy-board:hover .token-a { transform: translate(54px, 0); }
#strategy .strategy-board:hover .token-b { transform: translate(0, -48px); }
#strategy .strategy-board:hover .token-c { transform: translate(54px, -48px); }
#strategy .board-note { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto; gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--indigo); }
#strategy .board-note strong { color: var(--ochre); }
#strategy .board-note span { color: #6b6568; font-size: 13px; }

/* story */
#story { padding: clamp(90px, 10vw, 150px) 0; background: var(--parchment); }
#story .story-intro { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 70px; margin-bottom: 56px; }
#story .story-intro .section-intro { margin-top: 6px; }
#story .chapter-axis { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--indigo); }
#story .chapter-axis::before { position: absolute; top: -3px; left: 0; width: 25%; height: 5px; background: var(--ochre); content: ""; transition: width 900ms cubic-bezier(0.2, 0.8, 0.2, 1); }
#story .chapter-axis:hover::before { width: 100%; }
#story .story-chapter { min-height: 380px; padding: 34px 28px; border-right: 1px solid var(--line); }
#story .story-chapter:last-child { border-right: 0; }
#story .story-chapter span { display: block; margin-bottom: 50px; color: var(--ochre); font-size: 13px; font-weight: 900; letter-spacing: 0.14em; }
#story .story-chapter h3 { margin: 0 0 18px; color: var(--indigo-deep); font-size: clamp(21px, 2vw, 28px); line-height: 1.4; }
#story .story-chapter p { margin: 0; color: #5d575d; font-size: 15px; }
#story .story-chapter:nth-child(2), #story .story-chapter:nth-child(4) { background: rgba(181, 141, 66, 0.12); }

/* guide */
#guide { padding: clamp(90px, 9vw, 136px) 0; background: var(--paper-dark); }
#guide .guide-layout { display: grid; grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr); gap: clamp(50px, 8vw, 118px); align-items: start; }
#guide .guide-visual { position: sticky; top: 110px; }
#guide .guide-visual figure { position: relative; margin: 0; padding: 18px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(-1.2deg); }
#guide .guide-visual img { aspect-ratio: 4/5; object-fit: cover; filter: saturate(0.46) sepia(0.18) hue-rotate(182deg); }
#guide .guide-visual figcaption { margin-top: 14px; color: var(--ochre); font-size: 13px; font-weight: 700; }
#guide .guide-content .section-intro { margin-bottom: 38px; }
#guide .guide-list { border-top: 1px solid var(--indigo); }
#guide .guide-item { border-bottom: 1px solid var(--indigo); }
#guide .guide-toggle { display: grid; grid-template-columns: 42px 1fr 28px; gap: 18px; align-items: center; width: 100%; padding: 22px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
#guide .guide-toggle span:first-child { color: var(--ochre); font-size: 12px; font-weight: 900; }
#guide .guide-toggle strong { color: var(--indigo-deep); font-size: 18px; }
#guide .guide-toggle span:last-child { font-size: 22px; transition: transform var(--transition); }
#guide .guide-toggle.is-active span:last-child { transform: rotate(45deg); }
#guide .guide-answer { display: none; max-width: 680px; padding: 0 48px 24px 60px; color: #575157; }
#guide .guide-answer.is-open { display: block; }
#guide .guide-answer p { margin: 0; }
#guide .guide-answer ul { margin: 14px 0 0; padding-left: 22px; }
#guide .guide-answer li { margin: 5px 0; }

/* footer */
footer { background: var(--indigo-deep); color: var(--parchment); }
footer .footer-callout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 60px; align-items: end; padding: clamp(76px, 9vw, 128px) var(--gutter); border-bottom: 1px solid var(--line-light); }
footer .footer-callout p { max-width: 820px; margin: 0; color: var(--paper); font-size: clamp(30px, 4vw, 54px); font-weight: 800; line-height: 1.28; letter-spacing: -0.035em; }
footer .footer-callout p span { color: var(--gold-light); }
footer .footer-callout .text-link { justify-self: end; color: var(--gold-light); }
footer .footer-index { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; padding: 48px var(--gutter); }
footer .footer-brand strong { display: block; color: var(--paper); font-size: 20px; }
footer .footer-brand span { color: rgba(238, 227, 203, 0.52); font-size: 13px; letter-spacing: 0.1em; }
footer .footer-list { display: flex; flex-wrap: wrap; align-content: start; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
footer .footer-list a { color: rgba(238, 227, 203, 0.68); font-size: 14px; transition: color var(--transition); }
footer .footer-list a:hover { color: var(--gold-light); }
footer .footer-meta { text-align: right; color: rgba(238, 227, 203, 0.48); font-size: 13px; }
footer .footer-meta p { margin: 0; }

@media (max-width: 1280px) {
	:root { --gutter: 36px; }
	header .hero-layout { grid-template-columns: 190px minmax(350px, 1fr) minmax(360px, 1.15fr); }
	header .hero-copy { padding-right: 44px; padding-left: 44px; }
	header .hero-stamp { width: 94px; height: 94px; }
	#students .student-track { grid-template-columns: 1.1fr 0.9fr 1fr 0.9fr; }
	#students .student-profile { min-height: 540px; }
	#strategy .strategy-layout { gap: 56px; }
	#story .story-chapter { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 960px) {
	:root { --gutter: 28px; --header-height: 78px; }
	header { min-height: auto; }
	header .top-ledger { grid-template-columns: 1fr 1fr; }
	header .top-ledger span:nth-child(2) { display: none; }
	header .hero-layout { grid-template-columns: 170px 1fr; min-height: auto; }
	header .hero-index { grid-row: 1/3; }
	header .hero-copy { min-height: 520px; padding: 68px 48px; }
	header .hero-visual { min-height: 560px; }
	header .hero-stamp { top: 24px; right: 24px; }
	#academy .academy-layout { grid-template-columns: 1fr; }
	#academy .academy-copy { position: static; display: grid; grid-template-columns: 1fr 0.9fr; gap: 38px; }
	#academy .academy-copy blockquote { margin: 0; }
	#courses .course-header { grid-template-columns: 1fr; gap: 22px; }
	#courses .course-header .section-intro { margin: 0; }
	#courses .course-shell { grid-template-columns: 220px minmax(0, 1fr); }
	#courses .course-panel { grid-template-columns: 1fr; }
	#courses .course-panel-image { min-height: 360px; }
	#students .student-track { grid-template-columns: repeat(2, 1fr); }
	#students .student-profile:nth-child(even) { margin-top: 0; }
	#students .student-profile { min-height: 520px; }
	#students .relationship-ledger { grid-template-columns: 1fr; gap: 24px; }
	#labyrinths .mechanism-ledger { grid-template-columns: repeat(2, 1fr); }
	#labyrinths .mechanism-item:nth-child(2) { border-right: 0; }
	#labyrinths .mechanism-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
	#strategy .strategy-layout { grid-template-columns: 1fr; }
	#strategy .strategy-board { max-width: 680px; }
	#story .story-intro { grid-template-columns: 1fr; gap: 20px; }
	#story .chapter-axis { grid-template-columns: repeat(2, 1fr); }
	#story .story-chapter:nth-child(2) { border-right: 0; }
	#story .story-chapter:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
	#guide .guide-layout { grid-template-columns: 310px 1fr; gap: 48px; }
	footer .footer-callout { grid-template-columns: 1fr; gap: 30px; }
	footer .footer-callout .text-link { justify-self: start; }
}
@media (max-width: 768px) {
	:root { --gutter: 22px; }
	body { font-size: 16px; }
	header .top-ledger { display: none; }
	header .main-nav { grid-template-columns: 1fr auto; }
	header .main-nav.is-scrolled { min-height: 68px; }
	header .menu-toggle { display: block; }
	header .nav-list { position: fixed; z-index: 20; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 100px var(--gutter) 40px; background: var(--indigo-deep); visibility: hidden; opacity: 0; transform: translateX(100%); transition: visibility var(--transition), opacity var(--transition), transform var(--transition); }
	header .nav-list.is-open { visibility: visible; opacity: 1; transform: translateX(0); }
	header .nav-list a { min-width: 220px; padding: 15px 0; font-size: 22px; }
	header .hero-layout { display: flex; flex-direction: column; }
	header .hero-copy { order: 1; min-height: auto; padding: 66px var(--gutter) 54px; }
	header .hero-visual { order: 2; min-height: 500px; }
	header .hero-index { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 34px var(--gutter); border-top: 1px solid var(--line-light); border-right: 0; }
	header .hero-index-note { margin: 0; }
	header .maze-map { width: 64%; }
	#academy .academy-copy { display: block; }
	#academy .academy-copy blockquote { margin-top: 30px; }
	#academy .academy-board { margin-right: -22px; margin-left: -22px; padding: 22px; }
	#academy .academy-notes { grid-template-columns: 1fr; }
	#courses .course-shell { display: block; border-bottom: 0; }
	#courses .course-tab-list { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--indigo); scrollbar-width: none; }
	#courses .course-tab-list::-webkit-scrollbar { display: none; }
	#courses .course-tab { flex: 0 0 210px; border-right: 1px solid var(--line); border-bottom: 0; }
	#courses .course-tab:hover, #courses .course-tab.is-active { padding-left: 28px; }
	#courses .course-panel-copy { padding: 42px 0; }
	#courses .course-panel-image { min-height: 420px; }
	#students .students-heading-row { grid-template-columns: 1fr; gap: 20px; }
	#students .student-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: transparent; border: 0; gap: 14px; margin-right: -22px; padding-right: 22px; scrollbar-width: none; }
	#students .student-track::-webkit-scrollbar { display: none; }
	#students .student-profile { flex: 0 0 76vw; min-height: 530px; border: 1px solid var(--line-light); scroll-snap-align: start; }
	#students .relationship-content { grid-template-columns: 1fr; }
	#labyrinths .labyrinth-head { grid-template-columns: 1fr; gap: 22px; }
	#labyrinths .maze-storyboard { grid-template-columns: 1fr; grid-template-rows: auto; }
	#labyrinths .maze-scene:first-child { grid-row: auto; min-height: 520px; }
	#labyrinths .maze-scene:not(:first-child) { min-height: 320px; }
	#story .chapter-axis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	#story .chapter-axis::-webkit-scrollbar { display: none; }
	#story .chapter-axis::before { display: none; }
	#story .story-chapter { flex: 0 0 72vw; min-height: 350px; border-top: 3px solid var(--ochre); border-right: 1px solid var(--line); border-bottom: 0; scroll-snap-align: start; }
	#guide .guide-layout { grid-template-columns: 1fr; }
	#guide .guide-visual { position: static; max-width: 420px; }
	footer .footer-index { grid-template-columns: 1fr 1fr; }
	footer .footer-brand { grid-column: 1/3; }
	footer .footer-meta { text-align: left; }
}
@media (max-width: 500px) {
	:root { --gutter: 18px; }
	body { line-height: 1.75; }
	.section-heading { font-size: clamp(28px, 9vw, 36px); }
	header .main-nav { min-height: 70px; }
	header .brand-mark { width: 32px; height: 32px; }
	header .brand-copy strong { font-size: 15px; }
	header .brand-copy small { font-size: 10px; }
	header .hero-copy { padding-top: 54px; padding-bottom: 46px; }
	header h1 { font-size: clamp(34px, 10vw, 40px); }
	header h1 span { font-size: 0.36em; }
	header .hero-lead { margin: 24px 0 28px; }
	header .hero-actions { align-items: flex-start; gap: 14px; }
	header .primary-link { width: 100%; }
	header .hero-visual { min-height: 430px; }
	header .hero-stamp { width: 78px; height: 78px; font-size: 10px; }
	header .hero-caption { display: block; }
	header .hero-caption span:last-child { display: none; }
	header .hero-index { display: block; }
	header .chapter-list { margin-bottom: 26px; }
	#academy .academy-image { aspect-ratio: 4/5; }
	#academy .academy-image img { object-position: 58% center; }
	#courses .course-tab { flex-basis: 176px; padding: 18px; }
	#courses .course-tab:hover, #courses .course-tab.is-active { padding-left: 18px; }
	#courses .course-panel-image { min-height: 330px; }
	#students .student-profile { flex-basis: 84vw; min-height: 500px; }
	#students .relationship-ledger { margin-top: 42px; }
	#labyrinths .maze-scene:first-child { min-height: 440px; }
	#labyrinths .maze-scene:not(:first-child) { min-height: 290px; }
	#labyrinths .mechanism-ledger { grid-template-columns: 1fr; }
	#labyrinths .mechanism-item { border-right: 0; border-bottom: 1px solid var(--line); }
	#labyrinths .mechanism-item:last-child { border-bottom: 0; }
	#strategy .turn-sequence li { grid-template-columns: 46px 1fr; }
	#strategy .turn-sequence span { grid-column: 2; }
	#strategy .strategy-board { margin-right: -18px; margin-left: -18px; padding: 24px; }
	#strategy .unit-token { width: 34px; height: 34px; }
	#strategy .strategy-board:hover .token-a, #strategy .strategy-board:hover .token-b, #strategy .strategy-board:hover .token-c { transform: none; }
	#story .story-chapter { flex-basis: 84vw; }
	#guide .guide-toggle { grid-template-columns: 32px 1fr 24px; gap: 10px; }
	#guide .guide-answer { padding-right: 20px; padding-left: 42px; }
	footer .footer-callout { padding-right: 18px; padding-left: 18px; }
	footer .footer-callout p { font-size: clamp(29px, 9vw, 38px); }
	footer .footer-index { grid-template-columns: 1fr; padding-right: 18px; padding-left: 18px; }
	footer .footer-brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto; transition-duration: 0.01ms; animation-duration: 0.01ms; animation-iteration-count: 1; }
	header .hero-visual img, #academy .academy-image img, #labyrinths .maze-scene img { clip-path: none; transform: none; }
	header .maze-map path { stroke-dashoffset: 0; }
}