/* =========================================================
   travel-portfolio / site.css
   三個版型：cinematic（電影）· editorial（雜誌）· minimal（極簡）
   內容全部由 content/content.json 驅動，換版型不需要改結構
   ========================================================= */

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

:root {
  --font-sans: "Helvetica Neue", Helvetica, Inter, "PingFang TC", "Noto Sans TC",
               "Microsoft JhengHei", sans-serif;
  --font-serif: "Songti TC", "Noto Serif TC", "Source Han Serif TC", Georgia,
                "Times New Roman", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --pad: clamp(18px, 4.2vw, 64px);
  --header-h: 76px;
  --radius: 2px;
}

html[data-theme="cinematic"] {
  --bg: #070709;
  --bg-soft: #0c0c10;
  --fg: #f3f0e9;
  --muted: rgba(243, 240, 233, .56);
  --line: rgba(243, 240, 233, .16);
  --accent: #cba97a;
  --accent-soft: rgba(203, 169, 122, .14);
  --display: var(--font-sans);
  --body: var(--font-sans);
  --title-weight: 300;
  --title-spacing: -.035em;
  --hero-scrim: linear-gradient(180deg, rgba(4,4,6,.62) 0%, rgba(4,4,6,.08) 34%, rgba(4,4,6,.52) 76%, var(--bg) 100%);
  color-scheme: dark;
}

html[data-theme="editorial"] {
  --bg: #f2ede2;
  --bg-soft: #e8e0d0;
  --fg: #191610;
  --muted: #6d6353;
  --line: rgba(25, 22, 16, .18);
  --accent: #8b5424;
  --accent-soft: rgba(139, 84, 36, .1);
  --display: var(--font-serif);
  --body: var(--font-sans);
  --title-weight: 400;
  --title-spacing: -.02em;
  --hero-scrim: none;
  color-scheme: light;
}

html[data-theme="minimal"] {
  --bg: #fcfcfb;
  --bg-soft: #f3f3f1;
  --fg: #0f0f0f;
  --muted: #868680;
  --line: rgba(15, 15, 15, .14);
  --accent: #0f0f0f;
  --accent-soft: rgba(15, 15, 15, .06);
  --display: var(--font-sans);
  --body: var(--font-sans);
  --title-weight: 500;
  --title-spacing: -.045em;
  --hero-scrim: none;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .55s var(--ease), color .55s var(--ease);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("../img/noise.png");
  background-size: 140px 140px;
  opacity: .05;
  mix-blend-mode: overlay;
}
html[data-theme="minimal"] body::after { opacity: .022; }

body[data-ready="false"] { opacity: 1; }

img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 70;
  background: transparent;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transform-origin: 0 50%;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: transform .55s var(--ease), background-color .45s var(--ease),
              border-color .45s var(--ease), backdrop-filter .45s;
}
.site-header.is-scrolled {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-101%); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 500;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.brand:hover .brand-mark { background: var(--fg); color: var(--bg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 14px; font-weight: 500; letter-spacing: .22em; }
.brand-text em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.site-nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.site-nav a {
  position: relative;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding: 6px 0;
  color: var(--muted);
  transition: color .3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .45s var(--ease);
}
.site-nav a:hover { color: var(--fg); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.header-tools { display: flex; align-items: center; gap: 14px; }

.theme-switch { display: flex; align-items: center; gap: 2px; }
.theme-switch button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
  transition: color .3s;
}
.theme-switch button:hover { color: var(--fg); }
.theme-switch button[aria-pressed="true"] { color: var(--fg); }
.sw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: background-color .3s, transform .3s var(--ease);
}
.theme-switch button[aria-pressed="true"] .sw-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}
.sw-label { white-space: nowrap; }

.music-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s, border-color .3s, background-color .3s;
}
.music-btn:hover { color: var(--fg); border-color: var(--fg); }
.music-btn[aria-pressed="true"] { color: var(--fg); border-color: var(--accent); }

.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i {
  width: 2px;
  height: 100%;
  background: currentColor;
  transform-origin: 50% 100%;
  transform: scaleY(.22);
  transition: transform .3s;
}
.music-btn[aria-pressed="true"] .eq i { animation: eqBounce .9s ease-in-out infinite; }
.music-btn[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: .18s; }
.music-btn[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: .36s; }
.music-btn[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: .09s; }
@keyframes eqBounce {
  0%, 100% { transform: scaleY(.22); }
  50% { transform: scaleY(1); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--shift, 0px), 0) scale(1.06);
  will-change: transform;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
  z-index: 1;
}
.hero-scrim { display: none; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad) clamp(56px, 9vh, 110px);
  max-width: 1360px;
  margin: 0 auto;
}

.hero-kicker {
  font-size: 10px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: fadeUp .9s var(--ease) .1s forwards;
}

.hero-title {
  margin-top: clamp(16px, 2.4vh, 26px);
  font-family: var(--display);
  font-size: clamp(48px, 10.4vw, 164px);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  line-height: .94;
}
.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(.42em) rotate(2.5deg);
  animation: chIn 1.15s var(--ease) forwards;
  animation-delay: calc(140ms + var(--i) * 58ms);
}
@keyframes chIn { to { opacity: 1; transform: none; } }

.hero-en {
  margin-top: clamp(12px, 2vh, 22px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: .16em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s var(--ease) .7s forwards;
}

.hero-lede {
  margin-top: clamp(18px, 2.6vh, 30px);
  max-width: 36em;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.9;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s var(--ease) .82s forwards;
}

.hero-foot {
  margin-top: clamp(30px, 5vh, 54px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) .95s forwards;
}
.hero-meta {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue span {
  font-size: 9px;
  letter-spacing: .34em;
  color: var(--muted);
}
.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: translateY(-100%);
  animation: cueDrop 2.4s var(--ease) infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- manifesto ---------- */
.manifesto {
  position: relative;
  padding: clamp(72px, 12vw, 168px) var(--pad);
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-text {
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 46px);
  font-weight: var(--title-weight);
  line-height: 1.5;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.manifesto-sign {
  margin-top: clamp(20px, 3vw, 34px);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- section shell ---------- */
.section {
  padding: clamp(64px, 9vw, 130px) var(--pad) clamp(40px, 6vw, 90px);
  max-width: 1680px;
  margin: 0 auto;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: clamp(14px, 2vw, 28px);
  padding-bottom: clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-no {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--accent);
  padding-bottom: 6px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(30px, 5.4vw, 76px);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  line-height: 1;
}
.section-note {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  padding-bottom: 6px;
}

/* ---------- journeys : cinematic (default) ---------- */
.journey-list { display: grid; gap: clamp(34px, 6vw, 92px); }

.journey { position: relative; }
.journey-hit {
  display: block;
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  overflow: hidden;
}
.journey-figure {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.journey-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 1.3s var(--ease), filter 1.3s var(--ease);
}
.journey-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,3,5,0) 28%, rgba(3,3,5,.5) 62%, rgba(3,3,5,.92) 100%);
  transition: opacity .6s var(--ease);
  z-index: 1;
}
.journey-hit:hover .journey-figure img { transform: scale(1.055); }
.journey-hit:hover .journey-figure::after { opacity: .88; }

.journey-no {
  position: absolute;
  top: clamp(16px, 2vw, 30px);
  left: clamp(16px, 2.2vw, 34px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .28em;
  color: rgba(255, 255, 255, .82);
  text-transform: uppercase;
}
.journey-no::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.journey-text {
  position: absolute;
  left: clamp(18px, 3vw, 48px);
  right: clamp(18px, 3vw, 48px);
  bottom: clamp(20px, 3vw, 46px);
  z-index: 3;
  color: #fff;
  max-width: 860px;
}
.journey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.journey-meta span { display: inline-flex; align-items: center; gap: 20px; }
.journey-meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}
.journey-title {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 62px);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  line-height: 1.06;
  transition: transform .7s var(--ease);
}
.journey-hit:hover .journey-title { transform: translateY(-3px); }
.journey-excerpt {
  margin-top: 12px;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.8;
  color: rgba(255, 255, 255, .66);
  max-width: 48em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.journey-cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.journey-cta .arrow {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  position: relative;
  transition: background-color .4s var(--ease), border-color .4s;
}
.journey-cta .arrow::before,
.journey-cta .arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
}
.journey-cta .arrow::before {
  width: 9px;
  height: 1px;
  transform: translate(-50%, -50%);
}
.journey-cta .arrow::after {
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: none;
  transform: translate(-50%, -50%) rotate(45deg);
}
.journey-hit:hover .journey-cta .arrow {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .9);
}

/* ---------- editorial overrides ---------- */
html[data-theme="editorial"] .hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 12px);
}
html[data-theme="editorial"] .hero-media {
  position: relative;
  inset: auto;
  margin: 0 var(--pad);
  overflow: hidden;
}
html[data-theme="editorial"] .hero-media img {
  height: 100%;
  transform: scale(1.01);
  filter: saturate(.94) contrast(1.02);
}
html[data-theme="editorial"] .hero-media::after { display: none; }
html[data-theme="editorial"] .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: end;
  column-gap: clamp(24px, 5vw, 90px);
  row-gap: clamp(14px, 2vw, 26px);
  max-width: none;
  padding: clamp(26px, 3.6vw, 52px) var(--pad) clamp(26px, 4vh, 48px);
}
html[data-theme="editorial"] .hero-kicker { grid-column: 1 / -1; grid-row: 1; color: var(--accent); }
html[data-theme="editorial"] .hero-title {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(40px, 7.4vw, 118px);
  line-height: .98;
}
html[data-theme="editorial"] .hero-lede {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0 0 8px;
  font-size: 14px;
  border-left: 1px solid var(--line);
  padding-left: clamp(16px, 2vw, 28px);
}
html[data-theme="editorial"] .hero-en { grid-column: 1; grid-row: 3; margin-top: 0; }
html[data-theme="editorial"] .hero-foot {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: clamp(16px, 2vw, 26px);
}

html[data-theme="editorial"] .manifesto {
  text-align: left;
  max-width: 1400px;
  padding-inline: var(--pad);
}
html[data-theme="editorial"] .manifesto-text {
  max-width: 22em;
  font-size: clamp(26px, 4.6vw, 62px);
  line-height: 1.35;
}
html[data-theme="editorial"] .manifesto-sign { margin-left: auto; text-align: right; }

html[data-theme="editorial"] .section-head {
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  border-bottom: 2px solid var(--fg);
}
html[data-theme="editorial"] .section-title { font-style: italic; }
html[data-theme="editorial"] .section-note { font-family: var(--font-serif); text-transform: none; letter-spacing: .08em; font-size: 12px; }

html[data-theme="editorial"] .journey-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 84px);
  row-gap: clamp(46px, 7vw, 110px);
}
html[data-theme="editorial"] .journey:nth-child(even) { margin-top: clamp(40px, 7vw, 120px); }
html[data-theme="editorial"] .journey-hit { overflow: visible; }
html[data-theme="editorial"] .journey-figure { aspect-ratio: 4 / 5; }
html[data-theme="editorial"] .journey-figure::after { display: none; }
html[data-theme="editorial"] .journey-no {
  position: static;
  color: var(--accent);
  margin-bottom: 12px;
}
html[data-theme="editorial"] .journey-text {
  position: static;
  color: var(--fg);
  max-width: none;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
html[data-theme="editorial"] .journey-meta { color: var(--muted); }
html[data-theme="editorial"] .journey-meta span + span::before { opacity: 1; }
html[data-theme="editorial"] .journey-title {
  font-size: clamp(24px, 2.8vw, 42px);
  line-height: 1.16;
  margin-top: 10px;
}
html[data-theme="editorial"] .journey-excerpt { color: var(--muted); -webkit-line-clamp: 3; }
html[data-theme="editorial"] .journey-cta { color: var(--fg); margin-top: 16px; }
html[data-theme="editorial"] .journey-cta .arrow { border-color: var(--line); }
html[data-theme="editorial"] .journey-hit:hover .journey-cta .arrow {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
html[data-theme="editorial"] .journey-hit:hover .journey-figure img { transform: scale(1.035); }

/* ---------- minimal overrides ---------- */
html[data-theme="minimal"] .hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: stretch;
  min-height: 100svh;
  padding-top: var(--header-h);
}
html[data-theme="minimal"] .hero-media {
  position: relative;
  inset: auto;
  order: 2;
  margin: clamp(16px, 2vw, 30px) var(--pad) clamp(16px, 2vw, 30px) 0;
  overflow: hidden;
}
html[data-theme="minimal"] .hero-media img { height: 100%; transform: none; }
html[data-theme="minimal"] .hero-media::after { display: none; }
html[data-theme="minimal"] .hero-inner {
  order: 1;
  align-self: end;
  max-width: none;
  padding: 0 clamp(20px, 3.2vw, 52px) clamp(36px, 7vh, 84px) var(--pad);
}
html[data-theme="minimal"] .hero-title {
  font-size: clamp(40px, 5.4vw, 92px);
  line-height: 1.04;
  letter-spacing: -.05em;
  margin-top: 18px;
}
html[data-theme="minimal"] .hero-en { font-family: var(--font-sans); font-style: normal; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
html[data-theme="minimal"] .hero-lede { font-size: 14px; max-width: 28em; }
html[data-theme="minimal"] .hero-foot { margin-top: clamp(24px, 4vh, 40px); }

html[data-theme="minimal"] .manifesto { text-align: left; max-width: 1240px; }
html[data-theme="minimal"] .manifesto-text {
  max-width: 26em;
  font-size: clamp(20px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.015em;
}
html[data-theme="minimal"] .manifesto-sign { text-align: right; }

html[data-theme="minimal"] .section-head { border-bottom-color: var(--line); align-items: baseline; }
html[data-theme="minimal"] .section-title { font-weight: 500; }
html[data-theme="minimal"] .section-note { text-transform: none; letter-spacing: .02em; font-size: 11px; }

html[data-theme="minimal"] .journey-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 64px) clamp(18px, 2.6vw, 38px);
}
html[data-theme="minimal"] .journey-hit { overflow: visible; border-radius: 0; }
html[data-theme="minimal"] .journey-figure { aspect-ratio: 4 / 5; }
html[data-theme="minimal"] .journey-figure::after { display: none; }
html[data-theme="minimal"] .journey-figure img { transform: none; filter: saturate(.92); }
html[data-theme="minimal"] .journey-hit:hover .journey-figure img { transform: scale(1.03); }
html[data-theme="minimal"] .journey-no {
  position: absolute;
  top: 10px;
  left: -2px;
  color: #fff;
  mix-blend-mode: difference;
  font-size: 9px;
}
html[data-theme="minimal"] .journey-no::before { display: none; }
html[data-theme="minimal"] .journey-text {
  position: static;
  color: var(--fg);
  max-width: none;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}
html[data-theme="minimal"] .journey-meta { color: var(--muted); font-size: 8px; gap: 6px 12px; }
html[data-theme="minimal"] .journey-meta span + span::before { opacity: 1; width: 2px; height: 2px; }
html[data-theme="minimal"] .journey-title {
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.35;
  margin-top: 8px;
}
html[data-theme="minimal"] .journey-excerpt,
html[data-theme="minimal"] .journey-cta { display: none; }

/* ---------- films ---------- */
.film-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.film {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}
.film-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.film-media img,
.film-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.film:hover .film-media img { transform: scale(1.04); }
.film-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: .16em;
  background: rgba(8, 8, 10, .72);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.film-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 9px;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
}
.film-body {
  padding: clamp(18px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.film-title {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: var(--title-weight);
  letter-spacing: -.02em;
  line-height: 1.25;
}
.film-sub { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.film-note {
  font-size: 11px;
  color: var(--muted);
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  letter-spacing: .02em;
}

html[data-theme="editorial"] .film-list { grid-template-columns: 1fr; gap: 0; }
html[data-theme="editorial"] .film {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  align-items: stretch;
}
html[data-theme="editorial"] .film:last-child { border-bottom: 1px solid var(--line); }
html[data-theme="editorial"] .film-media { aspect-ratio: auto; }
html[data-theme="editorial"] .film-body { justify-content: center; padding-block: clamp(24px, 3vw, 44px); }
html[data-theme="editorial"] .film-title { font-size: clamp(24px, 2.6vw, 36px); font-style: italic; }

html[data-theme="minimal"] .film { background: none; }
html[data-theme="minimal"] .film-body { padding: 16px 0 0; }
html[data-theme="minimal"] .film-title { font-size: 18px; font-weight: 500; }
html[data-theme="minimal"] .film-note { font-size: 10px; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
  padding-top: clamp(10px, 2vw, 24px);
}
.about-title {
  font-family: var(--display);
  font-size: clamp(30px, 3.8vw, 58px);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  line-height: 1.18;
  max-width: 16em;
  margin: 16px 0 clamp(24px, 3vw, 38px);
}
.about-copy p {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 2;
  color: var(--muted);
  max-width: 40em;
}
.about-copy p + p { margin-top: 1.1em; }
.about-copy p:first-child { color: var(--fg); }

.about-gear {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.about-gear li {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-note {
  margin-top: clamp(28px, 3.4vw, 44px);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
  opacity: .8;
  max-width: 46em;
}

.about-side { position: sticky; top: calc(var(--header-h) + 28px); }
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.about-stats li {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}
.about-stats li:nth-child(odd) { padding-right: 16px; }
.about-stats strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: var(--title-weight);
  letter-spacing: -.03em;
  line-height: 1;
}
.about-stats span {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-contact { margin-top: clamp(28px, 3.4vw, 44px); }
.contact-label {
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(18px, 1.9vw, 26px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color .3s, color .3s;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-loc {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

html[data-theme="editorial"] .about-stats strong { font-style: italic; }
html[data-theme="editorial"] .about-title { font-size: clamp(32px, 4.6vw, 66px); }

html[data-theme="minimal"] .about-title { font-size: clamp(26px, 3vw, 42px); font-weight: 500; }
html[data-theme="minimal"] .about-copy p { line-height: 1.9; }
html[data-theme="minimal"] .about-stats strong { font-weight: 500; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 110px) var(--pad) clamp(28px, 4vw, 44px);
  margin-top: clamp(40px, 6vw, 90px);
  background: var(--bg-soft);
  transition: background-color .55s var(--ease);
}
.footer-inner { max-width: 1680px; margin: 0 auto; }
.footer-cta {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: var(--title-weight);
  letter-spacing: -.02em;
  color: var(--muted);
}
.footer-email {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(28px, 5.4vw, 76px);
  font-weight: var(--title-weight);
  letter-spacing: -.035em;
  line-height: 1.1;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: color .35s, border-color .35s;
}
.footer-email:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-dot { opacity: .5; }
.footer-links { margin-left: auto; display: flex; gap: 18px; }
.footer-links a { transition: color .3s; }
.footer-links a:hover { color: var(--fg); }

html[data-theme="editorial"] .site-footer { background: transparent; border-top: 2px solid var(--fg); }
html[data-theme="minimal"] .site-footer { background: transparent; }

/* ---------- journey overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--bg);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.overlay[hidden] { display: none; }
.overlay.is-open { opacity: 1; }
.overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  z-index: 2;
}
.overlay-count {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.overlay-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.overlay-close:hover { color: var(--fg); }
.overlay-close-icon {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .3s, transform .4s var(--ease);
}
.overlay-close-icon::before,
.overlay-close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  background: currentColor;
}
.overlay-close-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.overlay-close-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }
.overlay-close:hover .overlay-close-icon { border-color: var(--fg); transform: rotate(90deg); }

.overlay-scroll { overflow-y: auto; overscroll-behavior: contain; }
.overlay-article {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--pad) clamp(64px, 9vw, 130px);
}

.ov-cover {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.ov-cover img { width: 100%; height: 100%; object-fit: cover; }
.ov-head { margin-top: clamp(26px, 3.4vw, 46px); }
.ov-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}
.ov-title {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 72px);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  line-height: 1.08;
}
.ov-sub {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.5vw, 20px);
  color: var(--muted);
  letter-spacing: .02em;
}
.ov-excerpt {
  margin-top: clamp(20px, 2.6vw, 32px);
  max-width: 44em;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 2;
  color: var(--muted);
}
.ov-stats {
  margin-top: clamp(26px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ov-stats div { padding: 16px 0; }
.ov-stats div + div { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.ov-stats dt {
  font-size: 8px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.ov-stats dd {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: -.01em;
}

.ov-story {
  margin-top: clamp(36px, 5vw, 64px);
  max-width: 42em;
}
.ov-story p {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 2.05;
  color: var(--fg);
  opacity: .88;
}
.ov-story p + p { margin-top: 1.2em; }
.ov-story p:first-child::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.2em;
  line-height: .86;
  padding: .06em .12em 0 0;
  color: var(--accent);
}

.ov-gallery {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.ov-gallery figure { margin: 0; }
.ov-gallery img { width: 100%; height: auto; }
.ov-gallery figcaption {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
}

.ov-gear {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.ov-nav {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ov-nav button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.ov-nav button:hover { color: var(--fg); }
.ov-nav button span { font-family: var(--display); font-size: 14px; letter-spacing: .02em; color: var(--fg); }

html[data-theme="editorial"] .ov-title { font-style: italic; }
html[data-theme="editorial"] .ov-story p:first-child::first-letter { font-style: italic; }

/* ---------- error ---------- */
.error-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.error-panel[hidden] { display: none; }
.error-inner { max-width: 560px; }
.error-inner h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.02em;
}
.error-inner p { margin-top: 14px; font-size: 14px; color: var(--muted); }
.error-inner pre {
  margin: 16px 0;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 13px;
}
.error-inner code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- missing media fallback（build 會先擋，這裡只防執行期） ---------- */
.journey-figure.is-missing,
.film-media.is-missing,
.ov-cover.is-missing,
.ov-gallery figure.is-missing {
  position: relative;
  background:
    linear-gradient(135deg, var(--bg-soft) 0%, var(--accent-soft) 55%, var(--bg-soft) 100%);
}
.journey-figure.is-missing::after,
.film-media.is-missing::after,
.ov-cover.is-missing::after,
.ov-gallery figure.is-missing::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.journey.reveal {
  transition-delay: calc(var(--d, 0) * 90ms);
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .sw-label { display: none; }
  .theme-switch button { padding: 7px 8px; }
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; margin-top: clamp(28px, 4vw, 44px); }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .about-stats li:nth-child(odd) { padding-right: 0; }
  .about-stats li + li { padding-left: 14px; border-left: 1px solid var(--line); }
  html[data-theme="minimal"] .journey-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme="editorial"] .journey-list { column-gap: 32px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .site-nav { display: none; }
  .brand-text em { display: none; }

  html[data-theme="editorial"] .hero { grid-template-rows: minmax(0, 1fr) auto; padding-top: calc(var(--header-h) + 8px); }
  html[data-theme="editorial"] .hero-inner { grid-template-columns: 1fr; row-gap: 14px; }
  html[data-theme="editorial"] .hero-kicker,
  html[data-theme="editorial"] .hero-title,
  html[data-theme="editorial"] .hero-lede,
  html[data-theme="editorial"] .hero-en,
  html[data-theme="editorial"] .hero-foot { grid-column: 1; grid-row: auto; }
  html[data-theme="editorial"] .hero-lede { border-left: 0; padding-left: 0; }
  html[data-theme="editorial"] .hero-foot { margin-top: 22px; }

  html[data-theme="minimal"] .hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(38vh, 1fr); padding-top: var(--header-h); }
  html[data-theme="minimal"] .hero-media { order: 1; margin: 0 var(--pad); min-height: 40vh; }
  html[data-theme="minimal"] .hero-inner { order: 2; align-self: start; padding: 28px var(--pad) 44px; }

  .hero-inner { padding-bottom: 52px; }
  .journey-figure { aspect-ratio: 4 / 3; }
  .journey-excerpt { display: none; }
  .journey-title { font-size: clamp(24px, 5.4vw, 34px); }

  html[data-theme="editorial"] .journey-list { grid-template-columns: 1fr; }
  html[data-theme="editorial"] .journey:nth-child(even) { margin-top: 0; }
  html[data-theme="editorial"] .journey-figure { aspect-ratio: 4 / 3; }
  html[data-theme="editorial"] .journey-excerpt { display: block; }

  .film-list { grid-template-columns: 1fr; }
  html[data-theme="editorial"] .film { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); }

  .section-head { grid-template-columns: auto 1fr; }
  .section-note { grid-column: 2; text-align: left; padding-bottom: 0; }
}

@media (max-width: 640px) {
  .music-btn { padding: 7px 11px; }
  .music-text { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text strong { font-size: 13px; letter-spacing: .16em; }

  html[data-theme="minimal"] .journey-list { grid-template-columns: 1fr; }
  html[data-theme="minimal"] .journey-figure { aspect-ratio: 4 / 3; }

  .hero-title { font-size: clamp(40px, 12.5vw, 64px); }
  .hero-lede { font-size: 13px; }
  .hero-foot { margin-top: 24px; }
  .scroll-cue span { display: none; }

  .manifesto { padding-block: 64px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-stats li:nth-child(3) { border-left: 0; padding-left: 0; }

  .ov-gallery { grid-template-columns: 1fr; }
  .ov-stats { grid-template-columns: 1fr; }
  .ov-stats div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .ov-cover { aspect-ratio: 4 / 3; }
  .ov-nav button span { display: none; }

  .footer-bottom { font-size: 9px; letter-spacing: .1em; }
  .footer-links { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-title .ch { opacity: 1; transform: none; }
  .hero-kicker, .hero-en, .hero-lede, .hero-foot { opacity: 1; }
  .hero-media img { transform: none; }
}
