/* =========================================================================
   EGORA COFFEE · soft spatial, colorful
   Radius rule: cards 32px · glass panels 28px · inner media 22px · all interactive = pill
   Glass is a web approximation of Apple's materials (backdrop-filter + layered
   borders + highlights), not an official Apple component.
   ========================================================================= */

:root {
  /* ink */
  --ink: #2B1D16;
  --ink-2: #5E4A3F;
  --ink-3: #6E5A4E;
  --line: rgba(43, 29, 22, 0.12);

  /* palette (sampled values where a section touches a video or photo) */
  --cream: #F6F0E7;
  --hero: #FDDFC8;      /* hero.mp4 frame 0, bottom band */
  --hero-top: #E4B190;  /* hero.mp4 frame 0, top band */
  --latte: #F5EDE2;     /* latte-art.mp4 frame 0 */
  --butter: #F6EBC7;
  --matcha: #E2E9D3;
  --sky: #DCE9F2;
  --lavender: #E3DCFC;  /* cta-loop.mp4 light side */

  /* type */
  --font-display: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* motion (Emil Kowalski curves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* depth: shadows tinted with espresso, never black */
  --shadow-1: 0 1px 1px rgba(74, 44, 28, 0.04), 0 6px 16px -6px rgba(74, 44, 28, 0.12);
  --shadow-2: 0 1px 1px rgba(74, 44, 28, 0.04), 0 10px 28px -10px rgba(74, 44, 28, 0.18), 0 36px 70px -28px rgba(74, 44, 28, 0.22);
  --shadow-3: 0 2px 2px rgba(74, 44, 28, 0.04), 0 18px 40px -14px rgba(74, 44, 28, 0.26), 0 60px 110px -40px rgba(74, 44, 28, 0.32);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --nav-h: 3.25rem;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--hero);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
address { font-style: normal; }
::selection { background: var(--ink); color: var(--cream); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 999px; }
.card:focus-visible { border-radius: 32px; outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--cream); padding: .7rem 1.1rem; border-radius: 999px;
  transition: top 200ms var(--ease-out);
}
.skip:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }

/* ------------------------------------------------------------ typography */
.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.35rem + 3vw, 4.1rem);
  font-weight: 620;
  font-stretch: 94%;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.body-lg { font-size: clamp(1.12rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 38ch; }
.body { color: var(--ink-2); max-width: 46ch; }

/* --------------------------------------------------------------- wordmark
   "egora" set in Bricolage Grotesque with the o replaced by a top-down cup:
   a ring with a single drop of crema. It echoes the latte-art section. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 92%;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark__o {
  position: relative;
  display: inline-block;
  width: .5em;
  height: .5em;
  margin: 0 .035em 0 .045em;
  border: .105em solid currentColor;
  border-radius: 50%;
}
.wordmark__o::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: .13em; height: .13em;
  border-radius: 50%;
  background: #B87A4B;
  transform: translate(-45%, -30%);
}
.wordmark__sub {
  margin-left: .42em;
  font-family: var(--font-body);
  font-size: .42em;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-2);
}
.wordmark--xl { font-size: clamp(3.2rem, 2rem + 5vw, 6rem); }

/* ------------------------------------------------------------------ glass */
.glass {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.2) 60%, rgba(255, 255, 255, 0.28));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    var(--shadow-2);
}
.glass--panel { border-radius: 28px; }
.glass--pill { border-radius: 999px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 250, 245, 0.9); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #FFF9F3; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .glass { background: #FFFCF8; border-color: var(--ink); }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 3rem;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .ph { font-size: 1.1em; transition: transform 240ms var(--ease-out); }
.btn--solid {
  background: var(--ink);
  color: #FBF3EA;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px -10px rgba(43, 29, 22, 0.55);
}
.btn--glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), var(--shadow-1);
}
.btn--sm { height: 2.5rem; padding: 0 1.05rem; font-size: .95rem; }
.btn--lg { height: 3.6rem; padding: 0 1.9rem; font-size: 1.1rem; }
.btn__label { display: inline-block; transition: filter 200ms ease, opacity 200ms ease; }
.btn.is-swapping .btn__label { filter: blur(3px); opacity: 0.4; }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: #3E2B21; }
  .btn--glass:hover { background: rgba(255, 255, 255, 0.62); }
  .btn:hover .ph-arrow-up-right { transform: translate(2px, -2px); }
}

/* ----------------------------------------------------------------- loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 100%, var(--hero) 40%, #F6CFB4 100%);
  transition: opacity 700ms var(--ease-out), filter 700ms var(--ease-out), transform 900ms var(--ease-out), visibility 0s linear 900ms;
}
.loader__inner { display: grid; justify-items: center; gap: 1.1rem; }
.loader__cup {
  position: relative;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 9px rgba(255, 255, 255, 0.5), var(--shadow-2);
}
.loader__fill {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #F4E3CF 0 22%, #C99468 23% 60%, #A06A43 100%);
  transform: translateY(100%);
  transition: transform 500ms var(--ease-out);
}
.loader__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 92%;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
}
.loader.is-done {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}
html:not(.motion) .loader { display: none; }

/* -------------------------------------------------------------------- nav */
.nav {
  position: fixed;
  z-index: 50;
  top: max(.85rem, env(safe-area-inset-top));
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand { display: inline-flex; align-items: center; height: var(--nav-h); padding: 0 1.2rem 0 1.15rem; }
.nav__links { display: flex; align-items: center; gap: .15rem; height: var(--nav-h); padding: 0 .38rem 0 .5rem; }
.nav__links a:not(.btn) {
  padding: .55rem .85rem;
  border-radius: 999px;
  font-weight: 550;
  font-size: .95rem;
  transition: background-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:not(.btn):hover { background: rgba(255, 255, 255, 0.5); }
}
@media (max-width: 760px) {
  .nav__links a:not(.btn) { display: none; }
  .nav__links { padding: 0 .38rem; }
}

/* ------------------------------------------------------- scroll stages */
.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.stage__canvas,
.stage__poster,
.stage__poster img,
.stage__still,
.stage__still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage__poster img, .stage__still img { object-fit: cover; }
.stage__canvas { z-index: 1; opacity: 0; }
.stage__poster { z-index: 0; }
.stage.has-frame .stage__canvas { opacity: 1; }
.stage.has-frame .stage__poster { visibility: hidden; }
.stage__still { display: none; z-index: 0; }

/* soft edges: the canvas fades into whatever colour the page is at that moment */
.hero .stage__canvas, .hero .stage__poster, .hero .stage__still {
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
}
.craft .stage__canvas, .craft .stage__poster, .craft .stage__still {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}

/* no-JS and reduced motion: stills, no scrubbing */
html:not(.motion) .stage__canvas,
html:not(.motion) .stage__poster { display: none; }
html:not(.motion) .stage__still { display: block; }

/* ------------------------------------------------------------------- hero */
.hero__ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 34rem) 1fr minmax(0, 21rem);
  align-items: center;
  gap: 2rem;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 3rem;
  pointer-events: none;
}
.hero__ui > * { pointer-events: auto; }
.hero__copy { grid-column: 1; padding: 2rem 2.1rem 1.9rem; }
.pour { grid-column: 3; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1rem + 3vw, 3.9rem);
  font-weight: 640;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: -0.042em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.hero__lede { margin-top: 1rem; max-width: 32ch; color: var(--ink-2); font-size: 1.06rem; line-height: 1.5; }

/* CTA materialises once the latte is complete */
.hero__cta {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 520ms var(--ease-out);
}
.hero__cta-inner { min-height: 0; overflow: hidden; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__cta-inner > .btn { margin-top: 1.4rem; }
.hero__cta .btn {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  filter: blur(4px);
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out), filter 420ms var(--ease-out), background-color 200ms ease;
}
.hero__cta .btn + .btn { transition-delay: 60ms; }
.hero.is-ready .hero__cta { grid-template-rows: 1fr; }
.hero.is-ready .hero__cta .btn { opacity: 1; transform: none; filter: none; }
.hero.is-ready .hero__cta .btn:active { transform: scale(0.97); transition-delay: 0ms; }

/* pour status card with a tiny glass gauge */
.pour {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 1.15rem;
  padding: 1.4rem 1.5rem 1.4rem 1.35rem;
}
.pour__gauge {
  position: relative;
  min-height: 7.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1.5px rgba(43, 29, 22, 0.28), inset 0 2px 4px rgba(43, 29, 22, 0.08);
}
.pour__milk, .pour__shot { position: absolute; left: 0; right: 0; transform: scaleY(0); }
.pour__milk { bottom: 0; top: 0; background: #FFFCF6; transform-origin: 50% 100%; }
.pour__shot {
  top: 0; bottom: 0;
  background: linear-gradient(to bottom, #7A4A2B, #B07A50 55%, rgba(201, 148, 104, 0.4));
  transform-origin: 50% 0%;
}
.pour__steps { display: grid; align-content: center; }
.pour__step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition: opacity 480ms var(--ease-out), transform 620ms var(--ease-out), filter 480ms var(--ease-out);
}
.pour__step.is-past { transform: translateY(-12px); }
.pour__step.is-active { opacity: 1; transform: none; filter: none; }
.pour__label {
  display: block;
  margin-bottom: .35rem;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pour__text {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 520;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* hero entrance after the loader: glass materialises, title lines rise */
.motion .hero__copy, .motion .pour {
  opacity: 0;
  scale: 0.96;
  filter: blur(10px);
  transition: opacity 800ms var(--ease-out), scale 1000ms var(--ease-out), filter 800ms var(--ease-out);
}
.motion .pour { transition-delay: 160ms; }
.motion .hero__title .line > span { transform: translateY(105%); transition: transform 1000ms var(--ease-out); }
.motion .hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
.motion .hero__lede { opacity: 0; transition: opacity 800ms var(--ease-out) 260ms; }
.motion.is-loaded .hero__copy, .motion.is-loaded .pour { opacity: 1; scale: 1; filter: none; }
.motion.is-loaded .hero__title .line > span { transform: none; }
.motion.is-loaded .hero__lede { opacity: 1; }

/* reduced motion / no JS: everything visible and static */
html:not(.motion) .hero__cta { grid-template-rows: 1fr; }
html:not(.motion) .hero__cta .btn { opacity: 1; transform: none; filter: none; }
html:not(.motion) .pour__steps { gap: .9rem; }
html:not(.motion) .pour__step { grid-area: auto; opacity: 1; transform: none; filter: none; }
html:not(.motion) .pour__milk, html:not(.motion) .pour__shot { transform: scaleY(1); }
html:not(.motion) .pour__shot { transform: scaleY(.62); }

@media (max-width: 1080px) and (min-width: 821px) {
  .hero__ui { grid-template-columns: minmax(0, 27rem) 1fr minmax(0, 17rem); }
}
@media (max-width: 820px), (max-aspect-ratio: 3/4) {
  .hero__ui {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 1rem;
    padding: calc(max(.85rem, env(safe-area-inset-top)) + var(--nav-h) + .75rem) 1rem calc(1rem + env(safe-area-inset-bottom));
  }
  .hero__copy { grid-column: 1; grid-row: 1; padding: 1.35rem 1.4rem 1.3rem; }
  .pour { grid-column: 1; grid-row: 3; align-self: end; padding: 1.05rem 1.2rem 1.05rem 1.05rem; }
  .hero__title { font-size: clamp(2rem, 1.2rem + 4vw, 2.9rem); }
  .hero__lede { font-size: .98rem; margin-top: .7rem; }
  .pour__gauge { min-height: 4.6rem; }
  .pour__text { font-size: 1.12rem; }
  .hero__cta-inner > .btn { margin-top: 1rem; }
}
@media (max-height: 700px) and (max-width: 820px) {
  .hero__lede { display: none; }
}

/* ------------------------------------------------------------------ story */
.story { padding: clamp(6rem, 13vw, 11rem) 0 clamp(6rem, 12vw, 10rem); }
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.story__text { display: grid; gap: 1.4rem; }
.story__text .body-lg { margin-top: .4rem; }
.story__facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.story__facts li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem .5rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), var(--shadow-1);
  font-size: .92rem; font-weight: 600;
}
.story__facts .ph { font-size: 1.1rem; color: #9A6A45; }

.story__stack { position: relative; aspect-ratio: 1.12; }
.float-card { position: absolute; margin: 0; will-change: transform; }
.float-card img { width: 100%; height: auto; }
.float-card--cafe {
  top: 0; right: 0; width: 90%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.float-card--beans {
  left: 0; bottom: 0; width: 56%;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.22));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.55), var(--shadow-3);
}
.float-card--beans img { border-radius: 22px; background: #F6EFE6; }

@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__stack { aspect-ratio: 1.02; margin-top: 1rem; }
  .float-card--cafe { width: 94%; }
  .float-card--beans { width: 64%; padding: 7px; border-radius: 26px; }
  .float-card--beans img { border-radius: 19px; }
}

/* ------------------------------------------------------------------ craft */
.craft__stage { background: var(--latte); }
.craft__panel {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  top: 50%;
  width: min(27rem, 36vw);
  padding: 2rem 2rem 1.9rem;
  transform: translateY(-50%);
}
.craft__title { font-size: clamp(1.9rem, 1rem + 2vw, 2.85rem); }
.craft__lines { display: grid; gap: 1rem; margin-top: 1.5rem; counter-reset: none; }
.craft__line {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
  line-height: 1.5;
  opacity: .34;
  transition: opacity 520ms var(--ease-out), color 300ms ease;
}
.craft__line::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: .6rem; height: .6rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
.craft__line.is-on { opacity: 1; }
.craft__line.is-current { color: var(--ink); }
.craft__line.is-current::before { background: #B87A4B; box-shadow: inset 0 0 0 1.5px #B87A4B, 0 0 0 4px rgba(184, 122, 75, 0.18); }
html:not(.motion) .craft__line { opacity: 1; }

@media (max-width: 820px), (max-aspect-ratio: 3/4) {
  .craft__panel {
    left: 1rem; right: 1rem; top: auto; bottom: calc(1rem + env(safe-area-inset-bottom));
    width: auto;
    padding: 1.3rem 1.35rem 1.25rem;
    transform: none;
  }
  .craft__title { font-size: 1.65rem; }
  .craft__lines { gap: .6rem; margin-top: .9rem; }
  .craft__line { font-size: .95rem; line-height: 1.42; }
}

/* ------------------------------------------------------------------- menu */
.menu { padding: clamp(6rem, 11vw, 9.5rem) 0 clamp(6rem, 10vw, 9rem); }
.section-head { display: grid; gap: 1rem; max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.menu__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}
.card--drink { grid-column: span 2; }
.card--wide { grid-column: span 3; }
.card--offset { margin-top: clamp(1.5rem, 4vw, 3.5rem); }

.card {
  position: relative;
  border-radius: 32px;
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
/* two shadow layers: resting, and a deeper lifted one whose opacity follows the spring */
.card::before, .card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.card::before { box-shadow: var(--shadow-2); }
.card::after { box-shadow: var(--shadow-3); opacity: var(--lift, 0); }

.card--drink { background: linear-gradient(90deg, var(--c1), var(--c2)); }
.card__media { border-radius: 32px 32px 0 0; overflow: hidden; }
.card--drink .card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 896;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.card__body { position: relative; padding: 0 1.6rem 1.6rem; margin-top: -.6rem; }
.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; }
.card__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + .6vw, 1.65rem);
  font-weight: 620;
  font-stretch: 94%;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.card__price {
  padding: .3rem .72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  font-size: .98rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.card__desc { margin-top: .6rem; color: var(--ink-2); font-size: .98rem; line-height: 1.5; max-width: 40ch; }
.card--wide .card__body { padding: 0 2rem 1.9rem; }

@media (max-width: 760px) {
  .menu__grid {
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding: .5rem var(--gutter) 2.25rem;
    scrollbar-width: none;
  }
  .menu__grid::-webkit-scrollbar { display: none; }
  .card--drink { flex: 0 0 min(82vw, 22rem); scroll-snap-align: start; margin-top: 0; }
  .card--wide .card__body, .card__body { padding: 0 1.35rem 1.4rem; }
}

/* --------------------------------------------------------------- pastries */
.pastries { padding: clamp(6rem, 11vw, 9.5rem) 0; }
.pastries__wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.pastries__head { position: sticky; top: calc(var(--nav-h) + 3rem); display: grid; gap: 1rem; }
.pastries__list { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }

.card--pastry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  background: var(--pg);
}
.card--pastry .card__media { border-radius: 32px 0 0 32px; }
.card--pastry .card__media img {
  width: 100%; height: auto; aspect-ratio: 1;
  -webkit-mask-image: linear-gradient(to right, #000 64%, transparent 100%);
  mask-image: linear-gradient(to right, #000 64%, transparent 100%);
}
.card--pastry .card__body { margin: 0; padding: 1.75rem 2rem 1.75rem .25rem; }
.card--pastry-alt { margin-left: clamp(0rem, 7vw, 5.5rem); }
.card__pair {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.1rem;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
}
.card__pair .ph { color: #9A6A45; font-size: 1.05rem; }

@media (max-width: 900px) {
  .pastries__wrap { grid-template-columns: 1fr; }
  .pastries__head { position: static; }
}
@media (max-width: 620px) {
  .card--pastry { display: block; background: var(--pb); }
  .card--pastry .card__media { border-radius: 32px 32px 0 0; }
  .card--pastry .card__media img {
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }
  .card--pastry .card__body { padding: 0 1.4rem 1.5rem; margin-top: -.8rem; }
  .card--pastry-alt { margin-left: 0; }
}

/* ------------------------------------------------------------------ visit */
.visit { padding: clamp(6rem, 11vw, 9.5rem) 0; }
.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
}
.visit__map {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.visit__map svg { width: 100%; height: auto; }
.map-ping { transform-box: fill-box; transform-origin: center; }
.motion .map-ping { animation: ping 2.6s var(--ease-out) infinite; }
@keyframes ping {
  0% { transform: scale(0.6); opacity: .26; }
  100% { transform: scale(2.3); opacity: 0; }
}
.visit__card {
  position: relative;
  z-index: 1;
  margin-left: clamp(-6rem, -6vw, -2rem);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
}
.visit__address { font-size: 1.15rem; line-height: 1.45; font-weight: 550; }
.hours { display: grid; gap: .1rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.hours div + div { border-top: 1px solid var(--line); }
.hours dt { color: var(--ink-2); }
.hours dd { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nw { white-space: nowrap; }
.visit__note { color: var(--ink-2); font-size: .98rem; }
.visit__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }

@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__card { margin: -3.5rem .75rem 0; }
}

/* ---------------------------------------------------------------- closing */
.closing { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.closing__media {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: clamp(8rem, 26vh, 16rem);
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 92%, transparent 100%);
}
.closing__video, .closing__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.closing__video { z-index: 1; opacity: 0; transition: opacity 800ms var(--ease-out); }
.closing__video.is-playing { opacity: 1; }
.closing__content {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: clamp(6.5rem, 12vh, 9rem) 0 clamp(2rem, 6vh, 3.5rem);
}
.closing__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 1.2rem + 5.4vw, 6.6rem);
  font-weight: 650;
  font-stretch: 90%;
  line-height: .96;
  letter-spacing: -0.048em;
}
.closing__actions { display: grid; justify-items: center; gap: .9rem; }
.closing__hint {
  max-width: min(46ch, 100%);
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: .95rem; font-weight: 550; color: var(--ink-2);
}
@media (max-width: 700px) {
  .closing__media { top: 11rem; }
  .closing__hint { border-radius: 20px; }
}

/* ----------------------------------------------------------------- footer */
.footer { padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__tag { margin-top: 1rem; color: var(--ink-2); font-size: 1.1rem; }
.footer__col h3 {
  margin-bottom: .75rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.footer__col p + p { margin-top: .6rem; }
.footer a { transition: color 200ms ease; }
.footer__col a { text-decoration: underline; text-decoration-color: rgba(43, 29, 22, 0.25); text-underline-offset: .2em; }
.socials { display: grid; gap: .45rem; }
.socials a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.socials .ph { font-size: 1.2rem; }
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover { text-decoration-color: currentColor; }
}
.footer__small {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-3);
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------- reveal
   uses the independent `translate` property so it never fights the card spring (transform) */
.motion .reveal {
  opacity: 0;
  translate: 0 22px;
  filter: blur(6px);
  transition: opacity 900ms var(--ease-out), translate 1000ms var(--ease-out), filter 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.motion .reveal.is-in { opacity: 1; translate: 0 0; filter: none; }

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: none; filter: none; }
  .map-ping { animation: none !important; }
  .closing__video { display: none; }
}
