/* The Vintage Cafe preview: warm limestone, espresso ink, berry and maple accents. */
@property --a { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --b { syntax: '<number>'; inherits: true; initial-value: 60; }

:root {
  --cream: #f4ece0;
  --stone: #ebe0cf;
  --paper: #fbf7f0;
  --ink: #2e1d13;
  --ink-soft: #5c4636;
  --berry: #b23a48;
  --berry-deep: #8e2a37;
  --maple: #c98a2b;
  --mint: #5d7a4c;
  --line: rgba(46, 29, 19, 0.14);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 14px;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--berry);
}
.h2 {
  margin: 0 0 18px;
  font: 400 clamp(34px, 5.2vw, 60px)/1.04 var(--serif);
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 144;
}
.h2 em, h3 em { font-style: italic; color: var(--berry); }
.fine { font-size: 13px; color: var(--ink-soft); }

/* ---------- buttons and pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--berry { background: var(--berry); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(142, 42, 55, 0.8); }
.btn--berry:hover { background: var(--berry-deep); }
.btn--cream { background: rgba(251, 247, 240, 0.92); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(46, 29, 19, 0.5); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(251, 247, 240, 0.9);
  font: 600 14px/1 var(--sans); text-decoration: none;
  box-shadow: 0 8px 20px -14px rgba(46, 29, 19, 0.5);
}
.pill .star { color: var(--maple); }
.pill__muted { color: var(--ink-soft); font-weight: 500; }

/* ---------- nav ---------- */
/* Full width at the top of the page. Once you scroll, it folds into a small pill in the
   top-right corner (badge, record, burger) and stays there, instead of hiding and coming back. */
.nav {
  position: fixed; z-index: 50;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, calc((100% - 1120px) / 2));
  width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(251, 247, 240, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px -18px rgba(46, 29, 19, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: width 0.65s var(--ease), padding 0.65s var(--ease), background 0.3s;
}
.nav.is-solid { background: rgba(251, 247, 240, 0.94); }
.nav.is-compact { width: 160px; padding: 6px 6px 6px 8px; background: rgba(251, 247, 240, 0.94); }
.nav.is-compact .nav__name,
.nav.is-compact .nav__links,
.nav.is-compact .nav__status,
.nav.is-compact .nav__call { display: none; }
.nav.is-compact .nav__end { gap: 4px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.nav__badge {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  outline: 1.5px dashed var(--berry); outline-offset: -6px;
  font: italic 500 17px/1 var(--serif);
}
.nav__name { font: 500 18px/1 var(--serif); white-space: nowrap; }
.nav__links { position: relative; display: flex; gap: 4px; }
.nav__links a {
  position: relative; z-index: 1;
  padding: 10px 14px; border-radius: 999px;
  font: 500 14px/1 var(--sans); text-decoration: none; color: var(--ink-soft);
  transition: color 0.25s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__ink {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0;
  border-radius: 999px; background: rgba(46, 29, 19, 0.08);
  opacity: 0; transition: left 0.4s var(--ease), width 0.4s var(--ease), opacity 0.25s;
}
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__status {
  font: 600 12px/1 var(--sans); letter-spacing: 0.04em; color: var(--ink-soft);
  padding: 0 4px; white-space: nowrap;
}
.nav__status.is-open-now { color: var(--mint); }
.nav__status.is-open-now::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(93, 122, 76, 0.2); vertical-align: 1px; }
.nav__call {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 600 14px/1 var(--sans); text-decoration: none;
}
.nav__menu {
  display: none; place-content: center; gap: 5px;
  flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: var(--ink); cursor: pointer;
}
.nav.is-compact .nav__menu { display: grid; }
.nav__menu span:not(.vh) { display: block; width: 16px; height: 1.5px; background: var(--paper); transition: transform 0.4s var(--ease); }
.nav.is-open .nav__menu span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__menu span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* the sound button: a tiny turntable. The record turns slowly all the time; tap it and the
   brass tonearm swings onto the grooves and the record comes up to speed. */
.sound__btn {
  position: relative;
  width: 50px; height: 42px; padding: 0; border: 0;
  background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vinyl {
  position: absolute; left: 2px; top: 3px;
  width: 36px; height: 36px; border-radius: 50%;
  box-shadow: 0 3px 8px -2px rgba(0, 0, 0, 0.55), 0 0 0 1.5px rgba(46, 29, 19, 0.85);
  transition: transform 0.4s var(--ease);
}
.sound__btn:hover .vinyl { transform: scale(1.06); }
.vinyl__disc {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    /* the grooves: fine rings with a slightly wider gap near the edge and around the label */
    radial-gradient(circle, transparent 0 33%, #120b08 33% 37%, transparent 37% 86%, #0d0806 86% 89%, transparent 89%),
    repeating-radial-gradient(circle, #1d130e 0 0.7px, #2c1e16 0.7px 1.4px, #191009 1.4px 2px);
  animation: spin 7s linear infinite;
}
.vinyl__label {
  position: absolute; inset: 33%; border-radius: 50%;
  background:
    radial-gradient(circle, #f4ece0 0 10%, #120b08 10% 16%, transparent 17%),
    conic-gradient(from 0deg, var(--maple) 0 14%, var(--berry) 14% 50%, var(--berry-deep) 50% 64%, var(--berry) 64%);
  box-shadow: inset 0 0 0 1px rgba(251, 247, 240, 0.35);
}
/* light catching the grooves: stays put while the record turns underneath it */
.vinyl__shine {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 300deg, transparent 0 4%, rgba(255, 245, 230, 0.32) 9%, transparent 15% 50%, rgba(255, 245, 230, 0.22) 59%, transparent 65%);
  -webkit-mask: radial-gradient(circle, transparent 0 36%, #000 37%);
          mask: radial-gradient(circle, transparent 0 36%, #000 37%);
}
.vinyl__arm {
  position: absolute; left: 41px; top: 5px;
  width: 3px; height: 25px; margin-left: -1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8a6a38, #ecd29b 45%, #a8834a);
  transform-origin: 50% 2px;
  transform: rotate(-8deg);
  transition: transform 0.7s cubic-bezier(0.34, 1.3, 0.5, 1);
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.35);
}
.vinyl__arm::before { /* the pivot */
  content: ''; position: absolute; left: 50%; top: -3px;
  width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3dfb0, #9a7640 70%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.vinyl__arm::after { /* the headshell */
  content: ''; position: absolute; left: 50%; bottom: -3px;
  width: 6px; height: 6px; margin-left: -3px; border-radius: 1.5px;
  background: #2e1d13;
}
.sound__btn.is-on .vinyl__arm { transform: rotate(27deg); }
.sound__btn.is-on .vinyl__disc { animation-duration: 1.8s; }
.sound__btn.is-hinting .vinyl__arm { animation: nudge 1.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge { 0%, 100% { transform: rotate(-8deg); } 30% { transform: rotate(10deg); } 55% { transform: rotate(-2deg); } }

.sound-hint {
  position: fixed; z-index: 60;
  display: flex; align-items: center; gap: 2px;
  padding: 4px 4px 4px 6px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.sound-hint.is-on { opacity: 1; transform: none; }
.sound-hint__arrow { position: absolute; top: -5px; left: var(--arrow, 50%); width: 10px; height: 10px; margin-left: -5px; background: var(--ink); transform: rotate(45deg); }
.sound-hint__play { padding: 9px 10px; border: 0; background: none; font: 500 14px/1 var(--sans); cursor: pointer; }
.sound-hint__x { position: relative; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); cursor: pointer; }
.sound-hint__x i { position: absolute; left: 9px; top: 14px; width: 12px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.sound-hint__x i + i { transform: rotate(-45deg); }

/* phone menu sheet */
.sheet {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 100px var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--paper);
  clip-path: circle(0 at calc(100% - 40px) 40px);
  transition: clip-path 0.7s var(--ease);
}
.sheet.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.sheet__links, .sheet__foot { width: min(100%, 760px); margin-inline: auto; }
.sheet__links { display: grid; gap: 4px; }
.sheet__links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font: 400 40px/1.1 var(--serif); text-decoration: none;
}
.sheet__links small { font: 600 12px/1 var(--sans); color: var(--berry); }
.sheet__status { margin: 0 0 14px; font-weight: 600; color: var(--ink-soft); }
.sheet__actions { display: grid; gap: 10px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--stone);
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  /* the 9deg and 0.32 match TURN and ZOOM in main.js, which keeps the plaque on the plate */
  transform: rotate(calc(var(--p, 0) * 9deg)) scale(calc(1 + var(--p, 0) * 0.32));
  will-change: transform;
}
.hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__full { opacity: 0; transition: opacity 0.6s; }
.hero__video { opacity: 0; }
.hero__video.is-playing { opacity: 1; }
.hero.is-still .hero__full { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(46, 29, 19, 0.38), transparent 26%),
    radial-gradient(ellipse at center, transparent 55%, rgba(46, 29, 19, 0.16));
}

/* the ring counter, ticking along with the video */
.hero__ticker {
  position: absolute; z-index: 2;
  left: var(--gutter); top: max(92px, calc(env(safe-area-inset-top) + 84px));
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(251, 247, 240, 0.86);
  box-shadow: 0 10px 24px -16px rgba(46, 29, 19, 0.5);
  transition: opacity 0.6s, transform 0.6s var(--ease);
}
.hero__ring-no {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font: 600 12px/1 var(--sans); letter-spacing: 0.04em;
}
.hero__ring-name { font: italic 400 18px/1 var(--serif); }
.hero__ticker.is-tick .hero__ring-no { animation: tick 0.5s var(--ease); }
.hero__ticker.is-tick .hero__ring-name { animation: slide 0.5s var(--ease); }
@keyframes tick { from { transform: scale(0.6) rotate(-90deg); } }
@keyframes slide { from { opacity: 0; transform: translateY(8px); } }
.hero.is-set .hero__ticker { opacity: 0; transform: translateY(-10px); pointer-events: none; }

/* the plaque: starts exactly the size of the empty plate in the video, then lifts up off the table */
.plaque {
  --size: clamp(230px, 40vmin, 380px);
  position: absolute; z-index: 3;
  left: 50%; top: 50%;
  width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  pointer-events: none;
  /* sits on the plate's measured centre and turns/zooms with the table on scroll (set in main.js) */
  transform: translate(var(--px, 0px), var(--py, 0px)) scale(var(--s, 1));
}
.plaque__lift {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  transform: scale(var(--k, 0.5));
  opacity: 0;
  transition: transform 1.3s cubic-bezier(0.34, 1.4, 0.5, 1), opacity 0.4s;
}
.hero.is-set .plaque__lift { --k: 1; opacity: 1; }
.plaque__disc {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-content: center; text-align: center;
  padding: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, #fffdf8, #f6eee1 58%, #ece1cf);
  box-shadow:
    inset 0 0 0 calc(var(--size) * 0.035) #f8f2e8,
    inset 0 0 0 calc(var(--size) * 0.04) rgba(46, 29, 19, 0.08),
    0 2px 3px rgba(46, 29, 19, 0.12);
  transition: box-shadow 1.3s var(--ease);
}
.hero.is-set .plaque__disc {
  box-shadow:
    inset 0 0 0 calc(var(--size) * 0.035) #f8f2e8,
    inset 0 0 0 calc(var(--size) * 0.04) rgba(46, 29, 19, 0.08),
    0 40px 60px -24px rgba(46, 29, 19, 0.55),
    0 12px 22px -10px rgba(46, 29, 19, 0.35);
}
.plaque__disc > * { opacity: 0; transform: translateY(8px); transition: opacity 0.6s, transform 0.8s var(--ease); }
.hero.is-set .plaque__disc > * { opacity: 1; transform: none; }
.hero.is-set .plaque__disc > :nth-child(1) { transition-delay: 0.55s; }
.hero.is-set .plaque__disc > :nth-child(2) { transition-delay: 0.7s; }
.hero.is-set .plaque__disc > :nth-child(3) { transition-delay: 0.85s; }
.plaque__eyebrow { margin: 0 0 6px; font: 600 calc(var(--size) * 0.032)/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--berry); }
.plaque__name {
  margin: 0;
  font: 400 calc(var(--size) * 0.15)/0.92 var(--serif);
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
}
.plaque__name span { display: block; font-style: italic; font-size: 0.5em; color: var(--ink-soft); }
.plaque__name .plaque__cafe { font-size: 1em; color: var(--berry); }
.plaque__sub { margin: 10px 0 0; font: italic 400 calc(var(--size) * 0.048)/1 var(--serif); color: var(--ink-soft); }
.plaque__stamp {
  position: absolute; inset: -17%;
  width: 134%; height: 134%;
  overflow: visible;
  opacity: 0;
  transition: opacity 1s 1s;
}
.hero.is-set .plaque__stamp { opacity: 1; animation: spin 40s linear infinite; }
.plaque__stamp text { font: 600 9.5px/1 var(--sans); letter-spacing: 0.24em; fill: var(--paper); }
.plaque__stamp::before { content: none; }

.hero__bar {
  position: absolute; z-index: 4;
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 0 var(--gutter) max(22px, calc(env(safe-area-inset-bottom) + 14px));
}
.hero__actions { display: flex; gap: 10px; }
.again {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 0; border-radius: 999px;
  background: rgba(46, 29, 19, 0.55); color: var(--paper);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 14px/1 var(--sans); cursor: pointer;
  opacity: 0; transition: opacity 0.6s 1.4s, background 0.25s;
}
.again svg { width: 16px; height: 16px; fill: currentColor; }
.again:hover { background: rgba(46, 29, 19, 0.75); }
.hero.is-set .again { opacity: 1; }

/* ---------- ring by ring ---------- */
.rings {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  max-width: 1240px; margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--gutter) 60px;
}
.rings__stage { position: relative; }
.rings__art {
  --a: 0; --b: 60;
  position: sticky; top: calc(50vh - min(42vw, 560px) / 2 + 20px);
  width: 100%; aspect-ratio: 1;
  max-width: 560px; margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 50px 80px -40px rgba(46, 29, 19, 0.55);
  container-type: inline-size;
  transition: --a 0.9s var(--ease), --b 0.9s var(--ease);
}
.rings__art img { width: 100%; height: 100%; object-fit: cover; transform: rotate(calc(var(--turn, 0) * 1deg)); transition: transform 1.2s var(--ease); }
.rings__dim {
  position: absolute; inset: 0;
  background: rgba(244, 236, 224, 0.8);
  -webkit-mask: radial-gradient(circle closest-side at 50% 49.5%, #000 calc(var(--a) * 2% - 0.6%), transparent calc(var(--a) * 2%), transparent calc(var(--b) * 2%), #000 calc(var(--b) * 2% + 0.6%));
          mask: radial-gradient(circle closest-side at 50% 49.5%, #000 calc(var(--a) * 2% - 0.6%), transparent calc(var(--a) * 2%), transparent calc(var(--b) * 2%), #000 calc(var(--b) * 2% + 0.6%));
  opacity: 0; transition: opacity 0.6s;
}
.rings__art.is-lit .rings__dim { opacity: 1; }
.rings__halo {
  position: absolute; left: 50%; top: 49.5%;
  width: calc(var(--b) * 2cqw); height: calc(var(--b) * 2cqw);
  border: 1.5px dashed rgba(46, 29, 19, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.6s;
  animation: spin 30s linear infinite;
  animation-name: halo;
}
@keyframes halo { to { transform: translate(-50%, -50%) rotate(360deg); } }
.rings__art.is-lit .rings__halo { opacity: 1; }
.rings__label {
  position: absolute; left: 50%; top: calc(49.5% - var(--b) * 1cqw);
  padding: 7px 13px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 600 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5);
  opacity: 0; transition: opacity 0.5s;
}
.rings__art.is-lit .rings__label { opacity: 1; }

.rings__head { padding-bottom: 6vh; }
.rings__head p:last-child { color: var(--ink-soft); max-width: 34ch; }
.ring-step {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6vh 0;
  opacity: 0.28;
  transition: opacity 0.6s;
}
.ring-step.is-active { opacity: 1; }
.ring-step__no { margin: 0 0 12px; font: 600 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--maple); }
.ring-step h3 { margin: 0 0 16px; font: 400 clamp(28px, 3.6vw, 44px)/1.08 var(--serif); letter-spacing: -0.01em; }
.ring-step p { margin: 0 0 10px; max-width: 40ch; color: var(--ink-soft); }
.ring-step__photo {
  margin: 4px 0 18px;
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 50px -30px rgba(46, 29, 19, 0.55);
  transform: rotate(-2deg) translateY(20px);
  transition: transform 0.9s var(--ease);
}
.ring-step:nth-of-type(odd) .ring-step__photo { transform: rotate(2deg) translateY(20px); }
.ring-step.is-active .ring-step__photo { transform: rotate(-1deg); }
.ring-step:nth-of-type(odd).is-active .ring-step__photo { transform: rotate(1deg); }
.ring-step__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- hours ---------- */
.hours { padding: clamp(80px, 11vw, 130px) var(--gutter); background: var(--paper); }
.hours__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.hours__status { margin: 0 0 28px; font-weight: 600; color: var(--ink-soft); }
.hours__status.is-open-now { color: var(--mint); }
.dayline {
  position: relative;
  height: 14px; margin: 52px 6px 56px;
  border-radius: 99px;
  background: var(--stone);
}
.dayline__open { position: absolute; top: 0; bottom: 0; left: calc(6 / 24 * 100%); width: calc(8 / 24 * 100%); border-radius: 99px; background: linear-gradient(90deg, var(--maple), var(--berry)); }
.dayline__now { position: absolute; top: -9px; bottom: -9px; left: calc(var(--now, 0) * 100%); width: 0; opacity: 0; transition: opacity 0.4s; }
.dayline__now.is-on { opacity: 1; }
.dayline__now i { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.dayline__now::after {
  content: 'now'; position: absolute; top: -20px; left: 0; transform: translateX(-50%);
  font: 600 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
}
.dayline b { position: absolute; top: 24px; left: calc(var(--h) / 24 * 100%); transform: translateX(-50%); font: 600 13px/1 var(--sans); }
.dayline b.dayline__end { font-weight: 500; color: var(--ink-soft); font-size: 11px; }
.dayline b.dayline__from { transform: none; }
.dayline b.dayline__to { transform: translateX(-100%); }
.hours__table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.hours__table th, .hours__table td { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.hours__table th { text-align: left; font-weight: 500; }
.hours__table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours__table tr.is-today th, .hours__table tr.is-today td { color: var(--berry); font-weight: 700; }

/* ---------- visit ---------- */
.visit {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(28px, 5vw, 70px);
  max-width: 1240px; margin: 0 auto;
  padding: clamp(80px, 11vw, 130px) var(--gutter);
}
.visit__info p { color: var(--ink-soft); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.visit__map { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -36px rgba(46, 29, 19, 0.55); }
.visit__map iframe { width: 100%; height: 100%; border: 0; filter: sepia(0.25) saturate(0.9); }

/* ---------- footer, dock ---------- */
.foot {
  padding: 60px var(--gutter) calc(110px + env(safe-area-inset-bottom));
  background: var(--ink); color: rgba(251, 247, 240, 0.8);
  text-align: center; font-size: 15px;
}
.foot__mark { margin: 0 0 10px; font: 400 32px/1 var(--serif); color: var(--paper); }
.foot__mark em { color: #e48a95; }
.foot a { color: var(--paper); }
.foot__note { max-width: 520px; margin: 22px auto 0; font-size: 13px; color: rgba(251, 247, 240, 0.55); }

.dock { display: none; }

/* ---------- reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- tablet and phone ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__status { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 6px 6px 6px 8px; }
  .nav__name { font-size: 16px; }
  .nav__call { display: none; }
  .nav__menu { display: grid; }

  .plaque { --size: min(68vw, 300px); }
  .hero__ticker { top: auto; bottom: calc(150px + env(safe-area-inset-bottom)); }
  .hero__bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__bar .pill { align-self: center; }
  .hero__actions .btn { flex: 1; }
  .again { position: absolute; right: var(--gutter); top: calc(-40px - 4px); }

  .rings { grid-template-columns: 1fr; gap: 0; padding-top: 70px; }
  .rings__stage { position: sticky; top: 0; z-index: 2; padding: 76px 0 40px; background: linear-gradient(var(--cream) 86%, rgba(244, 236, 224, 0)); }
  .rings__art { position: relative; top: 0; width: min(70vw, 38svh); }
  .rings__head { padding-top: 12px; }
  .ring-step { min-height: 64svh; padding: 2svh 0 8svh; justify-content: flex-start; }
  .ring-step__photo { width: min(64vw, 260px); }

  .visit { grid-template-columns: 1fr; }

  .dock {
    position: fixed; z-index: 40;
    left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    padding: 6px; border-radius: 999px;
    background: rgba(46, 29, 19, 0.9);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: translateY(140%); transition: transform 0.5s var(--ease);
  }
  .dock.is-shown { transform: none; }
  .dock a { display: grid; place-items: center; min-height: 46px; border-radius: 999px; color: var(--paper); font-weight: 600; text-decoration: none; }
  .dock a:first-child { background: var(--berry); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
