/* 首頁：走過一天。往下捲，背景從晨光慢慢變成夜空（#sky 由 home.js 畫）；
   深色模式時整頁都是夜空。顏色跟著 html.is-night 切換 */
body.home {
  --ink: #1f2a2c;
  --muted: #5b6466;
  --faint: #8a9294;
  --accent: #2f6b63;
  --accent-ink: #1f4d47;
  --glass: rgba(255, 255, 255, 0.5);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 18px 50px rgba(31, 42, 44, 0.1);
  --line: rgba(31, 42, 44, 0.14);
  --tint: rgba(220, 235, 230, 0.75);
  --on-accent: #fff;
  background: #f3f4f0;
  color: var(--ink);
  overflow-x: hidden;
  transition: color 0.6s ease;
}
html.is-night body.home {
  --ink: #ece8df;
  --muted: rgba(236, 232, 223, 0.74);
  --faint: rgba(236, 232, 223, 0.5);
  --accent: #e3ad55;
  --accent-ink: #f3d9a8;
  --glass: rgba(60, 68, 105, 0.32);
  --glass-edge: rgba(255, 255, 255, 0.13);
  --glass-shadow: 0 18px 50px rgba(5, 8, 20, 0.35);
  --line: rgba(255, 255, 255, 0.14);
  --tint: rgba(227, 173, 85, 0.16);
  --on-accent: #1b1a16;
  background: #232a3e;
}
.home .top nav a { color: var(--muted); }
.home .top nav a:hover { color: var(--ink); }
.home .brand { color: var(--ink); }
.home .theme-toggle { color: var(--muted); }
.home a { color: var(--accent); }

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* JS 沒跑時的晨光 */
  background: linear-gradient(168deg, #f8f5ef 0%, #eef5f2 55%, #e9eff7 100%);
}
html.is-night #sky { background: linear-gradient(168deg, #1f2a44 0%, #363b60 55%, #232a3e 100%); }
.home > header, .home > main, .home > footer { position: relative; z-index: 1; }

.home h1, .home h2, .home h3 { color: var(--ink); transition: color 0.6s ease; }
.home p { transition: color 0.6s ease; text-wrap: pretty; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--accent);
  transition: color 0.6s ease;
}
.home h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.3;
  letter-spacing: 0.04em;
}
.home .lead, .home .copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 30em; margin: 0; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

.split2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.split2 > * { min-width: 0; }
.chapter { padding-block: 120px; }

/* ── 1 主視覺 ── */
.hero {
  min-height: calc(100svh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding-block: 24px 80px;
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(46px, 7.4vw, 84px);
  line-height: 1.16;
  letter-spacing: 0.06em;
}
.hero h1 .ch { display: inline-block; animation: ink-in 1.1s var(--ease) both; animation-delay: calc(0.15s + var(--i) * 70ms); }
@keyframes ink-in { from { opacity: 0; transform: translateY(0.35em); filter: blur(8px); } }
.hero .eyebrow, .hero .lead, .hero .cta { animation: rise 1s var(--ease) both; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero .lead { animation-delay: 0.75s; margin-bottom: 34px; font-size: 19px; }
.hero .cta { animation-delay: 0.9s; }

.cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #3b7d74, #2f6b63 55%, #285d56);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px rgba(47, 107, 99, 0.3);
}
.btn svg { width: 18px; height: 18px; }
/* 光澤按鈕上掠過的一道光 */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 5s ease-in-out 2s infinite;
}
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.home .btn, .home .btn:hover { color: #fff; }
.btn[aria-disabled="true"] { cursor: default; }
.cta small { color: var(--faint); font-size: 14px; }

/* 手機：今日頁 */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
  animation: phone-in 1.4s var(--ease) 0.3s both;
}
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } }
.phone {
  position: relative;
  width: min(330px, 100%);
  aspect-ratio: 330 / 680;
  border-radius: 48px;
  padding: 10px;
  background: #11161a;
  box-shadow: 0 40px 90px rgba(31, 42, 44, 0.28), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform 0.8s var(--ease);
  animation: float 8s ease-in-out 1.6s infinite;
}
@keyframes float { 50% { translate: 0 -12px; } }
.phone::before {
  /* 動態島 */
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  border-radius: 20px;
  background: #0a0d10;
  z-index: 3;
}
.ph-screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  padding: 64px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #1f2a2c;
  font-size: 13px;
  line-height: 1.5;
  background: linear-gradient(168deg, #f8f5ef 0%, #eef5f2 55%, #e9eff7 100%);
}
.ph-screen::before, .ph-screen::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(30px);
}
.ph-screen::before { width: 260px; height: 160px; right: -90px; top: -60px; background: rgba(251, 222, 170, 0.75); }
.ph-screen::after { width: 220px; height: 140px; left: -80px; bottom: 120px; background: rgba(180, 222, 212, 0.55); }
.ph-screen > * { position: relative; z-index: 1; }
.ph-date { font-size: 11px; color: #8a9294; letter-spacing: 0.06em; }
.ph-greet { font-size: 12px; color: #5b6466; letter-spacing: 0.2em; margin-top: 6px; }
.ph-line {
  margin: 0 0 6px;
  min-height: 2.6em;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2a2c;
  transition: opacity 0.6s ease, transform 0.6s var(--ease), filter 0.6s ease;
}
.ph-line.out { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
.ph-thought {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #8a9294;
}
.ph-thought i { font-style: normal; color: #2f6b63; font-size: 16px; }
.ph-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(31, 42, 44, 0.06);
  animation: rise 0.9s var(--ease) both;
}
.ph-card:nth-of-type(1) { animation-delay: 1.1s; }
.ph-card:nth-of-type(2) { animation-delay: 1.25s; }
.ph-card b { font-family: var(--serif); font-size: 16px; }
.ph-card span { color: #5b6466; font-size: 12px; }
.ph-card .ph-done { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: #2f6b63; color: #fff; display: grid; place-items: center; font-size: 12px; }
.ph-card { position: relative; }
.ph-evening {
  color: #ece8df;
  background: linear-gradient(150deg, #2a3150, #3a3f66);
  border-color: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.ph-evening::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 173, 85, 0.55), rgba(227, 173, 85, 0) 70%);
  animation: lamp-breathe 4s ease-in-out infinite;
}
@keyframes lamp-breathe { 50% { opacity: 0.55; transform: scale(0.9); } }
.ph-evening span { color: rgba(236, 232, 223, 0.7); }
.ph-fab {
  margin-top: auto;
  align-self: flex-end;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(180deg, #3b7d74, #2f6b63 55%, #285d56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 22px rgba(47, 107, 99, 0.3);
}
.ph-tabs {
  display: flex;
  justify-content: space-around;
  padding: 12px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 11px;
  color: #8a9294;
}
.ph-tabs b { color: #2f6b63; font-weight: 600; }

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: -56px;
  padding-bottom: 32px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--faint);
  animation: rise 1s var(--ease) 1.6s both;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--faint), transparent);
  transform-origin: top;
  animation: drip 2.4s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* 晚上的手機畫面 */
.ph-greet .n { display: none; }
html.is-night .ph-greet .d { display: none; }
html.is-night .ph-greet .n { display: inline; }
html.is-night .ph-screen { color: #ece8df; background: linear-gradient(168deg, #1f2a44 0%, #363b60 55%, #232a3e 100%); }
html.is-night .ph-screen::before { background: rgba(196, 186, 226, 0.4); }
html.is-night .ph-screen::after { background: transparent; }
html.is-night .ph-date, html.is-night .ph-greet { color: rgba(236, 232, 223, 0.6); }
html.is-night .ph-line { color: #ece8df; }
html.is-night .ph-thought, html.is-night .ph-tabs, html.is-night .ph-card:not(.ph-evening) {
  background: rgba(60, 68, 105, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(236, 232, 223, 0.6);
}
html.is-night .ph-card:not(.ph-evening) b { color: #ece8df; }
html.is-night .ph-card span { color: rgba(236, 232, 223, 0.65); }
html.is-night .ph-card .ph-done { background: #e3ad55; color: #1b1a16; }
html.is-night .ph-evening { background: linear-gradient(150deg, rgba(227, 173, 85, 0.35), rgba(54, 59, 96, 0.9)); }
html.is-night .ph-thought i, html.is-night .ph-tabs b { color: #e3ad55; }
html.is-night .ph-fab { color: #1b1a16; background: linear-gradient(180deg, #f0c47a, #e3ad55 55%, #cf9a44); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 22px rgba(227, 173, 85, 0.3); }

/* ── 2 呼吸 ── */
.ring-box { position: relative; aspect-ratio: 1; width: min(460px, 100%); margin-inline: auto; }
.ring-box canvas { position: absolute; inset: -30%; width: 160%; height: 160%; pointer-events: none; }
.ring-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.3em;
  color: var(--ink);
}
.ring-label small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.3em; color: var(--faint); font-variant-numeric: tabular-nums; }
#breath-word { transition: opacity 0.5s ease; }

/* ── 3 早晨日記 ── */
.journal { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 8px; }
.j-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.j-head b { font-family: var(--serif); font-size: 22px; }
.j-head span { font-size: 13px; color: var(--faint); }
.j-label { font-size: 13px; letter-spacing: 0.12em; color: var(--accent); margin-top: 10px; }
.j-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.j-list li {
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--tint);
  font-size: 15px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 160ms + 0.2s);
}
.journal.play .j-list li { opacity: 1; transform: none; }
.j-field { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; min-height: 48px; }
.j-field em { font-style: normal; color: var(--accent-ink); border-bottom: 1.5px solid var(--accent); padding-inline: 2px; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.j-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.j-chips span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease);
}
.j-chips span.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.04); }

/* ── 4 定靜安慮得：捲動時一個字一個字亮起來 ── */
.steps-story { position: relative; height: 420vh; }
.steps-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
}
.steps-sticky .wrap { width: 100%; }
.steps-head { text-align: center; margin-bottom: 40px; }
.chars {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 40px);
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.chars li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.chars b {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.1;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.18;
  transition: opacity 0.6s ease, color 0.6s ease, text-shadow 0.6s ease, transform 0.6s var(--ease);
}
.chars small { font-size: 12px; letter-spacing: 0.2em; color: var(--faint); opacity: 0.6; transition: opacity 0.6s ease; }
.chars li.done b { opacity: 0.45; }
.chars li.on b { opacity: 1; color: var(--accent); text-shadow: 0 0 34px rgba(47, 107, 99, 0.35); transform: translateY(-6px); }
html.is-night .chars li.on b { text-shadow: 0 0 34px rgba(227, 173, 85, 0.55); }
.chars li.on small { opacity: 1; color: var(--accent); }
.step-panels { position: relative; max-width: 620px; margin: 0 auto; min-height: 150px; text-align: center; }
.panel {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
  pointer-events: none;
}
.panel.on { opacity: 1; transform: none; pointer-events: auto; }
.panel h3 { margin: 0 0 8px; font-size: 24px; }
.panel p { margin: 0; color: var(--muted); }
.panel .q { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: 15px; }
.step-bar { width: min(320px, 70%); height: 2px; margin: 34px auto 0; border-radius: 2px; background: var(--line); overflow: hidden; }
.step-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.steps-quote { margin: 28px auto 0; max-width: 34em; text-align: center; font-family: var(--serif); font-size: 15px; color: var(--faint); }
.steps-quote cite { display: block; font-style: normal; font-size: 13px; margin-top: 2px; }

/* ── 5 大小選擇：兩排慢慢流動的問題 ── */
.choices-head { text-align: center; margin-bottom: 40px; }
.choices-head p { margin-inline: auto !important; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding-block: 6px;
}
.marquee .track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  color: var(--ink);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.marquee span i { font-style: normal; font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }

/* 傍晚：只是讓天色慢慢暗下來的一段 */
.dusk { height: 24vh; }

/* ── 6 晚上 ── */
.evening-cards { display: flex; flex-direction: column; gap: 16px; }
.evening-cards .glass { padding: 22px 24px; }
.e-row { display: flex; flex-direction: column; gap: 4px; }
.e-row + .e-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.e-row small { font-size: 13px; letter-spacing: 0.12em; color: var(--accent); }
.e-row span { font-size: 16px; }
.reflection { position: relative; overflow: hidden; }
.reflection::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 173, 85, 0.35), rgba(227, 173, 85, 0) 70%);
}
.reflection > * { position: relative; }
.reflection .tag { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.reflection .tag svg { width: 14px; height: 14px; color: var(--accent); }
.reflection p { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.8; }
.reflection p .w { opacity: 0; transition: opacity 0.5s ease; transition-delay: calc(var(--i) * 45ms); }
.reflection.play p .w { opacity: 1; }

/* ── 7 燈 ── */
.lamp-stage { position: relative; aspect-ratio: 4 / 5; width: min(440px, 100%); margin-inline: auto; cursor: pointer; }
.lamp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lamp-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}
.lamp-cap.hide { opacity: 0; transform: translateY(8px); }
.lamp-cap small { font-size: 12px; letter-spacing: 0.3em; color: var(--accent); }
.lamp-cap b { font-family: var(--serif); font-size: 26px; letter-spacing: 0.15em; font-weight: 600; }
.lamp-cap p { margin: 0; max-width: 22em; font-size: 14px; color: var(--muted); }
.shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px 2px;
  margin-top: 32px;
}
.shelf button {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.4s var(--ease);
}
.shelf button:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-3px); }
.shelf button[aria-pressed="true"] { background: rgba(227, 173, 85, 0.14); }
.shelf button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shelf canvas { width: 100%; height: 100%; display: block; }
.shelf-note { margin-top: 10px !important; font-size: 14px !important; color: var(--faint) !important; }

/* ── 8 隱私 ── */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.promises .glass { padding: 26px 24px; }
.promises h3 { margin: 12px 0 8px; font-size: 20px; }
.promises p { margin: 0; color: var(--muted); font-size: 15px; }
.promises svg { width: 26px; height: 26px; color: var(--accent); }

/* ── 9 最後 ── */
.finale { text-align: center; padding-block: 120px 140px; }
.finale h2 { font-size: clamp(34px, 5vw, 54px); }
.finale p { margin: 0 auto 30px !important; }
.finale .cta { justify-content: center; }
html.is-night .btn {
  background: linear-gradient(180deg, #f0c47a, #e3ad55 55%, #cf9a44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 30px rgba(227, 173, 85, 0.35);
}
html.is-night .home .btn, html.is-night .home .btn:hover { color: #1b1a16; }

.home footer { border-top-color: var(--line); color: var(--faint); }
.home footer a { color: var(--muted); }

/* 捲動淡入的延遲 */
.home .reveal { transition-delay: calc(var(--i, 0) * 110ms); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-block: 24px 120px; text-align: left; }
  .scroll-hint { display: none; }
  .split2 { grid-template-columns: 1fr; gap: 40px; }
  .split2.flip > :first-child { order: 2; }
  .promises { grid-template-columns: 1fr; }
  .chapter { padding-block: 88px; }
  .phone { --ry: 0deg; --rx: 0deg; width: min(300px, 86%); }
}
@media (max-width: 480px) {
  .home h2 { font-size: 28px; }
  .hero .lead { font-size: 17px; }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chars { gap: 6px; }
  .step-panels { min-height: 190px; }
  .marquee span { font-size: 14px; padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .steps-story { height: auto; }
  .steps-sticky { position: static; height: auto; padding-block: 88px; }
  .j-list li, .reflection p .w { opacity: 1; transform: none; }
  .marquee .track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee .track [aria-hidden] { display: none; }
}

/* 英文版：字比較長，標題小一點、字距收一點 */
html[lang="en"] .hero h1 { font-size: clamp(40px, 5.4vw, 66px); letter-spacing: 0.01em; }
html[lang="en"] .home h2 { letter-spacing: 0.01em; }
html[lang="en"] .ring-label { letter-spacing: 0.12em; }
html[lang="en"] .chars small { letter-spacing: 0.12em; }
