/* hoki-shell.css — 全站外殼（tokens、版頭、頁尾、共用元件：按鈕／FAQ／品牌故事／表單外觀／進場）
   base.html 載入；首頁各段的樣式在 hoki-home.css。所有新 class 都以 hk- 開頭，不覆蓋 Tailwind 的 class 名。
   動畫準則：只動 transform / opacity；唯二例外是 SVG 的 stroke-dashoffset，只重繪 SVG 本身、不觸發版面。
   全部在 prefers-reduced-motion: reduce 時關閉，內容一開始就可見。 */

:root {
  --paper: #F5F0E8;
  --paper-deep: #EDE5D4;  /* 只剩小元件用（卡片底、連結底線）；整段底色只用 奶油 paper／紙白 page／深色 ink，外加「一天」的日光漸層 */
  --page: #FFFCF6;
  --sec-y: clamp(56px, 7vw, 104px);   /* 全站統一的段落上下 padding */
  --ink: #3D3425;
  --ink-2: #5C4A2A;      /* 內文：在 paper 上 7.4:1 */
  --muted: #6B5E4F;      /* 次要字：在 paper 上 5.4:1 */
  --sage: #7BA05B;       /* 只作裝飾；當字用在奶油底只有 2.7:1 */
  --sage-deep: #35502A;  /* 在琥珀／薄荷底上的小字：5.5:1 以上 */
  --sage-ink: #4A6B35;   /* 鼠尾草深階：當字用 5.3:1 */
  --sage-soft: #B8D4A0;
  --gold: #E8C868;
  --gold-deep: #C9A83E;
  --gold-ink: #6F5B1C;
  --line: rgba(61, 52, 37, .16);
  --line-strong: rgba(61, 52, 37, .34);
  --f-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --f-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --f-disp: "Fraunces", "Noto Serif TC", "Songti TC", serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .2 0 0 0 0 .14 .22 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html { scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background-color: var(--paper); background-image: var(--grain); overflow-x: clip; }
::selection { background: var(--gold); color: var(--ink); }
main:focus { outline: none; }

/* 全站 focus：看得見、不依賴顏色單獨傳達（3px 實線＋offset）。:where 讓它零權重，元件自己的規則可以覆蓋。 */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--sage-ink);
  outline-offset: 3px;
}
.hk-dark :where(a, button, summary):focus-visible { outline-color: var(--gold); }

.hk-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 56px); }
.hk-sec { padding-block: var(--sec-y); }
.hk-paper { background-color: var(--paper); background-image: var(--grain); }
.hk-white { background-color: var(--page); }
/* 相鄰兩段的底色一律「奶油／紙白」交替，交界處留一條細線，讓它看起來是刻意的 */
.hk-paper + .hk-white, .hk-white + .hk-paper { border-top: 1px solid var(--line); }
/* 選單開著時鎖背景：<html> 與 <body> 都不能捲；iOS 15 以前的 Safari 鎖不住 overflow:hidden，所以 body 改 position:fixed（hoki.js 設 top:-scrollY，關閉時還原） */
.hk-lock, .hk-lock body { overflow: hidden; }
.hk-lock body { position: fixed; left: 0; right: 0; width: 100%; }
.hk-lock .hk-nav { position: fixed; top: 0; left: 0; right: 0; }   /* body 固定後 sticky 不再作用，版頭（含選單紙頁）要自己釘在視窗上緣 */
.hk-dark { background: var(--ink); color: var(--paper); }
.hk-ico { width: 2rem; height: 2rem; flex: none; }
.hk-ico--sm { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.15em; }

/* ───────────── 版頭 ───────────── */
.hk-skip {
  position: absolute; left: 12px; top: 12px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 8px; font-weight: 700;
  transform: translateY(-200%); transition: transform .2s var(--ease);
}
.hk-skip:focus { transform: none; outline: 3px solid var(--gold); outline-offset: 2px; }

.hk-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 232, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.hk-nav.is-scrolled { box-shadow: 0 8px 24px -16px rgba(61, 52, 37, .45); }
.hk-nav__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: 68px; }
.hk-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; min-height: 44px; order: 1; margin-right: auto; }
.hk-brand__mark { width: 40px; height: 40px; flex: none; }   /* 標記本身只佔 viewBox 的六成，40px 讓兩道綠色音波在 1x 螢幕上也看得見 */
.hk-brand__name { font-family: var(--f-serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; }
.hk-nav__login {
  order: 2; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.25rem;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; font-size: .95rem;
  transition: background .3s, transform .3s var(--ease);
}
.hk-nav__login:hover { background: var(--sage-ink); }
.hk-nav__login:focus-visible { outline-offset: 3px; }
.hk-nav__links { order: 4; flex-basis: 100%; list-style: none; margin: 0; padding: 0 0 10px; display: flex; flex-wrap: wrap; gap: 0 22px; }
.hk-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; text-decoration: none; }
.hk-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: var(--sage-ink);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.hk-link:hover::after, .hk-link:focus-visible::after { transform: scaleX(1); }
.hk-link:hover { color: var(--sage-ink); }

.hk-menu-btn { display: none; order: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.hk-menu-btn__bars { position: relative; width: 18px; height: 12px; display: block; }
.hk-menu-btn__bars i { position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.hk-menu-btn__bars i:first-child { top: 1px; }
.hk-menu-btn__bars i:last-child { bottom: 1px; }
.hk-nav.is-open .hk-menu-btn__bars i:first-child { transform: translateY(4.4px) rotate(45deg); }
.hk-nav.is-open .hk-menu-btn__bars i:last-child { transform: translateY(-4.4px) rotate(-45deg); }

@media (max-width: 767.98px) {
  /* 有 JS：選單收進按鈕；沒有 JS：四個連結照常排在第二列 */
  .js .hk-menu-btn { display: inline-flex; }
  /* 展開＝蓋住整個視窗的紙頁（sheet）：不透出後面的內容，背景不能捲（hoki.js 在 <html> 加 hk-lock） */
  .js .hk-nav.is-open { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .hk-nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 1; margin: 0;
    height: calc(100vh - 69px); height: calc(100dvh - 69px); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; flex-wrap: nowrap; gap: 0; padding: clamp(24px, 13vh, 132px) clamp(20px, 4.5vw, 56px) 32px;
    background-color: var(--paper); background-image: var(--grain); border-top: 1px solid var(--line);
    box-shadow: 0 40px 60px -24px rgba(61, 52, 37, .4); counter-reset: menu;
  }
  .js .hk-nav.is-open .hk-nav__links { display: flex; animation: hk-fade .35s var(--ease); }
  .js .hk-nav__links li { border-bottom: 1px solid var(--line); }
  .js .hk-link {
    width: 100%; min-height: 68px; gap: 1rem; font-family: var(--f-serif); font-size: 1.6rem; font-weight: 500; counter-increment: menu;
  }
  .js .hk-link::before {
    content: counter(menu, decimal-leading-zero); content: counter(menu, decimal-leading-zero) / ""; flex: none; width: 2.2rem;
    font-family: var(--f-disp); font-size: .8rem; font-weight: 300; letter-spacing: .2em; color: var(--muted);
  }
  /* 每列右側的箭頭（不是減號）：按下時往右推一點 */
  .js .hk-link::after {
    content: "→" / ""; left: auto; right: 0; bottom: auto; top: 50%; width: auto; height: auto; margin-top: -.7em; background: none;
    font-family: var(--f-disp); font-size: 1.3rem; line-height: 1.4; color: var(--sage-ink); opacity: .7; transform: none; transition: transform .35s var(--ease), opacity .35s;
  }
  .js .hk-link:hover::after, .js .hk-link:focus-visible::after { transform: translateX(4px); opacity: 1; }
  .js .hk-nav__links::after {
    content: "好記 Hoki" / ""; margin-top: auto; padding-top: 40px; font-family: var(--f-serif); font-size: 4.2rem; line-height: 1; color: var(--ink); opacity: .07;
    letter-spacing: .01em; pointer-events: none; user-select: none; white-space: nowrap;
  }
}
@media (min-width: 768px) {
  .hk-nav__bar { flex-wrap: nowrap; }
  .hk-nav__links { order: 2; flex-basis: auto; padding: 0; gap: 0 clamp(18px, 2.4vw, 34px); margin-right: 8px; }
  .hk-nav__login { order: 3; }
}

/* ───────────── 共用元件 ───────────── */
.hk-eyebrow {
  display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem;
  font-family: var(--f-disp); font-weight: 500; font-size: .8125rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-ink);
}
.hk-eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; flex: none; }
.hk-dark .hk-eyebrow { color: var(--gold); }
@media (max-width: 480px) { .hk-eyebrow { letter-spacing: .15em; font-size: .72rem; gap: .65rem; } .hk-eyebrow::before { width: 1.6rem; } }

.hk-h2 { font-family: var(--f-serif); font-weight: 600; font-size: clamp(1.85rem, 3.4vw, 2.9rem); line-height: 1.32; letter-spacing: .01em; text-wrap: balance; }
.hk-h3 { font-family: var(--f-sans); font-weight: 700; font-size: 1.1rem; line-height: 1.5; }
.hk-h3--serif { font-family: var(--f-serif); font-size: 1.4rem; font-weight: 600; }
.hk-sub { margin-top: 1.1rem; color: var(--ink-2); line-height: 1.9; max-width: 36em; }
.hk-head { max-width: 52rem; }
.hk-head--wide { max-width: 60rem; }
.hk-head .hk-sub strong, .hk-sub strong { color: var(--sage-ink); }

.hk-textlink {
  display: inline-block; position: relative; font-weight: 700; color: var(--sage-ink); text-decoration: none; padding-block: 12px; min-height: 44px;
}
.hk-textlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: currentColor;
  transform-origin: left; transition: transform .5s var(--ease);
}
.hk-textlink:hover::after, .hk-textlink:focus-visible::after { transform: scaleX(.35); }
.hk-dark .hk-textlink { color: var(--gold); }

.hk-btn {
  --b-bg: var(--gold); --b-fg: var(--ink); --b-hover-bg: var(--sage-ink); --b-hover-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .75rem; min-height: 52px; padding: .8rem 1.6rem .8rem 1.8rem;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--b-bg); color: var(--b-fg);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .35s;
}
.hk-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b-hover-bg);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.hk-btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .4s var(--ease); }
.hk-btn:hover, .hk-btn:focus-visible { color: var(--b-hover-fg); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.hk-btn:hover::before, .hk-btn:focus-visible::before { transform: scaleX(1); }
.hk-btn:hover svg, .hk-btn:focus-visible svg { transform: translateX(5px); }
/* 按下去＝整顆陷進陰影裡：移動量等於陰影偏移（3px），陰影收成 0；按下的當下（.07s）比放開（.3s）快，手感才像實體按鍵 */
.hk-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); transition-duration: .07s, .07s, .35s; }
.hk-btn:active svg { transform: translateX(2px); }
.hk-btn--line { --b-bg: transparent; --b-hover-bg: var(--ink); --b-hover-fg: var(--paper); box-shadow: 0 0 0 var(--ink); }
.hk-btn--line:hover, .hk-btn--line:focus-visible { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
.hk-btn--line:active { transform: translate(2px, 2px); transition-duration: .07s, .07s, .35s; }


@keyframes hk-fade { from { opacity: 0; transform: translateY(-6px); } }

/* ───────────── 分欄（左：標題，右：內容；窄螢幕疊成一欄） ───────────── */
.hk-split { display: grid; gap: clamp(36px, 6vw, 96px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .hk-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .hk-split--story { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .hk-sticky { position: sticky; top: 112px; align-self: start; }
}

/* ───────────── 品牌故事・FAQ ───────────── */
.hk-story { background-color: var(--page); }
.hk-quote { margin-top: 1.5rem; font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.95; color: var(--ink-2); padding-left: 1.25rem; border-left: 3px solid var(--gold); }
/* 橫線紙：線距＝行高（--lh），線畫在每一行的 (lh-7px) 處＝字的基線下方約 4px，字「坐在線上」。
   段落之間不留空行（用首行縮排分段），所以不會出現夾在兩段之間的空線，結尾也沒有多出來的空線。 */
.hk-story__body {
  --lh: 2.5rem;
  display: block; color: var(--ink-2); line-height: var(--lh); font-size: 1.0625rem; font-family: var(--f-serif); font-weight: 400;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--lh) - .625rem), rgba(61, 52, 37, .2) calc(var(--lh) - .625rem) calc(var(--lh) - .5625rem), transparent calc(var(--lh) - .5625rem) var(--lh));
  padding: 0; margin: 0;
}
.hk-story__body p { margin: 0; text-indent: 2em; }
.hk-story__body > div { height: var(--lh); }
.hk-story__body .hk-textlink { display: inline-block; position: relative; padding: 0; min-height: 0; line-height: 44px; height: 44px; margin-block: -2px; /* 觸控高度 44px，但佔的行高仍是一格稿紙線 */ }
.hk-story__body .hk-textlink::before { content: ""; position: absolute; inset: 0 -10px; }
.hk-story__body .hk-textlink::after { bottom: calc(.5rem + 2px); }

.hk-faq { background-color: var(--paper); background-image: var(--grain); }
.hk-faq__art { display: none; }
@media (min-width: 900px) {
  .hk-faq__art { display: block; width: clamp(150px, 15vw, 210px); height: auto; margin-top: clamp(32px, 4vw, 56px); overflow: visible; }
}
.hk-qa { border-top: 1px solid var(--line-strong); }
.hk-qa:last-child { border-bottom: 1px solid var(--line-strong); }
.hk-qa summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; min-height: 44px; }
.hk-qa summary::-webkit-details-marker { display: none; }
.hk-qa__q { font-family: var(--f-serif); font-weight: 600; font-size: 1.15rem; line-height: 1.6; transition: color .3s; }
.hk-qa summary:hover .hk-qa__q { color: var(--sage-ink); }
.hk-qa__plus {
  flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--sage-ink); font-size: 1.3rem; line-height: 1; user-select: none; transition: transform .45s var(--ease), background .3s, color .3s;
}
.hk-qa[open] .hk-qa__plus { transform: rotate(45deg); background: var(--sage-ink); color: #fff; border-color: var(--sage-ink); }
.hk-qa__a { padding: 0 3rem 1.6rem 0; color: var(--ink-2); line-height: 2; animation: hk-fade .5s var(--ease); }
.hk-qa__a strong { color: var(--ink); }

/* ───────────── 聯繫表單（_contact_form.html 不動，只從外層覆蓋外觀） ─────────────
   首頁與內頁共用：用 :has() 認出「含 #contact-* 表單的 section」，不依賴外層 class。
   只有首頁（.hk-contact 包著）才改底色、段落 padding 與卡片對齊；內頁的版面本體不動。 */
.hk-contact > section { background-color: var(--page); padding-block: var(--sec-y); }
.hk-contact .max-w-3xl { max-width: 1240px; padding-inline: clamp(20px, 4.5vw, 56px); }
.hk-contact .max-w-3xl > div { max-width: 62rem; margin-inline: 0; }
section:has(form[id^="contact-"]) .bg-white.rounded-2xl {
  position: relative; border-radius: 4px; background-color: var(--paper); background-image: var(--grain); border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 var(--line), 10px 10px 0 rgba(61, 52, 37, .1);
}
section:has(form[id^="contact-"]) .text-hoki-sage { color: var(--sage-ink); }
section:has(form[id^="contact-"]) .text-red-600 { color: #B91C1C; } /* 必填星號：紙色卡片上 tailwind 的 red-600 只有 4.26:1 */
section:has(form[id^="contact-"]) .tracking-widest { display: flex; align-items: center; gap: .9rem; font-family: var(--f-disp); font-weight: 500; letter-spacing: .24em; font-size: .8125rem; }
section:has(form[id^="contact-"]) .tracking-widest::before { content: ""; width: 36px; height: 1px; background: currentColor; flex: none; }
section:has(form[id^="contact-"]) h2 { font-family: var(--f-serif); font-weight: 600; }
section:has(form[id^="contact-"]) :is(input:not([type=radio]):not([type=hidden]), select, textarea) { border-color: rgba(61, 52, 37, .55); border-radius: 6px; }
section:has(form[id^="contact-"]) :is(input, select, textarea):focus-visible { outline: 3px solid var(--sage-ink); outline-offset: 2px; border-color: var(--sage-ink); }
section:has(form[id^="contact-"]) input[type=radio] { accent-color: var(--sage-ink); width: 1.1rem; height: 1.1rem; }
section:has(form[id^="contact-"]) label.flex { min-height: 44px; }
section:has(form[id^="contact-"]) button[type=submit] {
  min-height: 52px; padding-inline: 2rem; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .35s, color .35s;
}
section:has(form[id^="contact-"]) button[type=submit]:hover:not(:disabled) { background: var(--sage-ink); color: #fff; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
section:has(form[id^="contact-"]) button[type=submit]:disabled { opacity: .65; cursor: wait; }
section:has(form[id^="contact-"]) [role=status].text-hoki-sage { color: var(--sage-ink); }

/* ───────────── 頁尾 ───────────── */
.hk-footer { margin-top: 0; padding-top: clamp(56px, 8vw, 104px); }
/* 頁尾不在 .hk-home main 內：中文也要在詞邊界斷行（頁尾法律聲明的「統一編號」不能拆） */
.hk-footer { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.hk-nb { white-space: nowrap; }
.hk-footer__grid { display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .hk-footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr) minmax(0, .75fr); gap: 32px 40px; } }
.hk-wordmark { font-family: var(--f-serif); font-weight: 500; font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: 1.05; letter-spacing: .01em; color: var(--paper); }
.hk-wordmark__latin { font-family: var(--f-disp); font-style: italic; font-weight: 300; color: var(--gold); letter-spacing: -.01em; }
.hk-footer__tag { margin-top: 1.1rem; max-width: 22em; color: #D2C8B3; line-height: 1.9; font-size: .95rem; }
.hk-footer__h { font-family: var(--f-serif); font-weight: 700; margin-bottom: .6rem; color: var(--paper); }
.hk-footer__col ul { list-style: none; margin: 0; padding: 0; }
.hk-footer__col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: #D2C8B3; font-size: .93rem; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) left bottom 9px / 0 1px no-repeat; transition: color .3s, background-size .5s var(--ease); }
.hk-footer__col a:hover, .hk-footer__col a:focus-visible { color: #fff; background-size: 100% 1px; }
.hk-footer__legal { margin-top: clamp(40px, 6vw, 72px); padding-block: 1.5rem 2rem; border-top: 1px solid rgba(245, 240, 232, .22); font-size: .78rem; color: #BFB49D; line-height: 1.8; }

/* 閱讀進度：版頭底下一條金線（scroll-driven，只動 transform；不支援就不顯示） */
@supports (animation-timeline: scroll()) {
  .hk-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-deep); transform: scaleX(0); transform-origin: left; animation: hk-progress linear both; animation-timeline: scroll(root block); }
  @keyframes hk-progress { to { transform: scaleX(1); } }
}

/* ───────────── 進場 ───────────── */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .65s ease-out var(--d, 0s), transform .65s ease-out var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }
/* JS 沒載入的保險：3.5 秒後無論如何顯示 */
.js:not(.js-ready) .rv { animation: hk-safe .01s 3.5s forwards; }
@keyframes hk-safe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; animation: none; }
  .hk-nav::after { animation: none !important; transform: scaleX(0) !important; }
  .hk-qa__a, .js .hk-nav.is-open .hk-nav__links { animation: none !important; }
  .hk-btn, .hk-btn::before, .hk-btn svg, .hk-link::after, .hk-textlink::after, .hk-qa__plus { transition-duration: .01s !important; }
}

@media print {
  .hk-skip { display: none !important; }
  /* 進場動畫的初始隱藏不能帶進紙上：沒捲到過的區塊（FAQ 等）一律印出來（base.html 的列印區塊維持原樣） */
  .js .rv { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}
