/* Pearlita Milk Tea. Taro lilac, milk cream, brown-sugar ink, a little strawberry. Baloo 2 + Figtree. */
:root {
  --cream: #FBF4EA; --paper: #FFFDF8; --lilac: #CDBBEA; --lilac-l: #E6DCF6; --lilac-xl: #F4EFFB; --lilac-d: #6B4FA6;
  --ink: #3B2116; --ink-2: #6E5245; --pearl: #2A140A; --pink: #F2879B; --pink-d: #B8435E; --caramel: #C98A4B;
  --ease: cubic-bezier(.2,.7,.2,1); --snap: cubic-bezier(.76,0,.24,1);
  --pad: clamp(18px, 4.4vw, 64px);
  --display: 'Baloo 2', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--lilac-d); outline-offset: 3px; border-radius: 6px; }
section[id], main [id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lilac-d); margin-bottom: 18px; }
.h2 { font: 700 clamp(36px, 5.2vw, 72px)/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 700 16px/1 var(--body); text-decoration: none; transition: transform .35s var(--ease), background .3s; }
.btn:hover { background: var(--lilac-d); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

/* ===================== HERO ===================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; background: #D8CAEE url(img/hero.jpg) center / cover no-repeat; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(251,244,234,.5) 0%, rgba(251,244,234,.16) 28%, rgba(251,244,234,0) 50%), linear-gradient(180deg, rgba(60,30,90,.12) 0%, rgba(0,0,0,0) 16%); }
/* the three.js pearls: Kiko's side only, below the header, so they never cross the headline or the nav */
.hero__pearls { --pt: 84px; --pb: 0px; --pl: 31%; position: absolute; z-index: 2; top: var(--pt); left: var(--pl); width: calc(100% - var(--pl)); height: calc(100% - var(--pt) - var(--pb)); opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero__pearls.is-ready { opacity: 1; }
.headline { position: absolute; z-index: 5; left: 18px; top: 46%; font: 600 clamp(32px, 3.2vw, 48px)/.98 var(--display); letter-spacing: -.005em; color: var(--ink); text-shadow: 0 2px 18px rgba(251,244,234,.55); }
.headline span { display: block; width: max-content; }
.headline .u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--pink-d); }
.headline .indent { margin-left: 3.5em; }
.hero__foot { position: absolute; z-index: 5; left: 18px; bottom: 26px; display: flex; align-items: center; gap: 18px; }
.hero__cta { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 20px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 600 14px/1 var(--body); text-decoration: none; }
.hero__cta i { width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: var(--ink); display: grid; place-items: center; font-style: normal; transition: transform .45s var(--ease); }
.hero__cta:hover i { transform: translateY(3px); }
.hero__note { font: 500 14px/1.3 var(--body); color: var(--ink); }

/* entrance */
.js .nav, .js .headline span, .js .hero__foot { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .nav { animation-delay: .1s; }
.js .headline span:nth-child(1) { animation-delay: .25s; } .js .headline span:nth-child(2) { animation-delay: .35s; }
.js .headline span:nth-child(3) { animation-delay: .45s; } .js .headline span:nth-child(4) { animation-delay: .55s; }
.js .hero__foot { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ===================== HEADER + PILL MENU ===================== */
.nav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 17px 20px 0; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; font: 600 14px/1 var(--body); letter-spacing: .01em; transition: opacity .4s, transform .5s var(--ease), visibility 0s; }
.nav__links a { color: var(--ink); text-decoration: none; opacity: .95; transition: opacity .2s; }
.nav__links a:hover { opacity: .65; }
.nav.is-past .nav__links { opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }
.toggle { position: relative; width: 35px; height: 17px; border-radius: 999px; border: 0; margin: 0 -2px; cursor: pointer; background: rgba(59,33,22,.22); transition: background .3s; }
.toggle::before, .toggle::after { content: ''; position: absolute; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); transition: transform .4s var(--ease), opacity .3s; }
.toggle::before { left: 2px; transform: translateX(9px); }
.toggle::after { left: 11px; opacity: .55; transform: translateX(9px); }
.toggle.is-off { background: rgba(59,33,22,.12); }
.toggle.is-off::before, .toggle.is-off::after { transform: none; }
.toggle:disabled { cursor: default; opacity: .6; }

.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: 0 6px 24px rgba(60,30,90,.14); transition: box-shadow .5s ease; }
.is-menu-open .brand { box-shadow: 0 0 0 transparent; }
.brand__home { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__logo { width: 32px; height: 32px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; }
.brand__logo svg { width: 22px; height: 22px; }
.brand__name::before { content: 'PEARLITA'; }
.brand__name { font: 700 13px/1 var(--body); letter-spacing: .5em; padding-left: 4px; margin-right: 2px; }
.brand__menu { position: relative; width: 28px; height: 28px; margin-right: -6px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background .3s; }
.brand__menu:hover { background: rgba(59,33,22,.07); }
.brand__menu span { position: absolute; left: 6px; width: 16px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .55s var(--snap), opacity .3s, width .45s var(--snap); }
.brand__menu span:nth-child(1) { top: 8.6px; } .brand__menu span:nth-child(2) { top: 13.2px; } .brand__menu span:nth-child(3) { top: 17.8px; }
.brand__menu:hover span:nth-child(2) { width: 11px; }
.is-menu-open .brand__menu span:nth-child(1) { transform: translateY(4.6px) rotate(45deg); }
.is-menu-open .brand__menu span:nth-child(2) { transform: scaleX(0); opacity: 0; }
.is-menu-open .brand__menu span:nth-child(3) { transform: translateY(-4.6px) rotate(-45deg); }

.menu-backdrop { position: fixed; inset: 0; z-index: 28; background: rgba(60,30,90,.24); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); opacity: 0; visibility: hidden; transition: opacity .6s ease, backdrop-filter .8s ease, -webkit-backdrop-filter .8s ease, visibility 0s .8s; }
.is-menu-open .menu-backdrop { opacity: 1; visibility: visible; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .6s ease, backdrop-filter .8s ease, -webkit-backdrop-filter .8s ease, visibility 0s; }
.sheet { --pill-w: 200px; position: fixed; z-index: 29; top: 17px; right: 20px; width: min(400px, calc(100vw - 32px)); padding: 76px 30px 26px; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(60,30,90,.45);
  clip-path: inset(0 0 calc(100% - 44px) calc(100% - var(--pill-w)) round 22px); visibility: hidden; transition: clip-path .75s var(--snap), visibility 0s .75s; }
.is-menu-open .sheet { clip-path: inset(0 0 0 0 round 24px); visibility: visible; transition: clip-path .85s var(--snap), visibility 0s; }
.sheet__list { list-style: none; }
.sheet__item { overflow: hidden; border-bottom: 1px solid rgba(59,33,22,.08); }
.sheet__link { display: flex; align-items: baseline; gap: 14px; padding: 12px 0 10px; color: var(--ink); text-decoration: none; font: 600 34px/1.05 var(--display); letter-spacing: -.01em; transform: translateY(110%); transition: transform .5s var(--snap), color .3s; }
.is-menu-open .sheet__link { transform: none; transition: transform .9s cubic-bezier(.2,.8,.2,1), color .3s; }
.is-menu-open .sheet__item:nth-child(1) .sheet__link { transition-delay: .32s, 0s; } .is-menu-open .sheet__item:nth-child(2) .sheet__link { transition-delay: .38s, 0s; }
.is-menu-open .sheet__item:nth-child(3) .sheet__link { transition-delay: .44s, 0s; } .is-menu-open .sheet__item:nth-child(4) .sheet__link { transition-delay: .5s, 0s; }
.is-menu-open .sheet__item:nth-child(5) .sheet__link { transition-delay: .56s, 0s; }
.sheet__link:hover { color: var(--lilac-d); }
.sheet__link small { font: 700 11px/1 var(--body); letter-spacing: .12em; color: var(--pink-d); transform: translateY(-14px); }
.sheet__link .arrow { margin-left: auto; font-size: 20px; opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .4s var(--ease); }
.sheet__link:hover .arrow, .sheet__link:focus-visible .arrow { opacity: 1; transform: none; }
.sheet__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .4s; }
.is-menu-open .sheet__foot { opacity: 1; transform: none; transition: opacity .6s .62s, transform .8s .62s cubic-bezier(.2,.8,.2,1); }
.sheet__cta { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 20px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 600 14px/1 var(--body); text-decoration: none; }
.sheet__cta i { width: 30px; height: 30px; border-radius: 50%; background: var(--lilac); color: var(--ink); display: grid; place-items: center; font-style: normal; transition: transform .45s var(--ease); }
.sheet__cta:hover i { transform: rotate(-45deg); }
.sheet__social { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-size: 12.5px; }
.sheet__social a { color: rgba(59,33,22,.62); text-decoration: none; transition: color .3s; }
.sheet__social a:hover { color: var(--ink); }

/* ===================== STATEMENT ===================== */
.say { padding: clamp(96px, 14vw, 180px) var(--pad) clamp(80px, 10vw, 140px); max-width: 1240px; margin: 0 auto; }
.say__t { font: 600 clamp(28px, 3.9vw, 54px)/1.14 var(--display); letter-spacing: -.015em; color: var(--ink); max-width: 22ch; max-width: 1080px; }
.say__t em { font-style: normal; color: var(--lilac-d); }
.say__t .w { opacity: var(--o, 1); transition: opacity .25s linear; }
.clock { display: flex; align-items: center; gap: 18px; margin-top: clamp(36px, 5vw, 56px); padding: 16px 22px 16px 16px; border-radius: 999px; background: var(--paper); box-shadow: 0 10px 30px -14px rgba(60,30,90,.3); width: max-content; max-width: 100%; }
.clock__dial { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6a3d22, var(--pearl) 70%); box-shadow: inset 0 -4px 8px rgba(0,0,0,.35); }
.clock__dial::after { content: ''; position: absolute; left: 13px; top: 10px; width: 11px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); transform: rotate(-30deg); }
.clock__dial i { position: absolute; left: 50%; top: 50%; width: 3px; height: 20px; margin-left: -1.5px; margin-top: -20px; border-radius: 2px; background: var(--lilac); transform-origin: 50% 100%; transition: transform 1s var(--ease); }
.clock p { font: 400 15px/1.35 var(--body); color: var(--ink-2); }
.clock b { font-weight: 700; color: var(--ink); font-size: 17px; }

/* ===================== MENU ===================== */
.menu { padding: clamp(40px, 6vw, 80px) var(--pad) clamp(90px, 11vw, 150px); max-width: 1320px; margin: 0 auto; }
.menu__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 40px; margin-bottom: 36px; }
.menu__head .eyebrow { grid-column: 1 / -1; margin: 0; }
.menu__note { font: 600 15px/1.3 var(--body); color: var(--ink-2); padding-bottom: 8px; }
.menu__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.menu__tabs button { height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--lilac-xl); font: 700 15px/1 var(--body); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.menu__tabs button:hover { transform: translateY(-2px); }
.menu__tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.menu__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.menu__pic { position: sticky; top: 90px; }
.menu__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; transition: opacity .25s, filter .25s; }
.menu__pic img.is-swap { opacity: 0; filter: blur(6px); }
.menu__pic { overflow: clip; border-radius: 28px; }
.menu__pic figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(255,253,248,.92); font: 600 14px/1.35 var(--body); color: var(--ink); }
.rows__key { display: grid; grid-template-columns: 1fr 56px 56px; font: 700 12px/1 var(--body); letter-spacing: .12em; color: var(--ink-2); padding: 0 0 10px; text-align: right; }
.rows { list-style: none; }
.rows li { display: grid; grid-template-columns: 1fr 56px 56px; align-items: baseline; gap: 0; padding: 16px 4px; border-top: 1px solid rgba(59,33,22,.12); outline: none; transition: background .25s, padding .3s var(--ease); border-radius: 4px; }
.rows li:has(> b:only-of-type) { grid-template-columns: 1fr 72px; }
.rows li:hover, .rows li:focus-visible { background: var(--lilac-xl); padding-left: 12px; }
.rows li > div > span { display: block; font: 700 clamp(19px, 1.7vw, 23px)/1.2 var(--display); }
.rows em { font: 700 11px/1 var(--body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; background: var(--pink); color: var(--ink); padding: 4px 8px; border-radius: 999px; vertical-align: 3px; margin-left: 4px; white-space: nowrap; }
.rows small { display: block; font: 400 15px/1.4 var(--body); color: var(--ink-2); margin-top: 3px; }
.rows b { font: 700 18px/1 var(--body); text-align: right; font-variant-numeric: tabular-nums; }
.menu__panel:not(.is-seen) li { opacity: 0; }
.js .menu__panel.is-in li { animation: rowIn .6s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(14px); } }

/* ===================== BUILD A CUP ===================== */
.build { background: var(--lilac-xl); padding: clamp(90px, 11vw, 150px) var(--pad); }
.build__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.build__copy .h2 { margin-bottom: 30px; }
.opt { border: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.opt legend { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; float: left; width: 100%; }
.opt label { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--paper); font: 600 15px/1 var(--body); box-shadow: inset 0 0 0 1.5px rgba(59,33,22,.12); transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease); }
.opt span i { width: 14px; height: 14px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.opt label:hover span { transform: translateY(-2px); }
.opt input:checked + span { background: var(--ink); color: var(--cream); box-shadow: none; }
.opt input:focus-visible + span { outline: 2.5px solid var(--lilac-d); outline-offset: 2px; }
.opt--scale { gap: 0; }
.opt--scale span { border-radius: 0; box-shadow: inset 0 0 0 1px rgba(59,33,22,.12); }
.opt--scale label:first-of-type span { border-radius: 999px 0 0 999px; }
.opt--scale label:last-of-type span { border-radius: 0 999px 999px 0; }
.opt--scale label:hover span { transform: none; }
.build__cup { position: sticky; top: 84px; }
.cupwrap { --ch: clamp(320px, min(32vw, calc(100vh - 470px)), 440px); position: relative; display: flex; flex-direction: column; align-items: center; overflow: clip; }
.cup { height: var(--ch); width: calc(var(--ch) * .65); overflow: visible; transform-origin: 50% 100%; --s: .88; transform: scale(calc(var(--s) * (.94 + var(--c, 1) * .06))); transition: transform .6s var(--ease); --sweet: .5; }
.cup.is-big { --s: 1; }
.cup__shell { fill: none; stroke: rgba(59,33,22,.55); stroke-width: 3; }
.cup__lid { fill: rgba(255,253,248,.9); stroke: rgba(59,33,22,.55); stroke-width: 3; }
.cup__straw { fill: var(--lilac-d); opacity: .85; }
.cup__tea { fill: var(--tea); transition: fill .5s, y .6s var(--ease); filter: saturate(calc(.8 + var(--sweet) * .5)); }
.cup__stripe { fill: none; stroke: #6B3417; stroke-width: 9; stroke-linecap: round; opacity: .55; }
.cup__ice { fill: rgba(255,255,255,.55); stroke: rgba(255,255,255,.9); stroke-width: 1.5; }
.cup__foam { fill: #FFF8EC; }
.cup__pudding { fill: #F2C14E; }
.cup__mango { fill: #F7A21B; }
.cup__nata { fill: rgba(255,255,255,.75); stroke: rgba(200,200,200,.7); }
.cup__crystal { fill: rgba(255,255,255,.5); stroke: rgba(255,255,255,.95); stroke-width: 1.5; }
.cup__pearl { fill: var(--pearl); }
.cup__kiko { position: absolute; width: calc(var(--ch) * .3); right: 0; bottom: 0; pointer-events: none; filter: drop-shadow(0 12px 20px rgba(60,30,90,.18)); transform-origin: 100% 100%; transform: scale(calc(.55 + var(--c, 1) * .45)) rotate(calc((1 - var(--c, 1)) * 14deg)); }
.cup__bubble { order: -1; position: relative; align-self: flex-start; margin: 0 0 6px; max-width: 80%; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: var(--paper); font: 700 16px/1.25 var(--display); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(60,30,90,.35); }
.cup__bubble.pop { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.8); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } }
.build__sum { margin-top: 18px; padding: 22px; border-radius: 24px; background: var(--paper); box-shadow: 0 20px 50px -26px rgba(60,30,90,.4); }
.build__order { font: 500 15px/1.45 var(--body); color: var(--ink-2); min-height: 2.9em; }
.build__total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 16px; padding-top: 14px; border-top: 1px dashed rgba(59,33,22,.2); }
.build__total span { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.build__total output { font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.build__sum .btn { width: 100%; }

/* ===================== MEET KIKO ===================== */
.kiko { background: var(--lilac); padding: clamp(90px, 11vw, 150px) var(--pad); overflow: clip; }
.kiko__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.kiko__stage { position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: end center; overflow: clip; border-radius: 0 0 50% 50% / 0 0 18% 18%; --k: 1; }
.kiko__ring { position: absolute; left: 6%; right: 6%; bottom: 0; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--lilac-xl), var(--lilac-l) 60%, #BFA9E4); transform: scale(calc(.82 + var(--k) * .18)); }
.kiko__img { position: relative; height: 92%; width: auto; transform: translateY(calc((1 - var(--k)) * 26%)) rotate(calc((1 - var(--k)) * -6deg)); transform-origin: 50% 100%; transition: opacity .22s, filter .22s; filter: drop-shadow(0 24px 30px rgba(60,30,90,.25)); }
.kiko__img.is-out { opacity: 0; filter: blur(6px) drop-shadow(0 24px 30px rgba(60,30,90,.25)); }
.kiko__pearl { position: absolute; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #7a4a2c, var(--pearl) 68%); box-shadow: inset -3px -5px 8px rgba(0,0,0,.35); animation: bob 4s ease-in-out infinite; }
.kiko__pearl::after { content: ''; position: absolute; left: 22%; top: 18%; width: 26%; height: 16%; border-radius: 50%; background: rgba(255,255,255,.55); transform: rotate(-30deg); }
.kiko__pearl--a { width: 9%; aspect-ratio: 1; left: 8%; top: 14%; }
.kiko__pearl--b { width: 6%; aspect-ratio: 1; right: 10%; top: 26%; animation-delay: -1.4s; }
.kiko__pearl--c { width: 4.5%; aspect-ratio: 1; right: 22%; top: 8%; animation-delay: -2.6s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.kiko__lede { font: 500 clamp(18px, 1.6vw, 21px)/1.5 var(--body); margin: 22px 0 24px; max-width: 34em; min-height: 4.5em; }
.kiko__moods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.kiko__moods button { height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255,253,248,.6); font: 700 15px/1 var(--body); cursor: pointer; transition: background .25s, color .25s, transform .3s var(--ease); }
.kiko__moods button:hover { transform: translateY(-2px); background: var(--paper); }
.kiko__moods button.is-on { background: var(--ink); color: var(--cream); }
.kiko__facts { display: grid; gap: 0; margin-bottom: 26px; }
.kiko__facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(59,33,22,.16); }
.kiko__facts dt { font: 700 13px/1.6 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--lilac-d); }
.kiko__facts dt { color: #4E3488; }
.kiko__facts dd { font: 600 16px/1.45 var(--body); }
.stamps { padding: 18px 20px; border-radius: 22px; background: var(--paper); }
.stamps p { font: 400 15px/1.4 var(--body); margin-bottom: 12px; }
.stamps__row { list-style: none; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.stamps__row li { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(59,33,22,.3); display: grid; place-items: center; font: 800 10px/1 var(--body); text-transform: uppercase; }
.stamps__row li:nth-child(-n+6) { border: 0; background: radial-gradient(circle at 34% 30%, #7a4a2c, var(--pearl) 68%); }
.stamps.in .stamps__row li:nth-child(-n+6) { animation: stamp .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 90ms + .2s); }
.stamps__row li:nth-child(1) { --n: 0; } .stamps__row li:nth-child(2) { --n: 1; } .stamps__row li:nth-child(3) { --n: 2; } .stamps__row li:nth-child(4) { --n: 3; } .stamps__row li:nth-child(5) { --n: 4; } .stamps__row li:nth-child(6) { --n: 5; }
.stamps__row li.free { background: var(--pink); border: 0; color: var(--ink); }
@keyframes stamp { from { transform: scale(1.8); opacity: 0; } }

/* ===================== HOW ===================== */
.how { padding: clamp(90px, 11vw, 150px) var(--pad); max-width: 1320px; margin: 0 auto; }
.how__head { margin-bottom: clamp(36px, 5vw, 60px); }
.how__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.how__list figure { overflow: clip; border-radius: 24px; aspect-ratio: 4 / 5; margin-bottom: 18px; }
.how__list img { width: 100%; height: 114%; object-fit: cover; margin-top: -7%; transform: translateY(var(--p, 0)); }
.how__list b { font: 800 14px/1 var(--body); color: var(--pink-d); letter-spacing: .1em; }
.how__list h3 { font: 700 26px/1.1 var(--display); margin: 8px 0 6px; }
.how__list p { color: var(--ink-2); max-width: 30em; }

/* ===================== GALLERY ===================== */
.gallery { background: #2E1A12; color: var(--cream); padding: clamp(90px, 11vw, 150px) var(--pad); }
.gallery .h2 { color: var(--cream); }
.gallery .eyebrow { color: var(--lilac); }
.gallery__head { max-width: 1320px; margin: 0 auto clamp(56px, 6vw, 84px); }
.gallery__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; }
.g__f { overflow: clip; border-radius: 22px; }
.g__f img { width: 100%; height: 116%; object-fit: cover; margin-top: -8%; transform: translateY(var(--p, 0)); }
.g figcaption { font: 600 14px/1.3 var(--body); color: rgba(251,244,234,.75); margin-top: 10px; }
.g--a { grid-column: 1 / 8; grid-row: 1; } .g--a .g__f { aspect-ratio: 3 / 2; }
.g--b { grid-column: 9 / 13; grid-row: 1 / 3; margin-top: 22%; } .g--b .g__f { aspect-ratio: 4 / 5; }
.g--c { grid-column: 2 / 6; grid-row: 2 / 4; } .g--c .g__f { aspect-ratio: 4 / 5; }
.g--d { grid-column: 6 / 13; grid-row: 3; margin-top: 10%; } .g--d .g__f { aspect-ratio: 3 / 2; }
.g--e { grid-column: 7 / 11; grid-row: 4; margin-top: 4%; } .g--e .g__f { aspect-ratio: 4 / 5; }
.g--note { grid-column: 1 / 7; grid-row: 4; align-self: center; padding-right: 6%; }
.g--note p { font: 700 clamp(26px, 3vw, 42px)/1.1 var(--display); color: var(--cream); letter-spacing: -.01em; }
.g--note p em { font-style: normal; color: var(--lilac); }
.g--note small { display: block; margin-top: 14px; font: 500 15px/1.4 var(--body); color: rgba(251,244,234,.7); }
.js .g[data-in] { transform: translateY(60px) scale(.96); }
.js .g[data-in].in { transform: none; }

/* ===================== BRANCHES ===================== */
.branches { padding: clamp(90px, 11vw, 150px) var(--pad); max-width: 1320px; margin: 0 auto; }
.branches__head { margin-bottom: clamp(36px, 5vw, 56px); }
.branches__now { margin-top: 18px; font: 600 17px/1.4 var(--body); color: var(--ink-2); }
.branches__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.br { display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 28px; background: var(--paper); box-shadow: 0 20px 50px -30px rgba(60,30,90,.45); }
.br--night { background: var(--ink); color: var(--cream); }
.br__k { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--lilac-d); }
.br--night .br__k { color: var(--lilac); }
.br h3 { font: 700 32px/1.05 var(--display); margin: 14px 0 12px; }
.br__addr { color: var(--ink-2); }
.br--night .br__addr { color: rgba(251,244,234,.75); }
.br__addr small { font-size: 14px; }
.br__hrs { font-weight: 700; margin-top: 14px; }
.br__state { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 22px; font: 700 14px/1 var(--body); color: var(--ink-2); }
.br--night .br__state { color: rgba(251,244,234,.75); }
.br__state::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #B9B0A8; }
.br.is-open .br__state { color: #2F7A47; } .br--night.is-open .br__state { color: #9BE3AE; }
.br.is-open .br__state::before { background: #3FA35F; box-shadow: 0 0 0 4px rgba(63,163,95,.18); }
.br .btn { margin-top: auto; align-self: flex-start; }
.br--night .btn--ghost { color: var(--cream); }
.br--night .btn--ghost:hover { background: var(--cream); color: var(--ink); }
.branches__cta { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding: 26px 30px; border-radius: 28px; background: var(--lilac-l); }
.branches__cta p { font: 600 clamp(19px, 1.8vw, 24px)/1.3 var(--display); max-width: 30em; }

/* ===================== FOOTER ===================== */
.foot { background: var(--lilac-d); color: var(--cream); padding: clamp(60px, 8vw, 100px) var(--pad) 28px; overflow: clip; }
.foot__word { font: 800 clamp(84px, 20vw, 330px)/.8 var(--display); letter-spacing: -.04em; color: var(--lilac); text-align: center; white-space: nowrap; }
.foot__word span { display: inline-block; }
.js .foot__word span { transform: translateY(40%); opacity: 0; transition: transform .9s var(--ease), opacity .6s; transition-delay: calc(var(--i) * 50ms); }
.js .foot__word.in span { transform: none; opacity: 1; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; margin-top: clamp(30px, 5vw, 60px); padding-top: 22px; border-top: 1px solid rgba(251,244,234,.25); font-weight: 600; }
.foot__row nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__row a { text-decoration: none; }
.foot__row a:hover { text-decoration: underline; }
.foot__sample { margin-top: 26px; font-size: 14px; color: rgba(251,244,234,.8); }

/* ===================== REVEALS ===================== */
.js [data-in] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--dl, 0s); }
.js [data-in].in { opacity: 1; transform: none; }

/* ===================== TABLET (600–1099) ===================== */
@media (max-width: 1099px) {
  .menu__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .build__inner { grid-template-columns: 1fr; }
  .build__cup { position: relative; top: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; }
  .kiko__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .how__list { gap: 16px; }
  .how__list h3 { font-size: 22px; }
  .branches__list { grid-template-columns: 1fr 1fr; }
  .br--night { grid-column: 1 / -1; }
}
/* portrait screens: the tall cut of the video, Kiko up top, the headline low and larger */
@media (max-aspect-ratio: 4/5) {
  .hero { background-image: url(img/hero-tall.jpg); }
  .hero__shade { background: linear-gradient(0deg, rgba(251,244,234,.55) 0%, rgba(251,244,234,0) 40%), linear-gradient(180deg, rgba(60,30,90,.12) 0%, rgba(0,0,0,0) 16%); }
  .hero__pearls { --pl: 0%; --pt: 76px; --pb: 300px; }
  .headline { top: auto; bottom: 118px; left: var(--pad); font-size: clamp(36px, 7vw, 64px); }
  .hero__foot { left: var(--pad); right: var(--pad); bottom: 40px; }
}
@media (max-aspect-ratio: 4/5) and (min-width: 600px) {
  .hero__pearls { --pb: 420px; }
  .headline { bottom: 160px; }
  .hero__foot { bottom: 64px; }
}
@media (max-width: 899px) and (min-width: 600px) {
  .menu__body { grid-template-columns: 1fr; }
  .menu__pic { position: relative; top: 0; }
  .menu__pic img { aspect-ratio: 16 / 10; }
  .kiko__inner { grid-template-columns: 1fr; }
  .kiko__stage { max-width: 520px; width: 100%; margin: 0 auto; }
}

/* ===================== PHONE (<600) ===================== */
@media (max-width: 720px) {
  .nav { padding: 14px 16px 0; }
  .nav__links { gap: 16px; font-size: 13px; }
  .hide-sm { display: none; }
}
@media (max-width: 400px) {
  .hide-xs { display: none; }
}
@media (max-width: 720px) {
  .brand { height: 38px; gap: 8px; padding: 0 12px 0 4px; }
  .brand__home { gap: 8px; }
  .brand__logo { width: 30px; height: 30px; }
  .brand__name { letter-spacing: .36em; font-size: 12px; }
  .sheet { top: 14px; right: 16px; padding: 66px 22px 22px; clip-path: inset(0 0 calc(100% - 38px) calc(100% - var(--pill-w)) round 19px); }
  .sheet__link { font-size: 28px; }
}
@media (max-width: 599px) {
  body { font-size: 16px; }
  .headline { font-size: 38px; bottom: 112px; }
  .hero__note { display: none; }
  .hero__pearls { --pb: 270px; }
  .menu__head { grid-template-columns: 1fr; }
  .menu__body { grid-template-columns: 1fr; gap: 22px; }
  .menu__pic { position: relative; top: 0; }
  .menu__pic img { aspect-ratio: 4 / 3.4; }
  .menu__tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 24px; padding: 4px var(--pad); scrollbar-width: none; }
  .menu__tabs::-webkit-scrollbar { display: none; }
  .menu__tabs button { flex: none; }
  .rows li, .rows__key { grid-template-columns: 1fr 44px 44px; }
  .rows b { font-size: 16px; }
  .build__cup { grid-template-columns: 1fr; }
  .cupwrap { --ch: 330px; }
  .cup__bubble { font-size: 15px; }
  .opt span { padding: 0 13px; font-size: 14px; }
  .opt--scale span { padding: 0 11px; }
  .kiko__inner { grid-template-columns: 1fr; }
  .kiko__stage { width: 100%; }
  .kiko__facts div { grid-template-columns: 1fr; gap: 4px; }
  .how__list { grid-template-columns: 1fr; gap: 36px; }
  .how__list figure { aspect-ratio: 4 / 3.6; }
  .gallery__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g--a { grid-column: 1 / -1; grid-row: auto; }
  .g--b { grid-column: 1 / 4; grid-row: auto; margin-top: 0; }
  .g--c { grid-column: 4 / 7; grid-row: auto; margin-top: 22%; }
  .g--d { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
  .g--e { grid-column: 3 / 7; grid-row: auto; margin-top: 0; }
  .g--note { grid-column: 1 / -1; grid-row: auto; padding: 8px 0; }
  .branches__list { grid-template-columns: 1fr; }
  .branches__cta { padding: 22px; }
  .branches__cta .btn { width: 100%; }
  .stamps__row { gap: 4px; }
  .stamps__row li { font-size: 8px; }
}
/* short phones (375 x 667) */
@media (max-aspect-ratio: 4/5) and (max-height: 700px) and (max-width: 599px) {
  .headline { font-size: 32px; bottom: 98px; }
  .hero__foot { bottom: 28px; }
  .hero__pearls { --pb: 236px; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  .js .nav, .js .headline span, .js .hero__foot { animation: none; opacity: 1; transform: none; }
  .hero__video { display: none; }
  .js [data-in] { opacity: 1; transform: none; transition: none; }
  .js .foot__word span { opacity: 1; transform: none; transition: none; }
  .kiko__pearl, .cup__bubble.pop, .js .menu__panel.is-in li { animation: none; }
  .menu__panel:not(.is-seen) li { opacity: 1; }
  .cup { transform: scale(var(--s)); } .cup__kiko { transform: none; }
  .kiko__img { transform: none; }
}
