/* MORROW - site styles. Engine base.css loads first (reset, fluid root, lenis, reveal gates). */

:root {
  --ground: #0c0b0a;
  --bone: #e3dad0;
  --ink: #0c0b0a;
  --amber: #c98a2e;
  --on-dark-mute: rgba(227, 218, 208, 0.66);
  --on-dark-line: rgba(227, 218, 208, 0.26);
  --on-light-mute: rgba(12, 11, 10, 0.64);
  --on-light-line: rgba(12, 11, 10, 0.2);
  --thermal-paper: #f6f2ea;
  --thermal-ink: #1b1917;

  --f-display: 'League Gothic', 'Oswald', 'Arial Narrow', sans-serif;
  --f-script: 'Ms Madi', 'Segoe Script', cursive;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --f-mark: 'Bai Jamjuree', 'Arial', sans-serif;

  --gutter: 3rem;
  /* hero unit: 1rem at the comp (1536x1024), shrinks with short viewports so the board keeps its vertical rhythm */
  --hu: min(1rem, calc(100vh / 62), calc(100vw / 94));
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}
@supports (height: 100svh) {
  :root { --hu: min(1rem, calc(100svh / 62), calc(100vw / 94)); }
}

html { background: var(--ground); color-scheme: dark; }
body {
  background: var(--ground);
  color: var(--bone);
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.menu :focus-visible, .bars :focus-visible, .bar.is-light :focus-visible, .receipt :focus-visible, .skip:focus-visible { outline-color: var(--ink); }
a { text-decoration: none; }
img { height: auto; }

.skip {
  position: fixed; left: var(--gutter); top: 0.75rem; z-index: 200;
  padding: 0.95rem 1rem; min-height: 44px; background: var(--bone); color: var(--ink);
  font: 500 0.875rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.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;
}

/* ------------------------------------------------------------------ */
/* Film (WebGL thin-film glow) + its CSS fallback                      */
/* ------------------------------------------------------------------ */
.film { position: absolute; inset: 0; z-index: 0; background: var(--ground); pointer-events: none; overflow: hidden; }
.film canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s var(--ease-out); }
.film.is-live canvas { opacity: 1; }
.film__fallback { position: absolute; inset: 0; }
.hero .film__fallback {
  background:
    linear-gradient(118deg, transparent 58%, rgba(170, 96, 60, 0.13) 64.5%, rgba(120, 140, 110, 0.08) 66%, rgba(96, 80, 150, 0.07) 67.5%, transparent 71%),
    radial-gradient(38% 52% at 66% 50%, rgba(107, 64, 33, 0.55), rgba(44, 26, 14, 0.35) 55%, transparent 80%),
    var(--ground);
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 40rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__stage {
  /* the product board: the comp's bag+cup span, 768x820 at 1536x1024, right-anchored, centred */
  position: absolute; z-index: 2;
  right: 0; top: 50%;
  width: calc(46.545 * var(--hu));
  height: calc(49.648 * var(--hu));
  transform: translateY(-50%);
  pointer-events: none;
}
.hero__product { position: absolute; margin: 0; perspective: 1100px; }
.hero__float, .hero__lean { display: block; width: 100%; height: 100%; transform-style: preserve-3d; }
.hero__lean { will-change: transform; }
.hero__product img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__product--bag { left: 0; top: 0; width: 60%; height: 100%; z-index: 1; }
.hero__product--cup { left: 40%; top: 25%; width: 60%; height: 62.5%; z-index: 2; }

/* ------------------------------------------------------------------ */
/* Shared type                                                         */
/* ------------------------------------------------------------------ */
.caps {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 78;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0.004em;
}
.script { font-family: var(--f-script); font-weight: 400; text-transform: none; }
.mono-caps { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.07em; }

/* text CTA drawn as an underline + arrow (engine data-cta) */
.cta {
  font-family: var(--f-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  gap: 0.64em;
  min-height: 44px;
  justify-content: center;
  cursor: pointer;
}
.cta .cta-row { gap: 0.9em; }
.cta .cta-label { position: relative; }
.cta .cta-arrow { width: 1.45em; height: 0.8em; }
.cta .cta-arrow svg { width: 100%; height: 100%; }
.cta .cta-underline { width: auto; margin-right: calc(1.45em + 0.9em); height: 1.5px; }
.cta:active .cta-row { transform: translateY(1px); }

/* ------------------------------------------------------------------ */
/* Header: one fixed row for the whole page                            */
/* ------------------------------------------------------------------ */
.bar {
  position: fixed; z-index: 50; left: 0; right: 0; top: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 2.4rem var(--gutter) 0;
  height: 5.3rem;
  color: var(--bone);
  transition: color 0.35s var(--ease-out);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar.is-light { color: var(--ink); }
.bar { transition: color 0.35s var(--ease-out), translate 0.45s var(--ease-out); }
.bar.is-away { translate: 0 -120%; }
/* anywhere below the top the bar carries its own ground, in the tone of the section beneath it */
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 80px; pointer-events: none; }
.bar.is-solid { height: 4.4rem; padding-top: 0; background: var(--ground); box-shadow: 0 1px 0 var(--on-dark-line); }
.bar.is-solid.is-light { background: var(--bone); box-shadow: 0 1px 0 var(--on-light-line); }
.bar { transition: color 0.35s var(--ease-out), translate 0.45s var(--ease-out), background-color 0.35s var(--ease-out), height 0.35s var(--ease-out), padding 0.35s var(--ease-out); }
.bar:focus-within { translate: 0 0; }
.bar__mark {
  justify-self: start;
  font-family: var(--f-mark); font-weight: 700;
  font-size: 2.2rem; line-height: 1; letter-spacing: 0.215em; margin-right: -0.215em;
  display: inline-flex; align-items: center; min-height: 44px;
}
.bar__nav ul { display: flex; gap: 4rem; list-style: none; margin: 0; padding: 0; }
.bar__nav a, .bar__order {
  font-family: var(--f-mono); font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; min-height: 44px; position: relative;
}
.bar__nav a::after {
  content: ''; position: absolute; left: 0; right: 0.06em; bottom: 0.5rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform 0.35s var(--ease-out);
}
.bar__nav a:hover::after, .bar__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.bar__order { justify-self: end; gap: 0.95rem; font-weight: 400; letter-spacing: 0.01em; font-size: 1.14rem; margin-right: 1.05rem; margin-top: -0.2rem; }
.bar__order:hover .bar__order-label { opacity: 0.66; }
.dot { width: 1.06rem; height: 1.06rem; border-radius: 50%; background: var(--amber); display: inline-block; flex: none; }
.bar__toggle { display: none; }

/* phone panel */
.panel {
  position: fixed; inset: 0; z-index: 45; background: var(--ground); color: var(--bone);
  display: flex; flex-direction: column; padding: 6.5rem var(--gutter) 2.5rem;
  visibility: hidden; opacity: 0; transition: opacity 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.panel.is-open { visibility: visible; opacity: 1; transition: opacity 0.3s var(--ease-out); }
.panel nav { border-top: 1px solid var(--on-dark-line); }
.panel a.panel__link {
  display: flex; align-items: baseline; justify-content: space-between; padding: 0.9rem 0;
  border-bottom: 1px solid var(--on-dark-line);
  font-family: var(--f-display); font-variation-settings: 'wdth' 78; text-transform: uppercase; font-size: 3.4rem; line-height: 1;
}
.panel a.panel__link span { font: 400 0.8rem/1 var(--f-mono); letter-spacing: 0.08em; color: var(--on-dark-mute); }
.panel__foot { margin-top: auto; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-mute); display: grid; gap: 0.3rem; }

/* ------------------------------------------------------------------ */
/* Hero copy + info bar                                                */
/* ------------------------------------------------------------------ */
.hero__copy {
  position: absolute; z-index: 3;
  left: var(--gutter); top: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  width: calc(50 * var(--hu));
  pointer-events: none;
}
.hero__copy > * { pointer-events: auto; }
.hero__title { margin: 0; position: relative; display: inline-block; font-size: calc(11.08 * var(--hu)); font-weight: 400; }
.hero__caps {
  display: block;
  font-size: 1em;
  white-space: nowrap;
  margin-left: -0.012em;
  letter-spacing: 0.013em;
}
.hero__script {
  /* the comp's own lettering, traced to a clean bone plate (see .impeccable/plates/prompts/script.provenance.txt) */
  position: absolute; left: -0.0659em; top: calc(100% - 0.0677em);
  width: 4.3646em; height: 1.1155em;
  pointer-events: none;
}
.hero__script img { display: block; width: 100%; height: 100%; }
.hero__lede {
  margin-top: calc(1.2 * 11.08 * var(--hu));
  font-size: calc(1.02 * var(--hu));
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  max-width: 44em;
}
.hero__cta { margin-top: calc(3.3 * var(--hu)); font-size: calc(1.45 * var(--hu)); gap: 0.46em; }
.hero__cta .cta-arrow { transform: translateY(0.12em); }

.hero__info {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 0;
  height: calc(5.58 * var(--hu)); padding-bottom: calc(0.35 * var(--hu));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  font-family: var(--f-mono); font-size: calc(1.15 * var(--hu)); letter-spacing: 0.075em; text-transform: uppercase;
  line-height: 1;
}
.hero__info .hero__rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--on-dark-line); display: block; }
.hero__info p { margin: 0; }
.hero__info .dg-mask { vertical-align: -0.05em; }
.hero__info .hero__loc { justify-self: center; }
.hero__info a { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; }
.hero__info a:hover { color: var(--on-dark-mute); }

/* ------------------------------------------------------------------ */
/* Preloader: a MORROW cup filling                                     */
/* ------------------------------------------------------------------ */
.preloader {
  background: var(--ground); color: var(--bone);
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  padding: 2.4rem var(--gutter) 2.6rem;
}
.preloader__mark {
  position: absolute; left: var(--gutter); top: 2.4rem; height: 2.9rem; display: flex; align-items: center;
  font-family: var(--f-mark); font-weight: 700; font-size: 2.2rem; letter-spacing: 0.215em; line-height: 1;
}
.preloader__text { display: grid; gap: 0.6rem; }
.preloader__line { margin: 0; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-mute); }
.preloader__count {
  margin: 0; font-family: var(--f-display); font-variation-settings: 'wdth' 78; font-size: min(34vh, 22vw); line-height: 0.8;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.preloader__cup { position: relative; height: min(64vh, 78vw); aspect-ratio: 922 / 1024; }
.preloader__cup-ghost { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.16; filter: grayscale(1) brightness(1.4); }
.preloader__cup-fill {
  /* the cup's own silhouette is the vessel: coffee rises inside it, its surface stays level */
  position: absolute; inset: 0; --lvl: 0%;
  -webkit-mask: url(../img/cup.webp) center / 100% 100% no-repeat;
  mask: url(../img/cup.webp) center / 100% 100% no-repeat;
  background:
    linear-gradient(to top, transparent calc(var(--lvl) + 0.2%), #d7b48a calc(var(--lvl) + 0.2%), #d7b48a calc(var(--lvl) + 0.9%), transparent calc(var(--lvl) + 0.9%)),
    linear-gradient(to top, #1f130a 0%, #4b2c15 calc(var(--lvl) * 0.55), #86552d var(--lvl), transparent var(--lvl));
}

/* ------------------------------------------------------------------ */
/* Section scaffolding                                                 */
/* ------------------------------------------------------------------ */
.menu__title, .bars__title, .roastery__title, .order__title { position: relative; display: inline-block; padding-bottom: 0.5em; }
.sec-script {
  /* seated under the caps line like the hero's "morning": only the ascenders touch the caps */
  position: absolute; left: 0.9em; top: calc(100% - 0.83em);
  font-size: 0.86em; line-height: 1; white-space: nowrap; pointer-events: none;
}
.cta--ink { color: var(--ink); }
button.cta { background: none; border: 0; padding: 0; color: inherit; text-align: left; }

/* ------------------------------------------------------------------ */
/* Menu (bone)                                                         */
/* ------------------------------------------------------------------ */
.menu, .bars { background: var(--bone); color: var(--ink); position: relative; }
.menu { padding: 8.2rem var(--gutter) 4.6rem; display: grid; grid-template-columns: 1fr auto; column-gap: 3rem; row-gap: 3.2rem; }
.menu__title, .bars__title, .roastery__title, .order__title { margin: 0; font-weight: 400; font-size: clamp(3.4rem, 7.2vw, 8.6rem); }
.menu__title .caps, .bars__title .caps, .roastery__title .caps, .order__title .caps { display: block; }
.menu__lede, .bars__lede, .roastery__lede, .order__lede {
  margin-top: 1.6rem; max-width: 34rem; font-size: 1rem; line-height: 1.55; letter-spacing: 0.005em;
}
.menu__lede, .bars__lede { color: var(--on-light-mute); }
.menu__cta { align-self: end; justify-self: end; font-size: 1.15rem; padding-bottom: 0.4rem; }
.menu__row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.dish__lean { height: 100%; }
.dish__card {
  position: relative; height: 100%; display: grid; grid-template-rows: 16rem auto 1fr; gap: 0.35rem;
  padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--on-light-line); background: rgba(236, 229, 220, 0.55);
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.dish__card:hover { border-color: rgba(12, 11, 10, 0.55); background: rgba(240, 234, 226, 0.9); }
.dish__stage { position: relative; height: 16rem; display: flex; align-items: flex-end; justify-content: center; overflow: visible; padding-bottom: 0.9rem; }
.dish__img { width: auto; max-width: 86%; max-height: 15rem; object-fit: contain; filter: drop-shadow(0 1.4rem 1.2rem rgba(60, 38, 20, 0.22)); will-change: transform; }
.dish--tall .dish__img { max-height: 20rem; margin-top: -5rem; }
.dish__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 0.1rem 0; border-top: 1px solid var(--on-light-line); }
.dish__name { margin: 0; font: 500 0.98rem/1.25 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.dish__price { margin: 0; font: 500 1.05rem/1 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish__note { margin: 0; font-size: 0.82rem; line-height: 1.45; color: var(--on-light-mute); }

/* the full menu, printed on thermal paper */
.receipt { grid-column: 1 / -1; justify-self: center; width: min(100%, 26rem); }
html.js .receipt {
  position: absolute; z-index: 20; right: calc(var(--gutter) + 1rem); top: 21.5rem;
  width: 23rem; filter: drop-shadow(0 1.8rem 2rem rgba(40, 26, 14, 0.28));
}
.receipt[hidden] { display: none; }
.receipt__paper {
  --edge: 10px;
  background: var(--thermal-paper); color: var(--thermal-ink); padding: 2rem 1.6rem 2.4rem;
  font: 400 0.8rem/1.55 var(--f-mono); letter-spacing: 0.02em; text-transform: uppercase;
  transform: rotate(-3deg); transform-origin: 50% 0;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--edge) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--edge) 51% repeat-x;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--edge) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--edge) 51% repeat-x;
  max-height: calc(100vh - 9rem); overflow: auto; overscroll-behavior: contain;
}
.receipt__paper:focus { outline: none; }
.receipt__brand { margin: 0; text-align: center; font-weight: 700; letter-spacing: 0.18em; font-size: 0.9rem; }
.receipt__sub, .receipt__foot { margin: 0.2rem 0 0; text-align: center; font-size: 0.72rem; color: #5d5852; letter-spacing: 0.08em; }
.receipt__rule { margin: 0.9rem 0; height: 1px; background-image: repeating-linear-gradient(90deg, var(--thermal-ink) 0 5px, transparent 5px 10px); }
.receipt__group { margin: 0.7rem 0 0; }
.receipt__group dt { font-weight: 700; margin-bottom: 0.15rem; letter-spacing: 0.1em; }
.receipt__group div { display: flex; align-items: baseline; gap: 0.5rem; }
.receipt__group dd { margin: 0; }
.receipt__group dd:first-child { flex: 1; display: flex; align-items: baseline; gap: 0.5rem; text-transform: none; }
.receipt__group dd:first-child::after { content: ''; flex: 1; border-bottom: 1px dotted #8a847c; transform: translateY(-0.25em); }
.receipt__group dd:last-child { font-variant-numeric: tabular-nums; }
.receipt__note { margin: 0.35rem 0 0; font-size: 0.74rem; line-height: 1.5; color: #4a4540; text-transform: none; }
.receipt__code { margin: 1.1rem auto 0.4rem; height: 2.6rem; width: 90%; }
.receipt__close {
  position: absolute; right: 0.6rem; bottom: -3.8rem; min-height: 44px; padding: 0 1rem;
  font: 500 0.8rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--on-light-line); background: var(--bone);
}
.receipt__close:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Bars (bone): the dial                                               */
/* ------------------------------------------------------------------ */
.bars {
  padding: 7.5rem var(--gutter) 6.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 0.95fr); column-gap: 3rem; align-items: center;
  border-top: 1px solid var(--on-light-line);
}
.bars__head { align-self: start; padding-top: 1rem; }
.days { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2rem; }
.days button {
  min-width: 44px; min-height: 44px; padding: 0 0.7rem; border: 1px solid var(--on-light-line); background: transparent;
  font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.days button:hover { border-color: var(--ink); }
.days button[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.dial { position: relative; width: 100%; max-width: 36rem; aspect-ratio: 1; justify-self: center; touch-action: none; }
.dial__svg { width: 100%; height: 100%; overflow: visible; }
.dial__hit { position: absolute; inset: 0; border-radius: 50%; cursor: grab; }
.dial__hit:active { cursor: grabbing; }
.dial__hit:focus-visible { outline-offset: -6px; }
.dial__readout { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dial__time { margin: 0; font-family: var(--f-display); font-variation-settings: 'wdth' 78; font-size: clamp(3.6rem, 6vw, 6.4rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.dial__count { margin: 0.5rem 0 0; font: 500 0.8rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-light-mute); }
.bars__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--on-light-line); }
.bar-item { padding: 1.3rem 0 1.4rem; border-bottom: 1px solid var(--on-light-line); display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: 0.35rem; }
.bar-item__name { margin: 0; grid-column: 1; grid-row: 1; font-family: var(--f-display); font-variation-settings: 'wdth' 78; font-weight: 400; text-transform: uppercase; font-size: 2.6rem; line-height: 0.95; }
.bar-item__status { grid-column: 2; grid-row: 1; margin: 0; align-self: center; display: inline-flex; align-items: center; gap: 0.5rem; font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.bar-item__status .dot { width: 0.6rem; height: 0.6rem; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.bar-item.is-open .bar-item__status .dot { background: var(--amber); box-shadow: none; }
.bar-item:not(.is-open) .bar-item__name { color: rgba(12, 11, 10, 0.42); }
.bar-item__addr, .bar-item__hours { grid-column: 1 / -1; margin: 0; font-style: normal; font-size: 0.86rem; line-height: 1.5; color: var(--on-light-mute); }
.bar-item__hours { font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: 0.02em; }

/* ------------------------------------------------------------------ */
/* Roastery (dark)                                                     */
/* ------------------------------------------------------------------ */
.roastery { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; align-items: center; padding: 8rem var(--gutter); }
.roastery .film__fallback { background: radial-gradient(40% 55% at 70% 62%, rgba(107, 64, 33, 0.5), rgba(44, 26, 14, 0.3) 55%, transparent 80%), var(--ground); }
.roastery__beans { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.roastery__cup { position: absolute; z-index: 3; margin: 0; right: 13%; bottom: -9%; width: min(30vw, 30rem); pointer-events: none; }
.roastery__cup img { width: 100%; height: auto; filter: drop-shadow(0 2.5rem 3rem rgba(0, 0, 0, 0.55)); }
.roastery__copy { position: relative; z-index: 4; max-width: 44rem; }
.roastery__lede { color: var(--on-dark-mute); max-width: 31rem; }
.facts { margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--on-dark-line); max-width: 40rem; }
.facts div { padding: 1rem 1.2rem 0 0; }
.facts div + div { padding-left: 1.2rem; border-left: 1px solid var(--on-dark-line); }
.facts dt { font: 500 0.72rem/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-mute); }
.facts dd { margin: 0.45rem 0 0; font-size: 0.92rem; line-height: 1.4; }

/* ------------------------------------------------------------------ */
/* Order ahead (dark): the printer feeds the ticket                     */
/* ------------------------------------------------------------------ */
.order { position: relative; background: var(--ground); }
.order__sticky {
  position: relative; height: 100vh; height: 100svh; min-height: 44rem; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 4rem;
  padding: 0 var(--gutter);
  background: radial-gradient(34% 42% at 72% 16%, rgba(120, 78, 44, 0.28), transparent 70%), var(--ground);
}
.order__copy { grid-column: 1; grid-row: 1; max-width: 32rem; }
.order__lede { color: var(--on-dark-mute); }
.order__cta { margin-top: 2.4rem; font-size: 1.3rem; color: var(--bone); }
.order__status { margin: 1.2rem 0 0; min-height: 1.5em; font-size: 0.85rem; color: var(--on-dark-mute); }
.order__machine { grid-column: 2; grid-row: 1; justify-self: center; align-self: start; position: relative; width: min(27rem, 40vw); margin-top: 8.5rem; }
.order__printer { position: relative; z-index: 2; width: 100%; height: auto; display: block; filter: drop-shadow(0 1.6rem 2rem rgba(0, 0, 0, 0.6)); }
/* the slot line sits at 80.5% of the printer art's height; the paper window starts there */
.order__slot { position: absolute; z-index: 3; left: 11%; right: 11%; top: 80.5%; height: 36rem; overflow: hidden; }
.ticket { --p: 1; transform: translate3d(0, calc(-100% + var(--p) * 100%), 0); will-change: transform; filter: drop-shadow(0 calc(var(--p) * 1.2rem) calc(var(--p) * 1.4rem) rgba(0, 0, 0, 0.45)); }
.ticket__paper {
  --edge: 9px;
  background: var(--thermal-paper); color: var(--thermal-ink); padding: 1.4rem 1.3rem 1.8rem;
  font: 400 0.74rem/1.5 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--edge) 100% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--edge) 100% repeat-x;
}
.ticket__brand { margin: 0; text-align: center; font: 700 1rem/1 var(--f-mark); letter-spacing: 0.34em; }
.ticket__small { margin: 0.35rem 0 0; font-size: 0.72rem; text-align: center; color: #57524c; }
.ticket__rule { margin: 0.7rem 0; height: 1px; background-image: repeating-linear-gradient(90deg, var(--thermal-ink) 0 5px, transparent 5px 10px); }
.ticket__row { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.ticket__row--total { font-weight: 700; font-size: 0.9rem; }
.ticket__big { margin: 0.9rem 0 0; font: 400 1.9rem/0.9 var(--f-display); font-variation-settings: 'wdth' 78; text-align: center; }
.ticket__bars { margin: 0.9rem auto 0; height: 2.2rem; display: flex; align-items: flex-end; gap: 1px; justify-content: center; }
.ticket__bars span { display: block; height: 100%; background: var(--thermal-ink); transform-origin: bottom center; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.foot { background: var(--ground); color: var(--bone); padding: 5rem var(--gutter) 2.4rem; border-top: 1px solid var(--on-dark-line); position: relative; }
.foot__top { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; flex-wrap: wrap; }
.foot__mark { font: 700 clamp(2.6rem, 6vw, 5.6rem)/1 var(--f-mark); letter-spacing: 0.26em; margin-right: -0.26em; }
.foot__line { margin: 0; color: var(--on-dark-mute); font-size: 0.9rem; }
.foot__grid { margin-top: 3.4rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; border-top: 1px solid var(--on-dark-line); padding-top: 1.8rem; }
.foot__col h3 { margin: 0 0 0.6rem; font: 500 0.78rem/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-mute); }
.foot__col address, .foot__col p { margin: 0; font-style: normal; font-size: 0.9rem; line-height: 1.65; font-variant-numeric: tabular-nums; }
.foot__col a { display: inline-block; min-height: 44px; line-height: 44px; margin: -0.4rem 0; text-decoration: underline; text-decoration-color: var(--on-dark-line); text-underline-offset: 0.3em; }
.foot__col a:hover { text-decoration-color: currentColor; }
.foot__base { margin-top: 3rem; display: flex; gap: 2rem; justify-content: space-between; align-items: center; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-mute); }
.foot__base p { margin: 0; margin-right: auto; }
.foot__base a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__base a:hover { color: var(--bone); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1023.98px) {
  :root { --gutter: 1.5rem; }
  .bar { grid-template-columns: 1fr auto auto; column-gap: 1rem; padding-top: 1.1rem; height: 4.6rem; }
  .bar.is-solid { padding-top: 0; height: 3.9rem; }
  .bar__nav { display: none; }
  .bar__mark { font-size: 1.5rem; letter-spacing: 0.24em; margin-right: 0; }
  .bar__order { margin-right: 0; font-size: 0.9rem; }
  .bar__toggle {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.2rem 0 0.6rem;
    font: 500 0.9rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: inherit;
  }
  .bar.is-panel { color: var(--bone); }
  .panel { padding-top: 6rem; }

  .hero { height: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 7rem var(--gutter) 0; }
  .hero__copy { position: relative; left: auto; top: auto; bottom: auto; width: auto; display: block; order: 1; }
  .hero__title { font-size: min(19.2vw, 9.2rem); }
  .hero__lede { margin-top: calc(1.18 * min(19.2vw, 9.2rem)); font-size: 1rem; max-width: 30rem; }
  .hero__cta { font-size: 1.2rem; margin-top: 1.4rem; }
  .hero__stage { order: 2; position: relative; right: auto; top: auto; transform: none; width: min(100%, 30rem); height: auto; aspect-ratio: 768 / 819; margin: 1.5rem 0 0 auto; }
  .hero__info { order: 3; position: relative; left: auto; right: auto; height: auto; margin-top: 1.5rem; padding: 1.2rem 0 1.4rem; grid-template-columns: 1fr auto; row-gap: 0.4rem; font-size: 0.85rem; }
  .hero__info .hero__loc { justify-self: end; }
  .hero__info a { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
  .hero .film { position: absolute; }

  .menu { grid-template-columns: 1fr; padding: 7rem var(--gutter) 4rem; row-gap: 2rem; }
  .menu__cta { justify-self: start; }
  .menu__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.js .receipt, .receipt { position: relative; right: auto; top: auto; grid-column: 1 / -1; width: min(100%, 26rem); justify-self: center; margin-top: 3.6rem; }
  .receipt__paper { transform: none; max-height: none; }
  .receipt__close { bottom: -3.6rem; right: 0; }

  .bars { grid-template-columns: 1fr; row-gap: 3rem; padding: 6rem var(--gutter) 5rem; }
  .dial { max-width: 30rem; }

  .roastery { flex-direction: column; align-items: flex-start; padding: 7rem var(--gutter) 24rem; }
  .roastery__cup { width: min(56vw, 22rem); right: 8%; bottom: -12%; }

  .order { height: auto; }
  .order__sticky { position: relative; height: auto; grid-template-columns: 1fr; padding: 6rem var(--gutter) 5rem; row-gap: 2rem; overflow: visible; }
  .order__machine { grid-column: 1; grid-row: 1; width: min(24rem, 86vw); margin-top: 0; }
  .order__slot { height: 30rem; }
  .order__machine { margin-bottom: 29rem; }
  .order__copy { grid-row: 2; }

  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar__order { display: none; }
  .hero { padding-top: 6.2rem; }
  .hero__lede { font-size: 0.95rem; }
  .menu__title, .bars__title, .roastery__title, .order__title { font-size: min(17vw, 5.4rem); }
  .menu__row { grid-template-columns: 1fr; gap: 0.8rem; }
  .dish__card { min-height: 0; grid-template-columns: 7rem 1fr; grid-template-rows: auto auto; column-gap: 1rem; padding: 0.9rem; align-items: center; }
  .dish__stage { grid-row: 1 / 3; height: auto; min-height: 8.5rem; padding-bottom: 0; }
  .dish__img, .dish--tall .dish__img { max-height: 8.5rem; margin: 0; }
  .dish__meta { flex-direction: column; align-items: flex-start; gap: 0.3rem; border-top: 0; padding-top: 0; align-self: end; }
  .dish__note { align-self: start; }
  .days button { flex: 1 0 calc(25% - 0.4rem); }
  .bar-item__name { font-size: 2.1rem; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--on-dark-line); }
  .facts div { padding: 0.9rem 0; }
  .roastery { padding-bottom: 24rem; }
  .roastery__cup { width: 60vw; right: 12%; bottom: 1.5rem; }
  .foot__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .foot__base { flex-wrap: wrap; gap: 0.5rem 1.4rem; }
  .foot__base p { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ticket { --p: 1; }
  .panel { transition: none; }
}
