/* =========================================================================
   MorningHorn 馬吼鬧鐘 — 官方網站樣式
   設計語言取自品牌海報：五色平塗色塊、超粗窄體英文大寫標題、直排中文邊欄、
   以及貫穿全站的品牌方圓形（squircle）。所有顏色只從五個品牌色與黑白衍生。
   ========================================================================= */

/* ---------- 字體 ---------- */
@font-face {
  font-family: "Google Sans Flex";
  src: url("fonts/google-sans-flex-latin.woff2") format("woff2");
  font-weight: 1 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Google Sans Flex";
  src: url("fonts/google-sans-flex-latin-ext.woff2") format("woff2");
  font-weight: 1 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "LINE Seed TW";
  src: url("fonts/line-seed-tw-rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed TW";
  src: url("fonts/line-seed-tw-bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed TW";
  src: url("fonts/line-seed-tw-eb.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 色票 ---------- */
:root {
  /* 五個品牌色，全站唯一色源 */
  --navy: #182132;
  --offwhite: #f8f8fa;
  --gray: #575460;
  --yellow: #efde00;
  --orange: #ef3f18;

  /* 淺色主題 */
  --ground: var(--offwhite);
  --surface: #ffffff;
  --surface-sunken: color-mix(in srgb, var(--offwhite) 88%, var(--gray));
  --text: var(--navy);
  --text-muted: var(--gray);
  --line: color-mix(in srgb, var(--gray) 26%, transparent);
  --accent: var(--navy);
  --on-accent: var(--offwhite);
  --deco: color-mix(in srgb, var(--gray) 22%, transparent);
  --link: var(--orange);
  --focus: var(--orange);

  --shell: min(1240px, 100% - 2 * var(--gutter));
  --gutter: clamp(20px, 5vw, 72px);
  --rhythm: clamp(64px, 9vw, 132px);
  --radius-soft: 22px;
  --ease-spring: cubic-bezier(0.22, 1.4, 0.36, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: var(--navy);
    --surface: color-mix(in srgb, var(--navy) 90%, white);
    --surface-sunken: color-mix(in srgb, var(--navy) 96%, black);
    --text: var(--offwhite);
    --text-muted: color-mix(in srgb, var(--gray) 55%, var(--offwhite));
    --line: color-mix(in srgb, var(--offwhite) 20%, transparent);
    --accent: var(--yellow);
    --on-accent: var(--navy);
    --deco: color-mix(in srgb, var(--gray) 55%, transparent);
    --link: var(--yellow);
    --focus: var(--yellow);
    --ink-block: color-mix(in srgb, var(--navy) 88%, black);
  }
}
:root[data-theme="dark"] {
  --ground: var(--navy);
  --surface: color-mix(in srgb, var(--navy) 90%, white);
  --surface-sunken: color-mix(in srgb, var(--navy) 96%, black);
  --text: var(--offwhite);
  --text-muted: color-mix(in srgb, var(--gray) 55%, var(--offwhite));
  --line: color-mix(in srgb, var(--offwhite) 20%, transparent);
  --accent: var(--yellow);
  --on-accent: var(--navy);
  --deco: color-mix(in srgb, var(--gray) 55%, transparent);
  --link: var(--yellow);
  --focus: var(--yellow);
  --ink-block: color-mix(in srgb, var(--navy) 88%, black);
}

/* ---------- 基礎 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  /* 錨點跳轉時不被固定頁首擋住 */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Google Sans Flex", "LINE Seed TW", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-variation-settings: "wght" 400, "wdth" 100;
  font-size: clamp(16px, 0.55vw + 14px, 18px);
  line-height: 1.85;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img,
video {
  max-width: 100%;
  display: block;
}
figure {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- 品牌方圓形（squircle）—— 全站的招牌形狀 ---------- */
.sq {
  clip-path: url(#mh-squircle);
}
/* 外框版：外層填邊框色、內層填表面色 */
.sq-frame {
  clip-path: url(#mh-squircle);
  padding: 2px;
}

/* ---------- 排版角色 ---------- */
.display {
  font-family: "Google Sans Flex", sans-serif;
  font-variation-settings: "wght" 900, "wdth" 62;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.zh-display {
  font-family: "LINE Seed TW", "PingFang TC", "Noto Sans TC", sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}
.eyebrow {
  font-family: "Google Sans Flex", sans-serif;
  font-variation-settings: "wght" 700, "wdth" 100;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 0;
  color: var(--text-muted);
}
.lede {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem);
  line-height: 1.75;
  max-width: 34em;
  margin: 0;
}
p {
  margin: 0;
  max-width: 40em;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* 直排中文——海報右側的直式欄位 */
.vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.12em;
  font-family: "LINE Seed TW", "PingFang TC", "Noto Sans TC", sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 版面 ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}
.block {
  padding-block: var(--rhythm);
  position: relative;
}
.block--ink {
  background: var(--ink-block, var(--navy));
  color: var(--offwhite);
  --text: var(--offwhite);
  --text-muted: color-mix(in srgb, var(--gray) 55%, var(--offwhite));
  --line: color-mix(in srgb, var(--offwhite) 22%, transparent);
  --surface: color-mix(in srgb, var(--navy) 88%, white);
  --surface-sunken: color-mix(in srgb, var(--navy) 76%, black);
  --accent: var(--yellow);
  --on-accent: var(--navy);
  --deco: color-mix(in srgb, var(--gray) 60%, transparent);
  --link: var(--yellow);
}
.block--horn {
  background: var(--orange);
  color: var(--offwhite);
  --text: var(--offwhite);
  --text-muted: color-mix(in srgb, var(--offwhite) 78%, var(--orange));
  --line: color-mix(in srgb, var(--offwhite) 40%, transparent);
  --surface: color-mix(in srgb, var(--orange) 86%, black);
  --surface-sunken: color-mix(in srgb, var(--orange) 62%, black);
  --accent: var(--yellow);
  --on-accent: var(--navy);
  --deco: color-mix(in srgb, var(--yellow) 40%, transparent);
  --link: var(--yellow);
}

.stack {
  display: flex;
  flex-direction: column;
}
.stack-4 { gap: 4px; }
.stack-8 { gap: 8px; }
.stack-12 { gap: 12px; }
.stack-16 { gap: 16px; }
.stack-24 { gap: 24px; }
.stack-32 { gap: 32px; }
.stack-48 { gap: clamp(32px, 4vw, 56px); }

/* ---------- 頁首 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.brandlink {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-variation-settings: "wght" 800, "wdth" 82;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.02rem;
}
.brandlink img {
  width: 34px;
  height: 34px;
}
.brandlink .zh {
  font-family: "LINE Seed TW", "PingFang TC", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: none;
}
.topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  flex-wrap: wrap;
}
.topnav a {
  text-decoration: none;
  font-family: "LINE Seed TW", "PingFang TC", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--orange);
}

/* ---------- 按鈕：品牌方圓形 ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  clip-path: url(#mh-squircle);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  padding: 18px 34px;
  font-family: "LINE Seed TW", "PingFang TC", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.32s var(--ease-spring), background-color 0.2s;
}
.btn:hover {
  transform: scale(1.04, 0.95);
}
.btn:active {
  transform: scale(0.97, 1.02);
}
.btn--horn {
  --btn-bg: var(--orange);
  --btn-fg: #ffffff;
}
.btn--ghost {
  --btn-bg: color-mix(in srgb, var(--gray) 18%, transparent);
  --btn-fg: var(--text);
}
.btn--flat {
  cursor: default;
  --btn-bg: color-mix(in srgb, var(--gray) 20%, transparent);
  --btn-fg: var(--text);
}
.btn--flat:hover {
  transform: none;
}

/* ---------- 主視覺 ---------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) var(--rhythm);
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.hero__mark {
  width: clamp(150px, 22vw, 260px);
  aspect-ratio: 1;
  background: var(--orange);
  display: grid;
  place-items: center;
  flex: none;
}
.hero__mark img {
  width: 100%;
  height: 100%;
}
.hero__title {
  font-size: clamp(3.2rem, 12vw, 9.6rem);
}
.hero__zh {
  font-size: clamp(1.5rem, 4.4vw, 3rem);
  color: var(--text);
}
.hero__rail {
  display: flex;
  gap: clamp(8px, 1.4vw, 18px);
  height: clamp(320px, 46vw, 620px);
  align-items: flex-start;
}
.hero__rail span {
  font-size: clamp(0.86rem, 1.5vw, 1.15rem);
}
.rail-orange { color: var(--orange); }
.rail-gray { color: var(--text-muted); }
.rail-navy { color: var(--text); }

.hero__claim {
  font-size: clamp(1.6rem, 4.6vw, 3.4rem);
  color: var(--text);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  clip-path: url(#mh-squircle);
  background: var(--yellow);
  color: var(--navy);
  padding: 14px 24px;
  font-family: "LINE Seed TW", "PingFang TC", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
}
.status-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

/* ---------- 跑馬燈 ---------- */
.ticker {
  background: var(--navy);
  color: var(--yellow);
  overflow: hidden;
  border-block: 0;
  padding-block: 14px;
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker 34s linear infinite;
}
.ticker__track span {
  font-variation-settings: "wght" 800, "wdth" 70;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.02em;
  padding-inline: 26px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.ticker__track span::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--orange);
  clip-path: url(#mh-squircle);
  display: inline-block;
}
@keyframes ticker {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------- 章節標頭 ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head h2 {
  font-size: clamp(2rem, 5.4vw, 4.2rem);
}
.sec-head .zh-sub {
  font-family: "LINE Seed TW", "PingFang TC", sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  color: var(--text);
  margin: 0;
  /* 權限常數這種長字串在窄螢幕要能斷行 */
  overflow-wrap: anywhere;
}

/* ---------- 功能卡：海報上的 A–E 徽章 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.feature {
  background: var(--surface);
  border-radius: 30px;
  corner-shape: squircle;
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s var(--ease-spring);
}
.feature:hover {
  transform: translateY(-6px);
}
.feature__badge {
  width: 76px;
  height: 62px;
  flex: none;
  clip-path: url(#mh-squircle);
  background: var(--navy);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-variation-settings: "wght" 900, "wdth" 90;
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.5s var(--ease-spring), background-color 0.3s;
}
.feature:hover .feature__badge {
  transform: rotate(-8deg) scale(1.06);
  background: var(--orange);
  color: #ffffff;
}
.feature h3 {
  font-family: "LINE Seed TW", "PingFang TC", sans-serif;
  font-weight: 800;
  font-size: 1.32rem;
  line-height: 1.4;
  margin: 0;
}
.feature p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.85;
  margin: 0;
}

/* ---------- 畫面截圖 ---------- */
.shots {
  display: grid;
  align-items: start;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 264px);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shot {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shot img {
  width: 100%;
  height: auto;
  /* 明確寫死比例：圖片在 flex 容器裡被拉伸時，光靠屬性推出的比例會失效 */
  aspect-ratio: 1080 / 1920;
  object-fit: cover;
  border-radius: 30px;
  corner-shape: squircle;
  background: var(--surface);
}
.shot figcaption {
  font-family: "LINE Seed TW", "PingFang TC", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.shot figcaption b {
  color: var(--text);
  display: block;
  font-size: 1rem;
}

/* ---------- 資料列 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2px;
  background: var(--line);
  border-radius: 30px;
  corner-shape: squircle;
}
.fact {
  background: var(--surface);
  padding: 28px clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fact dt {
  font-family: "Google Sans Flex", sans-serif;
  font-variation-settings: "wght" 700, "wdth" 100;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.fact dd {
  margin: 0;
  font-family: "LINE Seed TW", "PingFang TC", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.5;
}
.fact dd a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- 內文頁（隱私權政策） ---------- */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
}
@media (min-width: 960px) {
  .doc {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }
  .doc__nav {
    position: sticky;
    top: 96px;
  }
}
.doc__nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: sect;
}
.doc__nav a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  text-decoration: none;
  font-family: "LINE Seed TW", "PingFang TC", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 8px 12px;
  clip-path: url(#mh-squircle);
  transition: background-color 0.2s, color 0.2s;
}
.doc__nav a::before {
  counter-increment: sect;
  content: counter(sect, upper-alpha);
  font-family: "Google Sans Flex", sans-serif;
  font-variation-settings: "wght" 800, "wdth" 100;
  font-size: 0.72rem;
  color: var(--link);
  flex: none;
}
.doc__nav a:hover,
.doc__nav a.is-active {
  background: color-mix(in srgb, var(--gray) 16%, transparent);
  color: var(--text);
}

.prose h2 {
  font-family: "LINE Seed TW", "PingFang TC", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.prose h2::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: var(--orange);
  clip-path: url(#mh-squircle);
}
.prose section {
  padding-block: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}
.prose section:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.prose p,
.prose li {
  max-width: 40em;
}
.prose ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prose ul li {
  padding-left: 26px;
  position: relative;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  background: var(--gray);
  clip-path: url(#mh-squircle);
}
.prose b {
  font-weight: 700;
  color: var(--text);
}
.prose a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.callout {
  background: var(--yellow);
  color: var(--navy);
  border-radius: 30px;
  corner-shape: squircle;
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.callout p {
  color: var(--navy);
  max-width: 44em;
}
.callout .eyebrow {
  color: color-mix(in srgb, var(--navy) 70%, var(--yellow));
}

/* ---------- 審核影片 ---------- */
/* 兩支影片各自一段，用海報上的字母徽章當索引 */
.review-item {
  padding-top: clamp(36px, 4.5vw, 64px);
  margin-top: clamp(36px, 4.5vw, 64px);
  border-top: 1px solid var(--line);
}
.review-item:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}
.review-item__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.perm {
  font-family: "Google Sans Flex", sans-serif;
  font-variation-settings: "wght" 800, "wdth" 88;
  font-size: clamp(1rem, 2.1vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0.005em;
  margin: 0;
  overflow-wrap: anywhere;
}
.review-item__meta {
  font-family: "Google Sans Flex", sans-serif;
  font-variation-settings: "wght" 500, "wdth" 100;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

/* 影片區段之間的跳轉膠囊 */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.chip {
  clip-path: url(#mh-squircle);
  background: color-mix(in srgb, var(--offwhite) 16%, transparent);
  color: var(--text);
  text-decoration: none;
  padding: 10px 20px;
  font-family: "Google Sans Flex", sans-serif;
  font-variation-settings: "wght" 700, "wdth" 92;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: transform 0.32s var(--ease-spring), background-color 0.2s, color 0.2s;
}
.chip:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: scale(1.05, 0.94);
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: color-mix(in srgb, var(--gray) 22%, transparent);
  padding: 2px 7px;
  border-radius: 6px;
  corner-shape: squircle;
}

.review {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 900px) {
  .review {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    align-items: start;
  }
  /* 方形影片需要比直式影片寬得多的欄位才看得清楚 */
  .review--square {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}
.review__player {
  background: var(--navy);
  border-radius: 30px;
  corner-shape: squircle;
  padding: 14px;
}
.review--square .review__player video {
  aspect-ratio: 1 / 1;
}
.review__player video {
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 2760;
  border-radius: 30px;
  corner-shape: squircle;
  background: #000;
}
.timeline {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.timeline caption {
  text-align: left;
  padding-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.timeline th,
.timeline td {
  text-align: left;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.timeline th {
  font-family: "Google Sans Flex", sans-serif;
  font-variation-settings: "wght" 700, "wdth" 100;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
  color: var(--text-muted);
}
.timeline td:first-child {
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wght" 700, "wdth" 100;
  white-space: nowrap;
  color: var(--link);
  width: 1%;
}
.evidence {
  background: var(--surface-sunken);
  border-radius: 30px;
  corner-shape: squircle;
  padding: clamp(22px, 2.6vw, 32px);
  overflow-x: auto;
}
.evidence pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  white-space: pre;
}
.evidence b {
  color: var(--link);
}

/* ---------- 頁尾 ---------- */
.footer {
  background: var(--navy);
  color: var(--offwhite);
  padding-block: clamp(48px, 6vw, 80px);
  --text: var(--offwhite);
  --text-muted: color-mix(in srgb, var(--gray) 60%, var(--offwhite));
  --line: color-mix(in srgb, var(--offwhite) 18%, transparent);
  --link: var(--yellow);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 72px);
  justify-content: space-between;
  align-items: flex-start;
}
.footer a {
  color: var(--offwhite);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--offwhite) 40%, transparent);
}
.footer a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}
.footer__legal {
  color: color-mix(in srgb, var(--gray) 60%, var(--offwhite));
  font-size: 0.85rem;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: none;
}

/* ---------- 背景圖樣：漂浮／旋轉的方圓形 ---------- */
.pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: clip;
  z-index: 0;
}
.pattern svg {
  position: absolute;
  will-change: transform;
}
.block > .shell,
.hero > .shell {
  position: relative;
  z-index: 1;
}

/* ---------- 進場動畫 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 0.6s ease, transform 0.75s var(--ease-spring);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes drop-in {
  0% { transform: translateY(-40px) scale(0.8); opacity: 0; }
  60% { transform: translateY(6px) scale(1.04); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.hero__mark {
  animation: drop-in 0.9s var(--ease-spring) both;
}
@keyframes rail-in {
  from { transform: translateY(-24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.hero__rail span {
  animation: rail-in 0.8s var(--ease-spring) both;
}
.hero__rail span:nth-child(1) { animation-delay: 0.15s; }
.hero__rail span:nth-child(2) { animation-delay: 0.25s; }
.hero__rail span:nth-child(3) { animation-delay: 0.35s; }

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

/* ---------- 小螢幕 ---------- */
@media (max-width: 720px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* 直排中文在窄螢幕會擠掉整個主視覺，改成只在寬螢幕出現 */
  .hero__rail {
    display: none;
  }
}
