/* Shared styles for the branch sites (whistleralpharesearchlimited.com).
   Brand chrome is lifted from the main site's static pages; the rest is
   branch-only. Motion animates transform/opacity only. */

:root {
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --navy: #0a0f1e;
  --navy-mid: #111832;
  --navy-lt: #1a2342;
  --blue: #2d7eb5;
  --blue-bright: #3a9ad9;
  --cyan: #4fc3f7;
  --gold: #c8963e;
  --amber: #f5b942;
  --gray-100: #e8ecf4;
  --gray-200: #9ca8c0;
  --gray-300: #5c6a82;
  --gray-800: #1e2740;
  /* spacing tokens (rem): section rhythm */
  --space-section: clamp(4.5rem, 9vw, 8rem);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--navy);
  color: var(--gray-100);
  overflow-x: hidden;
  line-height: 1.7;
  font-feature-settings: "cv11", "ss01";
}
.tabular { font-variant-numeric: tabular-nums; }
.section { padding-block: var(--space-section); }
.display-tight { letter-spacing: -0.03em; line-height: 1.04; }
.measure { max-width: 34rem; }
.measure-wide { max-width: 42rem; }
::selection { background: rgba(200, 150, 62, 0.35); color: #fff; }

/* ---------- Cross-document view transitions ---------- */
@view-transition { navigation: auto; }
#mainNav { view-transition-name: site-nav; }
.vt-title { view-transition-name: page-title; }
::view-transition-old(root) { animation: 220ms var(--ease-smooth) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Grain + contours ---------- */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
}
.contours {
  position: absolute;
  inset: -10% 0;
  background: url('/assets/branch/contours.svg') center / cover no-repeat;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
@supports (animation-timeline: view()) {
  .contours {
    animation: contour-drift linear both;
    animation-timeline: view();
  }
  @keyframes contour-drift {
    from { transform: translateY(-4%); }
    to { transform: translateY(4%); }
  }
}

/* ---------- Navigation ---------- */
#mainNav { transition: background-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth); }
.nav-scrolled {
  background-color: rgba(10, 15, 30, 0.92) !important;
  box-shadow: 0 4px 24px rgba(10, 15, 30, 0.5), 0 1px 3px rgba(81, 144, 180, 0.06);
}
.nav-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0.8;
}
@supports (animation-timeline: scroll()) {
  .nav-progress { animation: nav-progress linear both; animation-timeline: scroll(root); }
  @keyframes nav-progress { to { transform: scaleX(1); } }
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-spring);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link:active { opacity: 0.7; }
.nav-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; border-radius: 2px; }
.branch-tag { font-feature-settings: normal; }

.mobile-menu {
  position: fixed;
  top: 5rem; left: 0; right: 0;
  max-height: 0;
  overflow: hidden;
  background: rgb(10, 15, 30);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.65rem);
  transition: max-height 0.4s var(--ease-smooth), opacity 0.4s var(--ease-smooth), visibility 0.4s, transform 0.4s var(--ease-smooth);
}
.mobile-menu.open {
  max-height: calc(100dvh - 5rem);
  min-height: calc(100dvh - 5rem);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu-link { opacity: 0; transform: translateY(20px); transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-spring); }
.mobile-menu.open .mobile-menu-link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(6) { transition-delay: 0.25s; }
.mobile-menu-link:focus-visible { outline: 2px solid var(--amber); outline-offset: -4px; }
.mobile-menu-link:active { opacity: 0.7; }
#menuToggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
#menuToggle:active { transform: scale(0.94); }

/* ---------- Buttons + links ---------- */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-smooth), background-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}
.btn-primary { background: var(--amber); color: var(--navy); border: 1px solid var(--amber); }
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(200, 150, 62, 0.25), 0 12px 40px rgba(200, 150, 62, 0.12); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(58, 154, 217, 0.55); }
.btn-secondary:hover { background: var(--blue); border-color: var(--blue); transform: scale(1.03); box-shadow: 0 4px 20px rgba(45, 126, 181, 0.22), 0 12px 40px rgba(45, 126, 181, 0.1); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: scale(1.03); }
.btn-primary:active, .btn-secondary:active, .btn-ghost:active { transform: scale(0.97); }
.btn-primary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn-secondary:focus-visible, .btn-ghost:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.btn-icon { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease-spring); }
a:hover > .btn-icon, button:hover > .btn-icon { transform: translateX(3px); }

.gold-link { position: relative; color: var(--gold); transition: color 0.3s var(--ease-smooth); }
.gold-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-spring);
}
.gold-link:hover { color: #daa94e; }
.gold-link:hover::after, .gold-link:active::after { transform: scaleX(1); }
.gold-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.gold-link:active { color: var(--amber); }

.quiet-link { color: var(--gray-200); transition: color 0.25s var(--ease-smooth); }
.quiet-link:hover { color: #fff; }
.quiet-link:active { color: var(--gold); }
.quiet-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

/* ---------- Reveal (single orchestrated entrances only) ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-smooth), transform 0.9s var(--ease-out); }
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video,
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-shade > span { position: absolute; inset: 0; transition: opacity 1.6s var(--ease-smooth); }
.hero-shade .base {
  background:
    linear-gradient(to top, rgba(10, 15, 30, 0.96) 0%, rgba(10, 15, 30, 0.62) 38%, rgba(10, 15, 30, 0.28) 70%, rgba(10, 15, 30, 0.55) 100%),
    linear-gradient(90deg, rgba(10, 15, 30, 0.7) 0%, rgba(10, 15, 30, 0) 60%);
}
/* Colour treatment per time of day: blended over the footage. */
.hero-shade .tint { mix-blend-mode: multiply; opacity: 0; }
.hero-shade .glow { mix-blend-mode: screen; opacity: 0; }
.tint-dawn { background: radial-gradient(120% 90% at 85% 100%, #d98b5f 0%, #3b2a4a 55%, #111832 100%); }
.glow-dawn { background: radial-gradient(60% 50% at 80% 85%, rgba(245, 185, 66, 0.28), transparent 70%); }
.tint-day { background: linear-gradient(180deg, #5d8fb8 0%, #1a2342 100%); }
.glow-day { background: radial-gradient(70% 60% at 70% 10%, rgba(79, 195, 247, 0.18), transparent 70%); }
.tint-dusk { background: radial-gradient(120% 90% at 20% 100%, #c8963e 0%, #4b2f52 50%, #111832 100%); }
.glow-dusk { background: radial-gradient(60% 50% at 25% 90%, rgba(218, 169, 78, 0.3), transparent 70%); }
.tint-night { background: linear-gradient(180deg, #0a0f1e 0%, #111832 60%, #1a2342 100%); }
.glow-night { background: radial-gradient(50% 40% at 75% 30%, rgba(79, 195, 247, 0.16), transparent 70%); }
[data-phase="dawn"] .tint-dawn, [data-phase="dawn"] .glow-dawn,
[data-phase="day"] .tint-day, [data-phase="day"] .glow-day,
[data-phase="dusk"] .tint-dusk, [data-phase="dusk"] .glow-dusk,
[data-phase="night"] .tint-night, [data-phase="night"] .glow-night { opacity: 0.55; }
[data-phase="night"] .tint-night { opacity: 0.7; }

/* Typewriter headline (same as the main site's heroes) */
.tw-host { display: inline-block; position: relative; max-width: 100%; }
.tw-ghost { visibility: hidden; }
.tw-typed { position: absolute; inset: 0; white-space: inherit; }
.tw-cursor { position: absolute; display: inline; margin-left: 0.04em; font-weight: 300; color: currentColor; animation: tw-blink 1s steps(1, end) infinite; }
@keyframes tw-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes word-rise { to { transform: none; opacity: 1; } }
.hero-fade { opacity: 0; transform: translateY(14px); animation: word-rise 0.9s var(--ease-out) forwards; animation-delay: var(--d, 0.7s); }

.status-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--gray-300); flex: none; position: relative; }
.status-dot.is-live { background: #5fd38d; }
.status-dot.is-live::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(95, 211, 141, 0.6);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Surfaces (base → elevated → floating) ---------- */
.surface-elevated {
  background: linear-gradient(180deg, rgba(26, 35, 66, 0.72), rgba(17, 24, 50, 0.72));
  border: 1px solid rgba(156, 168, 192, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -24px rgba(5, 8, 18, 0.9), 0 2px 10px rgba(45, 126, 181, 0.06);
  border-radius: 14px;
}
.surface-floating {
  background: rgba(17, 24, 50, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(156, 168, 192, 0.16);
  box-shadow: 0 30px 60px -30px rgba(5, 8, 18, 0.95), 0 8px 24px rgba(45, 126, 181, 0.1), 0 0 0 1px rgba(200, 150, 62, 0.04);
  border-radius: 18px;
}

/* ---------- Relay (follow-the-sun band) ---------- */
.relay { --label-w: 11rem; }
.relay-row { display: grid; grid-template-columns: var(--label-w) 1fr; align-items: center; gap: 1.25rem; }
.relay-track { position: relative; height: 2.25rem; border-radius: 6px; overflow: hidden; background: rgba(10, 15, 30, 0.6); }
.relay-sky { height: 6px; border-radius: 999px; opacity: 0.9; box-shadow: 0 0 18px rgba(58, 127, 176, 0.25); }
.relay-seg { position: absolute; top: 0; bottom: 0; border-radius: 5px; transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
.relay.is-in .relay-seg { transform: scaleX(1); }
.relay-seg.office { background: linear-gradient(90deg, rgba(45, 126, 181, 0.85), rgba(79, 195, 247, 0.85)); box-shadow: 0 0 24px rgba(79, 195, 247, 0.18); }
.relay-seg.office.is-home { background: linear-gradient(90deg, #c8963e, #f5b942); box-shadow: 0 0 24px rgba(245, 185, 66, 0.22); }
.relay-now { position: absolute; top: -0.5rem; bottom: -2.25rem; width: 0; pointer-events: none; z-index: 2; }
.relay-now::before { content: ''; position: absolute; top: 0; bottom: 1.5rem; left: -0.5px; width: 1px; background: var(--amber); box-shadow: 0 0 12px rgba(245, 185, 66, 0.7); }
.relay-now-label { position: absolute; bottom: 0; transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; font-weight: 600; color: var(--amber); }
.relay-tick { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: var(--amber); box-shadow: 0 0 8px rgba(245, 185, 66, 0.7); z-index: 1; }
.relay-hours { display: grid; grid-template-columns: repeat(8, 1fr); font-size: 0.75rem; color: var(--gray-300); }
.relay-group-label { font-size: 0.8125rem; color: var(--gray-200); }
@media (max-width: 767px) {
  .relay-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .relay-hours { grid-template-columns: repeat(4, 1fr); }
  .relay-hours .md-only { display: none; }
}

/* ---------- Office map (OSM geography, office page) ---------- */
.office-map { display: block; width: 100%; height: 100%; }
.map-scroller { scrollbar-width: none; }
.map-scroller::-webkit-scrollbar { display: none; }
.map-scroller:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.rule-list-2 > li { border-top: 1px solid var(--gray-800); }
.om-water { fill: #0b1129; }
.om-land { fill: #161f3f; stroke: #27355f; stroke-width: 1.2; stroke-linejoin: round; }
.om-river { fill: none; stroke: #0b1129; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.om-creek { fill: none; stroke: #0f1733; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.om-motorway { fill: none; stroke: #2c3a66; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.om-hwy99 { fill: none; stroke: #c8963e; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.om-skytrain { fill: none; stroke: #3a9ad9; stroke-width: 2; stroke-linecap: round; opacity: 0.45; }
.om-expo { fill: none; stroke: #4fc3f7; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.om-border { fill: none; stroke: #c8963e; stroke-width: 1.5; stroke-dasharray: 10 8; opacity: 0.7; }
.office-map text { font-family: 'Inter', system-ui, sans-serif; paint-order: stroke; stroke: #0b1129; stroke-width: 6px; stroke-linejoin: round; }
.om-label { fill: #fff; font-size: 22px; font-weight: 500; }
.om-time { fill: #b4bfd4; font-size: 19px; font-variant-numeric: tabular-nums; }
.om-office-label { fill: #fff; font-family: 'DM Serif Display', Georgia, serif !important; font-size: 34px; letter-spacing: -0.01em; }
.om-water-label { fill: #8592ae; font-size: 18px; font-style: italic; letter-spacing: 0.06em; stroke-width: 0 !important; }
.om-country { fill: #8592ae; font-size: 16px; font-style: italic; letter-spacing: 0.08em; }
.om-line-label { fill: #4fc3f7; font-size: 17px; font-weight: 600; }
.om-credit { fill: #6b7896; font-size: 14px; stroke-width: 0 !important; }
.om-shield rect { fill: #0b1129; stroke: #c8963e; stroke-width: 2; }
.om-shield-text { fill: #f5b942; font-size: 17px; font-weight: 700; stroke-width: 0 !important; }
.om-dot { fill: #0b1129; stroke: #4fc3f7; stroke-width: 3.5; }
.om-pin { fill: #f5b942; }
.om-halo { fill: rgba(245, 185, 66, 0.22); }
.om-pulse { fill: none; stroke: rgba(245, 185, 66, 0.5); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: om-pulse 3.2s var(--ease-out) infinite; }
@keyframes om-pulse { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.om-arrow { fill: none; stroke: #f5b942; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.om-scale path { stroke: #b4bfd4; stroke-width: 2; fill: none; }
@media (prefers-reduced-motion: reduce) { .om-pulse { animation: none; opacity: 0; } }

/* ---------- Live 3D map (MapLibre, office page) ---------- */
.live-map, .live-map.maplibregl-map { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.9s var(--ease-smooth); background: #0b1129; }
[data-live-map].is-live .live-map { opacity: 1; pointer-events: auto; }
[data-live-map].is-live .map-scroller { visibility: hidden; }
[data-live-map].is-live .map-swipe { display: none; }
.live-map .maplibregl-canvas:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.live-map .maplibregl-ctrl-group { background: rgba(17, 24, 50, 0.85); border: 1px solid rgba(156, 168, 192, 0.18); box-shadow: 0 8px 24px rgba(5, 8, 18, 0.5); backdrop-filter: blur(8px); }
.live-map .maplibregl-ctrl-group button + button { border-top-color: rgba(156, 168, 192, 0.18); }
.live-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(0.9); }
.live-map .maplibregl-ctrl-group button:focus-visible { box-shadow: 0 0 0 2px var(--amber); }
.live-map .maplibregl-ctrl-attrib { background: rgba(11, 17, 41, 0.75) !important; color: #8f9bb6; font-size: 11px; }
.live-map .maplibregl-ctrl-attrib-inner, .live-map .maplibregl-ctrl-attrib-inner * { color: #8f9bb6; }
.live-map .maplibregl-ctrl-attrib a { color: #b4bfd4; }
.live-map .maplibregl-ctrl-attrib-button { filter: invert(1); }
.live-map .maplibregl-cooperative-gesture-screen { background: rgba(10, 15, 30, 0.75); color: #fff; font-family: 'Inter', system-ui, sans-serif; font-size: 15px; }

.lm-place, .lm-office { display: flex; align-items: center; gap: 10px; pointer-events: none; }
.lm-place.is-left { flex-direction: row-reverse; text-align: right; }
.lm-office .lm-text { transform: translateY(-12px); }
.lm-text { display: flex; flex-direction: column; line-height: 1.2; text-shadow: 0 0 6px #0b1129, 0 0 3px #0b1129, 0 0 1px #0b1129; white-space: nowrap; }
.lm-name { color: #fff; font: 500 14px/1.25 'Inter', system-ui, sans-serif; transition: color 0.3s var(--ease-smooth); }
.lm-time { color: #b4bfd4; font: 400 12.5px/1.3 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.lm-dot { width: 14px; height: 14px; border-radius: 999px; background: #0b1129; border: 3px solid var(--cyan); flex: none; transition: transform 0.4s var(--ease-spring), background-color 0.3s var(--ease-smooth); box-shadow: 0 0 12px rgba(79, 195, 247, 0.45); }
/* MapLibre writes inline opacity on markers (terrain occlusion), so hide with visibility. */
[data-live-map].has-selection .lm-place:not(.is-active), [data-live-map].has-selection .lm-office { visibility: hidden; }
.lm-place.is-active .lm-dot { transform: scale(1.35); background: var(--cyan); }
.lm-place.is-active .lm-name { color: var(--amber); }
.lm-pin { position: relative; width: 20px; height: 20px; border-radius: 999px; background: var(--amber); flex: none; box-shadow: 0 0 0 8px rgba(245, 185, 66, 0.2), 0 0 24px rgba(245, 185, 66, 0.6); }
.lm-pulse { position: absolute; left: -10px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 999px; border: 2px solid rgba(245, 185, 66, 0.55); animation: lm-pulse 3.2s var(--ease-out) infinite; }
.lm-office { position: relative; }
@keyframes lm-pulse { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.lm-office-name { color: #fff; font: 400 22px/1.1 'DM Serif Display', Georgia, serif; letter-spacing: -0.01em; }

.lm-overlay { position: absolute; left: 1.25rem; top: 1.25rem; z-index: 3; max-width: calc(100% - 6rem); padding: 0.9rem 1.1rem; border-radius: 14px;
  background: rgba(17, 24, 50, 0.82); backdrop-filter: blur(12px) saturate(140%); border: 1px solid rgba(156, 168, 192, 0.18);
  box-shadow: 0 20px 40px -20px rgba(5, 8, 18, 0.9), 0 4px 16px rgba(45, 126, 181, 0.12);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.4s var(--ease-smooth), transform 0.5s var(--ease-spring); }
[data-live-map].is-live .lm-overlay { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1024px) { .lm-overlay { left: max(2rem, calc((100vw - 80rem) / 2 + 2rem)); top: 2rem; } }
.lm-home { display: none; align-items: center; gap: 0.4rem; margin-top: 0.6rem; min-height: 36px; padding: 0.35rem 0.8rem 0.35rem 0.6rem; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; color: var(--navy); background: var(--amber); cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-smooth); }
[data-live-map].has-selection .lm-home { display: inline-flex; }
.lm-home:hover { transform: scale(1.04); box-shadow: 0 6px 18px rgba(245, 185, 66, 0.3); }
.lm-home:active { transform: scale(0.97); }
.lm-home:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lm-hint { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; color: var(--amber); font-size: 0.9375rem; font-weight: 600; }
.lm-hint[hidden] { display: none; }
[data-live-map-list].is-interactive { row-gap: 0.75rem; column-gap: 0.75rem; }
[data-live-map-list].is-interactive > li { padding: 0; border: 0; }
.lm-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0.9rem 0.85rem 1.1rem;
  text-align: left; border-radius: 12px; cursor: pointer;
  background: rgba(26, 35, 66, 0.55); border: 1px solid rgba(156, 168, 192, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 24px -18px rgba(5, 8, 18, 0.9);
  transition: transform 0.3s var(--ease-spring), background-color 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth); }
.lm-row-text { display: flex; flex-direction: column; min-width: 0; }
.lm-row-name { color: #fff; font-weight: 500; line-height: 1.3; }
.lm-row-time { color: var(--gray-200); font-size: 0.875rem; margin-top: 0.15rem; }
.lm-row-cta { display: inline-flex; align-items: center; gap: 0.4rem; flex: none; padding: 0.4rem 0.75rem; border-radius: 999px;
  color: var(--amber); background: rgba(245, 185, 66, 0.1); border: 1px solid rgba(245, 185, 66, 0.35); font-size: 0.8125rem; font-weight: 600;
  transition: background-color 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth); }
.lm-row-icon { width: 14px; height: 14px; transition: transform 0.35s var(--ease-spring); }
.lm-row:hover { transform: translateY(-2px); border-color: rgba(245, 185, 66, 0.45); background: rgba(26, 35, 66, 0.85); box-shadow: 0 14px 30px -18px rgba(5, 8, 18, 0.95), 0 4px 14px rgba(200, 150, 62, 0.12); }
.lm-row:hover .lm-row-cta { background: var(--amber); color: var(--navy); }
.lm-row:hover .lm-row-icon { transform: translateX(3px); }
.lm-row:active { transform: translateY(0) scale(0.98); }
.lm-row:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.lm-row[aria-pressed="true"] { border-color: var(--amber); background: rgba(200, 150, 62, 0.14); }
.lm-row[aria-pressed="true"] .lm-row-name { color: var(--amber); }
.lm-row[aria-pressed="true"] .lm-row-cta { background: var(--amber); color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .lm-pulse { animation: none; opacity: 0; } }

/* ---------- Photos ---------- */
.photo { position: relative; overflow: hidden; border-radius: 12px; isolation: isolate; background: var(--navy-lt); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: #1a2342; mix-blend-mode: multiply; opacity: 0.22; pointer-events: none; }
.photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 55%); pointer-events: none; }
.photo figcaption { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 0.9rem; }
a.photo:hover img, .photo:hover img { transform: scale(1.035); }
a.photo:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
a.photo:active img { transform: scale(1.01); }

/* ---------- Lists ---------- */
.rule-list > li { border-top: 1px solid var(--gray-800); }
.rule-list > li:last-child { border-bottom: 1px solid var(--gray-800); }

.role-row { transition: background-color 0.3s var(--ease-smooth); }
.role-row:hover { background: rgba(26, 35, 66, 0.55); }
.role-row:active { background: rgba(26, 35, 66, 0.8); }
.role-row:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

/* ---------- Prose (legal pages) ---------- */
.prose-wt { max-width: 44rem; color: var(--gray-200); }
.prose-wt h2 { font-family: 'DM Serif Display', Georgia, serif; color: #fff; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.015em; margin: 3rem 0 1rem; }
.prose-wt h3 { color: #fff; font-weight: 600; font-size: 1.0625rem; margin: 2rem 0 0.5rem; }
.prose-wt p, .prose-wt li { line-height: 1.75; }
.prose-wt p + p { margin-top: 1rem; }
.prose-wt ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.75rem; }
.prose-wt li + li { margin-top: 0.4rem; }
.prose-wt a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose-wt a:hover { color: #daa94e; }
.prose-wt a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.prose-wt dt { color: var(--gray-300); font-size: 0.875rem; }
.prose-wt dd { color: #fff; margin-bottom: 1.25rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal], .hero-fade { opacity: 1 !important; transform: none !important; }
  .tw-cursor { display: none; }
  .relay-seg { transform: scaleX(1); }
  .contours { animation: none !important; transform: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
