/* Almanac Café — styles.css
   One day at the café, seven to seven. A fixed ground behind everything carries the time of
   day (main.js drives its colour from the scroll) and a patch of light where the front
   window falls on the wall. Sections are transparent; only the board, the photographs and
   the lamp bring their own surface. */

:root {
  /* materials in the room, sampled from their photographs */
  --wall:     #DCD1BC;   /* limewash in shade — the morning ground */
  --linen:    #E0D5BC;
  --honey:    #DDC38A;   /* the lamp-lit wall behind the drinks board — afternoon */
  --oak:      #6E4E2C;
  --darkoak:  #33241B;
  --espresso: #1C1512;   /* night ground; ink by day */
  --cream:    #F2EADB;   /* ink by night */
  --marble:   #2F4A3C;   /* the green marble bar — the one accent */
  --brass:    #C99A5B;   /* lamp light */

  --ink: var(--espresso);
  --ink-2: rgba(28, 21, 18, .64);
  --hair: rgba(28, 21, 18, .17);
  --ground: var(--wall);

  --serif: "Bodoni Moda", "Bodoni 72", "Didot", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --rise-dur: 1.05s;
}
html.is-night {
  --ink: var(--cream);
  --ink-2: rgba(242, 234, 219, .62);
  --hair: rgba(242, 234, 219, .17);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: color .6s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--marble); outline-offset: 4px; }
html.is-night :focus-visible { outline-color: var(--brass); }
::selection { background: var(--marble); color: var(--cream); }

.wrap { width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; }

/* ---------- the day: fixed ground + the front window on the wall ---------- */
.day {
  position: fixed; inset: 0; z-index: 0;
  background: var(--ground);
  pointer-events: none;
  overflow: hidden;
}
.day__win {
  --wo: .55;
  position: absolute;
  left: var(--wx, 30%); top: var(--wy, 42%);
  width: var(--ww, 62vw); height: var(--wh, 92vh);
  transform: translate(-50%, -50%) skewX(var(--wk, -16deg)) rotate(var(--wr, -7deg));
  background: linear-gradient(90deg, var(--wc, rgba(255,247,226,.6)) 0 28.5%, transparent 28.5% 31.5%, var(--wc, rgba(255,247,226,.6)) 31.5% 100%);
  filter: blur(var(--wb, 24px));
  opacity: var(--wo);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
main, header, footer, .clock { position: relative; z-index: 1; }

/* cross-page crossfade where the browser supports it: the light changes between pages */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .55s; }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; padding: 10px 14px; background: var(--espresso); color: var(--cream); font: 500 14px/1 var(--sans); border-radius: 3px; }
.skip:focus { top: 14px; }

/* ---------- primitives ---------- */
.rise { display: block; overflow: hidden; padding: .18em .14em .3em; margin: -.18em -.14em -.3em; }
.rise > span { display: block; transition: transform var(--rise-dur) var(--ease) var(--d, 0s); }
html.js .rise > span { transform: translateY(140%); }
html.js .is-in .rise > span, html.is-ready .hero .rise > span, html.is-still .rise > span { transform: none; }
html.js .is-in .rise > span { transition-delay: var(--d, 0s); }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .9em 1.45em .85em;
  font: 500 14px/1 var(--sans); letter-spacing: .02em;
  color: var(--cream); background: var(--marble);
  border-radius: 3px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--espresso);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: none; }
.btn--cream { color: var(--espresso); background: var(--cream); }
.btn--cream::after { background: var(--brass); }
.btn--cream:hover { color: var(--espresso); }

.link { font: 500 14px/1 var(--sans); letter-spacing: .02em; position: relative; padding-bottom: .35em; white-space: nowrap; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: 100% 50%; transform: scaleX(1);
  transition: transform .5s var(--ease);
}
.link:hover::after { transform: scaleX(0); transform-origin: 0 50%; animation: relink .5s var(--ease) .5s forwards; }
@keyframes relink { from { transform: scaleX(0); transform-origin: 0 50%; } to { transform: scaleX(1); transform-origin: 0 50%; } }

/* section time headings: the time set large, the label small beside it */
.t { display: flex; align-items: baseline; gap: .9em; font-family: var(--serif); font-weight: 400; }
.t__num {
  font-size: clamp(64px, 9.5vw, 148px); line-height: .92; letter-spacing: -.015em;
  font-variant-numeric: tabular-nums lining-nums; font-optical-sizing: auto;
}
.t__lab { font: 400 15px/1 var(--sans); color: var(--ink-2); letter-spacing: .01em; }
.h2 { font: 400 clamp(28px, 2.6vw, 40px)/1.1 var(--serif); letter-spacing: -.005em; }

.star { width: .9em; height: .9em; vertical-align: -.1em; margin-right: .45em; }

/* ---------- nav ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding: 20px var(--gutter) 26px;
  font: 500 14px/1 var(--sans);
  background: linear-gradient(to bottom, var(--ground) 0%, color-mix(in srgb, var(--ground) 72%, transparent) 55%, transparent 100%);
  transition: opacity .9s ease .1s, transform .9s var(--ease) .1s, color .6s ease;
}
html.js .top { opacity: 0; transform: translateY(-6px); }
html.is-ready .top, html.is-still .top { opacity: 1; transform: none; transition: opacity .9s ease .1s, transform .6s var(--ease), color .6s ease; }
html.is-ready .top.is-hidden { transform: translateY(-110%); }
.top__brand { display: inline-flex; align-items: center; gap: 10px; margin-right: clamp(6px, 2vw, 28px); }
.top__mark {
  display: block; width: 30px; aspect-ratio: 252 / 222;
  background: currentColor;
  -webkit-mask: url(mark.svg) center / contain no-repeat; mask: url(mark.svg) center / contain no-repeat;
}
.top__name { letter-spacing: .01em; }
.top__nav { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.top__nav a, .top__tel { position: relative; padding: 6px 0; }
.top__nav a::after, .top__tel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.top__nav a:hover::after, .top__tel:hover::after, .top__nav a[aria-current="page"]::after { transform: scaleX(1); }
.top__tel { margin-left: auto; font-variant-numeric: tabular-nums; }
.top__burger { display: none; margin-left: auto; width: 40px; height: 40px; position: relative; }
.top__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; top: 16px; transition: transform .4s var(--ease), top .4s var(--ease); }
.top__burger span + span { top: 23px; }
.top__burger[aria-expanded="true"] span { top: 19.5px; transform: rotate(45deg); }
.top__burger[aria-expanded="true"] span + span { transform: rotate(-45deg); }

/* ---------- 07:00 hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: 92px 0 108px;
}
.hero__steam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; mix-blend-mode: multiply; }
.hero__logo {
  position: relative; z-index: 1;
  align-self: center; justify-self: center;
  width: min(64vh, 80vw, 690px);
  color: var(--ink);
  transition: color 1s ease;
}
.lg { display: block; width: 100%; height: auto; overflow: visible; }
html.is-ready .lg__steam { animation: steam 6s ease-in-out 3s infinite alternate; }
@keyframes steam { to { transform: translateY(-3.5px); opacity: .78; } }
.hero__row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero__line { max-width: 36ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; text-wrap: pretty; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex: none; padding-bottom: 2px; }
.hero__actions .rise { padding-bottom: .4em; margin-bottom: -.4em; }

/* ---------- 07:20 walk ---------- */
.walk { height: 430vh; position: relative; }
.walk__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.walk__t {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  opacity: 1; will-change: opacity, transform; white-space: nowrap;
}
.walk__strip {
  position: absolute; left: 0; top: 0; height: 100%;
  display: flex; align-items: center; gap: 4vw;
  will-change: transform;
}
.walk__door {
  flex: none;
  margin-right: var(--dg, 0px);
  width: var(--dw, 26vw); height: var(--dh, 52vh);
  border-radius: 50vw 50vw 0 0;
  overflow: hidden; align-self: flex-end;
  background: var(--darkoak);
  transform: translateZ(0);
}
.walk__door img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; transform: scale(var(--dz, 1.18)); transform-origin: 50% 60%; }
.walk__shot { flex: none; position: relative; width: 34vw; height: 72vh; height: 72svh; will-change: transform; }
.walk__shot img { width: 100%; height: 100%; object-fit: cover; background: var(--darkoak); }
.walk__shot figcaption { position: absolute; top: calc(100% + 14px); left: 0; font: 400 13px/1.3 var(--sans); color: var(--ink-2); }

/* ---------- 09:00 menu / the board ---------- */
.menu { padding: 20vh 0 12vh; }
.menu__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 6vw;
  align-items: start; margin-top: 7vh;
  perspective: 1500px; perspective-origin: 50% 20%;
}
.board {
  --tilt: 0deg; --ty: 0px;
  position: relative;
  background: #171210; color: var(--cream);
  padding: clamp(28px, 3.4vw, 50px) clamp(24px, 3.6vw, 56px) clamp(28px, 3vw, 44px);
  transform: rotateX(var(--tilt)) translateY(var(--ty));
  transform-origin: 50% 100%;
  box-shadow: 0 50px 90px -40px rgba(28, 21, 18, .45);
  will-change: transform;
}
.board::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201, 154, 91, .28); pointer-events: none; z-index: 2; }
.board__in { position: relative; z-index: 3; }
.board__head {
  display: flex; align-items: center;
  font: 500 13px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
  margin: 0 0 1.6em 0; padding-bottom: 1.2em; border-bottom: 1px solid rgba(242, 234, 219, .18);
}
.board__head .star { width: 15px; height: 15px; margin-right: 12px; }
.row {
  display: grid; grid-template-columns: 1fr auto 5.2ch 5.2ch; gap: 0 1.2em; align-items: baseline;
  padding: .52em 0; border-top: 1px solid rgba(242, 234, 219, .1);
  font: 400 15px/1.3 var(--sans); font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.row:first-child { border-top: 0; }
.row > span { display: block; transition: transform .8s var(--ease) calc(var(--i) * 45ms); }
html.js .row > span { transform: translateY(130%); }
.board.is-in .row > span, html.is-still .row > span { transform: none; }
.row__size { color: rgba(242, 234, 219, .55); font-size: 13px; }
.row__p { text-align: right; }
.row--cols { color: rgba(242, 234, 219, .55); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-top: 0; padding-top: 1.4em; padding-bottom: .1em; white-space: nowrap; }
.board__note { margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.row--gap { margin-top: 1em; }
.menu__side { padding-top: 6px; }
.menu__photo > span { display: block; }
.menu__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }
.menu__note { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
.menu__more { margin-top: 22px; }

/* ---------- 12:30 baked goods: the photograph is lit into view ---------- */
.bakes { padding: 18vh 0 12vh; }
.bakes__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6vw; align-items: start; margin-top: 7vh; }
.bakes__line { font: 400 clamp(32px, 3.6vw, 56px)/1.1 var(--serif); letter-spacing: -.01em; margin-bottom: 1.4em; }
.bakes__list li { padding: .55em 0; border-top: 1px solid var(--hair); font: 400 clamp(20px, 1.75vw, 26px)/1.25 var(--serif); }
.bakes__list li:last-child { border-bottom: 1px solid var(--hair); }
.bakes__photo { justify-self: end; width: min(100%, 560px); }
.lit {
  --lit: 130%;
  -webkit-mask-image: linear-gradient(112deg, #000 0%, #000 calc(var(--lit) - 16%), transparent var(--lit));
  mask-image: linear-gradient(112deg, #000 0%, #000 calc(var(--lit) - 16%), transparent var(--lit));
}
.lit img { width: 100%; }

/* ---------- 15:00 the café ---------- */
.cafe { padding: 18vh 0 12vh; }
.cafe__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6vw; align-items: center; margin-top: 7vh; }
.cafe__photo img { width: 100%; }
.quote { margin: 0; }
.quote p { font: italic 400 clamp(30px, 3.5vw, 54px)/1.15 var(--serif); letter-spacing: -.005em; text-wrap: pretty; }
.quote footer { margin-top: 1.1em; font: 400 14px/1.4 var(--sans); color: var(--ink-2); }
.quote--small { margin-top: 3.2em; max-width: 34ch; }
.quote--small p { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.35; }
.quote--small footer { margin-top: .7em; }
.cafe__rating { margin-top: 3em; font: 400 14px/1.4 var(--sans); color: var(--ink-2); display: flex; align-items: center; flex-wrap: wrap; gap: .3em 1.2em; }
.cafe__rating .star { color: var(--brass); }
.cafe__more { margin-top: 1.6em; }

/* ---------- 16:30 dusk ---------- */
.dusk { height: 260vh; position: relative; }
.dusk__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.lamp { position: absolute; inset: 0; pointer-events: none; --lp: 1; --lo: 1; }
html.js .lamp { --lp: .3; --lo: .12; }
.lamp__cone {
  position: absolute; left: 50%; top: 34%; width: min(78vw, 980px); height: 66vh;
  transform: translateX(-50%) scaleX(var(--lp)); transform-origin: 50% 0;
  background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(242, 194, 122, .5) 11deg, rgba(242, 194, 122, .5) 29deg, transparent 40deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.7) 45%, transparent 92%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.7) 45%, transparent 92%);
  filter: blur(8px); opacity: var(--lo); mix-blend-mode: screen;
}
.lamp__glow {
  position: absolute; left: 50%; top: 34%; width: 44vw; height: 18vh;
  transform: translate(-50%, -50%) scaleX(var(--lp));
  background: radial-gradient(closest-side, rgba(242, 194, 122, .75), transparent);
  filter: blur(28px); opacity: var(--lo); mix-blend-mode: screen;
}
.lamp__edge {
  position: absolute; left: 50%; top: 34%; height: 1px; width: min(52vw, 640px);
  transform: translateX(-50%) scaleX(var(--lp));
  background: rgba(255, 228, 176, .95); box-shadow: 0 0 22px 3px rgba(242, 194, 122, .55);
  opacity: var(--lo);
}
.lamp__pool {
  position: absolute; left: 50%; bottom: -10vh; width: 90vw; height: 42vh;
  transform: translateX(-50%) scaleX(var(--lp));
  background: radial-gradient(closest-side, rgba(201, 154, 91, .35), transparent);
  filter: blur(20px); opacity: var(--lo); mix-blend-mode: screen;
}
.dusk__line {
  position: relative; z-index: 2;
  font: 400 clamp(38px, 5.4vw, 84px)/1.05 var(--serif); letter-spacing: -.01em; text-align: center;
  color: var(--cream); opacity: var(--do, 1); transform: translateY(var(--dy, 0px));
  will-change: opacity, transform;
}
.dusk__line span { display: block; margin-top: .55em; font: 400 15px/1.4 var(--sans); color: rgba(242, 234, 219, .6); letter-spacing: .01em; }
html:not(.js) .dusk { height: auto; padding: 18vh 0; }
html:not(.js) .dusk__stage { position: static; height: auto; }
html:not(.js) .lamp { display: none; }
html:not(.js) .dusk__line { color: var(--ink); }
html:not(.js) .dusk__line span { color: var(--ink-2); }

/* ---------- 18:15 visit ---------- */
.visit { padding: 10vh 0 18vh; }
.visit__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 6vw; align-items: center; margin-top: 7vh; }
.visit__grid--page { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.visit__addr { font: 400 clamp(36px, 4.6vw, 68px)/1.05 var(--serif); letter-spacing: -.01em; }
.hours { margin: 2.4em 0 0; font-size: 15px; }
.hours > span { display: block; }
.hours dl { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 2em; max-width: 34ch; padding: .6em 0; border-top: 1px solid var(--hair); }
.hours div:last-child { border-bottom: 1px solid var(--hair); }
.hours dt { color: var(--ink-2); }
.hours dd { font-variant-numeric: tabular-nums; }
.visit__links { margin-top: 1.8em; font-size: 15px; }
.visit__links > span { display: flex; gap: 1.6em; flex-wrap: wrap; }
.visit__links a { position: relative; padding-bottom: 3px; }
.visit__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: .5; }
.visit__copy > p:nth-last-child(-n+2) { margin-top: 2.2em; }
.visit__note { font-size: 15px; color: var(--ink-2); max-width: 36ch; }
.visit__photo img { width: 100%; }
.map > div > span { display: block; }
.map__frame { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--hair); background: var(--darkoak); filter: saturate(.45) brightness(.92) contrast(1.05); }
.visit__wide { margin-top: 14vh; }
.visit__wide img { width: 100%; max-height: 72vh; object-fit: cover; object-position: 50% 40%; }

/* ---------- inner pages ---------- */
.page { padding: clamp(120px, 16vh, 180px) 0 14vh; }
.page__lede { max-width: 42ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; margin-top: 4vh; text-wrap: pretty; }
.page .menu__grid { margin-top: 8vh; }
.page__block { margin-top: 18vh; }
.page__block .bakes__grid { margin-top: 5vh; }
.page__note { margin-top: 10vh; font-size: 14px; color: var(--ink-2); }
.room { margin-top: 6vh; }
.room__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 5vw; align-items: end; margin-top: 10vh; }
.room__row--flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.room__row--flip .room__photo { order: 2; }
.room__photo > span { display: block; }
.room__photo img { width: 100%; }
.room__cap { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; max-width: 28ch; padding-bottom: .4em; text-wrap: pretty; }
.reviews { margin-top: 20vh; }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: start; margin-top: 6vh; }
.reviews .quote--small { margin-top: .4em; }
.reviews .cafe__rating { margin-top: 8vh; }

/* ---------- 19:00 footer ---------- */
.foot { padding: 12vh 0 40px; }
.foot__in { display: grid; justify-items: center; text-align: center; }
.foot__logo {
  display: block; width: 150px; aspect-ratio: 420.5827 / 406.8166; background: currentColor;
  -webkit-mask: url(logo.svg) center / contain no-repeat; mask: url(logo.svg) center / contain no-repeat;
}
.foot__close { margin-top: 36px; font: italic 400 clamp(22px, 2.2vw, 30px)/1.3 var(--serif); }
.foot__row {
  width: 100%; margin-top: 10vh; padding-top: 22px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  font-size: 13px; color: var(--ink-2);
}
.foot__links { display: flex; gap: 22px; }
.foot__links a:hover { color: var(--ink); }

/* ---------- the clock and the day line ---------- */
.clock {
  position: fixed; left: calc(var(--gutter) - 8px); right: var(--gutter); bottom: 20px; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  font: 400 12px/1 var(--sans); letter-spacing: .04em; color: var(--ink);
  transition: opacity 1s ease .6s, color .6s ease;
  pointer-events: none;
}
.clock__pill {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--ground);
}
.clock__track { --p: 0%; position: relative; flex: 1 1 auto; max-width: 440px; height: 16px; }
.clock__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); opacity: .22; }
.clock__ticks span { position: absolute; top: 50%; width: 1px; height: 7px; margin-top: -3.5px; background: var(--ink); opacity: .4; }
.clock__fill { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; width: var(--p); background: var(--ink); opacity: .85; }
.clock__dot { position: absolute; top: 50%; left: var(--p); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--ink); }
.clock__end { flex: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.clock__end:empty { display: none; }

.cue {
  position: fixed; left: 50%; bottom: 62px; z-index: 30; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 400 12px/1 var(--sans); letter-spacing: .06em; color: var(--ink);
  opacity: 0; transition: opacity .6s ease, color .6s ease; pointer-events: none;
}
.cue.is-on { opacity: 1; }
.cue__line { position: relative; width: 1px; height: 34px; overflow: hidden; background: var(--hair); }
.cue__line::after { content: ""; position: absolute; left: 0; top: -45%; width: 100%; height: 45%; background: currentColor; animation: cue-run 1.7s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes cue-run { to { top: 100%; } }
.walk__count { position: absolute; right: var(--gutter); bottom: 68px; font: 400 12px/1 var(--sans); letter-spacing: .06em; color: var(--ink-2); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .5s ease; }
.walk__count.is-on { opacity: 1; }
html.js .clock { opacity: 0; }
html.is-ready .clock, html.is-still .clock { opacity: 1; transition: opacity .5s ease, color .6s ease; }
html.is-ready .clock.is-hidden, html.is-still .clock.is-hidden { opacity: 0; }
.clock__dial { width: 44px; height: 44px; }
.clock__time { font-variant-numeric: tabular-nums; }
.clock__lab { color: var(--ink-2); }

/* ---------- mobile sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(28, 21, 18, .55); }
.sheet__panel {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: var(--wall); color: var(--espresso);
  padding: 28px 28px 32px; border-radius: 6px;
  display: grid; gap: 14px;
  font: 400 28px/1.15 var(--serif);
}
.sheet__panel a:nth-last-child(-n+2) { font: 400 15px/1.4 var(--sans); }
.sheet__panel a:nth-last-child(2) { margin-top: 14px; padding-top: 18px; border-top: 1px solid rgba(28, 21, 18, .16); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .menu__grid { grid-template-columns: 1fr; gap: 48px; }
  .menu__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; align-items: end; }
  .menu__side .menu__photo { grid-row: 1 / span 3; }
  .bakes__grid, .cafe__grid, .visit__grid, .room__row, .room__row--flip { grid-template-columns: 1fr; gap: 40px; }
  .room__row--flip .room__photo { order: 0; }
  .room__cap { padding-bottom: 0; }
  .bakes__photo { justify-self: start; }
  .reviews__grid { grid-template-columns: 1fr; gap: 6vh; }
  .walk__shot { width: 46vw; }
}
@media (max-width: 760px) {
  .top { padding: 16px var(--gutter); }
  .top__nav, .top__tel { display: none; }
  .top__burger { display: block; }
  .top__name { display: none; }
  .hero { padding: 84px 0 150px; }
  .hero__logo { width: min(84vw, 54vh); }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__actions { gap: 22px; }
  .walk__t { top: 26%; transform: none; }
  .walk__door { --dw: 66vw; --dh: 44vh; }
  .walk__shot { width: 76vw; height: 58vh; height: 58svh; }
  .walk__strip { gap: 5vw; }
  .menu { padding-top: 14vh; }
  .menu__side { grid-template-columns: 1fr; }
  .menu__side .menu__photo { grid-row: auto; }
  .row { grid-template-columns: 1fr auto 5ch 5ch; gap: 0 .8em; font-size: 14px; }
  .row--cols { font-size: 10px; letter-spacing: .06em; }
  .menu, .bakes, .cafe { padding-top: 12vh; }
  .bakes, .cafe { padding-bottom: 8vh; }
  .t { flex-direction: column; align-items: flex-start; gap: .8em; }
  .bakes__line { font-size: clamp(28px, 8vw, 40px); }
  .quote p { font-size: clamp(26px, 7vw, 36px); }
  .visit__addr { font-size: clamp(34px, 9vw, 52px); }
  .foot__row { flex-direction: column; align-items: center; text-align: center; }
  .clock { bottom: 14px; gap: 10px; }
  .clock__pill { gap: 10px; }
  .clock__track { max-width: none; }
  .clock__dial { width: 36px; height: 36px; }
  .clock__lab { display: none; }
  .cue { bottom: 66px; }
  .walk__count { bottom: auto; top: 74px; }
  .walk { height: 340vh; }
  .dusk { height: 200vh; }
  .lamp__cone { width: 120vw; height: 60vh; }
  .lamp__glow { width: 80vw; }
  .day__win { --wb: 16px; }
}

/* ---------- motion preferences / still renders ---------- */
@media (prefers-reduced-motion: reduce) {
  .rise > span, .row > span, .top, .clock { transition: none !important; transform: none !important; opacity: 1 !important; }
  .cue__line::after { animation: none; top: 30%; }
  html.is-ready .lg__steam { animation: none; }
  .board { --tilt: 0deg !important; --ty: 0px !important; }
  .lamp { --lp: 1; --lo: 1; }
  .dusk__line { --do: 1; --dy: 0px; }
  .lit { --lit: 130% !important; }
  .hero__steam { display: none; }
}
html.is-still .top, html.is-still .clock { transition: none; }
html.is-still .rise > span, html.is-still .row > span { transition: none; }
