/* cupfront.com: page styles. The engine (scrollcraft.css) is the floor; this is the page.
   Brand: Black #111111, Warm White #F6F2EB, Oat #D8CBB4, Grounds #4D463E. Nothing else on
   Cupfront surfaces. No gradients. Each invented café wears its own palette inside .cafe--*. */

:root {
  --black: #111111; --warm: #F6F2EB; --oat: #D8CBB4; --grounds: #4D463E;
  --sc-canvas: #111111; --sc-surface: #111111;
  --sc-ink: #F6F2EB; --sc-ink-soft: #D8CBB4;
  --sc-accent: #D8CBB4; --sc-accent-ink: #111111;
  --sc-font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sc-font-text: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --sc-font-mono: "Hanken Grotesk", system-ui, sans-serif;
  --sc-shadow-color: 30 18% 4%;
  --sc-r-sm: 4px; --sc-r-md: 8px; --sc-r-lg: 14px;
  --sc-track-tight: -0.03em;
  --bar-h: 60px;
}
html { background: var(--black); }
body { background: var(--black); color: var(--warm); }

.light {
  --sc-canvas: #F6F2EB; --sc-surface: #F6F2EB;
  --sc-ink: #111111; --sc-ink-soft: #4D463E;
  --sc-accent: #111111; --sc-accent-ink: #F6F2EB;
  background: var(--warm); color: var(--black);
}

/* Instrument Serif ships one weight. No synthetic bold, tracking tightened at display size. */
.sc-display { font-weight: 400; letter-spacing: -0.03em; line-height: 1.02; }
.sc-display em { font-style: italic; color: var(--sc-ink-soft); }
.lede { font-size: var(--sc-t-lg); line-height: 1.42; letter-spacing: -0.01em; margin: 0; max-width: 40ch; text-wrap: pretty; }
.small { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); margin: 0; }
.sc-grain { opacity: 0.035; }

/* ---------------------------------------------------------------- CTA --- */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 6px;
  background: var(--warm); color: var(--black);
  font-weight: 600; font-size: var(--sc-t-base); text-decoration: none; white-space: nowrap;
  transition: background 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.cta:hover { background: var(--oat); }
.cta:active { transform: translateY(1px); }
.light .cta, .bar.on-light .cta { background: var(--black); color: var(--warm); }
.light .cta:hover, .bar.on-light .cta:hover { background: var(--grounds); }
.cta--sm { padding: 9px 14px; font-size: 13px; border-radius: 5px; }

/* ---------------------------------------------------------------- bar --- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--sc-z-chrome);
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--sc-gutter);
  background: var(--black); color: var(--warm);
  border-bottom: 1px solid color-mix(in oklab, var(--warm) 12%, transparent);
  transform: translateY(-101%);
  transition: transform 340ms var(--sc-ease-out), background 240ms, color 240ms, border-color 240ms;
}
.bar.is-shown { transform: none; }
.bar.on-light { background: var(--warm); color: var(--black); border-bottom-color: color-mix(in oklab, var(--black) 12%, transparent); }
.bar__home { display: inline-flex; align-items: center; height: 100%; }
.bar__wm { height: 46px; width: auto; display: block; }
.bar__wm--dark { display: none; }
.bar.on-light .bar__wm--light { display: none; }
.bar.on-light .bar__wm--dark { display: block; }
.bar__folio { display: none; font-size: 13px; letter-spacing: 0.02em; color: var(--oat); }
.bar.on-light .bar__folio { color: var(--grounds); }
@media (min-width: 861px) { .bar__folio { display: block; } }

/* ---------------------------------------------------------------- title --- */
.title {
  min-height: 100svh; display: grid; place-items: center;
  padding: 12vh var(--sc-gutter) 10vh; background: var(--black);
}
.title__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(26px, 5vh, 54px); max-width: 60rem; }
.title__wm { width: min(58vw, 620px); min-width: 240px; will-change: transform; }
.wm { width: 100%; height: auto; display: block; overflow: visible; }
.wm__s { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .wm--hero .wm__s-1 { animation: steam 7.5s ease-in-out infinite alternate; }
  .wm--hero .wm__s-2 { animation: steam 9s ease-in-out -3s infinite alternate; }
  .wm--hero .wm__s-3 { animation: steam 6.8s ease-in-out -5s infinite alternate; }
}
@keyframes steam {
  from { transform: translateY(0) scaleY(1); opacity: 1; }
  to   { transform: translateY(-9px) scaleY(1.05); opacity: 0.78; }
}
.title__line { font-size: var(--sc-t-2xl); line-height: 1.08; margin: 0; }
.title__line span, .title__line em { display: block; }
.title__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.title__note { margin: 0; color: var(--oat); max-width: 44ch; font-size: var(--sc-t-base); text-wrap: pretty; }
@media (max-width: 700px) { .title__line { font-size: var(--sc-t-xl); } .title { padding-top: 14vh; } }

/* ---------------------------------------------------------------- stages --- */
.stage { height: 100svh; overflow: clip; background: var(--black); }
picture.plate, img.plate { position: absolute; inset: -4% 0; width: 100%; height: 108%; display: block; }
picture.plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
img.plate { object-fit: cover; }
.rail__item--plate .plate { inset: 0; height: 100%; }

/* Solid panels instead of scrims: the brand never sets type on a photo without a panel. */
.panel {
  position: absolute; z-index: 5;
  background: var(--black); color: var(--warm);
  padding: clamp(18px, 2.2vw, 30px) clamp(20px, 2.6vw, 36px);
  max-width: min(40rem, 78vw);
}
.panel .sc-display--lg { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem); }
.panel--lead { left: var(--sc-gutter); top: calc(var(--bar-h) + 5vh); }
.panel--trail { right: var(--sc-gutter); bottom: 9vh; }
@media (max-width: 860px) {
  .panel { max-width: none; }
  .panel--lead, .panel--trail { left: 16px; right: 16px; top: calc(var(--bar-h) + 12px); bottom: auto; }
  .panel .sc-display--lg { font-size: clamp(1.5rem, 1.1rem + 2.6vw, 2.2rem); }
  .panel .lede { font-size: var(--sc-t-base); }
}

/* measurement state for the FLIP moves: every transformed thing goes back to rest */
.cf-measure .slip, .cf-measure .bs__list li, .cf-measure .card, .cf-measure .phone--peak,
.cf-measure .fascia, .cf-measure .phone--shop { transform: none !important; }

/* ---------------------------------------------------------------- cafés --- */
.cafe--hl { --c-bg: #F3EEDF; --c-ink: #1F3D2B; --c-soft: #5F6B5F; --c-accent: #1F3D2B; --c-accent-ink: #F3EEDF; --c-font: "Lora", Georgia, serif; --c-radius: 8px; }
.cafe--fd { --c-bg: #262626; --c-ink: #F2E8C9; --c-soft: #B7B0A0; --c-accent: #E8B82A; --c-accent-ink: #262626; --c-font: "Archivo", system-ui, sans-serif; --c-upper: uppercase; --c-radius: 2px; }
.cafe--lt { --c-bg: #FFFFFF; --c-ink: #163E6B; --c-soft: #5D7A9A; --c-accent: #1C5FA8; --c-accent-ink: #FFFFFF; --c-font: "Nunito", system-ui, sans-serif; --c-radius: 18px; }
.cafe--pb { --c-bg: #FBF7F2; --c-ink: #3A2E2E; --c-soft: #8A7373; --c-accent: #E7B8B8; --c-accent-ink: #3A2E2E; --c-font: "Playfair Display", Georgia, serif; --c-radius: 6px; }
.cafe--ne { --c-bg: #0D0D0D; --c-ink: #F0E6D6; --c-soft: #9C8E7A; --c-accent: #B08D57; --c-accent-ink: #0D0D0D; --c-font: "Barlow Condensed", system-ui, sans-serif; --c-upper: uppercase; --c-radius: 0px; }

/* phone: sizes in em so one --ph-w scales the whole screen */
.phone {
  --ph-w: 280px;
  width: var(--ph-w); aspect-ratio: 9 / 19; flex: none;
  font-size: calc(var(--ph-w) / 21);
  background: #0B0B0B; border-radius: 3.2em; padding: 0.75em;
  box-shadow: var(--sc-e3), inset 0 0 0 1px rgba(255,255,255,0.06);
  color: var(--c-ink);
}
.phone__screen {
  height: 100%; border-radius: 2.5em; overflow: hidden;
  background: var(--c-bg); color: var(--c-ink);
  font-family: var(--sc-font-text); line-height: 1.35;
  display: flex; flex-direction: column; padding: 0.9em 1.2em 0.8em; position: relative;
}
.ph__status { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.9em; }
.ph__status i { width: 1.6em; height: 0.75em; border: 1.5px solid currentColor; border-radius: 3px; opacity: 0.8; position: relative; }
.ph__status i::after { content: ""; position: absolute; inset: 2px; right: 0.4em; background: currentColor; border-radius: 1px; }
.ph__head { margin-top: 1.4em; display: flex; flex-direction: column; gap: 0.15em; }
.ph__hello { font-size: 0.85em; color: var(--c-soft); text-transform: var(--c-upper, none); letter-spacing: 0.02em; }
.ph__brand { font-family: var(--c-font); font-size: 1.5em; line-height: 1.1; font-weight: 600; text-transform: var(--c-upper, none); text-wrap: balance; }
.ph__brand--big { font-size: 1.35em; }
.ph__head--icon { flex-direction: row; align-items: center; gap: 0.7em; }
.ph__iconslot { width: 3.2em; height: 3.2em; border-radius: 0.8em; flex: none; border: 1px dashed color-mix(in oklab, var(--c-ink) 25%, transparent); }
.ph__nav { margin-top: auto; display: flex; justify-content: space-between; padding-top: 0.7em; border-top: 1px solid color-mix(in oklab, var(--c-ink) 14%, transparent); font-size: 0.8em; color: var(--c-soft); }
.ph__nav .is-on { color: var(--c-ink); font-weight: 600; }
.ph__btn { margin-top: 1em; background: var(--c-accent); color: var(--c-accent-ink); text-align: center; padding: 0.8em; border-radius: var(--c-radius); font-weight: 600; font-family: var(--c-font); }
.ph__row { display: flex; justify-content: space-between; gap: 0.6em; padding: 0.8em 0; border-top: 1px solid color-mix(in oklab, var(--c-ink) 14%, transparent); font-size: 0.9em; }
.ph__row b { font-weight: 600; text-align: right; }
.ph__line { margin: 0.6em 0 0.2em; font-family: var(--c-font); font-style: italic; font-size: 1.05em; }
.ph__after { opacity: var(--after, 0); transform: translateY(calc((1 - var(--after, 0)) * 10px)); }
.ph__slot { height: 0; margin-top: 1em; border-radius: 1em; }

/* orders list (rail and bar screens) */
.orders, .bs__list { list-style: none; margin: 1em 0 0; padding: 0; }
.orders li, .bs__list li {
  display: grid; grid-template-columns: 4.5em 1fr auto; gap: 0.6em; align-items: center;
  padding: 0.7em 0; border-top: 1px solid color-mix(in oklab, var(--c-ink) 14%, transparent); font-size: 0.9em;
}
.orders li b, .bs__list li b { font-weight: 600; }
.orders li em, .bs__list li em { font-style: normal; font-weight: 600; font-size: 0.85em; padding: 0.25em 0.55em; border-radius: var(--c-radius); background: var(--c-accent); color: var(--c-accent-ink); font-variant-numeric: tabular-nums; }

/* tablet: the bar screen */
.tablet {
  --tb-w: 420px;
  width: var(--tb-w); aspect-ratio: 4 / 3; flex: none;
  font-size: calc(var(--tb-w) / 30);
  background: #0B0B0B; border-radius: 1.2em; padding: 0.7em;
  box-shadow: var(--sc-e3), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.tablet__screen { height: 100%; border-radius: 0.6em; overflow: hidden; background: var(--c-bg); color: var(--c-ink); display: flex; flex-direction: column; }
.bs__head { background: var(--c-accent); color: var(--c-accent-ink); padding: 0.6em 0.9em; display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.bs__name { font-family: var(--c-font); font-size: 1.1em; font-weight: 600; }
.bs__meta { font-size: 0.8em; opacity: 0.9; } .bs__meta b { font-variant-numeric: tabular-nums; margin-left: 0.4em; }
.bs__empty { margin: 0; padding: 0.9em; color: var(--c-soft); font-size: 0.9em; position: absolute; }
.tablet__screen { position: relative; }
.bs__list { margin: 0; padding: 0 0.9em; }
.bs__list li { grid-template-columns: 3.8em 1fr auto; padding: 0.55em 0; }
.bs__list li em.st { background: color-mix(in oklab, var(--c-ink) 12%, transparent); color: var(--c-ink); }
.bs__list li em.st--making { background: var(--c-accent); color: var(--c-accent-ink); }
.bs__list li em.st--ready { background: var(--c-ink); color: var(--c-bg); }
.bs__list li.is-done { opacity: 0.45; }
.bs__list li.is-done em.st { background: transparent; border: 1px solid color-mix(in oklab, var(--c-ink) 30%, transparent); }
.bs__hint { margin: auto 0 0; padding: 0.8em 0.9em; font-size: 0.8em; color: var(--c-soft); border-top: 1px solid color-mix(in oklab, var(--c-ink) 14%, transparent); }

/* ---------------------------------------------------------------- 1 · counter --- */
.ch--counter .clock {
  position: absolute; z-index: 4; top: calc(var(--bar-h) + 5vh); right: var(--sc-gutter);
  background: var(--black); color: var(--warm); padding: 8px 12px;
  font-variant-numeric: tabular-nums; font-size: var(--sc-t-base); letter-spacing: 0.04em;
}
.queue { position: absolute; z-index: 3; left: 4%; bottom: 8%; width: 44%; height: 58%; pointer-events: none; }
.slip {
  position: absolute; width: 168px; padding: 12px 14px 14px;
  background: var(--warm); color: var(--black);
  box-shadow: var(--sc-e2); font-size: 12px; line-height: 1.3; opacity: 0;
  transform-origin: 50% 100%; will-change: transform, opacity;
}
.slip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: repeating-linear-gradient(90deg, var(--warm) 0 7px, transparent 7px 12px); }
.slip b { display: block; font-weight: 600; font-size: 13px; }
.slip span { display: block; }
.slip i { display: block; font-style: normal; color: var(--grounds); margin-top: 4px; font-size: 11px; }
.slip:nth-child(1) { left: 2%;  bottom: 6%; }
.slip:nth-child(2) { left: 16%; bottom: 14%; }
.slip:nth-child(3) { left: 30%; bottom: 10%; }
.slip:nth-child(4) { left: 8%;  bottom: 38%; }
.slip:nth-child(5) { left: 24%; bottom: 44%; }
.slip:nth-child(6) { left: 40%; bottom: 38%; }
.ch--counter .tablet { position: absolute; z-index: 2; left: 40%; bottom: 13%; --tb-w: min(34vw, 440px); }
.ch--counter .bs__list li { opacity: 0; will-change: opacity, transform; }
.ch--counter .bs__empty { transition: opacity 240ms var(--sc-ease-out); }
@media (max-width: 860px) {
  .ch--counter .clock { top: auto; bottom: 16px; right: 16px; font-size: 13px; padding: 6px 10px; }
  .queue { left: 2%; bottom: 10%; width: 60%; height: 40%; }
  .slip { width: 124px; font-size: 10px; padding: 8px 10px 10px; }
  .slip b { font-size: 11px; } .slip i { font-size: 9px; }
  .slip:nth-child(1) { left: 0; bottom: 4%; } .slip:nth-child(2) { left: 22%; bottom: 10%; } .slip:nth-child(3) { left: 44%; bottom: 2%; }
  .slip:nth-child(4) { left: 6%; bottom: 42%; } .slip:nth-child(5) { left: 30%; bottom: 50%; } .slip:nth-child(6) { left: 52%; bottom: 40%; }
  .ch--counter .tablet { left: auto; right: 4%; bottom: 10%; --tb-w: 60vw; }
}

/* ---------------------------------------------------------------- S · silence --- */
.silence { min-height: 70svh; display: grid; place-items: center; background: var(--black); padding: 0 var(--sc-gutter); }
.silence__line { font-family: var(--sc-font-display); font-style: italic; font-size: var(--sc-t-xl); color: var(--oat); text-align: center; margin: 0; }

/* ---------------------------------------------------------------- 2 · the stamp card --- */
.peak__scene { position: absolute; inset: 0; perspective: 1400px; z-index: 2; }
.card {
  --lift: 0; --app: 0; --sh: 0;
  position: absolute; left: 38%; top: 50%; width: 300px; height: 190px; margin: -95px 0 0 -150px;
  padding: 16px 18px 14px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--c-bg); color: var(--c-ink);
  border-radius: calc(4px + 10px * var(--app));
  transform: rotateX(58deg) rotateZ(-7deg);
  transform-origin: 50% 50%; will-change: transform; z-index: 4;
  box-shadow:
    calc(2px + 10px * var(--sh)) calc(3px + 22px * var(--sh)) calc(6px + 36px * var(--sh)) rgba(17,17,17, calc(0.38 - 0.16 * var(--sh)));
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: #EFE6D3;
  box-shadow: inset 0 0 0 1px rgba(31,61,43,0.18), inset 0 0 40px rgba(77,70,62,0.12);
  opacity: calc(1 - var(--app));
}
.card > * { position: relative; }
.card__head { font-family: var(--c-font); display: flex; flex-direction: column; gap: 2px; }
.card__name { font-size: 19px; font-weight: 600; }
.card__sub { font-size: 11px; color: var(--c-soft); font-style: italic; }
.card__grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.dot { --pt: 0; position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #8E9C8E; }
.dot::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--c-ink); opacity: var(--app); }
.ink {
  position: absolute; inset: -5px; background: var(--c-ink);
  border-radius: 52% 48% 56% 44% / 46% 56% 44% 54%;
  opacity: calc(0.88 * (1 - var(--pt)));
  transform: rotate(var(--r, 0deg)) scale(var(--s, 1));
}
.ink-1 { --r: 12deg; --s: 1.02; } .ink-2 { --r: -28deg; --s: 0.96; } .ink-3 { --r: 70deg; --s: 1.05; }
.ink-4 { --r: -80deg; --s: 0.98; } .ink-5 { --r: 150deg; --s: 1.0; } .ink-6 { --r: 38deg; --s: 0.94; } .ink-7 { --r: -140deg; --s: 1.04; }
.dot.is-stamped::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--c-ink); opacity: var(--pt); transform: scale(calc(0.6 + 0.4 * var(--pt))); }
.card__foot { display: grid; font-size: 11px; }
.card__foot > * { grid-area: 1 / 1; }
.card__paper { opacity: calc(1 - var(--app)); color: var(--c-soft); font-style: italic; font-family: var(--c-font); }
.card__app { opacity: var(--app); font-weight: 600; font-size: 13px; }
.phone--peak { position: absolute; right: 12%; bottom: -5%; --ph-w: 300px; transform: translate3d(0, 110%, 0); will-change: transform; z-index: 3; }
.phone--peak .ph__slot { height: 157px; }
.owner {
  position: absolute; z-index: 5; left: var(--sc-gutter); top: 50%; width: min(380px, 38vw);
  transform: translate3d(calc((1 - var(--own, 0)) * -16px), -50%, 0);
  background: var(--black); color: var(--warm); padding: 26px 28px 20px; opacity: 0;
}
.owner__title { margin: 0 0 6px; font-family: var(--sc-font-display); font-size: var(--sc-t-xl); line-height: 1.1; }
.owner dl { margin: 0; }
.owner dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid color-mix(in oklab, var(--warm) 16%, transparent); }
.owner dt { margin: 0; color: var(--oat); font-size: var(--sc-t-sm); }
.owner dd { margin: 0; font-family: var(--sc-font-display); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.owner__note { margin: 14px 0 0; font-size: 12px; color: var(--oat); }
.ch--peak .panel--trail { bottom: auto; top: calc(var(--bar-h) + 5vh); }
@media (max-width: 860px) {
  .card { left: 50%; top: 46%; width: 236px; height: 150px; margin: -75px 0 0 -118px; padding: 12px 14px 10px; }
  .card__name { font-size: 15px; } .card__sub { font-size: 9px; } .card__grid { gap: 4px; } .card__foot { font-size: 9px; } .card__app { font-size: 11px; }
  .phone--peak { right: auto; left: calc(50% - var(--ph-w) / 2); --ph-w: 74vw; bottom: -14%; }
  .phone--peak .ph__slot { height: calc(var(--ph-w) * 0.527); }
  .owner { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; transform: none; padding: 14px 16px 12px; }
  .owner__title { font-size: var(--sc-t-lg); }
  .owner dl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .owner dl div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0 0; }
  .owner dt { font-size: 11px; } .owner dd { font-size: 20px; white-space: normal; }
  .owner__note { margin-top: 10px; font-size: 11px; }
  .ch--peak .panel--trail { top: calc(var(--bar-h) + 12px); }
}

/* ---------------------------------------------------------------- 3 · the beans --- */
.stage--rail { display: block; }
.rail { display: flex; height: 100svh; align-items: stretch; }
.rail__item { flex: none; position: relative; }
.rail__item--plate { width: 100vw; overflow: hidden; }
.rail__item--path { width: 68vw; background: var(--black); padding: calc(var(--bar-h) + 10vh) 6vw 0; }
.beans__copy { max-width: 42ch; font-size: var(--sc-t-lg); line-height: 1.42; color: var(--warm); margin: 0; }
.panel--static { }
.ch--beans .panel--lead { top: auto; bottom: 10vh; }
.panel--door { left: var(--sc-gutter); right: auto; bottom: auto; top: calc(var(--bar-h) + 5vh); max-width: min(34rem, 60vw); }
.ch--beans { --draw: clamp(0, calc((var(--sc-p, 0) - 0.1) / 0.62), 1); --land: clamp(0, calc((var(--sc-p, 0) - 0.7) / 0.12), 1); --sub: clamp(0, calc((var(--sc-p, 0) - 0.8) / 0.12), 1); }
.beanpath { position: absolute; z-index: 2; left: 60vw; top: 14%; width: 158vw; height: 76%; pointer-events: none; overflow: visible; }
.beanpath__beans { fill: none; stroke: var(--oat); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1 13; vector-effect: non-scaling-stroke; }
.beanpath__mask { fill: none; stroke: #fff; stroke-width: 16; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--draw)); vector-effect: non-scaling-stroke; }
.bag {
  position: absolute; z-index: 3; left: 52%; bottom: 17%; width: 108px; height: 146px;
  background: var(--c-bg); border-radius: 5px 5px 10px 10px; box-shadow: var(--sc-e2);
  opacity: var(--land); transform: translate3d(0, calc((1 - var(--land)) * -70px), 0);
}
.bag__fold { height: 14px; background: var(--c-accent); border-radius: 5px 5px 0 0; }
.bag__label { margin: 20px 10px 0; border: 1.5px solid var(--c-accent); padding: 9px 6px; text-align: center; font-family: var(--c-font); color: var(--c-ink); display: flex; flex-direction: column; gap: 3px; }
.bag__name { font-size: 10px; } .bag__what { font-size: 12px; font-weight: 600; } .bag__size { font-size: 9px; letter-spacing: 0.08em; }
.phone--sub { position: absolute; z-index: 3; right: 8%; bottom: -3%; --ph-w: 250px; opacity: var(--sub); transform: translate3d(0, calc((1 - var(--sub)) * 40px), 0); }
.sub { margin-top: 1em; }
.sub__row { display: flex; justify-content: space-between; gap: 0.6em; padding: 0.75em 0; border-top: 1px solid color-mix(in oklab, var(--c-ink) 14%, transparent); font-size: 0.9em; }
.sub__row b { font-weight: 600; font-family: var(--c-font); }
.sub__row--total { border-top: 2px solid var(--c-ink); font-weight: 600; }
@media (max-width: 860px) {
  .rail__item--path { width: 72vw; padding: calc(var(--bar-h) + 8vh) 6vw 0; }
  .beans__copy { font-size: var(--sc-t-base); }
  .beanpath { left: 60vw; width: 170vw; top: 20%; height: 66%; }
  .bag { left: 16%; bottom: 20%; width: 84px; height: 112px; }
  .bag__label { margin: 14px 7px 0; padding: 6px 4px; } .bag__name { font-size: 8px; } .bag__what { font-size: 10px; } .bag__size { font-size: 8px; }
  .phone--sub { right: 2%; bottom: -8%; --ph-w: 52vw; }
  .panel--door { left: 16px; right: 16px; max-width: none; top: calc(var(--bar-h) + 12px); }
  .ch--beans .panel--lead { bottom: 8vh; top: auto; }
}

/* ---------------------------------------------------------------- 4 · the shopfront --- */
.fascia {
  --sq: 0; --isx: 1;
  position: absolute; z-index: 4; left: 7%; right: 7%; top: 30%; height: 8.5%;
  display: grid; place-items: center;
  background: var(--c-accent); color: var(--c-accent-ink);
  font-family: var(--c-font); font-size: clamp(16px, 2.4vw, 36px); letter-spacing: 0.04em;
  border-radius: calc(var(--sq) * 28px);
  box-shadow: var(--sc-e2); transform-origin: 50% 50%; will-change: transform;
}
.fascia > * { grid-area: 1 / 1; }
.fascia__name { opacity: calc(1 - var(--sq)); white-space: nowrap; }
.fascia__mono { opacity: var(--sq); transform: scaleX(var(--isx)); font-weight: 600; font-size: 1.1em; letter-spacing: 0; }
.chalk {
  position: absolute; z-index: 3; left: 9%; bottom: 7%; width: 224px;
  background: #1A1A1A; color: var(--warm); padding: 16px 16px 20px;
  border: 7px solid var(--grounds); transform: rotate(-2deg); box-shadow: var(--sc-e3);
  font-family: var(--c-font); font-style: italic;
}
.chalk__title { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-style: normal; color: var(--oat); }
.chalk ul { list-style: none; margin: 0; padding: 0; }
.chalk li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(246,242,235,0.25); font-size: 14px; }
.chalk li b { font-weight: 400; }
.phone--shop { position: absolute; z-index: 3; right: 10%; bottom: -5%; --ph-w: 290px; transform: translate3d(0, 110%, 0); will-change: transform; }
.menu { list-style: none; margin: 1.1em 0 0; padding: 0; }
.menu li { display: flex; justify-content: space-between; gap: 0.6em; padding: 0.8em 0; border-top: 1px solid color-mix(in oklab, var(--c-ink) 14%, transparent); font-size: 0.95em; opacity: 0; }
.menu li b { font-weight: 600; }
.ph__btn--menu { margin-top: 1.2em; }
@media (max-width: 860px) {
  .fascia { left: 4%; right: 4%; top: 22%; height: 6.5%; font-size: 15px; }
  .chalk { left: 3%; bottom: 5%; width: 138px; padding: 10px 10px 12px; border-width: 5px; }
  .chalk__title { font-size: 9px; } .chalk li { font-size: 10px; padding: 4px 0; }
  .phone--shop { right: 3%; bottom: -8%; --ph-w: 54vw; }
}

/* ---------------------------------------------------------------- 5 · many cafés --- */
.caferail { gap: clamp(28px, 3.4vw, 52px); padding: 0 var(--sc-gutter); align-items: center; }
.rail__lead { width: min(520px, 80vw); display: flex; flex-direction: column; gap: 22px; padding-right: 2vw; }
.rail__lead .lede { color: var(--oat); }
.rail__trail { width: min(380px, 80vw); display: flex; flex-direction: column; gap: 16px; padding: 0 12vw 0 2vw; }
.rail__trail .badge { width: 150px; height: auto; margin-top: 8px; }
.caferail .phone { --ph-w: 272px; }
.caferail > :nth-child(2) { --i: -1.2; } .caferail > :nth-child(3) { --i: 0; } .caferail > :nth-child(4) { --i: 1; }
.caferail > :nth-child(5) { --i: 2; } .caferail > :nth-child(6) { --i: 3; }
.orders li:nth-child(1) { --k: 0; } .orders li:nth-child(2) { --k: 1; } .orders li:nth-child(3) { --k: 2; }
@media (prefers-reduced-motion: no-preference) {
  .caferail .phone {
    --arr: clamp(0, calc((var(--sc-p, 0) - var(--i) * 0.13) / 0.14), 1);
    opacity: calc(0.55 + 0.45 * var(--arr));
    transform: translate3d(0, calc((1 - var(--arr)) * 28px), 0);
  }
  .caferail .orders li {
    --o: clamp(0, calc((var(--sc-p, 0) - var(--i) * 0.13 - 0.08 - var(--k) * 0.05) / 0.08), 1);
    opacity: var(--o); transform: translate3d(calc((1 - var(--o)) * -10px), 0, 0);
  }
}
@media (max-width: 860px) {
  .caferail .phone { --ph-w: 66vw; }
  .rail__lead { width: 86vw; gap: 14px; }
  .rail__trail { width: 80vw; padding-right: 6vw; }
}

/* ---------------------------------------------------------------- 6 · a morning --- */
.morning { background: var(--warm); color: var(--black); }
.morning__grid {
  height: 100%; display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.3fr; grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 4vw, 64px);
  padding: calc(var(--bar-h) + 4vh) var(--sc-gutter) 5vh; align-items: center; max-width: 90rem; margin: 0 auto;
}
.morning__head { grid-column: 1 / -1; align-self: start; max-width: 30ch; }
.phone--m { --ph-w: min(250px, 20vw); justify-self: center; }
.m-state { display: none; margin-top: 1.2em; }
.m-state.is-on { display: block; }
.m-state p { margin: 0; font-size: 0.85em; color: var(--c-soft); }
.m-state b { display: block; font-family: var(--c-font); font-size: 1.6em; line-height: 1.1; margin: 0.15em 0 0.3em; font-weight: 600; }
.m-state span { font-size: 0.85em; }
.stamps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 18px); }
.stamps li { display: grid; grid-template-columns: minmax(5.6ch, auto) 1fr; column-gap: 16px; align-items: baseline; }
.stamps time { font-family: var(--sc-font-display); font-size: var(--sc-t-xl); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stamps p { margin: 0; font-size: var(--sc-t-base); line-height: 1.4; color: var(--grounds); text-wrap: pretty; }
.tablet--m { --tb-w: min(440px, 30vw); justify-self: center; }
.tablet--m .bs__list { margin-top: 0.4em; }
@media (max-width: 860px) {
  .morning__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 12px; padding: calc(var(--bar-h) + 10px) 16px 16px; align-items: start; }
  .morning__head { max-width: none; }
  .morning__head .sc-display--md { font-size: var(--sc-t-xl); }
  .phone--m { --ph-w: 38vw; grid-row: 2; grid-column: 1; justify-self: start; }
  .tablet--m { --tb-w: 50vw; grid-row: 2; grid-column: 2; justify-self: end; align-self: start; margin-top: 2vh; }
  .stamps { grid-column: 1 / -1; grid-row: 3; align-self: center; gap: 8px; }
  .stamps time { font-size: var(--sc-t-lg); }
  .stamps p { font-size: var(--sc-t-sm); }
}
@media (max-width: 860px) and (max-height: 700px) { .morning__head .sc-display--md { font-size: var(--sc-t-lg); } .stamps { gap: 4px; } .stamps p { font-size: 12px; } .phone--m { --ph-w: 32vw; } .tablet--m { --tb-w: 46vw; } }

/* ---------------------------------------------------------------- 7 · why us --- */
.ch--why { padding-top: var(--sc-8); }
.why__title { max-width: 16ch; }
.why__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 40px); margin-top: var(--sc-7); align-items: end; }
.why__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.why__fig figcaption { font-size: var(--sc-t-sm); color: var(--grounds); max-width: 22ch; text-wrap: balance; }
.phone--why { --ph-w: min(240px, 24vw); }
.tpl { --c-bg: #F2F2F2; --c-ink: #2B2B2B; --c-soft: #777; }
.tpl--a { --t: #5B6B7A; } .tpl--b { --t: #6B4E71; }
.tpl .phone__screen { font-family: Arial, Helvetica, sans-serif; }
.tpl__head { margin-top: 1.2em; background: var(--t); color: #fff; padding: 1em 0.8em; text-align: center; font-weight: 700; font-size: 0.95em; border-radius: 4px; }
.tpl__banner { margin-top: 0.7em; background: color-mix(in oklab, var(--t) 16%, white); color: var(--t); padding: 1.6em 0.8em; text-align: center; font-weight: 700; border-radius: 4px; }
.tpl__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; margin-top: 0.7em; }
.tpl__tiles span { aspect-ratio: 1.25; background: #fff; border: 1px solid #DDD; border-radius: 4px; }
.tpl__nav { margin-top: auto; display: flex; justify-content: space-around; padding-top: 0.7em; border-top: 1px solid #DDD; }
.tpl__nav span { width: 1.3em; height: 1.3em; border-radius: 3px; background: var(--t); opacity: 0.45; }
.mini-card { background: var(--c-accent); color: var(--c-accent-ink); padding: 1em; border-radius: 0.9em; margin-top: 1.1em; display: flex; flex-wrap: wrap; gap: 0.4em; align-items: center; }
.mini-card span { width: 100%; font-family: var(--c-font); font-size: 1.3em; margin-bottom: 0.3em; }
.mini-card i { width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--c-accent-ink); }
.mini-card u { width: 1.1em; height: 1.1em; border-radius: 50%; border: 1.5px dashed var(--c-accent-ink); opacity: 0.6; }
.plain { list-style: none; padding: 0; margin: var(--sc-9) auto 0; max-width: 60ch; }
.plain li { padding: 18px 0; border-top: 1px solid color-mix(in oklab, var(--black) 22%, transparent); font-size: var(--sc-t-lg); line-height: 1.4; text-wrap: pretty; }
.plain li:last-child { border-bottom: 1px solid color-mix(in oklab, var(--black) 22%, transparent); }
@media (max-width: 860px) {
  .ch--why { padding-top: var(--sc-7); }
  .why__row { gap: 8px; }
  .phone--why { --ph-w: 28vw; border-radius: 2.6em; }
  .why__fig figcaption { font-size: 11px; }
  .plain li { font-size: var(--sc-t-base); padding: 14px 0; }
}

/* ---------------------------------------------------------------- 8 · how it starts --- */
.how { background: var(--black); color: var(--warm); }
.ch--how { --draw: clamp(0, calc((var(--sc-p, 0) - 0.04) / 0.64), 1); }
.how__grid {
  height: 100%; display: grid; grid-template-columns: 2px minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  column-gap: clamp(22px, 3vw, 48px);
  padding: calc(var(--bar-h) + 5vh) var(--sc-gutter) 5vh; max-width: 76rem; margin: 0 auto;
}
.how__title { grid-column: 1 / -1; margin-bottom: 4vh; }
.how__line { grid-column: 1; grid-row: 2; height: 100%; }
.how__line svg { width: 2px; height: 100%; overflow: visible; display: block; }
.how__track { stroke: color-mix(in oklab, var(--warm) 18%, transparent); stroke-width: 2; }
.how__ink { stroke: var(--oat); stroke-width: 2; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--draw)); }
.steps { grid-column: 2; grid-row: 2; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.step { --on: clamp(0, calc((var(--draw) - var(--i) * 0.22 - 0.02) / 0.06), 1); position: relative; opacity: calc(0.34 + 0.66 * var(--on)); }
.step__node {
  position: absolute; left: calc(-1 * clamp(22px, 3vw, 48px) - 8px); top: 0.5em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--black); border: 2px solid var(--oat); box-sizing: border-box;
}
.step__node::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--oat); opacity: var(--on); }
.step h3 { font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-xl); margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.step p { margin: 6px 0 0; color: var(--oat); max-width: 40ch; }
.price { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; background: var(--warm); color: var(--black); padding: 26px 28px; max-width: 26rem; }
.price p { margin: 8px 0 0; line-height: 1.45; }
.price .price__big { font-family: var(--sc-font-display); font-size: var(--sc-t-3xl); line-height: 1; margin: 0; letter-spacing: -0.03em; }
.price__big span { display: block; font-family: var(--sc-font-text); font-size: var(--sc-t-lg); letter-spacing: 0; margin-top: 6px; }
.price__pilot { color: var(--grounds); font-size: var(--sc-t-sm); }
@media (max-width: 860px) {
  .how__grid { grid-template-columns: 2px 1fr; grid-template-rows: auto 1fr auto; padding: calc(var(--bar-h) + 10px) 16px 14px; column-gap: 18px; row-gap: 12px; }
  .how__title { margin-bottom: 0; font-size: var(--sc-t-xl); }
  .steps { grid-column: 2; grid-row: 2; }
  .step h3 { font-size: var(--sc-t-lg); }
  .step p { font-size: var(--sc-t-sm); margin-top: 2px; }
  .step__node { left: -26px; width: 12px; height: 12px; top: 0.4em; }
  .price { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; max-width: none; padding: 14px 16px; }
  .price .price__big { font-size: var(--sc-t-2xl); } .price__big span { font-size: var(--sc-t-base); }
  .price p { font-size: var(--sc-t-sm); margin-top: 4px; }
}
@media (max-width: 860px) and (max-height: 720px) { .step p { display: none; } .price__pilot { display: none; } }

/* ---------------------------------------------------------------- 9 · a letter --- */
.ch--letter { padding-top: var(--sc-8); }
.letter { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 56ch); gap: var(--sc-7) var(--sc-9); justify-content: center; align-items: start; }
.letter__photo { width: 120px; height: 120px; border-radius: 6px; display: block; }
.letter__from { font-family: var(--sc-font-display); font-size: var(--sc-t-xl); margin: 18px 0 0; line-height: 1.1; }
.letter__body p { font-size: var(--sc-t-lg); line-height: 1.5; margin: 0 0 1.1em; text-wrap: pretty; }
.letter__sign { font-family: var(--sc-font-display); font-style: italic; font-size: var(--sc-t-xl); margin-top: var(--sc-6) !important; }
.letter__ask { grid-column: 2; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.letter__contact { margin: 0; color: var(--grounds); line-height: 1.7; }
.letter__contact a { color: var(--black); }
@media (max-width: 860px) {
  .letter { grid-template-columns: 1fr; gap: var(--sc-6); }
  .letter__ask { grid-column: 1; }
  .letter__photo { width: 88px; height: 88px; }
}

/* ---------------------------------------------------------------- close --- */
.close { min-height: 100svh; background: var(--black); color: var(--warm); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 10vh var(--sc-gutter) 22px; }
.close__wm { width: min(56vw, 520px); min-width: 220px; }
.foot { text-align: center; color: var(--oat); font-size: var(--sc-t-sm); }
.foot p { margin: 0; }
.foot a { color: var(--warm); }

/* ---------------------------------------------------------------- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .ch--beans { --draw: 1; --land: 1; --sub: 1; }
  .ch--how { --draw: 1; }
  .bar { transition: none; }
}

/* utility: chrome/tab bar heights on small phones */
@media (max-width: 420px) { .bar__wm { height: 42px; } .cta--sm { padding: 8px 11px; font-size: 12px; } }
