/* ondo. — demo landing page by Levelyn Labs */
:root {
  --canvas: #F3F1EC;
  --canvas-2: #ECE9E2;
  --ink: #121211;
  --ink-soft: #5F5B54;
  --ghost: #CFCBC3;
  --night: #0B0B0A;
  --warm: #E2672F;
  --cool: #4C7FA8;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(20px, 2.6vw, 56px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 17px/1.5 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--gut); top: -60px; z-index: 100; background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: transform .2s var(--ease-out); }
.skip:focus-visible { transform: translateY(80px); }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }

/* ---------- Pills (nav + CTAs) ---------- */
.pill {
  --pill-ink: var(--ink); --pill-bg: var(--canvas);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--pill-ink); color: var(--pill-ink); background: var(--pill-bg);
  font: 400 15px/1 var(--font); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color .35s var(--ease-out), transform .2s var(--ease-out);
}
.pill::before { /* fill sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pill-ink);
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.pill:hover::before, .pill.is-active::before { transform: none; }
.pill:hover, .pill.is-active { color: var(--canvas); }
.pill:active { transform: scale(.96); }
.pill--solid { background: var(--ink); color: var(--canvas); }
.pill--solid::before { background: #3A3935; }
.pill--solid.is-active::before { background: var(--ink); }
.pill--solid.is-active:hover::before { background: #3A3935; }
.pill--solid:hover, .pill--solid.is-active { color: var(--canvas); }
.pill--lg { height: 48px; padding: 0 26px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gut);
  transition: transform .5s var(--ease-out);
}
.nav__group { display: flex; gap: 10px; }
.nav__group:last-child { justify-content: flex-end; }
.nav::before { /* canvas fade under the bar, light sections only */
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--canvas) 55%, rgba(243,241,236,0)); opacity: 0; transition: opacity .35s var(--ease-out);
}
.nav.fade::before { opacity: 1; }
.nav__mark {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 8px;
  font: 600 26px/1 var(--font); letter-spacing: -.04em; text-decoration: none;
  opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
  pointer-events: none;
}
.nav.show-mark .nav__mark { opacity: 1; transform: none; pointer-events: auto; }
.nav.show-mark .nav__mark:hover { opacity: .6; }
.nav.show-mark.on-photo .nav__mark { opacity: 0; pointer-events: none; }
.nav.on-photo .pill:not(.pill--solid) { background-color: rgba(243,241,236,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav__mark:active { transform: scale(.96); }
.nav.on-dark .pill { --pill-bg: rgba(11,11,10,.5); background-color: rgba(11,11,10,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav.on-dark .pill { --pill-ink: #F3F1EC; }
.nav.on-dark .pill:hover, .nav.on-dark .pill.is-active { color: var(--ink); }
.nav.on-dark .pill--solid { background: #F3F1EC; color: var(--ink); }
.nav.on-dark .pill--solid:hover { color: #fff; }
.nav.on-dark .nav__mark { color: #F3F1EC; }
.nav.hide { transform: translateY(-110%); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 720px; }
.hero__stage { position: absolute; inset: 0; overflow: clip; }
.hero__word {
  position: absolute; left: calc(var(--gut) - .04em); bottom: 23vh; z-index: 1;
  display: flex; align-items: flex-end;
  font: 600 clamp(140px, 27.5vw, 700px)/.78 var(--font); letter-spacing: -.065em;
  will-change: transform;
}
.hero__letters { display: inline-flex; }
.hero__letters > span { display: inline-block; transform: translateY(var(--ly, 0)); }
/* the cup is the full stop of the wordmark */
.hero__cup {
  position: relative; z-index: 2; flex: none; width: .86em; aspect-ratio: 1;
  margin: 0 0 -.09em -.05em;
  filter: drop-shadow(0 40px 50px rgba(30, 20, 10, .18)) drop-shadow(0 8px 12px rgba(30, 20, 10, .12));
  will-change: transform;
}
.hero__cup img { width: 100%; height: 100%; }
.hero__beans {
  position: absolute; z-index: 3; width: min(10vw, 240px); left: 71.5vw; bottom: 21vh;
  transform: rotate(-30deg);
  filter: drop-shadow(0 18px 18px rgba(30, 20, 10, .22));
  will-change: transform;
}
.hero__copy {
  position: absolute; z-index: 4; left: var(--gut); right: var(--gut); bottom: 4.2vh;
  display: flex; justify-content: space-between; align-items: end; gap: 40px;
}
.hero__intro { max-width: 600px; font-size: clamp(16px, 1.05vw, 20px); line-height: 1.4; color: var(--ink); }
.hero__meta { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 0 rgba(226, 103, 47, .5); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 103, 47, .45); } 100% { box-shadow: 0 0 0 10px rgba(226, 103, 47, 0); } }

/* intro entrance */
.js .hero__letters > span { opacity: 0; transform: translateY(40%); }
.js .hero__cup { opacity: 0; }
.js .hero__beans, .js .hero__copy { opacity: 0; }
.loaded .hero__letters > span { opacity: 1; transform: translateY(var(--ly, 0)); transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--n) * 70ms + 100ms); }
.loaded .hero__cup { opacity: 1; transition: opacity 1.1s var(--ease-out) .35s; }
.loaded .hero__cup img { animation: cup-in 1.6s var(--ease-out) .35s both; }
@keyframes cup-in { from { transform: scale(.88) rotate(-28deg); } to { transform: none; } }
.loaded .hero__beans { opacity: 1; transition: opacity 1s var(--ease-out) .8s; }
.loaded .hero__copy { opacity: 1; transition: opacity 1s var(--ease-out) 1s; }

/* ---------- Why ---------- */
.why { position: relative; height: 100vh; min-height: 720px; overflow: clip; }
.why__img {
  position: absolute; right: 0; bottom: 0; width: 74vw; mix-blend-mode: multiply; will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%), linear-gradient(180deg, transparent, #000 30%), linear-gradient(0deg, transparent, #000 16%);
  -webkit-mask-composite: source-in, source-in;
  mask-image: linear-gradient(90deg, transparent, #000 34%), linear-gradient(180deg, transparent, #000 30%), linear-gradient(0deg, transparent, #000 16%);
  mask-composite: intersect;
}
/* warm the cool studio grey toward the canvas */
.why__img img { width: 100%; filter: sepia(.18) saturate(1.05) brightness(1.04); }
.why__copy { position: absolute; left: var(--gut); top: 17vh; z-index: 2; }
.why__title { font: 500 clamp(90px, 8.6vw, 210px)/.9 var(--font); letter-spacing: -.05em; }
.why__lede { text-wrap: pretty; margin-top: 40px; max-width: 440px; font-size: clamp(17px, 1.1vw, 21px); line-height: 1.4; color: var(--ink-soft); }

/* line mask reveal */
.reveal .line { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.reveal .line > span { display: inline-block; }
.js .reveal .line > span { transform: translateY(105%); }
.js .reveal.in .line > span { transform: none; transition: transform 1.1s var(--ease-out); }
.js .reveal.in .line:nth-child(2) > span { transition-delay: .09s; }
.js .reveal-fade { opacity: 0; transform: translateY(16px); }
.js .reveal-fade.in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) .25s, transform .9s var(--ease-out) .25s; }

/* ---------- Reasons (dark, glass) ---------- */
.reasons { position: relative; height: 180vh; background: var(--night); color: #F3F1EC; }
.reasons__stage { position: sticky; top: 0; height: 100vh; overflow: clip; }
.reasons__bg { position: absolute; inset: 0; will-change: transform; }
.reasons__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.reasons__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,10,.6), rgba(11,11,10,.3) 30%, rgba(11,11,10,.3) 70%, rgba(11,11,10,.75)); }
.reasons__cards {
  list-style: none; margin: 0; padding: 0 var(--gut);
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 40px);
  align-items: start; padding-top: 28vh;
}
.glass {
  --y: 0px;
  position: relative; padding: clamp(24px, 1.8vw, 36px); border-radius: 22px;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.18);
  transform: translate3d(0, var(--y), 0);
  will-change: transform, opacity;
}
.glass:nth-child(2) { margin-top: 6vh; }
.glass:nth-child(3) { margin-top: 12vh; }
.glass__num { font: 300 clamp(48px, 3.6vw, 80px)/1 var(--font); letter-spacing: -.04em; }
.glass h3 { padding-top: 64px; font: 500 clamp(20px, 1.35vw, 27px)/1.2 var(--font); letter-spacing: -.01em; }
.glass p { margin-top: 14px; font-size: clamp(15px, .95vw, 18px); line-height: 1.5; color: rgba(243,241,236,.74); max-width: 46ch; }

/* ---------- Menu (carousel + temperature) ---------- */
.menu { position: relative; height: 100vh; min-height: 820px; overflow: clip; background: var(--canvas); }
.menu__tint { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease-io); pointer-events: none; }
.menu__tint--warm { background: radial-gradient(60% 55% at 50% 58%, rgba(226,103,47,.16), transparent 70%); }
.menu__tint--cool { background: radial-gradient(60% 55% at 50% 58%, rgba(76,127,168,.17), transparent 70%); }
.menu[data-temp="hot"] .menu__tint--warm, .menu[data-temp="cold"] .menu__tint--cool { opacity: 1; }
/* "For every [drink name] taste": the ghost words flank the live drink name */
.menu__bgword {
  position: absolute; left: var(--gut); right: var(--gut); top: calc(11vh + 4px); z-index: 0;
  display: flex; justify-content: space-between; white-space: nowrap; color: var(--ghost);
  font: 500 clamp(90px, 7vw, 180px)/.9 var(--font); letter-spacing: -.05em; pointer-events: none;
}
.menu__head { position: absolute; z-index: 3; top: calc(11vh + 40px); left: 50%; transform: translateX(-50%); width: min(560px, 80vw); text-align: center; }
.menu__name { font: 500 clamp(30px, 2.2vw, 46px)/1.1 var(--font); letter-spacing: -.02em; }
.menu__desc { max-width: 44ch; margin-inline: auto; margin-top: 12px; font-size: clamp(15px, 1vw, 19px); line-height: 1.45; color: var(--ink-soft); }
.menu__head.swap .menu__name, .menu__head.swap .menu__desc { opacity: 0; transform: translateY(8px); }
.menu__name, .menu__desc { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }

.menu__track { position: absolute; inset: 0; z-index: 2; touch-action: pan-y; cursor: grab; }
.menu__track:active { cursor: grabbing; }
.drink {
  position: absolute; left: 50%; top: 55%; width: min(36vw, 50vh, 700px); aspect-ratio: 1;
  margin: 0; transform: translate(-50%, -50%) translateX(var(--x)) scale(var(--s)) rotate(var(--r));
  opacity: var(--o); transition: transform .9s var(--ease-io), opacity .9s var(--ease-io);
  pointer-events: none;
}
.drink img { width: 100%; height: 100%; transform: scale(var(--fit, 1)); filter: drop-shadow(0 30px 40px rgba(30, 20, 10, .2)); }
.drink.is-side { pointer-events: auto; cursor: pointer; }
.drink.is-side:hover img { opacity: .8; }

.menu__center { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.menu__arrows { display: flex; gap: 12px; }
.arrow {
  position: relative; width: 64px; height: 48px;
  display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: transform .2s var(--ease-out), color .35s var(--ease-out);
}
.arrow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease-out); }
.arrow:hover { color: var(--canvas); }
.arrow:hover::before { transform: none; }
.arrow svg { width: 30px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
#prev:hover svg { transform: translateX(-3px); }
#next:hover svg { transform: translateX(3px); }
.arrow:active { transform: scale(.94); }

.menu__foot {
  position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: 5.5vh;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
}
.menu__price { font: 400 clamp(24px, 1.7vw, 34px)/1 var(--font); letter-spacing: -.01em; text-align: center; }
.temp { grid-column: 3; justify-self: end; display: grid; grid-template-columns: auto auto; column-gap: 16px; row-gap: 10px; align-items: end; }
.temp__num { font: 200 clamp(56px, 4.6vw, 104px)/.8 var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.temp__label { font-size: 14px; color: var(--ink-soft); padding-bottom: 6px; letter-spacing: .02em; }
.temp__scale { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--cool), #D9D3C8 50%, var(--warm)); }
.temp__needle { position: absolute; top: -5px; left: 0; width: 2px; height: 16px; border-radius: 1px; background: var(--ink); transform: translateX(var(--nx, 0px)); transition: transform 1s var(--ease-io); }

.menu__tabs { position: absolute; z-index: 3; left: var(--gut); bottom: 5.5vh; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.tab {
  border: 0; background: none; padding: 4px 0; font: 400 15px/1.3 var(--font); color: var(--ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; border-radius: 4px;
  transition: color .25s, transform .25s var(--ease-out);
}
.tab::before { content: ""; width: 18px; height: 1.5px; background: currentColor; transform: scaleX(.35); transform-origin: left; transition: transform .4s var(--ease-out); }
.tab:hover { color: var(--ink); }
.tab:hover::before { transform: scaleX(.7); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::before { transform: none; }
.tab:active { transform: translateX(2px); }

/* ---------- Promo ---------- */
.promo { position: relative; height: 100vh; min-height: 760px; overflow: clip; }
.promo__word {
  position: absolute; left: var(--gut); right: var(--gut); top: 11vh; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; font: 600 clamp(150px, 17.5vw, 440px)/.8 var(--font); letter-spacing: -.065em;
}
.promo__word span:last-child { align-self: flex-end; }
.promo__bottle {
  /* sits behind "morning": the neck rises between the words, the label lands below the baseline */
  position: absolute; z-index: 2; left: 50%; top: 23vh; height: 88vh; width: calc(88vh * .7467); margin-left: calc(-88vh * .7467 / 2);
  will-change: transform;
}
/* multiply removes any off-white matte from the cutout against the canvas */
.promo__bottle img { width: 100%; height: 100%; mix-blend-mode: multiply; }
/* the real wordmark set on the blank label, so it matches every other ondo. on the page */
.promo__label {
  position: absolute; left: 50%; top: 70%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 1.6vh; color: #141413;
  mix-blend-mode: multiply; opacity: .9;
}
.promo__label b, .promo__label small { transform: perspective(400px) rotateY(-4deg); }
.promo__label b { font: 600 4.4vh/1 var(--font); letter-spacing: -.045em; }
.promo__label small { font: 400 1.25vh/1 var(--font); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.promo__badge {
  position: absolute; z-index: 3; right: var(--gut); top: 26vh;
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.2); font-size: 15px;
}
.promo__sun { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #3B4A2F; }
.promo__sun svg { width: 20px; height: 20px; fill: none; stroke: #F3F1EC; stroke-width: 1.6; stroke-linecap: round; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.promo__offer { position: absolute; z-index: 3; left: var(--gut); bottom: 8vh; max-width: 440px; }
.promo__kicker { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--warm); font-weight: 500; }
.promo__text { margin: 14px 0 28px; font-size: clamp(17px, 1.15vw, 22px); line-height: 1.42; }
.promo__text strong { font-weight: 600; }

/* ---------- Visit ---------- */
.visit { position: relative; height: 180vh; }
.visit__stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: clip; }
.visit__frame {
  --k: .25;
  position: relative; width: 100vw; height: 100vh; overflow: hidden; border-radius: 28px;
  transform: scale(calc(1 - var(--k) * .42)); will-change: transform;
}
.visit__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + var(--k) * .6)); will-change: transform; }
.visit__scrim { position: absolute; inset: 0; background: radial-gradient(60% 55% at 8% 22%, rgba(10,8,6,.62), rgba(10,8,6,.25) 55%, transparent 80%), linear-gradient(0deg, rgba(10,8,6,.4), transparent 45%); }
.visit__title {
  position: absolute; left: var(--gut); top: 16vh; color: #F7F4EE;
  font: 500 clamp(72px, 6.6vw, 170px)/.9 var(--font); letter-spacing: -.05em;
  text-shadow: 0 4px 40px rgba(10, 8, 6, .35);
  opacity: calc(1 - var(--k) * 3);
}
.visit__card {
  position: absolute; left: var(--gut); bottom: 7vh; width: min(520px, 90vw); padding: 28px; border-radius: 22px;
  background: rgba(243,241,236,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: calc(1 - var(--k) * 4); transform: translateY(calc(var(--k) * 120px));
}
.visit__card dl { margin: 0 0 24px; display: grid; gap: 12px; }
.visit__card dl div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(18,18,17,.12); padding-bottom: 12px; }
.visit__card dt { color: var(--ink-soft); font-size: 15px; }
.visit__card dd { margin: 0; font-size: 17px; font-weight: 500; }

/* ---------- Footer ---------- */
.foot { position: relative; padding: 16vh var(--gut) 32px; overflow: clip; }
.foot__row { display: flex; justify-content: space-between; align-items: baseline; gap: 40px; }
.foot__line { font-size: clamp(20px, 1.5vw, 28px); letter-spacing: -.01em; }
.foot__links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot__links a { position: relative; text-decoration: none; color: var(--ink-soft); font-size: 16px; transition: color .25s; border-radius: 3px; }
.foot__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.foot__links a:hover { color: var(--ink); }
.foot__links a:hover::after { transform: none; transform-origin: left; }
.foot__links a:active { opacity: .6; }
.foot__word { margin-top: 6vh; font: 600 clamp(160px, 33vw, 820px)/.74 var(--font); letter-spacing: -.07em; margin-left: -.04em; }
.foot__credit { margin-top: 40px; font-size: 14px; color: var(--ink-soft); }
.foot__credit a { color: var(--ink); text-underline-offset: 3px; transition: color .2s; }
.foot__credit a:hover { color: var(--warm); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--canvas); font-size: 15px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Menu entrance: waits until you land on the section ---------- */
.menu__bgword span { display: block; transition: transform 1.3s var(--ease-out), opacity 1s var(--ease-out); }
.menu__head, .menu__foot, .menu__tabs { transition: opacity .9s var(--ease-out) .35s, transform .9s var(--ease-out) .35s; }
.menu.is-pre .menu__bgword span:first-child { opacity: 0; transform: translateX(-10vw); }
.menu.is-pre .menu__bgword span:last-child { opacity: 0; transform: translateX(10vw); }
.menu.is-pre .menu__head { opacity: 0; transform: translate(-50%, 18px); }
.menu.is-pre .menu__foot, .menu.is-pre .menu__tabs { opacity: 0; transform: translateY(18px); }
.menu.is-pre .drink { opacity: 0; transform: translate(-50%, -50%) translateX(calc(var(--x) * .3)) translateY(16vh) scale(calc(var(--s) * .62)) rotate(calc(var(--r) - 70deg)); }
.menu.is-entering .drink { transition-duration: 1.3s; transition-timing-function: var(--ease-out); }
.menu.is-entering .drink.is-side { transition-delay: .2s; }

/* ---------- Touch: no sticky hover fills, no tap flash ---------- */
html { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .pill:hover::before, .arrow:hover::before { transform: translateY(101%); }
  .pill.is-active::before { transform: none; }
  .pill:not(.pill--solid):not(.is-active):hover { color: var(--pill-ink); }
  .arrow:hover { color: var(--ink); }
  #prev:hover svg, #next:hover svg { transform: none; }
  .pill:active::before, .arrow:active::before { transform: none; transition-duration: .12s; }
  .pill:active, .arrow:active { color: var(--canvas); }
  .foot__links a:hover::after { transform: scaleX(0); }
}

/* ---------- Phone + tablet portrait composition (own layout, not a shrunk desktop) ---------- */
@media (max-width: 1023px) {
  :root { --gut: 18px; }
  body { font-size: 16px; }

  /* nav: four compact pills, wordmark lives in the hero */
  .nav { display: flex; justify-content: space-between; padding: 12px var(--gut); }
  .nav__group { gap: 6px; }
  .nav__mark { display: none; }
  .pill { height: 32px; padding: 0 12px; font-size: 14px; }
  .pill--lg { height: 48px; padding: 0 24px; font-size: 16px; }

  /* hero: wordmark across the width, cup still the full stop, copy stacked under it */
  .hero { height: 100svh; min-height: 600px; }
  .hero__word { bottom: 40svh; font-size: 31.5vw; }
  .hero__cup { width: .92em; }
  .hero__beans { display: none; }
  .hero__copy { flex-direction: column; align-items: flex-start; gap: 18px; bottom: 9svh; }
  .hero__intro { font-size: 19px; line-height: 1.38; max-width: 22ch; }

  /* why: copy first, photo bleeds in below */
  .why { height: auto; min-height: 0; padding: 6svh var(--gut) 12svh; display: flex; flex-direction: column; }
  .why__copy { position: static; }
  .why__title { font-size: 15.5vw; }
  .why__lede { margin-top: 24px; font-size: 17px; }
  /* square crop on the hand and cups, no empty studio sky */
  .why__img { position: relative; right: auto; bottom: auto; width: 100vw; aspect-ratio: 1; overflow: clip; margin: 2svh 0 0 calc(-1 * var(--gut)); align-self: flex-start; }
  .why__img img { height: 100%; object-fit: cover; object-position: 80% 80%; }
  .why__img {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 12%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 12%);
    mask-composite: intersect;
  }

  /* reasons: cards stack in normal flow over the dark photo */
  .reasons { height: auto; }
  .reasons__stage { position: relative; height: auto; padding: 14svh 0 10svh; }
  .reasons__cards { position: relative; inset: auto; grid-template-columns: 1fr; gap: 14px; padding: 0 var(--gut); }
  .glass:nth-child(2), .glass:nth-child(3) { margin-top: 0; }
  .glass { padding: 24px; border-radius: 20px; }
  .glass h3 { padding-top: 28px; font-size: 21px; }
  .glass p { font-size: 15.5px; }

  /* menu: ghost words stack above, drink row centred, controls at the bottom */
  .menu { height: 100svh; min-height: 700px; }
  .menu__bgword { top: 70px; flex-direction: column; font-size: 19vw; line-height: .86; }
  .menu__bgword span:last-child { align-self: flex-end; }
  .menu__head { top: calc(84px + 34vw); width: calc(100vw - 2 * var(--gut)); }
  .menu__name { font-size: 28px; }
  .menu__desc { font-size: 15px; margin-top: 8px; }
  .drink { top: 59%; width: min(60vw, 36svh); }
  .menu__tabs { display: none; }
  .menu__foot { bottom: 4svh; grid-template-columns: auto 1fr; align-items: end; gap: 16px; }
  .menu__center { grid-column: 1; align-items: flex-start; gap: 12px; }
  .menu__price { font-size: 22px; }
  .arrow { width: 56px; height: 44px; }
  .temp { grid-column: 2; column-gap: 8px; }
  .temp__num { font-size: 46px; }
  .temp__label { font-size: 12px; padding-bottom: 2px; }

  /* promo: words, then the bottle rising behind "morning", then the offer */
  .promo { height: auto; min-height: 0; padding: 13svh var(--gut) 8svh; display: flex; flex-direction: column; }
  .promo__word { position: relative; left: auto; right: auto; top: auto; font-size: 23vw; }
  .promo__bottle { position: relative; left: auto; top: auto; margin: calc(-14vw - 6svh) auto -3svh; height: 60svh; width: calc(60svh * .7467); }
  .promo__label { gap: 1.1svh; }
  .promo__label b { font-size: 3svh; }
  .promo__label small { font-size: .9svh; }
  .promo__badge { position: static; align-self: flex-start; margin-top: 28px; font-size: 14px; }
  .promo__offer { position: static; margin-top: 22px; }
  .promo__text { font-size: 18px; }

  /* visit: full-bleed room, title top, card bottom */
  .visit { height: 150svh; }
  .visit__stage, .visit__frame { height: 100svh; }
  .visit__frame { border-radius: 22px; }
  .visit__title { top: 13svh; font-size: 15vw; }
  .visit__card { bottom: 4svh; left: var(--gut); width: calc(100vw - 2 * var(--gut)); padding: 22px; }
  .visit__card dd { font-size: 15px; }

  /* footer */
  .foot { padding-top: 12svh; }
  .foot__row { flex-direction: column; gap: 24px; }
  .foot__links { gap: 12px 22px; }
  .foot__word { font-size: 41vw; }
  .foot__credit { font-size: 13px; }
  .foot__line { text-wrap: balance; }

  /* pills keep a backing while content scrolls under them */
  .nav .pill:not(.pill--solid) { background-color: rgba(243,241,236,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .nav.on-dark .pill:not(.pill--solid) { background-color: rgba(11,11,10,.5); }
}

/* tablet portrait: use the width, keep line lengths readable */
@media (min-width: 700px) and (max-width: 1023px) {
  .hero__intro { max-width: 34ch; font-size: 21px; }
  .reasons__cards { grid-template-columns: 1fr 1fr; }
  .glass:nth-child(3) { grid-column: 1 / -1; }
  .glass:nth-child(3) p { max-width: 62ch; }
  .reasons__stage { padding-bottom: 6vh; }
  .visit__card { width: min(520px, calc(100vw - 2 * var(--gut))); }
  .why__img { width: 100vw; aspect-ratio: 16 / 10; }
}

/* short phones (SE-class): shrink the stack so the readout and arrows stay on screen */
@media (max-width: 1023px) and (max-height: 700px) {
  .menu { min-height: 0; }
  .menu__bgword { top: 58px; font-size: 14vw; }
  .menu__head { top: calc(66px + 25vw); }
  .menu__desc { font-size: 14px; }
  .drink { top: 57%; width: min(52vw, 30svh); }
  .menu__foot { bottom: max(14px, env(safe-area-inset-bottom)); }
  .menu__center { gap: 8px; }
  .temp__num { font-size: 40px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reasons { height: auto; }
  .reasons__stage { position: relative; height: auto; min-height: 100vh; padding-bottom: 12vh; }
  .reasons__cards { position: relative; }
  .visit { height: auto; }
  .visit__stage { position: relative; }
  .visit__frame { --k: 0 !important; }
}
