[hidden] { display: none !important; }
/* AMs Group — hand-written styles that Tailwind utilities don't cover:
   brand-shape language, dividers, characters, route maps, pop-up, etc.
   Brand zones set --b (primary), --b2 (accent), --bs (soft), --bi (ink) inline. */

:root { --cream: #F6EFDF; --cream2: #EFE4CC; --gold: #E2B54A; --ink: #2B2118; --soy: #3A2B1E; --hdr: 64px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body { background: var(--cream); color: var(--ink); overflow-x: hidden; }
[data-zone] { --b: var(--ink); --b2: var(--gold); --bs: var(--cream); --bi: var(--ink); }
:focus-visible { outline: 3px solid var(--focus, #E2B54A); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.bean-dots { background-image: radial-gradient(rgba(43, 33, 24, .075) 1.6px, transparent 1.8px); background-size: 22px 22px; }
.tbc { display: inline-block; margin-left: .35em; padding: 0 .45em; border: 1px dashed currentColor; border-radius: 5px; font-size: .7em; font-weight: 600; line-height: 1.5; opacity: .8; vertical-align: .12em; white-space: nowrap; letter-spacing: 0; text-transform: none; }
.zh-tight { letter-spacing: -.01em; }
.text-balance { text-wrap: balance; }
.kicker { font-family: Unbounded, "Noto Sans SC", sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* ───────── Header ───────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--hb, rgba(246, 239, 223, .92)); color: var(--hc, var(--ink)); transition: box-shadow .3s, background-color .3s; backdrop-filter: saturate(1.2) blur(8px); }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .45); }
.brand-chip { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .75rem 0 .35rem; border-radius: 999px; font-weight: 600; font-size: .85rem; transition: background-color .2s, color .2s; white-space: nowrap; }
.brand-chip:hover { background: rgba(255, 255, 255, .16); }
.site-header:not([data-theme]) .brand-chip:hover { background: rgba(43, 33, 24, .07); }
.brand-chip, .nav-link { position: relative; }
.nav-link { display: inline-flex; align-items: center; height: 40px; padding: 0 .8rem; border-radius: 999px; transition: background-color .2s; }
.nav-link:hover { background: rgba(43, 33, 24, .07); }
.site-header[data-theme] .nav-link:hover { background: rgba(255, 255, 255, .16); }
/* Where am I: the current page's chip / link is filled and gets a bar underneath */
.brand-chip[aria-current="page"] { background: #fff; color: var(--chip, var(--ink)); font-weight: 800; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .35); }
.site-header:not([data-theme]) .brand-chip[aria-current="page"], .site-header:not([data-theme]) .nav-link[aria-current="page"] { background: var(--ink); color: var(--cream, #F6EFDF); }
.nav-link[aria-current="page"] { background: #fff; color: var(--chip, var(--ink)); font-weight: 800; }
.brand-chip[aria-current="page"]::after, .nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 26px; height: 4px; margin-left: -13px; border-radius: 4px; background: currentColor; }
.site-header[data-theme] .brand-chip[aria-current="page"]::after, .site-header[data-theme] .nav-link[aria-current="page"]::after { background: #fff; }
.site-header:not([data-theme]) .brand-chip[aria-current="page"]::after, .site-header:not([data-theme]) .nav-link[aria-current="page"]::after { background: var(--ink); }
.lang-seg { display: inline-flex; border-radius: 999px; padding: 3px; background: rgba(0, 0, 0, .08); }
.site-header[data-theme] .lang-seg { background: rgba(255, 255, 255, .16); }
.lang-seg a { min-width: 40px; height: 32px; padding: 0 .6rem; display: grid; place-items: center; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.lang-seg a[aria-current="true"] { background: var(--ink); color: #fff; }
.site-header[data-theme] .lang-seg a[aria-current="true"] { background: #fff; color: var(--chip, var(--ink)); }

/* ───────── Shape language ───────── */
.shape-round { border-radius: 9999px; }
.shape-square { border-radius: 4px; }
.shape-oval { border-radius: 50%; }
.shape-semicircle { border-radius: 999px 999px 8px 8px; }
/* AMs: the logo's badge — a "leaf": big rounded top-left + bottom-right, near-square top-right + bottom-left */
.shape-wordmark { border-radius: var(--lr, 28px) 6px var(--lr, 28px) 6px; }
.slogo { display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.slogo img { width: 100%; height: 100%; object-fit: contain; }
.slogo-round { border-radius: 999px; background: #fff; }
.slogo-oval { border-radius: 50%; }
.slogo-wordmark { border-radius: 26% 6% 26% 6% / 40% 10% 40% 10%; background: #fff; padding: 3px; }
.slogo-semicircle { border-radius: 999px 999px 4px 4px; background: #0B3B21; color: #FDF3DD; box-shadow: inset 0 0 0 2px #E8570C; font-weight: 900; font-family: "Noto Sans SC", sans-serif; line-height: 1; place-items: end center; padding-bottom: 10%; white-space: nowrap; }

/* Section dividers in the brand's own shape */
.divider { height: 28px; background-repeat: repeat-x; background-position: center; }
.divider-round { background-image: radial-gradient(circle at 14px 14px, var(--dv, var(--b)) 9px, transparent 9.6px); background-size: 28px 28px; }
.divider-square { background: conic-gradient(var(--dv, var(--b)) 25%, transparent 0 50%, var(--dv, var(--b)) 0 75%, transparent 0) 0 0 / 28px 28px; }
.divider-oval { background-image: radial-gradient(ellipse 15px 9px at 20px 14px, var(--dv, var(--b)) 96%, transparent 100%); background-size: 40px 28px; }
.divider-semicircle { background-image: radial-gradient(circle at 16px 28px, var(--dv, var(--b)) 15px, transparent 15.6px); background-size: 32px 28px; }
.divider-wordmark { height: 16px; background: var(--dv, var(--b)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16'%3E%3Cpath d='M10 2h16a2 2 0 0 1 2 2v4a6 6 0 0 1-6 6H6a2 2 0 0 1-2-2V8a6 6 0 0 1 6-6z'/%3E%3C/svg%3E") 0 0 / 32px 16px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16'%3E%3Cpath d='M10 2h16a2 2 0 0 1 2 2v4a6 6 0 0 1-6 6H6a2 2 0 0 1-2-2V8a6 6 0 0 1 6-6z'/%3E%3C/svg%3E") 0 0 / 32px 16px repeat-x; }

/* ───────── Reveal ───────── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
html:not(.js) .rv { opacity: 1; transform: none; }

/* ───────── Brand characters (IP) ───────── */
.char { display: block; --ar: .54; }
.char:not(.absolute) { position: relative; }
.char-stage { position: relative; aspect-ratio: var(--ar); animation: char-float 5.2s ease-in-out infinite; transform-origin: 50% 100%; will-change: transform; }
.char-pose { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; transition: opacity .7s ease, transform .7s ease; transform: translateY(6px) scale(.98); pointer-events: none; user-select: none; }
.char-pose.is-on { opacity: 1; transform: none; }
.char-shadow { position: absolute; left: 20%; right: 20%; bottom: -6px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .3), transparent); animation: char-shadow 5.2s ease-in-out infinite; }
.char-hit { position: absolute; inset: 0; border-radius: 40% 40% 12px 12px; cursor: pointer; background: transparent; }
.char-bubble { position: absolute; z-index: 2; top: 2%; left: 58%; width: max-content; max-width: min(15rem, 62vw); display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem .55rem .45rem; border-radius: 18px 18px 18px 4px; background: #fff; color: var(--bi, var(--ink)); font-weight: 700; font-size: .85rem; line-height: 1.3; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); transform-origin: 0 100%; transition: opacity .35s ease, transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.char-bubble.is-hidden { opacity: 0; transform: scale(.7) translateY(8px); }
.char-bubble img { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; background: var(--bs, #fff); flex: none; }
.char-left .char-bubble { left: auto; right: 58%; border-radius: 18px 18px 4px 18px; transform-origin: 100% 100%; }
.char.is-hop .char-stage { animation: char-hop .9s cubic-bezier(.3, 1.4, .5, 1); }
.char.is-hop .char-shadow { animation: char-shadow-hop .9s ease; }
@keyframes char-float { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-9px) scale(1.012, .99); } }
@keyframes char-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.86); opacity: .7; } }
@keyframes char-hop { 0% { transform: none; } 25% { transform: translateY(-26px) rotate(-5deg); } 50% { transform: translateY(0) rotate(3deg) scale(1.02, .97); } 70% { transform: translateY(-8px) rotate(-1deg); } 100% { transform: none; } }
@keyframes char-shadow-hop { 25% { transform: scale(.6); opacity: .4; } }

/* Coming-soon silhouette (文洋阿姨) */
.silhouette { filter: drop-shadow(0 0 22px rgba(232, 87, 12, .35)); }
.silhouette .q { animation: q-blink 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes q-blink { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* ───────── Route maps (地图路线) ───────── */
.route-map { position: relative; width: 100%; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-stop { position: absolute; transform: translate(-50%, -50%); width: var(--sw, 15%); z-index: 1; }
.route-frame { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: #fff; border: 5px solid color-mix(in srgb, var(--b) 18%, #fff); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .55); overflow: hidden; transition: border-color .5s, transform .6s cubic-bezier(.3, 1.4, .5, 1), filter .6s, opacity .6s; filter: grayscale(.85); opacity: .5; }
.route-frame.shape-oval { aspect-ratio: 1.3; }
.route-frame.shape-semicircle { aspect-ratio: 1.15; }
.route-frame img { width: 86%; height: 86%; object-fit: contain; }
.route-stop.is-lit .route-frame { filter: none; opacity: 1; border-color: var(--b); transform: scale(1.06); }
.route-no { position: absolute; top: -10px; left: -6px; z-index: 2; min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; background: var(--b); color: var(--b2); font: 700 .78rem/1 Unbounded, sans-serif; box-shadow: 0 0 0 3px var(--cream); transform: scale(.6); opacity: 0; transition: .45s cubic-bezier(.3, 1.5, .5, 1); }
.route-stop.is-lit .route-no { transform: none; opacity: 1; }
.route-label { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); text-align: center; width: max-content; max-width: 13rem; }
.route-label b { display: block; font-size: clamp(.9rem, 1.4vw, 1.15rem); font-weight: 900; color: var(--bi); line-height: 1.2; }
.route-label span { display: block; margin-top: 2px; font-size: .75rem; color: color-mix(in srgb, var(--bi) 70%, transparent); }
.route-m .route-stop { width: 112px; }
.route-m .route-label { top: 50%; transform: translateY(-50%); text-align: left; max-width: 9.5rem; }
.route-m .side-right .route-label { left: calc(100% + 14px); }
.route-m .side-left .route-label { left: auto; right: calc(100% + 14px); text-align: right; }
.route-band { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-chev { opacity: 0; transition: opacity .4s; }
.route-chev.is-lit { opacity: 1; }
.route-title { display: inline-block; padding: .55rem 1rem; background: var(--b); color: #fff; font-weight: 900; }

/* ───────── Hero bean (five pieces) ───────── */
/* A small shudder first, then the pieces let go one after another — each drifts its own distance and tilts a little */
.bean-piece { transition: transform 1.2s cubic-bezier(.22, 1, .36, 1) calc(.32s + var(--delay, 0s)), filter .3s; transform: translate(0, 0) rotate(0deg); transform-box: view-box; transform-origin: var(--ox) var(--oy); cursor: pointer; }
.bean.is-split .bean-piece { transform: translate(var(--dx), var(--dy)) rotate(var(--rot, 0deg)); }
.bean.is-split { animation: bean-shudder .42s ease-out; transform-origin: 50% 60%; }
@keyframes bean-shudder { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-1.4deg); } 45% { transform: rotate(1.1deg); } 70% { transform: rotate(-.5deg); } }
@media (prefers-reduced-motion: reduce) { .bean.is-split { animation: none; } .bean-piece { transition: filter .3s; } }
.bean-piece:hover, .bean-piece:focus-visible { filter: brightness(1.06) drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); }
.bean-piece:focus { outline: none; }
.bean-piece .bean-fill { transition: fill .3s; }
.bean-piece:hover .bean-fill, .bean-piece:focus-visible .bean-fill { fill: var(--pc); }
.bean-piece:hover .bean-label, .bean-piece:focus-visible .bean-label { fill: #fff; }

/* ───────── Brand doors (home) ───────── */
.door { position: relative; display: block; isolation: isolate; }
.door-shape { position: relative; overflow: hidden; transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); }
.door:hover .door-shape, .door:focus-visible .door-shape { transform: translateY(-6px); }
.door .char { z-index: 2; pointer-events: none; }
.door:hover .char .char-stage { animation: char-hop .9s cubic-bezier(.3, 1.4, .5, 1); }
.frost { position: absolute; inset: 0; backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); background: linear-gradient(140deg, rgba(234, 243, 252, .78), rgba(234, 243, 252, .35)); transition: opacity .6s ease, backdrop-filter .6s ease; }
.door:hover .frost, .door:focus-visible .frost, .frost-wrap.is-clear .frost { opacity: .1; }
.lightbox-glow { box-shadow: 0 0 0 6px #E8570C, 0 0 40px 6px rgba(232, 87, 12, .55), inset 0 0 60px rgba(232, 87, 12, .35); }
@media (prefers-reduced-motion: no-preference) { .lightbox-glow { animation: neon 3.6s ease-in-out infinite; } }
@keyframes neon { 0%, 100% { box-shadow: 0 0 0 6px #E8570C, 0 0 40px 6px rgba(232, 87, 12, .55), inset 0 0 60px rgba(232, 87, 12, .35); } 48% { box-shadow: 0 0 0 6px #E8570C, 0 0 54px 10px rgba(232, 87, 12, .7), inset 0 0 70px rgba(232, 87, 12, .45); } 50% { box-shadow: 0 0 0 6px #c84a0a, 0 0 20px 2px rgba(232, 87, 12, .3), inset 0 0 40px rgba(232, 87, 12, .2); } 52% { box-shadow: 0 0 0 6px #E8570C, 0 0 54px 10px rgba(232, 87, 12, .7), inset 0 0 70px rgba(232, 87, 12, .45); } }

/* Awning (AuntieMok shop) */
.awning { height: 34px; background: radial-gradient(circle at 20px 0, var(--a1, #1F3D85) 20px, transparent 20.5px) 0 0 / 80px 34px, radial-gradient(circle at 60px 0, var(--a2, #fff) 20px, transparent 20.5px) 0 0 / 80px 34px; }
/* Banana-leaf texture (Rolla) */
.leaf { background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 22px), repeating-linear-gradient(65deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 30px); }
/* Steel tray (Tianji range) */
.tray { background: linear-gradient(160deg, #f4f5f6, #d9dde1 55%, #eceef0); box-shadow: inset 0 2px 0 #fff, inset 0 -3px 8px rgba(0, 0, 0, .12), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.stamp { box-shadow: 0 0 0 3px var(--b2), 0 0 0 6px var(--b); }

/* ───────── Instagram grid ───────── */
.ig-tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: color-mix(in srgb, var(--b) 10%, #fff); }
.ig-tile img, .ig-tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.ig-tile:hover img { transform: scale(1.05); }
.ig-badge { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; height: 26px; min-width: 26px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .7rem; font-weight: 700; }

/* ───────── Pop-up ads ───────── */
.ad-dialog { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(30, 22, 15, .62); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.ad-dialog[hidden] { display: none; }
.ad-dialog.is-open { opacity: 1; }
.ad-card { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); transform: translateY(16px) scale(.97); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.ad-dialog.is-open .ad-card { transform: none; }
.ad-track { display: flex; transition: transform .45s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; }
.ad-slide { flex: 0 0 100%; position: relative; aspect-ratio: 4 / 5; max-height: calc(100dvh - 190px); background: #f3efe6; }
.ad-slide img, .ad-slide video { width: 100%; height: 100%; object-fit: contain; background: #F3EFE6; }
.ad-slide.is-video { aspect-ratio: 9 / 16; background: #000; }
.ad-slide.is-video video { background: #000; }
.ad-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(43, 33, 24, .25); transition: width .3s, background-color .3s; }
.ad-dot[aria-current="true"] { width: 22px; background: var(--ink); }

/* ───────── Franchise donut ───────── */
.donut-seg { cursor: pointer; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; transform-origin: 160px 160px; }
.donut-seg.is-active { transform: scale(1.06); }
.donut.has-active .donut-seg:not(.is-active) { opacity: .45; }
.cost-row[aria-pressed="true"] { background: #fff; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .4); }

/* Events */
.ticket { position: relative; }
.ticket::before, .ticket::after { content: ""; position: absolute; left: var(--notch, 108px); width: 22px; height: 22px; border-radius: 999px; background: var(--paper, var(--cream)); transform: translateX(-50%); }
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }
.live-dot { width: 9px; height: 9px; border-radius: 999px; background: #E3342F; box-shadow: 0 0 0 0 rgba(227, 52, 47, .6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(227, 52, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 52, 47, 0); } }

/* Marquee of keywords */
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Mobile bottom bar */
.mbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; }
.sheet[hidden] { display: none; }
.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow: auto; border-radius: 24px 24px 0 0; background: var(--cream); transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.sheet.is-open .sheet-panel { transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .rv { opacity: 1; transform: none; }
    .char-stage, .char-shadow, .marquee { animation: none !important; }
    .route-frame { filter: none; opacity: 1; }
    .route-no, .route-chev { opacity: 1; transform: none; }
}

/* ───────── Home hero: three characters, same height, placed loosely around the bean (never on a logo) ───────── */
.hero-row { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* --h ≤ the smallest pose height (189px, xiaotian-a2) so the client poses are never stretched */
.hero-row .char { --h: 188px; position: absolute; width: calc(var(--h) * var(--ar)); max-width: none !important; pointer-events: auto; }
.hero-row .char:nth-child(1) { left: 4%; top: 42%; }
.hero-row .char:nth-child(2) { right: 8%; top: 2%; }
.hero-row .char:nth-child(2) .char-stage { animation-delay: -1.7s; }
.hero-row .char:nth-child(3) { right: 13%; bottom: 3%; }
.hero-row .char:nth-child(3) .char-stage { animation-delay: -3.4s; }
.hero-row .char-bubble { top: -10%; left: 40%; }
.hero-row .char:nth-child(n+2) .char-bubble { left: auto; right: 40%; }
@media (max-width: 639px) {
    .hero-row .char { --h: 128px; }
    .hero-row .char:nth-child(1) { left: -2%; top: 48%; }
    .hero-row .char:nth-child(2) { right: -1%; top: -2%; }
    .hero-row .char:nth-child(3) { right: 2%; bottom: 1.5rem; }
    .hero-row .char-bubble { font-size: .72rem; max-width: 46vw; }
}
}
}

/* ───────── The soy journey conveyor ───────── */
.belt { height: 14px; border-radius: 999px; background: repeating-linear-gradient(90deg, #2B2118 0 26px, #4a3a2b 26px 30px); }
.roller { width: 22px; height: 22px; border-radius: 50%; background: #E2B54A; border: 3px solid #2B2118; position: relative; display: block; }
.roller::before, .roller::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: #2B2118; }
.roller::after { transform: rotate(90deg); }
.belt-stop { transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s; }
.belt-stop.is-on { transform: translateX(-50%) scale(1.25); box-shadow: 0 0 0 4px #E2B54A; }
.station .station-char { position: absolute; right: 4%; bottom: -2px; width: 34%; z-index: 2; }
.station-card { min-height: 100%; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .55); }
.journey-track { list-style: none; margin: 0; }
@media (min-width: 1024px) {
    .journey { height: 400vh; }
    .journey-pin { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); display: flex; flex-direction: column; overflow: hidden; }
    .journey-viewport { flex: 1; min-height: 0; overflow: hidden; padding: 1rem 0 0; }
    .journey-track { display: flex; height: 100%; will-change: transform; padding: 0; }
    .journey-track > .station { flex: 0 0 100%; padding: 0 max(1.5rem, calc((100vw - 76rem) / 2)); height: 100%; }
    .station-card { height: 100%; }
    .station .station-char { width: 38%; }
}
@media (max-width: 1023px) {
    .journey-viewport { padding-top: 1rem; }
    .journey-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 8px; scrollbar-width: none; }
    .journey-track::-webkit-scrollbar { display: none; }
    .journey-track > .station { flex: 0 0 86%; scroll-snap-align: center; }
    .station .station-char { width: 30%; }
}
@media (prefers-reduced-motion: reduce) { .belt-stop { transition: none; } }
@media (prefers-reduced-motion: no-preference) { .wy-soon { animation: wy-pop 2.4s ease-in-out infinite; } }
@keyframes wy-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* ───────── AuntieMok gelato builder ───────── */
.gel-scoop { position: absolute; left: 50%; width: 104px; height: 92px; margin-left: -52px; border-radius: 52px 52px 40px 40px; box-shadow: inset -10px -8px 0 rgba(0, 0, 0, .08), inset 8px 8px 0 rgba(255, 255, 255, .35); animation: gel-drop .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.gel-scoop::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -9px; height: 20px; background: inherit; border-radius: 0 0 50% 50% / 0 0 100% 100%; -webkit-mask: radial-gradient(10px 10px at 10px 0, #000 98%, transparent) 0 0 / 22px 20px repeat-x; mask: radial-gradient(10px 10px at 10px 0, #000 98%, transparent) 0 0 / 22px 20px repeat-x; }
@keyframes gel-drop { from { transform: translateY(-140px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.gel-btn[aria-pressed="true"] { border-color: #1F3D85; box-shadow: 0 0 0 3px #FFDE59; }
.gel-cone.is-shake { animation: gel-shake .4s; }
@keyframes gel-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .gel-scoop, .gel-cone.is-shake { animation: none; } }
/* ───────── Instagram viewer (latest posts) ───────── */
.igv { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 12px; background: rgba(20, 15, 10, .82); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.igv[hidden] { display: none; }
.igv.is-open { opacity: 1; }
.igv-box { position: relative; display: flex; flex-direction: column; width: min(var(--w, 520px), calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); transform: scale(.97); transition: transform .3s cubic-bezier(.3, 1.3, .5, 1), width .3s ease; }
.igv.is-open .igv-box { transform: none; }
.igv-frame { position: relative; overflow: hidden; background: #111; aspect-ratio: var(--r, 4 / 5); max-height: calc(100dvh - 190px); }
.igv-track { display: flex; height: 100%; transition: transform .4s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; }
.igv-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; }
.igv-slide img, .igv-slide video { width: 100%; height: 100%; object-fit: contain; background: #111; }
.igv-x { position: absolute; top: 8px; right: 8px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 1.6rem; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.igv-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 1.4rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.igv-nav[hidden], .igv-dots[hidden] { display: none; }
.igv-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.igv-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .3s, background-color .3s; }
.igv-dots i.on { width: 18px; background: #fff; }
.igv-info { padding: 12px 14px 14px; overflow-y: auto; }
.igv-text { margin-top: 8px; max-height: 6.5em; overflow-y: auto; white-space: pre-line; font-size: .85rem; line-height: 1.5; color: rgba(43, 33, 24, .8); }
.igv-text:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .igv, .igv-box, .igv-track { transition: none; } }
/* Mobile brand bar: current brand gets a dot underneath */
.mbar a[aria-current="page"] { position: relative; box-shadow: inset 0 0 0 2px var(--ink); }
.mbar a[aria-current="page"]::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ink); }
.tj-step img { transition: transform .6s ease; }
.tj-dish { overflow: hidden; }
.tj-dish img { transition: transform .5s ease; }
.tj-dish:hover img { transform: scale(1.04); }
.tj-step:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .tj-step img { transition: none; } }

/* ───────── About (home): intro, four-chapter story line, mission ───────── */
.about { background: radial-gradient(60rem 30rem at 100% 0, rgba(226, 181, 74, .14), transparent 60%), rgba(255, 255, 255, .7); }
.about-story::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: radial-gradient(40rem 22rem at 0 0, rgba(226, 181, 74, .16), transparent 70%); }
.about-story > * { position: relative; }
/* one line runs through the chapters: vertical on phones, horizontal from sm up */
.about-chapter { padding-left: 1.75rem; border-left: 1px solid rgba(246, 239, 223, .18); }
.about-node { position: absolute; top: 0; left: -7px; width: 13px; height: 13px; border-radius: 50%; background: #E2B54A; box-shadow: 0 0 0 5px rgba(226, 181, 74, .18); }
@media (min-width: 640px) {
    .about-chapter { padding-left: 0; border-left: 0; }
    .about-chapters { position: relative; }
    .about-chapters::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: linear-gradient(90deg, #E2B54A, rgba(246, 239, 223, .15)); }
    .about-node { left: 0; }
}
@media (min-width: 640px) and (max-width: 1023px) { .about-chapters::before { display: none; } .about-chapter { border-top: 1px solid rgba(246, 239, 223, .15); } .about-node { top: -7px; } }
.about-glyph { transition: transform .35s ease; }
.about-glyph:hover { transform: translateY(-4px); }
.about-more summary { list-style: none; cursor: pointer; }
.about-more summary::-webkit-details-marker { display: none; }
.about-more summary .chev { transition: transform .3s ease; }
.about-more[open] summary .chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .about-glyph { transition: none; } .about-glyph:hover { transform: none; } }

/* ───────── FAQ accordion ───────── */
.faq-q { display: flex; width: 100%; align-items: flex-start; gap: 1rem; text-align: left; }
.faq-q .faq-plus { position: relative; flex: none; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; background: var(--fb, #2B2118); }
.faq-q .faq-plus::before, .faq-q .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px; border-radius: 2px; background: #fff; transition: transform .3s ease; }
.faq-q .faq-plus::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-plus::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease; }
.faq-a > div { overflow: hidden; }
.js .faq-a { grid-template-rows: 0fr; }
.js .faq-a.is-open { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) { .faq-a, .faq-q .faq-plus::before, .faq-q .faq-plus::after { transition: none; } }

/* ───────── Policy pages ───────── */
.legal-body h2 { scroll-margin-top: 90px; }
.legal-body p + p { margin-top: .9rem; }
.legal-toc a[aria-current="true"] { color: var(--b, #2B2118); font-weight: 800; }
.legal-toc a[aria-current="true"]::before { opacity: 1; }
.legal-toc a::before { content: ""; position: absolute; left: -14px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .2s; }

/* ───────── Tianji outlets: open-now chip ───────── */
.oc-state { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 800; }
.oc-state i { width: 8px; height: 8px; border-radius: 50%; background: #9CA3AF; }
.oc-state[data-s="open"] i { background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.oc-state[data-s="closed"] i, .oc-state[data-s="later"] i { background: #F59E0B; }
.oc-state[data-s="off"] i { background: #EF4444; }

/* Group route: a stop that is still incubating (文洋) — dashed frame + 孵化中 stamp */
.route-wy { color: #FDF3DD; font-weight: 900; font-size: clamp(1rem, 2.2vw, 1.9rem); line-height: 1; margin-top: -22%; box-shadow: none; }
.route-m .route-wy { font-size: 1.35rem; }
.route-wip .route-frame { border-style: dashed; }
.route-wm { position: absolute; left: 50%; top: 74%; transform: translate(-50%, -50%) rotate(-14deg); padding: .2em .55em; border: 2px solid #E8570C; border-radius: 6px; color: #E8570C; background: rgba(253, 243, 221, .88); font-weight: 900; font-size: clamp(.7rem, 1.2vw, 1rem); letter-spacing: .12em; white-space: nowrap; pointer-events: none; }
.route-m .route-wm { font-size: .8rem; }
