/* 扛扛 KangKang — 首頁 home.css
   區塊：主視覺輪播 .hero／跑馬燈 .ticker／怎麼扛回來 .how／運費自己算 .calc／
         為什麼找扛扛 .why／三條服務 .services／我們在哪裡 .map／關於扛扛 .about
   只動 transform、opacity；減少動態時全部靜止（base.css 另外有總開關）。 */

/* 手機、平板上會壓到標題的裝飾星星 */
@media (max-width: 1023.98px) {
  .page-home .desk-only { display: none; }
}

/* =========================================================
   1. 主視覺輪播
   ========================================================= */
.hero {
  padding-block: clamp(20px, 3.4vw, 44px) clamp(48px, 6vw, 84px);
  overflow-x: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}

/* 固定介紹：h1＋主要按鈕 */
.hero__intro {
  position: relative;
  z-index: 3;                 /* 桌機版和輪播疊在同一格，要在上面才點得到 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.hero__eyebrow { color: var(--fg-muted); }
.hero__title { font-size: var(--fs-display); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.7; font-weight: var(--fw-medium); max-width: 25em; }
.hero__cta { margin-top: var(--space-2); }
.hero__note { margin-top: calc(var(--space-2) * -1); }

/* 輪播外框 */
.hero__carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  touch-action: pan-y pinch-zoom;   /* 手機左右滑換張 */
}

/* 爆炸框（每張一個，疊在同一格） */
.hero__bursts {
  grid-area: 1 / 1;
  z-index: 4;
  display: grid;
  align-self: start;
  justify-self: start;
  pointer-events: none;
}
.hero__burst {
  grid-area: 1 / 1;
  justify-self: start;
  align-self: start;
  white-space: nowrap;
}
.js .hero__burst:not(.is-active) { opacity: 0; scale: 0.6; visibility: hidden; }
.js .hero__burst {
  transition:
    opacity var(--dur-2) var(--ease-out),
    scale var(--dur-3) var(--ease-spring),
    visibility 0s linear var(--dur-2);
}
.js .hero__burst.is-active { transition-delay: 60ms, 60ms, 0s; }
html:not(.js) .hero__burst:not(:first-child) { display: none; }

/* 中間舞台：紅色星球＋軌道＋吉祥物 */
.hero__stage {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: center;
  aspect-ratio: 1 / 0.8;
  margin-top: 64px;             /* 手機：上面讓給爆炸框 */
}
.hero__orb {
  position: absolute;
  left: 50%;
  top: 2%;
  width: 72%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--oat);   /* 扛仔頭是朱紅，星球改燕麥才看得清楚 */
  border: 2.5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.hero__ring {
  position: absolute;
  left: 50%;
  top: 25%;
  width: 104%;
  height: auto;
  max-width: none;
  translate: -50% 0;
  rotate: -12deg;
  overflow: visible;
}
.hero__ring ellipse {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 7 9;
  vector-effect: non-scaling-stroke;
}
.hero__mascot {
  position: absolute;
  left: 50%;
  bottom: 1%;
  z-index: 2;
  width: 62%;              /* 扛仔站姿是直的（649×735），高度約佔舞台 95% */
  translate: -50% 0;
}
.hero__sticker {
  position: absolute;
  right: 0;
  top: 4%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 10px;
  background: var(--cream);
  color: var(--ink);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 3px 4px 0 var(--ink);
  font-family: var(--font-cute);
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
  rotate: var(--tilt, 6deg);
  pointer-events: none;
}
.hero__sticker .icon { width: 18px; height: 18px; }
.js .hero__sticker:not(.is-active) { opacity: 0; scale: 0.5; }
.js .hero__sticker { transition: opacity var(--dur-2) var(--ease-out), scale var(--dur-3) var(--ease-spring); }
.js .hero__sticker.is-active { transition-delay: 180ms; }
html:not(.js) .hero__sticker:not(.is-active) { display: none; }
.hero__stage .sparkle--abs { z-index: 3; }

/* 右邊文字 */
.hero__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}
.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}
.js .hero__slide:not(.is-active) { visibility: hidden; opacity: 0; translate: 0 14px; }
.js .hero__slide {
  transition:
    opacity var(--dur-2) var(--ease-out),
    translate var(--dur-3) var(--ease-out),
    visibility 0s linear var(--dur-2);
}
.js .hero__slide.is-active { transition-delay: 90ms, 90ms, 0s; }
.hero__num { display: flex; align-items: baseline; gap: 10px; color: var(--fg-muted); }
.hero__num .num { color: var(--red); font-size: 1.25rem; font-weight: 800; letter-spacing: 0; }
.hero__headline {
  font-size: clamp(2rem, 4.1vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.hero__cols p { padding-top: 10px; border-top: var(--border-w) solid var(--ink); }
@media (max-width: 359.98px) {
  .hero__cols { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
}

/* 箭頭按鍵＋進度點 */
.hero__controls { flex-wrap: nowrap; gap: 10px; }
.hero__dots { gap: 0; }
.hero__count {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  white-space: nowrap;
}
.hero__count [data-count] { color: var(--ink); }

/* 往下看 */
.hero__down {
  position: absolute;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--cream);
  border: var(--border-w) solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink);
  z-index: 3;
}
.hero__down .icon { width: 22px; height: 22px; }

/* 進場／換張的小動畫 */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .bounce__ch {
    animation: hero-ch-in 0.6s var(--ease-spring) both;
    animation-delay: calc(var(--i, 0) * 45ms + 80ms);
  }
  .js .hero__slide.is-active .hero__headline .bounce__ch {
    animation: hero-ch-in 0.55s var(--ease-spring) both;
    animation-delay: calc(var(--i, 0) * 38ms + 160ms);
  }
  .hero__stage.is-hop .hero__mascot { animation: hero-hop 0.62s var(--ease-out); }
  .hero__stage.is-hop .hero__orb { animation: hero-orb 0.62s var(--ease-spring); }
  .hero__down { animation: hero-nudge 1.8s var(--ease-in-out) infinite; }
}
@keyframes hero-ch-in {
  from { opacity: 0; transform: translateY(0.5em) scale(0.6); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-hop {
  0% { transform: translateY(0); }
  28% { transform: translateY(-7%) scale(1.015, 0.985); }
  55% { transform: translateY(0) scale(1.02, 0.97); }
  75% { transform: translateY(-1.5%); }
  100% { transform: translateY(0); }
}
@keyframes hero-orb {
  0% { transform: scale(1); }
  35% { transform: scale(0.94); }
  100% { transform: scale(1); }
}
@keyframes hero-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* 手機 */
@media (max-width: 767.98px) {
  .hero__burst { font-size: 0.75rem; }
  .hero__burst .burst__big { font-size: 1.625rem; }
  .hero__sticker { font-size: 0.875rem; padding: 4px 12px 4px 8px; }
  .hero__cta .key--lg { min-height: 56px; padding: 12px 22px; }
}

/* 平板：介紹在上，輪播左右兩欄 */
@media (min-width: 768px) {
  .hero__carousel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: var(--space-7);
    align-items: center;
  }
  .hero__bursts { grid-area: 1 / 1; }
  .hero__stage { grid-area: 1 / 1; margin-top: 56px; }
  .hero__panel { grid-area: 1 / 2; }
}

/* 桌機：三欄（左爆炸框＋介紹、中間吉祥物、右邊文字），用 subgrid 讓介紹和爆炸框同一欄 */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1024px) {
    .hero {
      display: grid;
      align-content: center;
      min-height: min(900px, calc(100vh - var(--header-h) - 40px));
      min-height: min(900px, calc(100svh - var(--header-h) - 40px));
    }
    .hero__grid {
      grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.34fr) minmax(0, 1fr);
      grid-template-rows: auto auto;
      column-gap: clamp(24px, 2.6vw, 44px);
      row-gap: var(--space-5);
      align-items: center;
    }
    .hero__intro { grid-column: 1; grid-row: 2; align-self: end; }
    .hero__title { font-size: clamp(2.2rem, 3.3vw, 3rem); }
    .hero__lead { font-size: 1.0625rem; }
    .hero__cta { flex-wrap: nowrap; gap: 12px; }
    .hero__cta .key--lg { padding-inline: 20px; }
    .hero__carousel {
      grid-column: 1 / -1;
      grid-row: 1 / span 2;
      grid-template-columns: subgrid;
      grid-template-rows: subgrid;
      column-gap: inherit;
      row-gap: inherit;
    }
    .hero__bursts { grid-column: 1; grid-row: 1; justify-self: end; align-self: start; margin-right: -22%; margin-top: 8px; }
    .hero__burst { justify-self: end; }
    .hero__stage { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; max-width: 600px; }
    .hero__panel { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
    .hero__down { display: grid; }
  }
}

/* =========================================================
   跑馬燈（暖白接朱紅，斜斜的炭黑帶子）
   ========================================================= */
.ticker {
  position: relative;
  z-index: 2;
  overflow: clip;
  padding-block: 22px;
  background: linear-gradient(var(--paper) 50%, var(--red) 50%);
}
.ticker__band {
  width: 106%;
  margin-left: -3%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  rotate: -1.6deg;
  box-shadow: 0 5px 0 var(--oat);
}
.ticker__track {
  --gap: 26px;
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: max-content;
  padding: 12px var(--gap) 12px 0;
  font-weight: var(--fw-black);
  font-size: clamp(1.0625rem, 1.9vw, 1.4rem);
  line-height: 1.3;
  white-space: nowrap;
}
.ticker__track .latin { font-weight: 800; letter-spacing: 0.04em; }
.ticker__track .sparkle { --sparkle-line: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker-run 48s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
}
@keyframes ticker-run { to { transform: translateX(-25%); } }

/* =========================================================
   2. 怎麼扛回來（朱紅底）
   預設：靜態構圖（船在海中間、五個章蓋好）＋步驟卡（手機、平板、減少動態、沒有 GSAP）
   .how--scene：桌機釘住畫面，扛仔走路、上船、過海、下船，每到一站蓋章（home.js 加上去）
   ========================================================= */
.how { overflow-x: clip; }
.how__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
  max-width: 48rem;
}
.how__title { font-size: var(--fs-display); line-height: 1.04; }
.how__hint { display: none; }

/* 畫面（.how__scene）：一張可以動的日式海報。
   圖層由後往前：太陽 → 富士山、山脊、日本／台灣直書標 → 瑞雲 → 遠海 → 船（上層建築）→ 扛仔 → 船身 →
   近海（青海波、浪頭）→ 航跡線 → 船頭浪、船尾浪花 → 岸（章、站名）。
   位置都用「畫面單位」寫（--x --y --w，桌機畫面 1280×346、手機 375×250），換成百分比，所以整張等比縮放。
   手機、平板、減少動態、沒有 GSAP：船停在海中間、五個章都蓋好（靜態構圖）；桌機由 home.js 接手演出。 */
.how__band { position: relative; max-width: 600px; margin: 0 auto var(--space-7); }
.how__scene {
  --W: 375;
  --H: 250;
  position: relative;
  aspect-ratio: 375 / 250;
  overflow: hidden;
  overflow: clip;
}
.how__scene > * {
  position: absolute;
  left: calc(var(--x, 0) / var(--W) * 100%);
  top: calc(var(--y, 0) / var(--H) * 100%);
  width: calc(var(--w) / var(--W) * 100%);
  max-width: none;
  height: auto;
  pointer-events: none;
}
.how__scene > svg { display: block; }
.how__scene > .how__defs { width: 0; height: 0; overflow: hidden; }
.how__sky, .how__land { --w: var(--W); height: 100%; }
.how__scene > .how__sky, .how__scene > .how__land, .how__scene > .how__cloud--c { display: none; }
.how__sky text { font-family: var(--font-sans); }
.how__land text { font-family: var(--font-sans); }
.how__vtag-en { font-family: var(--font-latin); }

/* 太陽：燕麥色半圓，沒有光芒 */
.how__sun { --x: 112.29; --y: 94; --w: 192; aspect-ratio: 1; border-radius: 50%; background: var(--oat); }

/* 瑞雲：慢慢飄，到兩端會停一下（alternate） */
.how__cloud { --d: 50s; --delay: 0s; --dx: 0%; }
.how__cloud--a { --x: -34; --y: 34; --w: 110; --dx: 14%; --d: 48s; --delay: -9s; }
.how__cloud--b { --x: 270; --y: 26; --w: 92.4; --dx: -17%; --d: 56s; --delay: -20s; }

/* 海：兩層，各是 3 張 640 的圖接成一條（1920），往左滑 640 剛好接回原位 */
.how__sea { overflow: visible; }
.how__sea-img { display: block; width: 100%; height: auto; }
.how__sea--back { --x: -472; --y: 172.4; --w: 1536; }
.how__sea--front { --x: -472; --y: 162.8; --w: 1536; }

/* 船：三層圖同一個框（viewBox -40 0 530 220），吃水線 y=180 */
.how__ship { --x: 2.37; --y: 71.2; --w: 349.8; transform-origin: 52.83% 81.82%; }
.how__ship--wake { transition: opacity var(--dur-2) linear; }

/* 扛仔：框的底部往上 2.9% 是腳底，所以轉動的中心放在那裡 */
.how__duo { --x: 134.37; --y: 106.66; --w: 147.84; transform-origin: 50% 97.1%; }
.how__duo .mascot img {
  filter:
    drop-shadow(2.5px 0 0 var(--paper)) drop-shadow(-2.5px 0 0 var(--paper))
    drop-shadow(0 2.5px 0 var(--paper)) drop-shadow(0 -2.5px 0 var(--paper));
}

/* 航線在海上：船後面是實心米白線（航跡），船頭前面是淡一點的米白點點（炭黑點在靛藍海上看不到） */
.how__wakeline {
  --x: -4; --y: 194.3; --w: 52.57;
  height: calc(2.6 / var(--H) * 100%);
  background: var(--paper);
  border-radius: 99px;
  transform-origin: 0 50%;
  transform: scaleX(var(--f, 1));
}
.how__ahead {
  --x: 335.1; --y: 193.9; --w: 44; --aw: 44;
  height: calc(3.4 / var(--H) * 100%);
  overflow: hidden;
}
.how__ahead-dots {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle closest-side, var(--paper) 0 72%, transparent 88%) 0 50% / calc(9 / var(--aw) * 100%) 100% repeat-x;
  opacity: .75;
}

/* 岸上的航線：虛線是還沒走的，實線由 home.js 用 scaleX 畫出來 */
.how__route-done { transform-box: fill-box; transform-origin: 0 50%; }

/* 章（判子）：紙方框＋等待中的虛線框和淡字；蓋下去時紅色印面從 1.45 倍、-9° 落到定位，紙方框被壓到 0.94 */
.how__seal-mount, .how__seal-imp { transform-box: fill-box; transform-origin: 50% 50%; }
.how__seal-imp { transform: rotate(var(--rot)); transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
.how__seal:not(.is-stamped) .how__seal-imp { opacity: 0; transform: scale(1.45) rotate(calc(var(--rot) - 9deg)); }
.how__seal-wait { transition: opacity 0.3s var(--ease-out); }
.how__seal.is-stamped .how__seal-wait { opacity: 0; }
@keyframes how-stamp {
  0% { opacity: 0; transform: scale(1.45) rotate(calc(var(--rot) - 9deg)); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(var(--rot)); }
}
@keyframes how-press {
  0%, 35% { transform: scale(1); }
  55% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

/* 手機、平板：海往左右延伸到畫面邊（船還是在中間），畫面下面一張集章卡 */
@supports (overflow: clip) {
  @media (max-width: 1023.98px) {
    .how__scene { overflow: visible; overflow-y: clip; }
    .how__wakeline { --x: -400; --w: 448.57; }
    .how__ahead { --w: 440; --aw: 440; }
  }
}
.how__stampcard { display: block; width: 100%; height: auto; margin: var(--space-4) auto 0; }
.how__stampcard text { font-family: var(--font-sans); }
@media (max-width: 767.98px) {
  .how__band { margin-inline: calc(-1 * var(--gutter)); }
  .how__stampcard { width: calc(100% - 2 * var(--gutter)); }
}

/* 桌機：整張橫的畫面（有岸、山、站名） */
@media (min-width: 1024px) {
  .how__band { max-width: none; }
  .how__scene { --W: 1280; --H: 346; aspect-ratio: 1280 / 346; }
  .how__scene > .how__sky, .how__scene > .how__land { display: block; }
  .how__scene > .how__cloud--c { display: block; }
  .how__stampcard { display: none; }
  .how__sun { --x: 510; --y: 142; --w: 276; }
  .how__cloud--a { --x: 820; --y: 30; --w: 189.2; --dx: -23%; --d: 50s; --delay: -9s; }
  .how__cloud--b { --x: 342; --y: 58; --w: 132; --dx: 27%; --d: 58s; --delay: -20s; }
  .how__cloud--c { --x: 1052; --y: 112; --w: 110; --dx: 27%; --d: 44s; --delay: -4s; }
  .how__sea--back { --x: 0; --y: 258; --w: 1920; }
  .how__sea--front { --x: 0; --y: 246; --w: 1920; }
  .how__ship { --x: 375; --y: 122.5; --w: 463.75; }
  .how__duo { --x: 550; --y: 169.52; --w: 196; }
  .how__duo .mascot img {
    filter:
      drop-shadow(3px 0 0 var(--paper)) drop-shadow(-3px 0 0 var(--paper))
      drop-shadow(0 3px 0 var(--paper)) drop-shadow(0 -3px 0 var(--paper));
  }
  .how__wakeline { --x: 294; --y: 285.5; --w: 654; --f: 0.2175; height: calc(3 / var(--H) * 100%); }
  /* 點點的外框跟著船頭走（左邊界＝船頭），裡面的點點反方向移回來，所以點點本身停在海上不動 */
  .how__ahead { --x: 814.25; --y: 285.3; --w: 289.5; --aw: 656; }
  .how__ahead-dots { left: -179.71%; width: 226.6%; }
}

@media (prefers-reduced-motion: no-preference) {
  .how__cloud { animation: how-drift var(--d) cubic-bezier(0.45, 0, 0.55, 1) var(--delay) infinite alternate; }
  .how__sea-img { animation: how-flow 96s linear infinite; }
  .how__sea--front .how__sea-img { animation-duration: 38s; }
  .how__sea--front { animation: how-swell 5.2s cubic-bezier(0.45, 0, 0.55, 1) -0.4s infinite; }
  .how__ship { animation: how-bob-ship 5.6s infinite; }
  .how__duo { animation: how-bob-duo 5.6s infinite; }
  .how__seal.is-stamping .how__seal-imp { animation: how-stamp 0.46s cubic-bezier(0.3, 1.35, 0.5, 1) both; }
  .how__seal.is-stamping .how__seal-mount { animation: how-press 0.46s var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  .how__seal-imp, .how__seal-wait { transition: none; }
}
@keyframes how-drift { to { transform: translateX(var(--dx)); } }
@keyframes how-flow { to { transform: translateX(-33.3333%); } }
@keyframes how-swell { 0%, 100% { transform: translateY(0); } 45%, 55% { transform: translateY(1.34%); } }
/* 船和扛仔一起晃：5.6 秒，上 3 單位、傾 0.6°，每段前後都停一下（間）。home.js 的 bob() 用同一組數字 */
@keyframes how-bob-ship {
  0%, 10% { transform: translateY(0) rotate(0deg); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  38%, 50% { transform: translateY(-1.558%) rotate(-0.6deg); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  76%, 84% { transform: translateY(-0.312%) rotate(0.25deg); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  100% { transform: translateY(0) rotate(0deg); }
}
@keyframes how-bob-duo {
  0%, 10% { transform: translateY(0) rotate(0deg); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  38%, 50% { transform: translateY(-4.25%) rotate(-0.6deg); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  76%, 84% { transform: translateY(-0.85%) rotate(0.25deg); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* 步驟清單 */
.how__steps {
  position: relative;
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}
.how__steps > .how__step {         /* 朱紅底的 li 會被放大成 19px 粗體；卡片裡用一般字 */
  position: relative;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
}
.how__card { height: 100%; gap: var(--space-2); }
.how__card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.how__no {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--red);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
}
.how__icon { width: 28px; height: 28px; color: var(--ink); }
.how__step-title { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.how__card .card__text { font-size: 0.9375rem; line-height: 1.65; }
.how__place {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--muted);
}
.how__place .icon { width: 16px; height: 16px; }

/* 手機：左邊一條虛線串起來 */
@media (max-width: 767.98px) {
  .how .how__steps { padding-left: 40px; }   /* base.css 的 ol[role="list"] 比較強，要多一層 */
  .how__steps::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 24px;
    bottom: 24px;
    border-left: 3px dashed var(--ink);
  }
  .how__steps > .how__step::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--ink);
  }
}
@media (min-width: 768px) {
  .how__steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
@media (min-width: 1024px) {
  .how__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
}

/* 桌機捲動故事（home.js 加上 .how--scene） */
.how--scene { padding-block: 0; }
.how--scene .how__pin {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding-block: clamp(20px, 4vh, 48px);
}
.how--scene .how__inner { width: 100%; }
.how--scene .how__head {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  max-width: none;
  margin-bottom: clamp(8px, 2vh, 24px);
}
.how--scene .how__title { font-size: clamp(2.6rem, 4.8vw, 4.2rem); }
.how--scene .how__lead { max-width: 24em; padding-bottom: 6px; }
.how--scene .how__hint { display: block; }
/* 區塊被釘住時會變得很長，裝飾星星的 % 位置會跟著捲過停住的畫面，所以演出時先藏起來（手機、平板、減少動態照常顯示） */
.how--scene > .sparkle--abs { display: none; }
.how--scene .how__band {
  width: min(100%, calc((100vh - var(--header-h) - 350px) * 1280 / 346));
  min-width: 62%;
  margin: 0 auto clamp(12px, 2.4vh, 28px);
}
/* 演出時 home.js 每一格寫 transform（船、扛仔一起晃也由它算），CSS 的晃動先關掉 */
.how--scene .how__ship, .how--scene .how__duo, .how--scene .how__sun { animation: none; will-change: transform; }
.how--scene .how__place { display: none; }
.how--scene .how__card {
  padding: 18px 18px 20px;
  transition:
    transform var(--dur-3) var(--ease-spring),
    box-shadow var(--dur-2) var(--ease-out),
    background-color var(--dur-2) var(--ease-out);
}
.how--scene .how__step:not(.is-active) .how__card { background: var(--oat); box-shadow: 3px 3px 0 var(--ink); }
.how--scene .how__step.is-active .how__card {
  background: var(--cream);
  transform: translateY(-10px) rotate(-1.2deg);
  box-shadow: 8px 10px 0 var(--ink);
}
.how--scene .how__step.is-done .how__no { color: var(--oat-soft); }

/* =========================================================
   3. 運費自己算（燕麥底）
   ========================================================= */
.calc { overflow-x: clip; }
.calc__grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 960px) {
  .calc__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: var(--space-8); }
}
.calc__how {
  padding: 20px 22px 22px;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  rotate: -1deg;
}
.calc__how-title { font-size: 1.0625rem; font-weight: var(--fw-black); margin-bottom: var(--space-3); }
.calc__rules { counter-reset: rule; list-style: none; padding: 0; display: grid; gap: 12px; }
.calc__rules li { counter-increment: rule; position: relative; padding-left: 38px; line-height: 1.65; }
.calc__rules li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 0.1em;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 0.875rem;
}
.calc__rules .badge { margin-left: 6px; }
/* 「材積重是什麼？看圖解」→ quote.html#vol（和試算頁卡片上的同一種小貼紙按鈕） */
.calc__vol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: var(--space-4);
  padding: 4px 12px 4px 6px;
  background: var(--cream);
  color: var(--ink);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 0.9375rem;
  font-weight: var(--fw-black);
  line-height: 1.3;
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), background-color var(--dur-1);
}
.calc__vol:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); background: var(--oat-soft); }
.calc__vol:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.calc__vol:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.calc__vol .icon { width: 1.1em; height: 1.1em; }
.calc__vol-q {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--red);
  border: var(--border-w) solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-latin);
  font-size: 1.1875rem;   /* 朱紅底上的字：粗體 19px 以上才夠對比 */
  font-weight: 800;
  line-height: 1;
}

.calc__card { container-type: inline-size; gap: var(--space-5); }
.calc__card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.calc__card-title { font-size: var(--fs-h3); font-weight: var(--fw-black); line-height: 1.3; }
.calc__examples { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 5px; }
.calc__examples .key { font-size: 0.875rem; padding: 6px 12px; min-height: 44px; }
.calc__dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc__dims .input { padding-left: 10px; padding-right: 2.5em; }
.calc__dims .input-affix__unit { right: 10px; }
.calc__kg { max-width: 22rem; }

.calc__out { display: grid; gap: 12px; padding-top: var(--space-4); border-top: 2px dashed var(--ink); }
.calc__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.calc__facts > div { display: grid; gap: 2px; min-width: 0; }
.calc__facts > div:first-child { grid-column: 1 / -1; }
.calc__facts dt { font-size: var(--fs-tiny); font-weight: var(--fw-bold); color: var(--muted); }
.calc__facts dd { margin: 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.4; }
@container (min-width: 480px) {
  .calc__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc__facts > div:first-child { grid-column: auto; }
}
.calc__math {
  padding: 8px 12px;
  background: var(--oat-soft);
  border-radius: 10px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.calc__total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.calc__total-label { font-weight: var(--fw-black); font-size: 1.0625rem; }
.calc__price { color: var(--red); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.calc__price.is-empty { color: var(--muted); -webkit-text-stroke: 0; }
.calc__note { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .calc__price.is-bump { animation: calc-bump 0.4s var(--ease-spring); }
}
@keyframes calc-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.06) rotate(-1deg); }
  100% { transform: scale(1); }
}

/* =========================================================
   4. 為什麼找扛扛
   ========================================================= */
.why { overflow-x: clip; }
.why__cards { list-style: none; padding: 0; }
/* 卡片圖示換成扛仔動作圖：高度固定、寬度照圖，寬圖（量尺寸、雙人扛）自然比較寬 */
.why__card .card__icon--mascot { width: auto; height: 104px; max-width: 100%; margin-bottom: var(--space-3); }
.why__card .card__icon--mascot img { display: block; width: auto; height: 104px; max-width: 100%; object-fit: contain; }
@media (min-width: 768px) {
  .why__card:nth-child(odd) { rotate: -1deg; }
  .why__card:nth-child(even) { rotate: 1.2deg; translate: 0 14px; }
}
.why__honest {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 20px;
  max-width: 54rem;
  margin-top: var(--space-8);
  padding: 20px 24px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius-card);
}
.why__honest-tag {
  padding: 6px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  font-weight: var(--fw-black);
  white-space: nowrap;
  rotate: -4deg;
}
@media (max-width: 479.98px) {
  .why__honest { grid-template-columns: minmax(0, 1fr); }
  .why__honest-tag { justify-self: start; }
}

/* =========================================================
   5. 三條服務（朱紅底）
   ========================================================= */
.services { overflow-x: clip; }
.services__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
}
.svc { gap: var(--space-3); }
.svc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc__no {
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}
.svc__jp {
  font-family: var(--font-jp);
  font-size: 0.9375rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border: 1.5px solid var(--muted);
  border-radius: var(--radius-pill);
}
.svc__title { font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.1; font-weight: var(--fw-black); color: var(--ink); }
.svc__sub { font-weight: var(--fw-bold); font-size: 1.0625rem; color: var(--ink); }
.svc__list { font-size: 0.9375rem; line-height: 1.65; }
.svc__notice { font-weight: var(--fw-bold); }
.svc__foot { margin-top: auto; padding-top: var(--space-3); }
@media (min-width: 1000px) {
  .svc:nth-child(1) { rotate: -1.2deg; }
  .svc:nth-child(2) { rotate: 0.8deg; translate: 0 22px; }
  .svc:nth-child(3) { rotate: -0.6deg; }
  .services__grid { padding-bottom: 22px; }
}

/* =========================================================
   6. 我們在哪裡（炭黑底，兩顆星球）
   ========================================================= */
.map {
  overflow-x: clip;
  padding-top: calc(var(--section-pad) + var(--radius-lg) * 0.5);
}
.map .section-head .lead { color: var(--oat); }
.map__space {
  position: relative;
  aspect-ratio: 1200 / 640;
  margin-top: var(--space-7);
}
.map__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  fill: none;
}
.map__route path {
  fill: none;
  stroke: var(--oat);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  vector-effect: non-scaling-stroke;
}
.map__route--v { display: none; }
.map__ship {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--red);
  pointer-events: none;
}
.map__ship .icon { width: 24px; height: 24px; }
.map--moving .map__ship { display: grid; }

.map__planet { position: absolute; aspect-ratio: 1; z-index: 2; }
.map__planet:has(.marker.is-open) { z-index: 6; }
.map__planet--jp { left: 5%; top: 4%; width: 36%; }
.map__planet--tw { left: 59%; top: 32%; width: 36%; }  /* 跟日本一樣大，台南、高雄兩個點才分得開 */
.map__body { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__globe--jp { fill: var(--red); }
.map__globe--tw { fill: var(--oat); }
.map__land { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map__land--jp { fill: var(--paper); }
.map__land--tw { fill: var(--cream); }
.map__crater { fill: var(--ink); opacity: 0.13; }
.map__shade { fill: var(--ink); opacity: 0.2; }
.map__edge { fill: none; stroke: var(--paper); stroke-width: 3; vector-effect: non-scaling-stroke; }
.map__ring {
  position: absolute;
  inset: -7%;
  border: 2px dashed var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.map__moon {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.map__planet--tw .map__moon { background: var(--red); }
.map__name {
  position: absolute;
  left: -2%;
  top: 2%;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 14px;
  background: var(--paper);
  color: var(--ink);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 3px 4px 0 var(--red);
  font-weight: var(--fw-black);
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
  rotate: -6deg;
  pointer-events: none;
}
.map__name .latin { font-size: 0.75rem; letter-spacing: 0.12em; }
.map__planet--tw .map__name { left: auto; right: -4%; top: 0; rotate: 5deg; }

/* 定位點（針尖座標是星球的百分比） */
.map__mk-osaka { --x: 59.7%; --y: 46.4%; }   /* 大阪 135.47E 34.66N */
.map__mk-tainan { --x: 32.9%; --y: 64.1%; }  /* 台南市南區健康路一段 120.20E 22.98N */
.map__mk-khh { --x: 35.6%; --y: 73.6%; }     /* 高雄港小港貨櫃碼頭 120.33E 22.555N */
.map__pop-kicker {
  font-family: var(--font-sans);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-bold);
  color: var(--muted);
  letter-spacing: 0.06em;
}
.map .marker__pop .caption { margin-top: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .map__planet--jp { animation: map-float 7s var(--ease-in-out) infinite; }
  .map__planet--tw { animation: map-float 8.5s var(--ease-in-out) -3s infinite; }
  .map__ring { animation: map-spin 44s linear infinite; }
  .map__planet--tw .map__ring { animation-duration: 32s; animation-direction: reverse; }
  .map__planet:has(.marker.is-open),
  .map__planet:has(.marker.is-open) .map__ring { animation-play-state: paused; }
}
@keyframes map-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@keyframes map-spin { to { transform: rotate(360deg); } }

/* 手機：上下兩顆 */
@media (max-width: 767.98px) {
  .map__space { aspect-ratio: 400 / 700; }
  .map__route--h { display: none; }
  .map__route--v { display: block; }
  .map__planet--jp { left: 0; top: 3%; width: 68%; }
  .map__planet--tw { left: 16%; top: 50%; width: 84%; }
  .map__name { font-size: 0.9375rem; }
  .map__planet--jp .map__name { left: auto; right: -30%; top: 6%; }
  .map__planet--tw .map__name { left: -18%; right: auto; top: -2%; rotate: -5deg; }
}

.map__legend {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-top: var(--space-8);
}
.map__legend li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: var(--border-w) solid var(--muted);
  border-radius: 16px;
}
.map__legend-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9375rem;
}
.map__legend-title { font-size: 1.0625rem; font-weight: var(--fw-black); color: var(--paper); line-height: 1.5; }
.map__legend p { font-size: 0.9375rem; line-height: 1.65; color: var(--oat); }

/* =========================================================
   7. 關於扛扛
   ========================================================= */
.about { overflow-x: clip; }
.about__grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
}
.about__media { position: relative; padding-bottom: 36px; }
.about__video { rotate: -1.2deg; }
.about__burst { position: absolute; right: -8px; bottom: -18px; z-index: 2; }
.about__team { list-style: none; padding: 0; display: grid; gap: 12px; }
.about__member {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  background: var(--oat-soft);
  border: var(--border-w) solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.about__member:nth-child(2) { margin-left: clamp(0px, 3vw, 28px); }
.about__member:nth-child(3) { margin-left: clamp(0px, 1.5vw, 14px); }
.about__where {
  flex: none;
  padding: 1px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-bold);
  line-height: 1.6;
  white-space: nowrap;
}
.about__member p { line-height: 1.65; }
@media (max-width: 479.98px) {
  .about__burst { right: 0; bottom: -24px; }
}
