/* ==========================================================
   Steve 的方法論 — styles.css
   設計語言：LUMA 基礎版（左導覽＋右舞台、青綠主色、暖棕點睛、慢速動態）
   結構：1 Tokens → 2 Base → 3 Layout(側欄/舞台) → 4 共用元件
        → 5 各 Section → 6 RWD → 7 Reduced motion
   ========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F4EF;
  --text: #1F2A2E;
  --text-soft: #5F6B70;
  --muted: #8A969B;
  --primary: #1F6F78;
  --primary-dark: #15515A;
  --primary-soft: #E6F1F2;
  --primary-light: #8FCDD3;      /* 深色底上的青綠 */
  --accent: #C88A4A;             /* 暖棕：只做點睛 */
  --accent-soft: #F3E4D3;
  --border: #E5E0D8;
  --shadow: rgba(31, 42, 46, .12);
  --deep: #18282D;
  --deep-2: #213539;
  --on-deep: #E8ECEC;
  --on-deep-soft: #A9B8BA;

  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Inter", "Noto Sans TC", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --side-w: 248px;
  --side-w-mini: 76px;
  --gutter: clamp(1.25rem, 3.5vw, 3.5rem);
  --wrap: 66rem;
  --radius: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Base ---------- */
/* 根字級隨螢幕放大：手機 16px → 1440 約 17px → 1920 約 20px → 85 吋 4K 上限 26px */
html {
  font-size: clamp(16px, 0.55vw + 9px, 26px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 700; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--deep :focus-visible, .hero :focus-visible, .cta :focus-visible { outline-color: var(--primary-light); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 700;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }
.br-sm { display: none; }

/* ---------- 3. Layout：側欄 + 舞台 ---------- */
.stage { margin-left: var(--side-w); transition: margin-left .35s var(--ease); overflow-x: clip; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--side-w);
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 22px 16px 18px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  transition: width .35s var(--ease), transform .35s var(--ease);
  overflow-y: auto; overflow-x: hidden;
}
.side-brand { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 4px 6px; }
.brand-mark {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--deep); color: var(--primary-light);
  font-family: var(--font-en); font-weight: 800; font-size: 18px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.brand-text strong { font-family: var(--font-en); font-size: 15px; letter-spacing: .01em; }
.brand-text small { font-size: 12px; color: var(--text-soft); }

.side-nav ol { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 12px; border-radius: 14px;
  text-decoration: none; color: var(--text-soft);
  transition: background .25s, color .25s;
}
.side-nav a:hover { background: rgba(31, 111, 120, .06); color: var(--text); }
.side-nav a.is-active { background: var(--primary-soft); color: var(--primary-dark); }
.nav-num {
  flex: none; width: 28px; text-align: center;
  font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .04em;
}
.nav-label { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-label small { font-family: var(--font-en); font-size: 11px; color: var(--muted); }

.side-now {
  margin-top: auto;
  padding: 16px 14px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--border);
}
.side-now-label {
  font-family: var(--font-en); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.side-now-title { display: flex; gap: 8px; margin-top: 4px; font-size: 14px; line-height: 1.45; font-weight: 700; }
.side-now-title [data-now-num] { font-family: var(--font-en); color: var(--primary); }
.side-progress { height: 3px; margin-top: 12px; border-radius: 3px; background: var(--border); overflow: hidden; }
.side-progress span { display: block; height: 100%; width: 100%; background: var(--primary); transform-origin: left; transform: scaleX(0); }
.side-hint { margin-top: 10px; font-size: 12px; color: var(--text-soft); }

.side-user { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 6px 0; }
.side-person { display: flex; flex-direction: column; line-height: 1.35; white-space: nowrap; }
.side-person strong { font-family: var(--font-en); font-size: 14px; }
.side-person small { font-size: 12px; color: var(--text-soft); }

.icon-btn {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(31, 42, 46, .06); }
.chev { width: 10px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 4px; transition: transform .3s; }
.side-close { display: none; }
.close-x { position: relative; width: 18px; height: 18px; }
.close-x::before, .close-x::after { content: ""; position: absolute; top: 8px; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.close-x::after { transform: rotate(-45deg); }

/* 收合狀態（桌機手動或 900–1180px 自動） */
body.is-mini .sidebar { width: var(--side-w-mini); padding-inline: 12px; }
body.is-mini .stage { margin-left: var(--side-w-mini); }
body.is-mini .brand-text, body.is-mini .nav-label, body.is-mini .side-now,
body.is-mini .side-person { display: none; }
body.is-mini .brand { padding: 4px 6px; }
body.is-mini .side-nav a { justify-content: center; padding: 0; }
body.is-mini .side-user { justify-content: center; }
body.is-mini .chev { transform: rotate(-135deg); margin: 0 4px 0 0; }
/* 收合時的 tooltip */
body.is-mini .side-nav a::after {
  content: attr(data-tip);
  position: fixed; left: calc(var(--side-w-mini) + 8px);
  padding: 6px 12px; border-radius: 10px;
  background: var(--deep); color: #fff; font-size: 13px; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translateX(-4px);
  transition: opacity .2s, transform .2s;
}
body.is-mini .side-nav a:hover::after, body.is-mini .side-nav a:focus-visible::after { opacity: 1; transform: none; }

.topbar { display: none; }
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(24, 40, 45, .45); }

/* ---------- 4. 共用元件 ---------- */
.section { position: relative; padding: clamp(5rem, 12vh, 9rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--deep); color: var(--on-deep); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.eyebrow-num { color: var(--accent); letter-spacing: .08em; }
.eyebrow--light { color: var(--primary-light); }

.sec-head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.sec-head .eyebrow { margin-bottom: 1.25rem; }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.sec-title {
  font-size: clamp(2.1rem, 3.5vw, 3.3rem);
  font-weight: 900; line-height: 1.22; letter-spacing: .01em;
}
.sec-title--xl { font-size: clamp(2.3rem, 4.2vw, 3.9rem); }
.sec-aside { max-width: 22rem; color: var(--text-soft); font-size: .95rem; }
.accent-text { color: var(--primary); }
.nowrap { white-space: nowrap; }

.prose p + p { margin-top: 1.1em; }
.prose { color: var(--text-soft); max-width: 34rem; }
.prose b { color: var(--text); }
.prose-key { color: var(--text) !important; font-size: 1.35rem; font-weight: 900; line-height: 1.5; }
.prose--light { color: var(--on-deep-soft); }
.prose--light b, .prose--light .prose-key { color: #fff !important; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 7vh, 5rem); }

/* 進場動畫：只有 JS 啟用時才隱藏 */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * .12s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 5. Sections ---------- */

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--deep);
}
.hero-media { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 2s ease;
}
.hero-slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 25, 30, .72), rgba(10, 25, 30, .25)),
    linear-gradient(180deg, rgba(10, 25, 30, .10) 30%, rgba(10, 25, 30, .7));
}
.hero-inner { position: relative; padding-top: 6rem; padding-bottom: 7rem; }
.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 5.2vw, 5.6rem);
  font-weight: 900; line-height: 1.1; letter-spacing: .01em;
}
.hero-claim {
  margin-top: .6rem;
  font-size: clamp(1.9rem, 3.6vw, 3.8rem);
  font-weight: 700; line-height: 1.25; color: rgba(255, 255, 255, .92);
}
.hero-claim em { font-style: normal; color: var(--primary-light); }
.hero-body { display: grid; grid-template-columns: auto auto; gap: 1rem 4rem; justify-content: start; margin-top: 3rem; font-size: 1.05rem; color: rgba(255, 255, 255, .82); }
.hero-rule { display: flex; flex-direction: column; padding-left: 1.5rem; border-left: 1px solid rgba(200, 138, 74, .8); }
.hero-rule strong { color: #fff; font-weight: 700; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 12px; letter-spacing: .2em;
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(rgba(255,255,255,.8), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero-pause {
  position: absolute; right: 24px; bottom: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(10, 25, 30, .3); cursor: pointer;
  display: grid; place-items: center;
}
.hero-pause span { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero-pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* 8 hrs → 24 hrs */
.hours { padding: clamp(5rem, 13vh, 9rem) 0; background: var(--bg); }
.hours-compare {
  display: grid; grid-template-columns: 1fr minmax(6rem, 14rem) 1fr; align-items: center;
  gap: 2rem; margin-top: 2.5rem;
}
.hours-col { text-align: center; }
.hours-label { font-size: 1.05rem; font-weight: 700; color: var(--text-soft); }
.hours-num {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(5rem, 11vw, 11rem); line-height: 1; letter-spacing: -.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hours-num small { font-size: .2em; font-weight: 600; letter-spacing: 0; margin-left: .3em; }
.hours-col--life .hours-num { color: var(--primary); }
.hours-sub { color: var(--text-soft); font-size: .95rem; }
.hours-arrow svg { width: 100%; height: 40px; overflow: visible; }
.hours-arrow path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.js .hours-arrow path { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.4s var(--ease) .5s; }
.js .hours-arrow.is-in path { stroke-dashoffset: 0; }

.day-bar { margin: 3.5rem auto 0; max-width: 52rem; }
.day-cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; }
.day-cells i { height: 28px; border-radius: 4px; background: var(--border); transition: background .5s var(--ease); }
.day-cells i.is-work { background: var(--muted); }
.day-cells i.is-life { background: var(--primary); }
.day-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-en); font-size: 12px; color: var(--text-soft); }
.hours-statement {
  margin-top: 3.5rem; text-align: center;
  font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 700; line-height: 1.7;
}
.hours-statement .hl { color: var(--primary); }

/* 01 環形時間圖 */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ring-wrap { padding: 2.5rem 4.5rem; overflow: clip; }
.ring { position: relative; width: 100%; max-width: 30rem; aspect-ratio: 1; margin: 0 auto; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: var(--border); stroke-width: 1.5; }
.ring-draw { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 200px 200px; stroke-dasharray: 100; stroke-dashoffset: 0; }
.js .ring-draw { stroke-dashoffset: 100; transition: stroke-dashoffset 2.4s var(--ease) .3s; }
.js .ring-wrap.is-in .ring-draw { stroke-dashoffset: 0; }
.ring-ticks line { stroke: var(--muted); stroke-width: 1; }
.ring-ticks line.is-major { stroke: var(--text-soft); stroke-width: 2; }
.ring-center {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1.15;
  color: var(--text);
}
.ring-now {
  position: absolute; inset: 0; pointer-events: none;
  animation: spin 24s linear infinite;
}
.ring-now::before {
  content: ""; position: absolute; left: 50%; top: 15%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(200, 138, 74, .18);
}
@keyframes spin { to { transform: rotate(1turn); } }
.ring-list li { position: absolute; inset: 0; pointer-events: none; --a: calc(var(--h) / 24 * 1turn); }
.ring-list li::before {
  content: ""; position: absolute;
  left: calc(50% + sin(var(--a)) * 35%); top: calc(50% - cos(var(--a)) * 35%);
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--primary);
}
.ring-label {
  position: absolute; left: calc(50% + sin(var(--a)) * 52%); top: calc(50% - cos(var(--a)) * 52%);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; line-height: 1.3;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.ring-label time { font-family: var(--font-en); font-weight: 600; font-size: .7rem; color: var(--accent); letter-spacing: .06em; }
.day-timeline { display: none; }

/* 02 傳統 vs Steve */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.flow { padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: var(--radius); }
.flow--old { background: transparent; border: 1px dashed #CFC8BC; }
.flow--new { background: var(--bg); border: 1px solid var(--border); box-shadow: 0 24px 60px -30px var(--shadow); }
.flow-title { font-weight: 700; color: var(--text-soft); margin-bottom: 1.5rem; }
.flow--new .flow-title { color: var(--primary); }
.flow ol { display: flex; flex-direction: column; align-items: flex-start; }
.flow li {
  position: relative;
  font-family: var(--font-en); font-weight: 600; font-size: 1.35rem;
  padding: .35rem 1.1rem; border-radius: 999px;
}
.flow li + li { margin-top: 2.1rem; }
.flow li + li::before {
  content: "↓"; position: absolute; left: 1.1rem; top: -1.95rem;
  font-size: 1rem; color: var(--muted);
}
.flow--old li { color: var(--muted); background: rgba(138, 150, 155, .1); }
.flow--old .is-stuck { color: var(--text-soft); border: 1px dashed var(--muted); background: none; font-style: italic; }
.flow--new li { color: var(--text); background: var(--primary-soft); }
.flow--new li + li::before { color: var(--primary); }
.flow--new .is-result { background: var(--primary); color: #fff; }

.list-intro { color: var(--text-soft); margin-bottom: 1rem; }
.big-lines li {
  font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 900; line-height: 1.5;
  padding: .55rem 0; border-bottom: 1px solid var(--border);
}
.big-lines li:last-child { color: var(--primary); border-bottom: 0; }

.pull {
  margin-top: clamp(4rem, 9vh, 6rem); padding: clamp(2rem, 4vw, 3.5rem) 0 0;
  border-top: 1px solid var(--border);
}
.pull p { font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 900; line-height: 1.45; max-width: 24em; }
.pull cite { display: block; margin-top: 1.25rem; font-family: var(--font-en); font-style: normal; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* 03 一回就熟 */
.once { overflow: hidden; }
.once-mark {
  margin: 1.5rem 0 clamp(2.5rem, 6vh, 4rem);
  font-size: clamp(4.2rem, 13vw, 12rem); font-weight: 900; line-height: 1; letter-spacing: .02em;
  color: var(--text);
}
.once-mark::after { content: ""; display: block; width: 3.5rem; height: 6px; margin-top: .25em; border-radius: 6px; background: var(--primary); }
.once-grid { display: flex; flex-direction: column; gap: clamp(2rem, 5vh, 3.5rem); }
.once-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; }
.once-sub { font-size: 1.15rem; color: var(--text-soft); line-height: 1.8; }
.once-sub b { color: var(--text); }
.firsts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.first-card { grid-column: span 2; }
.first-card:nth-child(n+4) { grid-column: span 3; }
.first-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: .75rem;
  min-height: 11rem; padding: 24px 26px;
  border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.first-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px var(--shadow); background: var(--bg); }
.first-from { font-size: .9rem; color: var(--text-soft); }
.first-arrow { font-family: var(--font-en); color: var(--accent); font-size: 1.2rem; line-height: 1; }
.first-card strong { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 900; line-height: 1.35; }
.first-card--hl { background: var(--deep); border-color: var(--deep); color: #fff; }
.first-card--hl .first-from { color: var(--on-deep-soft); }
.first-card--hl:hover { background: var(--deep-2); }
.once-close { margin-top: clamp(3rem, 7vh, 5rem); font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.6; color: var(--text-soft); }
.once-close b { color: var(--text); }

/* 04 0 → 1 */
.zo {
  display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 3rem);
  margin: clamp(2rem, 6vh, 4rem) 0 1.5rem;
  font-family: var(--font-en); font-weight: 800; line-height: .9;
  font-size: clamp(7rem, 19vw, 17rem); letter-spacing: -.05em;
}
.zo-0 { color: rgba(232, 236, 236, .28); }
.zo-1 { color: var(--primary-light); text-shadow: 0 0 60px rgba(143, 205, 211, .35); }
.zo-arrow { width: clamp(4rem, 12vw, 10rem); height: auto; overflow: visible; }
.zo-arrow path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.js .zo-0 { transition: color 1.2s var(--ease) .2s; color: rgba(232, 236, 236, .9); }
.js .zo.is-in .zo-0 { color: rgba(232, 236, 236, .28); }
.js .zo-arrow path { stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1s var(--ease) .7s; }
.js .zo.is-in .zo-arrow path { stroke-dashoffset: 0; }
.js .zo-1 { opacity: 0; transform: translateY(.15em) scale(.9); transition: opacity 1s var(--ease) 1.3s, transform 1.2s var(--ease) 1.3s; }
.js .zo.is-in .zo-1 { opacity: 1; transform: none; }
.zo-note { text-align: center; font-size: clamp(1.15rem, 1.8vw, 1.6rem); color: var(--on-deep-soft); line-height: 1.7; }
.zo-note b { color: #fff; }

.steps-line {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(4rem, 9vh, 6rem);
}
.steps-line::before, .steps-line::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 9px; height: 2px; background: rgba(232, 236, 236, .15);
}
.steps-line::after { background: var(--primary-light); transform-origin: left; transform: scaleX(1); }
.js .steps-line::after { transform: scaleX(0); transition: transform 2s var(--ease) .3s; }
.js .steps-line.is-in::after { transform: scaleX(1); }
.steps-line li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.steps-line li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--deep); border: 2px solid var(--primary-light); }
.steps-line li:last-child::before { background: var(--primary-light); }
.steps-line span { font-family: var(--font-en); font-weight: 600; font-size: 1.05rem; }

/* 05 Before / After */
.ba { border-radius: calc(var(--radius) + 4px); border: 1px solid var(--border); background: var(--bg-alt); padding: clamp(1.5rem, 3.5vw, 3rem); }
.ba-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 5px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border);
}
.ba-btn {
  position: relative; z-index: 1; min-width: 7.5rem; min-height: 44px; padding: 0 1.25rem;
  border: 0; background: none; border-radius: 999px; cursor: pointer;
  font-family: var(--font-en); font-weight: 600; color: var(--text-soft); transition: color .3s;
}
.ba-btn.is-on { color: #fff; }
.ba-pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--muted); transition: transform .5s var(--ease), background .5s;
}
.ba.is-after .ba-pill { transform: translateX(100%); background: var(--primary); }
.ba-viewport { overflow: hidden; margin-top: 2rem; }
.ba-track { display: flex; width: 200%; transition: transform .8s var(--ease); }
.ba.is-after .ba-track { transform: translateX(-50%); }
.ba-panel { width: 50%; flex: none; padding-right: 2px; transition: opacity .6s; }
.ba:not(.is-after) [data-ba-panel="after"], .ba.is-after [data-ba-panel="before"] { opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }

.chain { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 0; }
.chain li {
  display: flex; align-items: center; font-weight: 700; font-size: 1.1rem;
}
.chain li span, .chain li { white-space: nowrap; }
.chain li::after { content: "→"; margin: 0 .8rem; color: var(--muted); font-family: var(--font-en); font-weight: 400; }
.chain li:last-child::after { content: none; }
.chain--before li { color: var(--text-soft); }
.chain .is-wait { color: var(--accent); }
.chain--after li { color: var(--text); }
.chain--after li::after { color: var(--primary); }
.chain .is-done { color: var(--primary); }
.chain .is-done::before { content: "✓"; margin-right: .35rem; }

.meter { margin-top: 2.25rem; }
.meter-bar { position: relative; height: 14px; border-radius: 14px; background: var(--border); overflow: hidden; }
.meter-bar span { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 14px; background: var(--muted); }
.meter--after .meter-bar span { background: var(--primary); }
.meter-bar em {
  position: absolute; left: 22%; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 11px; color: var(--text-soft); letter-spacing: .1em;
}
.meter-ticks { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 8px; font-family: var(--font-en); font-size: 12px; color: var(--text-soft); }
.meter-label { margin-top: 1rem; font-size: 1.4rem; color: var(--text-soft); }
.meter-label b { color: var(--text); font-size: 1.8rem; font-weight: 900; margin-left: .2em; }
.meter--after .meter-label b { color: var(--primary); margin: 0; }
.js .ba [data-ba-panel] .meter-bar span { transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .4s; }
.js .ba.show-before [data-ba-panel="before"] .meter-bar span,
.js .ba.is-after [data-ba-panel="after"] .meter-bar span { transform: scaleX(1); }

.triple { margin: clamp(4rem, 9vh, 6rem) 0; }
.triple p { font-size: clamp(2rem, 4.2vw, 4rem); font-weight: 900; line-height: 1.3; }
.triple p:nth-child(2) { color: var(--primary); }
.triple p:nth-child(3) { color: var(--text-soft); }
.triple cite { display: block; margin-top: 1.25rem; font-family: var(--font-en); font-style: normal; color: var(--accent); }

.speed { padding-top: clamp(2.5rem, 5vh, 3.5rem); border-top: 1px solid var(--border); }
.speed-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.speed-node {
  padding: 1rem 1.5rem; border-radius: 18px; border: 1px solid var(--border); background: var(--bg);
  font-weight: 900; font-size: 1.2rem;
}
.speed-node--hl { background: var(--primary); border-color: var(--primary); color: #fff; }
.speed-gap { flex: 1 1 8rem; display: flex; align-items: center; gap: .75rem; color: var(--text-soft); font-size: .95rem; white-space: nowrap; }
.speed-gap::before, .speed-gap::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.speed-gap b { font-family: var(--font-en); font-size: 1.6rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.speed-note { margin-top: 2.5rem; color: var(--text-soft); }
.speed-key { margin-top: .5rem; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.4; }

/* 06 Meeting 2.0 */
.lanes { display: flex; flex-direction: column; gap: 1.5rem; }
.lane { display: grid; grid-template-columns: 13rem 1fr; align-items: center; gap: 1.5rem; padding: 1.75rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.lane--old { background: transparent; }
.lane-name { font-family: var(--font-en); font-weight: 600; font-size: 1.05rem; }
.lane--new .lane-name { color: var(--primary); }
.lane-body { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.room { position: relative; min-width: 7rem; padding: 1.6rem 1.25rem 1rem; border-radius: 18px; border: 2px solid var(--border); }
.room--full { border-color: var(--primary); background: var(--primary-soft); }
.room-tag {
  position: absolute; top: -.75rem; left: 1rem; padding: 0 .6rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; white-space: nowrap; color: var(--text-soft); background: var(--bg-alt);
}
.lane--new .room-tag { color: var(--primary); background: var(--bg); }
.room ol, .lane-out { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 0; }
.room li, .lane-out li { font-weight: 700; white-space: nowrap; }
.room li + li::before, .lane-out li::before { content: "→"; margin: 0 .7rem; color: var(--muted); font-weight: 400; }
.lane-out li { color: var(--text-soft); }
.lane-out .is-wait { color: var(--accent); }
.room .is-done { color: var(--primary); }
.room .is-done::after { content: " ✓"; }
.slogan { margin-top: clamp(4rem, 9vh, 6rem); text-align: center; }
.slogan p[lang="en"] { font-family: var(--font-serif); font-style: italic; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1.15; max-width: 16em; margin: 0 auto; }
.slogan-zh { margin-top: 1.25rem; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; color: var(--primary); }

/* 07 資料轉換 */
.transform { display: grid; grid-template-columns: 1fr minmax(8rem, 14rem) 1fr; align-items: center; gap: 1.5rem; }
.tf-title { font-weight: 700; color: var(--text-soft); margin-bottom: 1rem; }
.tf-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tf-list li {
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-alt);
  font-weight: 500; font-size: 1rem;
}
.tf-col--out { text-align: right; }
.tf-col--out .tf-list { justify-content: flex-end; }
.tf-col--out .tf-list li { background: var(--primary-soft); border-color: transparent; color: var(--primary-dark); font-weight: 700; }
.tf-core { position: relative; display: flex; align-items: center; justify-content: center; height: 8rem; }
.tf-ai {
  position: relative; z-index: 1; width: 6rem; height: 6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--deep); color: var(--primary-light);
  font-family: var(--font-en); font-weight: 800; font-size: 1.6rem;
  box-shadow: 0 0 0 10px var(--primary-soft);
}
.tf-flow { position: absolute; top: 50%; height: 2px; width: 50%; overflow: hidden; background: var(--border); }
.tf-flow--in { left: 0; } .tf-flow--out { right: 0; }
.tf-flow::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--primary)); animation: flow 2.2s linear infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: clamp(3rem, 7vh, 5rem); }
.callout {
  padding: 1.75rem 2rem; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; line-height: 1.65;
}

/* 08 公式 */
.formulas { display: flex; flex-direction: column; gap: 1.5rem; }
.formula {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .5em;
  font-family: var(--font-en); font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
}
.formula--no { color: var(--muted); }
.formula--no .op { color: var(--accent); }
.formula--yes .op { color: var(--muted); font-weight: 400; }
.formula-hl { color: var(--primary); }
.domains { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.5rem; }
.domains li { padding: 6px 16px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: .95rem; }

/* 09 Coach */
.coach { display: grid; grid-template-columns: 1fr minmax(8rem, 12rem) 1fr; align-items: center; gap: 1.5rem; }
.coach-col { padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-alt); }
.coach-col--user { background: var(--deep); border-color: var(--deep); color: #fff; }
.coach-role { display: flex; align-items: baseline; gap: .6rem; font-family: var(--font-en); font-weight: 800; font-size: 1.8rem; margin-bottom: 1rem; }
.coach-role small { font-family: var(--font-sans); font-size: .9rem; font-weight: 500; color: var(--text-soft); }
.coach-col--user .coach-role small { color: var(--on-deep-soft); }
.coach-col li { padding: .65rem 0; border-top: 1px solid var(--border); font-size: 1.15rem; font-weight: 700; }
.coach-col--user li { border-color: rgba(255, 255, 255, .12); }
.coach-handoff { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.handoff-bar { width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--border), var(--primary)); position: relative; }
.handoff-bar::after { content: ""; position: absolute; right: -2px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-top: 3px solid var(--primary); border-right: 3px solid var(--primary); transform: rotate(45deg); }
.handoff-label { font-size: .85rem; color: var(--text-soft); }
.coach-key { margin-top: clamp(3rem, 7vh, 5rem); font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.45; color: var(--text-soft); font-weight: 700; }
.coach-key b { color: var(--text); font-weight: 900; }

/* 呼吸照片帶 */
.band { position: relative; min-height: clamp(26rem, 78vh, 52rem); display: grid; align-items: end; overflow: hidden; background: var(--deep); }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 30, 0) 35%, rgba(10, 25, 30, .78)); }
.band-text { position: relative; padding: 0 var(--gutter) clamp(3rem, 9vh, 5.5rem); color: #fff; font-size: clamp(2.4rem, 5.4vw, 5rem); font-weight: 900; line-height: 1.3; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }

/* 10 點火 */
.ignite { overflow: hidden; }
.ignite-glow {
  position: absolute; left: 50%; bottom: -30%; width: 90vmin; height: 90vmin; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(200, 138, 74, .32), rgba(200, 138, 74, 0) 65%);
  animation: breathe 6s ease-in-out infinite; pointer-events: none;
}
@keyframes breathe { 0%, 100% { opacity: .65; transform: translateX(-50%) scale(.95); } 50% { opacity: 1; transform: translateX(-50%) scale(1.05); } }
.ignite .wrap { position: relative; }
.sparks { display: flex; justify-content: space-between; align-items: flex-end; margin-top: clamp(4rem, 9vh, 6rem); }
.sparks li {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-family: var(--font-en); font-weight: 600; font-size: 1.15rem; color: var(--on-deep);
}
.sparks li::before {
  content: ""; border-radius: 50%;
  width: calc(10px + var(--n) * 9px); height: calc(10px + var(--n) * 9px);
  background: rgba(200, 138, 74, calc(.15 + var(--n) * .17));
  box-shadow: 0 0 calc(var(--n) * 12px) rgba(200, 138, 74, calc(var(--n) * .12));
}
.ignite-lead { margin-top: clamp(4rem, 9vh, 6rem); text-align: center; color: var(--on-deep-soft); font-size: 1.15rem; }
.ignite-word {
  text-align: center; font-size: clamp(5rem, 14vw, 12rem); font-weight: 900; line-height: 1.1; letter-spacing: .08em;
  color: #fff; text-shadow: 0 0 80px rgba(200, 138, 74, .55);
}

/* 11 比較 */
.compare { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.5rem; align-items: stretch; }
.cmp { padding: clamp(1.75rem, 3.5vw, 3rem); border-radius: var(--radius); }
.cmp h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 900; margin-bottom: 1.25rem; }
.cmp li { padding: .8rem 0; border-top: 1px solid var(--border); font-size: 1.15rem; font-weight: 500; }
.cmp--old { border: 1px dashed #CFC8BC; color: var(--text-soft); }
.cmp--old .is-end { color: var(--muted); font-style: italic; }
.cmp--new { background: var(--bg); border: 2px solid var(--primary); box-shadow: 0 30px 70px -35px rgba(31, 111, 120, .45); }
.cmp--new h3 { color: var(--primary); }
.cmp--new li { font-weight: 700; display: flex; gap: .75rem; }
.cmp--new li::before { content: "→"; font-family: var(--font-en); color: var(--accent); }
.cmp--new .is-goal { color: var(--primary); }
.cmp-key { margin-top: clamp(3rem, 7vh, 5rem); font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.6; color: var(--text-soft); }
.cmp-key b { color: var(--text); font-weight: 900; }

/* 12 Steve Method */
.method-list { position: relative; max-width: 48rem; }
.method-list::before, .method-list::after {
  content: ""; position: absolute; left: calc(2.4rem - 1px); top: 2.4rem; bottom: 2.4rem; width: 2px; background: var(--border);
}
.method-list::after { background: var(--primary); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.method-list li { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.75rem; padding: 1rem 0; }
.m-num {
  flex: none; width: 4.8rem; height: 4.8rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--primary);
  font-family: var(--font-en); font-weight: 800; font-size: 1.6rem; color: var(--primary);
  transition: background .4s, color .4s;
}
.method-list li.is-lit .m-num { background: var(--primary); color: #fff; }
.method-list h3 { font-family: var(--font-en); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.01em; }
.method-list p { color: var(--text-soft); font-size: 1.05rem; }
.method-end { margin-top: clamp(4rem, 9vh, 6rem); padding-top: clamp(3rem, 6vh, 4rem); border-top: 1px solid var(--border); }
.method-name { font-family: var(--font-en); font-weight: 800; font-size: clamp(2.6rem, 6vw, 5.5rem); letter-spacing: -.03em; line-height: 1; }
.method-en { margin-top: 1rem; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.7rem, 3.2vw, 3rem); line-height: 1.2; color: var(--primary); }
.method-zh { margin-top: .75rem; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; }

/* 案例 */
.case-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.case-card {
  grid-column: span 2;
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card:nth-child(5n+1), .case-card:nth-child(5n+2) { grid-column: span 3; }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -32px var(--shadow); }
.case-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.case-media img, .case-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.case-card:hover .case-media img { transform: scale(1.05); }
.case-body { display: flex; flex-direction: column; gap: .8rem; flex: 1; padding: clamp(1.5rem, 2.4vw, 2rem); }
.case-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.case-no { font-family: var(--font-en); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--border); transition: color .3s; }
.case-card:hover .case-no { color: var(--accent); }
.case-field { font-size: .85rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.case-title { font-size: clamp(1.35rem, 1.9vw, 1.75rem); font-weight: 900; line-height: 1.3; }
.case-summary { font-weight: 700; color: var(--text); }
.case-text { color: var(--text-soft); font-size: 1rem; line-height: 1.8; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: .75rem; }
.case-tags li { padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: .78rem; font-weight: 700; }
.case-link { color: var(--primary); font-weight: 700; text-underline-offset: 4px; }
.case-card--more {
  grid-column: span 2; justify-content: center; align-items: center; text-align: center;
  min-height: 14rem; padding: 2rem; border-style: dashed; background: transparent; color: var(--text-soft);
}
.case-card--more strong { display: block; font-size: 2.4rem; font-family: var(--font-en); color: var(--muted); line-height: 1; margin-bottom: .75rem; }

/* Key messages */
.keys .eyebrow { margin-bottom: 2rem; }
.key-list li { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; padding: clamp(1.75rem, 4vh, 2.75rem) 0; border-top: 1px solid var(--border); }
.key-list li:last-child { border-bottom: 1px solid var(--border); }
.key-n { font-family: var(--font-en); font-weight: 800; font-size: 1.3rem; color: var(--accent); padding-top: .4rem; }
.key-list p { font-size: clamp(1.5rem, 2.9vw, 2.6rem); line-height: 1.5; color: var(--text-soft); font-weight: 700; }
.key-list b { color: var(--text); font-weight: 900; }

/* CTA */
.cta { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: #fff; background: var(--deep); overflow: hidden; }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 25, 30, .82), rgba(10, 25, 30, .45)), linear-gradient(180deg, rgba(10, 25, 30, .2), rgba(10, 25, 30, .8)); }
.cta-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 6rem; padding-bottom: 4rem; }
.cta-pre { font-size: clamp(1.3rem, 2.2vw, 2rem); color: rgba(255, 255, 255, .78); font-weight: 500; }
.cta-title { margin-top: 1rem; font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 900; line-height: 1.25; }
.br-lg { display: none; }
.cta-steps { margin-top: 3rem; display: flex; flex-direction: column; gap: .2rem; }
.cta-steps li { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.35; color: rgba(255, 255, 255, .9); }
.cta-steps li:first-child { color: var(--primary-light); }
.site-foot { position: relative; border-top: 1px solid rgba(255, 255, 255, .15); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.foot-name { font-family: var(--font-en); font-weight: 800; font-size: 1.3rem; }
.foot-role { color: rgba(255, 255, 255, .78); }
.foot-copy { margin-left: auto; font-size: .8rem; color: rgba(255, 255, 255, .6); }

/* ---------- 6. RWD ---------- */
/* 超大螢幕（85 吋 / 4K）：內容放寬 */
@media (min-width: 2200px) {
  :root { --wrap: 72rem; --side-w: 300px; }
  .sidebar { padding: 32px 20px; }
  .nav-label { font-size: 18px; }
  .side-nav a { min-height: 58px; }
  .side-now-title { font-size: 17px; }
}

@media (max-width: 1180px) {
  .hero-body { grid-template-columns: 1fr; }
  .ring-wrap { padding: 2.5rem 3.5rem; }
}

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .ring-wrap { max-width: 34rem; margin: 0 auto; width: 100%; }
  .transform { grid-template-columns: 1fr; text-align: left; }
  .tf-core { height: 7rem; }
  .tf-flow { left: 50% !important; right: auto !important; width: 2px; height: 50%; top: 0; transform: translateX(-1px); }
  .tf-flow--out { top: 50%; }
  .tf-flow::after { width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--primary)); animation-name: flow-v; }
  @keyframes flow-v { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
  .tf-col--out { text-align: left; }
  .tf-col--out .tf-list { justify-content: flex-start; }
  .coach { grid-template-columns: 1fr; }
  .coach-handoff { flex-direction: row; justify-content: center; padding: .5rem 0; }
  .handoff-bar { width: 6px; height: 3rem; background: linear-gradient(180deg, var(--border), var(--primary)); }
  .handoff-bar::after { right: auto; left: 50%; top: auto; bottom: -2px; margin: 0 0 0 -6px; transform: rotate(135deg); }
  .lane { grid-template-columns: 1fr; gap: 1rem; }
  .case-card, .case-card:nth-child(5n+1), .case-card:nth-child(5n+2), .case-card--more { grid-column: span 3; }
}

/* 手機 / 小平板：側欄改抽屜 */
@media (max-width: 900px) {
  .stage, body.is-mini .stage { margin-left: 0; }
  .topbar {
    position: fixed; inset: 0 0 auto 0; z-index: 30; height: 60px;
    display: flex; align-items: center; gap: 8px; padding: 0 12px;
    padding-top: env(safe-area-inset-top);
    background: rgba(247, 244, 239, .92); border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  [id] { scroll-margin-top: 60px; }
  .topbar-brand { font-weight: 900; text-decoration: none; font-size: 16px; }
  .topbar-now { margin-left: auto; padding-right: 8px; font-family: var(--font-en); font-weight: 800; color: var(--primary); }
  .burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; } .burger::after { top: 6px; }

  .sidebar, body.is-mini .sidebar {
    width: min(86vw, 320px); padding: 20px 16px; z-index: 50;
    transform: translateX(-105%);
  }
  body.is-mini .brand-text, body.is-mini .nav-label, body.is-mini .side-now, body.is-mini .side-person { display: flex; }
  body.is-mini .side-nav a { justify-content: flex-start; padding: 0 12px; }
  body.is-mini .side-nav a::after { content: none; }
  body.drawer-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .2); }
  body.drawer-open { overflow: hidden; }
  .side-close { display: grid; }
  .side-collapse, .side-hint { display: none; }

  .two-col, .versus, .callouts, .compare { grid-template-columns: 1fr; }
  .hours-compare { grid-template-columns: 1fr; gap: .5rem; }
  .hours-arrow { width: 40px; height: 4.5rem; margin: 0 auto; }
  .hours-arrow svg { width: 4.5rem; height: 40px; transform: rotate(90deg) translateX(-50%); transform-origin: left center; margin-left: 20px; }
  .steps-line { grid-template-columns: 1fr; gap: 1.6rem; max-width: 20rem; margin-left: auto; margin-right: auto; }
  .steps-line::before, .steps-line::after { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .steps-line::after { transform-origin: top; }
  .js .steps-line::after { transform: scaleY(0); }
  .js .steps-line.is-in::after { transform: scaleY(1); }
  .steps-line li { flex-direction: row; text-align: left; gap: 1.25rem; }
  .sparks { flex-direction: column; align-items: center; gap: 1.25rem; }
  .sparks li { flex-direction: row; width: 11rem; gap: 1.25rem; }
  .sparks li::before { flex: none; }
}

/* 手機 */
@media (max-width: 560px) {
  :root { --gutter: 20px; --radius: 20px; }
  body { font-size: 1rem; line-height: 1.8; }
  .br-sm { display: inline; }
  .br-lg { display: inline; }
  .section { padding: 4.5rem 0; }
  .hero-inner { padding-top: 5rem; padding-bottom: 6rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-claim { font-size: 1.9rem; }
  .hero-body { margin-top: 2rem; font-size: 1rem; }
  .hero-pause { right: 16px; bottom: 16px; }
  .sec-title { font-size: 1.95rem; }
  .sec-title--xl { font-size: 2.1rem; }
  .hours-num { font-size: 6rem; }
  .day-cells { gap: 2px; }
  .day-cells i { height: 20px; border-radius: 3px; }

  /* 環形圖：只留點與時間，文字改直式時間軸 */
  .ring-wrap { padding: 1.5rem 1.25rem; }
  .ring { max-width: 17rem; }
  .ring-label { clip: rect(0 0 0 0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .ring-center { font-size: 1.35rem; }
  .day-timeline { display: block; margin-top: 2rem; border-left: 2px solid var(--primary-soft); padding-left: 1.25rem; }
  .day-timeline li { position: relative; display: flex; gap: 1rem; padding: .45rem 0; font-weight: 700; }
  .day-timeline li::before { content: ""; position: absolute; left: calc(-1.25rem - 6px); top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--primary); }
  .day-timeline time { width: 3.2rem; font-family: var(--font-en); font-weight: 600; font-size: .85rem; color: var(--accent); align-self: center; }

  .flow li { font-size: 1.15rem; }
  .firsts { grid-template-columns: 1fr; gap: 12px; }
  .first-card, .first-card:nth-child(n+4) { grid-column: auto; }
  .first-card { min-height: 0; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: .25rem .75rem; padding: 20px; }
  .first-from { width: 100%; }
  .zo { gap: .75rem; }
  .ba { padding: 1.25rem; }
  .ba-btn { min-width: 6rem; }
  .chain { flex-direction: column; align-items: flex-start; gap: 0; }
  .chain li { display: block; }
  .chain li::after { display: block; }
  .chain li::after { content: "↓"; margin: 0 0 0 .2rem; line-height: 1.4; }
  .meter-label, .meter-label b { font-size: 1.25rem; }
  .meter-bar em { display: none; }
  .speed-row { flex-direction: column; align-items: stretch; }
  .speed-gap { flex: none; justify-content: center; padding: .25rem 0; }
  .speed-node { text-align: center; }
  .lane { padding: 1.25rem; }
  .room ol { flex-direction: column; align-items: flex-start; }
  .room li + li::before { content: "↓"; display: block; margin: .15rem 0; }
  .room li { display: flex; flex-direction: column; }
  .lane-out li::before { margin: 0 .5rem; }
  .coach-role { font-size: 1.5rem; }
  .method-list::before, .method-list::after { left: calc(1.75rem - 1px); top: 1.75rem; bottom: 1.75rem; }
  .m-num { width: 3.5rem; height: 3.5rem; font-size: 1.25rem; }
  .method-list li { gap: 1.1rem; }
  .case-grid { grid-template-columns: 1fr; gap: 14px; }
  .case-card, .case-card:nth-child(5n+1), .case-card:nth-child(5n+2), .case-card--more { grid-column: auto; }
  .key-list li { grid-template-columns: 1fr; gap: .5rem; }
  .key-list p { font-size: 1.35rem; }
  .cta-title { font-size: 2.1rem; }
  .foot-copy { margin-left: 0; width: 100%; }
}

/* ---------- 7. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { transform: none; transition: opacity .4s ease; transition-delay: 0s; }
  .hero-slide { transition: none; }
  .ba-track, .ba-pill, .first-card, .case-card, .case-media img { transition: none !important; }
  .js .zo-1, .js .zo-arrow path, .js .hours-arrow path, .js .ring-draw,
  .js .steps-line::after, .js .ba [data-ba-panel] .meter-bar span { transition: none !important; }
  .first-card:hover, .case-card:hover { transform: none; }
}
