/* Road furniture: every prop here carries content. If one stops carrying content, delete it. */

/* ── Floating pill nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(100% - 24px, 920px);
  display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 20px;
  background: rgba(16, 10, 28, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--hairline); border-radius: 999px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}
.nav nav { display: none; gap: 24px; margin-left: auto; }
.nav nav a { color: var(--muted-night); text-decoration: none; font-size: 0.875rem; font-weight: 700; padding: 12px 2px; transition: color 160ms var(--ease-out); }
.nav .btn { margin-left: auto; }
@media (min-width: 820px) { .nav nav { display: flex; } .nav .btn { margin-left: 0; } }
@media (hover: hover) and (pointer: fine) { .nav nav a:hover { color: var(--ink-night); } }

.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--ink-night); text-decoration: none; white-space: nowrap; }
.wordmark em { font-style: normal; color: var(--gold); }
.wordmark span { color: var(--violet-haze); font-size: 0.62em; letter-spacing: 0.16em; margin-left: 0.4em; vertical-align: 0.18em; }

/* ── Marker signs: the wayfinding label on each section ───────────────────── */
.marker-sign {
  display: inline-block; font-family: var(--sign); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.1em;
  color: #ffffff; background: var(--sign-navy); padding: 8px 16px 8px; border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--sign-navy), inset 0 0 0 4px rgba(255, 255, 255, 0.9);
}
.marker-ink { background: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--paper); color: var(--paper); }
.marker-warning { background: var(--gold); color: var(--gold-ink); box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 4px var(--gold-ink); }

/* ── Dashed lane line between night sections ──────────────────────────────── */
.lane-divider {
  position: absolute; top: 0; left: 50%; width: 6px; height: clamp(56px, 8vw, 96px); transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(244, 238, 255, 0.55) 0 18px, transparent 18px 36px);
  -webkit-mask-image: linear-gradient(180deg, #fff, transparent); mask-image: linear-gradient(180deg, #fff, transparent);
}

/* ── The billboard ────────────────────────────────────────────────────────── */
.bb { position: relative; width: 100%; }
.bb-lamps { position: absolute; z-index: 3; left: 9%; right: 9%; top: -20px; display: flex; justify-content: space-between; pointer-events: none; }
.bb-lamps i {
  position: relative; display: block; width: 46px; height: 10px; border-radius: 3px 3px 8px 8px;
  background: linear-gradient(180deg, #2a2236, #120d1c);
  box-shadow: 0 3px 0 -1px var(--gold), 0 8px 26px 4px rgba(245, 184, 41, 0.55);
}
/* the arm that holds each lamp out from the top of the frame */
.bb-lamps i::before { content: ''; position: absolute; left: 50%; top: 9px; width: 4px; height: 12px; background: linear-gradient(90deg, #15101f, #3a2f4b, #15101f); transform: translateX(-50%); }
/* the cone of light each lamp throws down the face */
.bb-lamps i::after {
  content: ''; position: absolute; left: 50%; top: 8px; width: 240px; height: 190px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(245, 184, 41, 0.26), rgba(245, 184, 41, 0) 68%);
}
.bb-frame {
  position: relative; z-index: 2; padding: clamp(8px, 1.1vw, 12px);
  background: linear-gradient(180deg, #2b2338, #15101f 60%);
  border-radius: 4px;
  box-shadow: 0 0 0 1px #3a2f4b, 0 30px 80px -30px rgba(0, 0, 0, 0.95), 0 0 120px -30px rgba(245, 184, 41, 0.35);
}
.bb-face { position: relative; aspect-ratio: 3 / 1; overflow: hidden; border-radius: 2px; background: #0d0820; perspective: 1400px; }
.bb-face img, .bb-img { width: 100%; height: 100%; object-fit: cover; }
.bb-face-flat { border-radius: 3px; perspective: 900px; }
.bb-face.is-loading::after {
  content: 'tuning in…'; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--sign); font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--dim-night); background: #0d0820;
}

/* tri-vision slats, built by js only while a flip is running */
.bb-slats { position: absolute; inset: 0; display: flex; transform-style: preserve-3d; }
.bb-slat { position: relative; flex: 1; transform-style: preserve-3d; transition: transform 700ms var(--ease-inout); transition-delay: calc(var(--i) * 38ms); }
.bb-slat span { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-repeat: no-repeat; background-size: calc(var(--n) * 100%) 100%; background-position: calc(var(--i) / (var(--n) - 1) * 100%) 0; }
.bb-slat span + span { transform: rotateY(180deg); }
.bb-slats.go .bb-slat { transform: rotateY(180deg); }

.bb-catwalk { position: relative; z-index: 2; height: 12px; margin: 0 2.5%; background: linear-gradient(180deg, #2b2338, #0f0a18); border-radius: 0 0 3px 3px; box-shadow: 0 1px 0 #3a2f4b inset; }
.bb-catwalk::before { content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 9px; background: repeating-linear-gradient(90deg, #3a2f4b 0 2px, transparent 2px 22px); opacity: 0.8; }
.bb-posts { position: relative; z-index: 1; display: flex; justify-content: space-between; padding: 0 22%; height: clamp(70px, 13vw, 190px); }
.bb-posts i { width: clamp(10px, 1.5vw, 18px); background: linear-gradient(90deg, #0d0915, #2b2338 45%, #0d0915); }
.bb-posts::after {
  content: ''; position: absolute; left: 6%; right: 6%; bottom: -26px; height: 60px;
  background: radial-gradient(ellipse at 50% 50%, rgba(245, 184, 41, 0.22), rgba(245, 184, 41, 0) 70%);
}

.live-pill {
  position: absolute; z-index: 4; left: 14px; top: -13px;
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px;
  font-family: var(--sign); font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--night); color: var(--ink-night); border: 1px solid var(--hairline); border-radius: 999px;
}
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--tail); box-shadow: 0 0 0 0 rgba(240, 57, 139, 0.7); animation: live-pulse 2.4s var(--ease-out) infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 57, 139, 0.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(240, 57, 139, 0); } }

/* ── The remote ───────────────────────────────────────────────────────────── */
.remote { position: relative; }
.remote-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.switch {
  min-height: 52px; padding: 8px 12px; cursor: pointer;
  font-family: var(--sign); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15;
  color: var(--muted-night); background: linear-gradient(180deg, #221a30, #140e1f);
  border: 1px solid var(--hairline); border-radius: 8px; box-shadow: 0 3px 0 #07040d;
  transition: transform 120ms var(--ease-out);
}
.switch[aria-pressed="true"] { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); box-shadow: 0 1px 0 #7a5a0c, 0 0 28px -6px rgba(245, 184, 41, 0.7); transform: translateY(2px); }
.switch:active { transform: translateY(3px); box-shadow: 0 0 0 #07040d; }
.switch[disabled] { opacity: 0.55; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .switch:not([aria-pressed="true"]):hover { color: var(--ink-night); border-color: #5a4a78; } }

.remote-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 16px; margin: 0 auto clamp(2rem, 4vw, 3rem); max-width: 760px; background: rgba(21, 16, 31, 0.92); border: 1px solid var(--hairline); border-radius: 14px; position: sticky; top: 82px; z-index: 20; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.remote-inline .remote-buttons { flex: 1 1 320px; }
@media (max-width: 600px) {
  /* on a phone the pinned remote has to stay small: no label, shorter buttons */
  .remote-inline { top: 72px; padding: 8px; gap: 8px; border-radius: 12px; }
  .remote-inline .remote-title { display: none; }
  .remote-inline .switch { min-height: 44px; font-size: 0.75rem; padding: 8px; }
}
.remote-title { font-family: var(--sign); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.counters { margin: 12px 0 0; font-size: 0.875rem; color: var(--dim-night); min-height: 1.4em; }
.counters b { color: var(--ink-night); }

/* ── Handwritten notes (three on the whole page, no more) ─────────────────── */
.note { font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 1.05; color: var(--gold); margin: 0; }
.note svg { display: inline-block; vertical-align: -18px; margin-left: 4px; }
.note-flip { transform: rotate(-4deg); margin: 0 0 12px 8px; }
.note-dead { color: var(--amber-text); transform: rotate(-3deg); margin-top: 20px; text-align: right; }

/* ── Mile posts ───────────────────────────────────────────────────────────── */
.mile-post {
  width: 68px; padding: 12px 0 8px; text-align: center; border-radius: 8px;
  background: var(--ink); color: var(--paper); font-family: var(--sign); font-weight: 800; line-height: 1;
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--paper), 6px 6px 0 var(--gold);
}
.mile-post span { display: block; font-size: 0.6875rem; letter-spacing: 0.18em; }
.mile-post b, .paper .mile-post b { display: block; font-size: 2.5rem; margin-top: 4px; color: var(--paper); }

/* ── Exit sign (the close) ────────────────────────────────────────────────── */
.exit-sign { display: inline-flex; flex-direction: column; align-items: flex-end; font-family: var(--sign); font-weight: 800; color: #fff; }
.exit-tab { background: var(--gold); color: var(--gold-ink); padding: 8px 16px 4px; border-radius: 8px 8px 0 0; font-size: 0.875rem; letter-spacing: 0.1em; margin-right: 20px; }
.exit-face { display: flex; align-items: center; gap: 16px; background: var(--sign-navy); padding: 16px 24px 12px; border-radius: 12px; font-size: clamp(1.125rem, 2.6vw, 1.625rem); letter-spacing: 0.02em; text-transform: uppercase; box-shadow: inset 0 0 0 3px var(--sign-navy), inset 0 0 0 6px rgba(255, 255, 255, 0.92), 0 0 90px -20px rgba(245, 184, 41, 0.4); }
.exit-face svg { flex: none; color: var(--gold); }

/* ── Warning diamond ──────────────────────────────────────────────────────── */
.warn-diamond { width: 118px; height: 118px; margin: 28px auto 8px; display: grid; place-items: center; transform: rotate(45deg); background: var(--gold); border-radius: 12px; box-shadow: inset 0 0 0 4px var(--gold), inset 0 0 0 8px var(--gold-ink); }
.warn-diamond span { transform: rotate(-45deg); font-family: var(--sign); font-weight: 800; font-size: 0.875rem; letter-spacing: 0.06em; line-height: 1.1; text-align: center; color: var(--gold-ink); }

/* ── Route shield ─────────────────────────────────────────────────────────── */
.shield { width: clamp(120px, 16vw, 170px); aspect-ratio: 1 / 1.1; display: grid; place-content: center; text-align: center; color: var(--gold-ink); font-family: var(--sign); font-weight: 800; line-height: 0.9;
  background: var(--gold); border-radius: 16px 16px 50% 50% / 16px 16px 42% 42%; box-shadow: inset 0 0 0 4px var(--gold), inset 0 0 0 7px var(--gold-ink); padding-bottom: 8%; }
.shield span { font-size: clamp(3rem, 7vw, 4.5rem); }
.shield small { font-size: 0.875rem; letter-spacing: 0.2em; margin-top: 8px; }
.shield-badge { flex: none; width: 34px; height: 36px; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-family: var(--sign); font-weight: 800; font-size: 0.75rem; border-radius: 6px 6px 14px 14px; }

/* ── Sticky bottom bar ────────────────────────────────────────────────────── */
.cta-bar {
  position: fixed; z-index: 60; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%);
  width: min(100% - 20px, 720px); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px;
  background: rgba(16, 10, 28, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline); border-radius: 999px; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.95);
  transition: transform 280ms var(--ease-out);
}
.cta-bar.show { transform: translate(-50%, 0); }
.cta-bar-text { flex: 1; min-width: 0; font-size: 0.875rem; color: var(--muted-night); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-bar-text b { color: var(--gold); }
@media (max-width: 560px) { .cta-bar-text > span { display: none; } }

/* ── Surfaces the live board appears in (plain content blocks, no fake chrome) */
.mail, .post, .bio, .slide { position: relative; background: var(--paper-card); color: var(--ink); border-radius: 4px; padding: clamp(20px, 2.6vw, 28px); }
.surface { box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.surface-tag { position: absolute; left: 16px; top: -12px; font-family: var(--sign); font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--gold); color: var(--gold-ink); padding: 4px 12px 3px; border-radius: 6px; }
.mail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 0.8125rem; color: var(--muted-ink); padding-bottom: 12px; border-bottom: 1px solid #e4dccb; }
.mail-head b { color: var(--ink); }
.mail-subject, .post-title, .slide-title { font-family: var(--display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); margin: 16px 0 12px; }
.mail-lines { display: grid; gap: 8px; margin: 0 0 16px; }
.mail-lines i { display: block; height: 9px; border-radius: 99px; background: #e6dfd0; }
.mail-foot { font-size: 0.75rem; color: #8b8296; margin: 16px 0 0; }
.bio { text-align: center; }
.bio-head { display: grid; justify-items: center; gap: 12px; margin: 8px 0 16px; }
.bio-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--haze-warm), var(--haze-violet)); }
.bio-name { width: 120px; height: 10px; border-radius: 99px; background: #d9d0be; }
.bio-links { display: grid; gap: 12px; margin-top: 16px; }
.bio-links i { display: block; height: 44px; border-radius: 10px; border: 2px solid #ddd4c2; }
.slide { background: var(--sign-navy); color: #fff; text-align: center; }
.slide .slide-title { color: #fff; }
.slide figcaption { font-size: 0.875rem; color: #cfc8ea; margin-top: 16px; }
.slide figcaption b { color: var(--gold); }
.qr { width: min(190px, 60%); aspect-ratio: 1; margin: 0 auto; padding: 12px; background: #fff; border-radius: 8px; }
.qr svg { width: 100%; height: 100%; display: block; }

/* Reduced motion: the billboard still changes, it just swaps instead of turning, and nothing pulses or slides */
@media (prefers-reduced-motion: reduce) {
  .live-pill i { animation: none; }
  .bb-slat, .cta-bar, .switch, .nav nav a { transition: none; }
}

