/* ==========================================================================
   大畝 MiLK — Theme A「牧場繪本長捲」Storybook Scroll
   ========================================================================== */

:root {
  --mustard: #DD8A00;
  --mustard-ink: #9A5C00;      /* 小字用，可達對比 */
  --ink: #231816;
  --ink-soft: rgba(35, 24, 22, .72);
  --ink-faint: rgba(35, 24, 22, .16);
  --cream: #F8F4EC;
  --paper: #FFF8EA;
  --peach: #FDC690;
  --carton: #FEA92F;
  --orange: #FE8421;
  --white: #FFFFFF;
  --grass: #9BBF6A;
  --grass-light: #C9DFA2;
  --grass-dark: #86AF55;
  --sky: #A8D5E8;
  --sky-light: #E2F1F6;
  --pink: #E8578A;
  --pink-deep: #C93A6E;
  --error: #B0234F;

  --font-tc: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-round: "Fredoka", "Noto Sans TC", sans-serif;

  --header-h: 76px;
  --container: 1200px;
  --gutter: 16px;
  --wob: 22px 14px 26px 12px / 14px 24px 12px 26px;
  --wob-2: 14px 26px 12px 24px / 24px 12px 26px 14px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .5, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .09 0 0 0 0 .08 0 0 0 .5 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --wave-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6c8-4 14-4 20 0s12 4 19 0 13-4 20 0 13 4 19 0' fill='none' stroke='%23DD8A00' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-tc);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--grain), var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--peach); color: var(--ink); }

:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-weight: 700;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.paper { background: var(--grain), var(--paper); }
.story, .plans, .about, .partners, .contact, .footer { overflow-x: clip; }

/* ---------- Buttons (pushable：只動 transform) ---------- */
.btn {
  --btn-bg: var(--mustard);
  --btn-fg: var(--ink);
  --btn-lift: 5px;
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  background: var(--ink);
  padding: 0;
  margin-top: var(--btn-lift);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn__face {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  width: 100%;
  padding: .72em 1.5em;
  border: 2.5px solid var(--ink);
  border-radius: inherit;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.3;
  white-space: nowrap;
  transform: translateY(calc(var(--btn-lift) * -1));
  transition: transform .35s var(--ease-bounce);
}
.btn:hover .btn__face { transform: translateY(calc(var(--btn-lift) * -1 - 3px)); }
.btn:active .btn__face { transform: translateY(-1px); transition-duration: .08s; }
.btn .icon { transition: transform .35s var(--ease-bounce); }
.btn:hover .icon { transform: translateX(3px); }
.btn--ghost { --btn-bg: var(--paper); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--ink { background: var(--mustard); }
.btn--lg .btn__face { font-size: 17px; padding: .8em 1.7em; }
.btn--sm .btn__face { font-size: 14px; padding: .55em 1.1em; }
.btn--sm { --btn-lift: 4px; }

.round-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 2.5px solid var(--ink);
  transition: transform .3s var(--ease-bounce);
}
.round-btn:hover { transform: translateY(-2px) rotate(-6deg); }
.round-btn:active { transform: scale(.94); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: transform .5s var(--ease-out);
  will-change: transform;
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grain), var(--paper);
  border-bottom: 2.5px solid var(--ink);
  opacity: 0; transition: opacity .35s ease;
}
.site-header.is-scrolled::before, .menu-open .site-header::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-115%); }
.site-header__bar { position: relative; display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: block; flex: none; transition: transform .4s var(--ease-bounce); }
.brand:hover { transform: rotate(-4deg) scale(1.04); }
.brand img { height: 46px; width: auto; }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: clamp(12px, 2.1vw, 34px); list-style: none; }
.nav__link {
  position: relative; display: block; padding: 8px 2px;
  font-weight: 700; letter-spacing: .14em; font-size: 15px;
}
.nav__link::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 0; height: 9px;
  background: var(--wave-line) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .45s var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { clip-path: inset(0 0 0 0); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.login-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px 7px 12px; border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--paper); font-weight: 700; font-size: 14px; letter-spacing: .1em;
  transition: transform .3s var(--ease-bounce);
}
.login-link:hover { transform: translateY(-2px) rotate(-2deg); }

.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mustard); border: 2.5px solid var(--ink);
  transition: transform .3s var(--ease-bounce);
}
.cart-btn .icon { width: 24px; height: 24px; }
.cart-btn:hover { transform: rotate(-8deg) scale(1.05); }
.cart-badge {
  position: absolute; top: -7px; right: -8px;
  min-width: 24px; height: 24px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 12px; border: 2px solid var(--ink);
  background: var(--pink-deep); color: var(--white);
  font-family: var(--font-round); font-weight: 700; font-size: 13px; line-height: 1;
  will-change: transform;
}
.cart-badge.is-empty { background: var(--paper); color: var(--ink); }

.burger {
  display: none; position: relative; width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--ink);
}
.burger span {
  position: absolute; left: 12px; width: 18px; height: 2.6px; border-radius: 2px; background: var(--ink);
  transition: transform .45s var(--ease-bounce), opacity .25s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; width: 13px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.read-progress { position: absolute; left: 0; right: 0; bottom: -4px; height: 5px; pointer-events: none; }
.read-progress span {
  display: block; height: 100%; background: var(--mustard);
  border-bottom: 1.5px solid var(--ink);
  transform-origin: 0 50%; transform: scaleX(0); will-change: transform;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--grain), var(--paper);
  overflow: hidden;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner {
  position: static; height: 100%; overflow-x: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: calc(var(--header-h) + 20px) 24px max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.mobile-menu__list { list-style: none; }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0;
  font-size: clamp(26px, 8vw, 38px); font-weight: 900; letter-spacing: .14em;
  border-bottom: 2px dashed var(--ink-faint);
}
.mm-no { font-family: var(--font-round); font-weight: 700; font-size: 15px; color: var(--mustard-ink); letter-spacing: .05em; }
.mobile-menu__foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.mobile-menu__tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-round); font-weight: 600; font-size: 18px; letter-spacing: .06em; }
.mobile-menu__cow {
  position: absolute; right: -24px; bottom: 90px; width: min(46vw, 210px); height: auto;
  mix-blend-mode: multiply; transform: rotate(8deg); opacity: .9; pointer-events: none;
}

/* ==========================================================================
   Hero — 牧場風景視差
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 700px);
  background: linear-gradient(180deg, #C9E6F1 0%, #E4F3F4 40%, #FBF6E6 72%, var(--paper) 100%);
  display: flex; flex-direction: column;
}
.layer { position: absolute; pointer-events: none; will-change: transform; }
.layer__in { width: 100%; height: 100%; will-change: transform; }
.hero__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.layer--sun { top: 13%; right: 8%; width: clamp(92px, 11vw, 168px); aspect-ratio: 1; }
.sun { width: 100%; height: auto; }
.sun__rays { transform-box: view-box; transform-origin: 100px 100px; animation: spin 46s linear infinite; }
.layer--clouds { inset: 0; }
.cloud { position: absolute; }
.cloud svg { width: 100%; height: auto; animation: drift 18s ease-in-out infinite alternate; }
.cloud--c1 { top: 9%; left: 50%; width: clamp(110px, 11vw, 170px); }
.cloud--c2 { top: 27%; left: 62%; width: clamp(80px, 8vw, 120px); }
.cloud--c2 svg { animation-duration: 23s; animation-delay: -6s; }
.cloud--c3 { top: 40%; right: 4%; width: clamp(120px, 13vw, 200px); }
.cloud--c3 svg { animation-duration: 27s; animation-delay: -12s; }
.cloud--c4 { top: 50%; left: 53%; width: clamp(70px, 6vw, 96px); opacity: .85; }
.cloud--c4 svg { animation-duration: 20s; animation-delay: -3s; }
.birds { position: absolute; top: 17%; left: 71%; width: clamp(70px, 7vw, 110px); height: auto; animation: bob 4s ease-in-out infinite; }

.hero__land { position: absolute; left: -48px; right: -48px; bottom: 0; height: 50%; z-index: 1; pointer-events: none; }
.hero__land .layer { inset: 0; }
.hero__land svg, .layer--front svg { width: 100%; height: 100%; }

.hero__mascot {
  position: absolute; z-index: 2;
  right: 6vw; bottom: max(7.4vw, 11.2svh, 74px);
  width: clamp(190px, 25vw, 400px);
  pointer-events: none; will-change: transform;
}
.hero__mascot-in { will-change: transform; }
.hero__mascot img { width: 100%; height: auto; }

.layer--front { left: -60px; right: -60px; bottom: -2px; height: clamp(54px, 7.4vw, 104px); z-index: 3; }

.hero__content {
  position: relative; z-index: 4;
  padding-top: calc(var(--header-h) + clamp(20px, 6vh, 72px));
  padding-bottom: 40vh;
}
.hero__title { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: inherit; }
.hero__kicker {
  display: inline-block; padding: 5px 14px 5px 20px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: .5em;
  transform: rotate(-2deg);
}
.hero__logo { width: clamp(220px, 25vw, 360px); height: auto; transform-origin: 30% 70%; }
.hero__slogan {
  margin-top: clamp(14px, 2.4vh, 26px);
  font-size: clamp(30px, 4.1vw, 58px); font-weight: 900; letter-spacing: .16em; line-height: 1.2;
}
.hero__slogan .ch { display: inline-block; will-change: transform; }
.hero__slogan .ch--mark { color: var(--mustard); }
.hero__tagline { margin-top: 16px; }
.hero__tagline span {
  display: inline-block; padding: 5px 18px;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--wob);
  font-size: clamp(14px, 1.35vw, 18px); font-weight: 700; letter-spacing: .38em;
  transform: rotate(-1.2deg);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: clamp(18px, 3.2vh, 34px); }

.scroll-cue {
  position: absolute; z-index: 4; left: 0; right: 0; margin-inline: auto; width: max-content;
  bottom: calc(clamp(54px, 7.4vw, 104px) + 6px);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: .3em;
}
.scroll-cue__bottle { animation: bob 2.2s ease-in-out infinite; }
.scroll-cue__drop { animation: drop 1.8s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.scroll-cue__text { padding-left: .3em; }

/* ==========================================================================
   Ribbon marquee
   ========================================================================== */
.ribbon { position: relative; z-index: 6; overflow: hidden; padding: 30px 0; margin: -60px 0 -30px; pointer-events: none; }
.ribbon__band {
  width: 108%; margin-left: -4%;
  background: var(--mustard); color: var(--ink);
  border-block: 3px solid var(--ink);
  padding: 12px 0; overflow: hidden;
  transform: rotate(-2deg);
}
.ribbon__track { display: flex; width: max-content; will-change: transform; }
.ribbon__group { display: flex; align-items: center; flex: none; }
.ribbon__item { font-weight: 900; font-size: clamp(17px, 2vw, 26px); letter-spacing: .3em; white-space: nowrap; }
.ribbon__sep { font-weight: 900; font-size: clamp(17px, 2vw, 26px); margin: 0 .5em 0 .1em; }
.ribbon__icon { width: 24px; height: 34px; margin: 0 1.1em 0 .4em; }
.ribbon__heart { width: 20px; height: 20px; margin: 0 1.1em; color: var(--mustard); }
.ribbon--ink { margin: -40px 0 -30px; }
.ribbon--ink .ribbon__band { background: var(--ink); color: var(--paper); transform: rotate(1.6deg); border-color: var(--ink); }
.no-anim .ribbon__track { animation: marquee 50s linear infinite; }

/* ==========================================================================
   Section heading
   ========================================================================== */
.sec-head { margin-bottom: clamp(30px, 5vw, 60px); }
.sec-head--center { text-align: center; }
.sec-head__kicker { margin-bottom: 14px; }
.chap {
  display: inline-block; padding: 4px 14px 4px 18px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
  font-size: 14px; font-weight: 900; letter-spacing: .42em;
  transform: rotate(-2.5deg);
}
.sec-head__title {
  position: relative; display: inline-block;
  font-size: clamp(32px, 5vw, 60px); font-weight: 900; letter-spacing: .14em; line-height: 1.25;
}
.doodle {
  position: absolute; left: -3%; bottom: -16px; width: 106%; height: 18px;
  color: var(--mustard); pointer-events: none;
}
.sec-head__lead { margin-top: 26px; font-size: clamp(16px, 1.6vw, 19px); font-weight: 700; letter-spacing: .14em; color: var(--ink-soft); }
.sec-head__lead--hint { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: .08em; }
.sec-head--center .sec-head__lead--hint { justify-content: center; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

/* ==========================================================================
   第一章 品牌故事
   ========================================================================== */
.story { position: relative; padding: clamp(100px, 12vw, 170px) 0 clamp(80px, 10vw, 140px); }
.story__grid {
  display: grid; grid-template-columns: minmax(170px, 320px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 110px); align-items: start;
}
.story__bottle-col {
  position: sticky;
  top: calc((100vh - min(64vh, 540px)) / 2 + 20px);
  display: flex; justify-content: center;
}
.story__bottle svg { height: min(64vh, 540px); width: auto; overflow: visible; }
.milk { will-change: transform; }
.milk__wave { animation: wave 3.2s linear infinite; }
.milk__bubbles circle { animation: bubble 3.6s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.milk__bubbles circle:nth-child(2) { animation-delay: -1.2s; animation-duration: 4.2s; }
.milk__bubbles circle:nth-child(3) { animation-delay: -2.4s; }
.bottle__ticks .tick-on { opacity: 1; }

.story__lines { list-style: none; counter-reset: none; }
.story__line { display: flex; align-items: baseline; gap: clamp(10px, 1.6vw, 22px); padding: clamp(16px, 4.6vh, 46px) 0; }
.story__no {
  flex: none; font-family: var(--font-round); font-weight: 700; font-size: clamp(13px, 1.2vw, 16px);
  color: var(--mustard-ink); letter-spacing: .06em;
  padding: 2px 9px; border: 2px solid currentColor; border-radius: 999px;
  transform: translateY(-.3em);
}
.story__text {
  position: relative; display: inline-block;
  font-size: clamp(21px, 3.1vw, 42px); font-weight: 900; letter-spacing: .1em; line-height: 1.45;
}
.story__base { position: relative; color: var(--ink-faint); }
.story__fill { position: absolute; inset: 0; color: var(--ink); clip-path: inset(0 0 0 0); will-change: clip-path; }
.story__mark {
  position: absolute; left: -6px; right: -6px; bottom: .1em; height: .44em;
  background: var(--peach); border-radius: 6px 16px 8px 14px;
  transform-origin: 0 50%; transform: scaleX(1);
}

.story__closing { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px); margin-top: clamp(24px, 5vw, 56px); }
.story__peek {
  position: relative; flex: none; width: clamp(110px, 13vw, 170px); height: clamp(120px, 14vw, 186px);
  overflow: hidden; border-bottom: 3px solid var(--ink);
}
.story__peek img { position: absolute; left: 0; bottom: -18%; width: 100%; height: auto; will-change: transform; }
.story__friend {
  position: relative; margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; background: var(--white);
  border: 2.5px solid var(--ink); border-radius: var(--wob);
  font-size: clamp(15px, 1.6vw, 20px); font-weight: 900; letter-spacing: .1em; line-height: 1.5;
}
.story__friend::before {
  content: ""; position: absolute; left: -13px; bottom: 16px; width: 22px; height: 22px;
  background: var(--white); border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) skew(10deg, 10deg);
}
.story__friend .icon { color: var(--pink); }

.story__polaroid {
  position: absolute; z-index: 2;
  top: clamp(80px, 9vw, 130px); right: max(20px, (100vw - var(--container)) / 2 - 30px);
  width: clamp(150px, 15vw, 220px); margin: 0;
  padding: 10px 10px 8px; background: var(--white);
  border: 2.5px solid var(--ink); border-radius: 4px;
  box-shadow: 6px 8px 0 var(--ink);
  transform: rotate(5deg);
}
.story__polaroid::before { /* 紙膠帶 */
  content: ""; position: absolute; top: -14px; left: 50%; width: 86px; height: 26px; margin-left: -43px;
  background: rgba(168, 213, 232, .82); border: 1.5px dashed rgba(35, 24, 22, .35);
  transform: rotate(-5deg);
}
.story__polaroid figcaption { text-align: center; font-family: var(--font-round); font-weight: 600; font-size: 15px; letter-spacing: .2em; padding-top: 6px; }

.crop { position: relative; overflow: hidden; }
.crop--square { aspect-ratio: 1; }
.crop img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ==========================================================================
   第二章 產品方案
   ========================================================================== */
.plans {
  position: relative; color: var(--ink);
  --sec-bg: var(--mustard);
  background:
    radial-gradient(rgba(35, 24, 22, .13) 1.5px, transparent 1.8px) 0 0 / 24px 24px,
    var(--mustard);
  padding: clamp(70px, 9vw, 120px) 0 clamp(110px, 12vw, 170px);
}
.edge { position: absolute; left: 0; width: 100%; height: 40px; pointer-events: none; z-index: 1; }
.plans .edge { color: var(--mustard); }
.edge--top { top: -38px; }
.edge--bottom { bottom: -38px; }
.plans .chap { background: var(--paper); }
.plans .doodle { color: var(--paper); }
.plans .sec-head__lead { color: var(--ink); }

.plans__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px); align-items: stretch;
}
.plan { position: relative; perspective: 1100px; }
.plan::before { /* 固定不動的手繪陰影 */
  content: ""; position: absolute; inset: 0;
  background: var(--ink); border-radius: var(--wob);
  transform: translate(9px, 11px);
}
.plan__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--wob);
  overflow: hidden; will-change: transform;
  transform-style: flat;
}
.plan--featured { top: -16px; }
.plan--featured .plan__inner { background: var(--white); }
.plan__ribbon {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  padding: 3px 14px 3px 16px; border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--pink-deep); color: var(--white);
  font-weight: 900; font-size: 14px; letter-spacing: .3em;
  transform: rotate(-6deg);
}
.plan__media { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--cream); }
.plan__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.plan:hover .plan__media img { transform: scale(1.06); }
.plan__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px clamp(18px, 2vw, 26px) 24px; }
.plan__spec {
  align-self: flex-start; padding: 1px 12px; border-radius: 999px;
  background: var(--cream); border: 2px solid var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
}
.plan__name { font-size: clamp(19px, 1.7vw, 23px); font-weight: 900; letter-spacing: .08em; line-height: 1.4; }
.plan__desc { font-size: 15px; color: var(--ink-soft); line-height: 1.75; }
.plan__price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 4px; }
.plan__cur { font-family: var(--font-round); font-weight: 600; font-size: 18px; }
.plan__num { font-family: var(--font-round); font-weight: 700; font-size: clamp(40px, 3.6vw, 50px); line-height: 1; letter-spacing: .01em; }
.plan__unit { font-weight: 700; color: var(--ink-soft); }
.plan__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan__buy .btn { flex: 1 1 140px; }
.plan__subtotal { font-size: 14px; color: var(--ink-soft); font-weight: 700; letter-spacing: .06em; }
.plan__subtotal b { font-family: var(--font-round); font-weight: 600; color: var(--ink); display: inline-block; }
.plan__note {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 14px; background: var(--peach); border: 2px dashed var(--ink); border-radius: 12px;
  font-weight: 700; font-size: 15px; letter-spacing: .08em;
}
.plan--bulk .btn { align-self: flex-start; margin-top: 10px; }

.stepper {
  display: inline-flex; align-items: center; flex: none;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--white);
  padding: 3px;
}
.stepper__btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .25s var(--ease-bounce);
}
.stepper__btn svg { width: 18px; height: 18px; }
.stepper__btn:hover { background: var(--cream); }
.stepper__btn:active { transform: scale(.85); }
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper__input {
  width: 40px; border: 0; background: transparent; text-align: center;
  font-family: var(--font-round); font-weight: 600; font-size: 19px;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input:focus-visible { outline-offset: 0; }

/* ==========================================================================
   第三章 關於我們
   ========================================================================== */
.about { position: relative; padding: clamp(110px, 12vw, 170px) 0 clamp(90px, 10vw, 140px); }
.about__slogan-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: end; }
.about__slogan { font-size: clamp(42px, 7.6vw, 108px); font-weight: 900; line-height: 1.12; letter-spacing: .08em; }
.about__slogan-part { display: block; }
.about__slogan-part + .about__slogan-part {
  margin-left: 1.2em; padding: 0 .1em;
  background: linear-gradient(transparent 62%, var(--peach) 62%, var(--peach) 92%, transparent 92%) no-repeat;
  width: fit-content;
}
.about__comma { color: var(--mustard); }
.about__notes { display: grid; gap: 18px; justify-items: start; }
.note-card {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; background: var(--white);
  border: 2.5px solid var(--ink); border-radius: var(--wob-2);
  font-weight: 700; letter-spacing: .08em; line-height: 1.6;
  transform: rotate(-1.2deg);
}
.note-card::before {
  content: ""; position: absolute; top: -12px; left: 22px; width: 64px; height: 22px;
  background: rgba(253, 198, 144, .85); border: 1.5px dashed rgba(35, 24, 22, .3);
  transform: rotate(-4deg);
}
.note-card + .note-card { transform: rotate(1deg); }
.motion .note-card[data-reveal] { transform: translateY(40px) rotate(-1.2deg); }
.note-card--pin { background: var(--mustard); font-size: 18px; font-weight: 900; }
.note-card--pin .icon { color: var(--ink); }
.note-card--soft { background: var(--cream); font-size: 15px; }

/* ---------- Timeline：預設（手機 / 減少動態）＝可滑動列 ---------- */
.tl { margin-top: clamp(56px, 8vw, 110px); }
.tl__pin { position: relative; }
.tl__head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.tl__kicker {
  font-size: clamp(18px, 2vw, 24px); font-weight: 900; letter-spacing: .32em; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 14px;
}
.tl__kicker::after { content: ""; width: clamp(28px, 8vw, 120px); flex: none; height: 10px; background: var(--wave-line) center / 100% 100% no-repeat; }
.tl__static-mascot { width: clamp(76px, 12vw, 120px); height: auto; margin-left: auto; min-width: 0; }
.tl__nav { display: flex; gap: 10px; }
.tl__viewport {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 18px 0 30px;
}
.tl__viewport::-webkit-scrollbar { display: none; }
.tl__move { position: relative; width: max-content; }
.tl__track {
  display: flex; gap: clamp(16px, 3vw, 32px); list-style: none;
  padding-inline: max(var(--gutter), (100vw - var(--container)) / 2);
}
.tl__card { flex: none; width: min(86vw, 720px); scroll-snap-align: center; will-change: transform; }
.tl__path, .tl__walker { display: none; }
.tl__dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.tl__dots span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); transition: transform .3s var(--ease-bounce); }
.tl__dots span.is-on { background: var(--mustard); transform: scale(1.3); }

.spread {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--grain), var(--paper);
  border: 3px solid var(--ink); border-radius: 12px 20px 20px 12px;
  box-shadow: 8px 10px 0 var(--ink);
  height: 100%;
}
.spread::after { /* 書本中縫 */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 46px; margin-left: -23px;
  background: linear-gradient(90deg, transparent, rgba(35, 24, 22, .1) 42%, rgba(35, 24, 22, .2) 50%, rgba(35, 24, 22, .1) 58%, transparent);
  pointer-events: none;
}
.spread__page { position: relative; padding: clamp(20px, 2.6vw, 36px); }
.spread__page--art { display: grid; place-items: center; background: rgba(253, 198, 144, .22); border-radius: 10px 0 0 10px; }
.spread__page--text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 56px; }
.frame {
  position: relative; width: min(100%, 300px);
  padding: 10px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 4px;
}
.frame--tilt-l { transform: rotate(-2.5deg); }
.frame--tilt-r { transform: rotate(2deg); }
.frame::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 80px; height: 24px; margin-left: -40px;
  background: rgba(221, 138, 0, .55); border: 1.5px dashed rgba(35, 24, 22, .35);
  transform: rotate(-4deg); z-index: 1;
}
.frame--mascot .crop { background: var(--peach); }
.frame--mascot .crop img { object-fit: contain; padding: 6%; }
.spread__label {
  padding: 2px 14px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--mustard); font-weight: 900; font-size: 14px; letter-spacing: .3em;
}
.spread__title { font-size: clamp(22px, 2.4vw, 32px); font-weight: 900; letter-spacing: .1em; line-height: 1.35; }
.spread__text { color: var(--ink-soft); font-size: clamp(15px, 1.2vw, 17px); }
.spread__no {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  font-family: var(--font-round); font-weight: 600; color: var(--mustard-ink); letter-spacing: .2em;
}

/* ---------- Timeline：桌機 pinned 橫向捲動 ---------- */
.tl.is-pinned .tl__pin {
  height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 40px;
}
.tl.is-pinned .tl__static-mascot, .tl.is-pinned .tl__nav, .tl.is-pinned .tl__dots { display: none; }
.tl.is-pinned .tl__viewport { overflow: visible; scroll-snap-type: none; padding: 0; }
.tl.is-pinned .tl__move { padding-bottom: 150px; will-change: transform; }
.tl.is-pinned .tl__track { gap: 9vw; padding-left: 12vw; padding-right: 16vw; align-items: stretch; }
.tl.is-pinned .tl__card { width: min(760px, 60vw, 110vh); }
.tl.is-pinned .tl__path { display: block; position: absolute; left: 0; bottom: 0; height: 150px; overflow: visible; }
.tl__path-base { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1 13; opacity: .45; }
.tl__path-done { fill: none; stroke: var(--mustard); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 12 12; }
.tl__path--done { clip-path: inset(0 100% 0 0); will-change: clip-path; }
.tl__stop circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.tl__stop text { font-family: var(--font-round); font-weight: 700; font-size: 17px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.tl__stop g { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease-bounce); }
.tl__stop.is-reached circle { fill: var(--mustard); }
.tl__stop.is-reached g { transform: scale(1.25); }
.tl.is-pinned .tl__walker {
  display: block; position: absolute; left: 0; top: calc(100% - 150px); width: 0; height: 0;
  z-index: 3; will-change: transform;
}
.tl__walker img {
  position: absolute; left: 0; bottom: -16px; width: clamp(130px, 11.5vw, 175px); height: auto; max-width: none;
  transform: translateX(-50%);
}

/* ---------- Facts ---------- */
.facts {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 40px); margin-top: clamp(60px, 8vw, 110px);
}
.fact {
  position: relative; aspect-ratio: 1; max-width: 240px; width: 100%; justify-self: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.fact__ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--peach); overflow: visible; }
.fact--b .fact__ring { color: var(--grass-light); }
.fact__value {
  position: relative; font-family: var(--font-round); font-weight: 700;
  font-size: clamp(34px, 4.8vw, 62px); line-height: 1.05; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.fact__label { position: relative; margin-top: 4px; font-weight: 700; font-size: clamp(13px, 1.3vw, 16px); letter-spacing: .12em; }

/* ==========================================================================
   第四章 通路合作
   ========================================================================== */
.partners {
  position: relative;
  background: var(--sky-light);
  padding: clamp(90px, 10vw, 150px) 0 clamp(100px, 11vw, 160px);
}
.partners .edge { color: var(--sky-light); }
.partners .edge--bottom { z-index: 2; }
.partners .chap { background: var(--white); }
.partners__clouds { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pc { position: absolute; height: auto; animation: drift 22s ease-in-out infinite alternate; }
.pc--1 { top: 9%; left: 5%; width: clamp(90px, 10vw, 150px); }
.pc--2 { top: 18%; right: 6%; width: clamp(70px, 8vw, 120px); animation-delay: -9s; }

.postcards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.postcard { position: relative; height: 340px; perspective: 1400px; }
.postcard__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.25, 1.25, .45, 1);
}
.postcard.is-flipped .postcard__inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .postcard:hover .postcard__inner { transform: rotateY(180deg); }
}
.postcard__face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 3px solid var(--ink); border-radius: 14px;
  background: var(--grain), var(--paper);
  box-shadow: 7px 9px 0 var(--ink);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column;
}
.postcard__face--front { align-items: flex-start; }
.postcard__face--back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(168, 213, 232, .9) 35px 37px) 0 62px / 100% calc(100% - 62px) no-repeat,
    var(--white);
}
.postcard__stamp { position: absolute; top: 18px; right: 18px; width: 64px; transform: rotate(4deg); }
.postcard__postmark { position: absolute; top: 26px; right: 64px; width: 130px; opacity: .85; transform: rotate(-8deg); }
.postcard__art { flex: 1; display: grid; place-items: center; width: 100%; padding: 30px 0 4px; }
.postcard__art svg { width: clamp(120px, 12vw, 150px); height: auto; }
.postcard__name { font-size: clamp(20px, 1.9vw, 24px); font-weight: 900; letter-spacing: .14em; }
.postcard__flip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-weight: 700; font-size: 14px; letter-spacing: .12em; color: var(--mustard-ink);
  padding: 4px 0;
}
.postcard__flip .icon { transition: transform .5s var(--ease-bounce); }
.postcard__flip:hover .icon { transform: rotate(180deg); }
.postcard__to {
  font-weight: 900; font-size: 18px; letter-spacing: .12em;
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2.5px solid var(--ink);
}
.postcard__points { list-style: none; display: grid; gap: 2px; flex: 1; align-content: start; }
.postcard__points li { display: flex; align-items: center; gap: 10px; min-height: 37px; font-weight: 700; font-size: 15px; letter-spacing: .04em; line-height: 1.4; }
.postcard__points .icon { color: var(--grass-dark); width: 1.3em; height: 1.3em; }
.postcard__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.postcard__flip--back {
  width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--ink); justify-content: center;
  color: var(--ink); background: var(--paper); margin: 0;
}

/* ==========================================================================
   第五章 聯絡我們
   ========================================================================== */
.contact { position: relative; padding: clamp(110px, 12vw, 170px) 0 clamp(40px, 6vw, 80px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.letter {
  position: relative;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--wob);
  box-shadow: 9px 11px 0 var(--ink);
  padding: clamp(26px, 3.4vw, 44px) clamp(18px, 3.4vw, 44px) clamp(22px, 3vw, 36px);
  overflow: hidden;
}
.letter::before { /* 航空信封邊條 */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(135deg, var(--mustard) 0 14px, var(--white) 14px 22px, var(--sky) 22px 36px, var(--white) 36px 44px);
  border-bottom: 2px solid var(--ink);
}
.seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  min-width: min(100%, 380px); margin: 0 0 26px; padding: 4px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--cream);
}
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--mustard); border: 2.5px solid var(--ink); border-radius: 999px;
  transition: transform .5s var(--ease-bounce);
}
.seg[data-value="cooperation"] .seg__thumb { transform: translateX(100%); }
.seg__opt {
  position: relative; z-index: 1; display: block; text-align: center; cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  font-weight: 900; letter-spacing: .18em; font-size: 15px; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.seg input:focus-visible + .seg__opt { outline: 3px dashed var(--ink); outline-offset: 2px; }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field label { font-weight: 700; font-size: 15px; letter-spacing: .1em; }
.req { color: var(--error); }
.opt { font-weight: 500; font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 12px 16px 12px 15px;
  font-size: 16px; line-height: 1.5;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--white); outline: 3px dashed var(--ink); outline-offset: 2px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); background: #FFF1F4; }
.field__err { color: var(--error); font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; }
.field__err:empty { display: none; }
.field.is-shake { animation: shake .45s ease; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.select select { padding-right: 42px; cursor: pointer; }
.field.is-pulse .select { animation: pulse .9s var(--ease-out); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.form__note { font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }

.letter__stamp {
  position: absolute; top: 46%; left: 50%; z-index: 3;
  padding: 10px 26px 10px 34px; border: 5px double var(--pink-deep); border-radius: 12px;
  color: var(--pink-deep); background: rgba(255, 255, 255, .86);
  font-size: clamp(30px, 5vw, 48px); font-weight: 900; letter-spacing: .4em;
  transform: translate(-50%, -50%) rotate(-12deg) scale(1.8); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease-bounce), opacity .25s ease;
}
.letter__stamp.is-on { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }

.contact__info { display: grid; gap: 22px; justify-items: start; }
.contact__mascot { width: min(260px, 70%); justify-self: center; }
.contact__mascot img { width: 100%; height: auto; }
.info-list { list-style: none; display: grid; gap: 14px; width: 100%; }
.info-list li { display: flex; align-items: center; gap: 14px; }
.info-list__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mustard); border: 2.5px solid var(--ink);
}
.info-list small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--ink-soft); line-height: 1.4; }
.info-list a { font-family: var(--font-round); font-weight: 600; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .04em; word-break: break-all; background: var(--wave-line) 0 100% / 0 8px no-repeat; padding-bottom: 6px; transition: background-size .4s var(--ease-out); }
.info-list a:hover { background-size: 100% 8px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; margin-top: clamp(40px, 6vw, 70px); }
.footer__grass { position: relative; height: clamp(90px, 10vw, 140px); }
.footer__grass svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer__grass-back { z-index: 0; }
.footer__grass-front { z-index: 2; }
.footer__mascot {
  position: absolute; z-index: 1; right: 7vw; bottom: 32%;
  width: clamp(130px, 15vw, 220px);
}
.footer__mascot img { width: 100%; height: auto; }
.footer__ground { position: relative; z-index: 3; margin-top: -2px; background: var(--ink); color: var(--paper); padding: clamp(36px, 5vw, 60px) 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 32px; align-items: start; }
.footer__brand img { width: 150px; height: auto; }
.footer__slogan { margin-top: 14px; font-weight: 900; letter-spacing: .3em; font-size: 18px; color: var(--carton); }
.footer__company { margin-top: 4px; font-size: 14px; letter-spacing: .12em; opacity: .8; }
.footer__contact { list-style: none; display: grid; gap: 10px; }
.footer__contact li { display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .04em; }
.footer__contact .icon { color: var(--carton); }
.footer__contact a { font-family: var(--font-round); font-weight: 500; word-break: break-all; }
.footer__contact a:hover, .footer__nav a:hover { color: var(--carton); }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 18px; border-top: 1.5px dashed rgba(255, 248, 234, .3);
  font-size: 14px; letter-spacing: .1em; opacity: .9;
}
.footer :focus-visible { outline-color: var(--paper); }
.to-top {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 12px; border: 2px solid var(--paper); border-radius: 999px;
  font-weight: 700; letter-spacing: .14em; color: var(--paper);
  transition: transform .3s var(--ease-bounce);
}
.to-top:hover { transform: translateY(-3px); }

/* ==========================================================================
   Toasts / 飛入購物車
   ========================================================================== */
.toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px; max-width: 360px;
  padding: 8px 18px 8px 8px; background: var(--paper);
  border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 6px 0 var(--ink);
  transform: translateY(140%) rotate(3deg); opacity: 0;
  transition: transform .55s var(--ease-bounce), opacity .3s ease;
  pointer-events: auto;
}
.toast.is-in { transform: none; opacity: 1; }
.toast.is-out { transform: translateY(20px) scale(.92); opacity: 0; transition-duration: .3s; }
.toast__cow { width: 56px; height: 56px; object-fit: contain; flex: none; }
.toast__title { font-weight: 900; letter-spacing: .08em; line-height: 1.4; }
.toast__sub { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.toast__sub:empty { display: none; }

.flyer { position: fixed; left: 0; top: 0; z-index: 130; width: 30px; height: 42px; pointer-events: none; will-change: transform; }
.flyer svg { width: 100%; height: 100%; }
.burst { position: fixed; left: 0; top: 0; z-index: 131; width: 14px; height: 14px; color: var(--pink); pointer-events: none; will-change: transform, opacity; }

/* ==========================================================================
   動畫初始狀態（僅 .motion，JS 負責揭露）
   ========================================================================== */
.motion [data-reveal] { opacity: 0; transform: translateY(40px); }
.motion [data-reveal="pop"] { transform: translateY(30px) scale(.86) rotate(-4deg); }
.motion [data-reveal="card"] { transform: translateY(70px) rotate(-2.5deg); }
.motion .story__polaroid[data-reveal="pop"] { transform: translateY(30px) scale(.86) rotate(12deg); }
.motion [data-hero-in] { opacity: 0; transform: translateY(26px); }
.motion .hero__logo { opacity: 0; transform: scale(.6) rotate(-8deg); }
.motion .hero__slogan .ch { opacity: 0; transform: translateY(.6em) rotate(8deg); }
.motion .hero__land .layer__in { transform: translateY(70px); }
.motion .hero__mascot-in { opacity: 0; transform: translateY(-80px); }
.motion .layer--sun .layer__in { opacity: 0; transform: scale(.4); }
.motion .layer--clouds .layer__in { opacity: 0; }
.motion .story__fill { clip-path: inset(0 100% 0 0); }
.motion .story__mark { transform: scaleX(0); }
.motion .bottle__ticks .tick-on { opacity: 0; }
.motion .story__peek img { transform: translateY(70%); }
.motion .doodle { clip-path: inset(0 100% 0 0); }
.motion .tl__card { transform: translateY(50px); opacity: 0; }
.motion .tl.is-pinned .tl__card { opacity: 1; transform: none; }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-18px); } to { transform: translateX(26px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes wave { to { transform: translateX(100px); } }
@keyframes bubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-160px) scale(1.1); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes pulse { 0% { transform: scale(1); } 35% { transform: scale(1.04) rotate(-1deg); } 100% { transform: scale(1); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .login-link span { display: none; }
  .login-link { padding: 0; width: 46px; height: 46px; justify-content: center; border-radius: 50%; }
}

@media (max-width: 899px) {
  :root { --header-h: 66px; }
  .nav, .login-link { display: none; }
  .header-actions { margin-left: auto !important; }
  .burger { display: block; }
  .brand img { height: 40px; }

  .hero { min-height: max(100svh, 680px); }
  .hero__content { text-align: center; padding-bottom: max(240px, 34svh); }
  .hero__logo { width: clamp(190px, 46vw, 300px); }
  .hero__title { align-items: center; }
  .hero__ctas { justify-content: center; }
  .hero__land { height: 44%; }
  .hero__mascot { left: 0; right: 0; margin-inline: auto; width: clamp(180px, 46vw, 300px); bottom: max(8vw, 6svh, 46px); }
  .layer--sun { top: 10%; right: 3%; width: clamp(64px, 17vw, 120px); }
  .cloud--c1 { top: 13%; left: -7%; }
  .cloud--c2 { top: 9%; left: 40%; }
  .cloud--c3 { right: 3%; top: 64%; width: clamp(90px, 24vw, 160px); }
  .cloud--c4, .birds { display: none; }
  .scroll-cue { display: none; }

  .story__polaroid { display: none; }
  .story__grid { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; }
  .story__bottle-col { top: calc(var(--header-h) + 24px); }
  .story__bottle svg { height: min(44vh, 300px); }

  .plans__grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; gap: 40px; }
  .plan--featured { top: 0; }

  .about__slogan-wrap { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .postcards { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__info { grid-template-columns: minmax(0, 1fr); }
  .contact__mascot { width: min(220px, 60%); }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .story__grid { grid-template-columns: 150px minmax(0, 1fr); gap: 36px; }
  .story__bottle svg { height: min(52vh, 380px); }
  .story__bottle-col { top: calc(var(--header-h) + 40px); }
}

@media (max-width: 640px) {
  .spread { grid-template-columns: minmax(0, 1fr); border-radius: 14px; }
  .spread::after { display: none; }
  .spread__page--art { border-radius: 12px 12px 0 0; border-bottom: 2.5px dashed var(--ink-faint); padding-top: 28px; }
  .frame { width: min(100%, 230px); }
  .spread__page--text { padding-bottom: 48px; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .seg { width: 100%; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .postcard { height: 320px; }
  .hero__kicker { font-size: 14px; }
}

@media (max-width: 380px) {
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn--lg .btn__face { font-size: 15px; padding: .78em 1.15em; letter-spacing: .1em; }
  .story__grid { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; }
  .plan__buy .btn { flex-basis: 100%; }
}

@media (max-height: 760px) and (min-width: 900px) {
  .hero__logo { width: clamp(200px, 20vw, 290px); }
  .hero__slogan { font-size: clamp(28px, 3.4vw, 46px); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .postcard__inner { transition: none; }
}
