/* ------------------------------------------------------------------
   Rise 'N Grind — tokens
   ------------------------------------------------------------------ */
:root {
  --navy: #1B2440;
  --navy-deep: #10172B;
  --steel: #71767B;
  --steel-light: #C4C8CC;
  --espresso: #2A1C16;
  --shiplap: #F7F4EE;
  --shiplap-2: #ECE7DD;
  --sky: #A9CFE4;
  --grinder: #8C6B4F;
  --crema: #C9975C;
  --ink: #1E1915;
  --ink-soft: #5B534C;
  --floral: #5F7FB3;

  --font-sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-voice: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gutter: clamp(1rem, 5vw, 5.5rem);
  --measure: 62ch;
  --nav-h: 4.25rem;

  --page: var(--navy-deep);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--page);
  color: var(--shiplap);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  line-height: 1.55;
  font-variation-settings: "opsz" 14, "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, ul, ol { margin: 0; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: .6rem 1rem; background: var(--shiplap); color: var(--ink);
  border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------
   Type
   ------------------------------------------------------------------ */
h1, h2, h3 { font-family: var(--font-sans); font-variation-settings: "opsz" 96, "wdth" 96; }

h2 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4.25rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.025em;
  max-width: 22ch; text-wrap: balance;
}
h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }

.voice {
  font-family: var(--font-voice); font-style: italic; font-weight: 400;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2.1rem); line-height: 1.15;
  margin-bottom: .9rem;
}
[data-theme="light"] .voice { color: var(--floral); }
[data-theme="dark"] .voice { color: var(--sky); }

.wordmark {
  font-weight: 800; letter-spacing: -.01em; text-transform: uppercase;
  font-variation-settings: "opsz" 96, "wdth" 90;
  text-shadow: .08em .08em 0 var(--sky);
}

p + p { margin-top: 1em; }
section p:not(.voice):not(.hero__lede):not(.rise__line) { max-width: var(--measure); }

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--light { background: var(--shiplap); color: var(--ink); border-color: var(--shiplap); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--shiplap); border-color: rgba(247, 244, 238, .45); }
.btn--ghost:hover { border-color: var(--shiplap); }
.btn--ink { background: var(--ink); color: var(--shiplap); border-color: var(--ink); }
.btn--ink:hover { background: var(--navy); border-color: var(--navy); }

/* ------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  color: var(--shiplap);
  transition: color .4s ease, background-color .4s ease;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(16, 23, 43, .55), transparent);
  opacity: 1; transition: opacity .4s ease;
}
html[data-nav="light"] .nav { color: var(--ink); }
html[data-nav="light"] .nav::before { opacity: 0; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 2rem; height: 2rem; }
.brand .wordmark { font-size: 1.05rem; }

.nav__links { margin-left: auto; display: flex; gap: clamp(.75rem, 2vw, 1.75rem); }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .85; }
.nav__links a:hover { opacity: 1; }

.status {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  border: 1px solid currentColor; font-size: .85rem; font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.status__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--steel-light); }
.status[data-open="true"] .status__dot { background: #58c17b; box-shadow: 0 0 0 4px rgba(88, 193, 123, .25); }
.status[data-open="false"] .status__dot { background: var(--crema); }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .status { margin-left: auto; }
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--navy-deep); color: var(--shiplap);
  display: grid; place-items: center;
}
.hero__media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero__video {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background: var(--navy-deep);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(rgba(16, 23, 43, .38), rgba(16, 23, 43, .38)),
    radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(16, 23, 43, .55) 100%),
    linear-gradient(to top, rgba(16, 23, 43, .94) 0%, rgba(16, 23, 43, .4) 40%, transparent 70%);
}

/* Navy shutter that parts top and bottom to reveal the film. Only shown when JS runs so it never traps the page. */
.hero__shutter {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: none; grid-template-rows: 1fr 1fr;
}
html.js .hero__shutter { display: grid; }
.hero__shutter span { background: var(--navy-deep); }
.hero__shutter span:first-child { transform-origin: 50% 0; }
.hero__shutter span:last-child { transform-origin: 50% 100%; }

.hero__toggle {
  position: absolute; z-index: 5;
  right: calc(var(--gutter) + 1.75rem); bottom: clamp(2.5rem, 9vh, 6.5rem);
  width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%;
  border: 1px solid rgba(247, 244, 238, .4); background: rgba(16, 23, 43, .35);
  color: var(--shiplap); cursor: pointer; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.hero__toggle:hover { background: rgba(16, 23, 43, .6); border-color: var(--shiplap); }
.hero__toggle:active { transform: scale(.96); }
.hero__toggle svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.hero__toggle .ico-play { display: none; }
.hero__toggle[data-playing="false"] .ico-play { display: block; }
.hero__toggle[data-playing="false"] .ico-pause { display: none; }

.hero__copy {
  position: absolute; z-index: 4;
  left: var(--gutter); right: var(--gutter); bottom: clamp(2.5rem, 9vh, 6.5rem);
  max-width: 46rem;
}
.hero__place { margin-bottom: .6rem; }
.hero__title {
  font-size: clamp(3.4rem, 2rem + 9vw, 9.5rem);
  font-weight: 800; line-height: .92; letter-spacing: -.04em;
  font-variation-settings: "opsz" 96, "wdth" 92;
  display: flex; flex-wrap: wrap; gap: 0 .22em;
}
.hero__title .w { display: inline-block; overflow: hidden; padding: 0 .08em .06em; margin: 0 -.08em -.06em; }
.hero__title .w__in { display: inline-block; }
.hero__lede { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: rgba(247, 244, 238, .85); }
.hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__scroll {
  position: absolute; z-index: 4; right: var(--gutter); bottom: clamp(2.5rem, 9vh, 6.5rem);
  width: 1px; height: 4.5rem; background: rgba(247, 244, 238, .25); overflow: hidden;
}
.hero__scroll span {
  position: absolute; inset: 0; background: var(--sky);
  transform-origin: top; animation: scrollcue 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 760px) {
  .hero { place-items: start center; }
  .hero__copy { bottom: 2rem; }
  .hero__scroll { display: none; }
  .hero__toggle { right: 1rem; bottom: auto; top: calc(var(--nav-h) + .75rem); width: 2.5rem; height: 2.5rem; }
}

/* Headline demo switcher. Temporary: remove with js/headline-demo.js once the line is chosen. */
.hero__br { flex-basis: 100%; height: 0; }
.hero__title--small { font-size: clamp(2.6rem, 1.4rem + 6.2vw, 6.75rem); }
.hero__copy--wide { max-width: 60rem; }
.hswitch {
  position: absolute; z-index: 5; left: var(--gutter); top: calc(var(--nav-h) + 1rem);
  display: inline-flex; align-items: center; gap: .15rem; padding: .25rem .3rem;
  border-radius: 999px; border: 1px solid rgba(247, 244, 238, .35); background: rgba(16, 23, 43, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .85rem; font-weight: 600; color: var(--shiplap);
  opacity: 0; animation: hswitchin .6s ease 2.1s forwards;
}
.hswitch[hidden] { display: none; }
.hswitch__label { padding: 0 .5rem; font-variant-numeric: tabular-nums; }
.hswitch__btn {
  width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%;
  background: rgba(247, 244, 238, .12); color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background-color .18s ease;
}
.hswitch__btn:hover { background: rgba(247, 244, 238, .25); }
@keyframes hswitchin { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hswitch { animation: none; opacity: 1; } }

/* ------------------------------------------------------------------
   Rise (pinned sunrise)
   ------------------------------------------------------------------ */
.rise { position: relative; color: var(--shiplap); }
.rise__pin {
  position: relative; height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
}
.rise__sun {
  position: absolute; left: 50%; top: 100%; width: 110vmin; height: 110vmin; border-radius: 50%;
  transform: translate(-50%, 0);
  background: radial-gradient(circle at 50% 40%, var(--crema) 0%, rgba(201, 151, 92, .55) 28%, rgba(169, 207, 228, .35) 55%, transparent 70%);
  filter: blur(18px); opacity: .9; pointer-events: none;
}
.rise__line {
  position: absolute; left: var(--gutter); right: var(--gutter);
  font-size: clamp(2.2rem, 1.4rem + 5vw, 6rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.03em;
  font-variation-settings: "opsz" 96, "wdth" 94;
  text-wrap: balance;
}
.rise__line em { font-family: var(--font-voice); font-weight: 400; font-style: italic; letter-spacing: 0; }
.rise__line--2 { opacity: 0; }

/* ------------------------------------------------------------------
   Shared light sections
   ------------------------------------------------------------------ */
.building, .rooms, .care, .menu, .visit { background: var(--shiplap); color: var(--ink); }
.building p, .care p, .menu p, .visit p { color: var(--ink-soft); }
.building h2, .care h2, .menu h2, .visit h2, .rooms h2 { color: var(--ink); }

/* ------------------------------------------------------------------
   Building
   ------------------------------------------------------------------ */
.building {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 7rem);
  align-items: center; padding: clamp(5rem, 12vh, 9rem) var(--gutter);
}
.building__text h2 { margin-bottom: 1.5rem; }
.facts {
  margin-top: 2.25rem; display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem 2.5rem;
  justify-content: start; padding-top: 1.5rem; border-top: 1px solid rgba(30, 25, 21, .18);
}
.facts dt { font-size: .85rem; color: var(--ink-soft); }
.facts dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.05rem; }
.building__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.building__photo figcaption { margin-top: .75rem; font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .building { grid-template-columns: 1fr; }
  .building__photo { order: -1; max-width: 26rem; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------
   Rooms (horizontal)
   ------------------------------------------------------------------ */
.rooms { position: relative; overflow: hidden; }
.rooms__pin { height: 100svh; padding-top: var(--nav-h); display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 4vh, 3rem); }
.rooms__head { padding: 0 var(--gutter); }
.rooms__track { display: flex; align-items: flex-end; gap: clamp(1rem, 2.5vw, 2.5rem); padding: 0 var(--gutter); will-change: transform; }
.room { flex: 0 0 auto; width: min(64vw, 820px); }
.room--tall { width: min(38vw, 460px); }
.room img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: var(--shiplap-2); }
.room--tall img { aspect-ratio: 4 / 5; }
.room figcaption { display: flex; flex-direction: column; gap: .15rem; margin-top: .85rem; max-width: 34rem; }
.room figcaption strong { font-size: 1.1rem; }
.room figcaption span { color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 900px) {
  .rooms__pin { height: auto; padding: clamp(4rem, 10vh, 7rem) 0; }
  .rooms__track {
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding-bottom: .5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .rooms__track::-webkit-scrollbar { display: none; }
  .room, .room--tall { width: 82vw; scroll-snap-align: start; }
  .room--tall img { aspect-ratio: 16 / 10; }
}

/* ------------------------------------------------------------------
   Coffee
   ------------------------------------------------------------------ */
.coffee {
  background: var(--espresso); color: var(--shiplap);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding: clamp(5rem, 14vh, 10rem) var(--gutter);
}
.coffee__text h2 { font-size: clamp(3rem, 2rem + 6vw, 7rem); color: var(--shiplap); margin-bottom: 1.25rem; }
.coffee__text p { color: rgba(247, 244, 238, .8); max-width: 38ch; }
.coffee__photo img { width: 100%; object-fit: cover; border-radius: 6px; }
.coffee__photo--beans img { aspect-ratio: 3 / 4; }
.coffee__photo--cup { align-self: end; }
.coffee__photo--cup img { aspect-ratio: 4 / 5; }

@media (max-width: 900px) {
  .coffee { grid-template-columns: 1fr 1fr; }
  .coffee__text { grid-column: 1 / -1; order: -1; }
}

/* ------------------------------------------------------------------
   Behind the counter (Barista Rush)
   ------------------------------------------------------------------ */
.counter { background: var(--navy); color: var(--shiplap); padding: clamp(5rem, 12vh, 9rem) var(--gutter); }
.counter__intro { max-width: 46rem; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.counter__intro h2 { margin-bottom: 1rem; }
.counter__intro p { color: rgba(247, 244, 238, .8); }

.rush {
  position: relative; border-radius: 16px; overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, rgba(169, 207, 228, .14), transparent 60%), var(--navy-deep);
  border: 1px solid rgba(169, 207, 228, .18);
  --alert: #D9643A; --ok: #58C17B; --paper: #fbf8f1;
}
.rush__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.rush__play { position: relative; }
.rush[data-phase="done"] .rush__play { display: none; }
.rush kbd { font-family: inherit; }

/* Status bar */
.rush__bar {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem);
  padding: .85rem 1.25rem; border-bottom: 1px solid rgba(169, 207, 228, .14);
  font-variant-numeric: tabular-nums;
}
.rush__clock { display: grid; gap: .35rem; min-width: 6.5rem; }
.rush__time { font-weight: 700; font-size: 1.15rem; line-height: 1; letter-spacing: -.01em; }
.rush__clockbar { display: block; height: 3px; border-radius: 2px; background: rgba(247, 244, 238, .12); overflow: hidden; }
.rush__clockbar i { display: block; height: 100%; width: 100%; background: var(--sky); transform-origin: left; transform: scaleX(0); }
.rush__stat { display: grid; gap: .25rem; line-height: 1; }
.rush__stat small { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(247, 244, 238, .5); }
.rush__stat > span { font-weight: 700; font-size: 1.05rem; }
.rush__strikes > span { display: flex; gap: .3rem; align-items: center; height: 1.05rem; }
.rush__strikes i { width: .8rem; height: .8rem; border-radius: 50%; border: 1.5px solid rgba(247, 244, 238, .4); transition: background-color .2s ease, border-color .2s ease; }
.rush__strikes i.is-hit { background: var(--alert); border-color: var(--alert); }
.rush__sound {
  margin-left: auto; width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%;
  border: 1px solid rgba(247, 244, 238, .3); background: transparent; display: grid; place-items: center; cursor: pointer;
}
.rush__sound:hover { border-color: var(--shiplap); }
.rush__sound svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rush__sound .snd-off { display: none; }
.rush__sound[aria-pressed="false"] .snd-off { display: block; }
.rush__sound[aria-pressed="false"] .snd-on { display: none; }

/* The line */
.rush__floor {
  position: relative; height: clamp(10rem, 22vw, 11rem); margin: 0 1.25rem;
  border-bottom: 2px solid rgba(169, 207, 228, .28);
  background: linear-gradient(to top, rgba(247, 244, 238, .05), transparent 35%);
}
.rush__line { position: absolute; inset: 0 8% 0 0; }
.rush__door {
  position: absolute; right: 0; top: 1rem; bottom: 0; width: 7%; min-width: 2.25rem;
  border: 2px solid rgba(247, 244, 238, .14); border-bottom: 0; border-radius: 999px 999px 0 0;
  background: linear-gradient(to bottom, rgba(169, 207, 228, .14), transparent);
}
.rush__door span {
  position: absolute; left: 50%; bottom: .5rem; transform: translateX(-50%);
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 244, 238, .35);
}
.cust {
  position: absolute; bottom: 0; left: calc(var(--i, 0) * 20.5%); width: 18%;
  display: grid; justify-items: center; gap: .25rem;
  transition: left .45s cubic-bezier(.2, .8, .3, 1), opacity .35s ease, transform .35s ease;
}
.cust.is-new { left: 104%; transition: none; }
.cust__ticket {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; max-width: 100%;
  padding: .2rem .3rem; background: var(--paper); border-radius: 3px; color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.cust__ticket svg { width: .95rem; height: .95rem; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cust__face { width: clamp(2.6rem, 7vw, 4.25rem); height: auto; border-radius: 50% 50% 10px 10px; transition: box-shadow .25s ease; }
.cust.is-front .cust__face { box-shadow: 0 0 0 3px var(--sky); }
.cust__name { font-size: .72rem; font-weight: 600; color: rgba(247, 244, 238, .75); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cust__pat { width: 84%; height: 4px; border-radius: 2px; background: rgba(247, 244, 238, .12); overflow: hidden; margin-bottom: .5rem; }
.cust__pat i { display: block; height: 100%; width: 100%; background: var(--ok); transform-origin: left; }
.cust[data-pat="warn"] .cust__pat i { background: var(--crema); }
.cust[data-pat="bad"] .cust__pat i { background: var(--alert); }
.cust .m { display: none; }
.cust[data-mood="happy"] .m-happy, .cust[data-mood="flat"] .m-flat, .cust[data-mood="mad"] .m-mad { display: block; }
.cust.is-served { opacity: 0; transform: translateY(-16px); }
.cust.is-gone { opacity: 0; transform: translateX(36px); }
.is-shake { animation: rushshake .35s ease; }
@keyframes rushshake {
  0%, 100% { translate: 0 0; }
  20% { translate: -5px 0; }
  40% { translate: 5px 0; }
  60% { translate: -3px 0; }
  80% { translate: 3px 0; }
}

/* The bench: ticket, cup, serve */
.rush__bench {
  display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem); padding: 1.25rem;
}
.ticket {
  background: var(--paper); color: #2a2522; padding: 1rem 1.1rem 1.1rem;
  font-family: "Courier New", Courier, ui-monospace, monospace; font-size: .85rem; line-height: 1.35;
  --zz: 7px;
  -webkit-mask: linear-gradient(#000, #000) bottom / 100% calc(100% - var(--zz)) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) top / 14px var(--zz) repeat-x;
  mask: linear-gradient(#000, #000) bottom / 100% calc(100% - var(--zz)) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) top / 14px var(--zz) repeat-x;
}
.ticket p { max-width: none; }
.ticket__who { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.ticket__drink { font-weight: 700; font-size: 1.2rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .04em; margin-top: .25rem; }
.ticket__icons { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; min-height: 1.4rem; }
.ticket__icons svg { width: 1.4rem; height: 1.4rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ticket__say { font-style: italic; margin-top: .45rem; opacity: .7; min-height: 1.35em; }
.cup { position: relative; width: clamp(6rem, 12vw, 8rem); }
.cup__svg { width: 100%; height: auto; display: block; }
.cup__chips { position: absolute; left: 20%; right: 20%; top: 36%; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; }
.cup__chips svg {
  width: 1.35rem; height: 1.35rem; padding: .18rem; border-radius: 50%;
  background: var(--sky); stroke: var(--navy-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  animation: chipin .18s ease;
}
.cup__chips svg.is-bad { background: var(--alert); stroke: var(--shiplap); }
@keyframes chipin { from { transform: scale(.4); opacity: 0; } }
.rush__serve { display: grid; gap: .6rem; }
.rush__btn kbd { font-size: .68rem; opacity: .55; margin-left: .4rem; padding: .12rem .4rem; border: 1px solid currentColor; border-radius: 4px; line-height: 1; }
.rush__serve .btn--light.is-ready { background: var(--sky); border-color: var(--sky); box-shadow: 0 0 0 5px rgba(169, 207, 228, .22); }
.btn.is-pressed { transform: translateY(1px) scale(.97); }

/* Stations */
.rush__stations { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; padding: 0 1.25rem 1rem; }
.st {
  position: relative; display: grid; justify-items: center; align-content: start; gap: .35rem;
  padding: .9rem .4rem 1rem; border-radius: 12px;
  background: rgba(247, 244, 238, .06); border: 1px solid rgba(169, 207, 228, .18); color: var(--shiplap);
  cursor: pointer; overflow: hidden;
  transition: transform .08s ease, background-color .15s ease, border-color .15s ease;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.st:hover { background: rgba(247, 244, 238, .1); }
.st:active, .st.is-pressed { transform: scale(.94); }
.st > svg { width: 2rem; height: 2rem; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.st__label { font-size: .8rem; font-weight: 600; line-height: 1; }
.st kbd { position: absolute; top: .4rem; right: .5rem; font-size: .65rem; opacity: .45; }
.st__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sky); transform-origin: left; transform: scaleX(0); }
.st[data-busy="1"] { background: rgba(169, 207, 228, .16); border-color: rgba(169, 207, 228, .5); }
.st__pot { display: flex; gap: 3px; }
.st__pot i { width: 7px; height: 7px; border-radius: 50%; background: rgba(247, 244, 238, .18); transition: background-color .2s ease; }
.st__pot i.is-full { background: var(--crema); }

.rush__feed { min-height: 1.6em; padding: 0 1.25rem 1.1rem; font-weight: 600; color: var(--sky); }
.rush__feed.is-fresh { animation: feedin .3s ease; }
@keyframes feedin { from { opacity: 0; transform: translateY(4px); } }

/* Overlay: clock in, paused */
.rush__overlay {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 1.5rem;
  background: rgba(16, 23, 43, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.rush__card { text-align: center; max-width: 34rem; display: grid; gap: 1rem; justify-items: center; }
.rush__card h3 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.rush__card p { color: rgba(247, 244, 238, .82); }
.rush__card .rush__keys { font-size: .85rem; color: rgba(247, 244, 238, .55); }
.rush__card .rush__best { font-size: .9rem; color: var(--sky); font-weight: 600; }

@media (hover: none) and (pointer: coarse) {
  .st kbd, .rush__btn kbd, .rush__keys { display: none; }
}
@media (max-width: 760px) {
  .rush__bar { gap: 1rem; padding: .7rem .9rem; }
  .rush__clock { min-width: 5.5rem; }
  .rush__floor { margin: 0 .9rem; }
  .rush__bench { grid-template-columns: minmax(0, 1fr) auto; gap: .9rem; padding: .9rem; }
  .rush__serve { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .rush__stations { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding: 0 .9rem .9rem; }
  .st { padding: .75rem .3rem .85rem; }
  .cust__name { font-size: .62rem; }
  .rush__feed { padding: 0 .9rem .9rem; font-size: .92rem; }
}
@media (max-width: 420px) {
  .rush__stat small { display: none; }
  .rush__strikes > span { height: auto; }
}

/* Receipt */
.receipt { display: grid; justify-items: center; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem); }
.receipt[hidden] { display: none; }
.receipt__slot { width: min(100%, 22rem); overflow: hidden; padding-bottom: 12px; }
.receipt__paper {
  background: var(--paper); color: #2a2522; padding: 1.5rem 1.4rem 2rem;
  font-family: "Courier New", Courier, ui-monospace, monospace; font-size: .92rem; line-height: 1.45; text-align: center;
  --zz: 9px;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--zz)) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 16px var(--zz) repeat-x;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--zz)) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 16px var(--zz) repeat-x;
  transform: translateY(-104%);
  transition: transform 1.6s steps(26);
}
.receipt__paper.is-printed { transform: translateY(0); }
.receipt__paper p { max-width: none; }
.receipt__paper p + p, .receipt__paper table { margin-top: .6rem; }
.receipt__brand { font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.receipt__rule { border: 0; border-top: 2px dashed rgba(42, 37, 34, .3); margin: .9rem 0; }
.receipt__lines { width: 100%; border-collapse: collapse; }
.receipt__lines td { padding: .1rem 0; }
.receipt__lines td:first-child { text-align: left; }
.receipt__lines td:last-child { text-align: right; }
.receipt__total { font-weight: 700; font-size: 1.1rem; }
.receipt__rank { font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; margin-top: .3rem; }
.receipt__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ------------------------------------------------------------------
   Care / Stay
   ------------------------------------------------------------------ */
.care {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 7rem);
  align-items: center; padding: clamp(5rem, 12vh, 9rem) var(--gutter);
}
.care__list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1.1rem; max-width: var(--measure); }
.care__list li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
.care__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--sky); }
.care__list strong { color: var(--ink); }
.care__stay { margin-top: 3rem; margin-bottom: 1rem; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.care__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }

@media (max-width: 900px) {
  .care { grid-template-columns: 1fr; }
  .care__photo { max-width: 24rem; }
}

/* ------------------------------------------------------------------
   Menu
   ------------------------------------------------------------------ */
.menu { padding: clamp(5rem, 12vh, 9rem) var(--gutter); background: var(--shiplap-2); }
.menu__head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.menu__head h2 { margin-bottom: .9rem; }
.menu__note { font-size: .95rem; }
.menu__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 4rem); }
.menu__cat h3 { padding-bottom: .75rem; border-bottom: 2px solid var(--ink); margin-bottom: .35rem; }
.menu__item { display: grid; gap: .15rem; padding: .7rem 0; border-bottom: 1px solid rgba(30, 25, 21, .12); }
.menu__item-name { font-weight: 600; }
.menu__item-desc { font-size: .92rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------
   Visit
   ------------------------------------------------------------------ */
.visit { padding: clamp(5rem, 12vh, 9rem) var(--gutter); }
.visit__head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.shop { display: grid; gap: .75rem; align-content: start; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.shop h3 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.shop__tag { font-family: var(--font-voice); font-style: italic; font-size: 1.3rem; color: var(--floral); margin-top: -.5rem; }
.shop address { font-style: normal; font-size: 1.1rem; }
.shop__phone { font-weight: 600; text-decoration: none; width: fit-content; border-bottom: 1px solid rgba(30, 25, 21, .3); }
.hours { border-collapse: collapse; margin-top: .5rem; width: 100%; max-width: 20rem; }
.hours th, .hours td { text-align: left; padding: .4rem 0; border-bottom: 1px solid rgba(30, 25, 21, .12); font-weight: 400; }
.hours th { color: var(--ink-soft); padding-right: 1.5rem; white-space: nowrap; }
.shop__status { font-weight: 600; color: var(--ink) !important; min-height: 1.5em; }
.shop__status[data-open="true"]::before, .shop__status[data-open="false"]::before {
  content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .5rem; vertical-align: middle;
}
.shop__status[data-open="true"]::before { background: #3fa866; }
.shop__status[data-open="false"]::before { background: var(--crema); }
.shop .btn { width: fit-content; margin-top: .5rem; }

@media (max-width: 760px) { .visit__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.foot { background: var(--navy-deep); color: var(--shiplap); padding: clamp(4rem, 10vh, 7rem) var(--gutter) 2.5rem; display: grid; gap: 1rem; }
.foot__mark { font-size: clamp(2.6rem, 1.5rem + 7vw, 8rem); line-height: .9; letter-spacing: -.03em; }
.foot__line { color: rgba(247, 244, 238, .75); max-width: 40ch; margin-top: .5rem; }
.foot__social { display: flex; gap: 1.5rem; margin-top: .5rem; }
.foot__social a { font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(247, 244, 238, .35); }
.foot__fine { font-size: .85rem; color: rgba(247, 244, 238, .5); margin-top: 2rem; }

/* ------------------------------------------------------------------
   Motion preferences
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .rise { background: var(--shiplap); color: var(--ink); }
  .rise__pin { height: auto; padding: clamp(5rem, 12vh, 9rem) var(--gutter); gap: 2rem; }
  .rise__line { position: static; opacity: 1; }
  .rise__sun { display: none; }
  .hero__scroll span { animation: none; transform: none; }
  .hero__shutter { display: none !important; }
  .receipt__paper { transition: none; }
  .cust, .cust__face, .st, .rush__strikes i, .st__pot i { transition: none; }
  .is-shake, .rush__feed.is-fresh, .cup__chips svg { animation: none; }
  html { scroll-behavior: auto; }
}
