/* ==========================================================================
   Happy Café — home page
   ========================================================================== */

/* ---------- Scroll-scrubbed scenes ---------- */
.scene { position: relative; height: 430vh; }
.scene-latte { height: 330vh; }
.scene-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene-frame { position: absolute; inset: 0; background: var(--sand); will-change: clip-path; }
.scene-canvas { width: 100%; height: 100%; }
.scene-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245,236,223,.97) 0%, rgba(245,236,223,.9) 32%, rgba(245,236,223,.55) 50%, rgba(245,236,223,0) 68%),
    linear-gradient(0deg, rgba(245,236,223,.55) 0%, rgba(245,236,223,0) 22%);
}
.scene-shade.dark {
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(29,17,10,.86) 0%, rgba(29,17,10,.6) 34%, rgba(29,17,10,0) 64%),
    linear-gradient(0deg, rgba(29,17,10,.5) 0%, rgba(29,17,10,0) 30%);
}
.scene-shade.shade-right {
  background:
    linear-gradient(90deg, rgba(245,236,223,.95) 0%, rgba(245,236,223,.82) 30%, rgba(245,236,223,.35) 48%, rgba(245,236,223,0) 60%),
    linear-gradient(180deg, rgba(245,236,223,.4) 0%, rgba(245,236,223,0) 20%);
}

.beat { position: absolute; inset: 0; display: flex; align-items: center; padding-top: var(--nav-h); pointer-events: none; }
.beat .container { pointer-events: auto; max-width: 1480px; }
.beat-a .container { display: grid; justify-items: start; gap: 18px; }
.hero-title { max-width: 11ch; color: var(--espresso); }
.hero-title .ht-line { display: block; }
.hero-script { margin: -6px 0 0 4px; transform: rotate(-3deg); }
.hero-lead { max-width: 40ch; color: var(--coffee); }
.hero-ctas { margin-top: 6px; }

.beat-b, .beat-c { opacity: 0; visibility: hidden; }
.beat-b .container, .beat-c .container { display: grid; gap: 18px; justify-items: start; }
.beat-b .lead { color: var(--coffee); }
.beat-c, .beat-c .lead { color: var(--on-dark); }
.beat-c h2 { color: var(--on-dark); }
.beat-c h2 em { color: var(--latte); }
.beat-c .kicker { color: var(--latte); }

.spec-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 8px 0 0; }
.spec-chips li {
  display: grid; gap: 2px; padding: 12px 18px; border-radius: 16px;
  background: rgba(246,236,223,.1); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(246,236,223,.22);
  font-weight: 600; font-size: .95rem;
}
.spec-chips span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--latte); font-weight: 600; }

.scene-rail {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; gap: 16px; align-items: stretch; color: var(--coffee);
}
.scene-rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; text-align: right; gap: 36px; }
.scene-rail li { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; opacity: .4; transition: opacity .4s, color .4s; }
.scene-rail li.is-on { opacity: 1; }
.rail-track { width: 2px; background: rgba(42,24,15,.18); border-radius: 2px; overflow: hidden; }
.rail-fill { width: 100%; height: 100%; background: var(--caramel); transform-origin: top; transform: scaleY(0); }
.scene-rail.is-dark { color: var(--on-dark); }
.scene-rail.is-dark .rail-track { background: rgba(246,236,223,.25); }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--coffee); }
.scroll-cue i { width: 1.5px; height: 46px; background: linear-gradient(var(--coffee), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--cream); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

@media (max-width: 860px) {
  .scene { height: 380vh; }
  .scene-latte { height: 300vh; }
  .scene-shade { background: linear-gradient(0deg, rgba(245,236,223,.98) 0%, rgba(245,236,223,.94) 50%, rgba(245,236,223,.6) 64%, rgba(245,236,223,0) 78%); }
  .scene-shade.dark { background: linear-gradient(0deg, rgba(29,17,10,.95) 0%, rgba(29,17,10,.85) 45%, rgba(29,17,10,0) 72%); }
  .scene-shade.shade-right { background: linear-gradient(0deg, rgba(245,236,223,.98) 0%, rgba(245,236,223,.9) 42%, rgba(245,236,223,0) 66%); }
  .beat { align-items: flex-end; padding-bottom: 86px; }
  .beat-a .container { gap: 12px; }
  .hero-title { font-size: 11.6vw; max-width: none; }
  .hero-script { font-size: 1.7rem; margin-top: 0; }
  .hero-lead { font-size: .98rem; }
  .beat .display-l { font-size: 10.5vw; }
  .beat .btn { min-height: 48px; }
  .scene-rail { top: auto; bottom: 22px; right: auto; left: var(--gutter); transform: none; flex-direction: column-reverse; gap: 8px; }
  .scene-rail ol { flex-direction: row; gap: 14px; text-align: left; }
  .scene-rail li { font-size: .62rem; }
  .rail-track { width: 100%; height: 2px; }
  .rail-fill { transform-origin: left; transform: scaleX(0); }
  .scroll-cue { display: none; }
  .hero-title { max-width: 9ch; }
}

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-copy { display: grid; gap: 24px; justify-items: start; }
.about-copy h2 { max-width: 12ch; }
.values { list-style: none; margin: 12px 0 0; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.v-num { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--caramel); }
.values h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 6px; }
.values p { margin: 0; color: var(--muted); max-width: 44ch; }
.about-visual { position: relative; padding: 0 0 90px 60px; }
.about-img-main { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.about-img-small { position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border: 8px solid var(--cream); border-radius: 26px; box-shadow: var(--shadow-soft); }
.badge-rotate { position: absolute; top: -40px; right: -30px; width: clamp(120px, 13vw, 170px); aspect-ratio: 1; color: var(--espresso); }
.badge-rotate > svg:first-child { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge-rotate text { font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 2.2px; fill: currentColor; }
.badge-bean { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%) rotate(20deg); color: var(--coffee); }
.badge-rotate::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: var(--latte); }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(70px, 9vw, 130px); }
.stat { padding: 26px 0 0; border-top: 1px solid var(--line-strong); display: grid; gap: 6px; }
.stat strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .9; letter-spacing: -.04em; color: var(--espresso); }
.stat > span { color: var(--muted); font-size: .95rem; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { padding: 0 0 70px 30px; max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}

/* ---------- Marquee band ---------- */
.marquee-band { padding: clamp(30px, 5vw, 60px) 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; background: var(--cream-soft); overflow: clip; }

/* ---------- Latte scene ---------- */
.latte-copy { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: 18px; max-width: 1480px; padding-top: var(--nav-h); }
.latte-copy h2 { max-width: 12ch; }
.latte-copy .lc-line { display: block; }
.latte-copy .lead { color: var(--coffee); max-width: 36ch; }
.float-tags { position: absolute; inset: 0; pointer-events: none; }
.ftag {
  position: absolute; display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px;
  background: rgba(255,250,243,.82); backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(42,24,15,.5), inset 0 0 0 1px rgba(255,255,255,.6);
  font-family: var(--font-display); font-size: 1.15rem; color: var(--espresso);
  opacity: 0;
}
.ftag small { font-family: var(--font-body); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--caramel); }
.ftag b { font-family: var(--font-body); font-size: .95rem; color: var(--mocha); }
.ft-1 { right: 9%; top: 20%; }
.ft-2 { right: 34%; bottom: 14%; }
.ft-3 { right: 6%; bottom: 26%; }
@media (max-width: 860px) {
  .latte-copy { align-content: end; padding-bottom: 70px; }
  .ft-1 { right: 5%; top: 14%; }
  .ft-2 { left: 5%; right: auto; top: 26%; bottom: auto; }
  .ft-3 { right: 5%; top: 38%; bottom: auto; }
}

/* ---------- Explore (horizontal) ---------- */
.explore { position: relative; background: var(--cream); }
.explore-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; min-width: 0; max-width: 100vw; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 34px); padding-top: calc(var(--nav-h) * .6); }
.explore-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 30px; max-width: 1480px; }
.explore-head .kicker { width: 100%; }
.explore-progress { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.1rem; }
.ep-bar { width: clamp(90px, 14vw, 200px); height: 2px; background: var(--line); position: relative; overflow: hidden; }
.ep-bar i { position: absolute; inset: 0; background: var(--espresso); transform-origin: left; transform: scaleX(0); }
.explore-track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; will-change: transform; }

.panel {
  --tone: var(--sand); --ink: var(--espresso); --soft: rgba(42,24,15,.62);
  position: relative; flex: none; overflow: hidden;
  width: min(84vw, 1040px); height: min(64vh, 640px); min-height: 420px;
  border-radius: var(--radius-lg); background: var(--tone); color: var(--ink);
  display: grid; grid-template-columns: 1fr 1.15fr;
}
.panel.dark { --ink: var(--on-dark); --soft: var(--on-dark-muted); }
.panel-copy { position: relative; z-index: 2; padding: clamp(26px, 4vw, 54px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.panel-index { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--soft); }
.panel-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: .9; letter-spacing: -.035em; margin: 0; }
.panel-name { margin-bottom: 14px; }
.panel-name em { font-style: italic; font-weight: 400; color: var(--mocha); }
.panel.dark .panel-name em { color: var(--latte); }
.panel-blurb { color: var(--soft); margin: 0; max-width: 32ch; }
.panel-meta { display: flex; gap: 22px; flex-wrap: wrap; }
.panel-meta div { display: grid; }
.panel-meta strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-weight: 500; }
.panel-meta span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.panel .btn { align-self: flex-start; }
.panel.dark .btn { --bg: var(--cream); --fg: var(--espresso); --fill: var(--latte); }
.panel-stage { position: relative; }
.panel-stage::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; left: 50%; top: 52%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(255,250,243,.55), rgba(255,250,243,0) 70%);
}
.panel.dark .panel-stage::before { background: radial-gradient(circle, rgba(214,180,142,.35), rgba(214,180,142,0) 70%); }
.p-item { position: absolute; width: var(--w, 34%); filter: drop-shadow(0 26px 30px rgba(29,17,10,.35)); will-change: transform; }
.p-item img { width: 100%; height: auto; }
.p-item:nth-child(1) { --w: 46%; left: 30%; top: 22%; z-index: 3; }
.p-item:nth-child(2) { --w: 30%; left: 6%; top: 8%; z-index: 2; }
.p-item:nth-child(3) { --w: 30%; left: 66%; top: 6%; z-index: 1; }
.p-item:nth-child(4) { --w: 28%; left: 64%; top: 56%; z-index: 4; }
.panel-ghost { position: absolute; right: -2%; bottom: -8%; font-family: var(--font-display); font-style: italic; font-size: clamp(8rem, 18vw, 16rem); line-height: 1; color: rgba(255,255,255,.12); pointer-events: none; z-index: 0; }
.panel:not(.dark) .panel-ghost { color: rgba(42,24,15,.06); }

.panel[data-tone="hot-coffee"] { --tone: #4a2c1c; }
.panel[data-tone="cold-coffee"] { --tone: #dcc3a4; }
.panel[data-tone="cold-frappe"] { --tone: #b47a46; }
.panel[data-tone="iced-teas"] { --tone: #e9b98b; }
.panel[data-tone="softies"] { --tone: #f3e5d1; }
.panel[data-tone="hot-herbal-tea"] { --tone: #d9d2b2; }
.panel[data-tone="bun-corner"] { --tone: #e5c597; }
.panel[data-tone="baked-bliss"] { --tone: #5e3620; }
.panel[data-tone="sweet-bites"] { --tone: #efdab9; }

@media (max-width: 760px) {
  .panel { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: min(70vh, 620px); min-height: 0; width: 86vw; }
  .panel-stage { order: -1; min-height: 50%; overflow: hidden; }
  .p-item:nth-child(1) { --w: 34%; left: 33%; top: 16%; }
  .p-item:nth-child(2) { --w: 24%; left: 7%; top: 8%; }
  .p-item:nth-child(3) { --w: 24%; left: 68%; top: 6%; }
  .p-item:nth-child(4) { --w: 22%; left: 66%; top: 50%; }
  .panel-copy { padding: 22px; gap: 10px; }
  .panel-blurb { display: none; }
  .panel-meta strong { font-size: 1.5rem; }
}

/* ---------- Signatures ring ---------- */
.signatures { background: var(--cream-soft); overflow: clip; }
.ring-stage { --cw: clamp(130px, 12.5vw, 185px); position: relative; height: calc(var(--cw) * 2.3); perspective: 2400px; perspective-origin: 50% 20%; touch-action: pan-y; cursor: grab; user-select: none; }
.ring-stage:active { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; }
.ring-card {
  position: absolute; left: 0; top: 0;
  width: var(--cw); height: calc(var(--cw) * 1.32);
  translate: -50% -50%;
  border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 20%, #fffaf3 0%, #f0e2cf 70%, #e6d2b8 100%);
  box-shadow: 0 30px 60px -30px rgba(42,24,15,.55), inset 0 0 0 1px rgba(255,255,255,.7);
  backface-visibility: hidden;
}
.ring-card img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(29,17,10,.3)); pointer-events: none; }
.ring-floor { position: absolute; left: 50%; bottom: 6%; width: min(70vw, 820px); height: 70px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(42,24,15,.18), rgba(42,24,15,0)); }
.ring-caption { text-align: center; display: grid; justify-items: center; gap: 6px; margin-top: 4px; min-height: 120px; }
.rc-cat { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--caramel); font-weight: 700; }
.rc-price { font-family: var(--font-display); font-size: 1.3rem; color: var(--mocha); }

/* ---------- Menu ---------- */
.menu { background: var(--cream); padding-bottom: clamp(70px, 9vw, 120px); }
.menu-head { max-width: 760px; }
.menu-bar { position: sticky; top: 0; z-index: 40; padding: 12px 0; background: rgba(245,236,223,.86); backdrop-filter: blur(14px); border-block: 1px solid var(--line); transition: top .6s var(--ease-out); }
.site-header:not(.is-hidden) ~ main .menu-bar.is-stuck { top: var(--nav-h); }
.menu-bar-inner { display: flex; align-items: center; gap: 14px; max-width: 1480px; }
.menu-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; color: var(--coffee);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.menu-tab:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.menu-tab b { font-size: .72rem; font-weight: 700; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: rgba(42,24,15,.08); }
.menu-tab[aria-selected="true"] { background: var(--espresso); color: var(--cream); box-shadow: none; }
.menu-tab[aria-selected="true"] b { background: var(--caramel); color: var(--paper); }
.menu-search { flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); width: clamp(180px, 22vw, 280px); }
.menu-search svg { width: 18px; height: 18px; color: var(--mocha); flex: none; }
.menu-search input { border: 0; background: transparent; width: 100%; outline: none; font-size: .95rem; min-height: 40px; }
.menu-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--caramel), 0 0 0 4px rgba(180,122,70,.15); }
@media (max-width: 760px) {
  .menu-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .menu-search { width: 100%; }
}

.menu-count { margin: 28px 0 18px; color: var(--muted); font-size: .9rem; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.menu-card {
  position: relative; display: flex; flex-direction: column; text-align: left;
  border-radius: 26px; background: var(--paper); padding: 12px 12px 18px;
  box-shadow: 0 1px 0 rgba(42,24,15,.06), 0 14px 40px -28px rgba(42,24,15,.4);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  width: 100%;
}
.menu-card[hidden] { display: none; }
.menu-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(42,24,15,.5); }
.mc-visual { position: relative; aspect-ratio: 1 / .78; border-radius: 18px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(70% 70% at 50% 58%, #f1e2cc 0%, #e8d4b9 60%, #e1c9aa 100%); }
.mc-visual::after { content: ""; position: absolute; left: 50%; bottom: 12%; width: 58%; height: 12px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(42,24,15,.28), transparent); }
.mc-visual img { position: relative; z-index: 1; max-width: 72%; max-height: 78%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(29,17,10,.26)); transition: transform .7s var(--ease-out); }
.menu-card:hover .mc-visual img { transform: translateY(-10px) rotate(-4deg) scale(1.07); }
.mc-cat { position: absolute; left: 12px; top: 12px; z-index: 2; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255,250,243,.8); color: var(--mocha); }
.mc-body { padding: 16px 8px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mc-name { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.1; letter-spacing: -.015em; font-weight: 500; margin: 0; }
.mc-desc { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.mc-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-meta span { font-size: .7rem; font-weight: 600; padding: 4px 8px; border-radius: 8px; background: var(--cream); color: var(--coffee); }
.mc-price { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; font-weight: 600; color: var(--espresso); white-space: nowrap; }
.mc-price small { font-family: var(--font-body); font-size: .7rem; font-weight: 600; color: var(--muted); }
@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .menu-card { padding: 8px 8px 14px; border-radius: 20px; }
  .mc-visual { border-radius: 14px; }
  .mc-cat { display: none; }
  .mc-body { padding: 10px 4px 0; gap: 6px; }
  .mc-name { font-size: 1.02rem; }
  .mc-desc, .mc-meta { display: none; }
  .mc-foot { padding-top: 4px; }
  .mc-price { font-size: 1.15rem; }
}
.menu-empty { text-align: center; padding: 50px 0; color: var(--muted); }
.menu-notes { margin: clamp(40px, 6vw, 70px) 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 40px; color: var(--muted); font-size: .86rem; }
.menu-notes li { padding-left: 20px; position: relative; }
.menu-notes li::before { content: "✦"; position: absolute; left: 0; color: var(--caramel); font-size: .8rem; }
@media (max-width: 700px) { .menu-notes { grid-template-columns: 1fr; } }

/* product modal */
.product-modal { width: min(880px, calc(100vw - 24px)); display: none; }
.product-modal[open] { display: grid; grid-template-columns: 1fr 1.1fr; }
.product-modal > .modal-close { z-index: 3; }
.pm-visual { position: relative; display: grid; place-items: center; padding: 40px; min-height: 340px; background: radial-gradient(70% 70% at 50% 55%, #f3e5d1 0%, #e5cfb2 100%); }
.pm-visual img { max-width: 80%; max-height: 300px; width: auto; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(29,17,10,.3)); }
.pm-body { padding: 44px 36px 32px; display: grid; gap: 14px; align-content: start; }
.pm-body p { margin: 0; color: var(--muted); }
.pm-meta { list-style: none; padding: 0; margin: 4px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.pm-meta li { display: grid; padding: 12px 16px; border-radius: 16px; background: var(--cream); min-width: 110px; }
.pm-meta b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.pm-meta span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pm-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pm-price { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.pm-gst { color: var(--muted); }
@media (max-width: 720px) {
  .product-modal[open] { grid-template-columns: 1fr; }
  .pm-visual { min-height: 240px; padding: 30px; }
  .pm-visual img { max-height: 200px; }
  .pm-body { padding: 26px 22px; }
}

/* ---------- Atmosphere gallery ---------- */
.atmosphere { background: var(--cream-soft); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 22px); max-width: 1480px; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery figcaption { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mocha); }
.gallery .reveal-img { height: 100%; }
.g-1 { grid-column: 1 / 8; grid-row: span 2; }
.g-1 .reveal-img { aspect-ratio: auto; min-height: 100%; }
.g-2 { grid-column: 8 / 13; }
.g-3 { grid-column: 8 / 13; }
.g-2 .reveal-img, .g-3 .reveal-img { aspect-ratio: 16 / 9.4; }
.g-4 { grid-column: 1 / 6; }
.g-5 { grid-column: 6 / 10; }
.g-6 { grid-column: 10 / 13; }
.g-4 .reveal-img { aspect-ratio: 4 / 3; }
.g-5 .reveal-img { aspect-ratio: 1 / 1; }
.g-6 .reveal-img { aspect-ratio: 3 / 4; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure { grid-column: auto !important; grid-row: auto !important; }
  .g-1 { grid-column: 1 / -1 !important; }
  .g-1 .reveal-img { aspect-ratio: 16 / 10; }
  .g-4 { grid-column: 1 / -1 !important; }
  .gallery .reveal-img { aspect-ratio: 4 / 3 !important; }
}

/* ---------- Franchise ---------- */
.franchise { background: var(--espresso); overflow: clip; }
.franchise::before { content: ""; position: absolute; width: 60vw; aspect-ratio: 1; right: -20vw; top: -20vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(180,122,70,.28), rgba(180,122,70,0)); pointer-events: none; }
.franchise-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.franchise-intro { position: sticky; top: 18vh; display: grid; gap: 22px; justify-items: start; }
.fr-badge { display: inline-flex; margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--caramel); color: var(--paper) !important; font-weight: 700; font-size: .92rem; transform: rotate(-2deg); }
.franchise-lists { display: grid; gap: clamp(50px, 7vw, 90px); }
.fr-col-title { font-family: var(--font-body); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--latte) !important; display: flex; gap: 14px; align-items: center; margin-bottom: 10px; line-height: 1; }
.fr-col-title span { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; letter-spacing: 0; color: var(--on-dark-muted); }
.fr-list { list-style: none; margin: 0; padding: 0; }
.fr-list li {
  display: flex; gap: 18px; align-items: baseline;
  padding: clamp(16px, 2.2vw, 26px) 0; border-bottom: 1px solid rgba(246,236,223,.14);
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em;
  color: rgba(246,236,223,.28); transition: color .6s var(--ease-out);
}
.fr-list li i { font-style: normal; font-size: .9rem; color: var(--caramel); opacity: .4; transition: opacity .6s, transform .6s var(--ease-out); }
.fr-list li.is-lit { color: var(--on-dark); }
.fr-list li.is-lit i { opacity: 1; transform: rotate(90deg); }
@media (max-width: 900px) {
  .franchise-grid { grid-template-columns: 1fr; }
  .franchise-intro { position: relative; top: 0; }
}

/* ---------- Training teaser ---------- */
.training { background: var(--cream); }
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.training-visual { position: relative; }
.tv-main { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.tv-cup { position: absolute; right: -6%; bottom: -8%; width: 42%; padding: 8%; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-soft); aspect-ratio: 1; display: grid; place-items: center; }
.training-copy { display: grid; gap: 22px; justify-items: start; }
.learn-list { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.learn-list li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--paper); font-weight: 600; font-size: .95rem; box-shadow: inset 0 0 0 1px var(--line); }
.learn-list span { font-family: var(--font-display); font-style: italic; color: var(--caramel); font-weight: 500; }
@media (max-width: 900px) {
  .training-grid { grid-template-columns: 1fr; }
  .training-visual { max-width: 520px; }
}
@media (max-width: 520px) { .learn-list { grid-template-columns: 1fr; } }

/* ---------- Visit ---------- */
.visit { background: var(--cream-soft); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.visit-card { padding: clamp(26px, 3.4vw, 44px); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-soft); display: grid; gap: 26px; align-content: start; justify-items: start; }
.visit-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; width: 100%; }
.visit-info dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--caramel); margin-bottom: 8px; }
.visit-info dd { margin: 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--muted); }
.visit-info dd strong { color: var(--espresso); font-weight: 500; }
.hours-bar { width: 100%; }
.hb-track { position: relative; height: 10px; border-radius: 99px; background: var(--sand); }
.hb-open { position: absolute; left: 37.5%; width: 50%; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--latte), var(--caramel)); }
.hb-now { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--espresso); box-shadow: 0 0 0 4px var(--paper); left: 0; }
.hb-labels { position: relative; height: 1.2em; margin-top: 8px; font-size: .7rem; color: var(--muted); font-weight: 600; }
.hb-labels span { position: absolute; top: 0; white-space: nowrap; }
.hb-labels span:nth-child(1) { left: 0; }
.hb-labels span:nth-child(2) { left: 37.5%; transform: translateX(-50%); }
.hb-labels span:nth-child(3) { left: 87.5%; transform: translateX(-50%); }
.hb-labels span:nth-child(4) { right: 0; }
.visit-map { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 440px; background: var(--sand); box-shadow: var(--shadow-soft); }
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.35) saturate(.85) contrast(.98); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; pointer-events: none; }
.map-pin span { position: absolute; inset: 0; border-radius: 50%; background: var(--caramel); box-shadow: 0 0 0 6px rgba(180,122,70,.25); }
.map-pin::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 2px solid var(--caramel); animation: ping 2.2s var(--ease-out) infinite; }
@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; }
  .visit-map { min-height: 340px; }
}

/* ---------- Reduced motion fallbacks ---------- */
.reduce-motion .scene, .reduce-motion .scene-latte { height: auto; }
.reduce-motion .scene-sticky { position: relative; height: auto; min-height: 100svh; }
.reduce-motion .beat { position: relative; inset: auto; min-height: 60vh; }
.reduce-motion .beat-b, .reduce-motion .beat-c { opacity: 1; visibility: visible; }
.reduce-motion .scene-frame { position: absolute; }
.reduce-motion .scene-rail, .reduce-motion .scroll-cue { display: none; }
.reduce-motion .ftag { opacity: 1; }
.reduce-motion .explore-sticky { position: relative; height: auto; }
.reduce-motion .explore-track { overflow-x: auto; width: 100%; padding-bottom: 20px; }
.reduce-motion .fr-list li { color: var(--on-dark); }

/* ==========================================================================
   3D commercial hero (film3d.js)
   ========================================================================== */
.scene-film { height: 680vh; }
.film-frame { background: radial-gradient(120% 90% at 50% 42%, #5b3a24 0%, #2a180f 48%, #120a05 100%); }
.film-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,10,5,.8) 0%, rgba(18,10,5,.5) 34%, rgba(18,10,5,0) 62%),
    linear-gradient(0deg, rgba(18,10,5,.55) 0%, rgba(18,10,5,0) 30%),
    linear-gradient(180deg, rgba(18,10,5,.45) 0%, rgba(18,10,5,0) 18%);
}
.scene-film .beat h1, .scene-film .beat h2 { color: var(--on-dark); }
.scene-film .beat h1 em, .scene-film .beat h2 em { color: var(--latte); }
.scene-film .beat .lead { color: rgba(246,236,223,.8); }
.scene-film .beat .kicker { color: var(--latte); }
.scene-film .hero-script { color: var(--crema); }
.scene-film .status-pill { background: rgba(29,17,10,.45); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(246,236,223,.22); }
.scene-film .btn-ghost { --fg: var(--on-dark); --fill: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(246,236,223,.4); }
.scene-film .btn-ghost:hover { color: var(--espresso); }
.scene-film .btn-ghost .btn-ico { background: var(--cream); color: var(--espresso); }
.scene-film .beat-d { opacity: 0; visibility: hidden; }
.scene-film .beat-d .container { display: grid; gap: 18px; justify-items: start; }
.scene-film .scroll-cue { color: var(--on-dark); }
.scene-film .scroll-cue i { background: linear-gradient(var(--on-dark), transparent); }
.scene-film .scroll-cue i::after { background: #2a180f; }
.scene-film .scene-rail li { color: var(--on-dark); }
@media (max-width: 860px) {
  .scene-film { height: 580vh; }
  .film-shade { background: linear-gradient(0deg, rgba(18,10,5,.92) 0%, rgba(18,10,5,.78) 42%, rgba(18,10,5,0) 70%), linear-gradient(180deg, rgba(18,10,5,.5) 0%, rgba(18,10,5,0) 16%); }
}
.reduce-motion .scene-film { height: auto; }
.reduce-motion .scene-film .beat-d { opacity: 1; visibility: visible; }

/* embedded in the showcase */
.is-embed .cursor, .is-embed .cursor-dot { display: none !important; }

/* header sits on the dark 3D hero until the page scrolls */
.page-home .site-header:not(.is-scrolled) .brand { color: var(--on-dark); }
.page-home .site-header:not(.is-scrolled) .brand-mark { color: var(--latte); }
.page-home .site-header:not(.is-scrolled) .nav-toggle { background: var(--cream); color: var(--espresso); }
.page-home .site-header:not(.is-scrolled) .nav-actions .btn-ghost { --fg: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(246,236,223,.4); }
.page-home .site-header:not(.is-scrolled) .nav-actions .btn-ghost .btn-ico { background: var(--cream); color: var(--espresso); }

/* ==========================================================================
   Floating cup — hero → "Made with passion"
   ========================================================================== */
.float-cup {
  --fc-w: calc(clamp(240px, 30vw, 460px) * 1.7 / .865);
  position: fixed; left: 50%; top: 50%; z-index: 50;
  width: var(--fc-w);
  margin-left: calc(var(--fc-w) * -0.5);
  margin-top: calc(var(--fc-w) * -0.386);
  pointer-events: none; visibility: hidden; opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.fc-inner { position: relative; animation: fc-bob 4.6s ease-in-out infinite; will-change: transform; }
.fc-inner img { display: block; width: 100%; height: auto; }
.fc-steam { position: absolute; left: 40%; top: -6%; width: 20%; stroke: rgba(255,244,230,.6); stroke-width: 5; }
.fc-steam path { stroke-dasharray: 60 140; animation: fc-steam 3.4s linear infinite; }
.fc-steam path:nth-child(2) { animation-delay: -1.1s; }
.fc-steam path:nth-child(3) { animation-delay: -2.2s; }
@keyframes fc-bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.2deg); } 50% { transform: translate3d(0, -14px, 0) rotate(1.2deg); } }
@keyframes fc-steam { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
.reduce-motion .float-cup { display: none; }

/* ==========================================================================
   By the numbers — a café receipt that prints as you scroll
   ========================================================================== */
.bill { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: clamp(40px, 7vw, 120px); align-items: center; margin-top: clamp(90px, 11vw, 150px); }
.bill-copy { position: relative; display: grid; gap: 18px; justify-items: start; }
.bill-copy h3 { max-width: 12ch; }
.bill-stamp {
  margin-top: 18px; display: grid; place-items: center; text-align: center;
  width: 128px; height: 128px; border-radius: 50%;
  border: 3px double var(--caramel); color: var(--caramel);
  font-size: .7rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; line-height: 1.3;
  transform: rotate(-14deg); opacity: .9;
}
.bill-stamp em { font-family: var(--font-script); font-style: normal; font-size: 2.1rem; letter-spacing: 0; text-transform: none; font-weight: 400; display: block; margin-top: -4px; }
.printer { position: relative; width: 100%; justify-self: center; }
.printer-body {
  position: relative; z-index: 2; height: 58px; border-radius: 18px 18px 12px 12px;
  background: linear-gradient(180deg, #4a2c1c 0%, #2a180f 55%, #1d110a 100%);
  box-shadow: 0 18px 30px -16px rgba(29,17,10,.7), inset 0 1px 0 rgba(255,255,255,.12);
}
.printer-slot { position: absolute; left: 7%; right: 7%; bottom: 10px; height: 7px; border-radius: 6px; background: #050302; box-shadow: inset 0 2px 3px rgba(0,0,0,.9); }
.printer-led { position: absolute; right: 18px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: #8fd16a; box-shadow: 0 0 8px #8fd16a; animation: led 1.1s steps(2) infinite; }
@keyframes led { 50% { opacity: .25; } }
.receipt-clip { position: relative; z-index: 1; margin: -17px 9% 0; overflow: hidden; padding: 0 14px 34px; }
.receipt {
  --zz: 9px;
  position: relative;
  padding: 30px 20px 34px;
  background: #fffdf7 repeating-linear-gradient(180deg, rgba(42,24,15,.025) 0 1px, transparent 1px 4px);
  color: #2a180f;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  font-size: .84rem; line-height: 1.45;
  box-shadow: 0 26px 40px -26px rgba(42,24,15,.55);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
  will-change: transform;
}
.r-head { display: grid; justify-items: center; text-align: center; gap: 3px; padding-bottom: 14px; }
.r-head svg { width: 34px; height: 34px; color: var(--mocha); margin-bottom: 4px; }
.r-head strong { font-size: 1.05rem; letter-spacing: .32em; font-weight: 800; }
.r-head span { font-size: .74rem; color: rgba(42,24,15,.62); }
.r-meta { display: flex !important; justify-content: space-between; width: 100%; margin-top: 10px; padding-top: 10px; border-top: 2px dashed rgba(42,24,15,.28); font-size: .7rem !important; }
.r-meta b { font-weight: 700; color: #2a180f; letter-spacing: .06em; }
.r-lines { list-style: none; margin: 0; padding: 6px 0 10px; }
.r-lines li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: baseline; gap: 8px; padding: 9px 0; }
.r-qty { color: var(--caramel); font-weight: 700; }
.r-item { white-space: nowrap; }
.r-lines i { border-bottom: 2px dotted rgba(42,24,15,.32); transform: translateY(-4px); }
.r-lines b { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; min-width: 2.6ch; text-align: right; }
.r-lines b em, .r-total em { font-style: normal; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-block: 2px dashed rgba(42,24,15,.32); font-weight: 800; letter-spacing: .12em; }
.r-total b { font-size: 1.7rem; letter-spacing: 0; color: var(--mocha); font-variant-numeric: tabular-nums; }
.r-foot { display: grid; justify-items: center; gap: 10px; padding-top: 16px; text-align: center; }
.r-foot span { font-family: var(--font-script); font-size: 1.7rem; color: var(--caramel); line-height: 1; }
.r-barcode { width: 82%; height: 44px; background:
  repeating-linear-gradient(90deg, #2a180f 0 2px, transparent 2px 4px, #2a180f 4px 5px, transparent 5px 8px, #2a180f 8px 11px, transparent 11px 12px, #2a180f 12px 13px, transparent 13px 17px); }
.r-foot small { font-size: .68rem; letter-spacing: .1em; color: rgba(42,24,15,.6); }
@media (max-width: 860px) {
  .bill { grid-template-columns: 1fr; }
  .bill-stamp { position: absolute; right: 0; top: 0; margin: 0; width: 104px; height: 104px; }
  .printer { max-width: 380px; }
}
