/* Cinematic narrative layer: loaded after the shared page and motion styles. */
:root {
  --narrative-ink: #171b19;
  --narrative-paper: #f3f0e7;
  --narrative-ash: #d9d4c8;
  --narrative-gold: #c0a76d;
  --narrative-gold-dark: #75603b;
  --narrative-serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  --narrative-sans: "Noto Sans TC", "Source Han Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body { background: var(--narrative-paper); color: var(--narrative-ink); }
.cinematic-hero {
  position: relative;
  min-height: max(640px, calc(100vh - 118px));
  min-height: max(640px, calc(100svh - 118px));
  overflow: clip;
  isolation: isolate;
  color: #f5f2e9;
  background: #151a18;
}
.cinematic-hero-inner {
  position: relative;
  display: flex;
  min-height: max(640px, calc(100vh - 118px));
  min-height: max(640px, calc(100svh - 118px));
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(64px, 7vw, 100px) max(40px, calc((100vw - 1320px) / 2)) 110px;
  z-index: 1;
}
.cinematic-copy {
  position: relative;
  z-index: 3;
  width: min(55%, 680px);
  padding: 0;
  text-shadow: 0 2px 24px rgb(0 0 0 / 38%);
}
.cinematic-copy .eyebrow { color: #e0cb96; font-size: 14px; letter-spacing: .16em; }
.cinematic-copy h1 {
  max-width: 11em;
  margin: 26px 0 27px;
  color: #f8f5ec;
  font-family: var(--narrative-serif);
  font-size: clamp(62px, 6.3vw, 100px);
  font-weight: 500;
  line-height: 1.33;
  letter-spacing: .055em;
  text-wrap: balance;
}
.cinematic-copy h1 em { color: inherit; font-style: normal; }
.cinema-lead { max-width: 27em; margin: 0; color: #f0ede4; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.85; letter-spacing: .04em; }
.cinema-dedication { margin: 14px 0 0; color: #d8d1c3; font-size: 16px; line-height: 1.8; letter-spacing: .08em; }
.cinematic-copy .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.cinematic-copy .button { min-height: 50px; font-size: 16px; }
.cinematic-copy .button-primary { background: #c0a76d; border-color: #c0a76d; color: #171b19; text-shadow: none; }
.cinematic-copy .button-quiet { display: inline-flex; min-height: 50px; align-items: center; padding: 12px 18px; border: 1px solid rgb(243 240 231 / 48%); color: #f3f0e7; text-decoration: none; text-shadow: none; }
.cinema-landscape { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #222927; }
.cinema-landscape::before {
  position: absolute; z-index: 1; inset: 0; content: "";
  background: linear-gradient(90deg, rgb(13 18 17 / 86%) 0%, rgb(15 19 18 / 65%) 34%, rgb(16 19 17 / 20%) 67%, rgb(14 17 16 / 8%) 100%),
    linear-gradient(0deg, rgb(15 19 17 / 52%) 0%, transparent 32%, rgb(15 19 17 / 16%) 100%);
  pointer-events: none;
}
.cinema-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.cinema-layer--world { filter: saturate(.72) contrast(1.02); }
.cinema-layer--guardians { mix-blend-mode: normal; }

.cinema-weather, .cinema-vignette { position: absolute; inset: 0; pointer-events: none; }
.cinema-weather { z-index: 2; }
.cinema-weather canvas { display: block; width: 100%; height: 100%; }
.cinema-vignette { z-index: 3; box-shadow: inset 0 0 140px rgb(0 0 0 / 30%); }
.cinema-caption { position: absolute; right: max(28px, calc((100vw - 1320px) / 2)); bottom: 27px; z-index: 4; display: flex; gap: 24px; color: rgb(243 240 231 / 78%); font-size: 14px; letter-spacing: .12em; }
.cinema-toggle { position: absolute; right: max(28px, calc((100vw - 1320px) / 2)); bottom: 62px; z-index: 5; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 13px; border: 1px solid rgb(243 240 231 / 45%); border-radius: 0; background: rgb(18 21 19 / 40%); color: #f3f0e7; font: inherit; font-size: 14px; cursor: pointer; }
.cinema-toggle[hidden] { display: none; }
.cinema-toggle { transition: background-color .14s ease, transform .14s ease; }
.cinema-toggle:active { transform: scale(.96); }
.cinematic-copy .button-primary:hover { background: #d9c99f; }
.cinematic-copy .button-primary span { color: currentColor; }
.cinematic-copy .button-quiet:hover { background: rgb(243 240 231 / 12%); }
.cinema-toggle:hover { background: rgb(18 21 19 / 72%); }
.cinema-toggle:focus-visible, .cinematic-copy a:focus-visible { outline: 2px solid #f3dc9e; outline-offset: 4px; }
.cinema-toggle-icon { font-size: 14px; line-height: 1; }

/* Five scenes and the three vows open as editorial chapters, not dashboard cards. */
.vows, .reach, #why, #cycle, #defenses { scroll-margin-top: 90px; }
.vows { padding-block: clamp(92px, 11vw, 164px); background: #f3f0e7; }
.vows-heading { display: grid; grid-template-columns: minmax(150px, .55fr) 1.45fr; align-items: start; gap: 28px; margin-bottom: clamp(52px, 8vw, 116px); }
.vows-heading .section-kicker { color: var(--narrative-gold-dark); }
.vows-heading .section-title { max-width: 12ch; margin: 0; font-family: var(--narrative-serif); font-size: clamp(40px, 5.5vw, 76px); font-weight: 500; line-height: 1.3; letter-spacing: .04em; }
.vow-chapters { border-top: 1px solid rgb(23 27 25 / 35%); }
.vow-chapter { display: grid; grid-template-columns: minmax(145px, .55fr) minmax(240px, .9fr) minmax(280px, 1.25fr); column-gap: clamp(24px, 4vw, 66px); row-gap: 16px; padding: clamp(34px, 5.2vw, 72px) 0; border-bottom: 1px solid rgb(23 27 25 / 24%); }
.vow-number { margin: 8px 0 0; color: var(--narrative-gold-dark); font-size: 14px; letter-spacing: .13em; }
.vow-number span { display: block; margin-top: 12px; color: var(--narrative-ink); font-size: 16px; letter-spacing: .05em; }
.vow-chapter h3 { margin: 0; font-family: var(--narrative-serif); font-size: clamp(28px, 3vw, 42px); font-weight: 500; line-height: 1.5; letter-spacing: .035em; }
.vow-chapter > p:not(.vow-number):not(.vow-practice) { max-width: 39em; margin: 0; font-size: 17px; line-height: 2; }
.vow-practice { grid-column: 3; display: grid; grid-template-columns: 92px 1fr; gap: 12px; margin: 8px 0 0; padding-top: 17px; border-top: 1px solid rgb(23 27 25 / 16%); font-size: 16px; line-height: 1.8; }
.vow-practice b { color: var(--narrative-gold-dark); font-weight: 500; }
.vows-close { max-width: 34em; margin: 36px 0 0 auto; font-family: var(--narrative-serif); font-size: clamp(20px, 2.1vw, 27px); line-height: 1.7; }
.reach { position: relative; padding-block: clamp(88px, 10vw, 148px); overflow: hidden; background: #e7e2d6; }
.reach-heading { display: grid; grid-template-columns: minmax(190px, .7fr) 1.3fr; gap: 28px; align-items: start; margin-bottom: 64px; }
.reach-heading .section-kicker { color: var(--narrative-gold-dark); }
.reach-heading .section-title { margin: 0; font-family: var(--narrative-serif); font-size: clamp(42px, 5vw, 68px); font-weight: 500; line-height: 1.37; letter-spacing: .045em; }
.reach-heading .section-title span { white-space: nowrap; }
.reach-path { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(23 27 25 / 32%); }
.reach-path li { position: relative; min-height: 222px; padding: 25px 23px 20px 0; }
.reach-path li + li { padding-left: 24px; border-left: 1px solid rgb(23 27 25 / 22%); }
.reach-index { display: block; margin-bottom: 32px; color: var(--narrative-gold-dark); font-size: 14px; letter-spacing: .15em; }
.reach-path h3 { margin: 0 0 11px; font-family: var(--narrative-serif); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; }
.reach-path p { margin: 0; max-width: 24em; font-size: 16px; line-height: 1.9; }
.reach-example { max-width: 54em; margin: 40px 0 0 auto; padding: 19px 0 0; border-top: 1px solid rgb(23 27 25 / 24%); font-size: 16px; line-height: 1.9; }
.reach-example b { margin-right: 10px; color: var(--narrative-gold-dark); font-weight: 500; }
.roster-band { scroll-margin-top: 84px; }

@media (min-width: 1500px) {
  .cinematic-copy { padding-top: 0; }
}
@media (max-width: 900px) {
  .cinematic-hero, .cinematic-hero-inner { min-height: max(700px, calc(100svh - 90px)); }
  .cinematic-copy { width: min(75%, 650px); padding-top: 0; }
  .cinematic-copy h1 { font-size: clamp(54px, 7.2vw, 82px); }
  .cinema-layer { object-position: 78% center; }
  .vow-chapter { grid-template-columns: 105px minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; }
  .vow-chapter > p:not(.vow-number):not(.vow-practice) { font-size: 16px; }
  .vow-practice { grid-column: 2 / 4; margin-left: 0; }
}
@media (max-width: 680px) {
  .cinematic-hero { min-height: 820px; }
  .cinematic-hero-inner { min-height: 820px; padding: 44px 22px 430px; }
  .cinematic-copy { width: 100%; max-width: 540px; padding-top: 0; }
  .cinematic-copy h1 { max-width: 10em; margin: 20px 0; font-size: clamp(43px, 11vw, 58px); line-height: 1.42; }
  .cinema-lead { max-width: 24em; font-size: 17px; }
  .cinema-lead span { display: block; }
  .cinema-dedication { max-width: 22em; font-size: 16px; }
  .cinematic-copy .hero-actions { flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 25px; }
  .cinematic-copy .button-primary, .cinematic-copy .button-quiet { min-height: 46px; padding: 11px 16px; font-size: 16px; }
  .cinematic-copy .button-quiet { border: 0; padding-left: 0; text-decoration: underline; text-underline-offset: 7px; }
  .cinema-landscape { inset: auto 0 0; height: 560px; mask-image: linear-gradient(to bottom, transparent, black 24%); }
  .cinema-landscape::before { background: linear-gradient(180deg, #151a18 0%, rgb(21 26 24 / 50%) 30%, rgb(13 17 16 / 3%) 60%, rgb(13 17 16 / 35%) 100%), linear-gradient(90deg, rgb(13 17 16 / 28%), transparent 95%); }
  .cinema-layer { object-position: 83% center; }
  .cinema-weather { opacity: .6; }
  .cinema-caption { right: 20px; bottom: 18px; left: 22px; display: flex; gap: 12px; font-size: 14px; letter-spacing: .02em; }
  .cinema-caption span + span { margin-left: auto; }
  .cinema-toggle { right: 20px; bottom: 48px; min-height: 42px; font-size: 14px; }
  .vows, .reach { padding-block: 76px; }
  .vows-heading, .reach-heading { display: block; margin-bottom: 42px; }
  .vows-heading .section-title, .reach-heading .section-title { margin-top: 18px; font-size: clamp(38px, 10vw, 52px); }
  .vow-chapter { grid-template-columns: 1fr; gap: 17px; padding: 34px 0; }
  .vow-number { margin: 0; }
  .vow-number span { display: inline; margin: 0 0 0 12px; }
  .vow-chapter h3 { font-size: 30px; }
  .vow-chapter > p:not(.vow-number):not(.vow-practice) { font-size: 16px; }
  .vow-practice { grid-column: 1; grid-template-columns: 78px 1fr; }
  .vows-close { margin-top: 28px; font-size: 20px; }
  .reach-heading .section-title span, .reach-heading .section-title em { display: block; }
  .reach-heading .section-title br { display: none; }
  .reach-path { grid-template-columns: 1fr 1fr; }
  .reach-path li { min-height: 190px; padding: 20px 14px 18px 0; }
  .reach-path li + li { padding-left: 16px; }
  .reach-path li:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid rgb(23 27 25 / 22%); }
  .reach-path li:nth-child(4) { border-top: 1px solid rgb(23 27 25 / 22%); }
  .reach-index { margin-bottom: 20px; }
  .reach-path h3 { font-size: 22px; }
  .reach-path p { font-size: 16px; }
  .reach-example { margin-top: 24px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cinema-toggle:active { transform: none; }
  .cinematic-hero *, .vows *, .reach * { scroll-behavior: auto !important; }
}
