/* Nom menu: a featured hero, then the full catalogue. Raw products on white, Montserrat Black names, Montserrat Regular everything else. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- featured hero ---------- */
.mhero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--pad) * 3) var(--pad) calc(var(--pad) * .7); overflow: clip; isolation: isolate; }
.mtitle { margin: 0; text-align: center; font-family: var(--display); font-weight: 900; font-size: clamp(64px, 10.4vw, 172px); line-height: .9; letter-spacing: -.05em; text-transform: lowercase; position: relative; z-index: 1; }
.feature { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: clamp(10px, 3vw, 60px); margin-top: clamp(10px, 2vh, 30px); max-width: 1240px; width: 100%; justify-self: center; }
.feat { all: unset; cursor: pointer; display: grid; justify-items: center; text-align: center; will-change: transform; }
.feat:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; border-radius: 20px; }
.feat-fig { position: relative; display: block; width: 100%; height: clamp(220px, 34vh, 420px); }
.f-pop .feat-fig { height: clamp(280px, 45vh, 540px); }
.feat-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: transform 1s var(--ease); transform-origin: 50% 100%;
  animation: bob 6s ease-in-out infinite alternate; }
.f-new .feat-fig img { animation-delay: -2s; animation-duration: 5.4s; } .f-cls .feat-fig img { animation-delay: -4s; animation-duration: 6.6s; }
@keyframes bob { from { translate: 0 0; rotate: -.8deg; } to { translate: 0 -10px; rotate: .8deg; } }
.feat:hover .feat-fig img { transform: translateY(-10px) scale(1.03); }
.feat-txt { display: grid; justify-items: center; gap: 4px; margin-top: 18px; }
.feat-k { font-size: 13px; color: var(--mute); }
.feat-n { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2vw, 30px); line-height: 1.05; letter-spacing: -.03em; }
.f-pop .feat-n { font-size: clamp(24px, 2.5vw, 37px); }
.feat-p { font-size: 15px; color: var(--mute); font-variant-numeric: tabular-nums; }
/* arrival: the favourite rises first, the other two glide in from the sides */
.feature .feat { opacity: 0; }
.feature.ready .feat { animation: feat-in 1.3s var(--ease) both; }
.feature.ready .f-pop { animation-delay: .1s; }
.feature.ready .f-new { animation-name: feat-in-l; animation-delay: .32s; }
.feature.ready .f-cls { animation-name: feat-in-r; animation-delay: .42s; }
@keyframes feat-in { from { opacity: 0; transform: translateY(70px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes feat-in-l { from { opacity: 0; transform: translate(-60px, 40px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes feat-in-r { from { opacity: 0; transform: translate(60px, 40px) rotate(6deg); } to { opacity: 1; transform: none; } }
/* leaving: each drink fades as it slides under the bar, driven by scroll (JS fallback in menu.js) */
@keyframes feat-out { to { opacity: 0; transform: translateY(-26px) scale(.94); } }
@keyframes title-out { to { opacity: 0; translate: 0 -30px; } }
@supports (animation-timeline: view()) {
  .feat { view-timeline: --feat block; view-timeline-inset: calc(var(--barh, 74px) + 6vh) 0px; }
  .feat-fig, .feat-txt { animation: feat-out linear both; animation-timeline: --feat; animation-range: exit 0% exit 75%; }
  .mtitle { animation: title-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
}
.down { justify-self: center; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 20px; font-size: 13px; color: var(--mute); position: relative; z-index: 1; }
.down .ic { font-size: 18px; color: var(--ink); animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .feature .feat { opacity: 1; animation: none !important; } .feat-fig, .feat-txt, .mtitle, .feat-fig img { animation: none !important; } .down i { animation: none; } }

/* ---------- toolbar ---------- */
.tools { position: sticky; top: var(--barh, 74px); z-index: 5; display: flex; gap: 14px; align-items: center; justify-content: space-between;
  padding: 12px var(--pad); background: rgba(255,255,255,.97); }
.cats { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); }
.cat-ink { position: absolute; left: 0; top: 2px; height: 40px; width: 0; border-radius: 999px; background: var(--ink); pointer-events: none; transition: transform .6s var(--ease), width .6s var(--ease); }
.cats::-webkit-scrollbar { display: none; }
.cat { position: relative; z-index: 1; flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: none; color: var(--mute); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease); }
.cat:hover { color: var(--ink); }
.cat[aria-pressed="true"] { color: var(--paper); }
.find { position: relative; flex: none; width: min(240px, 30vw); }
.find .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--mute); pointer-events: none; }
.find input { width: 100%; height: 40px; border-radius: 999px; border: 0; background: #f3f3f1; padding: 0 14px 0 40px; font: inherit; font-size: 15px; color: var(--ink); }
.find input::placeholder { color: #8f8f8c; }
.find input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- catalogue ---------- */
.mbody { padding: clamp(30px, 4vw, 60px) var(--pad) clamp(90px, 11vw, 160px); }
.cat-sec { scroll-margin-top: calc(var(--barh, 74px) + 70px); }
.cat-sec .grid { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
.cat-sec + .cat-sec { margin-top: clamp(80px, 10vw, 150px); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(20px, 3vw, 40px); }
.cat-head .h2 { font-size: clamp(40px, 5.2vw, 84px); }
.cat-head > span { font-size: 14px; color: var(--mute); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 70px) clamp(16px, 2.4vw, 44px); }
.grid .cup-fig { aspect-ratio: 4 / 5; }
.cup .flag.soft { background: #f1f1ef; color: var(--ink); }
.empty { padding: 60px 0; font-size: 18px; color: var(--mute); }
.empty b { color: var(--ink); }

/* make it yours */
.extras { margin-top: clamp(90px, 11vw, 160px); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
.extras dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 30px; }
.extras dt, .extras dd { margin: 0; padding: 16px 0; border-bottom: 1px solid #eeeeec; font-size: 16px; line-height: 1.45; }
.extras dt { font-weight: 900; letter-spacing: -.02em; }
.extras dd { color: var(--mute); }

/* ---------- detail sheet: picture left, words right, the order button always in reach ---------- */
html.locked { overflow: hidden; }
html.locked body { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.sheet { width: min(980px, calc(100vw - 32px)); height: min(680px, calc(100dvh - 40px)); max-height: none; padding: 0; border: 0; border-radius: 32px; background: var(--paper); color: var(--ink); overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.18); opacity: 0; transform: translateY(18px) scale(.985); overscroll-behavior: contain;
  transition: opacity .45s var(--ease), transform .6s var(--ease), overlay .6s allow-discrete, display .6s allow-discrete; }
.sheet[open] { opacity: 1; transform: none; display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: minmax(0, 1fr) auto; }
@starting-style { .sheet[open] { opacity: 0; transform: translateY(18px) scale(.985); } }
.sheet::backdrop { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .45s var(--ease), overlay .6s allow-discrete, display .6s allow-discrete; }
.sheet[open]::backdrop { opacity: 1; }
@starting-style { .sheet[open]::backdrop { opacity: 0; } }
.sheet-in { display: contents; }
.sheet-fig { grid-row: 1 / 3; position: relative; }
.sheet-fig img { position: absolute; inset: 40px 30px 34px; width: calc(100% - 60px); height: calc(100% - 74px); object-fit: contain; object-position: 50% 100%; }
.sheet-txt { grid-column: 2; grid-row: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 60px 46px 20px; display: flex; flex-direction: column; }
.sheet-txt .flags { display: flex; gap: 6px; margin-bottom: 16px; min-height: 22px; }
.sheet-txt h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 3.3vw, 48px); line-height: 1; letter-spacing: -.04em; }
.sheet-price { margin: 14px 0 0; font-size: 20px; color: var(--mute); font-variant-numeric: tabular-nums; }
.sheet-desc { margin: 22px 0 0; font-size: 17px; line-height: 1.55; }
.sheet-extra { margin: 26px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--mute); }
.sheet-extra li { padding: 10px 0; border-top: 1px solid #eeeeec; display: grid; grid-template-columns: 96px 1fr; gap: 14px; line-height: 1.45; }
.sheet-extra li span:first-child { color: var(--ink); font-weight: 900; letter-spacing: -.02em; }
.sheet-buy { grid-column: 2; grid-row: 2; padding: 14px 46px 40px; background: var(--paper); }
.sheet-buy .btn { width: 100%; height: 58px; font-size: 16px; }
.sheet-buy .btn .ic { font-size: 20px; }
.sheet-x { position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f3f3f1; display: grid; place-items: center; cursor: pointer; font-size: 19px; color: var(--ink); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.sheet-x:hover { background: var(--ink); color: var(--paper); }
.sheet-x:focus { outline: none; }
.sheet-x:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* what moves when a drink opens */
.sheet[open] .sheet-fig img { animation: sheet-pop 1s var(--ease) both; }
@keyframes sheet-pop { from { opacity: 0; transform: translateY(50px) rotate(-4deg) scale(.88); } }
.sheet[open] .sheet-txt > * { animation: rise .7s var(--ease) both; }
.sheet[open] .sheet-txt > :nth-child(2) { animation-delay: .06s; } .sheet[open] .sheet-txt > :nth-child(3) { animation-delay: .12s; }
.sheet[open] .sheet-txt > :nth-child(4) { animation-delay: .18s; } .sheet[open] .sheet-txt > :nth-child(5) { animation-delay: .24s; }
.sheet[open] .sheet-buy { animation: rise .7s var(--ease) .3s both; }
@media (prefers-reduced-motion: reduce) { .sheet[open] .sheet-fig img, .sheet[open] .sheet-txt > *, .sheet[open] .sheet-buy { animation: none; } }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .mhero { padding-top: 110px; min-height: auto; }
  .tools { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .find { width: 100%; }
  .extras { grid-template-columns: 1fr; }
  /* phones and small tablets: a tall sheet from the bottom; the words scroll inside it, the order button stays put,
     lifted clear of the home bar and Safari's floating address bar */
  .sheet { width: 100vw; max-width: 100vw; height: fit-content; max-height: calc(100dvh - 54px); margin: auto 0 0; border-radius: 28px 28px 0 0; transform: translateY(60px); }
  .sheet[open] { transform: none; display: flex; flex-direction: column; }
  @starting-style { .sheet[open] { transform: translateY(60px); } }
  .sheet-in { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .sheet-fig { height: min(36vh, 330px); }
  .sheet-fig img { inset: 26px 20px 4px; width: calc(100% - 40px); height: calc(100% - 30px); }
  .sheet-txt { overflow: visible; padding: 20px 22px 18px; }
  .sheet-buy { flex: none; padding: 12px 22px max(30px, calc(env(safe-area-inset-bottom, 0px) + 24px)); box-shadow: 0 -1px 0 rgba(0,0,0,.05); }
}
@media (max-width: 640px) {
  /* the category's leaf or bean sits in the gap above its heading, never on the item count */
  .cat-sec > .deco { top: -52px; bottom: auto; }
  .feature { grid-template-columns: 1fr 1fr; grid-template-areas: "pop pop" "new cls"; row-gap: 36px; }
  .f-pop { grid-area: pop; } .f-new { grid-area: new; } .f-cls { grid-area: cls; }
  .f-pop .feat-fig { height: 50vh; }
  .feat-fig { height: 34vh; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; }
  .grid .cup-name { font-size: 16px; }
  .grid .cup-meta { gap: 4px; margin-top: 12px; }
  .grid .cup-price { font-size: 14px; }
}
