/* ═══════════════════════════════════════════════════════════════
   34 MAYFAIR — "One Day at No. 34"
   The Hour (scroll clock) · The House Number · The Gold Rim
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* palette */
  --linen: #F5F0E6;
  --ivory: #EAE0CF;
  --walnut: #211812;
  --piano: #0F0D0B;
  --gold: #B99056;
  --brass: #D1B37A;
  --cognac: #9D4E2D;
  --oxblood: #651E21;
  --claret: #7B2E25;
  --green: #174538;
  --taupe: #74675A;
  --espresso: #29221C;

  /* the Hour — driven by JS every frame */
  --bg: #F5F0E6;
  --ink: #29221C;
  --soft: #74675A;

  /* type */
  --serif: 'Marcellus', 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', sans-serif;
  --text: 'Hanken Grotesk', 'Helvetica Neue', sans-serif;
  --italic: 'Cormorant Garamond', Georgia, serif;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-ui: 200ms;
  --dur-reveal: 600ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

::selection { background: color-mix(in srgb, var(--gold) 35%, transparent); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* ─────────────────────────── type voices ─────────────────────── */

.serif { font-family: var(--serif); }

.sc {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-feature-settings: "smcp";
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
}

.display-2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1.14;
}

.lede {
  font-family: var(--text);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--soft);
  max-width: 34ch;
}

.body-copy {
  max-width: 58ch;
  color: var(--soft);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

/* the maître d's italic — five phrases on the whole site */
.voice {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--gold);
  letter-spacing: 0.01em;
}

/* house-number kicker — the deliberate section grammar */
.kicker {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(1.2rem, 3vh, 2.2rem);
}

.kicker-no {
  font-size: 1.05rem;
  color: var(--gold);
  white-space: nowrap;
}

.kicker-rule {
  width: 2.2rem;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 70%, transparent);
  align-self: center;
  flex: none;
}

.kicker .sc { color: var(--soft); }

/* menu lines with dot leaders */
.menu-line {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  font-size: 0.98rem;
}

.menu-line .dots {
  flex: 1;
  min-width: 2em;
  border-bottom: 1px dotted color-mix(in srgb, var(--gold) 55%, transparent);
  transform: translateY(-0.3em);
}

.menu-line .price {
  font-size: 1.02rem;
  color: var(--ink);
}

/* ─────────────────────────── buttons ─────────────────────────── */

.btn {
  display: inline-block;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ink);
  padding: 0.85em 1.6em;
  text-decoration: none;
  transition: transform var(--dur-press) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              color var(--dur-ui) var(--ease-out),
              background-color var(--dur-ui) var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  border: 1px solid color-mix(in srgb, var(--gold) 75%, transparent);
  border-radius: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
  .btn-quiet:hover { color: var(--gold); }
}

.btn-quiet {
  padding-left: 0.4em;
  padding-right: 0.4em;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;
  align-items: center;
}

/* ─────────────────────────── the gold rim ────────────────────── */

.rim { position: relative; }

.rim::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid color-mix(in srgb, var(--gold) 65%, transparent);
  pointer-events: none;
}

.rim img { width: 100%; height: 100%; object-fit: cover; }

.rim figcaption,
.rim + figcaption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.1rem;
  color: #F5F0E6;
  text-shadow: 0 1px 8px rgba(15, 13, 11, 0.55);
}

/* ─────────────────────────── grain ───────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─────────────────────────── prologue ────────────────────────── */
/* The table is set. Near darkness, one warm pool of light, the
   plate, then the place card: Welcome to 34.                      */

.prologue {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  cursor: pointer;
  transition: opacity 600ms var(--ease-out), visibility 0s 600ms;
}

.prologue.is-done { opacity: 0; visibility: hidden; }

/* the darkness — a separate layer, so it can dissolve and reveal
   the hero while the plate is still travelling on the canvas above */
.prologue-veil {
  position: absolute;
  inset: 0;
  background: #0D0A07;
}

/* the pool of candlelight above the table */
.prologue-pool {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse 62% 48% at 50% 42%,
      rgba(214, 160, 96, 0.22) 0%,
      rgba(140, 96, 52, 0.10) 42%,
      transparent 72%);
  pointer-events: none;
}

.prologue-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.prologue-skip {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  color: var(--brass);
  opacity: 0;
  letter-spacing: 0.22em;
}

/* fallback: the logo sweep, when WebGL or the assets can't serve */
.prologue-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
}

.prologue.is-fallback { background: var(--linen); }

.prologue.is-fallback .prologue-fallback { display: flex; }

.prologue.is-fallback .prologue-veil,
.prologue.is-fallback .prologue-pool,
.prologue.is-fallback .prologue-canvas,
.prologue.is-fallback .prologue-skip { display: none; }

.prologue-mark {
  position: relative;
  width: min(38vw, 300px);
  overflow: hidden;
}

.prologue-mark img {
  width: 100%;
  filter: brightness(0.82) saturate(0.7);
  transition: filter 1400ms var(--ease-in-out);
}

.prologue.is-lit .prologue-mark img { filter: brightness(1) saturate(1.05); }

.prologue-sweep {
  position: absolute;
  inset: -20%;
  background: linear-gradient(105deg,
    transparent 38%,
    rgba(255, 236, 200, 0.55) 50%,
    transparent 62%);
  transform: translateX(-110%);
  mix-blend-mode: overlay;
}

.prologue.is-lit .prologue-sweep {
  transform: translateX(110%);
  transition: transform 1600ms var(--ease-in-out);
}

.prologue-line {
  color: var(--taupe);
  opacity: 0;
  transition: opacity 800ms var(--ease-out) 400ms;
}

.prologue.is-lit .prologue-line { opacity: 1; }

/* ─────────────────────────── navigation ──────────────────────── */

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 200;
  background: var(--ivory);
  color: var(--espresso);
  padding: 0.8em 1.4em;
  transition: top var(--dur-ui) var(--ease-out);
}

.skip-link:focus { top: 1rem; }

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1rem, 2.5vh, 1.6rem) clamp(1.2rem, 4vw, 3.2rem);
  background: linear-gradient(color-mix(in srgb, var(--bg) 88%, transparent), transparent);
  color: var(--ink);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-no {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--gold);
}

.wordmark-name { letter-spacing: 0.28em; }

.btn-reserve {
  border: 1px solid color-mix(in srgb, var(--gold) 75%, transparent);
  border-radius: 2px;
  color: var(--ink);
  padding: 0.7em 1.3em;
}

/* ─────────────────────────── scenes, shared ──────────────────── */

.scene {
  position: relative;
  padding: clamp(6rem, 16vh, 12rem) clamp(1.2rem, 5vw, 4rem);
}

/* evening sits closer */
.scene-bar, .scene-live, .scene-private, .scene-final {
  padding-top: clamp(4.5rem, 12vh, 9rem);
  padding-bottom: clamp(4.5rem, 12vh, 9rem);
}

/* text reveal — one orchestrated stagger per section, once */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(2px);
}

.is-in .reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out),
              filter var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ─────────────────────────── No. 01 arrival ──────────────────── */

/* the first frame — everything fits one screen, on every screen */
.scene-arrival {
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding-top: clamp(4.5rem, 11vh, 7rem);
  padding-bottom: clamp(1.5rem, 5vh, 3.5rem);
}

.arrival-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
  position: relative;
}

.arrival-copy { padding-left: clamp(0rem, 3vw, 3rem); }

.arrival-copy .display {
  font-size: clamp(2.6rem, min(9vw, 15.5svh), 7.5rem);
  margin-bottom: clamp(0.9rem, 2.4svh, 1.6rem);
}

.arrival-copy .lede { margin-bottom: clamp(1.4rem, 4svh, 2.6rem); }

.arrival-hero {
  /* sized from the viewport, never past the fold */
  height: min(calc(100svh - clamp(7rem, 17vh, 11.5rem)), 840px);
  min-height: 300px;
}

.arrival-inset {
  position: absolute;
  left: calc(42% - clamp(4rem, 8vw, 8rem));
  bottom: clamp(-1.25rem, -2svh, -0.75rem);
  width: clamp(130px, 15vw, 220px);
  height: clamp(170px, 21vw, 300px);
  box-shadow: 0 24px 60px -30px rgba(41, 34, 28, 0.45);
}

/* short laptop screens: tighten the copy before shrinking the room */
@media (max-height: 740px) and (min-width: 901px) {
  .arrival-copy .kicker { margin-bottom: 0.9rem; }
  .arrival-copy .lede { font-size: 1rem; }
  .arrival-inset { display: none; }
}

/* ─────────────────────────── No. 02 the room ─────────────────── */

.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1500px;
  margin-inline: auto;
}

.room-photo {
  height: min(80vh, 820px);
  margin-left: calc(clamp(1.2rem, 5vw, 4rem) * -1);
}

.room-copy .display-2 { margin-bottom: 1.6rem; max-width: 20ch; }

/* ─────────────────────────── No. 03 the table ────────────────── */

.scene-table { padding-right: 0; }

.table-head {
  max-width: 1500px;
  margin-inline: auto;
  padding-right: clamp(1.2rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.table-head .display-2 { margin-bottom: 1.2rem; }

.table-head .body-copy { margin-bottom: 1.4rem; }

.drift {
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 1.2rem;
  padding-right: clamp(1.2rem, 5vw, 4rem);
  cursor: grab;
  scrollbar-width: none;
}

.drift::-webkit-scrollbar { display: none; }

.drift.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.plate {
  flex: 0 0 clamp(260px, 30vw, 420px);
  scroll-snap-align: start;
}

.plate img {
  height: clamp(340px, 42vw, 540px);
  pointer-events: none;
}

.plate .menu-line {
  position: static;
  margin-top: 1rem;
  color: var(--ink);
  text-shadow: none;
}

.table-note {
  display: block;
  margin-top: 1.6rem;
  color: var(--soft);
}

/* ─────────────────────────── No. 04 the grill ────────────────── */

.grill-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-rows: auto auto;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  max-width: 1500px;
  margin-inline: auto;
  align-items: start;
}

.grill-photo-main {
  grid-row: 1 / 3;
  height: min(88vh, 900px);
}

.grill-copy { padding-top: clamp(1rem, 4vh, 3rem); }

.grill-copy .display-2 { margin-bottom: 1.6rem; max-width: 16ch; }

.grill-copy .body-copy { margin-bottom: 1.6rem; }

.grill-photo-inset {
  width: clamp(220px, 24vw, 340px);
  height: clamp(300px, 32vw, 460px);
  justify-self: start;
}

/* ─────────────────────────── No. 05 meridian ─────────────────── */
/* No handle, no instruction: dusk falls on its own as the guest
   scrolls. Two photographs of the same table, lunch and lamplight,
   in a scrubbed warm dissolve.                                    */

.meridian-head {
  max-width: 1500px;
  margin-inline: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.6rem, 4vh, 2.8rem);
}

.meridian {
  position: relative;
  max-width: 1500px;
  margin-inline: auto;
  height: min(76vh, 780px);
  overflow: hidden;
}

.meridian picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meridian-day { filter: saturate(1.05) brightness(1.04); }

.meridian-night {
  opacity: 0;
  will-change: opacity, filter;
}

/* the gold rim reads above both photographs */
.meridian.rim::after { z-index: 2; }

.meridian-legend {
  max-width: 1500px;
  margin: 1.6rem auto 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--soft);
}

.meridian-legend .voice {
  text-align: center;
  opacity: 0;
}

.meridian-legend .legend-night { opacity: 0.35; }

/* the calm version: night simply arrives when the section does */
@media (prefers-reduced-motion: reduce) {
  .meridian-night,
  .meridian-legend .voice,
  .meridian-legend .legend-night { transition: opacity 600ms var(--ease-out); }
  .scene-meridian.is-night .meridian-night,
  .scene-meridian.is-night .voice,
  .scene-meridian.is-night .legend-night { opacity: 1; }
}

/* ─────────────────────────── No. 06 the bar ──────────────────── */

.bar-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-rows: auto auto;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  max-width: 1500px;
  margin-inline: auto;
  align-items: start;
}

.bar-photo-main {
  grid-row: 1 / 3;
  height: min(88vh, 900px);
}

.bar-copy { padding-top: clamp(1rem, 4vh, 3rem); }

.bar-copy .display-2 { margin-bottom: 2rem; }

.bar-menu {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  max-width: 30rem;
  margin-bottom: 2rem;
}

.bar-menu .menu-line, .bar-menu .price { color: var(--ink); }

.bar-photo-inset {
  width: clamp(200px, 22vw, 300px);
  height: clamp(280px, 30vw, 420px);
  justify-self: start;
}

.bar-photo-day {
  display: none;
}

@media (min-width: 1100px) {
  .bar-photo-day {
    display: block;
    position: absolute;
    right: clamp(1.2rem, 5vw, 4rem);
    bottom: -8vh;
    width: clamp(180px, 16vw, 250px);
    height: clamp(240px, 22vw, 340px);
  }
  .scene-bar { position: relative; }
}

/* ─────────────────────────── No. 07 live ─────────────────────── */

.scene-live {
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.live-inner {
  max-width: 1500px;
  margin-inline: auto;
  width: 100%;
}

.live-inner .display { margin-bottom: 1.4rem; max-width: 12ch; }

.live-inner .body-copy { margin-bottom: 3rem; }

.live-billing {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  max-width: 34rem;
}

.brass-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--brass) 15%, transparent),
    color-mix(in srgb, var(--brass) 85%, transparent) 50%,
    color-mix(in srgb, var(--brass) 15%, transparent));
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.live-artist { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }

.live-style { color: var(--soft); margin-bottom: 0.8rem; }

/* ─────────────────────────── terrace interlude ───────────────── */

.scene-terrace {
  background: #EFE9D8;
  color: #29221C;
}

.scene-terrace .kicker-no,
.scene-terrace .voice { color: var(--green); }

.scene-terrace .kicker .sc { color: #5B6B58; }

.scene-terrace .body-copy { color: #5B6B58; }

.scene-terrace .btn { color: #29221C; }

.scene-terrace .btn-quiet { border-bottom-color: color-mix(in srgb, var(--green) 55%, transparent); }

.terrace-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1500px;
  margin-inline: auto;
}

.terrace-copy { padding-left: clamp(0rem, 3vw, 3rem); }

.terrace-copy .display-2 { margin-bottom: 1.4rem; }

.terrace-copy .body-copy { margin-bottom: 2.2rem; }

.terrace-photo { height: min(74vh, 720px); }

.terrace-photo::after { border-color: color-mix(in srgb, var(--green) 45%, transparent); }

/* ─────────────────────────── No. 08 private ──────────────────── */

.private-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1500px;
  margin-inline: auto;
}

.private-copy .display-2 { margin-bottom: 1.4rem; }

.private-copy .body-copy { margin-bottom: 2rem; }

.private-caps {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
  color: var(--soft);
}

.private-caps .serif { font-size: 2.2rem; color: var(--ink); }

.private-caps-rule {
  width: 2rem;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 60%, transparent);
  align-self: center;
}

.private-photo {
  height: min(74vh, 720px);
}

.private-photo img { filter: sepia(0.2) brightness(0.72) saturate(1.1); }

/* ─────────────────────────── No. 34 final ────────────────────── */

.scene-final {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.final-door {
  height: min(80vh, 820px);
  position: relative;
}

.final-door img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 45%, #000 55%, transparent 98%);
  mask-image: radial-gradient(120% 100% at 50% 45%, #000 55%, transparent 98%);
}

.final-copy .display { margin-bottom: 2.2rem; }

.final-copy .actions { margin-bottom: 3.2rem; }

.final-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  color: var(--soft);
  font-size: 0.94rem;
  margin-bottom: 2.6rem;
  max-width: 46rem;
}

.detail-label { color: var(--gold); margin-bottom: 0.6rem; }

.final-copy .voice { margin-bottom: 2.6rem; }

.final-note { color: color-mix(in srgb, var(--soft) 60%, transparent); }

/* ─────────────────────────── the place card ──────────────────── */

.booking {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.booking-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 11, 0.62);
  opacity: 1;
  transition: opacity var(--dur-ui) var(--ease-out);
}

.booking[hidden] { display: none; }

.place-card {
  position: relative;
  width: min(480px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--linen);
  color: var(--espresso);
  padding: 2.6rem 2.4rem 1.6rem;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  border-radius: 2px;
}

.place-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid color-mix(in srgb, var(--gold) 65%, transparent);
  pointer-events: none;
}

.card-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  z-index: 2;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--taupe);
  cursor: pointer;
  padding: 0.4rem;
  transition: color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out);
}

.card-close:active { transform: scale(0.97); }

.card-head {
  text-align: center;
  margin-bottom: 1.6rem;
}

.card-mark {
  width: 74px;
  margin: 0 auto 0.8rem;
}

.card-sub { color: var(--taupe); }

.card-lines {
  list-style: none;
  text-align: center;
  margin-bottom: 1.8rem;
  min-height: 1.4rem;
}

.card-lines li {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--espresso);
}

.card-lines li + li::before {
  content: "·";
  display: block;
  color: color-mix(in srgb, var(--gold) 75%, transparent);
  line-height: 0.9;
  font-family: var(--text);
}

.card-step { min-height: 12rem; }

/* instant steps — 120ms opacity settle only */
.card-step .step { animation: settle 120ms ease-out; }

@keyframes settle {
  from { opacity: 0; }
  to { opacity: 1; }
}

.step-title {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--taupe);
  text-align: center;
  margin-bottom: 1.2rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.chip {
  background: none;
  border: 1px solid color-mix(in srgb, var(--taupe) 35%, transparent);
  border-radius: 2px;
  color: var(--espresso);
  font-family: var(--serif);
  font-size: 1.02rem;
  padding: 0.55em 0.95em;
  cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-out),
              background-color var(--dur-ui) var(--ease-out),
              transform var(--dur-press) var(--ease-out);
}

.chip:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--gold); }
}

.chip.is-off {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--taupe) 55%, transparent);
}

.chip-note {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 0.25em;
}

.step-aside {
  text-align: center;
  font-size: 0.86rem;
  color: var(--taupe);
}

.step-aside button, .step-aside a {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--espresso);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  cursor: pointer;
}

/* details form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--taupe);
  margin-bottom: 0.35rem;
}

.field input, .field select, .field textarea {
  width: 100%;
  background: color-mix(in srgb, #fff 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--taupe) 30%, transparent);
  border-radius: 2px;
  padding: 0.65em 0.8em;
  font-family: var(--text);
  font-size: 0.95rem;
  color: var(--espresso);
  transition: border-color var(--dur-ui) var(--ease-out);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field textarea { resize: vertical; min-height: 3.2em; }

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--taupe);
  margin-bottom: 1.2rem;
}

.consent input { margin-top: 0.25em; accent-color: var(--gold); }

/* ── sign in — the concierge's quiet question ── */

.auth {
  max-width: 300px;
  margin-inline: auto;
  display: grid;
  gap: 1.1rem;
}

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  width: 100%;
  padding: 0.85em 1.2em;
  background: color-mix(in srgb, #fff 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--taupe) 35%, transparent);
  border-radius: 2px;
  color: var(--espresso);
  cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-out),
              transform var(--dur-press) var(--ease-out);
}

.auth-google:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .auth-google:hover { border-color: var(--gold); }
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--taupe);
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 40%, transparent);
}

.auth .field { margin-bottom: 0.9rem; }

.auth-code {
  width: 100%;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  padding: 0.4em 0;
  background: color-mix(in srgb, #fff 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--taupe) 30%, transparent);
  border-radius: 2px;
  color: var(--espresso);
}

.auth-code:focus {
  outline: none;
  border-color: var(--gold);
}

.auth-note {
  text-align: center;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--taupe) 80%, transparent);
}

.step-submit {
  display: block;
  width: 100%;
  text-align: center;
}

/* confirmation seal */
.seal {
  text-align: center;
  padding: 0.6rem 0 0.4rem;
}

.seal img {
  width: 96px;
  margin: 0 auto 1rem;
  animation: seal 600ms var(--ease-out);
}

@keyframes seal {
  from { opacity: 0; transform: scale(0.92); filter: blur(2px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.seal-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.seal-copy {
  color: var(--taupe);
  font-size: 0.94rem;
  max-width: 30ch;
  margin: 0 auto 1.4rem;
}

.seal-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin-bottom: 0.6rem;
}

.seal-actions a, .seal-actions button {
  background: none;
  border: none;
  padding: 0.2em 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--espresso);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  cursor: pointer;
  text-decoration: none;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--taupe) 20%, transparent);
}

.link-back {
  background: none;
  border: none;
  color: var(--espresso);
  cursor: pointer;
  padding: 0.2em 0;
}

.foot-note { color: color-mix(in srgb, var(--taupe) 75%, transparent); margin-left: auto; }

/* ─────────────────────────── the day rail ────────────────────── */
/* The scrollbar is the day. A brass hairline from 11:00 to
   midnight; the hour-dot is the thumb. Drag it to move the sun. */

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.day-rail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  padding-right: clamp(1rem, 2vw, 1.8rem);
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 400ms var(--ease-out);
}

.day-rail.is-awake,
.day-rail:hover {
  opacity: 1;
}

/* the rail steps aside while the place card or prologue holds the room */
body.no-scroll .day-rail {
  opacity: 0;
  visibility: hidden;
}

.rail-track {
  position: relative;
  height: min(60vh, 540px);
  width: 28px;
  pointer-events: auto;
  cursor: ns-resize;
  touch-action: none;
}

.rail-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brass) 15%, transparent),
    color-mix(in srgb, var(--brass) 60%, transparent) 50%,
    color-mix(in srgb, var(--brass) 15%, transparent));
}

.rail-tick {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.rail-tick::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 1px;
  background: color-mix(in srgb, var(--brass) 75%, transparent);
  transition: width var(--dur-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .rail-tick:hover::before { width: 15px; }
}

.rail-label {
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-out);
  pointer-events: none;
}

.rail-tick:hover .rail-label,
.rail-tick:focus-visible .rail-label {
  opacity: 1;
}

.rail-knob {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.rail-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brass) 70%, transparent);
  background: #F0C97A;
  box-shadow: 0 0 12px 2px color-mix(in srgb, #F0C97A 55%, transparent);
}

.rail-time {
  position: absolute;
  right: calc(100% + 0.8rem);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--soft);
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-out);
  white-space: nowrap;
}

.day-rail.is-scrubbing .rail-time,
.day-rail:hover .rail-time {
  opacity: 1;
}

.day-rail.is-dragging .rail-track { cursor: grabbing; }

/* on the phone the day keeps its rail, just slimmer and closer in */
@media (max-width: 900px) {
  .day-rail { padding-right: 0.5rem; }

  .rail-track {
    height: 46vh;
    width: 24px;
  }

  .rail-time { right: calc(100% + 0.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .day-rail { opacity: 1; transition: none; }
  .rail-dot { box-shadow: none; }
}

/* ─────────────────────────── responsive ──────────────────────── */

@media (max-width: 900px) {
  .arrival-grid,
  .room-grid,
  .terrace-grid,
  .private-grid,
  .scene-final,
  .grill-grid,
  .bar-grid {
    grid-template-columns: 1fr;
  }

  .grill-photo-main { grid-row: auto; height: 60vh; }
  .grill-photo-inset { display: none; }

  .scene-arrival {
    padding-top: 5.5rem;
    padding-bottom: 1.25rem;
    min-height: 540px;
  }

  .arrival-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    gap: 1.5rem;
  }

  .arrival-copy { order: 1; padding-left: 0; }

  .arrival-copy .display { font-size: clamp(2.4rem, 11vw, 4rem); }

  .arrival-copy .lede { margin-bottom: 1.3rem; }

  /* the photo takes whatever the copy leaves — always ending at the fold */
  .arrival-hero {
    order: 2;
    flex: 1 1 auto;
    min-height: 200px;
    height: auto;
  }

  .arrival-inset { display: none; }

  .room-photo { margin-left: 0; height: 56vh; }

  .bar-photo-main { grid-row: auto; height: 60vh; }
  .bar-photo-inset { display: none; }

  .final-door { height: 46vh; }
  .final-details { grid-template-columns: 1fr; gap: 1.4rem; }

  .meridian-legend { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .meridian-legend .voice { text-align: left; }

  .form-grid { grid-template-columns: 1fr; }

  .booking { align-items: flex-end; padding: 0; }

  .place-card {
    width: 100%;
    max-height: 90vh;
    border-radius: 10px 10px 0 0;
    animation: sheet 420ms var(--ease-sheet);
  }
}

@keyframes sheet {
  from { transform: translateY(8%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

/* ─────────────────────────── reduced motion ──────────────────── */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .brass-rule { animation: none; }

  .prologue { display: none; }

  .place-card { animation: none; }

  .card-step .step { animation: none; }

  .seal img { animation: none; }

  * { scroll-behavior: auto; }
}
