/* ============================================================
   NIGHT DOCUMENTARY × PUBLIC DOSSIER — 夜間紀實 × 公開檔案
   為旺旺發聲・全球動物保護聯署 Demo
   ------------------------------------------------------------
   單一權威樣式來源。設計決策見 DESIGN_NOTES.md。
   本版為「編輯系統收斂」：
   ・明暗交替：夜黑（品牌主體）×骨白（檔案紙）×淺灰（制度）
   ・字體角色：大型襯線只在 Hero 主標與紀念標題；引用襯線；
     其餘標題與資料一律無襯線
   ・三層內容寬度：外框 1200 / 一般 980 / 長文 700
   ・間距刻度：8 / 12 / 16 / 24 / 32 / 48 / 72 / 96
     （<16px 的光學微距不受刻度約束）
   ・邊框一律 1px；圓角 ≤8px（唯一例外：回頂圓形浮標，
     Founder 指定的蔡阿嘎式 TOP 浮標——閒置半透明、按下全黑）；
     赭黃只做 CTA 與 focus
   ・暗紅＝事件記號與警示（主標傷口字、紀念眉標、時間線節點、
     pending/未開放空心框、法務左線）——新增紅色前先讀這行
   ・襯線許可清單：Hero 主標、紀念標題、引用（blockquote／
     share-quote／light-thanks）、圖版題（visual-plate＝證詞聲部）、
     天使圖故事主標（angel-story）＋品牌字標例外
     （brand-mark/brand strong/footer strong）
   ・暖金延伸（MD 指定）：祈福光點（唯一 radial halo）、點燈鈕、
     天使圖行動短句、敏感遮罩查看鈕＝黑金警示；其餘照舊只做
     CTA 與 focus
   ------------------------------------------------------------
   結構：
     01 代幣            02 表面系統（.s-bone / .s-ash）
     03 各語言字體      04 重置與基礎
     05 共用元件        06 產品 chrome（通知列/頁首/導覽/回頂）
     07 Hero（天使圖）  08 紀念帶＋08b 守夜儀式（點燈/音景）
     09 事實帶（骨白）  10 表態面板（深夜）
     11 區塊標頭+摘要   12 時間線（骨白長文欄）
     13 訴求（淺灰）＋13b 敏感遮罩（黑金）
     14 募款（夜黑）
     15 全球行動（骨白）16 身分保護（骨白）
     17 分享（淺灰・頁末傳播板）18 資料來源（骨白長文欄）
     19 頁尾            20 手機表態列
     21 對話框與提示    22 響應式
     23 各語言微調      24 動態偏好
   ============================================================ */

/* ── 01 代幣 ─────────────────────────────────────────────── */

:root {
  /* 間距刻度（8px 系統） */
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 72px;
  --s8: 96px;

  /* 內容寬度三層 */
  --w-frame: 1360px;
  --w-standard: 1120px;
  --w-read: 780px;
  --gutter: 40px;

  /* 夜面（預設 surface） */
  --night: #0f0d0b;
  --night-deep: #0b0908;
  --night-soft: #171310;
  --night-lift: #1a1613;
  --bg: var(--night);
  --bg-soft: var(--night-soft);
  --bg-lift: var(--night-lift);
  --ink: #f1ece1;
  --ink-soft: #cfc6b8;
  --ink-mute: #a69d90;
  --line: #2c2822;
  --line-strong: #453f36;

  /* 記號色：暗紅＝事件記憶，赭黃＝可操作 CTA */
  --red: #8e2a31;
  --red-text: #ce6d73;
  --amber: #d9a441;
  --amber-soft: #e5b95f;
  --amber-press: #c8973a;
  --amber-ink: #1d1508;
  --focus: var(--amber);

  /* 字體：襯線＝證詞（只在兩處大型使用），無襯線＝紀錄 */
  --serif:
    "Noto Serif TC", "Noto Serif SC", "Yu Mincho", "PMingLiU",
    Georgia, "Times New Roman", serif;
  --sans:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    "Yu Gothic UI", "Malgun Gothic", "Leelawadee UI",
    system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 字距：襯線標題 / 無襯線標題 / 內文 */
  --track-h: 0.03em;
  --track-sans: 0.025em;
  --track-body: 0.02em;
  --lh-body: 1.85;
}

/* ── 02 表面系統 ─────────────────────────────────────────── */

/* 骨白：檔案紙、調查文件。不是溫馨，是紀錄。 */
.s-bone {
  --bg: #ede8dc;
  --bg-soft: #e3ddcd;
  --bg-lift: #dbd4c2;
  --ink: #241f1a;
  --ink-soft: #4a443c;
  --ink-mute: #5e5648;
  --line: #d2cbbc;
  --line-strong: #b3ab99;
  --red-text: #8e2a31;
  --focus: #241f1a;
  background: var(--bg);
  color: var(--ink);
}

/* 淺灰：制度層。壓低一整格，讓「另一種材質」可辨。 */
.s-ash {
  --bg: #d3ccb9;
  --bg-soft: #c9c1ac;
  --bg-lift: #c0b8a2;
  --ink: #241f1a;
  --ink-soft: #443e35;
  --ink-mute: #5a5244;
  --line: #b7ae99;
  --line-strong: #978e78;
  --red-text: #8e2a31;
  --focus: #241f1a;
  background: var(--bg);
  color: var(--ink);
}

/* ── 03 各語言字體系統 ───────────────────────────────────── */

html[data-language="zh-Hans"] {
  --serif: "Noto Serif SC", "Noto Serif TC", "SimSun", Georgia, serif;
  --sans:
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    system-ui, sans-serif;
}

html[data-language="ja"] {
  --serif: "Noto Serif JP", "Yu Mincho", "MS PMincho", Georgia, serif;
  --sans:
    "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --track-h: 0.04em;
  --track-sans: 0.035em;
  --track-body: 0.02em;
  --lh-body: 1.9;
}

html[data-language="ko"] {
  --serif: "Noto Serif KR", "Batang", Georgia, serif;
  --sans: "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --track-h: 0.01em;
  --track-sans: 0.005em;
  --track-body: 0em;
  --lh-body: 1.85;
}

html[data-language="th"] {
  --serif: "Noto Serif Thai", "Noto Serif", "Angsana New", Georgia, serif;
  --sans: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  --track-h: 0em;
  --track-sans: 0em;
  --track-body: 0em;
  --lh-body: 1.95;
}

html[data-language="en"],
html[data-language="es"],
html[data-language="vi"] {
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --track-h: -0.015em;
  --track-sans: -0.01em;
  --track-body: 0em;
  --lh-body: 1.7;
}

html[data-language="vi"] {
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

html[data-language="ko"] body {
  word-break: keep-all;
}

/* CJK 標點擠壓：標題全形標點不留破洞（漸進增強） */
html[data-language="zh-Hant"] h1,
html[data-language="zh-Hant"] h2,
html[data-language="zh-Hant"] h3,
html[data-language="zh-Hant"] .visual-plate strong,
html[data-language="zh-Hant"] .angel-story,
html[data-language="zh-Hans"] h1,
html[data-language="zh-Hans"] h2,
html[data-language="zh-Hans"] h3,
html[data-language="zh-Hans"] .visual-plate strong,
html[data-language="zh-Hans"] .angel-story,
html[data-language="ja"] h1,
html[data-language="ja"] h2,
html[data-language="ja"] h3,
html[data-language="ja"] .visual-plate strong,
html[data-language="ja"] .angel-story {
  font-feature-settings: "halt" 1;
  text-spacing-trim: space-all;
}

/* ── 04 重置與基礎 ───────────────────────────────────────── */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgb(104 61 31 / 18%), transparent min(44vw, 620px)),
    radial-gradient(circle at 8% 68%, rgb(94 40 35 / 8%), transparent min(42vw, 560px)),
    linear-gradient(180deg, rgb(24 18 14 / 28%), transparent 34rem),
    var(--bg);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 16.5px;
  letter-spacing: var(--track-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 字體角色：標題預設無襯線；大型襯線只給 Hero 主標與紀念標題 */
h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: var(--track-sans);
  text-wrap: pretty;
}

.hero h1,
.memorial-copy h2,
.visual-plate strong,
.demands-lead blockquote {
  font-family: var(--serif);
  letter-spacing: var(--track-h);
}

html[data-language="en"] h1,
html[data-language="en"] h2,
html[data-language="en"] h3,
html[data-language="es"] h1,
html[data-language="es"] h2,
html[data-language="es"] h3,
html[data-language="ko"] h1,
html[data-language="ko"] h2,
html[data-language="ko"] h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
}

button,
a,
input {
  font: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  border-radius: 2px;
  color: var(--amber-ink);
  background: var(--amber);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ── 05 共用元件 ─────────────────────────────────────────── */

/* 眉標：短刻線＋寬字距小字。全頁唯一的「章節路標」語法。 */
.eyebrow,
.memorial-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--s3);
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow::before,
.memorial-kicker::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
  flex: 0 0 auto;
}

.eyebrow.light {
  color: var(--ink-mute);
}

/* 記憶標記：紀念眉標 */
.memorial-kicker {
  color: var(--red-text);
}

/* 主要 CTA：全頁唯一的赭黃（桌面 64 / 手機 56） */
.primary-link,
.petition-button,
.dialog-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 64px;
  padding: 0 var(--s4);
  border: 1px solid var(--amber-press);
  border-radius: 4px;
  color: var(--amber-ink);
  background: var(--amber);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  transition: background-color 150ms ease, transform 150ms ease;
}

.primary-link:hover,
.petition-button:hover,
.dialog-primary:hover {
  background: var(--amber-soft);
  transform: translateY(-1px);
}

.primary-link:active,
.petition-button:active,
.dialog-primary:active {
  background: var(--amber-press);
  transform: translateY(1px);
}

/* 箭頭統一：CTA 15px、清單 13px；CTA 箭頭是按鈕唯一動件 */
.primary-link > span[aria-hidden],
.petition-button > span[aria-hidden],
.dialog-primary > span[aria-hidden] {
  font-size: 15px;
  transition: transform 150ms ease;
}

.primary-link:hover > span[aria-hidden],
.primary-link:active > span[aria-hidden],
.petition-button:hover > span[aria-hidden],
.petition-button:active > span[aria-hidden],
.dialog-primary:hover > span[aria-hidden],
.dialog-primary:active > span[aria-hidden] {
  transform: translateX(4px);
}

/* 訴求 chips：hero 與 dialog 共用 */
.hero-tags span,
.dialog-demands span {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 7px var(--s2);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.hero-tags span::before,
.dialog-demands span::before {
  width: 4px;
  height: 4px;
  background: var(--ink-mute);
  content: "";
  flex: 0 0 auto;
}

/* 全站數字同一套鉛字腔體（無襯線資料聲） */
.fact-rail strong,
.petition-count strong,
.timeline-list time,
.mobile-action strong,
.number,
.demand-list li > span,
.fundraising-gates article > span,
.source-list a > span {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
}

/* ── 06 產品 chrome ──────────────────────────────────────── */

.prototype-notice {
  padding: 7px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-mute);
  background: var(--night-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(15 13 11 / 97%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - var(--gutter) * 2), var(--w-frame));
  min-height: 64px;
  margin: auto;
  gap: var(--s4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  line-height: 1.2;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  place-items: center;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand small {
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.desktop-nav a {
  padding: 4px 0;
  transition: color 140ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.language-menu {
  position: relative;
  flex: 0 0 auto;
}

.language-menu summary {
  display: inline-flex;
  min-width: 104px;
  height: 40px;
  padding: 0 var(--s2);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
  transition: border-color 140ms ease;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary:hover,
.language-menu[open] summary {
  border-color: var(--ink-mute);
}

.language-glyph {
  display: grid;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 1px;
  place-items: center;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 700;
}

.language-chevron {
  color: var(--ink-mute);
  font-size: 12px;
  transform: translateY(-2px);
}

.language-options {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  overflow: hidden;
  width: 178px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--night-lift);
  box-shadow: 0 18px 44px rgb(0 0 0 / 45%);
}

.language-options button {
  min-height: 38px;
  padding: 0 var(--s2);
  border: 0;
  border-left: 1px solid transparent;
  border-radius: 1px;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  transition: background-color 120ms ease, color 120ms ease;
}

.language-options button:hover,
.language-options button:focus-visible {
  color: var(--ink);
  background: #241f1a;
}

.language-options button.active {
  border-left-color: var(--ink);
  color: var(--ink);
  background: #241f1a;
  font-weight: 700;
}

/* 手機黏性章節導覽（桌面隱藏；重用既有 nav i18n 鍵） */
.section-nav {
  display: none;
}

/* 回頂圓形浮標（Founder 指定：閒置半透明、hover/按下全黑實心；
   圓形為 radius ≤8 規則的唯一例外，見檔頭） */
.back-top {
  position: fixed;
  z-index: 55;
  right: var(--s3);
  bottom: var(--s4);
  display: grid;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  place-content: center;
  justify-items: center;
  row-gap: 3px;
  color: var(--ink);
  background: rgb(15 13 11 / 72%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease,
    background-color 140ms ease, border-color 140ms ease,
    visibility 0s linear 180ms;
}

.back-top-arrow {
  font-size: 14px;
  line-height: 1;
}

.back-top-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}

.back-top.show {
  opacity: 0.8;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.back-top.show:hover,
.back-top.show:active,
.back-top.show:focus-visible {
  border-color: var(--night);
  background: var(--night);
  opacity: 1;
}

/* 深淺底皆可辨的雙層焦點環（浮標可能落在骨白段落上） */
.back-top:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgb(15 13 11 / 85%);
}

/* ── 07 Hero：深夜開場（桌面 600–680 / 手機 ~880） ───────── */

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  width: min(calc(100% - var(--gutter) * 2), var(--w-frame));
  margin: auto;
  padding: var(--s5) 0 var(--s5);
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  column-gap: clamp(48px, 5vw, 72px);
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding-top: var(--s1);
}

.hero h1 {
  max-width: 15em;
  margin: 0;
  font-size: clamp(38px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.3;
}

/* 記憶標記：主標裡的傷口用暗紅「字」承載 */
.hero h1 span {
  color: var(--red-text);
}

.hero-deck {
  max-width: 34em;
  margin: var(--s4) 0 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: var(--lh-body);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  margin: var(--s4) 0 0;
  gap: var(--s1);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.primary-link {
  width: min(100%, 320px);
  margin-top: var(--s5);
}

/* 法務補充：移到圖版之後（首屏之外），桌面回到左欄第二行 */
.hero-note {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  max-width: 30em;
  margin: var(--s4) 0 0;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.8;
}

/* Hero 圖版：相框＋圖版題＋圖說列 */
.hero-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  margin: 0;
}

/* 旺旺天使圖版（MD 指定主視覺）＋左側多語疊字層 */
.angel-frame {
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--bg);
  isolation: isolate;
}

/* 紀念照片保留檔案裝裱；Hero 則讓圖像邊緣消融進夜色。 */
.photo-frame::after {
  position: absolute;
  z-index: 1;
  inset: 10px;
  border: 1px solid rgb(241 236 225 / 12%);
  content: "";
  pointer-events: none;
}

.angel-frame::after {
  position: absolute;
  z-index: 1;
  inset: -1px;
  background: linear-gradient(to bottom, transparent 72%, var(--bg) 100%);
  box-shadow: inset 0 0 34px 10px var(--bg);
  content: "";
  pointer-events: none;
}

.angel-frame > img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92) contrast(1.02);
  -webkit-mask-image: radial-gradient(ellipse 99% 96% at 50% 48%, #000 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 99% 96% at 50% 48%, #000 78%, transparent 100%);
}

/* 疊字層：小紀念眉標＋故事主標＋行動短句（文字不燒進圖片） */
.angel-overlay {
  position: absolute;
  z-index: 2;
  top: 12%;
  bottom: auto;
  left: 5%;
  display: grid;
  width: min(36%, 270px);
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 2px 12px rgb(255 248 229 / 78%));
  gap: 8px;
}

.angel-kicker {
  color: #8f1e22;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.angel-story {
  margin: 0;
  color: #251912;
  font-family: var(--serif);
  font-size: clamp(16px, 1.55vw, 23px);
  font-weight: 600;
  line-height: 1.55;
}

.angel-action {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  border-bottom: 1px solid #7f1d20;
  align-items: center;
  gap: 8px;
  color: #6f1a1d;
  font-size: 13px;
  font-weight: 700;
}

.angel-action::after {
  content: "→";
  font-size: 12px;
}

.angel-action:hover {
  color: #391012;
  border-color: #391012;
}

.visual-plate {
  display: grid;
  margin-top: var(--s2);
  gap: 6px;
}

.visual-plate span {
  color: var(--ink-mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.visual-plate strong {
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
}

.hero-visual figcaption {
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.75;
}

/* 圖說兩聲部各自成行（狀態行＋來源行） */
.hero-visual figcaption > span {
  display: block;
}

.image-status {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.image-status::before {
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
  flex: 0 0 auto;
}

/* 案件標籤：hero 底欄的低調檔案行 */
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: var(--s2);
  padding-top: var(--s1);
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

/* ── 08 紀念帶：深夜（大型襯線的第二處，也是最後一處） ───── */

.memorial-band {
  border-bottom: 1px solid var(--line);
  background: var(--night-soft);
}

.memorial-inner {
  display: grid;
  width: min(calc(100% - var(--gutter) * 2), var(--w-standard));
  margin: auto;
  padding: var(--s7) 0;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(48px, 6vw, 72px);
}

.memorial-photo {
  margin: 0;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a0908;
}

.memorial-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.86) contrast(1.03);
}

.memorial-photo figcaption {
  margin-top: var(--s2);
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.memorial-copy h2 {
  max-width: 17em;
  margin: 0;
  font-size: clamp(27px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.48;
}

.memorial-copy > p:not(.memorial-kicker) {
  max-width: 35em;
  margin: var(--s4) 0 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.9;
}

.memorial-copy small {
  display: block;
  max-width: 35em;
  margin-top: var(--s3);
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.8;
}

/* ── 08b 守夜儀式：點一盞燈＋陪伴音景 ─────────────────────
   祈福光點是全站唯一允許 radial halo 的地方（MD 指定）。 */

.memorial-ritual {
  display: grid;
  width: min(calc(100% - var(--gutter) * 2), var(--w-standard));
  margin: auto;
  padding: var(--s5) 0 var(--s7);
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

.light-module {
  display: grid;
  padding: 8px 0 28px;
  justify-items: center;
  gap: 14px;
}

.light-button {
  display: grid;
  width: min(100%, 280px);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--amber-soft);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.light-button:hover,
.light-button:active {
  color: var(--amber);
  transform: translateY(-1px);
}

.light-button:active {
  transform: translateY(1px);
}

.light-button.lit {
  color: var(--amber-soft);
  cursor: pointer;
}

.lamp-visual {
  position: relative;
  display: block;
  width: clamp(176px, 21vw, 220px);
  aspect-ratio: 1;
  isolation: isolate;
}

.lamp-halo {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 50%;
  opacity: 0.14;
  background: radial-gradient(circle, rgb(240 193 95 / 40%) 0%, rgb(217 164 65 / 12%) 40%, transparent 70%);
  transform: scale(0.76);
  transition: opacity 280ms ease, transform 320ms ease;
}

.lamp-flame {
  position: absolute;
  z-index: 2;
  top: 18%;
  left: 50%;
  width: 17%;
  height: 27%;
  border: 1px solid var(--amber-press);
  border-radius: 68% 20% 64% 46%;
  opacity: 0.18;
  background: var(--amber);
  transform: translateX(-50%) rotate(45deg) scale(0.72);
  transform-origin: 50% 82%;
  transition: opacity 220ms ease, transform 280ms ease;
}

.lamp-wick {
  position: absolute;
  z-index: 1;
  top: 44%;
  left: calc(50% - 1px);
  width: 2px;
  height: 13%;
  background: #776a57;
}

.lamp-cup {
  position: absolute;
  z-index: 2;
  top: 53%;
  left: 18%;
  width: 64%;
  height: 28%;
  border: 1px solid var(--amber-press);
  border-top-color: var(--amber);
  border-radius: 8px 8px 48% 48%;
  background: #1d1711;
  box-shadow: inset 0 6px 0 rgb(217 164 65 / 10%);
}

.lamp-base {
  position: absolute;
  top: 86%;
  left: 34%;
  width: 32%;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.lamp-visual.lit .lamp-halo {
  opacity: 1;
  transform: scale(1);
}

.lamp-visual.lit .lamp-flame {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg) scale(1);
  box-shadow: 0 0 14px 4px rgb(217 164 65 / 28%);
  animation: lamp-flicker 1.8s ease-in-out infinite;
}

.lamp-visual.lit .lamp-cup {
  box-shadow: inset 0 7px 0 rgb(240 193 95 / 24%), 0 4px 18px rgb(217 164 65 / 8%);
}

@keyframes lamp-light-up {
  0% { transform: scale(0.96); }
  55% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

@keyframes lamp-flicker {
  0%, 100% { transform: translateX(-50%) rotate(45deg) scale(1); }
  45% { transform: translateX(-50%) rotate(42deg) scale(0.94, 1.06); }
  70% { transform: translateX(-50%) rotate(47deg) scale(1.04, 0.97); }
}

.lamp-visual.breathe {
  animation: lamp-light-up 340ms ease-out;
}

.light-button-label {
  display: block;
  max-width: 18em;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-align: center;
}

.light-copy {
  min-width: 0;
  text-align: center;
}

.light-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.light-status strong {
  margin-right: 6px;
  color: var(--amber-soft);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

/* 陪伴語：引用聲部（襯線），不煽情倒數 */
.light-thanks {
  margin: 4px 0 0;
  color: var(--amber-soft);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.7;
}

.sound-module {
  display: flex;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.sound-head b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sound-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
}

.sound-toggle {
  display: inline-flex;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  transition: border-color 150ms ease, color 150ms ease;
}

.sound-toggle.playing {
  color: var(--amber);
}

.sound-toggle-glyph {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  place-items: center;
  font-size: 10px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.sound-toggle:hover .sound-toggle-glyph,
.sound-toggle.playing .sound-toggle-glyph {
  border-color: var(--amber-press);
  background: rgb(217 164 65 / 8%);
}

.sound-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-mute);
  font-size: 11.5px;
}

.sound-volume input {
  width: 88px;
  accent-color: var(--amber);
}

.sound-status {
  flex: 0 0 100%;
  color: var(--ink-mute);
  font-size: 11px;
  text-align: right;
}

/* ── 09 事實帶：第一張「檔案紙」 ─────────────────────────── */

/* 紙面直接切入深夜連署帶：不留亮色髮絲線 */
.fact-rail {
  border-bottom: 0;
}

.fact-rail-inner {
  display: grid;
  width: min(calc(100% - var(--gutter) * 2), var(--w-frame));
  margin: auto;
  grid-template-columns: repeat(3, 1fr);
}

.fact-rail article {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding: var(--s5) var(--s5) var(--s5) 0;
}

.fact-rail article + article {
  padding-left: var(--s5);
  border-left: 1px solid var(--line);
}

.fact-rail strong {
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.fact-rail b,
.fact-rail span {
  display: block;
}

.fact-rail b {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.6;
}

.fact-rail span {
  margin-top: 5px;
  color: var(--ink-mute);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* ── 10 表態面板：最深的夜，全頁儀式核心 ─────────────────── */

.petition-panel {
  border-bottom: 1px solid var(--line);
  background: var(--night-deep);
}

.petition-grid {
  display: grid;
  width: min(calc(100% - var(--gutter) * 2), var(--w-standard));
  margin: auto;
  padding: var(--s7) 0;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.petition-count strong,
.petition-count span,
.petition-count small {
  display: block;
}

.petition-count strong {
  position: relative;
  margin-top: var(--s1);
  padding-top: var(--s3);
  font-size: clamp(72px, 7.5vw, 104px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* 帳冊規線：大數字上方的短線 */
.petition-count strong::before {
  position: absolute;
  top: 0;
  left: 2px;
  width: 28px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.petition-count span {
  margin-top: var(--s3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.petition-count small {
  max-width: 24em;
  margin-top: var(--s2);
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.8;
}

.petition-action h2 {
  max-width: 18em;
  margin: 0;
  font-size: clamp(25px, 2.5vw, 33px);
  line-height: 1.5;
}

.petition-action > p {
  max-width: 36em;
  margin: var(--s4) 0 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: var(--lh-body);
}

.petition-button {
  width: min(100%, 400px);
  margin-top: var(--s5);
}

.petition-action .trust-line {
  margin: var(--s3) 0 0;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ── 11 區塊通用＋事件摘要（骨白） ───────────────────────── */

/* 區塊背景滿版、內容以 --w 收攏（預設 980 一般欄） */
.section {
  --w: var(--w-standard);
  width: 100%;
  padding: var(--s7) max(var(--gutter), calc((100% - var(--w)) / 2));
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-strong);
}

.section-heading.split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
}

/* 長文欄（780px，來自 --w-read）內的 split 標頭收成單欄 */
.timeline .section-heading.split,
.sources .section-heading.split {
  grid-template-columns: 1fr;
  align-items: start;
  gap: var(--s3);
}

.section-heading h2,
.share-copy h2,
.safety-card h2,
.fundraising-heading h2,
.demands-lead h2 {
  margin: 0;
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.45;
}

.section-heading > p:not(.eyebrow),
.section-heading.split > p,
.share-copy > p:not(.eyebrow) {
  max-width: 44em;
  margin: var(--s3) 0 0;
  color: var(--ink-mute);
  font-size: 15.5px;
  line-height: var(--lh-body);
}

/* 事件摘要：檔案紙上的三欄報導 */
.brief-grid {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.brief-grid article {
  display: flex;
  flex-direction: column;
  padding: var(--s5) var(--s5) var(--s1) 0;
}

.brief-grid article + article {
  padding-left: var(--s5);
  border-left: 1px solid var(--line);
}

.number {
  display: block;
  margin-bottom: var(--s3);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brief-grid h3 {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
}

.brief-grid p {
  margin: var(--s3) 0 var(--s4);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

/* 分級記號：定案＝實心中性點；未完結＝空心紅框 */
.status {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding: var(--s2) 0 0;
  border-top: 1px solid var(--line);
  align-items: center;
  gap: var(--s1);
  color: var(--ink-mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.status::before {
  width: 6px;
  height: 6px;
  content: "";
  flex: 0 0 auto;
}

.status.verified::before {
  background: var(--ink-mute);
}

.status.pending::before {
  border: 1px solid var(--red);
  background: transparent;
}

/* ── 12 時間線：骨白長文欄（登記簿） ─────────────────────── */

.timeline {
  --w: var(--w-read);
}

.timeline-list {
  position: relative;
  border-top: 1px solid var(--line);
}

/* 檔案軸：把紅色節點串成證物鏈 */
.timeline-list::before {
  position: absolute;
  top: 52px;
  bottom: 56px;
  left: 5.5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-list article {
  position: relative;
  display: grid;
  padding: var(--s5) 0 var(--s5) var(--s5);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 104px minmax(0, 1fr);
  gap: var(--s4);
}

.timeline-list article:last-child {
  border-bottom: 0;
}

/* 記憶標記：時間線節點（外圈切開軸線） */
.timeline-list article::before {
  position: absolute;
  top: 44px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--red);
  box-shadow: 0 0 0 5px var(--bg);
  content: "";
}

.timeline-list article.ongoing::before {
  border: 1px solid var(--red);
  background: var(--bg);
}

.timeline-list time {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.timeline-list article > div {
  max-width: 34em;
}

.timeline-list article > div > span {
  display: block;
  color: var(--ink-mute);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.timeline-list h3 {
  margin: var(--s1) 0 0;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
}

.timeline-list p {
  margin: var(--s2) 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

/* ── 13 四項訴求：淺灰制度層 ─────────────────────────────── */

.demands {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demands-inner {
  display: grid;
  width: min(calc(100% - var(--gutter) * 2), var(--w-standard));
  margin: auto;
  padding: var(--s7) 0;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 7vw, 96px);
}

.demands-lead {
  position: sticky;
  top: 118px;
  align-self: start;
}

/* 證詞引用：襯線保留（引用是允許的襯線位置） */
.demands-lead blockquote {
  max-width: 26em;
  margin: var(--s5) 0 0;
  padding: 4px 0 4px var(--s4);
  border-left: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.9;
}

.demands-lead blockquote::before {
  display: block;
  margin-bottom: var(--s1);
  color: var(--ink-mute);
  content: "\201C";
  font-size: 36px;
  font-weight: 700;
  line-height: 0.6;
}

.demand-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.demand-list li {
  display: grid;
  padding: var(--s4) 0 var(--s5);
  border-top: 1px solid var(--line);
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--s3);
}

.demand-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.demand-list li > span {
  padding-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.demand-list h3 {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.5;
}

.demand-list p {
  max-width: 34em;
  margin: var(--s2) 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

/* ── 13b 敏感影像：黑金安全遮罩（同意前零載入） ──────────── */

.sensitive {
  --w: var(--w-standard);

  border-bottom: 1px solid var(--line);
}

.sensitive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

.sensitive-gate h3 {
  margin: 0 0 var(--s2);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.gate-panel {
  display: grid;
  padding: var(--s4);
  border: 1px solid var(--line-strong);
  background: var(--night-soft);
  gap: var(--s3);
}

.gate-panel[hidden] {
  display: none;
}

.gate-mark {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid var(--amber-press);
  place-items: center;
  color: var(--amber);
  font-weight: 700;
}

.gate-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.gate-actions {
  display: grid;
  gap: var(--s2);
}

.gate-actions button {
  min-height: 52px;
  padding: 0 var(--s3);
  border: 1px solid var(--amber-press);
  border-radius: 4px;
  color: var(--amber);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 150ms ease;
}

.gate-actions button:hover,
.gate-actions button:active {
  background: rgb(217 164 65 / 8%);
}

.gate-actions a {
  display: inline-flex;
  min-height: 44px;
  border-bottom: 1px solid var(--line-strong);
  align-items: center;
  justify-self: start;
  color: var(--ink-soft);
  font-size: 13px;
}

.gate-actions a:hover {
  color: var(--ink);
}

.gate-media {
  display: grid;
  padding: var(--s2);
  border: 1px solid var(--line-strong);
  background: #0a0908;
  gap: var(--s2);
}

.gate-media[hidden] {
  display: none;
}

.gate-media img {
  display: block;
  width: 100%;
  height: auto;
}

.gate-caption {
  margin: 0;
  color: var(--ink-mute);
  font-size: 11.5px;
  line-height: 1.75;
}

.gate-media button {
  min-height: 44px;
  padding: 0 var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  justify-self: start;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.gate-media button:hover {
  border-color: var(--ink-mute);
}

/* 影片卡：不可展開（暗紅＝事件記號） */
.sensitive-novideo {
  display: grid;
  padding: var(--s4);
  border: 1px solid var(--line);
  grid-column: 1 / -1;
  gap: var(--s2);
}

.sensitive-novideo h3 {
  margin: 0;
  color: var(--red-text);
  font-size: 15px;
}

.sensitive-novideo p {
  margin: 0;
  max-width: 52em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* ── 14 募款計畫：回到夜黑 ───────────────────────────────── */

/* Founder 指示暫不公開：只顯示建置中一行（空心紅點＝未開放文法），
   完整內容在 .fundraising-detail[hidden] 內保存 */
.fundraising-placeholder {
  display: grid;
  gap: var(--s2);
}

.fundraising-placeholder h2 {
  display: flex;
  margin: 0;
  align-items: center;
  gap: var(--s2);
  color: var(--ink-soft);
  font-size: clamp(20px, 2vw, 26px);
}

.fundraising-placeholder h2::before {
  width: 9px;
  height: 9px;
  border: 1px solid var(--red-text);
  content: "";
  flex: 0 0 auto;
}

.fundraising-detail[hidden] {
  display: none;
}

.fundraising-heading {
  display: grid;
  margin-bottom: 0;
  padding-top: var(--s4);
  padding-bottom: var(--s5);
  border-top: 1px solid var(--line-strong);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--s5);
}

.fundraising-heading h2 {
  max-width: 20em;
}

.fundraising-status {
  display: grid;
  min-width: 200px;
  padding: var(--s3) var(--s3);
  border: 1px solid var(--line-strong);
  gap: 5px;
}

/* 記憶標記：募款尚未開放＝未完結，用空心紅框（同 .status.pending 文法） */
.fundraising-status span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 700;
}

.fundraising-status span::before {
  width: 7px;
  height: 7px;
  border: 1px solid var(--red-text);
  background: transparent;
  content: "";
  flex: 0 0 auto;
}

.fundraising-status small {
  color: var(--ink-mute);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.fundraising-intro {
  display: grid;
  padding: var(--s5) 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

.fundraising-intro p {
  max-width: 38em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: var(--lh-body);
}

.fundraising-intro strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}

.fundraising-gates {
  display: grid;
  margin-top: var(--s3);
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
}

.fundraising-gates article {
  display: grid;
  padding: var(--s5) var(--s5) var(--s5) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s3);
}

.fundraising-gates article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.fundraising-gates article:nth-child(even) {
  padding-left: var(--s5);
}

.fundraising-gates article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.fundraising-gates article > span {
  padding-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.fundraising-gates h3 {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
}

.fundraising-gates p {
  margin: var(--s2) 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.fundraising-budget {
  display: grid;
  margin-top: var(--s6);
  border: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.fundraising-budget-copy {
  padding: var(--s5) var(--s5);
  border-right: 1px solid var(--line);
}

.fundraising-budget-copy h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.5;
}

.fundraising-budget-copy > p:not(.eyebrow) {
  margin: var(--s3) 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.85;
}

.fundraising-budget-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fundraising-budget-list li {
  display: grid;
  min-height: 72px;
  padding: var(--s3) var(--s4);
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s2);
}

.fundraising-budget-list li + li {
  border-top: 1px solid var(--line);
}

.fundraising-budget-list span {
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fundraising-budget-list b {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.65;
}

/* 狀態章：誠信欄位要一眼可掃 */
.fundraising-budget-list em {
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-mute);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* 記憶標記：法務警示的左邊線 */
.fundraising-legal {
  display: flex;
  margin-top: var(--s5);
  padding: var(--s4) var(--s5);
  border-left: 2px solid var(--red);
  background: var(--night-soft);
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}

.fundraising-legal > div {
  display: grid;
  max-width: 780px;
}

.fundraising-legal > div > span {
  display: none;
}

.fundraising-legal h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
}

.fundraising-legal p {
  margin: var(--s1) 0 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.fundraising-legal > a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  white-space: nowrap;
  transition: text-decoration-color 140ms ease;
}

.fundraising-legal > a:hover {
  text-decoration-color: var(--ink);
}

/* ── 15 全球行動：檔案紙上的三份卷宗 ─────────────────────── */

.global-action-grid {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.global-action-grid a {
  position: relative;
  display: flex;
  min-height: 240px;
  padding: var(--s5) var(--s5) var(--s5) 0;
  flex-direction: column;
  transition: background-color 150ms ease;
}

.global-action-grid a + a {
  padding-left: var(--s5);
  border-left: 1px solid var(--line);
}

.global-action-grid a:hover,
.global-action-grid a:active {
  background: var(--bg-soft);
}

.action-locale {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 1px;
  color: var(--ink-mute);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.global-action-grid div {
  margin-top: auto;
  padding-top: var(--s4);
}

.global-action-grid small {
  display: block;
  color: var(--ink-mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.global-action-grid h3 {
  margin: var(--s1) 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
}

.global-action-grid a:hover h3,
.global-action-grid a:active h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.global-action-grid p {
  margin: var(--s2) 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.global-action-grid i {
  position: absolute;
  top: var(--s5);
  right: var(--s2);
  color: var(--ink-mute);
  font-size: 13px;
  font-style: normal;
  transition: transform 150ms ease, color 150ms ease;
}

.global-action-grid a:hover i {
  color: var(--ink);
  transform: translate(2px, -2px);
}

.global-note {
  max-width: 52em;
  margin: var(--s4) 0 0;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.8;
}

/* ── 16 身分保護：檔案紙上的原則卡 ───────────────────────── */

.safety-card {
  display: grid;
  padding: var(--s6) var(--s6);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

.safety-card h2 {
  max-width: 16em;
}

.safety-card p:not(.eyebrow) {
  max-width: 34em;
  margin: var(--s4) 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: var(--lh-body);
}

.safety-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-card li {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  padding: var(--s3) 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
}

.safety-card li + li {
  border-top: 1px solid var(--line);
}

.safety-card li::before {
  color: var(--ink-mute);
  content: "—";
  flex: 0 0 auto;
}

/* ── 17 分享：頁末傳播板（聯署成功後的下一步，也是頁面的收尾） ── */

.share-section {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.share-copy {
  padding-top: var(--s4);
  border-top: 1px solid var(--line-strong);
}

/* 系統分享：文字連結手感（底線），不與平台卡爭主次 */
.share-native {
  display: inline-flex;
  min-height: 44px;
  margin-top: var(--s3);
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  transition: color 140ms ease, border-color 140ms ease;
}

.share-native:hover,
.share-native:active {
  border-color: var(--ink-mute);
  color: var(--ink-soft);
}

.share-native span[aria-hidden] {
  font-size: 13px;
}

.share-board {
  padding-top: var(--s4);
}

/* 引言卡：實際分享出去的訴求原文（引用聲部＝襯線） */
.share-quote {
  position: relative;
  margin: 0 0 var(--s5);
  padding: 4px 0 4px 30px;
  border: 0;
  border-left: 2px solid var(--red-text);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.85;
}

.share-quote::before {
  position: absolute;
  top: 1px;
  left: 9px;
  color: var(--red-text);
  content: "“";
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
}

/* 分享操作：輕量圓形圖徽，避免七張長方卡片搶走文章焦點。 */
.share-actions {
  display: grid;
  grid-template-columns: repeat(7, minmax(58px, 1fr));
  align-items: start;
  gap: 22px 10px;
}

.share-actions button {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.share-actions button b {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.share-actions button[data-share="copy"] {
  grid-column: auto;
  min-height: 0;
}

.share-actions span {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  place-items: center;
  color: var(--bg);
  background: var(--ink);
  font-size: 12px;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.share-actions button:hover span,
.share-actions button:focus-visible span {
  background: var(--red-text);
  box-shadow: 0 6px 18px rgb(72 22 22 / 18%);
  transform: translateY(-2px);
}

/* ── 18 資料來源：骨白長文欄（索引卡） ───────────────────── */

.sources {
  --w: var(--w-read);
}

.source-list {
  border-top: 1px solid var(--line);
}

.source-list a {
  display: grid;
  padding: var(--s4) var(--s1) var(--s4) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 56px minmax(0, 1fr) 24px;
  align-items: center;
  gap: var(--s3);
  transition: background-color 150ms ease;
}

.source-list a:hover,
.source-list a:active {
  background: var(--bg-soft);
}

.source-list a > span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.source-list b,
.source-list small {
  display: block;
}

.source-list b {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.source-list a:hover b,
.source-list a:active b {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.source-list small {
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.7;
}

.source-list i {
  justify-self: end;
  color: var(--ink-mute);
  font-size: 13px;
  font-style: normal;
  transition: transform 150ms ease, color 150ms ease;
}

.source-list a:hover i {
  color: var(--ink);
  transform: translate(2px, -2px);
}

/* ── 19 頁尾：夜的收束 ───────────────────────────────────── */

footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--s6);
  padding: var(--s6) max(var(--gutter), calc((100vw - var(--w-frame)) / 2))
    var(--s6);
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  background: var(--night-soft);
}

footer strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: var(--track-h);
}

footer p {
  max-width: 46em;
  margin: var(--s2) 0 0;
  font-size: 12.5px;
  line-height: 1.8;
}

footer a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  white-space: nowrap;
  transition: text-decoration-color 140ms ease;
}

footer a:hover {
  text-decoration-color: var(--ink);
}

/* ── 20 手機表態列（桌面隱藏） ───────────────────────────── */

.mobile-action {
  display: none;
}

/* ── 21 對話框與提示 ─────────────────────────────────────── */

.petition-dialog {
  width: min(calc(100% - 32px), 620px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--night-lift);
  box-shadow: 0 30px 80px rgb(0 0 0 / 50%);
  overscroll-behavior: contain;
}

.petition-dialog::backdrop {
  background: rgb(10 9 8 / 82%);
}

.petition-dialog form {
  position: relative;
  padding: var(--s6) var(--s6) var(--s5);
}

.dialog-close {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-mute);
  background: transparent;
  font-size: 20px;
  line-height: 1;
  transition: color 140ms ease, border-color 140ms ease;
}

.dialog-close:hover {
  border-color: var(--ink-mute);
  color: var(--ink);
}

.dialog-step h2 {
  margin: 0;
  font-size: clamp(23px, 3.6vw, 28px);
  line-height: 1.5;
}

.dialog-step > p:not(.eyebrow) {
  margin: var(--s3) 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.85;
}

.dialog-demands {
  display: flex;
  flex-wrap: wrap;
  margin: var(--s4) 0 var(--s5);
  gap: var(--s1);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.dialog-primary {
  width: 100%;
  min-height: 56px;
}

.success-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: var(--s4);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  place-items: center;
  color: var(--ink);
  font-size: 24px;
}

/* 成功步驟的平台分享格：複製訴求整列置頂，平台 3 欄 */
.dialog-share {
  display: grid;
  margin-top: var(--s4);
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s1);
}

.dialog-share button {
  display: flex;
  min-height: 48px;
  padding: 0 var(--s2);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.dialog-share button:hover,
.dialog-share button:active {
  border-color: var(--ink-mute);
  background: var(--night-soft);
}

.dialog-share button[data-share="copy"] {
  grid-column: 1 / -1;
}

.dialog-share span {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  place-items: center;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.success-share {
  display: grid;
  margin-top: var(--s5);
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}

.success-share button {
  min-height: 56px;
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 140ms ease;
}

.success-share button:first-child {
  border-color: var(--amber-press);
  color: var(--amber-ink);
  background: var(--amber);
}

.success-share button:first-child:hover {
  background: var(--amber-soft);
}

.success-share button:last-child:hover {
  background: var(--night-soft);
}

.toast {
  position: fixed;
  z-index: 120;
  right: var(--s4);
  bottom: var(--s4);
  max-width: min(360px, calc(100% - 40px));
  padding: 13px var(--s3);
  border-radius: 4px;
  color: #16130f;
  background: #f1ece1;
  box-shadow: 0 12px 32px rgb(0 0 0 / 35%);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── 22 響應式 ───────────────────────────────────────────── */

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 20px;
    font-size: 12.5px;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 128px;
  }

  .desktop-nav {
    display: none;
  }

  /* 章節導覽：黏在 header 下方的水平捲動列 */
  .section-nav {
    position: sticky;
    z-index: 45;
    top: 64px;
    display: flex;
    padding: 10px var(--gutter);
    border-bottom: 1px solid #2c2822;
    background: rgb(15 13 11 / 97%);
    gap: var(--s1);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-nav a {
    flex: 0 0 auto;
    padding: 6px 13px;
    border: 1px solid #453f36;
    border-radius: 2px;
    color: #cfc6b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.5;
    white-space: nowrap;
    transition: color 140ms ease, border-color 140ms ease,
      background-color 140ms ease;
  }

  .section-nav a:active {
    border-color: #a69d90;
  }

  .section-nav a.active {
    border-color: #f1ece1;
    color: #16130f;
    background: #f1ece1;
    font-weight: 700;
  }

  .hero-inner {
    padding: var(--s5) 0 var(--s5);
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .hero-copy,
  .hero-visual,
  .hero-note,
  .hero-meta {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-copy {
    max-width: 640px;
    padding-top: 0;
  }

  .hero-visual {
    max-width: 640px;
    margin-top: var(--s4);
  }

  .hero-note {
    margin-top: var(--s3);
  }

  .memorial-inner {
    padding: var(--s7) 0;
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .memorial-photo {
    max-width: 480px;
  }

  .memorial-ritual {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .sensitive-grid {
    grid-template-columns: 1fr;
  }

  .petition-grid {
    padding: var(--s7) 0;
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .section {
    padding-block: var(--s6) var(--s7);
  }

  .section-heading.split {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }

  .brief-grid {
    grid-template-columns: 1fr;
  }

  .brief-grid article {
    padding: var(--s4) 0;
    border-bottom: 1px solid var(--line);
  }

  .brief-grid article + article {
    padding-left: 0;
    border-left: 0;
  }

  .brief-grid article:last-child {
    border-bottom: 0;
  }

  .demands-inner {
    padding: var(--s6) 0 var(--s7);
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .demands-lead {
    position: static;
  }

  .fundraising-heading {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .fundraising-status {
    width: fit-content;
  }

  .fundraising-intro {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .fundraising-budget {
    grid-template-columns: 1fr;
  }

  .fundraising-budget-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .global-action-grid {
    grid-template-columns: 1fr;
  }

  .global-action-grid a {
    min-height: 0;
    padding: var(--s4) 0;
    border-bottom: 1px solid var(--line);
  }

  .global-action-grid a + a {
    padding-left: 0;
    border-left: 0;
  }

  .global-action-grid a:last-child {
    border-bottom: 0;
  }

  .global-action-grid div {
    padding-top: var(--s3);
  }

  .global-action-grid i {
    right: 0;
  }

  .safety-card {
    padding: var(--s5) var(--s5);
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .share-section {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .share-board {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 116px;
  }

  :root {
    --gutter: 20px;
  }

  body {
    padding-bottom: 76px;
    font-size: 15.5px;
    line-height: 1.88;
  }

  .prototype-notice {
    padding: 6px 14px;
    font-size: 10px;
  }

  .header-inner {
    min-height: 60px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .language-menu summary {
    min-width: 96px;
    height: 40px;
    font-size: 11px;
  }

  .language-options {
    position: fixed;
    top: 68px;
    right: 14px;
    width: min(220px, calc(100vw - 28px));
  }

  .section-nav {
    top: 60px;
  }

  /* 眉標＝章節路標 */
  .eyebrow,
  .memorial-kicker {
    margin-bottom: var(--s2);
    color: var(--ink-soft);
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .eyebrow::before,
  .memorial-kicker::before {
    width: 28px;
  }

  .memorial-kicker {
    color: var(--red-text);
  }

  /* ── 收短的手機 Hero ── */
  .hero-inner {
    padding: 28px 0 32px;
  }

  .hero h1 {
    max-width: 12em;
    font-size: clamp(29px, 8.3vw, 33px);
    letter-spacing: var(--track-h);
    line-height: 1.38;
    text-wrap: balance;
  }

  .hero-deck {
    max-width: 31em;
    margin-top: 20px;
    font-size: 14.5px;
    letter-spacing: 0.02em;
    line-height: 1.9;
  }

  /* 訴求 chips：單列水平捲動，不佔第二行 */
  .hero-tags {
    margin-top: 18px;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    gap: var(--s1);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    font-size: 12px;
  }

  .hero-tags::-webkit-scrollbar {
    display: none;
  }

  .hero-tags span {
    flex: 0 0 auto;
  }

  .primary-link {
    width: min(86vw, 300px);
    min-height: 56px;
    margin-top: 22px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .hero-visual {
    margin-top: 24px;
  }

  /* 手機：疊字留在影像左側原生留白，不另外製造黑色文字卡。 */
  .angel-overlay {
    position: absolute;
    top: 9%;
    bottom: auto;
    left: 5%;
    width: 40%;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 5px;
  }

  .angel-story {
    font-size: clamp(13px, 3.8vw, 16px);
    line-height: 1.42;
  }

  .angel-action {
    min-height: 34px;
    font-size: 10.5px;
  }

  /* 圖版題讓位給天使疊字層，手機收起以守住 ~880 首兩屏 */
  .visual-plate {
    display: none;
  }

  .hero-visual figcaption {
    margin-top: var(--s1);
    padding-top: var(--s1);
    font-size: 10.5px;
  }

  .hero-note {
    margin-top: var(--s1);
    font-size: 11px;
  }

  .hero-meta {
    margin-top: var(--s1);
    padding-top: var(--s1);
    flex-wrap: wrap;
    gap: var(--s1) var(--s3);
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .memorial-inner {
    padding: var(--s6) 0;
    gap: var(--s4);
  }

  .memorial-ritual {
    padding: var(--s4) 0 var(--s6);
    gap: var(--s4);
  }

  .light-module {
    padding: 4px 0 24px;
    gap: 10px;
  }

  .light-button {
    width: min(100%, 250px);
    min-height: 0;
  }

  .lamp-visual {
    width: clamp(172px, 50vw, 196px);
  }

  .light-button-label {
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  .light-copy {
    min-width: 0;
  }

  .sound-module {
    padding-top: 16px;
    align-items: flex-start;
    gap: 12px;
  }

  .sound-controls {
    max-width: 230px;
    gap: 8px 12px;
  }

  .sound-toggle {
    font-size: 12.5px;
  }

  .sound-volume input {
    width: 72px;
  }

  .memorial-copy h2 {
    font-size: clamp(24px, 6.6vw, 27px);
    line-height: 1.5;
  }

  .memorial-copy > p:not(.memorial-kicker) {
    margin-top: var(--s3);
    font-size: 15px;
    line-height: 1.88;
  }

  .fact-rail-inner {
    grid-template-columns: 1fr;
  }

  /* 事實帳：數字欄與說明欄以分欄線切開 */
  .fact-rail article {
    padding: var(--s4) 0;
    gap: 0;
  }

  .fact-rail article + article {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .fact-rail article > div {
    padding-left: var(--s3);
    border-left: 1px solid var(--line-strong);
  }

  .fact-rail strong {
    min-width: 92px;
    font-size: 36px;
  }

  .fact-rail b {
    font-size: 15px;
  }

  /* 表態帶＝儀式停頓 */
  .petition-grid {
    padding: var(--s7) 0;
    gap: var(--s5);
  }

  .petition-count strong {
    font-size: clamp(60px, 17vw, 76px);
  }

  .petition-count span {
    margin-top: var(--s3);
  }

  .petition-action > p {
    margin-top: var(--s3);
    font-size: 15.5px;
  }

  .petition-button {
    width: 100%;
    min-height: 56px;
    margin-top: var(--s4);
  }

  /* 不對稱呼吸：大停頓 → 錨線 → 小呼吸 → 標題 */
  .section {
    padding-block: var(--s6) var(--s7);
  }

  .section-heading {
    margin-bottom: var(--s5);
    padding-top: var(--s4);
  }

  .section-heading h2,
  .share-copy h2,
  .safety-card h2,
  .fundraising-heading h2,
  .demands-lead h2,
  .petition-action h2 {
    font-size: 22px;
    line-height: 1.5;
  }

  .section-heading > p:not(.eyebrow),
  .section-heading.split > p,
  .share-copy > p:not(.eyebrow) {
    margin-top: var(--s3);
    font-size: 14.5px;
  }

  .brief-grid h3,
  .fundraising-gates h3,
  .global-action-grid h3,
  .demand-list h3 {
    font-size: 18px;
    line-height: 1.55;
  }

  .brief-grid article {
    padding: var(--s4) 0;
  }

  .brief-grid p {
    margin: var(--s2) 0 var(--s4);
    font-size: 15px;
    line-height: 1.85;
  }

  .status {
    padding-top: var(--s2);
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  /* 時間線：日期領頭三聲部 */
  .timeline-list::before {
    top: 42px;
    bottom: 48px;
    left: 3.5px;
  }

  .timeline-list article {
    padding: var(--s4) 0 var(--s5) var(--s4);
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  .timeline-list article::before {
    top: 36px;
    left: 0;
  }

  .timeline-list time {
    font-size: 22px;
  }

  .timeline-list article > div > span {
    margin-top: 2px;
  }

  .timeline-list h3 {
    margin-top: var(--s1);
    font-size: 18px;
  }

  .timeline-list p {
    margin-top: var(--s2);
  }

  .demands-inner {
    padding: var(--s6) 0;
    gap: var(--s4);
  }

  .demands-lead blockquote {
    margin-top: var(--s4);
    padding-left: var(--s3);
    font-size: 15.5px;
    line-height: 1.9;
  }

  .demand-list li {
    padding: var(--s4) 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--s2);
  }

  .demand-list p {
    margin-top: var(--s1);
    font-size: 15px;
  }

  .fundraising-heading {
    padding-top: var(--s4);
    padding-bottom: var(--s4);
  }

  .fundraising-status {
    min-width: 0;
    padding: var(--s2) var(--s3);
  }

  .fundraising-intro {
    padding: var(--s4) 0;
  }

  .fundraising-intro p {
    font-size: 15px;
  }

  .fundraising-intro strong {
    font-size: 15.5px;
  }

  .fundraising-gates {
    grid-template-columns: 1fr;
  }

  .fundraising-gates article,
  .fundraising-gates article:nth-child(even) {
    padding: var(--s4) 0;
    border-right: 0;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: var(--s2);
  }

  .fundraising-gates article:nth-child(odd) {
    border-right: 0;
  }

  .fundraising-gates article:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .fundraising-gates article:last-child {
    border-bottom: 0;
  }

  .fundraising-gates p {
    font-size: 14.5px;
  }

  .fundraising-budget {
    margin-top: var(--s6);
  }

  /* 卡內左緣統一 24px */
  .fundraising-budget-copy {
    padding: var(--s4) var(--s4) var(--s5);
  }

  .fundraising-budget-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .fundraising-budget-list li {
    min-height: 0;
    padding: var(--s3) var(--s4);
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .fundraising-budget-list em {
    grid-column: 2;
    margin-top: var(--s1);
    white-space: normal;
  }

  .fundraising-legal {
    padding: var(--s4) var(--s3);
    align-items: flex-start;
    flex-direction: column;
    gap: var(--s3);
  }

  .fundraising-legal > a {
    white-space: normal;
  }

  .safety-card {
    padding: var(--s5) var(--s4) var(--s4);
    gap: var(--s4);
  }

  .safety-card li {
    padding: var(--s3) 0;
  }

  .share-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 8px;
  }

  .share-actions button {
    min-height: 0;
    padding: 0;
    font-size: 11px;
  }

  .share-actions span {
    width: 44px;
    height: 44px;
  }

  .dialog-share {
    grid-template-columns: repeat(2, 1fr);
  }

  .source-list a {
    padding: var(--s4) var(--s1) var(--s4) 0;
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: var(--s2);
  }

  .source-list b {
    font-size: 15px;
  }

  .source-list small {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.75;
  }

  footer {
    display: block;
    padding: var(--s5) var(--gutter) 116px;
  }

  /* 頁尾動作做成整行可點的列 */
  footer a {
    display: flex;
    width: 100%;
    min-height: 48px;
    margin-top: var(--s4);
    padding-top: var(--s2);
    border-top: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
  }

  /* 手機固定表態列 */
  .mobile-action {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 10px var(--s3) calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #453f36;
    background: rgb(15 13 11 / 97%);
    box-shadow: 0 -14px 28px rgb(0 0 0 / 30%);
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease,
      visibility 0s linear 180ms;
  }

  .mobile-action.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .mobile-action div {
    display: grid;
    line-height: 1.2;
  }

  .mobile-action strong {
    color: #f1ece1;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .mobile-action div span {
    margin-top: 2px;
    color: #a69d90;
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }

  .mobile-action button {
    display: inline-flex;
    min-width: 156px;
    min-height: 48px;
    padding: 0 var(--s3);
    border: 1px solid var(--amber-press);
    border-radius: 4px;
    align-items: center;
    justify-content: space-between;
    gap: var(--s2);
    color: var(--amber-ink);
    background: var(--amber);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 150ms ease;
  }

  .mobile-action button:hover {
    background: var(--amber-soft);
  }

  .mobile-action button:active {
    background: var(--amber-press);
  }

  /* 箭頭併入 CTA 檔（15px） */
  .mobile-action button > span[aria-hidden] {
    font-size: 15px;
  }

  /* 浮動鈕讓位給表態列 */
  .back-top {
    right: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }

  .petition-dialog form {
    padding: var(--s6) var(--s4) var(--s4);
  }

  .dialog-step h2 {
    font-size: 22px;
    line-height: 1.5;
  }

  .dialog-step > p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.85;
  }

  .success-share {
    grid-template-columns: 1fr;
  }

  .toast {
    right: var(--s2);
    bottom: calc(148px + env(safe-area-inset-bottom));
    max-width: calc(100% - 24px);
  }
}

@media (max-width: 390px) {
  :root {
    --gutter: 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand strong {
    font-size: 13px;
  }

  .language-menu summary {
    min-width: 88px;
  }

  .section-heading h2,
  .share-copy h2,
  .safety-card h2,
  .fundraising-heading h2,
  .demands-lead h2,
  .petition-action h2 {
    font-size: 21px;
  }

  .memorial-copy h2 {
    font-size: 24px;
  }

  .mobile-action button {
    min-width: 126px;
  }
}

@media (max-width: 344px) {
  .hero h1 {
    font-size: 30px;
  }

  .fact-rail strong {
    min-width: 82px;
    font-size: 32px;
  }
}

/* ── 23 各語言微調 ───────────────────────────────────────── */

/* 西文：襯線大標視覺尺寸偏大，桌面收一級 */
html[data-language="en"] .hero h1,
html[data-language="es"] .hero h1,
html[data-language="vi"] .hero h1 {
  max-width: 13em;
  font-size: clamp(34px, 3.3vw, 46px);
  line-height: 1.22;
}

/* 日文標題行高略放 */
html[data-language="ja"] .hero h1 {
  font-size: clamp(34px, 3.4vw, 47px);
  line-height: 1.42;
}

html[data-language="ko"] .hero h1 {
  font-size: clamp(34px, 3.4vw, 47px);
  line-height: 1.38;
}

html[data-language="ja"] .visual-plate strong,
html[data-language="ko"] .visual-plate strong {
  line-height: 1.6;
}

/* 泰文高低母音需要更高行距，小字不加寬字距 */
html[data-language="th"] .eyebrow,
html[data-language="th"] .memorial-kicker,
html[data-language="th"] .hero-meta,
html[data-language="th"] .status,
html[data-language="th"] .timeline-list article > div > span,
html[data-language="th"] .action-locale {
  letter-spacing: 0.04em;
}

html[data-language="th"] .hero h1 {
  font-size: clamp(31px, 3.4vw, 46px);
  line-height: 1.5;
}

html[data-language="th"] h2,
html[data-language="th"] h3 {
  line-height: 1.6;
}

@media (max-width: 720px) {
  html[data-language="en"] .hero h1,
  html[data-language="es"] .hero h1 {
    font-size: clamp(29px, 8.2vw, 33px);
    line-height: 1.3;
  }

  html[data-language="ja"] .hero h1 {
    font-size: clamp(29px, 8.2vw, 33px);
  }

  html[data-language="th"] .hero h1 {
    font-size: clamp(29px, 8.2vw, 33px);
  }

  html[data-language="ko"] .hero h1 {
    font-size: clamp(29px, 8.4vw, 33px);
  }
}

/* ── 24 動態偏好 ─────────────────────────────────────────── */

/* ── 25 編輯式密度重整：減少卡片、加入圖像停頓與完整祈福儀式 ── */

.brand-mark {
  border: 0;
  border-radius: 50%;
  color: #f1ece1;
  background: radial-gradient(circle at 38% 32%, #a83a3a, #5f1618 72%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 15%), 0 0 0 1px rgb(0 0 0 / 35%);
}

.language-menu summary {
  min-width: 86px;
  padding-inline: 4px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
}

.language-menu summary:hover,
.language-menu[open] summary {
  border-color: var(--red-text);
}

.language-glyph {
  border: 0;
  border-radius: 50%;
  color: #f1ece1;
  background: rgb(147 37 40 / 55%);
}

.hero-tags {
  gap: 0;
}

.hero-tags span {
  padding: 2px 14px 2px 10px;
  border: 0;
  border-radius: 0;
}

.hero-tags span + span {
  border-left: 1px solid var(--line-strong);
}

.hero-tags span::before {
  border-radius: 50%;
  background: var(--red-text);
}

.memorial-ritual {
  display: block;
}

.ritual-heading {
  display: grid;
  margin: 0 0 var(--s4);
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: var(--s3);
}

.ritual-heading span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.ritual-heading span:last-child {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.ritual-heading h3 {
  margin: 0;
  color: var(--amber-soft);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.4;
}

.ritual-stage {
  display: grid;
  gap: var(--s4);
}

.ritual-reveal {
  position: relative;
  overflow: hidden;
  width: min(100%, 920px);
  max-height: 0;
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.985);
  transform-origin: 50% 0;
  transition: max-height 850ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms ease 140ms, transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 850ms;
}

.memorial-ritual.is-lit .ritual-reveal {
  max-height: 680px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s, 120ms, 0s, 0s;
}

.ritual-reveal img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.04);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 92%, transparent 100%);
}

.ritual-reveal::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 58%, rgb(12 10 8 / 72%));
  content: "";
  pointer-events: none;
}

.ritual-reveal > p {
  position: absolute;
  z-index: 3;
  right: var(--s4);
  bottom: var(--s3);
  left: var(--s4);
  margin: 0;
  color: #f3e8d2;
  font-family: var(--serif);
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: 0.12em;
  text-align: center;
}

.ritual-smoke {
  position: absolute;
  z-index: 2;
  inset: -8% 0 0;
  overflow: hidden;
  pointer-events: none;
}

.ritual-smoke i {
  position: absolute;
  bottom: 16%;
  left: 50%;
  width: clamp(80px, 14vw, 150px);
  height: clamp(150px, 26vw, 270px);
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(
    ellipse at 50% 76%,
    rgb(246 236 216 / 62%) 0%,
    rgb(229 216 193 / 26%) 38%,
    transparent 72%
  );
  filter: blur(12px);
  mix-blend-mode: screen;
  transform: translate(-50%, 36px) scale(0.65);
}

.ritual-smoke i:nth-child(2) {
  left: 42%;
  animation-delay: 520ms !important;
}

.ritual-smoke i:nth-child(3) {
  left: 58%;
  animation-delay: 980ms !important;
}

.memorial-ritual.is-lit .ritual-smoke i {
  animation: ritual-smoke-rise 4.8s ease-out forwards;
}

@keyframes ritual-smoke-rise {
  0% { opacity: 0; transform: translate(-50%, 36px) scale(0.65); }
  18% { opacity: 0.58; }
  68% { opacity: 0.22; }
  100% { opacity: 0; transform: translate(-50%, -180px) scale(1.45); }
}

.sound-module {
  width: min(100%, 720px);
  margin: var(--s2) auto 0;
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 72px minmax(0, 1fr);
  justify-content: initial;
}

.sound-head b {
  display: grid;
  width: 66px;
  height: 66px;
  padding: 7px;
  border: 2px solid var(--red-text);
  place-items: center;
  color: var(--red-text);
  background: rgb(147 37 40 / 4%);
  box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 4px rgb(168 58 58 / 62%);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-2deg);
}

.sound-controls {
  justify-content: flex-start;
}

.sound-status {
  text-align: left;
}

.story-image,
.editorial-interlude {
  position: relative;
  overflow: hidden;
  margin: var(--s6) auto 0;
  background: #0b0908;
}

.story-image {
  width: 100%;
}

.story-image img,
.editorial-interlude img {
  display: block;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
}

.story-image img {
  height: clamp(300px, 43vw, 520px);
  object-position: center 42%;
}

.story-image::after,
.editorial-interlude::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 52%, rgb(10 8 7 / 82%));
  content: "";
  pointer-events: none;
}

.story-image figcaption,
.editorial-interlude figcaption {
  position: absolute;
  z-index: 2;
  right: var(--s4);
  bottom: var(--s4);
  left: var(--s4);
  color: #f1ece1;
}

.story-image figcaption span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.45;
}

.story-image figcaption small {
  display: block;
  margin-top: 6px;
  color: #c8bfae;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.editorial-interlude {
  width: min(calc(100% - var(--gutter) * 2), var(--w-standard));
  margin-top: 0;
}

.editorial-interlude img {
  height: clamp(280px, 38vw, 460px);
  object-position: center 55%;
}

.editorial-interlude figcaption {
  max-width: 28em;
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.45;
}

.global-action-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
}

.global-action-grid a {
  display: grid;
  min-height: 0;
  padding: var(--s4) 0;
  grid-template-columns: 64px minmax(0, 1fr) 24px;
  align-items: center;
  gap: var(--s3);
  transition: color 150ms ease, padding-left 150ms ease;
}

.global-action-grid a + a {
  padding-left: 0;
  border-top: 1px solid var(--line);
  border-left: 0;
}

.global-action-grid a:hover,
.global-action-grid a:active {
  padding-left: 6px;
  background: transparent;
}

.action-locale {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  place-items: center;
  text-align: center;
}

.global-action-grid div {
  margin: 0;
  padding: 0;
}

.global-action-grid i {
  position: static;
  justify-self: end;
}

.safety-card {
  padding-inline: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

@media (max-width: 980px) {
  .section-nav {
    padding-block: 8px;
    gap: 18px;
  }

  .section-nav a {
    padding: 7px 0 6px;
    border: 0;
    border-radius: 0;
    color: #aaa093;
    background: transparent;
    transition: color 140ms ease, box-shadow 140ms ease;
  }

  .section-nav a:active {
    border: 0;
    color: #f1ece1;
  }

  .section-nav a.active {
    border: 0;
    color: #f1ece1;
    background: transparent;
    box-shadow: inset 0 -2px var(--red-text);
  }
}

@media (max-width: 720px) {
  .language-menu summary {
    min-width: 78px;
  }

  .ritual-heading {
    margin-bottom: var(--s2);
  }

  .ritual-heading h3 {
    font-size: 13px;
    letter-spacing: 0.22em;
  }

  .ritual-stage {
    gap: var(--s3);
  }

  .ritual-reveal {
    width: calc(100% + var(--gutter) * 2);
    margin-left: calc(var(--gutter) * -1);
  }

  .ritual-reveal > p {
    right: var(--gutter);
    left: var(--gutter);
  }

  .sound-module {
    display: grid;
    padding: var(--s3) 0;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
  }

  .sound-head b {
    width: 56px;
    height: 56px;
    padding: 6px;
    font-size: 11px;
  }

  .sound-controls {
    max-width: none;
    justify-content: flex-start;
  }

  .sound-toggle {
    min-height: 34px;
  }

  .sound-toggle-glyph {
    width: 32px;
    height: 32px;
  }

  .sound-volume input {
    width: min(21vw, 76px);
  }

  .story-image {
    width: calc(100% + var(--gutter) * 2);
    margin-left: calc(var(--gutter) * -1);
  }

  .story-image img {
    height: min(102vw, 430px);
  }

  .story-image figcaption,
  .editorial-interlude figcaption {
    right: var(--gutter);
    bottom: var(--s3);
    left: var(--gutter);
  }

  .editorial-interlude {
    width: 100%;
  }

  .editorial-interlude img {
    height: 56vw;
    min-height: 230px;
  }

  .editorial-interlude figcaption {
    font-size: 18px;
  }

  .global-action-grid a,
  .global-action-grid a + a {
    padding: var(--s4) 0;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    gap: var(--s2);
  }

  .action-locale {
    width: 42px;
    height: 42px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .progressive-copy {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .progressive-copy.is-expanded {
    display: block;
    overflow: visible;
  }

  .copy-toggle {
    display: inline-flex;
    min-height: 32px;
    margin: 5px 0 var(--s2);
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgb(169 59 60 / 55%);
    align-items: center;
    color: var(--red-text);
    background: transparent;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
  }
}

/* ── 26 單一祈福舞台：鐘、逐盞燭火與腳印在同一畫面完成 ── */
.ritual-stage {
  gap: 0;
}

.ritual-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 980px);
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  background: #090705;
}

.ritual-scene-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.27) saturate(0.5) contrast(1.08);
  transform: scale(1.015);
}

.ritual-scene-veil {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0.45;
  background:
    linear-gradient(to bottom, rgb(9 7 5 / 34%), transparent 28%, transparent 72%, rgb(9 7 5 / 58%)),
    radial-gradient(circle at 50% 52%, transparent 0 22%, rgb(8 6 5 / 26%) 58%, rgb(8 6 5 / 68%) 100%);
  pointer-events: none;
}

.ritual-paw-veil {
  position: absolute;
  z-index: 2;
  top: 53%;
  left: 50%;
  width: 39%;
  aspect-ratio: 1.08;
  border-radius: 50%;
  opacity: 1;
  background: radial-gradient(ellipse, rgb(10 8 6 / 98%) 0 46%, rgb(10 8 6 / 86%) 58%, transparent 74%);
  filter: blur(10px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ritual-paw-aura {
  position: absolute;
  z-index: 3;
  top: 54%;
  left: 50%;
  width: 42%;
  aspect-ratio: 1.1;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(ellipse, rgb(241 186 73 / 28%), rgb(204 122 37 / 10%) 42%, transparent 70%);
  filter: blur(13px);
  transform: translate(-50%, -50%) scale(0.72);
  pointer-events: none;
}

.ritual-candle-reveals {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.ritual-candle-reveal {
  opacity: 0;
  filter: brightness(1.08) saturate(1.04);
}

.light-button {
  position: absolute;
  z-index: 7;
  top: 54%;
  left: 50%;
  display: grid;
  width: clamp(86px, 11vw, 118px);
  height: clamp(105px, 13.4vw, 144px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: var(--amber-soft);
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: filter 180ms ease;
}

.light-button:hover,
.light-button:active {
  color: var(--amber-soft);
  filter: brightness(1.12);
  transform: translate(-50%, -50%);
}

.ritual-bell {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 18px rgb(0 0 0 / 48%));
}

.ritual-bell-halo {
  position: absolute;
  inset: -12%;
  border: 1px solid rgb(222 165 62 / 42%);
  border-radius: 50%;
  box-shadow: 0 0 34px rgb(217 164 65 / 11%);
  animation: ritual-bell-pulse 2.6s ease-in-out infinite;
}

.ritual-bell-handle {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: 50%;
  width: 27%;
  height: 22%;
  border: 3px solid #e3b358;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  box-shadow: inset 0 0 5px rgb(255 226 157 / 28%), 0 0 10px rgb(218 155 46 / 18%);
  transform: translateX(-50%);
}

.ritual-bell-body {
  position: absolute;
  z-index: 3;
  top: 24%;
  left: 13%;
  width: 74%;
  height: 56%;
  border: 1px solid #f0c86e;
  border-radius: 47% 47% 18% 18% / 28% 28% 15% 15%;
  background:
    radial-gradient(circle at 38% 27%, rgb(255 235 181 / 46%), transparent 24%),
    linear-gradient(90deg, #5f3513 0%, #bb7928 22%, #f1c76a 48%, #a36320 75%, #4c2a10 100%);
  box-shadow:
    inset 0 8px 13px rgb(255 233 173 / 22%),
    inset 0 -14px 18px rgb(42 20 7 / 48%),
    0 10px 15px rgb(0 0 0 / 38%);
  transform: perspective(110px) rotateX(-3deg);
}

.ritual-bell-body::before {
  position: absolute;
  top: 13%;
  bottom: 16%;
  left: 48%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgb(255 241 202 / 62%), transparent);
  box-shadow: 7px 0 15px rgb(255 220 140 / 16%);
  content: "";
}

.ritual-bell-rim {
  position: absolute;
  z-index: 4;
  top: 73%;
  left: 7%;
  width: 86%;
  height: 13%;
  border: 1px solid #efc66b;
  border-radius: 50%;
  background: linear-gradient(90deg, #542f12, #e7b755 46%, #643815);
  box-shadow: inset 0 2px 3px rgb(255 235 178 / 30%), 0 5px 10px rgb(0 0 0 / 42%);
}

.ritual-bell-clapper {
  position: absolute;
  z-index: 2;
  top: 82%;
  left: 50%;
  width: 14%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #f0c86e;
  background: #d79d3d;
  box-shadow: 0 3px 7px rgb(0 0 0 / 45%);
  transform: translateX(-50%);
}

.ritual-meta {
  display: grid;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s4);
}

.ritual-meta .light-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: start;
  gap: 5px 18px;
  text-align: left;
}

.ritual-meta .light-button-label {
  grid-column: 1 / -1;
  color: var(--amber-soft);
  font-family: var(--serif);
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 0.09em;
  text-align: left;
}

.ritual-meta .light-status,
.ritual-meta .light-thanks {
  margin: 0;
}

.ritual-meta .sound-module {
  width: auto;
  margin: 0;
  padding: 0 0 0 var(--s4);
  border: 0;
  border-left: 1px solid var(--line);
}

.memorial-ritual.is-lit .ritual-scene-image {
  animation: ritual-scene-awaken 5.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.memorial-ritual.is-lit .ritual-scene-veil {
  animation: ritual-veil-lift 5s ease forwards;
}

.memorial-ritual.is-lit .ritual-paw-veil {
  animation: ritual-paw-unveil 900ms ease 4.15s forwards;
}

.memorial-ritual.is-lit .ritual-paw-aura {
  animation: ritual-paw-arrive 1.35s ease 4.2s forwards;
}

.memorial-ritual.is-lit .ritual-candle-reveal {
  animation: ritual-candle-image-reveal 650ms ease-out var(--candle-delay) forwards;
}

.memorial-ritual.is-lit .light-button {
  pointer-events: none;
  animation: ritual-bell-rise 3.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.memorial-ritual.is-lit .ritual-bell-halo {
  animation: ritual-bell-ring 1.4s ease-out forwards;
}

.memorial-ritual.is-lit .ritual-smoke i {
  bottom: 37%;
  animation: ritual-smoke-integrated 3.8s ease-out 1.15s forwards;
}

.memorial-ritual.is-lit .ritual-smoke i:nth-child(2) {
  animation-delay: 1.45s !important;
}

.memorial-ritual.is-lit .ritual-smoke i:nth-child(3) {
  animation-delay: 1.8s !important;
}

@keyframes ritual-bell-pulse {
  0%, 100% { opacity: 0.38; transform: scale(0.92); }
  50% { opacity: 0.82; transform: scale(1.04); }
}

@keyframes ritual-bell-ring {
  0% { opacity: 0.8; transform: scale(0.92); }
  35% { opacity: 1; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(1.42); }
}

@keyframes ritual-bell-rise {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
  10% { transform: translate(-50%, -53%) rotate(-4deg) scale(1.03); }
  20% { transform: translate(-50%, -59%) rotate(3deg) scale(1); }
  42% { transform: translate(-50%, -92%) rotate(-1.5deg) scale(0.94); }
  74% { opacity: 0.76; }
  100% { opacity: 0.28; transform: translate(-50%, -198%) rotate(0) scale(0.68); }
}

@keyframes ritual-scene-awaken {
  0%, 76% { filter: brightness(0.27) saturate(0.5) contrast(1.08); transform: scale(1.015); }
  90% { filter: brightness(0.48) saturate(0.66) contrast(1.06); }
  100% { filter: brightness(0.82) saturate(0.86) contrast(1.03); transform: scale(1); }
}

@keyframes ritual-veil-lift {
  0%, 76% { opacity: 0.45; }
  100% { opacity: 0.08; }
}

@keyframes ritual-paw-unveil {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.16); }
}

@keyframes ritual-paw-arrive {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  48% { opacity: 0.82; }
  100% { opacity: 0.35; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes ritual-candle-image-reveal {
  0% { opacity: 0; }
  62% { opacity: 1; }
  100% { opacity: 0.92; }
}

@keyframes ritual-smoke-integrated {
  0% { opacity: 0; transform: translate(-50%, 34px) scale(0.62); }
  22% { opacity: 0.5; }
  70% { opacity: 0.2; }
  100% { opacity: 0; transform: translate(-50%, -155px) scale(1.35); }
}

@media (max-width: 720px) {
  .ritual-scene {
    width: calc(100% + var(--gutter) * 2);
    margin-left: calc(var(--gutter) * -1);
  }

  .light-button {
    width: clamp(76px, 23vw, 92px);
  }

  .ritual-meta {
    padding-top: 15px;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .ritual-meta .light-copy {
    gap: 4px 14px;
  }

  .ritual-meta .sound-module {
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .memorial-ritual.is-lit .ritual-scene-image {
    filter: brightness(0.82) saturate(0.86) contrast(1.03);
    transform: scale(1);
  }

  .memorial-ritual.is-lit .ritual-scene-veil {
    opacity: 0.08;
  }

  .memorial-ritual.is-lit .ritual-paw-veil {
    opacity: 0;
  }

  .memorial-ritual.is-lit .ritual-paw-aura {
    opacity: 1;
  }

  .memorial-ritual.is-lit .ritual-candle-reveal {
    opacity: 0.92;
    animation: none;
  }

  .memorial-ritual.is-lit .light-button {
    opacity: 0.3;
    transform: translate(-50%, -185%) scale(0.7);
  }
}

/* ── 30 夜間守望：讓真實記憶、鐘與燭火成為同一個畫面 ── */
.ritual-scene {
  background:
    radial-gradient(circle at 72% 28%, rgb(91 54 29 / 15%), transparent 34%),
    linear-gradient(135deg, #100c09 0%, #080605 48%, #0d0907 100%);
}

.ritual-scene-image {
  filter: brightness(0.15) saturate(0.34) contrast(1.14);
  transform: scale(1.025);
}

.ritual-memory-presence {
  position: absolute;
  z-index: 1;
  top: 4%;
  right: -1%;
  width: 52%;
  height: 82%;
  margin: 0;
  overflow: hidden;
  opacity: 0.2;
  filter: grayscale(0.35) sepia(0.18) brightness(0.62) contrast(1.08) saturate(0.74);
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 11%, #000 71%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 24%, #000 82%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
  transform: translate3d(2%, 1%, 0) scale(1.025);
  transform-origin: 62% 38%;
  will-change: opacity, transform, filter;
}

.ritual-memory-presence::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 54% 32%, transparent 0 22%, rgb(7 5 4 / 20%) 58%, rgb(7 5 4 / 72%) 100%),
    linear-gradient(to bottom, transparent 46%, rgb(8 6 5 / 82%) 96%);
  content: "";
}

.ritual-memory-presence img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 0%;
}

.ritual-scene-veil {
  z-index: 2;
  opacity: 0.56;
  background:
    linear-gradient(to right, rgb(8 6 5 / 56%) 0 24%, transparent 50%, rgb(8 6 5 / 18%) 78%, rgb(8 6 5 / 52%) 100%),
    linear-gradient(to bottom, rgb(9 7 5 / 28%), transparent 26%, transparent 70%, rgb(9 7 5 / 62%)),
    radial-gradient(circle at 52% 55%, transparent 0 20%, rgb(8 6 5 / 20%) 58%, rgb(8 6 5 / 58%) 100%);
}

.ritual-paw-veil {
  z-index: 3;
}

.ritual-paw-aura,
.ritual-candle-reveals {
  z-index: 4;
}

.ritual-scene::before {
  position: absolute;
  z-index: 5;
  inset: 0;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 2%) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 30% 20%, rgb(238 194 112 / 8%), transparent 22%);
  content: "";
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.light-button {
  top: 58%;
  left: 31%;
  width: clamp(126px, 12.4vw, 164px);
  height: clamp(154px, 15.2vw, 198px);
  filter: brightness(0.88) saturate(0.78) drop-shadow(0 18px 28px rgb(0 0 0 / 58%));
}

.ritual-bell-halo {
  inset: -4%;
  border-color: rgb(191 139 57 / 22%);
  box-shadow: 0 0 42px rgb(170 113 38 / 8%);
}

.ritual-bell-handle {
  border-color: #9d6f2d;
  box-shadow: inset 1px 0 2px rgb(255 229 164 / 18%), 0 4px 10px rgb(0 0 0 / 36%);
}

.ritual-bell-body {
  border-color: #aa7831;
  background:
    radial-gradient(ellipse at 37% 22%, rgb(243 211 139 / 28%), transparent 21%),
    repeating-linear-gradient(96deg, rgb(255 242 195 / 3%) 0 2px, rgb(20 10 4 / 5%) 2px 5px),
    linear-gradient(90deg, #2f1c0c 0%, #79501e 18%, #bd8a3d 45%, #805621 71%, #2b190a 100%);
  box-shadow:
    inset 8px 5px 16px rgb(250 216 137 / 8%),
    inset -12px -14px 22px rgb(19 9 3 / 52%),
    0 14px 24px rgb(0 0 0 / 46%);
}

.ritual-bell-body::after {
  position: absolute;
  inset: 12% 10% 15%;
  border-radius: inherit;
  opacity: 0.22;
  background:
    radial-gradient(ellipse at 18% 42%, #16251f 0 5%, transparent 19%),
    radial-gradient(ellipse at 72% 31%, #d1aa62 0 3%, transparent 15%),
    radial-gradient(ellipse at 58% 76%, #21170d 0 7%, transparent 24%);
  content: "";
  mix-blend-mode: multiply;
}

.ritual-bell-rim {
  border-color: #9e702e;
  background: linear-gradient(90deg, #301c0b, #9f7130 45%, #3a220d);
  box-shadow: inset 0 1px 2px rgb(244 210 132 / 16%), 0 7px 13px rgb(0 0 0 / 48%);
}

.ritual-bell-clapper {
  border-color: #9f712e;
  background: #875b24;
}

.memorial-ritual.is-lit .ritual-memory-presence {
  animation: ritual-memory-awaken 7.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    ritual-memory-breathe 22s ease-in-out 7.8s infinite alternate;
}

.memorial-ritual.is-lit .ritual-scene-image {
  animation-name: ritual-scene-awaken-vigil;
}

.memorial-ritual.is-lit .ritual-scene-veil {
  animation-name: ritual-veil-lift-vigil;
}

.memorial-ritual.is-lit .light-button {
  animation-name: ritual-bell-rise-vigil;
}

@keyframes ritual-memory-awaken {
  0%, 34% {
    opacity: 0.2;
    filter: grayscale(0.38) sepia(0.2) brightness(0.62) contrast(1.08) saturate(0.72);
    transform: translate3d(2%, 1%, 0) scale(1.025);
  }
  100% {
    opacity: 0.48;
    filter: grayscale(0.14) sepia(0.14) brightness(0.82) contrast(1.06) saturate(0.92);
    transform: translate3d(0, 0, 0) scale(1.055);
  }
}

@keyframes ritual-memory-breathe {
  from { transform: translate3d(0, 0, 0) scale(1.055); }
  to { transform: translate3d(-1.1%, -0.7%, 0) scale(1.085); }
}

@keyframes ritual-scene-awaken-vigil {
  0%, 54% { filter: brightness(0.15) saturate(0.34) contrast(1.14); transform: scale(1.025); }
  100% { filter: brightness(0.74) saturate(0.8) contrast(1.04); transform: scale(1); }
}

@keyframes ritual-veil-lift-vigil {
  0%, 42% { opacity: 0.56; }
  100% { opacity: 0.16; }
}

@keyframes ritual-bell-rise-vigil {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.84; transform: translate(-50%, -142%) scale(0.86); }
}

@media (max-width: 720px) {
  .ritual-memory-presence {
    top: 5%;
    right: -4%;
    width: 76%;
    height: 56%;
    opacity: 0.18;
    mask-image:
      linear-gradient(to bottom, transparent 0%, #000 10%, #000 69%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 20%, #000 84%, transparent 100%);
  }

  .ritual-memory-presence img {
    object-position: 54% 0%;
  }

  .ritual-scene-veil {
    background:
      linear-gradient(to bottom, rgb(8 6 5 / 28%), transparent 22%, transparent 66%, rgb(8 6 5 / 62%)),
      radial-gradient(circle at 51% 55%, transparent 0 19%, rgb(8 6 5 / 24%) 56%, rgb(8 6 5 / 58%) 100%);
  }

  .light-button {
    top: 58%;
    left: 29%;
    width: clamp(92px, 25vw, 112px);
    height: clamp(114px, 30vw, 138px);
  }

  .memorial-ritual.is-lit .light-button {
    animation-name: ritual-bell-rise-vigil-mobile;
  }

  @keyframes ritual-bell-rise-vigil-mobile {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.86; transform: translate(-50%, -116%) scale(0.86); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .memorial-ritual.is-lit .ritual-memory-presence {
    opacity: 0.48;
    filter: grayscale(0.14) sepia(0.14) brightness(0.82) contrast(1.06) saturate(0.92);
    animation: none;
    transform: scale(1.055);
  }

  .memorial-ritual.is-lit .light-button {
    opacity: 0.84;
    animation: none;
    transform: translate(-50%, -142%) scale(0.86);
  }
}

/* ── 44 Quiet identity + multilingual BGM ribbon ───────────── */
.brand-mark {
  position: relative;
  display: block;
  width: 17px;
  height: 29px;
  flex: 0 0 17px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.brand-mark::before {
  position: absolute;
  top: 1px;
  left: 4px;
  width: 10px;
  height: 17px;
  border-radius: 76% 24% 68% 32% / 72% 64% 36% 28%;
  background: linear-gradient(155deg, #f5d585 4%, #dca541 50%, #8b5b1b 100%);
  box-shadow: 0 0 11px rgb(225 176 74 / 23%);
  content: "";
  transform: rotate(9deg);
}

.brand-mark::after {
  position: absolute;
  bottom: 1px;
  left: 8px;
  width: 1px;
  height: 11px;
  background: linear-gradient(#c88e31, transparent);
  content: "";
}

.language-menu summary {
  min-width: 0;
  height: 34px;
  padding: 0 9px 0 11px;
  border: 1px solid rgb(241 236 225 / 16%);
  border-radius: 7px;
  gap: 7px;
  color: rgb(241 236 225 / 90%);
  background: rgb(15 13 11 / 32%);
  font-size: 10.5px;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.language-menu summary:hover,
.language-menu[open] summary {
  border-color: rgb(229 185 95 / 46%);
  background: rgb(27 23 19 / 90%);
}

.language-glyph {
  display: none !important;
}

.language-chevron {
  color: rgb(229 185 95 / 72%);
  font-size: 10px;
  transform: translateY(-1px);
}

.language-options {
  width: 248px;
  padding: 8px;
  border: 1px solid rgb(229 185 95 / 20%);
  border-radius: 10px;
  background: rgb(18 15 12 / 98%);
  box-shadow: 0 20px 52px rgb(0 0 0 / 55%);
  gap: 2px 7px;
}

.language-options button {
  min-height: 38px;
  border-radius: 5px;
  font-size: 11.5px;
  letter-spacing: 0.025em;
}

.ritual-meta .sound-module {
  display: grid;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 2px 0 2px clamp(18px, 3vw, 34px);
  border: 0;
  border-left: 1px solid rgb(225 176 74 / 19%);
  align-items: center;
  grid-template-columns: 38px minmax(128px, 1fr) minmax(148px, 0.8fr);
  gap: 6px 14px;
  background: transparent;
}

.sound-toggle {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgb(225 176 74 / 34%);
  border-radius: 50%;
  place-items: center;
  color: var(--amber-soft);
  background: rgb(225 176 74 / 5%);
  box-shadow: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible,
.sound-toggle.playing {
  border-color: rgb(229 185 95 / 70%);
  color: #fff0bf;
  background: rgb(225 176 74 / 11%);
}

.sound-toggle-glyph {
  font-size: 12px;
  line-height: 1;
  transform: translateX(1px);
}

.sound-head {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.sound-head b {
  color: rgb(241 236 225 / 62%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.sound-track-name {
  overflow: hidden;
  color: rgb(241 236 225 / 92%);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sound-picker {
  position: relative;
  display: block;
  min-width: 0;
}

.sound-picker::after {
  position: absolute;
  top: 50%;
  right: 3px;
  color: rgb(229 185 95 / 70%);
  content: "⌄";
  font-size: 11px;
  pointer-events: none;
  transform: translateY(-54%);
}

.sound-picker select {
  width: 100%;
  height: 32px;
  padding: 0 22px 0 2px;
  border: 0;
  border-bottom: 1px solid rgb(241 236 225 / 18%);
  border-radius: 0;
  outline: 0;
  color: rgb(241 236 225 / 72%);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  appearance: none;
}

.sound-picker select:hover,
.sound-picker select:focus-visible {
  border-bottom-color: rgb(229 185 95 / 62%);
  color: var(--ink);
}

.sound-picker select option {
  color: #efe9dc;
  background: #17130f;
}

.sound-controls {
  display: flex;
  min-width: 0;
  grid-column: 2 / 4;
  align-items: center;
  gap: 12px;
}

.sound-volume {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: rgb(241 236 225 / 48%);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.sound-volume input {
  width: clamp(72px, 10vw, 108px);
  accent-color: #dca541;
}

.sound-status {
  color: rgb(241 236 225 / 39%);
  font-size: 9.5px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 15px;
    height: 26px;
    flex-basis: 15px;
  }

  .brand-mark::before {
    left: 3px;
    width: 9px;
    height: 15px;
  }

  .brand-mark::after {
    left: 7px;
    height: 10px;
  }

  .language-menu summary {
    height: 32px;
    padding-inline: 9px 7px;
    font-size: 10px;
  }

  .language-options {
    width: min(82vw, 238px);
  }

  .ritual-meta .sound-module {
    padding: 16px 0 0;
    border-top: 1px solid rgb(225 176 74 / 16%);
    border-left: 0;
    grid-template-columns: 36px minmax(0, 1fr) minmax(112px, 0.9fr);
    gap: 7px 10px;
  }

  .sound-track-name {
    font-size: 13px;
  }

  .sound-picker select {
    font-size: 10px;
  }

  .sound-controls {
    grid-column: 2 / 4;
    gap: 9px;
  }

  .sound-status {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark::before,
  .sound-toggle {
    transition: none;
  }
}

/* ── 40 · Prayer afterglow ───────────────────────────────────────────────
   The wall is the ritual's quiet continuation, not a separate form card.
   One light field, one moving message, one restrained place to respond. */
.prayer-wall {
  position: relative;
  isolation: isolate;
  width: min(100%, 1080px);
  margin: clamp(42px, 5.8vw, 78px) auto 0;
  padding: clamp(58px, 7vw, 92px) clamp(18px, 4.2vw, 58px) clamp(38px, 5vw, 64px);
  border-top: 0;
  color: #f1eadf;
  background:
    radial-gradient(ellipse 58% 21% at 50% 0%, rgb(255 246 211 / 15%), transparent 74%),
    radial-gradient(ellipse 38% 45% at 15% 44%, rgb(179 116 81 / 8%), transparent 72%),
    radial-gradient(ellipse 42% 46% at 88% 46%, rgb(98 118 150 / 7%), transparent 74%);
}

.prayer-wall::before {
  position: absolute;
  z-index: -1;
  top: -66px;
  left: 50%;
  width: min(82%, 720px);
  height: 146px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgb(255 247 221 / 18%) 0 6%, rgb(229 185 95 / 10%) 23%, transparent 69%);
  content: "";
  filter: blur(13px);
  opacity: 0.72;
  pointer-events: none;
  transform: translateX(-50%);
}

.prayer-wall::after {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: min(64%, 560px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(229 185 95 / 62%) 44% 56%, transparent);
  box-shadow: 0 0 24px rgb(229 185 95 / 28%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.memorial-ritual.ritual-complete + .prayer-wall::before {
  animation: prayer-afterglow-awaken 2.8s ease-out both;
}

@keyframes prayer-afterglow-awaken {
  from { opacity: 0; transform: translateX(-50%) scaleX(0.62); }
  to { opacity: 0.72; transform: translateX(-50%) scaleX(1); }
}

.prayer-wall-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.34fr);
  align-items: end;
  gap: clamp(28px, 5vw, 68px);
  max-width: 900px;
  margin: 0 auto;
}

.prayer-wall-heading::before {
  position: absolute;
  top: -30px;
  left: 0;
  width: 34px;
  height: 1px;
  background: var(--amber-soft);
  box-shadow: 43px 0 0 rgb(229 185 95 / 24%);
  content: "";
}

.prayer-wall-eyebrow {
  margin: 0 0 13px;
  color: #e8bc67;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.prayer-wall-heading h4 {
  max-width: 18em;
  margin: 0;
  color: #f4ede3;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.055em;
  text-wrap: balance;
}

.prayer-wall-heading > small {
  position: relative;
  padding: 0 0 5px 17px;
  color: rgb(229 219 204 / 55%);
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: 0.08em;
  white-space: normal;
}

.prayer-wall-heading > small::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dcae56;
  box-shadow: 0 0 12px rgb(229 185 95 / 54%);
  content: "";
}

.prayer-stream {
  position: relative;
  display: grid;
  width: min(100%, 920px);
  min-height: clamp(220px, 23vw, 282px);
  margin: clamp(44px, 6vw, 72px) auto 0;
  overflow: hidden;
  border: 0;
  border-radius: 50% / 18%;
  background:
    radial-gradient(ellipse 54% 70% at 50% 52%, rgb(255 247 230 / 8%), transparent 72%),
    linear-gradient(90deg, transparent, rgb(229 185 95 / 5%) 38% 62%, transparent);
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.prayer-stream::before,
.prayer-stream::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  width: 38%;
  height: 1px;
  content: "";
  pointer-events: none;
}

.prayer-stream::before {
  left: 0;
  background: linear-gradient(90deg, transparent, rgb(229 185 95 / 38%));
}

.prayer-stream::after {
  right: 0;
  background: linear-gradient(90deg, rgb(229 185 95 / 38%), transparent);
}

.prayer-constellation {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.prayer-constellation i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(255 229 171 / 72%);
  box-shadow: 0 0 12px rgb(229 185 95 / 78%);
  opacity: 0.45;
  animation: prayer-star-breathe 4.8s ease-in-out infinite alternate;
}

.prayer-constellation i:nth-child(1) { top: 22%; left: 12%; }
.prayer-constellation i:nth-child(2) { top: 70%; left: 21%; animation-delay: -1.7s; }
.prayer-constellation i:nth-child(3) { top: 31%; left: 34%; animation-delay: -3.1s; }
.prayer-constellation i:nth-child(4) { top: 67%; right: 31%; animation-delay: -0.9s; }
.prayer-constellation i:nth-child(5) { top: 26%; right: 18%; animation-delay: -2.6s; }
.prayer-constellation i:nth-child(6) { top: 73%; right: 10%; animation-delay: -4s; }

@keyframes prayer-star-breathe {
  from { opacity: 0.18; transform: scale(0.72); }
  to { opacity: 0.62; transform: scale(1.25); }
}

.prayer-message {
  position: relative;
  z-index: 1;
  width: min(76%, 720px);
  margin: 0 auto;
  padding: 34px clamp(12px, 3vw, 38px);
  text-align: center;
}

.prayer-message::before {
  display: block;
  width: 24px;
  height: 16px;
  margin: 0 auto 18px;
  color: rgb(229 185 95 / 76%);
  content: "✦";
  font-size: 15px;
  line-height: 1;
  text-shadow: 0 0 18px rgb(229 185 95 / 46%);
}

.prayer-message span {
  display: block;
  margin-bottom: 15px;
  color: #dcb365;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.prayer-message p {
  margin: 0;
  color: #f5eee4;
  font-family: var(--serif);
  font-size: clamp(23px, 3.2vw, 36px);
  line-height: 1.62;
  letter-spacing: 0.045em;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgb(255 237 202 / 8%);
}

.prayer-message.is-leaving {
  opacity: 0;
  transform: translate3d(9%, 0, 0) scale(0.985);
  transition: opacity 520ms ease, transform 520ms ease;
}

.prayer-message.is-entering {
  animation: prayer-enter-afterglow 980ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes prayer-enter-afterglow {
  from { opacity: 0; transform: translate3d(-9%, 0, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.prayer-compose {
  position: relative;
  display: grid;
  max-width: 900px;
  margin: clamp(28px, 4.8vw, 54px) auto 0;
  padding: clamp(27px, 3.4vw, 38px) 0 0;
  opacity: 0;
  border-top: 1px solid rgb(229 185 95 / 20%);
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 1.24fr);
  column-gap: clamp(34px, 6vw, 76px);
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.prayer-compose::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 74px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #dfad50, transparent);
  content: "";
  box-shadow: 0 0 18px rgb(229 185 95 / 28%);
}

.prayer-compose > p {
  margin: 0;
  color: #e9dfd1;
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.75;
  letter-spacing: 0.035em;
}

.prayer-presets {
  display: flex;
  align-self: end;
  gap: 10px 20px;
  grid-column: 1;
  margin-top: 22px;
  flex-wrap: wrap;
}

.prayer-presets button {
  position: relative;
  padding: 0 0 4px 13px;
  border: 0;
  border-bottom: 1px solid rgb(229 185 95 / 24%);
  color: rgb(233 223 209 / 66%);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.6;
}

.prayer-presets button::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.prayer-form {
  display: grid;
  overflow: hidden;
  align-self: start;
  min-height: 54px;
  border: 1px solid rgb(229 185 95 / 24%);
  border-radius: 18px;
  background: rgb(255 248 235 / 3.5%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
  grid-row: 1;
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.prayer-form:focus-within {
  border-color: rgb(229 185 95 / 54%);
  background: rgb(255 248 235 / 5%);
  box-shadow: 0 0 0 3px rgb(229 185 95 / 7%), inset 0 1px 0 rgb(255 255 255 / 4%);
}

.prayer-form input {
  min-width: 0;
  padding: 15px 16px 16px 19px;
  border: 0;
  outline: 0;
  color: #f4ede3;
  background: transparent;
  font: inherit;
}

.prayer-form button {
  align-self: center;
  min-height: 38px;
  margin-right: 7px;
  padding: 8px 15px;
  border: 1px solid rgb(229 185 95 / 36%);
  border-radius: 13px;
  color: #17110a;
  background: #dfad50;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.prayer-form button:hover,
.prayer-form button:focus-visible {
  background: #efc978;
  box-shadow: 0 5px 18px rgb(0 0 0 / 24%);
  transform: translateY(-1px);
}

.prayer-compose > small {
  grid-row: 2;
  grid-column: 2;
  margin: 11px 3px 0;
  color: rgb(218 207 191 / 44%);
  font-size: 10px;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .prayer-wall {
    width: 100%;
    margin-top: 38px;
    padding: 58px 18px 38px;
  }

  .prayer-wall::before {
    top: -48px;
    width: 92%;
    height: 116px;
  }

  .prayer-wall-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .prayer-wall-heading h4 {
    max-width: 14em;
    font-size: clamp(24px, 7.1vw, 30px);
    line-height: 1.48;
  }

  .prayer-wall-heading > small {
    max-width: 26em;
    padding-bottom: 0;
  }

  .prayer-stream {
    min-height: 236px;
    margin-top: 35px;
    border-radius: 46% / 13%;
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  }

  .prayer-message {
    width: 92%;
    padding: 28px 10px;
  }

  .prayer-message::before {
    margin-bottom: 14px;
  }

  .prayer-message p {
    font-size: clamp(21px, 6.1vw, 27px);
    line-height: 1.68;
  }

  .prayer-compose {
    margin-top: 26px;
    padding-top: 26px;
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .prayer-compose > p {
    max-width: 24em;
  }

  .prayer-presets {
    grid-column: 1;
    margin-top: -3px;
  }

  .prayer-form {
    min-height: 52px;
    border-radius: 16px;
    grid-row: auto;
    grid-column: 1;
  }

  .prayer-form input {
    padding-left: 15px;
    font-size: 14px;
  }

  .prayer-form button {
    padding-inline: 12px;
    font-size: 10px;
  }

  .prayer-compose > small {
    grid-row: auto;
    grid-column: 1;
    margin-top: -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prayer-constellation i,
  .memorial-ritual.ritual-complete + .prayer-wall::before {
    animation: none !important;
  }

  .prayer-message,
  .prayer-compose {
    transition: none !important;
  }
}

/* 32 — 統一夜間祈福景深：真實記憶是後景，燭光是前景，鐘只負責啟動。 */
.ritual-scene {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 52% 34%, rgb(111 70 37 / 18%), transparent 42%),
    linear-gradient(180deg, #100c09 0%, #090705 58%, #050403 100%);
  box-shadow:
    inset 0 0 0 1px rgb(226 188 118 / 11%),
    inset 0 -64px 90px rgb(0 0 0 / 38%);
}

.ritual-memory-presence {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0.48;
  filter: grayscale(0.36) sepia(0.22) brightness(0.58) contrast(1.12) saturate(0.74);
  mask-image: radial-gradient(ellipse 86% 78% at 55% 34%, #000 0 39%, rgb(0 0 0 / 94%) 54%, rgb(0 0 0 / 58%) 72%, transparent 96%);
  transform: scale(1.015);
}

.ritual-memory-presence img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: initial;
  object-position: initial;
}

.ritual-memory-presence::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(7 5 4 / 44%) 0%, transparent 22%, transparent 78%, rgb(7 5 4 / 42%) 100%),
    linear-gradient(180deg, rgb(7 5 4 / 10%) 0%, transparent 38%, rgb(7 5 4 / 70%) 82%, rgb(7 5 4 / 92%) 100%);
  content: "";
}

.ritual-scene-image {
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.14;
  object-fit: cover;
  object-position: center bottom;
  filter: brightness(0.26) saturate(0.44) contrast(1.08);
  mix-blend-mode: screen;
  transform: scale(1.012);
}

.ritual-candle-reveals {
  z-index: 4;
  inset: 0;
  height: 100%;
  mix-blend-mode: screen;
}

.ritual-scene-veil {
  z-index: 3;
  opacity: 0.2;
  background:
    radial-gradient(ellipse at 50% 70%, transparent 0 30%, rgb(7 5 4 / 12%) 58%, rgb(7 5 4 / 48%) 100%),
    linear-gradient(180deg, rgb(7 5 4 / 10%), transparent 40%, rgb(7 5 4 / 24%));
}

.ritual-paw-veil {
  z-index: 5;
  top: 69%;
  width: 33%;
  opacity: 0.92;
  background: radial-gradient(ellipse, rgb(8 6 4 / 96%) 0 44%, rgb(8 6 4 / 74%) 60%, transparent 76%);
}

.ritual-paw-aura {
  z-index: 5;
  top: 69%;
  width: 35%;
}

.light-button {
  z-index: 8;
  top: 63%;
  left: 50%;
  width: clamp(88px, 9vw, 116px);
  height: clamp(104px, 10.8vw, 138px);
  opacity: 0.9;
  filter: brightness(0.84) saturate(0.76);
}

.light-button::before {
  position: absolute;
  z-index: -1;
  inset: 8% 4% 0;
  border: 1px solid rgb(209 164 81 / 22%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(211 158 69 / 10%), transparent 68%);
  content: "";
}

.light-button::after {
  right: 20%;
  bottom: 2%;
  left: 20%;
  opacity: 0.64;
}

.memorial-ritual.is-lit .ritual-memory-presence {
  animation: ritual-memory-awaken-unified 7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    ritual-memory-breathe-unified 25s ease-in-out 7s infinite alternate;
}

.memorial-ritual.is-lit .ritual-scene-image {
  animation: ritual-scene-awaken-unified 6.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.memorial-ritual.is-lit .ritual-scene-veil {
  animation: ritual-veil-lift-unified 6.2s ease forwards;
}

.memorial-ritual.is-lit .ritual-candle-reveal {
  animation: ritual-candle-image-reveal-unified 760ms ease-out var(--candle-delay) forwards;
}

.memorial-ritual.is-lit .light-button {
  animation: ritual-bell-depart-unified 3.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ritual-memory-awaken-unified {
  0%, 28% {
    opacity: 0.48;
    filter: grayscale(0.36) sepia(0.22) brightness(0.58) contrast(1.12) saturate(0.74);
    transform: scale(1.015);
  }
  100% {
    opacity: 0.7;
    filter: grayscale(0.16) sepia(0.16) brightness(0.72) contrast(1.08) saturate(0.9);
    transform: scale(1.045);
  }
}

@keyframes ritual-memory-breathe-unified {
  from { transform: scale(1.045) translate3d(0, 0, 0); }
  to { transform: scale(1.065) translate3d(-0.4%, -0.3%, 0); }
}

@keyframes ritual-scene-awaken-unified {
  0%, 16% {
    opacity: 0.14;
    filter: brightness(0.26) saturate(0.44) contrast(1.08);
    transform: scale(1.012);
  }
  100% {
    opacity: 0.78;
    filter: brightness(0.86) saturate(0.88) contrast(1.02);
    transform: scale(1);
  }
}

@keyframes ritual-veil-lift-unified {
  0%, 34% { opacity: 0.2; }
  100% { opacity: 0.06; }
}

@keyframes ritual-candle-image-reveal-unified {
  0% { opacity: 0; }
  70% { opacity: 0.64; }
  100% { opacity: 0.5; }
}

@keyframes ritual-bell-depart-unified {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  22% { opacity: 0.88; transform: translate(-50%, -58%) scale(0.99); }
  100% { opacity: 0; transform: translate(-50%, -112%) scale(0.76); }
}

@media (max-width: 720px) {
  .ritual-scene {
    aspect-ratio: 4 / 3;
  }

  .ritual-memory-presence {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse 92% 80% at 56% 34%, #000 0 39%, rgb(0 0 0 / 92%) 56%, rgb(0 0 0 / 56%) 73%, transparent 97%);
  }

  .ritual-memory-presence img {
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: initial;
  }

  .ritual-paw-veil {
    top: 70%;
    width: 38%;
  }

  .ritual-paw-aura {
    top: 70%;
    width: 40%;
  }

  .light-button {
    top: 64%;
    width: clamp(70px, 19vw, 82px);
    height: clamp(84px, 23vw, 98px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .memorial-ritual.is-lit .ritual-memory-presence {
    opacity: 0.7;
    filter: grayscale(0.16) sepia(0.16) brightness(0.72) contrast(1.08) saturate(0.9);
    animation: none;
    transform: scale(1.045);
  }

  .memorial-ritual.is-lit .ritual-scene-image {
    opacity: 0.78;
    filter: brightness(0.86) saturate(0.88) contrast(1.02);
    animation: none;
    transform: none;
  }

  .memorial-ritual.is-lit .light-button {
    opacity: 0;
    animation: none;
    transform: translate(-50%, -112%) scale(0.76);
  }
}

/* ── 31 單一景深合成：記憶在後、燭圈在前、鐘只負責啟動儀式 ── */
.ritual-scene {
  background:
    radial-gradient(ellipse at 68% 22%, rgb(90 57 31 / 18%), transparent 38%),
    radial-gradient(ellipse at 50% 76%, rgb(82 43 21 / 12%), transparent 46%),
    #080605;
}

.ritual-scene-image,
.ritual-candle-reveals {
  inset: auto 0 0;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.ritual-scene-image {
  filter: brightness(0.11) saturate(0.28) contrast(1.12);
}

.ritual-memory-presence {
  top: 2%;
  right: 0;
  width: 70%;
  height: 60%;
  opacity: 0.28;
  filter: grayscale(0.44) sepia(0.16) brightness(0.64) contrast(1.06) saturate(0.7);
  mask-image: radial-gradient(ellipse at 66% 34%, #000 0 28%, rgb(0 0 0 / 82%) 48%, transparent 82%);
  transform: translate3d(1%, 0, 0) scale(1.035);
}

.ritual-memory-presence::after {
  background:
    linear-gradient(to left, rgb(7 5 4 / 35%), transparent 35%, rgb(7 5 4 / 28%)),
    linear-gradient(to bottom, transparent 34%, rgb(8 6 5 / 72%) 100%);
}

.ritual-memory-presence img {
  object-position: 50% 0%;
}

.ritual-scene-veil {
  opacity: 0.48;
  background:
    linear-gradient(to bottom, rgb(7 5 4 / 22%) 0, transparent 30%, rgb(7 5 4 / 8%) 58%, rgb(7 5 4 / 36%) 100%),
    radial-gradient(ellipse at 50% 69%, transparent 0 29%, rgb(7 5 4 / 18%) 59%, rgb(7 5 4 / 62%) 100%);
}

.ritual-paw-veil {
  top: 66%;
  width: 34%;
}

.ritual-paw-aura {
  top: 67%;
  width: 36%;
}

.light-button {
  top: 67%;
  left: 50%;
  width: clamp(96px, 9.4vw, 126px);
  height: clamp(114px, 11.3vw, 150px);
  opacity: 0.9;
  filter: brightness(0.82) saturate(0.72);
}

.light-button::after {
  position: absolute;
  z-index: -1;
  right: 18%;
  bottom: 3%;
  left: 18%;
  height: 12%;
  border-radius: 50%;
  background: rgb(207 158 70 / 14%);
  content: "";
  filter: blur(8px);
}

.memorial-ritual.is-lit .ritual-memory-presence {
  animation: ritual-memory-awaken-fused 7.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    ritual-memory-breathe-fused 24s ease-in-out 7.8s infinite alternate;
}

.memorial-ritual.is-lit .ritual-scene-image {
  animation-name: ritual-scene-awaken-fused;
}

.memorial-ritual.is-lit .ritual-scene-veil {
  animation-name: ritual-veil-lift-fused;
}

@keyframes ritual-memory-awaken-fused {
  0%, 34% {
    opacity: 0.28;
    filter: grayscale(0.44) sepia(0.16) brightness(0.64) contrast(1.06) saturate(0.7);
    transform: translate3d(1%, 0, 0) scale(1.035);
  }
  100% {
    opacity: 0.52;
    filter: grayscale(0.24) sepia(0.14) brightness(0.8) contrast(1.04) saturate(0.86);
    transform: translate3d(0, 0, 0) scale(1.065);
  }
}

.memorial-ritual.is-lit .light-button {
  animation-name: ritual-bell-depart-fused;
}

@keyframes ritual-memory-awaken-fused {
  0%, 34% {
    opacity: 0.19;
    filter: grayscale(0.42) sepia(0.16) brightness(0.58) contrast(1.06) saturate(0.72);
    transform: translate3d(1%, 0, 0) scale(1.035);
  }
  100% {
    opacity: 0.42;
    filter: grayscale(0.22) sepia(0.14) brightness(0.76) contrast(1.05) saturate(0.88);
    transform: translate3d(0, 0, 0) scale(1.065);
  }
}

@keyframes ritual-memory-breathe-fused {
  from { transform: translate3d(0, 0, 0) scale(1.065); }
  to { transform: translate3d(-0.8%, -0.5%, 0) scale(1.085); }
}

@keyframes ritual-scene-awaken-fused {
  0%, 52% { filter: brightness(0.11) saturate(0.28) contrast(1.12); }
  100% { filter: brightness(0.72) saturate(0.78) contrast(1.04); }
}

@keyframes ritual-veil-lift-fused {
  0%, 44% { opacity: 0.48; }
  100% { opacity: 0.13; }
}

@keyframes ritual-bell-depart-fused {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.09; transform: translate(-50%, -226%) scale(0.66); }
}

@media (max-width: 720px) {
  .ritual-scene {
    aspect-ratio: 4 / 3;
  }

  .ritual-memory-presence {
    top: 1%;
    right: -2%;
    width: 72%;
    height: 48%;
    mask-image:
      radial-gradient(ellipse at 56% 34%, #000 0 38%, rgb(0 0 0 / 76%) 56%, transparent 84%),
      linear-gradient(to bottom, transparent 0%, #000 10%, #000 60%, transparent 100%);
  }

  .ritual-paw-veil {
    top: 68%;
    width: 38%;
  }

  .ritual-paw-aura {
    top: 69%;
    width: 40%;
  }

  .light-button {
    top: 69%;
    width: clamp(72px, 19vw, 86px);
    height: clamp(86px, 23vw, 102px);
  }

  .memorial-ritual.is-lit .light-button {
    animation-name: ritual-bell-depart-fused-mobile;
  }

  @keyframes ritual-bell-depart-fused-mobile {
    0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.08; transform: translate(-50%, -190%) scale(0.64); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .memorial-ritual.is-lit .ritual-memory-presence {
    opacity: 0.42;
    animation: none;
    transform: scale(1.065);
  }

  .memorial-ritual.is-lit .light-button {
    opacity: 0.09;
    animation: none;
    transform: translate(-50%, -226%) scale(0.66);
  }
}

/* Creator support sits after the advocacy flow and never competes with it. */
.creator-support {
  display: grid;
  width: min(calc(100% - var(--gutter) * 2), var(--w-standard));
  margin: 0 auto;
  padding: clamp(76px, 8vw, 112px) 0 clamp(34px, 4vw, 52px);
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  justify-content: center;
  gap: clamp(64px, 8vw, 112px);
}

.creator-support-eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.creator-support h2 {
  max-width: 15em;
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: 0.035em;
}

.creator-support-intro > p:last-child {
  max-width: 42em;
  margin: 26px 0 0;
  color: rgb(233 223 209 / 68%);
  font-size: 15px;
  line-height: 1.9;
}

.creator-support-details {
  align-self: end;
}

.creator-support-details dl {
  margin: 0;
}

.creator-support-details dl > div {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid rgb(233 223 209 / 12%);
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
}

.creator-support-details dt {
  color: var(--amber-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.creator-support-details dd {
  margin: 0;
  color: rgb(233 223 209 / 64%);
  font-size: 13px;
  line-height: 1.75;
}

.creator-support-status {
  display: inline-block;
  margin: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid rgb(229 185 95 / 36%);
  color: rgb(229 185 95 / 72%);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.creator-support-meta {
  display: flex;
  width: min(100%, 360px);
  flex-wrap: wrap;
  align-items: stretch;
  justify-self: end;
  margin-top: 0;
  grid-column: 2;
  gap: 9px;
}

.creator-support-meta > * {
  width: 100%;
}

.creator-support-meta .creator-support-status {
  padding: 0 10px 10px;
  text-align: center;
}

.creator-support-paypal {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgb(229 185 95 / 22%);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgb(0 112 186 / 9%), transparent 40%),
    linear-gradient(145deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 1.5%));
  box-shadow:
    0 10px 24px rgb(0 0 0 / 14%),
    inset 0 1px 0 rgb(255 255 255 / 6%);
  gap: 10px;
}

.creator-support-paypal::after {
  position: absolute;
  inset: auto -58px -76px auto;
  width: 170px;
  height: 170px;
  border: 1px solid rgb(0 156 222 / 18%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.creator-support-paypal-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-support-paypal-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #003087, #009cde);
  box-shadow: 0 8px 20px rgb(0 112 186 / 22%);
  color: #fff;
  font: italic 800 17px/1 Arial, sans-serif;
}

.creator-support-paypal-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: rgb(135 205 240 / 82%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.creator-support-paypal-header strong {
  display: block;
  color: rgb(255 250 242 / 96%);
  font-size: 15px;
  line-height: 1.35;
}

.creator-support-paypal-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.creator-support-paypal-qr {
  display: grid;
  margin: 0;
  text-align: center;
  gap: 5px;
}

.creator-support-paypal-qr-frame {
  display: grid;
  aspect-ratio: 1;
  padding: 5px;
  place-items: center;
  border-radius: 12px;
  background: #fff8ea;
  box-shadow:
    0 12px 28px rgb(0 0 0 / 30%),
    0 0 0 1px rgb(255 255 255 / 12%);
}

.creator-support-paypal-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.creator-support-paypal-qr figcaption {
  color: rgb(233 223 209 / 62%);
  font-size: 9px;
  line-height: 1.45;
}

.creator-support-paypal-content {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.creator-support-paypal-account {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid rgb(229 185 95 / 24%);
  border-radius: 11px;
  background: rgb(9 9 9 / 38%);
  color: inherit;
  text-align: left;
  cursor: pointer;
  gap: 6px;
}

.creator-support-paypal-account small {
  display: block;
  margin-bottom: 4px;
  color: rgb(233 223 209 / 54%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.creator-support-paypal-account code {
  display: block;
  overflow-wrap: anywhere;
  color: rgb(255 221 145 / 92%);
  font: 700 10px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.creator-support-paypal-copy {
  align-self: flex-start;
  min-width: 48px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgb(229 185 95 / 13%);
  color: rgb(255 229 172 / 92%);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.creator-support-paypal-account:hover,
.creator-support-paypal-account:focus-visible {
  border-color: rgb(229 185 95 / 58%);
  background: rgb(229 185 95 / 8%);
}

.creator-support-paypal-open {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgb(80 166 220 / 34%);
  background: linear-gradient(135deg, rgb(0 112 186 / 34%), rgb(0 48 135 / 28%));
  box-shadow: 0 8px 18px rgb(0 72 139 / 11%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.creator-support-paypal-open svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.creator-support-paypal-open:hover,
.creator-support-paypal-open:focus-visible {
  background: linear-gradient(135deg, rgb(0 112 186 / 52%), rgb(0 48 135 / 42%));
  color: #fff;
  transform: translateY(-1px);
}

.creator-support-paypal-hint {
  margin: 0;
  color: rgb(233 223 209 / 58%);
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .creator-support-meta {
    width: min(100%, 320px);
  }

  .creator-support-paypal {
    padding: 14px;
    border-radius: 16px;
  }

  .creator-support-paypal-layout {
    grid-template-columns: 1fr;
  }

  .creator-support-paypal-qr {
    display: none;
  }

  .creator-support-paypal-copy {
    min-width: 0;
  }
}

.creator-support-contact {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  color: rgb(233 223 209 / 54%);
  font-size: 11px;
  line-height: 1.7;
  gap: 4px 8px;
}

.creator-support-meta .creator-support-contact {
  justify-content: center;
  text-align: center;
}

.creator-support-contact a {
  color: rgb(233 223 209 / 82%);
  text-decoration-color: rgb(229 185 95 / 44%);
  text-underline-offset: 4px;
}

.creator-support-contact a:hover {
  color: var(--amber-soft);
  text-decoration-color: currentcolor;
}

@media (max-width: 820px) {
  .creator-support {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .creator-support-meta {
    grid-column: 1;
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .creator-support {
    padding-top: 72px;
    padding-bottom: 42px;
    gap: 38px;
  }

  .creator-support h2 {
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.42;
  }

  .creator-support-details dl > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .creator-support-meta {
    margin-top: 16px;
    gap: 10px;
  }
}

/* ── 27 Final editorial harmonisation ───────────────────────
   One calm reading rhythm, one compact interaction language. */

.section {
  padding-top: clamp(88px, 8vw, 124px);
  padding-bottom: clamp(88px, 8vw, 124px);
}

.section-heading {
  max-width: 800px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.section-heading h2,
.demands-lead h2,
.fundraising-heading h2,
.safety-card h2,
.share-copy h2 {
  max-width: 22em;
  line-height: 1.36;
  text-wrap: balance;
}

.brief-grid,
.timeline-list,
.demand-list,
.global-action-grid,
.sources-list {
  margin-top: clamp(30px, 4vw, 52px);
}

.petition-grid {
  width: min(calc(100% - var(--gutter) * 2), var(--w-standard));
  padding: clamp(68px, 6vw, 92px) 0;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(64px, 8vw, 124px);
}

.petition-action {
  position: relative;
  padding-left: clamp(28px, 4vw, 56px);
}

.petition-action::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.petition-button {
  width: min(100%, 360px);
  min-height: 62px;
  border-radius: 999px;
  box-shadow: 0 9px 0 rgb(0 0 0 / 18%);
}

.petition-button:hover {
  box-shadow: 0 12px 0 rgb(0 0 0 / 22%);
  transform: translateY(-2px);
}

.primary-link {
  width: min(100%, 300px);
  border-radius: 999px;
  box-shadow: 0 8px 0 rgb(0 0 0 / 18%);
}

.primary-link:hover {
  box-shadow: 0 11px 0 rgb(0 0 0 / 22%);
}

/* Language control: compact selector, editorial popover. */
.language-menu summary {
  min-width: 76px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgb(241 236 225 / 18%);
  border-radius: 999px;
  gap: 7px;
  background: rgb(15 13 11 / 52%);
  backdrop-filter: blur(10px);
}

.language-menu summary:hover,
.language-menu[open] summary {
  border-color: rgb(229 185 95 / 68%);
  background: rgb(27 23 19 / 92%);
}

.language-glyph {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  color: var(--amber-soft);
  background: transparent;
  font-size: 10px;
}

.language-options {
  width: 258px;
  padding: 9px;
  border-color: rgb(229 185 95 / 24%);
  border-radius: 12px;
  background: rgb(20 17 14 / 98%);
  box-shadow: 0 22px 64px rgb(0 0 0 / 58%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
}

.language-options button {
  position: relative;
  min-height: 42px;
  padding: 0 10px 0 22px;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
}

.language-options button::before {
  position: absolute;
  top: 50%;
  left: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  content: "";
  transform: translateY(-50%);
}

.language-options button:hover,
.language-options button:focus-visible,
.language-options button.active {
  border: 0;
  color: var(--ink);
  background: rgb(241 236 225 / 7%);
}

.language-options button.active::before {
  background: var(--amber-soft);
  box-shadow: 0 0 0 3px rgb(229 185 95 / 12%);
}

/* Photographs belong to the story rather than sitting in cards. */
.story-image,
.editorial-interlude,
.memorial-photo .photo-frame {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.story-image,
.editorial-interlude {
  overflow: clip;
  border-radius: 2px;
}

.story-image::before,
.editorial-interlude::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  box-shadow: inset 0 0 44px 18px rgb(15 13 11 / 34%);
  content: "";
  pointer-events: none;
}

.memorial-inner {
  width: min(calc(100% - var(--gutter) * 2), var(--w-standard));
  padding: clamp(88px, 8vw, 124px) 0 clamp(68px, 7vw, 104px);
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(72px, 9vw, 132px);
}

.memorial-photo {
  position: relative;
}

.memorial-photo::after {
  position: absolute;
  inset: auto -2px -2px -2px;
  height: 28%;
  background: linear-gradient(to bottom, transparent, var(--night-soft));
  content: "";
  pointer-events: none;
}

.memorial-photo img {
  -webkit-mask-image: linear-gradient(to bottom, #000 0 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 78%, transparent 100%);
}

.memorial-photo figcaption {
  position: relative;
  z-index: 2;
}

/* Integrated memorial ritual: bell → slow ascent → candles → paw. */
.memorial-ritual {
  display: block;
  width: min(calc(100% - var(--gutter) * 2), var(--w-standard));
  padding: 0 0 clamp(92px, 8vw, 132px);
  border-top: 0;
}

.ritual-heading {
  display: grid;
  width: min(100%, 760px);
  margin: 0 auto clamp(32px, 4vw, 52px);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.ritual-heading > span {
  height: 1px;
  background: linear-gradient(to right, transparent, rgb(229 185 95 / 30%));
}

.ritual-heading > span:last-child {
  background: linear-gradient(to left, transparent, rgb(229 185 95 / 30%));
}

.ritual-heading h3 {
  margin: 0;
  color: var(--amber-soft);
  font-family: var(--serif);
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
}

.ritual-stage {
  width: 100%;
}

.ritual-scene {
  width: 100%;
  max-width: 1120px;
  aspect-ratio: 16 / 9;
  border-top: 1px solid rgb(229 185 95 / 18%);
  border-bottom: 1px solid var(--line);
  background: #080605;
}

.ritual-scene::after {
  position: absolute;
  z-index: 6;
  inset: 0;
  background:
    linear-gradient(to right, rgb(8 6 5 / 30%), transparent 22%, transparent 78%, rgb(8 6 5 / 30%)),
    linear-gradient(to bottom, rgb(8 6 5 / 18%), transparent 24%, transparent 78%, rgb(8 6 5 / 36%));
  content: "";
  pointer-events: none;
}

.light-button {
  z-index: 8;
  top: 57%;
  width: clamp(158px, 15.5vw, 210px);
  height: clamp(190px, 18.6vw, 252px);
  opacity: 1;
  filter: brightness(1.06) drop-shadow(0 18px 26px rgb(0 0 0 / 52%));
  will-change: transform, opacity;
}

.ritual-bell-handle {
  border-width: 4px;
}

.ritual-bell-body {
  border-color: #f2cc78;
  background:
    radial-gradient(circle at 36% 24%, rgb(255 244 204 / 62%), transparent 23%),
    linear-gradient(90deg, #4d290e 0%, #a76520 17%, #f0c96c 47%, #bd7828 70%, #48260d 100%);
}

.memorial-ritual.is-lit .light-button {
  pointer-events: none;
  animation: ritual-bell-rise-smooth 4.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.memorial-ritual.ritual-complete .ritual-bell {
  animation: ritual-bell-rest 6.8s ease-in-out infinite;
  transform-origin: 50% 12%;
}

.ritual-smoke {
  z-index: 7;
}

.ritual-smoke i {
  bottom: 27%;
  left: 50%;
  width: clamp(68px, 8vw, 96px);
  height: clamp(220px, 28vw, 320px);
  border-left: 2px solid rgb(255 249 237 / 58%);
  border-radius: 58% 42% 48% 52%;
  background: none;
  filter: blur(2.2px) brightness(1.22) drop-shadow(0 0 8px rgb(241 232 214 / 15%));
  mix-blend-mode: screen;
  transform-origin: 50% 100%;
}

.ritual-smoke i:nth-child(2) {
  border-right: 1px solid rgb(255 249 237 / 42%);
  border-left: 0;
  border-radius: 42% 58% 54% 46%;
}

.ritual-smoke i:nth-child(3) {
  width: clamp(48px, 5.8vw, 70px);
  border-left-color: rgb(255 249 237 / 34%);
}

.memorial-ritual.is-lit .ritual-smoke i {
  bottom: 27%;
  animation: ritual-incense-smoke 9.4s cubic-bezier(0.2, 0.7, 0.25, 1) 760ms forwards;
}

.memorial-ritual.is-lit .ritual-smoke i:nth-child(2) {
  left: 48.4%;
  animation-delay: 1.45s !important;
}

.memorial-ritual.is-lit .ritual-smoke i:nth-child(3) {
  left: 51.6%;
  animation-delay: 2.15s !important;
}

.ritual-meta {
  width: min(100%, 980px);
  padding-top: 24px;
  gap: clamp(28px, 5vw, 64px);
}

.ritual-return {
  position: absolute;
  z-index: 9;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(16px, 2.6vw, 28px);
  display: inline-flex;
  min-height: 36px;
  margin: 18px auto 0;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgb(229 185 95 / 46%);
  align-items: center;
  gap: 8px;
  color: #e9d7ac;
  background: rgb(10 8 6 / 54%);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ritual-return[hidden] {
  display: none;
}

.ritual-return:hover,
.ritual-return:focus-visible {
  border-bottom-color: var(--amber-soft);
  color: #f0cf8a;
}

@keyframes ritual-bell-rise-smooth {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.94;
    transform: translate(-50%, -154%) scale(0.92);
  }
}

@keyframes ritual-bell-rest {
  0%, 100% {
    transform: translateY(0) rotate(0.18deg);
  }
  50% {
    transform: translateY(-1px) rotate(-0.32deg);
  }
}

@keyframes ritual-incense-smoke {
  0% { opacity: 0; transform: translate(-50%, 42px) scale(0.58, 0.38) rotate(-2deg); }
  16% { opacity: 0.3; }
  38% { opacity: 0.24; transform: translate(-63%, -34px) scale(0.82, 0.78) rotate(3deg); }
  62% { opacity: 0.17; transform: translate(-36%, -106px) scale(1.02, 1.04) rotate(-4deg); }
  82% { opacity: 0.11; transform: translate(-59%, -178px) scale(1.14, 1.18) rotate(4deg); }
  100% { opacity: 0; transform: translate(-32%, -258px) scale(1.28, 1.3) rotate(-3deg); }
}

/* Prevent Latin words from breaking into visually awkward fragments. */
html[data-language="en"] h1,
html[data-language="en"] h2,
html[data-language="en"] h3,
html[data-language="es"] h1,
html[data-language="es"] h2,
html[data-language="es"] h3,
html[data-language="vi"] h1,
html[data-language="vi"] h2,
html[data-language="vi"] h3 {
  max-width: 24em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

html[data-language="ja"] h1,
html[data-language="ja"] h2,
html[data-language="ja"] h3 {
  line-break: strict;
  overflow-wrap: normal;
  word-break: auto-phrase;
  text-wrap: balance;
}

@media (max-width: 980px) {
  :root {
    --gutter: 28px;
  }

  .petition-grid,
  .memorial-inner {
    grid-template-columns: 1fr;
  }

  .petition-grid {
    gap: 44px;
  }

  .petition-action {
    padding: 36px 0 0;
  }

  .petition-action::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .memorial-inner {
    gap: 52px;
  }

  .memorial-photo {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .petition-grid {
    padding: 64px 0 72px;
  }

  .petition-count strong {
    font-size: clamp(62px, 18vw, 78px);
  }

  .petition-button {
    width: min(100%, 328px);
    min-height: 60px;
    padding-inline: 24px;
  }

  .primary-link {
    width: min(82vw, 286px);
  }

  html[data-language="en"] .primary-link,
  html[data-language="es"] .primary-link,
  html[data-language="vi"] .primary-link {
    width: min(88vw, 324px);
  }

  .language-menu summary {
    min-width: 66px;
    height: 36px;
  }

  .language-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(272px, calc(100vw - 32px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memorial-inner {
    padding: 76px 0 60px;
    gap: 42px;
  }

  .memorial-photo {
    width: calc(100% + 12px);
    max-width: none;
    margin-left: -6px;
  }

  .memorial-ritual {
    padding-bottom: 88px;
  }

  .ritual-scene {
    width: calc(100% + 16px);
    aspect-ratio: 1;
    margin-left: -8px;
    border-right: 1px solid rgb(229 185 95 / 14%);
    border-left: 1px solid rgb(229 185 95 / 14%);
  }

  .ritual-scene-image {
    object-fit: contain;
    object-position: center;
  }

  .light-button {
    top: 55%;
    width: clamp(104px, 28vw, 132px);
    height: clamp(128px, 34vw, 158px);
  }

  .memorial-ritual.is-lit .light-button {
    animation-name: ritual-bell-rise-mobile;
  }

  .ritual-meta {
    padding-top: 20px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ritual-meta .sound-module {
    padding-top: 18px;
  }

  html[data-language="en"] .hero h1,
  html[data-language="es"] .hero h1,
  html[data-language="vi"] .hero h1 {
    max-width: 15em;
    font-size: clamp(28px, 7.8vw, 34px);
    line-height: 1.28;
  }

  html[data-language="ja"] .hero h1 {
    max-width: 14em;
    font-size: clamp(28px, 7.7vw, 33px);
    line-height: 1.38;
  }

  @keyframes ritual-bell-rise-mobile {
    0% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
    100% {
      opacity: 0.94;
      transform: translate(-50%, -118%) scale(0.88);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .memorial-ritual.is-lit .light-button {
    opacity: 0.94;
    transform: translate(-50%, -154%) scale(0.92);
  }

  .memorial-ritual.is-lit .ritual-smoke i {
    display: none;
  }

  .memorial-ritual.ritual-complete .ritual-bell {
    animation: none;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .memorial-ritual.is-lit .light-button {
    transform: translate(-50%, -118%) scale(0.88);
  }
}

/* ── Memorial carousel + worldwide prayer wall ───────────────────────────
   The wall remains a local prototype: motion creates presence without
   implying a real submission count or a live global feed. */
.memorial-carousel {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.memorial-slides {
  display: grid;
  aspect-ratio: 3 / 4;
}

.memorial-slide {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  transform: scale(1.025);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 7.2s ease-out;
  pointer-events: none;
}

.memorial-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.memorial-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memorial-carousel-ui {
  position: absolute;
  z-index: 4;
  right: clamp(14px, 2.2vw, 24px);
  bottom: clamp(42px, 6vw, 64px);
  left: clamp(14px, 2.2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f5eee2;
  text-shadow: 0 1px 10px rgb(0 0 0 / 64%);
}

.memorial-carousel-index {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.memorial-carousel-index b {
  color: var(--amber-soft);
  font-size: 17px;
}

.memorial-carousel-index i {
  opacity: 0.45;
  font-style: normal;
}

.memorial-carousel-controls {
  display: flex;
  gap: 6px;
}

.memorial-carousel-controls button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgb(245 238 226 / 34%);
  border-radius: 50%;
  color: #f5eee2;
  background: rgb(10 8 6 / 52%);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 16px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.memorial-carousel-controls button:hover,
.memorial-carousel-controls button:focus-visible {
  border-color: var(--amber-soft);
  background: rgb(10 8 6 / 76%);
  transform: translateY(-1px);
}

.prayer-wall {
  width: min(100%, 980px);
  margin: clamp(76px, 8vw, 118px) auto 0;
  padding-top: clamp(34px, 4.6vw, 54px);
  border-top: 1px solid rgb(229 185 95 / 24%);
}

.prayer-wall-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.prayer-wall-eyebrow {
  margin: 0 0 10px;
  color: var(--amber-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.prayer-wall-heading h4 {
  max-width: 19em;
  margin: 0;
  color: #f0e9dd;
  font-family: var(--serif);
  font-size: clamp(24px, 3.1vw, 38px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.045em;
}

.prayer-wall-heading > small {
  padding-bottom: 6px;
  color: rgb(218 207 191 / 48%);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.prayer-stream {
  position: relative;
  display: grid;
  min-height: clamp(168px, 19vw, 218px);
  margin-top: clamp(32px, 4.8vw, 52px);
  overflow: clip;
  border-top: 1px solid rgb(240 233 221 / 8%);
  border-bottom: 1px solid rgb(240 233 221 / 8%);
  align-items: center;
}

.prayer-stream::before,
.prayer-stream::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 12%;
  content: "";
  pointer-events: none;
}

.prayer-stream::before {
  left: 0;
  background: linear-gradient(to right, var(--night-soft), transparent);
}

.prayer-stream::after {
  right: 0;
  background: linear-gradient(to left, var(--night-soft), transparent);
}

.prayer-message {
  width: min(82%, 760px);
  margin: 0 auto;
  opacity: 1;
  transform: translateX(0);
}

.prayer-message span {
  display: block;
  margin-bottom: 15px;
  color: var(--amber-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.prayer-message p {
  margin: 0;
  color: #eee6da;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.55;
  letter-spacing: 0.035em;
}

.prayer-message.is-leaving {
  opacity: 0;
  transform: translateX(7%);
  transition: opacity 420ms ease, transform 420ms ease;
}

.prayer-message.is-entering {
  animation: prayer-enter 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes prayer-enter {
  from { opacity: 0; transform: translateX(-7%); }
  to { opacity: 1; transform: translateX(0); }
}

.prayer-compose {
  display: grid;
  margin-top: clamp(34px, 4.6vw, 52px);
  opacity: 0;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  column-gap: clamp(38px, 6vw, 72px);
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.prayer-compose[hidden] {
  display: none;
}

.prayer-compose.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.prayer-compose > p {
  margin: 0;
  color: #e9dfd1;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.prayer-presets {
  display: flex;
  align-self: end;
  gap: 18px;
  grid-column: 1;
  margin-top: 20px;
}

.prayer-presets button {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgb(229 185 95 / 32%);
  color: rgb(233 223 209 / 66%);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  transition: color 180ms ease, border-color 180ms ease;
}

.prayer-presets button:hover,
.prayer-presets button:focus-visible {
  border-bottom-color: var(--amber-soft);
  color: var(--amber-soft);
}

.prayer-form {
  display: grid;
  grid-row: 1;
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  align-self: start;
  border-bottom: 1px solid rgb(240 233 221 / 28%);
}

.prayer-form input {
  min-width: 0;
  padding: 13px 8px 14px 0;
  border: 0;
  outline: 0;
  color: #f4ede3;
  background: transparent;
  font: inherit;
}

.prayer-form input::placeholder {
  color: rgb(218 207 191 / 42%);
}

.prayer-form:focus-within {
  border-bottom-color: var(--amber-soft);
}

.prayer-form button {
  padding: 8px 0 8px 18px;
  border: 0;
  color: var(--amber-soft);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.prayer-compose > small {
  grid-row: 2;
  grid-column: 2;
  margin-top: 12px;
  color: rgb(218 207 191 / 42%);
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .memorial-carousel-ui {
    bottom: 38px;
  }

  .memorial-carousel-controls button {
    width: 36px;
    height: 36px;
  }

  .prayer-wall {
    margin-top: 72px;
    padding-top: 34px;
  }

  .prayer-wall-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .prayer-wall-heading > small {
    padding: 0;
    white-space: normal;
  }

  .prayer-stream {
    min-height: 184px;
    margin-top: 30px;
  }

  .prayer-message {
    width: 88%;
  }

  .prayer-message p {
    font-size: clamp(21px, 6.4vw, 27px);
    line-height: 1.58;
  }

  .prayer-compose {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .prayer-presets {
    grid-column: 1;
    margin-top: -8px;
    flex-wrap: wrap;
  }

  .prayer-form {
    grid-row: auto;
    grid-column: 1;
  }

  .prayer-compose > small {
    grid-row: auto;
    grid-column: 1;
    margin-top: -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memorial-slide,
  .prayer-message,
  .prayer-compose {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ── 28 Hero rhythm + compact editorial actions ───────────────────────────
   The petition action should be unmistakable without behaving like a
   full-width SaaS pill.  A measured button and deliberate vertical rhythm
   let the title, evidence and memorial image breathe as one composition. */

.hero-inner {
  padding-top: clamp(54px, 5.2vw, 78px);
  padding-bottom: clamp(62px, 5.8vw, 88px);
  align-items: center;
}

.hero-copy {
  align-self: center;
  padding-top: 0;
}

.hero-copy .eyebrow {
  margin-bottom: 0;
}

.hero h1 {
  margin-top: clamp(20px, 2vw, 28px);
  letter-spacing: var(--track-h);
  line-height: 1.36;
}

.hero-deck {
  margin-top: clamp(30px, 2.8vw, 40px);
  line-height: 1.95;
}

.hero-tags {
  margin-top: clamp(26px, 2.3vw, 34px);
}

.primary-link,
.petition-button {
  width: max-content;
  max-width: 100%;
  min-height: 50px;
  justify-content: flex-start;
  padding: 0 14px 0 18px;
  border: 1px solid rgb(229 185 95 / 78%);
  border-radius: 3px;
  gap: 18px;
  background: var(--amber);
  box-shadow: 0 10px 28px rgb(0 0 0 / 20%);
  font-size: 13.5px;
  letter-spacing: 0.035em;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}

.primary-link {
  width: max-content;
  max-width: min(100%, 310px);
  min-height: 50px;
  margin-top: clamp(32px, 3vw, 42px);
}

.petition-button {
  width: max-content;
  max-width: min(100%, 350px);
  min-height: 54px;
  margin-top: clamp(30px, 3vw, 42px);
  padding-left: 20px;
  font-size: 14px;
}

.primary-link > span[aria-hidden],
.petition-button > span[aria-hidden] {
  display: grid;
  width: 25px;
  min-height: 24px;
  padding-left: 11px;
  border-left: 1px solid rgb(29 21 8 / 28%);
  place-items: center;
  flex: 0 0 auto;
  font-size: 13px;
}

.primary-link:hover,
.petition-button:hover {
  background: var(--amber-soft);
  box-shadow: 0 13px 32px rgb(0 0 0 / 25%);
  transform: translateY(-2px);
}

.primary-link:active,
.petition-button:active {
  box-shadow: 0 5px 15px rgb(0 0 0 / 22%);
  transform: translateY(1px);
}

.hero-note {
  margin-top: clamp(26px, 2.4vw, 34px);
}

html[data-language="en"] .primary-link,
html[data-language="es"] .primary-link,
html[data-language="vi"] .primary-link {
  width: min(100%, 330px);
}

html[data-language="en"] .petition-button,
html[data-language="es"] .petition-button,
html[data-language="vi"] .petition-button {
  width: min(100%, 360px);
}

@media (max-width: 720px) {
  .hero-inner {
    padding-top: 42px;
    padding-bottom: 54px;
  }

  .hero h1 {
    margin-top: 22px;
    letter-spacing: var(--track-h);
    line-height: 1.43;
  }

  .hero-deck {
    margin-top: 28px;
    font-size: 14.5px;
    line-height: 2;
  }

  .hero-tags {
    margin-top: 24px;
  }

  .primary-link {
    width: max-content;
    max-width: calc(100vw - var(--gutter) * 2);
    min-height: 48px;
    margin-top: 30px;
    padding-right: 13px;
    padding-left: 17px;
    gap: 16px;
    font-size: 13px;
  }

  .petition-button {
    width: max-content;
    max-width: 100%;
    min-height: 52px;
    padding-right: 14px;
    padding-left: 18px;
    gap: 18px;
    font-size: 13.5px;
  }

  html[data-language="en"] .primary-link,
  html[data-language="es"] .primary-link,
  html[data-language="vi"] .primary-link,
  html[data-language="en"] .petition-button,
  html[data-language="es"] .petition-button,
  html[data-language="vi"] .petition-button {
    width: min(100%, 318px);
  }

  .hero-visual {
    margin-top: 40px;
  }

  .hero-note {
    margin-top: 24px;
  }
}

/* ── 29 Progressive disclosure + petition action hierarchy ────────────────
   JS inserts `.copy-toggle` immediately after long paragraphs.  It must be
   a block-level secondary action; otherwise it shares an inline formatting
   context with the petition button and visually collides with the CTA. */

.petition-action > p:not(.trust-line) {
  margin-top: clamp(26px, 2.4vw, 34px);
}

.petition-action .copy-toggle {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  margin: 13px 0 0;
}

.petition-button {
  display: flex;
  min-height: 48px;
  margin-top: clamp(30px, 2.8vw, 38px);
  padding-right: 12px;
  padding-left: 17px;
  border-radius: 2px;
  gap: 14px;
  box-shadow: inset 0 1px rgb(255 255 255 / 14%);
  font-size: 13px;
  font-weight: 650;
}

.petition-button:hover {
  box-shadow: inset 0 1px rgb(255 255 255 / 18%), 0 8px 22px rgb(0 0 0 / 18%);
}

.petition-action .trust-line {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .copy-toggle {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 13px 0 0;
  }

  .petition-action {
    padding-top: 42px;
  }

  .petition-action > p:not(.trust-line) {
    margin-top: 26px;
    line-height: 1.95;
  }

  .petition-action .copy-toggle {
    margin-top: 14px;
  }

  .petition-button {
    display: flex;
    width: max-content;
    max-width: 100%;
    min-height: 44px;
    margin-top: 30px;
    padding-right: 11px;
    padding-left: 15px;
    gap: 12px;
    font-size: 12.5px;
  }

  .petition-button > span[aria-hidden] {
    width: 23px;
    min-height: 21px;
    padding-left: 9px;
    font-size: 12px;
  }

  .petition-action .trust-line {
    margin-top: 17px;
    line-height: 1.8;
  }
}

/* ── 30 Living documentary motion system ────────────────────────────────
   Motion is editorial punctuation, not decoration: it reveals chapters,
   keeps the reading position visible and gives documentary images a quiet
   sense of presence. All effects are transform/opacity based and disabled
   when the visitor requests reduced motion. */

.site-header {
  backdrop-filter: blur(14px) saturate(0.9);
  background: rgb(15 13 11 / 90%);
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  overflow: hidden;
  height: 2px;
  pointer-events: none;
}

.reading-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0 68%, var(--amber) 100%);
  box-shadow: 0 0 12px rgb(217 164 65 / 32%);
  transform: scaleX(0);
  transform-origin: left center;
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--red-text);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transition: opacity 220ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.desktop-nav a.active {
  color: var(--ink);
}

.desktop-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -28%;
  right: -12%;
  width: min(62vw, 920px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(217 164 65 / 12%), rgb(142 42 49 / 4%) 42%, transparent 70%);
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.motion-enabled .motion-reveal {
  opacity: 0;
  filter: saturate(0.78);
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--motion-delay, 0ms),
    transform 840ms cubic-bezier(0.22, 1, 0.36, 1) var(--motion-delay, 0ms),
    filter 900ms ease var(--motion-delay, 0ms);
}

.motion-enabled .timeline-list > article.motion-reveal,
.motion-enabled .demand-list > li.motion-reveal,
.motion-enabled .source-list > *.motion-reveal {
  transform: translate3d(18px, 0, 0);
}

.motion-enabled .motion-reveal.is-in-view {
  opacity: 1;
  filter: saturate(1);
  transform: translate3d(0, 0, 0);
}

.timeline-list article::before {
  transition: background-color 400ms ease, box-shadow 500ms ease, transform 500ms ease;
}

.timeline-list article.is-in-view::before {
  background: var(--red);
  box-shadow: 0 0 0 5px var(--bg), 0 0 18px rgb(142 42 49 / 28%);
  transform: scale(1.18);
}

.timeline-list article.ongoing.is-in-view::before {
  background: var(--bg);
}

.story-image,
.editorial-interlude,
.memorial-photo {
  overflow: hidden;
}

.story-image img,
.editorial-interlude img {
  transform: scale(1.025);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1), filter 900ms ease;
}

.story-image.is-in-view img,
.editorial-interlude.is-in-view img {
  transform: scale(1);
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: documentary-ambient 15s ease-in-out infinite alternate;
  }

  .angel-frame > img {
    animation: hero-image-breathe 18s ease-in-out infinite alternate;
    transform-origin: 65% 48%;
  }

  .primary-link > span[aria-hidden],
  .petition-button > span[aria-hidden] {
    animation: action-arrow-breathe 3.2s ease-in-out infinite;
  }
}

@keyframes documentary-ambient {
  from {
    opacity: 0.5;
    transform: translate3d(-2%, -1%, 0) scale(0.96);
  }
  to {
    opacity: 0.82;
    transform: translate3d(2%, 2%, 0) scale(1.04);
  }
}

@keyframes hero-image-breathe {
  from { transform: scale(1.002) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(-0.8%, -0.4%, 0); }
}

@keyframes action-arrow-breathe {
  0%, 72%, 100% { transform: translateX(0); }
  82% { transform: translateX(3px); }
}

@media (max-width: 720px) {
  .reading-progress {
    height: 1px;
  }

  .hero::before {
    top: 38%;
    right: -44%;
    width: 120vw;
    opacity: 0.45;
  }

  .motion-enabled .motion-reveal {
    transform: translate3d(0, 16px, 0);
    transition-duration: 680ms;
  }

  .motion-enabled .timeline-list > article.motion-reveal,
  .motion-enabled .demand-list > li.motion-reveal,
  .motion-enabled .source-list > *.motion-reveal {
    transform: translate3d(10px, 0, 0);
  }

  .motion-enabled .motion-reveal.is-in-view {
    transform: translate3d(0, 0, 0);
  }
}

.motion-enabled .timeline-list > article.motion-reveal.is-in-view,
.motion-enabled .demand-list > li.motion-reveal.is-in-view,
.motion-enabled .source-list > *.motion-reveal.is-in-view {
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress > span {
    transition: none;
  }

  .motion-enabled .motion-reveal,
  .motion-enabled .motion-reveal.is-in-view,
  .angel-frame > img,
  .hero::before,
  .primary-link > span[aria-hidden],
  .petition-button > span[aria-hidden] {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* Final fused ritual composition: one scene, one light source, one focal path. */
.ritual-scene {
  background:
    radial-gradient(ellipse at 68% 22%, rgb(90 57 31 / 18%), transparent 38%),
    radial-gradient(ellipse at 50% 76%, rgb(82 43 21 / 12%), transparent 46%),
    #080605;
}

.ritual-scene-image,
.ritual-candle-reveals {
  inset: auto 0 0;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.ritual-scene-image {
  filter: brightness(0.11) saturate(0.28) contrast(1.12);
}

.ritual-memory-presence {
  top: 2%;
  right: 2%;
  width: 54%;
  height: 59%;
  opacity: 0.19;
  filter: grayscale(0.42) sepia(0.16) brightness(0.58) contrast(1.06) saturate(0.72);
  mask-image:
    radial-gradient(ellipse at 58% 36%, #000 0 36%, rgb(0 0 0 / 78%) 55%, transparent 82%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 60%, transparent 100%);
  transform: translate3d(1%, 0, 0) scale(1.035);
}

.ritual-memory-presence::after {
  background:
    linear-gradient(to left, rgb(7 5 4 / 35%), transparent 35%, rgb(7 5 4 / 28%)),
    linear-gradient(to bottom, transparent 34%, rgb(8 6 5 / 72%) 100%);
}

.ritual-memory-presence img {
  object-position: 50% 0%;
}

.ritual-scene-veil {
  opacity: 0.48;
  background:
    linear-gradient(to bottom, rgb(7 5 4 / 22%) 0, transparent 30%, rgb(7 5 4 / 8%) 58%, rgb(7 5 4 / 36%) 100%),
    radial-gradient(ellipse at 50% 69%, transparent 0 29%, rgb(7 5 4 / 18%) 59%, rgb(7 5 4 / 62%) 100%);
}

.ritual-paw-veil {
  top: 66%;
  width: 34%;
}

.ritual-paw-aura {
  top: 67%;
  width: 36%;
}

.light-button {
  top: 67%;
  left: 50%;
  width: clamp(96px, 9.4vw, 126px);
  height: clamp(114px, 11.3vw, 150px);
  opacity: 0.9;
  filter: brightness(0.82) saturate(0.72);
}

.light-button::after {
  position: absolute;
  z-index: -1;
  right: 18%;
  bottom: 3%;
  left: 18%;
  height: 12%;
  border-radius: 50%;
  background: rgb(207 158 70 / 14%);
  content: "";
  filter: blur(8px);
}

.ritual-bell {
  overflow: visible;
  filter: none;
}

.ritual-bell-svg-handle {
  fill: none;
  stroke: #8b6a34;
  stroke-linecap: round;
  stroke-width: 8;
}

.ritual-bell-svg-body {
  fill: url(#ritual-bronze);
  stroke: #80622f;
  stroke-width: 1.2;
}

.ritual-bell-svg-light {
  fill: url(#ritual-bronze-light);
}

.ritual-bell-svg-rim {
  fill: url(#ritual-bronze-rim);
  stroke: #8b6b34;
  stroke-width: 1;
}

.ritual-bell-svg-clapper {
  fill: #725225;
  stroke: #957039;
  stroke-width: 1;
}

.ritual-bell-svg-patina {
  fill: none;
  opacity: 0.2;
  stroke: #304538;
  stroke-linecap: round;
  stroke-width: 3;
}

.memorial-ritual.is-lit .light-button {
  animation-name: ritual-bell-depart-fused;
}

.memorial-ritual.is-lit .ritual-memory-presence {
  animation: ritual-memory-awaken-fused 7.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    ritual-memory-breathe-fused 24s ease-in-out 7.8s infinite alternate;
}

.memorial-ritual.is-lit .ritual-scene-image {
  animation-name: ritual-scene-awaken-fused;
}

.memorial-ritual.is-lit .ritual-scene-veil {
  animation-name: ritual-veil-lift-fused;
}

@media (max-width: 720px) {
  .ritual-scene {
    aspect-ratio: 4 / 3;
  }

  .ritual-memory-presence {
    top: 1%;
    right: 0;
    width: 100%;
    height: 52%;
    mask-image: radial-gradient(ellipse at 70% 34%, #000 0 25%, rgb(0 0 0 / 78%) 48%, transparent 82%);
  }

  .ritual-memory-presence img {
    object-position: 70% 0%;
  }

  .ritual-paw-veil {
    top: 68%;
    width: 38%;
  }

  .ritual-paw-aura {
    top: 69%;
    width: 40%;
  }

  .light-button {
    top: 69%;
    left: 50%;
    width: clamp(72px, 19vw, 86px);
    height: clamp(86px, 23vw, 102px);
  }

  .memorial-ritual.is-lit .light-button {
    animation-name: ritual-bell-depart-fused-mobile;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memorial-ritual.is-lit .ritual-memory-presence {
    opacity: 0.52;
    animation: none;
    transform: scale(1.065);
  }

  .memorial-ritual.is-lit .light-button {
    opacity: 0.09;
    animation: none;
    transform: translate(-50%, -226%) scale(0.66);
  }
}
