/* 雲墨茶：場景式網站。整站是一幅固定的 2.5D 水墨，頁面捲動只用來推鏡頭，五站的內容浮在畫面上。配色照看稿 C「青綠山水」。 */
:root {
  --paper: #eef0e8;
  --paper-2: #e6dcc4;
  --silk: #f5f1e4;
  --stone-blue: #3e7482;
  --stone-green: #4f7d5e;
  --ink: #1f2b25;
  --accent: #b5402f;
  --muted: #1f2b25b8;
  --edge: #1f2b2552;
  --edge-soft: #1f2b2526;
  --display: "Cactus Classical Serif";
  --serif: var(--display), "Noto Serif TC", "Source Han Serif TC", "PMingLiU", serif;
  /* 各站大標用思源宋體 600（仙人掌明體只有 400，不能加粗） */
  --title-serif: "Noto Serif TC", "Source Han Serif TC", "PMingLiU", serif;
  --sans: "PingFang TC", "Noto Sans TC", "Source Han Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --gutter: 5.3vw;
  --heading: clamp(2.75rem, min(6vw, 10.5vh), 8rem);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --step: 130vh; /* 捲多遠走到下一站 */
  color: var(--ink);
  font: 100%/1.7 var(--sans);
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(#eef0e8, #e6dcc4) fixed; overscroll-behavior: none; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: 0; font-synthesis: none; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.icon { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ───── 水墨世界：固定在畫面上 ───── */
.world { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.landscape, .wash { position: absolute; inset: 0; overflow: hidden; }
.wash {
  background: linear-gradient(#eef0e8, #e6dcc4);
  mask-image: linear-gradient(90deg, #000 4%, #000f 20%, #000b 34%, transparent 52%), linear-gradient(180deg, transparent 7%, #000 21% 74%, transparent 93%);
  mask-composite: intersect;
}
.wash--foot { mask-image: linear-gradient(0deg, #000 0 3%, #000e 5%, transparent 12%), linear-gradient(90deg, transparent 24%, #000 34% 66%, transparent 76%); }
.plane { position: absolute; top: 0; left: 0; opacity: 0; transform-origin: center; }
.plane.is-live { will-change: transform, opacity; }
.plane--ink { display: block; height: auto; max-width: none; user-select: none; }
.plane--haze {
  background:
    radial-gradient(ellipse at 28% 55%, #fffffff0 0%, transparent 56%),
    radial-gradient(ellipse at 69% 48%, #ffffffe0 0%, transparent 64%),
    radial-gradient(ellipse at 51% 56%, #fff 0%, transparent 70%);
}

/* 捲動軌道：只用來產生捲動距離，內容固定浮在畫面上 */
.stations { position: relative; z-index: 1; height: calc(4 * var(--step) + 100vh); }
.station { position: fixed; inset: 0; pointer-events: none; opacity: 0; visibility: hidden; }
.station.is-visible { visibility: visible; }
.station.is-active { pointer-events: auto; }
.station > * { pointer-events: auto; }
.station:not(.is-active) > * { pointer-events: none; }

/* ───── 頁首：場景式網站的頁首固定不收 ───── */
.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: max(clamp(12px, 2.4vh, 26px), env(safe-area-inset-top)) var(--gutter) 10px;
}
.brand { justify-self: start; width: max-content; padding: 0 0 3px; border: 0; border-bottom: 2px solid var(--accent); background: none; font: 400 clamp(1.375rem, 1.6vw, 1.875rem)/1.2 var(--serif); white-space: nowrap; }
.site-nav { display: flex; gap: 2px; padding: 3px; border: 1px solid #1f2b2536; border-radius: 26px; background: #fffffff0; }
.site-nav button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 22px; background: transparent; font-size: .9375rem; white-space: nowrap; transition: background-color .25s ease, color .25s ease; }
.site-nav button:hover { background: #1f2b2512; }
.site-nav button[aria-current="page"] { background: var(--ink); color: #fff; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.shop-small { min-height: 44px; padding: 0 18px; border: 1px solid var(--edge); border-radius: 23px; background: #ffffff8f; font-weight: 700; }
.menu-toggle { position: relative; display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.menu-line { position: absolute; left: 11px; width: 22px; height: 1.6px; background: currentColor; border-radius: 1px; transition: transform .35s var(--ease), width .35s var(--ease), top .35s var(--ease); }
.menu-line:nth-child(1) { top: 15px; }
.menu-line:nth-child(2) { top: 21px; }
.menu-line:nth-child(3) { top: 27px; width: 15px; }
/* 素材庫 339：三條線折成返回箭頭 */
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) { top: 17px; width: 12px; transform: translate(-1px, 0) rotate(-40deg); transform-origin: left center; }
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) { top: 25px; width: 12px; transform: translate(-1px, 0) rotate(40deg); transform-origin: left center; }

/* ───── 各站共用排版：左側文案欄 ───── */
/* 文案欄放寬到快一半的畫面，在頁首與山路地圖之間上下置中 */
.story {
  position: absolute;
  left: var(--gutter);
  top: max(96px, 11vh);
  bottom: max(112px, 13vh);
  width: min(45vw, 980px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.eyebrow { display: flex; align-items: center; gap: 9px; width: fit-content; margin: 0 0 clamp(10px, 1.6vh, 20px); font-size: clamp(.875rem, .85vw, 1.0625rem); font-weight: 700; line-height: 1.45; white-space: nowrap; }
.eyebrow::before { content: ""; width: 13px; height: 1px; background: var(--accent); }
.station-title { font: 600 var(--heading)/1.2 var(--title-serif); }
.station-title > span { display: block; white-space: nowrap; }
.station-title > span + span { color: var(--accent); }
.lead { max-width: 28em; margin: clamp(12px, 2vh, 24px) 0 0; color: var(--muted); font-size: clamp(.9375rem, 1.2vw, 1.375rem); line-height: 1.75; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px clamp(16px, 1.8vw, 32px); margin-top: clamp(18px, 3vh, 36px); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 12px clamp(20px, 2.4vw, 44px); margin: clamp(20px, 3.4vh, 40px) 0 0; padding: clamp(14px, 2.2vh, 22px) 0 0; border-top: 1px solid var(--edge-soft); list-style: none; font-size: clamp(.8125rem, .85vw, 1rem); line-height: 1.4; }
.features li { display: flex; align-items: center; gap: 11px; }
.features p { margin: 0; }
.features strong, .features span { display: block; }
.features span { margin-top: 2px; color: var(--muted); white-space: nowrap; }

/* 各站內容的進出：鏡頭接近才浮現（透明度與位移由程式依鏡頭距離設定） */
.station .story, .station .card { will-change: opacity, transform; }
/* 到站時的進場：素材庫 19 文字旗幟改成進場，字像被風吹過一次後停在正位 */
[data-flag] .flag-char { display: inline-block; }
.js .station:not(.is-arrived) [data-flag] .flag-char { opacity: 0; }
.station.is-arrived [data-flag] .flag-char { animation: flag-in 1.1s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes flag-in {
  0% { opacity: 0; transform: translateY(.22em) skewX(-16deg) rotate(-3deg); }
  35% { opacity: 1; transform: translateY(-.06em) skewX(9deg) rotate(1.5deg); }
  62% { transform: translateY(.03em) skewX(-4deg) rotate(-.6deg); }
  82% { transform: skewX(1.5deg); }
  100% { opacity: 1; transform: none; }
}
/* 其他內容依序浮上來（素材庫 40 漂浮改成進場） */
.js .station [data-rise] { opacity: 0; transform: translateY(10px); }
.station.is-arrived [data-rise] { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.25s + var(--r, 0) * 80ms); }

/* 數字換字：舊的往上淡出、新的從下淡入 */
.num-swap { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.num-swap > span { grid-area: 1 / 1; }
.num-out { animation: num-out .25s ease forwards; }
.num-in { animation: num-in .25s ease both; }
@keyframes num-out { to { opacity: 0; transform: translateY(-60%); } }
@keyframes num-in { from { opacity: 0; transform: translateY(60%); } }

/* ───── 按鈕 ───── */
.circle-icon { display: grid; width: 26px; height: 26px; flex: none; place-items: center; border: 1px solid #ffffff70; border-radius: 50%; background: #ffffff19; transition: transform .3s var(--ease); }
.circle-icon .icon { width: 15px; height: 15px; }
/* 主按鈕：滑過時茶湯從下往上注滿，上緣帶一點波紋 */
.btn-primary {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: clamp(48px, 5.6vh, 58px); padding: 0 11px 0 clamp(18px, 1.4vw, 24px); border: 0; border-radius: 30px 4px 4px 30px;
  background: var(--ink); color: #fff; font-size: clamp(.9375rem, .95vw, 1.0625rem); font-weight: 700; white-space: nowrap;
}
.btn-primary::before {
  content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; top: -10px; bottom: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6c10-5 20-5 30 0s20 5 30 0 20-5 30 0 20 5 30 0v6H0z' fill='%234f7d5e'/%3E%3C/svg%3E") 0 0 / 60px 12px repeat-x,
    linear-gradient(var(--stone-green), var(--stone-green)) 0 11px / 100% 100% no-repeat;
  transform: translateY(102%);
  transition: transform .5s var(--ease), background-position 1.2s linear;
}
.btn-primary:hover::before, .btn-primary:focus-visible::before { transform: translateY(0); background-position: 60px 0, 0 11px; }
.btn-primary:hover .circle-icon, .btn-primary:focus-visible .circle-icon { transform: translateX(4px); }
/* 次按鈕：滑過時外圈依序描一圈 */
.btn-secondary { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 2px 4px 2px 0; border: 0; background: none; font-size: .875rem; line-height: 1.2; text-align: left; }
.btn-secondary strong { display: block; font-weight: 700; }
.btn-secondary small { display: block; margin-top: 3px; font-size: .8125rem; color: var(--muted); }
.ring { display: block; width: 34px; height: 34px; flex: none; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring circle { fill: none; stroke-width: 1; }
.ring-base { stroke: currentColor; opacity: .55; }
.ring-draw { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 101; stroke-dashoffset: 101; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .6s var(--ease); }
.ring path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.btn-secondary:hover .ring-draw, .btn-secondary:focus-visible .ring-draw { stroke-dashoffset: 0; }
.only-mobile { display: none; }

/* ───── 右上角卡片（首站資訊、產地題簽） ───── */
.card { position: absolute; top: max(104px, 13vh); right: var(--gutter); }
.card--facts { display: flex; margin: 0; padding: 10px 0; border: 1px solid var(--edge); border-radius: 3px; background: #fffc; font-size: .875rem; line-height: 1.45; }
.card--facts div { padding: 0 clamp(14px, 1.5vw, 28px); }
.card--facts div + div { border-left: 1px solid var(--edge); }
.card--facts dt, .label-fields dt { color: var(--accent); font-weight: 700; }
.card--facts dd { margin: 3px 0 0; white-space: nowrap; }
/* 首站右上角有松枝，資訊卡移到右下的雲海上 */
.station--home .card--facts { top: auto; bottom: max(120px, 15vh); }
.scroll-hint { position: absolute; left: var(--gutter); bottom: max(76px, 9vh); display: flex; align-items: center; gap: 12px; margin: 0; font-size: .8125rem; color: var(--muted); }
.scroll-hint-line { position: relative; width: 1px; height: 44px; overflow: hidden; background: var(--edge-soft); }
.scroll-hint-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { to { top: 100%; } }

/* 茶罐側標：題簽樣式 */
.card--label {
  width: min(330px, 26vw);
  padding: 22px 24px 18px;
  background: var(--silk);
  border: 1px solid var(--edge);
  outline: 1px solid var(--edge-soft);
  outline-offset: -8px;
}
.label-slip { width: fit-content; margin: 0 0 10px; padding: 3px 10px; border: 1px solid var(--accent); color: var(--accent); font-size: .75rem; font-weight: 700; }
.label-name { font: 400 1.625rem/1.3 var(--serif); }
.lot-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 12px; }
.lot-tabs button { min-height: 44px; padding: 0 2px; border: 1px solid var(--edge-soft); background: transparent; font-size: .75rem; font-weight: 700; transition: background-color .2s ease, color .2s ease; }
.lot-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.label-fields { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0 0; border-top: 1px solid var(--edge); }
.label-fields div { padding: 9px 0; border-bottom: 1px solid var(--edge-soft); }
.label-fields div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--edge-soft); }
.label-fields dt { font-size: .75rem; }
.label-fields dd { margin: 1px 0 0; font-weight: 700; }
.label-foot { margin: 10px 0 0; font-size: .75rem; color: var(--muted); }

/* ───── 產地站 ───── */
.seasons { display: grid; gap: 0; width: 100%; max-width: 34rem; margin: clamp(12px, 2vh, 22px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--edge); }
.seasons li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--edge-soft); }
.seasons strong { color: var(--accent); font-size: .9375rem; }
.seasons span { font-family: var(--serif); font-size: clamp(1.125rem, 1.3vw, 1.5rem); }

/* ───── 茶品站：素材庫 212 焦點卡片改成「選中的茶罐放大，其餘縮成小罐」 ───── */
.tea-focus { width: 100%; max-width: 46rem; display: grid; grid-template-columns: clamp(140px, 13vw, 260px) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 26px); align-items: center; margin-top: clamp(14px, 2.4vh, 28px); }
.tea-focus-img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--edge-soft); background: var(--paper-2); transition: opacity .3s ease, transform .45s var(--ease); }
.tea-focus-img.is-swapping { opacity: 0; transform: scale(.92) translateY(6px); }
.tea-focus-body h3 { font: 400 clamp(1.625rem, 2.2vw, 2.75rem)/1.3 var(--serif); }
.tea-note { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; }
.tea-meta { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 12px; }
.price { font-weight: 700; font-size: 1.125rem; }
.tea-picker { display: flex; gap: 8px; margin-top: clamp(14px, 2vh, 22px); }
.tea-picker button { position: relative; display: grid; justify-items: center; gap: 4px; width: clamp(60px, 5.4vw, 96px); padding: 0 0 4px; border: 0; background: transparent; font-size: .8125rem; color: var(--muted); transition: transform .4s var(--ease), opacity .3s ease; }
.tea-picker img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--edge-soft); opacity: .62; transition: opacity .3s ease; }
.tea-picker button:hover img { opacity: .9; }
.tea-picker button[aria-pressed="true"] { transform: translateY(-4px); color: var(--ink); font-weight: 700; }
.tea-picker button[aria-pressed="true"] img { opacity: 1; border-color: var(--accent); }

/* ───── 沖泡站：素材庫 242 分段控制器 ───── */
.segmented { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: clamp(16px, 2.6vh, 30px); padding: 4px; border: 1px solid var(--edge); border-radius: 30px; background: var(--silk); }
.segmented button { position: relative; z-index: 1; min-width: 96px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 24px; background: transparent; font-weight: 700; transition: color .3s ease; }
.segmented button[aria-selected="true"] { color: #fff; }
.segmented-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 24px; background: var(--ink); width: var(--thumb-w, 96px); transform: translateX(var(--thumb-x, 4px)); transition: transform .5s cubic-bezier(.34, 1.4, .5, 1), width .5s cubic-bezier(.34, 1.4, .5, 1); }
.brew-stats { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 46rem; margin: clamp(18px, 3vh, 34px) 0 0; border-block: 1px solid var(--edge); }
.brew-stats div { padding: 14px 0 14px 14px; border-left: 1px solid var(--edge-soft); }
.brew-stats div:first-child { padding-left: 0; border-left: 0; }
.brew-stats dt { font-size: .8125rem; color: var(--muted); }
.brew-stats dd { margin: 4px 0 0; font: 400 clamp(1.5rem, 2.5vw, 3rem)/1.2 var(--serif); white-space: nowrap; }
.brew-note { max-width: 26em; min-height: 3.4em; margin: 12px 0 0; color: var(--muted); font-size: .9375rem; }

/* ───── 茶席站 ───── */
.booking-facts { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 0 clamp(20px, 2.4vw, 44px); max-width: 46rem; margin: clamp(12px, 2vh, 22px) 0 0; border-top: 1px solid var(--edge); }
.booking-facts div { padding: 9px 0; border-bottom: 1px solid var(--edge-soft); }
.booking-facts dt { font-size: .8125rem; color: var(--muted); }
.booking-facts dd { margin: 1px 0 0; font-weight: 700; }
@media (max-height: 760px) { .store { display: none; } }
.store { margin: clamp(14px, 2.4vh, 26px) 0 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); }

/* ───── 山路地圖：章節選單，圓點跟著鏡頭走 ───── */
.scroll-map {
  position: fixed; z-index: 15; left: 50%; bottom: max(clamp(12px, 2.15vh, 26px), env(safe-area-inset-bottom));
  width: min(46%, 720px); height: 70px; transform: translateX(-50%);
  border: 1px solid #1f2b2555; border-inline: 5px solid var(--stone-green); border-radius: 3px;
  background: #f5f1e4f5; box-shadow: 0 3px 0 #1f2b251a;
}
.map-art { position: absolute; inset: 5px 0 auto; width: 100%; height: 27px; overflow: visible; pointer-events: none; }
.map-segment { fill: none; stroke: var(--stone-green); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-dot { position: absolute; z-index: 1; left: 5%; top: 22px; width: 10px; height: 10px; transform: translate(-50%, -50%); border: 1px solid var(--silk); border-radius: 50%; background: var(--accent); pointer-events: none; }
.scroll-map button { position: absolute; top: 3px; left: var(--x); transform: translateX(-50%); display: grid; justify-items: center; align-content: end; min-width: 44px; height: 60px; padding: 0 2px 2px; border: 0; background: transparent; font-size: .8125rem; white-space: nowrap; }
.scroll-map button::before { content: ""; position: absolute; top: var(--y); left: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); border: 1px solid var(--stone-green); border-radius: 50%; background: var(--silk); }
.scroll-map button[aria-current="step"] { color: var(--accent); font-weight: 700; }
.scroll-map button[aria-current="step"]::before { background: transparent; border-color: var(--accent); }

/* ───── 側邊細節面板：放不下的照片與說明，面板裡面才可以捲 ───── */
.drawer { position: fixed; z-index: 40; inset: 0; }
.drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: #1f2b2540; opacity: 0; transition: opacity .4s ease; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 92vw);
  overflow-y: auto; overscroll-behavior: contain; padding: 0 0 40px;
  background: var(--silk); box-shadow: -20px 0 60px #1f2b2526;
  transform: translateX(104%); transition: transform .55s var(--ease);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-close { position: sticky; top: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: 12px 12px -56px auto; border: 1px solid var(--edge); border-radius: 50%; background: #f5f1e4e6; }
.drawer-section img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.drawer-section > :not(img) { margin-inline: 32px; }
.drawer-title { margin-top: 28px; font: 400 clamp(1.875rem, 2.6vw, 2.5rem)/1.3 var(--serif); }
.drawer-section > p { margin-top: 14px; color: var(--muted); }
.day-steps { margin: 22px 32px 0; padding: 0; list-style: none; border-top: 1px solid var(--edge); }
.day-steps li { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--edge-soft); }
.day-steps b { font-family: var(--serif); font-weight: 400; color: var(--accent); }
.drawer-section[data-panel="record"] { padding-top: 72px; }
.drawer-record .card--label { position: static; width: auto; margin-top: 18px; }

/* ───── 手機選單：四扇山水屏風依序展開 ───── */
.menu { position: fixed; z-index: 30; inset: 0; display: flex; }
.menu[hidden] { display: none; }
.screen { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); perspective: 1400px; }
.screen-panel {
  background: url("layers/mountain-far.webp") var(--bx, 0%) 72% / 400% auto no-repeat, linear-gradient(#eef0e8, #e6dcc4);
  border-right: 1px solid var(--edge-soft);
  transform-origin: left center; transform: rotateY(-92deg); opacity: .4;
  transition: transform .55s var(--ease), opacity .55s var(--ease);
}
.screen-panel:nth-child(2) { --bx: 33.3%; transform-origin: right center; transform: rotateY(92deg); transition-delay: .07s; }
.screen-panel:nth-child(3) { --bx: 66.6%; transition-delay: .14s; }
.screen-panel:nth-child(4) { --bx: 100%; transform-origin: right center; transform: rotateY(92deg); transition-delay: .21s; }
.menu.is-open .screen-panel { transform: rotateY(0); opacity: 1; }
.menu-body { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; padding: 96px 7% max(28px, env(safe-area-inset-bottom)); overflow-y: auto; }
.menu-nav { display: grid; gap: 4px; }
.menu-nav button { display: grid; gap: 2px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--edge); background: none; text-align: left; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s var(--ease); }
.menu.is-open .menu-nav button { opacity: 1; transform: none; transition-delay: calc(.32s + var(--i, 0) * .06s); }
.menu-nav strong { font: 400 2rem/1.3 var(--serif); }
.menu-nav span { font-size: .875rem; color: var(--muted); }
.menu-foot { display: grid; gap: 18px; margin-top: auto; padding-top: 32px; opacity: 0; transition: opacity .35s ease .55s; }
.menu.is-open .menu-foot { opacity: 1; }
.menu-foot .btn-primary { justify-self: start; }
.menu-foot p { margin: 0; font-size: .875rem; color: var(--muted); }

.footnote { position: fixed; z-index: 14; left: var(--gutter); bottom: max(clamp(18px, 2.6vh, 32px), env(safe-area-inset-bottom)); max-width: 15em; margin: 0; font-size: .6875rem; line-height: 1.5; color: #1f2b2599; }

/* ───── 斷點 ───── */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header { grid-template-columns: 1fr auto; }
  .footnote { display: none; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .story { width: 52vw; }
  .features { grid-template-columns: 1fr; }
  .booking-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px), (max-height: 640px) and (max-width: 1100px) {
  :root { --gutter: 5vw; --heading: clamp(2rem, 10vw, 2.75rem); --step: 110vh; }
  .site-header { padding-bottom: 6px; }
  .shop-small { padding-inline: 14px; }
  .story { top: 76px; bottom: auto; display: block; width: auto; right: var(--gutter); }
  .lead { font-size: .875rem; line-height: 1.6; }
  .features, .scroll-hint { display: none; }
  .card--facts { top: auto; left: var(--gutter); right: auto; bottom: 96px; display: block; padding: 6px 10px; }
  .card--facts div:first-child { display: none; }
  .card--facts div + div { display: flex; gap: 8px; padding: 0; border: 0; }
  .card--facts dd { margin: 0; }
  .station .card--label { display: none; }
  .only-mobile { display: inline-flex; }
  .actions { gap: 6px 16px; }
  .tea-focus { grid-template-columns: 96px minmax(0, 1fr); }
  .tea-focus-body h3 { font-size: 1.375rem; }
  .tea-meta { margin-bottom: 8px; }
  .tea-picker button { width: 54px; }
  .segmented { display: grid; width: 100%; }
  .segmented button { min-width: 0; padding: 0 8px; }
  .brew-stats { grid-template-columns: 1fr 1fr; }
  .brew-stats div { padding: 10px 0 10px 14px; }
  .brew-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .brew-stats div:nth-child(n+3) { border-top: 1px solid var(--edge-soft); }
  .brew-stats dd { font-size: 1.5rem; }
  .booking-facts { grid-template-columns: 1fr 1fr; }
  .booking-facts div { padding: 7px 0; }
  .store { display: none; }
  .wash:not(.wash--foot) { mask-image: linear-gradient(#000 0 34%, #000c 46%, transparent 60%); }
  .scroll-map { width: calc(100% - 2 * var(--gutter) - 52px); left: var(--gutter); transform: none; height: 64px; }
  .scroll-map button { height: 54px; font-size: .75rem; }
  .drawer-section > :not(img), .day-steps { margin-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .station:not(.is-arrived) [data-flag] .flag-char, .js .station [data-rise] { opacity: 1; transform: none; }
  .scroll-hint-line::after { animation: none; }
}
