/* ── The Speakeasy Barbershop ── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=DM+Mono:ital,wght@0,300;0,400;1,300&display=swap');

/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */

:root {
  --bg:         #060402;
  --surface:    #1c1914;
  --card:       #030201;
  --border:     #4a4030;
  --border-hi:  #6a5a3a;
  --gold:       #d4a843;
  --gold-dim:   #9a7830;
  --gold-glow:  rgba(212, 168, 67, 0.14);
  --text:       #f0e8d8;
  --muted:      #a09070;
  --danger:     #c04040;
  --success:    #5aac6c;
  --accent:     #d4a843;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --serif-body: 'Crimson Text', Georgia, serif;
  --mono:       'DM Mono', 'Courier New', monospace;
  --radius:     2px;
}

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

html { scroll-behavior: smooth; }

body {
  background: #060402;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(160,100,30,0.08) 0%, transparent 65%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.003) 0px, rgba(255,255,255,0.003) 1px,
      transparent 1px, transparent 60px
    );
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════
   WELCOME SCREEN — photo bookshelf background
══════════════════════════════════════════════ */

/* Door position relative to the shelf-scene.
   These are only the no-JS fallback — syncDoorVars() in index.html computes
   them per viewport from the door's pixel rect in shelf-bg.jpg (2991×1343),
   so the door stays glued to the centre bookcase at every screen size. */
:root {
  --door-left:   32%;
  --door-top:    2%;
  --door-width:  27%;
  --door-height: 95%;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #0a0704;
  overflow: hidden;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.welcome-overlay.leaving {
  opacity: 0;
  transform: translateY(-3vh);
  pointer-events: none;
}

#booking-page {
  opacity: 0;
  transition: opacity 0.7s ease 0.4s;
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}
#booking-page.page-visible { opacity: 1; }

/* Blurred room photo fills the entire booking page — the room stays with you */
#booking-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/static/room-bg.jpg') center 45% / cover no-repeat;
  filter: blur(10px) brightness(0.28);
  transform: scale(1.06);
  z-index: -1;
  pointer-events: none;
}

/* ── Dust particles ── */

.dust { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.dust-p {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(201, 162, 92, 0.55);
  box-shadow: 0 0 4px rgba(201, 162, 92, 0.4);
  animation: drift linear infinite;
}

@keyframes drift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(-120px) translateX(30px); opacity: 0; }
}

.w-orn {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: rgba(201, 162, 92, 0.55);
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.w-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #e4d9c8;
  line-height: 1.05;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.7);
}

.w-sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.48em;
  color: #dab76a;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.w-rule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 0.7rem;
  max-width: 200px;
}
.w-rule span { flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(74,64,48,0.8), transparent); }
.w-rule em   { font-size: 0.45rem; color: #7a6035; font-style: normal; flex-shrink: 0; }

.w-hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(201, 162, 92, 0.6);
  letter-spacing: 0.06em;
  transition: opacity 0.5s;
  animation: pulse-hint 3s ease-in-out 2s infinite;
  text-shadow: 0 1px 8px rgba(0,0,0,0.95);
  pointer-events: none;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Returning-visitor shortcut past the cinematic ── */
.w-skip {
  pointer-events: auto;
  margin-top: 0.55rem;
  background: none;
  border: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(240, 232, 216, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(240, 232, 216, 0.45);
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(0,0,0,1);
  transition: color 0.25s;
}
.w-skip:hover, .w-skip:focus-visible { color: var(--gold); }

/* ── Welcome header — floats over the photo ── */

.w-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  text-align: center;
  padding: clamp(1.2rem, 4vh, 2.5rem) 1rem clamp(0.8rem, 2vh, 1.5rem);
  background: linear-gradient(180deg, rgba(8,5,2,0.82) 0%, rgba(8,5,2,0.5) 60%, transparent 100%);
  pointer-events: none;
}

/* ── Shelf scene container — photo background ── */

.shelf-scene {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: url('/static/shelf-bg.jpg') 44% center / cover no-repeat;
  /* 3D stage so the bookshelf panel swings with real depth */
  perspective: 1700px;
  perspective-origin: var(--door-left) 50%;
}

/* ── Room behind (military memorabilia room photo) ── */

.room-behind {
  position: absolute;
  inset: 0;
  background: url('/static/room-bg.jpg') center 30% / cover no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease 0.6s;
  z-index: 1;
}
.room-behind.room-visible { opacity: 1; }

/* the space behind the hidden door reads as a dark corner, not a duplicate
   of the shelf photo — clipped to the doorway by JS at door-open */
.door-void {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 130% 80% at 50% 20%,
      rgba(30, 19, 8, 0.5) 0%, transparent 65%),
    #040302;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s ease;
}
.door-void.visible { opacity: 1; }

/* Hide all CSS-painted room elements — the photo provides everything */
.room-glow,
.sconce,
.back-bar,
.menu-board,
.floor-tiles { display: none !important; }

.room-glow {
  position: absolute;
  top: 5%; left: 50%;
  transform: translateX(-50%);
  width: 90%; height: 70%;
  background: radial-gradient(ellipse, rgba(250,175,60,0.55) 0%, rgba(220,130,30,0.25) 40%, transparent 70%);
  pointer-events: none;
}

/* wall sconces */
.sconce { position: absolute; top: 18%; width: 28px; height: 44px; }
.sconce-l { left: 12%; }
.sconce-r { right: 12%; }

.sconce::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 32px;
  background: linear-gradient(180deg, #2a1a08, #1a0e05);
  border: 1px solid #4a3018;
  border-radius: 2px 2px 0 0;
}

.sconce::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 20px;
  background: linear-gradient(180deg, #ffe060, #f09020);
  border-radius: 50% 50% 20% 20%;
  box-shadow:
    0 0 30px 16px rgba(255,200,60,0.85),
    0 0 70px 30px rgba(230,140,30,0.6),
    0 0 120px 50px rgba(200,100,20,0.35);
}

.sconce-flame {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 13px;
  background: linear-gradient(180deg, #ffe060, #ff9900);
  border-radius: 50% 50% 30% 30%;
  animation: flicker 1.8s ease-in-out infinite;
  box-shadow: 0 0 16px 8px rgba(255,200,60,0.7);
}

@keyframes flicker {
  0%, 100% { transform: translateX(-50%) scaleX(1) scaleY(1) rotate(-1deg); }
  30%       { transform: translateX(-50%) scaleX(0.8) scaleY(1.1) rotate(2deg); }
  60%       { transform: translateX(-50%) scaleX(1.1) scaleY(0.9) rotate(-2deg); }
}

/* ── Back bar ── */

.back-bar {
  position: absolute;
  bottom: 22%; left: 50%;
  transform: translateX(-50%);
  width: min(75%, 420px);
}

.bar-mirror {
  position: absolute;
  bottom: 100%; left: 5%; right: 5%;
  height: 110px;
  background: linear-gradient(180deg, rgba(200,155,70,0.22) 0%, rgba(180,130,50,0.32) 100%);
  border: 1px solid #6a5028;
  border-bottom: none;
  box-shadow: inset 0 0 20px rgba(200,150,50,0.1);
}
.bar-mirror::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201,162,92,0.15);
}

.bottle-row {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 12%; right: 12%;
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  justify-content: center;
  z-index: 2;
}

.bottle {
  width: var(--bw, 16px);
  height: var(--bh, 90px);
  background: var(--bc, #3a4a2a);
  border-radius: 2px 2px 0 0;
  position: relative;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.5), inset 1px 0 2px rgba(255,255,255,0.06);
}
.bottle::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 18%;
  background: rgba(255,255,255,0.06);
  border-radius: 1px 1px 0 0;
}
.bottle::after {
  content: '';
  position: absolute;
  top: -8px; left: 25%; right: 25%;
  height: 10px;
  background: inherit;
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
  box-shadow: 0 -3px 0 rgba(0,0,0,0.3);
}

.bar-shelf-lip {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 0; right: 0;
  height: 8px;
  background: linear-gradient(180deg, #5a3a18, #3a2010);
  border-top: 1px solid #8a6030;
  z-index: 3;
}

.bar-counter-top {
  height: 12px;
  background: linear-gradient(180deg, #7a5028, #4a2e14);
  border-top: 2px solid #a07840;
  position: relative; z-index: 2;
}

.bar-counter-face {
  height: 50px;
  background: linear-gradient(180deg, #3a2010, #1e1008);
  border-left: 1px solid #3a2a12;
  border-right: 1px solid #3a2a12;
}

/* ── Menu board ── */

.menu-board {
  position: absolute;
  right: 8%; top: 8%;
  width: min(200px, 32%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 1.2s, transform 0.6s ease 1.2s;
}
.room-behind.room-visible .menu-board { opacity: 1; transform: translateY(0); }

.mb-frame {
  background: #1a1208;
  border: 2px solid #4a3a18;
  padding: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6), inset 0 0 30px rgba(0,0,0,0.4);
}

.mb-inner {
  background: linear-gradient(180deg, #0e0c07, #161108);
  border: 1px solid #2e2410;
  padding: 1rem 0.75rem;
  text-align: center;
}

.mb-orn { font-size: 0.55rem; color: #c9a25c; letter-spacing: 0.2em; margin-bottom: 0.4rem; opacity: 0.8; }
.mb-title { font-family: var(--serif); font-size: 0.85rem; font-weight: 400; color: #e4d9c8; letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.mb-divider { font-size: 0.4rem; color: #4a3a18; letter-spacing: 0.05em; margin: 0.3rem 0; }
.mb-body { font-family: var(--serif-body); font-style: italic; font-size: 0.75rem; color: #7a6a4a; line-height: 1.5; margin-bottom: 0.5rem; }

.mb-enter {
  background: #c9a25c;
  border: none;
  color: #0a0807;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  width: 100%;
  margin-top: 0.25rem;
  transition: opacity 0.15s;
}
.mb-enter:hover { opacity: 0.85; }

/* ── Enter overlay — full-screen arrival room ── */

.enter-overlay.room-scene {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background: #030201;
}
.enter-overlay.room-scene.visible { opacity: 1; pointer-events: all; }

/* stage fills the entire overlay */
.room-stage {
  position: absolute;
  inset: 0;
}

/* barbershop image covers the full viewport — no letterboxing */
.room-full {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* full image, never cropped — letterboxed on the dark overlay surround */
  object-fit: contain;
  object-position: center center;
  filter: brightness(0.85) saturate(0.97);
}

/* cinematic vignette — deeper at corners, open in the centre */
.room-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 88% at 50% 50%, transparent 55%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

/* ── The menu — the prominent booking CTA, propped centre-stage ──
   Anchored to the viewport (not a photo feature) so it holds its
   place at every screen size. */
.block-menu-btn {
  position: absolute;
  left: 28%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 4;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .block-menu-btn {
    left: 50%;
    top: auto;
    bottom: 6%;
    transform: translateX(-50%);
  }
}

/* board + text move together on hover; the wrap is a size container so
   the lettering scales in lockstep with the board (cqw units) */
.menu-board-wrap {
  position: relative;
  display: block;
  /* centred — the hint text can make the button wider than the board */
  margin: 0 auto;
  width: clamp(250px, 36vmin, 400px);
  container-type: inline-size;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.block-menu-btn:hover .menu-board-wrap,
.block-menu-btn:focus-visible .menu-board-wrap {
  transform: translateY(-6px) scale(1.045);
}
.block-menu-btn:focus-visible .menu-board-wrap {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

/* dark halo behind the board — separates it from the busy red wall */
.menu-board-wrap::before {
  content: '';
  position: absolute;
  inset: -12% -24%;
  background: radial-gradient(ellipse 52% 50% at 50% 46%,
    rgba(4,3,1,0.6) 0%, rgba(4,3,1,0.34) 55%, transparent 78%);
  pointer-events: none;
}

.block-menu {
  display: block;
  position: relative;
  width: 100%;
  filter:
    drop-shadow(0 12px 26px rgba(0,0,0,1))
    drop-shadow(0 0 26px rgba(212,168,67,0.55));
  transition: filter 0.35s ease;
}
.block-menu-btn:hover .block-menu,
.block-menu-btn:focus-visible .block-menu {
  filter:
    drop-shadow(0 16px 30px rgba(0,0,0,1))
    drop-shadow(0 0 38px rgba(212,168,67,0.8));
}

/* chalk-and-gold lettering inside the board's art-deco frame
   (the PNG is an empty chalkboard — the text lives in HTML so it
   stays razor-sharp and easy for John to edit).
   Writable area measured on the asset: clear chalk surface
   y 22%–60%, scissors motif at 62–72%. */
.menu-text {
  position: absolute;
  left: 21%; right: 21%;
  top: 22%; height: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  pointer-events: none;
  text-align: center;
  /* clean dark chalk patch behind the lettering kills the board's
     glossy reflections and lifts contrast */
  background: radial-gradient(ellipse 62% 58% at 50% 50%,
    rgba(5,4,2,0.72) 0%, rgba(5,4,2,0.4) 62%, transparent 82%);
}
.mt-title {
  font-family: var(--serif);
  font-size: clamp(16px, 2.2vmin, 26px);
  font-size: 6.5cqw;
  line-height: 1.1;
  color: #eec25a;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(238,194,90,0.5), 0 1px 3px rgba(0,0,0,0.95);
}
.mt-orn {
  font-size: clamp(7px, 0.95vmin, 10px);
  font-size: 3cqw;
  color: var(--gold);
  letter-spacing: 0.35em;
}
.mt-item {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(9px, 1.25vmin, 15px);
  font-size: 3.6cqw;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7ecd2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}
.mt-cta {
  margin-top: 0.2em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(10px, 1.3vmin, 15px);
  font-size: 4.2cqw;
  color: #eec25a;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(238,194,90,0.45), 0 1px 3px rgba(0,0,0,0.95);
}

.menu-hint {
  display: block;
  /* out of flow — must not add height to the button, whose bottom edge is
     the easel's feet anchored to the desk surface */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: #f2dda6;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 6px rgba(0,0,0,1), 0 0 18px rgba(0,0,0,0.9);
  animation: pulse-hint 3s ease-in-out 1.5s infinite;
}

/* warm breathing pool of light drawing the eye to the menu */
.menu-spotlight {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 78vmin;
  height: 60vmin;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 44% at 50% 60%,
    rgba(255,190,90,0.22) 0%, rgba(255,170,60,0.10) 45%, transparent 72%);
  pointer-events: none;
  z-index: 3;
  animation: spot-breathe 3.4s ease-in-out 2s infinite;
}
@keyframes spot-breathe {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ── Floor tiles ── */

.floor-tiles {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 22%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px),
    linear-gradient(180deg, #1a1208, #0e0c07);
}

/* ══════════════════════════════════════════════
   CABINET WALL — transparent overlay, door only
   The photo provides the bookshelf visuals.
══════════════════════════════════════════════ */

.cabinet-wall {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  pointer-events: none; /* clicks pass through except on the door */
}

/* LED strip hidden — photo provides the lighting */
.led-strip { display: none; }

/* Grid is now just a transparent positioning layer */
.bay-grid {
  flex: 1;
  position: relative;
  background: transparent;
  display: block; /* no longer a CSS grid */
}

/* All content bays hidden — photo provides the content */
.bay { display: none; }

/* Cabinet plinth hidden */
.cabinet-plinth { display: none; }

/* ── Door bay — positioned over bookshelf centre column ── */

.bay-door {
  display: block !important; /* override the .bay { display:none } */
  position: absolute;
  left:   var(--door-left);
  top:    var(--door-top);
  width:  var(--door-width);
  height: var(--door-height);
  background: transparent;
  box-shadow: none;
  pointer-events: all;
}
.bay-door .bay-back  { display: none; }
.bay-door .bay-shelf { display: none; }
.bay-door .bay-items { display: none; }

.bay-door .door-frame {
  position: absolute;
  inset: 0;
  background: transparent;
  perspective: 900px;
  perspective-origin: 0% 50%;
}

/* Cracks of warm light seeping through the hidden door */
.crack {
  position: absolute;
  background: #f0c050;
  z-index: 3;
  animation: pulse-crack 2.8s ease-in-out infinite;
}
.crack-r {
  right: 0; top: 8%; bottom: 8%;
  width: 1px;
  background: rgba(250, 205, 130, 0.5);
  box-shadow:
    0 0 4px 1px rgba(245,195,110,0.35),
    0 0 12px 3px rgba(220,150,60,0.18);
  opacity: 0 !important;
  transition: opacity 0.4s ease;
  animation: none;
}
.door-frame.hover-active .crack-r {
  opacity: 1 !important;
  animation: pulse-crack 2.8s ease-in-out infinite;
}
/* touch devices can't hover — the light seeping through the crack is the
   only "find the door" cue, so keep it faintly alive there */
@media (hover: none) {
  .crack-r {
    opacity: 0.55 !important;
    animation: pulse-crack 4.5s ease-in-out infinite;
  }
}
/* crack-t and crack-b hidden — their box-shadow bleeds across the photo as yellow bars */
.crack-t { display: none; }
.crack-b { display: none; }

@keyframes pulse-crack {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; }
}

/* Door is invisible (photo shows through) — crack light is the only tell */
.door {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  z-index: 4;
  background: transparent;
  border: none;
}
/* On hover reveal a very subtle warm vignette so user knows where to click */
.door:hover { background: rgba(180, 120, 40, 0.06); }
.door.door-open { transform: rotateY(-82deg); }

/* Door panels hidden — photo is the visual */
.door-panel { display: none; }

/* Knob removed — no glowing handle on the door or the dark opening */
.door-knob-wrap, .door-knob { display: none; }

/* ══════════════════════════════════════════════
   MEMORABILIA ITEMS
══════════════════════════════════════════════ */

.m-book {
  display: inline-block;
  width: var(--w, 17px); height: var(--h, 76px);
  background: var(--c, #2d3f1e);
  flex-shrink: 0;
  position: relative;
  box-shadow: inset -3px 0 5px rgba(0,0,0,0.45), inset 1px 0 2px rgba(255,255,255,0.04);
}
.m-book::before {
  content: '';
  position: absolute;
  top: 12%; left: 0; right: 0;
  height: 1px;
  background: rgba(212,168,67,0.4);
  box-shadow: 0 7px 0 rgba(212,168,67,0.25), 0 14px 0 rgba(212,168,67,0.15);
}

.m-shell {
  display: inline-block;
  position: relative;
  width: 9px; height: var(--h, 52px);
  background: linear-gradient(180deg, #d4a843 0%, #a07828 65%, #7a5818 100%);
  border-radius: 1px 1px 2px 2px;
  flex-shrink: 0;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.3), 1px 0 0 rgba(255,255,255,0.06);
}
.m-shell::before {
  content: '';
  position: absolute;
  top: -10px; left: -1px; right: -1px;
  height: 12px;
  background: linear-gradient(180deg, #e0c050, #a87820);
  border-radius: 50% 50% 0 0;
}
.m-shell::after {
  content: '';
  position: absolute;
  bottom: -3px; left: -2px; right: -2px;
  height: 5px;
  background: linear-gradient(180deg, #5a4012, #3a2808);
  border-radius: 0 0 2px 2px;
}

.m-medal-wrap { display: inline-flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.m-medal-ribbon {
  width: 11px; height: 26px;
  background: repeating-linear-gradient(
    180deg,
    #8b1a1a 0px, #8b1a1a 5px,
    #f0f0f0 5px, #f0f0f0 8px,
    #cc2020 8px, #cc2020 13px,
    #f0f0f0 13px, #f0f0f0 16px,
    #8b1a1a 16px
  );
}
.m-medal-disc {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0d060, #c09020, #8a6010);
  border: 2px solid #d4a843;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-top: -2px;
}

.m-frame {
  display: inline-block;
  width: var(--fw, 52px); height: var(--fh, 62px);
  background: linear-gradient(135deg, #3a2810, #5a3a18);
  border: 4px solid #7a5020;
  outline: 1px solid #3a2010;
  position: relative;
  flex-shrink: 0;
  box-shadow: 2px 3px 10px rgba(0,0,0,0.7);
}
.m-frame::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: linear-gradient(150deg, #3a4830, #2a3820, #1e2c18);
}

.m-trophy { display: inline-block; position: relative; width: 36px; height: 58px; flex-shrink: 0; }
.m-trophy::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 42%;
  background: linear-gradient(180deg, #d4a843, #8a6018, #c8a030);
  border-radius: 4px 4px 14px 14px;
  box-shadow: 0 0 8px rgba(200,160,40,0.4);
}
.m-trophy::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 22%;
  background: linear-gradient(180deg, #8a6018, #5a3a10);
  border-radius: 2px;
  border-top: 1px solid #c8a030;
}

.m-helmet { display: inline-block; position: relative; width: var(--w, 56px); height: var(--h, 44px); flex-shrink: 0; }
.m-helmet::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 78%;
  background: linear-gradient(150deg, #4a5a35, #3a4828, #2a3820);
  border-radius: 50% 50% 30% 30% / 65% 65% 35% 35%;
  box-shadow: inset 0 -3px 8px rgba(0,0,0,0.3), 2px 3px 8px rgba(0,0,0,0.5);
}
.m-helmet::after {
  content: '';
  position: absolute;
  bottom: 3px; left: -3px; right: -3px;
  height: 22%;
  background: linear-gradient(180deg, #3a4828, #2a3018);
  border-radius: 0 0 3px 3px;
  border-top: 2px solid #5a6840;
}

.m-maple {
  display: inline-block;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e04020, #9a2010);
  border: 2px solid #c03018;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 10px rgba(200,50,20,0.25);
  flex-shrink: 0;
  align-self: center;
}

.m-aircraft { position: relative; width: 68px; height: 52px; flex-shrink: 0; align-self: center; }
.m-ac-body {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 100%; height: 8px;
  background: linear-gradient(90deg, #303030, #9a9a9a 35%, #6a6a6a);
  border-radius: 3px 55% 55% 3px / 3px 50% 50% 3px;
}
.m-ac-wing {
  position: absolute;
  top: 18%; left: 18%;
  width: 55%; height: 32%;
  background: linear-gradient(180deg, #5a5a5a, #3a3a3a);
  clip-path: polygon(0% 100%, 45% 0%, 100% 100%);
}
.m-ac-tail {
  position: absolute;
  top: 10%; right: 5%;
  width: 20%; height: 38%;
  background: linear-gradient(180deg, #484848, #3a3a3a);
  clip-path: polygon(0% 100%, 28% 0%, 100% 100%);
}
.m-ac-stand {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 16px;
  background: linear-gradient(180deg, #666, #444);
}
.m-ac-stand::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 4px;
  background: #444;
  border-radius: 1px;
}

.m-dogtag {
  display: inline-block;
  width: 17px; height: 24px;
  background: linear-gradient(160deg, #cccccc, #888888, #cccccc);
  border-radius: 3px 3px 5px 5px;
  border: 1px solid #aaaaaa;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.25);
  position: relative;
  flex-shrink: 0;
  align-self: center;
}
.m-dogtag::before {
  content: '';
  position: absolute;
  top: 3px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1px solid #888;
}

.m-plaque {
  display: inline-block;
  width: var(--pw, 65px); height: var(--ph, 50px);
  background: linear-gradient(160deg, #2a1a08, #3a2410);
  border: 3px solid #8a6028;
  outline: 1px solid #4a2810;
  position: relative;
  flex-shrink: 0;
  box-shadow: 2px 3px 10px rgba(0,0,0,0.6);
  align-self: center;
}
.m-plaque::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212,168,67,0.25);
}
.m-plaque::after {
  content: '';
  position: absolute;
  top: 35%; left: 18%; right: 18%;
  height: 2px;
  background: rgba(212,168,67,0.35);
  box-shadow: 0 7px 0 rgba(212,168,67,0.22), 0 14px 0 rgba(212,168,67,0.14);
}

/* ══════════════════════════════════════════════
   BOOKING PAGE — speakeasy bar menu aesthetic
══════════════════════════════════════════════ */

.page-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ── Site header — large gold serif title ── */

.site-header {
  text-align: center;
  padding-bottom: 2.5rem;
  position: relative;
}

.back-to-shop {
  position: absolute;
  top: -1.5rem; left: 1.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
  z-index: 10;
}
.back-to-shop:hover { color: var(--gold); }

/* thin gold rule above title */
.site-header::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  margin: 0 auto 1.2rem;
  max-width: 380px;
  opacity: 0.55;
}

.header-ornament {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.6em;
  margin-bottom: 0.6rem;
  opacity: 0.7;
}

.site-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7.5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.site-subtitle {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.55em;
  color: rgba(212,168,67,0.55);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.header-rule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 0.5rem;
  max-width: 320px;
}
.header-rule span:first-child,
.header-rule span:last-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}
.rule-diamond { color: var(--gold); font-size: 0.5rem; flex-shrink: 0; }

.header-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(212,168,67,0.5);
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

/* ── Booking card — bar menu, reference image 2 ── */

.booking-card-wrap {
  background: #020100;
  border: 1px solid var(--gold);
  padding: 0;
  overflow: hidden;
  position: relative;
  /* double border effect: outer gold line is the border above,
     gap is the box-shadow, inner gold line is the inner glow ring */
  box-shadow:
    0 0 0 6px #020100,
    0 0 0 7px rgba(212,168,67,0.30),
    0 24px 70px rgba(0,0,0,0.9),
    0 0 40px rgba(0,0,0,0.6);
}

/* inner decorative border */
.booking-card-wrap::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212,168,67,0.22);
  pointer-events: none;
  z-index: 0;
}

/* top-right art deco corner bracket */
.booking-card-wrap::after {
  content: '';
  position: absolute;
  top: 18px; right: 18px;
  width: 28px; height: 28px;
  border-top: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* bottom-left & bottom-right corner brackets */
.card-corner-bl,
.card-corner-br {
  position: absolute;
  bottom: 18px;
  width: 28px; height: 28px;
  pointer-events: none;
  z-index: 1;
  border-bottom: 1.5px solid var(--gold);
  opacity: 0.7;
}
.card-corner-bl { left: 18px;  border-left:  1.5px solid var(--gold); }
.card-corner-br { right: 18px; border-right: 1.5px solid var(--gold); }

/* top-left corner bracket */
.booking-card-wrap > .card-tl {
  position: absolute;
  top: 18px; left: 18px;
  width: 28px; height: 28px;
  border-top: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* ── Step blocks — menu sections ── */

.step-block {
  padding: 1.75rem 2.5rem;
  border-bottom: 1px solid rgba(212,168,67,0.12);
  transition: opacity 0.25s;
  position: relative;
  z-index: 1;
}
.step-block:last-child { border-bottom: none; }

.step-dim { opacity: 0.5; pointer-events: none; }
/* keep the 01/02/03 menu spine fully legible even while the step is locked */
.step-dim .step-label { opacity: 1; }

.step-label {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(212,168,67,0.1);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: rgba(212,168,67,0.45);
}

.step-text {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

/* thin gold rule dividers between sections */
.step-block + .step-block::before {
  content: '— ✦ —';
  display: block;
  text-align: center;
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  color: rgba(212,168,67,0.3);
  margin: 0 0 0 -2.5rem;
  width: calc(100% + 5rem);
  padding: 0.2rem 0 1.75rem;
  border-top: none;
}

/* ── Day strip ── */

.day-strip {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.45rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}
.day-strip::-webkit-scrollbar { height: 3px; }
.day-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.day-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  font-family: var(--serif-body);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.3;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  min-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.day-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.day-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.day-btn.today::after {
  content: '•';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  color: var(--gold);
  line-height: 1;
}

.day-btn.no-slots,
.day-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.day-name {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-date {
  font-size: 0.82rem;
  color: inherit;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ── Slot grid ── */

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0.4rem;
}

.slot-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-family: var(--serif-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0.5rem;
  gap: 0;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.slot-btn:hover { border-color: var(--gold); background: var(--gold-glow); }
.slot-btn.selected { border-color: var(--gold); background: var(--gold-glow); }

.slot-btn.taken {
  background: #060402;
  border-color: #141210;
  cursor: not-allowed;
  pointer-events: none;
}
.slot-btn.taken .slot-hour,
.slot-btn.taken .slot-ampm,
.slot-btn.taken .slot-dur { opacity: 0; }
.slot-btn.taken::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 5px,
    rgba(20,15,10,0.9) 5px, rgba(20,15,10,0.9) 6px
  );
}

.slot-hour {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  /* force lining/tabular figures — Cormorant's old-style numerals render "10" as "IO" */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.slot-ampm {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.slot-dur {
  font-family: var(--mono);
  font-size: 0.5rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.18rem;
}

.slot-placeholder {
  /* lives inside the 4-col slot grid — span it, or it wraps in one cell */
  grid-column: 1 / -1;
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

/* ── Booking summary ── */

.booking-summary {
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1rem;
  margin-bottom: 1.5rem;
}

/* ── Forms ── */

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212,168,67,0.6);
  margin-bottom: 0.4rem;
}

.label-optional {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.6rem;
  opacity: 0.7;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="password"],
textarea,
select {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--radius);
}

input::placeholder, textarea::placeholder {
  color: rgba(160, 144, 112, 0.65);
  opacity: 1;
}

input:focus, textarea:focus, select:focus { border-color: var(--gold); }

textarea { resize: vertical; min-height: 80px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%237a7060' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
select option { background: #0e0c07; color: var(--text); }

/* ── Checkbox ── */

.checkbox-group { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.checkbox-group label {
  font-family: var(--serif-body);
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

.recur-panel { background: rgba(255,255,255,0.015); border: 1px solid var(--border); padding: 1rem; margin-bottom: 1.1rem; }

/* ── Primary button ── */

button[type="submit"],
.btn-primary {
  width: 100%;
  background: var(--gold);
  border: none;
  color: #080604;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 0.5rem;
}

button[type="submit"]:hover:not(:disabled),
.btn-primary:hover { opacity: 0.87; }

button[type="submit"]:disabled {
  background: rgba(212, 168, 67, 0.10);
  border: 1px solid rgba(212, 168, 67, 0.22);
  color: var(--gold-dim);
  cursor: not-allowed;
  opacity: 1;
}

.btn-inner { pointer-events: none; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--serif-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  border-radius: var(--radius);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-family: var(--serif-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: opacity 0.15s;
  border-radius: var(--radius);
}
.btn-danger:hover { opacity: 0.7; }

.btn-approve {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--serif-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: opacity 0.15s;
  border-radius: var(--radius);
}
.btn-approve:hover { opacity: 0.7; }

.link-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--serif-body);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-dim);
}
.link-btn:hover { opacity: 0.8; }

/* ── Squeeze-in ── */

.squeeze-block {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
}
.squeeze-toggle-row { display: flex; align-items: center; gap: 0.75rem; }

/* ── Messages ── */

.msg {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  font-family: var(--serif-body);
}
.msg-success { border-color: rgba(74,140,92,0.4); background: rgba(74,140,92,0.08); color: #6ab87c; }
.msg-error   { border-color: rgba(139,48,48,0.4); background: rgba(139,48,48,0.08); color: #c06060; }

/* ── Booking confirmed ── */

.booking-confirmed { text-align: center; padding: 2rem 0; }
.confirmed-icon { font-size: 2rem; color: var(--gold); margin-bottom: 0.75rem; line-height: 1; }
.confirmed-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.confirmed-sub { color: var(--muted); font-style: italic; font-size: 1rem; line-height: 1.7; }

/* ── Footer ── */

.site-footer { text-align: center; padding-top: 2rem; color: var(--muted); font-size: 0.95rem; font-style: italic; }
.site-footer .footer-rule {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 auto 1.25rem; max-width: 200px;
}
.site-footer .footer-rule span:first-child,
.site-footer .footer-rule span:last-child {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Misc ── */

.hidden { display: none !important; }
.muted  { color: var(--muted); font-size: 0.95rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ══════════════════════════════════════════════
   ADMIN STYLES
══════════════════════════════════════════════ */

.admin-container { max-width: 980px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

h2 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h3 { font-family: var(--serif); font-size: 0.95rem; font-weight: 400; color: var(--text); margin-bottom: 0.5rem; }

.section { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }

.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.admin-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--serif-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 640px) { .admin-grid { grid-template-columns: 1fr; } }

.booking-card { background: var(--surface); border: 1px solid var(--border); padding: 1rem; }
.booking-card-meta { font-size: 0.85rem; color: var(--muted); margin: 0.3rem 0 0.6rem; }
.booking-card-notes { font-size: 0.9rem; color: var(--muted); font-style: italic; margin: 0.5rem 0 0.75rem; border-left: 2px solid var(--border); padding-left: 0.6rem; }
.booking-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.badge { display: inline-block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.5rem; font-family: var(--serif-body); }
.badge-pending   { background: rgba(201,162,92,0.1);  color: var(--gold);    border: 1px solid rgba(201,162,92,0.25); }
.badge-confirmed { background: rgba(74,140,92,0.1);   color: #6ab87c;        border: 1px solid rgba(74,140,92,0.25); }
.badge-cancelled { background: rgba(139,48,48,0.1);   color: #c06060;        border: 1px solid rgba(139,48,48,0.25); }
.badge-approved  { background: rgba(74,140,92,0.1);   color: #6ab87c;        border: 1px solid rgba(74,140,92,0.25); }
.badge-denied    { background: rgba(139,48,48,0.1);   color: #c06060;        border: 1px solid rgba(139,48,48,0.25); }

.hours-row { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.hours-row:last-child { border-bottom: none; }
.hours-controls { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.hours-controls select { width: auto; min-width: 70px; }

.pin-screen { max-width: 340px; margin: 6rem auto; text-align: center; }
.pin-screen h1 { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; margin-bottom: 1.5rem; }

.spacer { height: 1.5rem; }

/* ════════════════════════════════════════════════════════════
   MOTION POLISH — micro-interactions paired with GSAP (2026-06-22)
   All effects degrade gracefully: base states stay usable without JS.
════════════════════════════════════════════════════════════ */

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

/* Date chips & time slots: weighted hover lift (eases, not snaps) */
.day-btn, .slot-btn {
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
              border-color 0.28s, background 0.28s, box-shadow 0.28s;
  will-change: transform;
}
.day-btn:hover:not(:disabled),
.slot-btn:hover:not(.taken) {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.day-btn.active,
.slot-btn.selected {
  box-shadow: 0 0 0 1px var(--gold), 0 10px 24px rgba(0,0,0,0.55);
}

/* Confirm button: brass shine sweep + lift on hover */
#confirm-btn { position: relative; overflow: hidden; transition: transform 0.2s ease; }
#confirm-btn:not(:disabled)::after {
  content: "";
  position: absolute; top: 0; left: -130%;
  width: 65%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,236,196,0.38), transparent);
  transform: skewX(-18deg);
  transition: left 0.75s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
#confirm-btn:not(:disabled):hover { transform: translateY(-2px); }
#confirm-btn:not(:disabled):hover::after { left: 140%; }

/* ── Booking-confirmed: hand-drawn gold seal ── */
.booking-confirmed { --seal-glow: 1; position: relative; }
.booking-confirmed::before {
  content: "";
  position: absolute; left: 50%; top: -14px;
  width: 280px; height: 280px; max-width: 90%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212,168,67,0.30), transparent 60%);
  opacity: var(--seal-glow);
  pointer-events: none; z-index: 0;
}
.booking-confirmed > * { position: relative; z-index: 1; }
.confirm-seal {
  width: 92px; height: 92px; margin: 0 auto 1.1rem; display: block;
  filter: drop-shadow(0 0 10px rgba(212,168,67,0.35));
}
.confirm-seal .ring,
.confirm-seal .tick {
  fill: none; stroke: var(--gold);
  stroke-linecap: round; stroke-linejoin: round;
}
.confirm-seal .ring { stroke-width: 3; }
.confirm-seal .tick { stroke-width: 4.5; }

.calendar-dl-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.65rem 1.4rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  /* no opacity/transform in the transition — GSAP animates those (step-01 bug class) */
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.calendar-dl-btn:hover {
  background: var(--gold-glow);
  box-shadow: 0 4px 14px rgba(212,168,67,0.25);
  transform: translateY(-1px);
}

/* Door alignment is computed per-viewport by JS (syncDoorVars) from the
   door's pixel rect in shelf-bg.jpg — no per-breakpoint tuning needed. */

/* ════════════════════════════════════════════════════════════
   THREE.JS DOOR ENGINE — WebGL canvas overlay
   The canvas is transparent (alpha renderer). The door mesh
   is UV-mapped from an offscreen canvas that replicates the
   exact CSS cover-crop, so the seam is sub-pixel when closed.
════════════════════════════════════════════════════════════ */

#door-canvas {
  position: absolute;
  inset: 0;
  z-index: 8;           /* above cabinet-wall (5), below enter-overlay (20) */
  display: block;
  pointer-events: none;
}

/* Invisible hit zone positioned over the bookshelf door panel */
.door-hit-zone {
  position: absolute;
  left:   var(--door-left);
  top:    var(--door-top);
  width:  var(--door-width);
  height: var(--door-height);
  z-index: 9;
  cursor: pointer;
  background: transparent;
}

/* (door-knob hover indicator removed — the crack light is the only cue) */

/* Legacy CSS door elements — hidden; Three.js handles rendering */
.door-leaf,
.doorway,
.doorway-dark,
.doorway-jamb,
.leaf-shade,
.leaf-edge { display: none !important; }

/* ── Custom cursor — gold ring on the welcome screen ── */
.welcome-overlay { cursor: none; }

#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border: 1.5px solid rgba(212, 168, 67, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width  0.22s ease,
    height 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    opacity 0.3s ease;
  opacity: 0;
  will-change: transform;
}
#custom-cursor.visible { opacity: 1; }
#custom-cursor.on-door {
  width: 50px; height: 50px;
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.07);
}

/* ════════════════════════════════════════════════════════════
   "LOOK AROUND" EXPLORER — fit whole image + scroll (2026-06-23)
════════════════════════════════════════════════════════════ */

.explore-btn {
  /* fixed: after enterSpeakeasy it's re-parented to <body> — absolute there
     would park it mid-page over the booking form on mobile */
  position: fixed;
  right: clamp(0.8rem, 2vw, 1.4rem);
  bottom: clamp(0.8rem, 2vh, 1.4rem);
  z-index: 40;
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 7, 4, 0.62);
  border: 1px solid rgba(212, 168, 67, 0.5);
  padding: 0.6rem 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.explore-btn:hover {
  background: rgba(30, 20, 8, 0.85);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,168,67,0.25);
}
.explore-btn .ex-ico { font-size: 0.95rem; line-height: 1; }
/* compact icon-only chip on phones — the full label crowds the form */
@media (max-width: 600px) {
  .explore-btn .ex-label { display: none; }
  .explore-btn { padding: 0.55rem 0.7rem; border-radius: 50%; }
}

/* ── brass sound toggle, bottom-left mirror of "Look around" ── */
.mute-btn {
  position: fixed;
  left: clamp(0.8rem, 2vw, 1.4rem);
  bottom: clamp(0.8rem, 2vh, 1.4rem);
  z-index: 40;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(10, 7, 4, 0.62);
  border: 1px solid rgba(212, 168, 67, 0.5);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.mute-btn:hover { border-color: var(--gold); background: rgba(20, 14, 6, 0.8); }
.mute-btn .slash { opacity: 0; transition: opacity 0.2s; }
.mute-btn.muted { color: var(--muted); }
.mute-btn.muted .slash { opacity: 1; }

.explore-overlay {
  position: fixed; inset: 0;
  z-index: 250;            /* above the welcome overlay (200) */
  background: #070502;
  display: none;
  flex-direction: column;
}
.explore-overlay.open { display: flex; animation: ex-fade 0.4s ease both; }
@keyframes ex-fade { from { opacity: 0; } to { opacity: 1; } }

.explore-bar {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(0.8rem, 3vw, 1.6rem);
  background: linear-gradient(180deg, rgba(8,5,2,0.96), rgba(8,5,2,0.8));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 0 -5px rgba(212,168,67,0.35);
}
.explore-tabs { display: flex; gap: 0.4rem; }
.ex-tab {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ex-tab:hover { color: var(--text); }
.ex-tab.active {
  color: var(--gold);
  border-color: rgba(212,168,67,0.55);
  background: rgba(212,168,67,0.06);
}
.explore-close {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  width: 2.1rem; height: 2.1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.explore-close:hover { color: var(--gold); border-color: var(--gold); transform: rotate(90deg); }

.explore-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(160,100,30,0.08), transparent 70%),
    #070502;
  text-align: center;
}
.explore-img {
  display: block;
  width: auto;
  min-width: 100%;
  height: 100%;
  margin: 0 auto;
}
.explore-hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(201,162,92,0.55);
  letter-spacing: 0.1em;
  padding: 1rem 0 2rem;
}

/* ══════════════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════════════ */

/* keyboard focus — visible gold ring everywhere interactive */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 3px;
}
.door-hit-zone:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -6px;
  border-radius: 4px;
}

/* honour the OS motion preference — ambient loops off, content stays visible */
@media (prefers-reduced-motion: reduce) {
  .dust-p,
  .w-hint,
  .menu-hint,
  .menu-spotlight,
  .door-hit-zone::after,
  .sconce-flame,
  .explore-hint {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
