/* =========================================================
   Island Notes — Taiwan, chapter by chapter
   A warm editorial travel journal with a few interactive turns.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("assets/fonts/noto-serif-sc-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2eddf;
  --paper-2: #e9e3d2;
  --paper-3: #ded5c0;
  --cream: #faf5e8;
  --ink: #132b24;
  --ink-2: #44564d;
  --ink-3: #59685f;
  --forest: #12372e;
  --forest-2: #0b2821;
  --forest-3: #1b4a3d;
  --jade: #3f7c65;
  --persimmon: #c95a3d;
  --persimmon-dark: #a8452c;
  --gold: #d0a161;
  --gold-soft: #e3c28f;
  --line: rgba(19, 43, 36, 0.16);
  --line-strong: rgba(19, 43, 36, 0.3);
  --line-light: rgba(250, 245, 232, 0.18);
  --shadow: 0 24px 60px rgba(11, 40, 33, 0.16);
  --pad: clamp(20px, 5vw, 76px);
  --max: 1380px;
  --display: "Fraunces", "Noto Serif SC", "Songti SC", "STSong", "Noto Serif", Georgia, serif;
  --cjk: "Noto Serif SC", "Songti SC", "STSong", "Noto Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", "Noto Sans Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

::selection {
  background: var(--persimmon);
  color: var(--cream);
}

img, picture, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3, h4, blockquote, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; }

html[data-lang="zh"] .i18n-en { display: none !important; }
html[data-lang="en"] .i18n-zh { display: none !important; }

html[data-lang="en"] body { font-family: var(--sans); }
html[data-lang="en"] .display { font-family: var(--display); letter-spacing: -0.025em; }
html[data-lang="zh"] .display { font-family: var(--cjk); letter-spacing: 0.005em; }

:focus-visible {
  outline: 2px solid var(--persimmon);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10002;
  padding: 12px 18px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 0.8rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.wrap {
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(78px, 11vw, 152px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--persimmon);
  flex: 0 0 auto;
}
.eyebrow-light { color: rgba(250, 245, 232, 0.56); }

.display {
  font-family: var(--display);
  font-size: clamp(2.65rem, 5.3vw, 5.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--persimmon);
}
.display-light { color: var(--cream); }
.display-light em { color: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  color: var(--cream);
  transition: color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 19, 0.48), transparent);
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.site-header.is-solid {
  color: var(--ink);
  background: rgba(242, 237, 223, 0.92);
  box-shadow: 0 1px 0 rgba(19, 43, 36, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-solid::before { opacity: 0; }

.header-inner {
  width: min(calc(100% - (var(--pad) * 2)), 1480px);
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark { width: 31px; height: 31px; flex: 0 0 auto; }
.brand-type {
  display: flex;
  flex-direction: column;
  font-family: var(--cjk);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brand-type small {
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  opacity: 0.66;
  margin-top: 4px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.header-nav a {
  position: relative;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.84;
}
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}
.header-nav a:hover::after { right: 0; }

.header-tools { display: flex; align-items: center; gap: 18px; margin-left: 8px; }
.chapter-readout {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  opacity: 0.7;
  white-space: nowrap;
}
.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.sound-toggle:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.site-header.is-solid .sound-toggle:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.sound-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 14px;
  height: 13px;
}
.sound-bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: currentColor;
  transform-origin: bottom center;
  transition: height 0.25s;
}
.sound-bars i:nth-child(2) { height: 9px; }
.sound-bars i:nth-child(3) { height: 6px; }
.sound-toggle:not(.is-playing) .sound-bars i { height: 2px; opacity: 0.55; }
.sound-toggle.is-playing .sound-bars i { animation: soundBar 1.05s ease-in-out infinite; }
.sound-toggle.is-playing .sound-bars i:nth-child(1) { animation-delay: -0.2s; }
.sound-toggle.is-playing .sound-bars i:nth-child(2) { animation-delay: -0.55s; }
.sound-toggle.is-playing .sound-bars i:nth-child(3) { animation-delay: -0.85s; }
@keyframes soundBar {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
.sound-text { white-space: nowrap; }
.lang-toggle {
  appearance: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  min-width: 54px;
  min-height: 32px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.lang-toggle:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.site-header.is-solid .lang-toggle:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(250, 245, 232, 0.14);
}
.site-header.is-solid .read-progress { background: rgba(19, 43, 36, 0.1); }
.read-progress span {
  display: block;
  height: 100%;
  background: var(--persimmon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.40;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-primary:hover { background: var(--persimmon); border-color: var(--persimmon); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(250, 245, 232, 0.4); }
.btn-ghost:hover { background: rgba(250, 245, 232, 0.1); border-color: var(--cream); }
.btn-paper { background: var(--cream); color: var(--ink); }
.btn-paper:hover { background: var(--gold-soft); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: var(--line-light); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(250, 245, 232, 0.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest-2);
  color: var(--cream);
  padding-top: 100px;
}
.hero-media,
.hero-scrim { position: absolute; inset: 0; }
.hero-media picture,
.hero-media img { width: 100%; height: 100%; }
.hero-media img {
  object-fit: cover;
  object-position: center 42%;
  animation: heroZoom 22s var(--ease-out) both;
  filter: saturate(0.9) contrast(1.04);
}
@keyframes heroZoom {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
.hero-scrim {
  background:
    linear-gradient(180deg, rgba(6, 23, 19, 0.45) 0%, rgba(6, 23, 19, 0.05) 32%, rgba(6, 23, 19, 0.16) 54%, rgba(6, 23, 19, 0.9) 100%),
    linear-gradient(90deg, rgba(6, 23, 19, 0.62) 0%, rgba(6, 23, 19, 0.18) 46%, transparent 72%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - (var(--pad) * 2)), 1480px);
  margin-inline: auto;
  padding-bottom: clamp(80px, 13vh, 150px);
}
.hero-eyebrow { color: rgba(250, 245, 232, 0.7); }
.hero-title {
  font-family: var(--display);
  font-size: clamp(4.2rem, 11vw, 10.2rem);
  font-weight: 600;
  line-height: 0.91;
  letter-spacing: -0.045em;
  margin: 24px 0 26px;
  max-width: 13ch;
  text-wrap: balance;
}
html[data-lang="zh"] .hero-title {
  font-family: var(--cjk);
  letter-spacing: 0.01em;
  line-height: 1.06;
  max-width: 10ch;
}
.hero-title em { color: var(--gold-soft); font-weight: 400; }
html[data-lang="zh"] .hero-title em { font-style: normal; }
.hero-lede {
  max-width: 570px;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.9;
  color: rgba(250, 245, 232, 0.82);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 245, 232, 0.62);
}
.hero-meta span { display: inline-flex; align-items: baseline; gap: 5px; }
.hero-meta span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 13px;
  background: rgba(250, 245, 232, 0.25);
}
.hero-meta strong { font-family: var(--display); font-size: 1.1rem; font-weight: 600; color: var(--cream); }
.hero-coord {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 3vw, 42px);
  top: 45%;
  display: flex;
  gap: 15px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: rgba(250, 245, 232, 0.5);
}
.hero-coord span:last-child { color: var(--gold-soft); }
.scroll-cue {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 5vw, 76px);
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(250, 245, 232, 0.55);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(250, 245, 232, 0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-soft);
  transform: translateX(-100%);
  animation: scrollLine 2.8s var(--ease) infinite;
}
@keyframes scrollLine {
  0%, 20% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
.hero-content .eyebrow,
.hero-title,
.hero-lede,
.hero-actions,
.hero-meta {
  animation: heroEnter 1s var(--ease-out) both;
}
.hero-title { animation-delay: 0.12s; }
.hero-lede { animation-delay: 0.24s; }
.hero-actions { animation-delay: 0.34s; }
.hero-meta { animation-delay: 0.44s; }
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- About + map ---------- */
.about { padding-top: clamp(70px, 10vw, 130px); }
.about-grid > *,
.stop-inner > *,
.taste-inner > *,
.quiz-grid > *,
.planner-panel > *,
.score-card > *,
.footer-grid > * { min-width: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
}
.about-copy .display { margin: 20px 0 28px; }
.about-copy > p:not(.eyebrow) {
  max-width: 55ch;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.95;
  margin-top: 18px;
}
.about-sign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sign-line { display: block; width: 44px; height: 1px; background: var(--persimmon); }

.map-card {
  position: relative;
  min-width: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow);
}
.map-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(19, 43, 36, 0.07);
  pointer-events: none;
}
.map-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.mini-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--persimmon-dark);
}
.map-card-head h3 {
  font-family: var(--cjk);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.45;
  font-weight: 600;
  margin-top: 7px;
  letter-spacing: 0.02em;
}
html[data-lang="en"] .map-card-head h3 { font-family: var(--display); letter-spacing: -0.01em; }
.map-count {
  font-family: var(--display);
  font-size: 2.9rem;
  line-height: 0.85;
  color: var(--persimmon-dark);
}
.map-frame {
  position: relative;
  margin-top: 8px;
  aspect-ratio: 420 / 620;
  max-height: 590px;
  width: 100%;
}
.taiwan-map { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink-3); overflow: visible; }
.map-contours use { fill: none; stroke: rgba(250, 245, 232, 0.14); stroke-width: 0.8; }
.island { transition: filter 0.4s; }
.route-line {
  stroke: var(--gold-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 3 9;
  animation: routeDash 26s linear infinite;
}
@keyframes routeDash { to { stroke-dashoffset: -240; } }
.map-water text {
  fill: rgba(19, 43, 36, 0.36);
  font-family: var(--mono);
  font-size: 6.2px;
  letter-spacing: 0.2em;
}
.compass text { fill: var(--ink-3); font-family: var(--mono); font-size: 6px; letter-spacing: 0.1em; }
.map-stops { position: absolute; inset: 0; }
.map-stop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: var(--cream);
  text-decoration: none;
  z-index: 2;
}
.map-pin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(250, 245, 232, 0.94);
  color: var(--forest);
  border: 1px solid var(--forest);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.03em;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.map-stop:hover .map-pin,
.map-stop.is-active .map-pin {
  background: var(--persimmon);
  color: var(--cream);
  border-color: var(--cream);
  transform: scale(1.14);
}
.map-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 8px;
  background: rgba(242, 237, 223, 0.92);
  border: 1px solid rgba(19, 43, 36, 0.16);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.map-stop[data-side="right"] .map-label { left: calc(100% + 2px); }
.map-stop[data-side="left"] .map-label { right: calc(100% + 2px); }
.map-stop:hover .map-label,
.map-stop.is-active .map-label { background: var(--forest); color: var(--cream); }
.map-quick { display: none; min-width: 0; max-width: 100%; }
.map-quick a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: rgba(250, 245, 232, 0.62);
  font-family: var(--mono);
  font-size: 0.56rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink-2);
}
.map-quick a span { color: var(--persimmon-dark); }
.map-quick a:hover, .map-quick a.is-active { background: var(--forest); color: var(--cream); }
.map-quick a.is-active span { color: var(--gold-soft); }
.map-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.map-scale { display: inline-flex; align-items: center; gap: 6px; }
.map-scale i { width: 20px; height: 1px; background: var(--ink-3); display: block; }

/* ---------- History ---------- */
.history {
  background: var(--forest);
  color: var(--cream);
  overflow: hidden;
}
.history::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(208, 161, 97, 0.14), transparent 44%),
    radial-gradient(ellipse at 12% 88%, rgba(63, 124, 101, 0.22), transparent 52%);
  pointer-events: none;
}
.history::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.19;
  background-image: repeating-radial-gradient(circle at 82% 16%, transparent 0, transparent 38px, rgba(250, 245, 232, 0.14) 39px, transparent 40px);
  pointer-events: none;
}
.history .wrap { position: relative; z-index: 1; }
.history-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px 5vw;
  align-items: end;
}
.history-head > .eyebrow { grid-column: 1 / -1; }
.history-head .display { grid-column: 1; grid-row: 2; }
.history-intro { grid-column: 2; grid-row: 2; align-self: end; }
.history-head .display { margin: 0; }
.history-intro p {
  color: rgba(250, 245, 232, 0.72);
  font-size: 0.96rem;
  line-height: 1.95;
}
.history-intro p + p { margin-top: 14px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(48px, 6vw, 74px);
  border-top: 1px solid var(--line-light);
}
.era {
  position: relative;
  padding: 25px 22px 0 18px;
  border-left: 1px solid var(--line-light);
  min-height: 240px;
}
.era:first-child { border-left: 0; padding-left: 0; }
.era-index {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 34px;
}
.era-date {
  font-family: var(--display);
  font-size: clamp(1.28rem, 1.8vw, 1.6rem);
  line-height: 1;
  color: var(--gold-soft);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.era h3 {
  font-family: var(--cjk);
  font-size: 1.03rem;
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 10px;
}
html[data-lang="en"] .era h3 { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.01em; }
.era p:not(.era-date) {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(250, 245, 232, 0.6);
}
.history-note {
  margin-top: clamp(34px, 5vw, 54px);
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  max-width: 760px;
  color: rgba(250, 245, 232, 0.46);
  font-size: 0.75rem;
  line-height: 1.8;
}

/* ---------- Journey head ---------- */
.journey-head {
  padding: clamp(74px, 10vw, 132px) 0 clamp(54px, 7vw, 82px);
  background: var(--paper);
  scroll-margin-top: 72px;
}
.journey-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.read-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.read-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--jade); }
.journey-head .display { margin: 26px 0 24px; }
.journey-lede {
  max-width: 680px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.95;
}

/* ---------- Stops ---------- */
.stop {
  position: relative;
  overflow: hidden;
  padding-block: clamp(74px, 9.5vw, 126px);
  scroll-margin-top: 70px;
  background: var(--paper);
}
.stop + .stop,
.quiz + .stop { border-top: 1px solid rgba(19, 43, 36, 0.09); }
.stop--dark {
  background: var(--forest);
  color: var(--cream);
}
.stop--dark .display { color: var(--cream); }
.stop--dark .display em { color: var(--gold-soft); }
.stop--dark + .stop,
.quiz + .stop--dark { border-top-color: transparent; }
.stop-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5vw;
  align-items: center;
}
.stop-copy { grid-column: 1 / 6; }
.stop-gallery { grid-column: 7 / 13; }
.stop--flipped .stop-copy { grid-column: 8 / 13; grid-row: 1; }
.stop--flipped .stop-gallery { grid-column: 1 / 7; grid-row: 1; }
.stop-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.63rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stop--dark .stop-kicker { color: rgba(250, 245, 232, 0.66); }
.stop-index {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding-inline: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.57rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.stop--dark .stop-index { border-color: rgba(250, 245, 232, 0.36); color: var(--cream); }
.kicker-dot { opacity: 0.5; }
.stop-region { letter-spacing: 0.15em; }
.stop-copy .display {
  margin: 18px 0 24px;
  font-size: clamp(2.15rem, 3.7vw, 3.55rem);
  max-width: 12ch;
}
html[data-lang="zh"] .stop-copy .display { max-width: 14ch; }
.stop-body p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.98;
}
.stop--dark .stop-body p { color: rgba(250, 245, 232, 0.76); }
.stop-body p + p { margin-top: 16px; }
.field-note {
  margin-top: 30px;
  padding: 18px 20px 18px 22px;
  border-left: 2px solid var(--persimmon);
  background: rgba(255, 255, 255, 0.38);
  max-width: 540px;
}
.stop--dark .field-note { background: rgba(250, 245, 232, 0.065); border-left-color: var(--gold); }
.note-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.59rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--persimmon-dark);
  margin-bottom: 8px;
}
.stop--dark .note-label { color: var(--gold-soft); }
.note-pin { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.field-note p { color: var(--ink-2); font-size: 0.84rem; line-height: 1.8; }
.stop--dark .field-note p { color: rgba(250, 245, 232, 0.7); }
.must-label {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stop--dark .must-label { color: rgba(250, 245, 232, 0.62); }
.must-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.must-list li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.71rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.stop--dark .must-list li { border-color: rgba(250, 245, 232, 0.22); color: rgba(250, 245, 232, 0.72); }
.next-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap 0.25s, color 0.25s, border-color 0.25s;
}
.stop--dark .next-link { border-bottom-color: rgba(250, 245, 232, 0.3); }
.next-link:hover { gap: 18px; color: var(--persimmon); border-color: var(--persimmon); }
.stop--dark .next-link:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.next-arrow { font-size: 0.95rem; line-height: 1; }
.stop-ghost {
  position: absolute;
  z-index: 0;
  top: 4%;
  right: -1.5%;
  font-family: var(--display);
  font-size: clamp(12rem, 26vw, 25rem);
  font-weight: 600;
  line-height: 0.72;
  color: transparent;
  -webkit-text-stroke: 1px rgba(19, 43, 36, 0.11);
  pointer-events: none;
  user-select: none;
}
.stop--flipped .stop-ghost { right: auto; left: -1.5%; }
.stop--dark .stop-ghost { -webkit-text-stroke-color: rgba(250, 245, 232, 0.08); }

.stop-gallery {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 15px;
  align-items: start;
}
.media { margin: 0; position: relative; min-width: 0; }
.media--lead { grid-column: 1 / 2; grid-row: 1; --ratio: 4 / 3; }
.media--detail { grid-column: 2 / 3; grid-row: 1 / 3; --ratio: 3 / 4; margin-top: clamp(34px, 5vw, 72px); }
.media--wide { grid-column: 1 / 2; --ratio: 16 / 10; }
.media--tall { grid-column: 2 / 3; grid-row: 1 / 3; --ratio: 3 / 4; }
.media--third { grid-column: 1 / 2; grid-row: 2; --ratio: 16 / 9; }
.media-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--paper-3);
  cursor: zoom-in;
}
.media-btn picture,
.media-btn img { width: 100%; height: 100%; }
.media-btn img {
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 0.45s;
}
.media-btn:hover img { transform: scale(1.045); filter: saturate(1.04); }
.media-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(250, 245, 232, 0.65);
  border-radius: 50%;
  background: rgba(11, 40, 33, 0.35);
  color: var(--cream);
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  backdrop-filter: blur(4px);
}
.media-btn:hover .media-arrow,
.media-btn:focus-visible .media-arrow { opacity: 1; transform: none; }
.media figcaption {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.stop--dark .media figcaption { border-top-color: rgba(250, 245, 232, 0.16); color: rgba(250, 245, 232, 0.64); }
.media figcaption span {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: var(--persimmon-dark);
}
.stop--dark .media figcaption span { color: var(--gold); }

/* ---------- Taste lab ---------- */
.taste-lab {
  position: relative;
  z-index: 2;
  margin-top: clamp(60px, 8vw, 100px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.taste-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1.25fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}
.taste-head .display { font-size: clamp(1.9rem, 3.1vw, 3rem); margin: 13px 0 12px; }
.taste-head > p:not(.eyebrow) { color: var(--ink-3); font-size: 0.82rem; line-height: 1.7; }
.taste-buttons { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.taste-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s, padding-left 0.25s;
}
.taste-btn:hover { color: var(--persimmon-dark); padding-left: 7px; }
.taste-btn.is-active { color: var(--persimmon-dark); }
.taste-name { font-family: var(--cjk); font-size: 1rem; line-height: 1.3; }
html[data-lang="en"] .taste-name { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.01em; }
.taste-dot { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; flex: 0 0 auto; }
.taste-btn.is-active .taste-dot { background: currentColor; }
.taste-detail {
  min-height: 238px;
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  position: relative;
}
.taste-detail.is-swapping { animation: fadeSwap 0.42s var(--ease); }
@keyframes fadeSwap {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.taste-index {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.9;
  color: var(--persimmon-dark);
  flex: 0 0 auto;
}
.taste-copy h4 {
  font-family: var(--cjk);
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 12px;
}
html[data-lang="en"] .taste-copy h4 { font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.015em; }
.taste-copy p { font-size: 0.86rem; line-height: 1.8; color: var(--ink-2); }
.taste-where {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.73rem !important;
  color: var(--ink-3) !important;
}
.taste-where span {
  display: block;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--persimmon-dark);
  margin-bottom: 4px;
}

/* ---------- Quiz ---------- */
.quiz {
  position: relative;
  overflow: hidden;
  padding-block: clamp(62px, 8vw, 104px);
  background: var(--paper-2);
  scroll-margin-top: 68px;
}
.quiz::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(19, 43, 36, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(19, 43, 36, 0.025), 0 0 0 80px rgba(19, 43, 36, 0.018);
  pointer-events: none;
}
.quiz-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.quiz-intro .display { font-size: clamp(2.2rem, 4vw, 3.6rem); margin: 15px 0 14px; max-width: 8ch; }
.quiz-count {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.quiz-dots { display: flex; gap: 7px; margin-top: 24px; }
.quiz-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.quiz-dot.is-done { background: var(--persimmon); border-color: var(--persimmon); }
.quiz-dot.is-current { transform: scale(1.28); border-color: var(--persimmon); }
.quiz-card {
  padding: clamp(22px, 3.4vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(19, 43, 36, 0.08);
}
.quiz-question {
  font-family: var(--cjk);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 22px;
}
html[data-lang="en"] .quiz-question { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.3; letter-spacing: -0.015em; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s, opacity 0.22s;
}
.quiz-option:hover:not(:disabled) { border-color: var(--ink); background: rgba(255, 255, 255, 0.44); }
.option-letter {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.58rem;
}
.quiz-option.is-correct { border-color: #3f7d5b; background: #e1ebd9; }
.quiz-option.is-correct .option-letter { border-color: #3f7d5b; background: #3f7d5b; color: var(--cream); }
.quiz-option.is-wrong { border-color: #b7553b; background: #f2ddd5; }
.quiz-option.is-wrong .option-letter { border-color: #b7553b; background: #b7553b; color: var(--cream); }
.quiz-option.is-dim { opacity: 0.52; }
.quiz-option:disabled { cursor: default; }
.option-mark { margin-left: auto; font-size: 0.9rem; font-weight: 700; }
.quiz-hint {
  margin-top: 17px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.quiz-feedback {
  margin-top: 18px;
  padding: 15px 17px;
  border-left: 3px solid var(--jade);
  background: rgba(63, 124, 101, 0.08);
  animation: feedbackIn 0.35s var(--ease);
}
.quiz-feedback.is-bad { border-left-color: var(--persimmon); background: rgba(201, 90, 61, 0.08); }
@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.feedback-title { font-size: 0.82rem; font-weight: 700; margin-bottom: 5px; }
.quiz-feedback p { font-size: 0.8rem; line-height: 1.7; color: var(--ink-2); }
.feedback-next {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.feedback-next:hover { color: var(--persimmon); }

/* ---------- Planner ---------- */
.planner {
  background: var(--forest-2);
  color: var(--cream);
  overflow: hidden;
}
.planner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 14% 6%, rgba(201, 90, 61, 0.14), transparent 42%);
  pointer-events: none;
}
.planner .wrap { position: relative; z-index: 1; }
.planner-head { max-width: 760px; }
.planner-head .display { margin: 20px 0 20px; }
.planner-head > p:not(.eyebrow) { color: rgba(250, 245, 232, 0.65); font-size: 0.96rem; line-height: 1.9; }
.planner-panel {
  margin-top: clamp(38px, 5vw, 58px);
  border: 1px solid var(--line-light);
  background: rgba(250, 245, 232, 0.035);
  padding: clamp(20px, 3.6vw, 42px);
}
.planner-controls {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-light);
}
.control-group legend {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 245, 232, 0.46);
  margin-bottom: 10px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 112px;
  padding: 10px 14px;
  border: 1px solid rgba(250, 245, 232, 0.22);
  background: transparent;
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip span { font-size: 0.85rem; line-height: 1.4; }
.chip small { font-size: 0.62rem; line-height: 1.4; color: rgba(250, 245, 232, 0.46); }
.chip:hover { border-color: rgba(250, 245, 232, 0.62); }
.chip.is-active { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.chip.is-active small { color: var(--ink-3); }
.day-row { display: flex; gap: 8px; }
.day-chip {
  width: 58px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(250, 245, 232, 0.22);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.day-chip strong { font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.day-chip span { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.day-chip:hover { border-color: rgba(250, 245, 232, 0.62); }
.day-chip.is-active { background: var(--persimmon); border-color: var(--persimmon); color: var(--cream); }
.itinerary-wrap { padding-top: 28px; }
.itinerary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.itinerary-head h3 { font-family: var(--cjk); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em; }
html[data-lang="en"] .itinerary-head h3 { font-family: var(--display); font-size: 1.55rem; letter-spacing: -0.01em; }
.itinerary-meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.itinerary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 20px 16px;
  margin-top: 22px;
}
.day-card { padding-top: 12px; border-top: 1px solid rgba(208, 161, 97, 0.58); min-width: 0; }
.day-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.day-number { font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--gold-soft); font-weight: 400; }
.day-label { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250, 245, 232, 0.42); }
.day-card h4 {
  font-family: var(--cjk);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 12px 0 6px;
}
html[data-lang="en"] .day-card h4 { font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.01em; }
.day-card p { font-size: 0.74rem; line-height: 1.7; color: rgba(250, 245, 232, 0.58); }
.itinerary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.planner-disclaimer { margin-top: 20px; font-size: 0.68rem; line-height: 1.7; color: rgba(250, 245, 232, 0.37); }

.score-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  margin-top: 26px;
  padding: clamp(22px, 3.4vw, 38px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(250, 245, 232, 0.14);
}
.score-orb {
  position: relative;
  width: clamp(104px, 14vw, 142px);
  height: clamp(104px, 14vw, 142px);
  border-radius: 50%;
  background: conic-gradient(var(--persimmon) calc(var(--score) * 1%), rgba(19, 43, 36, 0.1) 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 0 0 auto;
}
.score-orb::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--paper);
}
.score-orb span {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1;
  font-weight: 600;
}
.score-orb small {
  position: relative;
  z-index: 1;
  align-self: start;
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0;
}
.score-copy .eyebrow { margin-bottom: 8px; }
.score-copy h3 { font-family: var(--cjk); font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; line-height: 1.35; margin-bottom: 7px; }
html[data-lang="en"] .score-copy h3 { font-family: var(--display); font-size: clamp(1.55rem, 2.6vw, 2rem); letter-spacing: -0.015em; }
.score-copy p { font-size: 0.82rem; line-height: 1.7; color: var(--ink-2); }
.score-copy strong { font-family: var(--display); font-size: 1.15rem; color: var(--persimmon-dark); }
.score-dots { display: flex; gap: 5px; margin-top: 11px; }
.score-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-strong); }
.score-dot.is-good { background: var(--jade); border-color: var(--jade); }
.score-dot.is-bad { background: var(--persimmon); border-color: var(--persimmon); }
.score-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 15px; }
.text-link {
  display: inline-block;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.text-link:hover { color: var(--persimmon); }
.text-link--muted { color: var(--ink-3); }

/* ---------- Basics ---------- */
.basics-head { display: block; }
.basics-head .display { margin-top: 18px; }
.basics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.basic {
  padding: 24px 24px 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.basic:nth-child(3n + 2) { padding-left: 24px; border-left: 1px solid var(--line); }
.basic:nth-child(3n) { padding-left: 24px; border-left: 1px solid var(--line); }
.basic:hover { background: rgba(255, 255, 255, 0.28); }
.basic-no {
  display: block;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--persimmon-dark);
  margin-bottom: 30px;
}
.basic h3 { font-family: var(--cjk); font-size: 1.12rem; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
html[data-lang="en"] .basic h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.01em; }
.basic p { font-size: 0.84rem; line-height: 1.8; color: var(--ink-2); }
.basics-quote {
  margin-top: clamp(54px, 7vw, 90px);
  padding: clamp(34px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.basics-quote p {
  font-family: var(--cjk);
  font-size: clamp(1.65rem, 4vw, 3.6rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: 20ch;
  margin-inline: auto;
}
html[data-lang="en"] .basics-quote p { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: -0.025em; }
.basics-quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Finale ---------- */
.finale {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
  background: var(--forest-2);
  isolation: isolate;
}
.finale-media,
.finale-scrim { position: absolute; inset: 0; }
.finale-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.finale-scrim {
  background:
    linear-gradient(90deg, rgba(6, 23, 19, 0.82) 0%, rgba(6, 23, 19, 0.54) 48%, rgba(6, 23, 19, 0.24) 100%),
    linear-gradient(0deg, rgba(6, 23, 19, 0.62), transparent 45%);
}
.finale-inner { position: relative; z-index: 2; padding-block: clamp(90px, 14vh, 170px); }
.finale .display { font-size: clamp(4rem, 10vw, 9rem); margin: 18px 0 24px; }
.finale p:not(.eyebrow) { max-width: 520px; color: rgba(250, 245, 232, 0.76); font-size: 1rem; line-height: 1.85; }
.finale-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #071f1a;
  color: var(--cream);
  padding-block: clamp(50px, 7vw, 80px) 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.62fr 1.28fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.footer-mark { font-family: var(--cjk); font-size: 1.7rem; line-height: 1.2; letter-spacing: 0.08em; margin-bottom: 10px; }
html[data-lang="en"] .footer-mark { font-family: var(--display); letter-spacing: -0.015em; }
.footer-brand > p:not(.footer-mark):not(.footer-small) { font-size: 0.87rem; color: rgba(250, 245, 232, 0.66); }
.footer-music {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 13px;
  font-family: var(--mono);
  font-size: 0.6rem;
  line-height: 1.7;
  color: rgba(250, 245, 232, 0.55);
}
.footer-music-icon { color: var(--gold-soft); font-size: 0.8rem; }
.footer-small { margin-top: 18px; max-width: 36ch; font-size: 0.66rem; line-height: 1.8; color: rgba(250, 245, 232, 0.58); }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links a, .footer-lang {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(250, 245, 232, 0.65);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
}
.footer-links a:hover, .footer-lang:hover { color: var(--gold-soft); }
.credits { font-size: 0.7rem; line-height: 1.8; color: rgba(250, 245, 232, 0.42); }
.credits summary {
  cursor: pointer;
  color: rgba(250, 245, 232, 0.66);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.credits p { margin-top: 10px; max-width: 62ch; }
.credits a { color: rgba(250, 245, 232, 0.66); text-decoration-color: rgba(250, 245, 232, 0.28); text-underline-offset: 3px; }
.credits a:hover { color: var(--gold-soft); }
.credits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 22px;
  margin-top: 12px;
  font-size: 0.62rem;
}
.footer-copy {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(250, 245, 232, 0.12);
  font-family: var(--mono);
  font-size: 0.56rem;
  line-height: 1.8;
  color: rgba(250, 245, 232, 0.52);
}

/* ---------- Lightbox + toast ---------- */
.lightbox {
  padding: 0;
  border: 0;
  background: #061713;
  color: var(--cream);
  max-width: min(94vw, 1280px);
  max-height: 94vh;
  width: auto;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(3, 12, 10, 0.88); backdrop-filter: blur(9px); }
.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(250, 245, 232, 0.45);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--persimmon); border-color: var(--persimmon); }
.lightbox-body { margin: 0; }
.lightbox-body img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}
.lightbox-body p {
  padding: 13px 18px 16px;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(250, 245, 232, 0.62);
  border-top: 1px solid rgba(250, 245, 232, 0.14);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10001;
  transform: translate(-50%, 18px);
  max-width: calc(100% - 40px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--cream);
  text-align: center;
  color: var(--ink);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-nav { gap: 18px; }
  .about-grid { gap: 5vw; }
  .stop-inner { gap: 4vw; }
  .stop-copy .display { font-size: clamp(2.2rem, 4vw, 3.8rem); }
  .taste-inner { grid-template-columns: 1fr 1fr; }
  .taste-detail { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .header-nav { display: none; }
  .header-tools { margin-left: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-copy { max-width: 780px; }
  .map-card { max-width: 590px; width: 100%; margin-inline: auto; }
  .map-frame { max-height: 640px; }
  .history-head { grid-template-columns: 1fr; gap: 22px; }
  .history-head > .eyebrow, .history-head .display, .history-intro { grid-column: 1; grid-row: auto; }
  .history-head .display { margin-top: 4px; }
  .history-intro { max-width: 780px; }
  .timeline {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .era { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; border-left: 1px solid var(--line-light); padding-left: 18px; }
  .era:first-child { border-left: 0; padding-left: 0; }
  .stop-inner { grid-template-columns: 1fr; gap: 42px; }
  .stop-copy, .stop-gallery, .stop--flipped .stop-copy, .stop--flipped .stop-gallery { grid-column: 1; grid-row: auto; }
  .stop-gallery { max-width: 760px; }
  .stop-copy { max-width: 760px; }
  .stop-copy .display { max-width: 15ch; }
  .stop-ghost { font-size: 45vw; opacity: 0.8; }
  .quiz-grid { grid-template-columns: 1fr; gap: 28px; }
  .quiz-intro .display { max-width: none; }
  .quiz-dots { margin-top: 14px; }
  .planner-controls { flex-direction: column; gap: 22px; }
  .score-card { grid-template-columns: auto 1fr; }
  .basics-grid { grid-template-columns: 1fr 1fr; }
  .basic:nth-child(3n + 2), .basic:nth-child(3n) { padding-left: 0; border-left: 0; }
  .basic:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .credits { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand-mark { width: 27px; height: 27px; }
  .brand-type { font-size: 0.96rem; }
  .brand-type small { font-size: 0.43rem; }
  .chapter-readout { display: none; }
  .header-tools { gap: 8px; }
  .sound-toggle { width: 34px; min-width: 34px; padding: 0; }
  .sound-text { display: none; }
  .hero { min-height: 100svh; padding-top: 86px; }
  .hero-content { padding-bottom: 88px; }
  .hero-title { font-size: clamp(3.7rem, 15vw, 6.8rem); margin: 18px 0 22px; }
  .hero-lede { font-size: 0.95rem; line-height: 1.8; max-width: 44ch; }
  .hero-actions { margin-top: 26px; gap: 9px; }
  .btn { min-height: 48px; padding: 12px 18px; font-size: 0.66rem; }
  .hero-meta { margin-top: 26px; font-size: 0.58rem; }
  .hero-meta strong { font-size: 0.98rem; }
  .hero-coord { display: none; }
  .scroll-cue { bottom: 18px; left: 20px; }
  .about { padding-top: 70px; }
  .about-grid { gap: 42px; }
  .map-card { padding: 16px; }
  .map-card-head h3 { font-size: 0.98rem; }
  .map-count { font-size: 2.2rem; }
  .map-frame { aspect-ratio: 420 / 600; }
  .map-pin { width: 26px; height: 26px; font-size: 0.48rem; }
  .map-label { font-size: 0.51rem; padding: 3px 5px; }
  .map-stop { width: 38px; height: 38px; }
  .map-foot { font-size: 0.48rem; }
  .section { padding-block: 70px; }
  .display { font-size: clamp(2.35rem, 9.5vw, 3.7rem); }
  .history .display { font-size: clamp(2.4rem, 10vw, 4rem); }
  .timeline { margin-top: 36px; }
  .era { min-height: 260px; }
  .era-index { margin-bottom: 26px; }
  .journey-head { padding-top: 70px; }
  .journey-head-row { align-items: flex-start; }
  .read-chip { font-size: 0.48rem; padding: 6px 9px; }
  .journey-head .display { margin: 22px 0 18px; }
  .stop { padding-block: 64px; }
  .stop-gallery { gap: 10px; }
  .media figcaption { font-size: 0.58rem; gap: 6px; }
  .media--detail { margin-top: 30px; }
  .stop-body p { font-size: 0.93rem; line-height: 1.9; }
  .field-note { padding: 15px 16px; }
  .field-note p { font-size: 0.79rem; }
  .must-list li { font-size: 0.66rem; }
  .taste-inner { grid-template-columns: 1fr; gap: 26px; }
  .taste-detail { grid-column: auto; }
  .taste-head .display { font-size: 1.9rem; }
  .quiz { padding-block: 58px; }
  .quiz-card { padding: 19px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-question { margin-bottom: 17px; }
  .planner-panel { padding: 18px 16px; }
  .chip { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); }
  .chip small { font-size: 0.57rem; }
  .day-chip { width: 54px; height: 54px; }
  .itinerary { grid-template-columns: 1fr 1fr; }
  .itinerary-actions .btn { flex: 1 1 100%; }
  .score-card { grid-template-columns: 1fr; gap: 18px; }
  .score-orb { width: 112px; height: 112px; }
  .score-orb span { font-size: 1.9rem; }
  .basics-grid { grid-template-columns: 1fr; }
  .basic, .basic:nth-child(even), .basic:nth-child(3n + 2), .basic:nth-child(3n) { padding: 22px 0; border-left: 0; }
  .basics-quote p { font-size: 1.75rem; }
  .finale { min-height: 78svh; }
  .finale .display { font-size: clamp(3.5rem, 16vw, 6rem); }
  .finale-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 14px 20px; }
  .credits { grid-column: auto; }
  .credits-list { grid-template-columns: 1fr; }
  .lightbox-close { top: 8px; right: 8px; background: rgba(6, 23, 19, 0.6); }
  .lightbox-body img { max-width: 94vw; max-height: 74vh; }
}

@media (max-width: 460px) {
  .hero-title { font-size: clamp(3.3rem, 16vw, 4.9rem); }
  .hero-meta span + span::before { margin: 0 8px; }
  .about-copy > p:not(.eyebrow) { font-size: 0.94rem; }
  .map-label { display: none; }
  .map-stop.is-active .map-label { display: block; z-index: 3; }
  .map-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 4px 0 10px;
  }
  .map-quick a { justify-content: center; padding: 6px 3px; font-size: 0.51rem; }
  .map-frame { aspect-ratio: 420 / 610; }
  .stop-gallery { grid-template-columns: 1fr 0.8fr; }
  .media--lead { grid-column: 1 / 2; }
  .media--detail { grid-column: 2 / 3; margin-top: 22px; }
  .media--wide { grid-column: 1 / 2; }
  .media--tall { grid-column: 2 / 3; }
  .media--third { grid-column: 1 / 2; grid-row: 2; }
  .stop-copy .display { font-size: clamp(2.1rem, 10vw, 3rem); }
  .taste-detail { padding: 17px; gap: 12px; }
  .taste-index { font-size: 2.2rem; }
  .itinerary { grid-template-columns: 1fr; }
  .day-card { display: grid; grid-template-columns: 58px 1fr; column-gap: 12px; }
  .day-top { grid-row: 1 / 3; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  .day-number { font-size: 1.7rem; }
  .day-label { font-size: 0.45rem; }
  .day-card h4 { margin-top: 0; }
  .day-card p { grid-column: 2; }
  .score-actions { gap: 10px; }
  .basics-quote p { font-size: 1.55rem; }
}

@media (max-height: 650px) and (max-width: 760px) {
  .hero { padding-top: 78px; }
  .hero-content { padding-bottom: 46px; }
  .hero-title { font-size: clamp(2.9rem, 14vw, 4.4rem); margin: 12px 0 16px; }
  .hero-lede { font-size: 0.88rem; line-height: 1.68; }
  .hero-actions { margin-top: 18px; }
  .hero-meta, .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
  .route-line { animation: none; }
}
