/* T&B Detailing — Design System (Dark Navy Liquid Glass) */
:root {
  --blue: #0066ff;
  --blue-light: #5b9dff;
  --blue-glow: rgba(91, 157, 255, 0.45);
  --blue-soft: rgba(91, 157, 255, 0.14);
  --bg: #0c1f37;
  --bg-elevated: #12273f;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --border-blue: rgba(91, 157, 255, 0.35);
  --text: #f4f7fc;
  --text-muted: #a3afc7;
  --text-soft: #6b7690;
  /* Ink = dark text for use on the white/frosted content surfaces */
  --ink: #12263f;
  --ink-muted: #56677f;
  --ink-soft: #8996ab;
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-glass: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 0 1px rgba(91, 157, 255, 0.28), 0 10px 44px rgba(0, 102, 255, 0.28), 0 0 70px rgba(91, 157, 255, 0.14);
  /* Shared hover glow for the white "glass" cards (feature/service/review) so
     their lift/glow intensity is identical. */
  --shadow-card-hover: 0 24px 58px rgba(5, 16, 34, 0.5), 0 0 0 1px rgba(91, 157, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", var(--font);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  /* Airier sea-navy base — keeps a clear navy undertone but much lighter and
     cleaner, so white glass panels sit on light rather than a heavy dark block. */
  background: linear-gradient(180deg, #2c5586 0%, #1f4571 38%, #163758 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fixed ambient glow layer — soft light that follows the viewport, sits behind
   the neural web and all content. Adds openness and depth. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 700px at 12% -8%, rgba(120, 170, 230, 0.26), transparent 62%),
    radial-gradient(860px 680px at 104% 10%, rgba(90, 145, 210, 0.22), transparent 56%),
    radial-gradient(1200px 800px at 50% 108%, rgba(150, 185, 235, 0.12), transparent 60%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

.btn:focus-visible,
.gallery-tab:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

/* Neural canvas background */
#neural-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}
@media (prefers-reduced-motion: reduce) {
  #neural-bg { display: none; }
}

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.container-wide {
  width: min(1400px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ============================================
   Liquid Glass system
   All glass surfaces share: translucent tint,
   layered blur, an inset top highlight for a
   "physical material" edge, and a hover-triggered
   diagonal light sweep (shimmer) that never
   covers content — content is lifted above the
   shimmer layer via `.glass > *` z-indexing.
   ============================================ */
.glass,
.glass-blue,
.glass-card {
  position: relative;
  overflow: hidden;
}

.glass::before,
.glass-blue::before,
.glass-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -70%;
  width: 55%;
  height: 240%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.16) 45%, transparent 72%);
  transform: skewX(-18deg) translateX(0%);
  transition: transform 1.1s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.glass:hover::before,
.glass-blue:hover::before,
.glass-card:hover::before,
.glass:focus-within::before,
.glass-blue:focus-within::before,
.glass-card:focus-within::before {
  transform: skewX(-18deg) translateX(260%);
}

.glass > *,
.glass-blue > *,
.glass-card > * {
  position: relative;
  z-index: 1;
}

.glass {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glass);
}

.glass-blue {
  background: linear-gradient(135deg, rgba(91, 157, 255, 0.16), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid var(--border-blue);
  box-shadow: var(--shadow-glow);
}

/* Bright white glass — the brighter, more welcoming surface. A near-white
   frosted panel with an electric-blue light that pools into the top-right and
   bottom-left corners (depth/lighting, not a flat coloured border). Content on
   these uses dark "ink" text. Used for feature, service and review cards. */
.glass-white {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 252, 255, 0.95));
  /* Apple-style "control centre" glass: heavy blur + saturation + a touch of
     brightness so whatever sits behind reads magnified, soft and luminous. */
  backdrop-filter: blur(30px) saturate(1.5) brightness(1.04);
  -webkit-backdrop-filter: blur(30px) saturate(1.5) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 52px rgba(5, 16, 34, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Electric-blue light that pools into the corners — subtle at rest, blooms on
   hover so the panel feels lit from within. */
.glass-white::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(135% 115% at 100% 0%, rgba(91, 157, 255, 0.28), transparent 48%),
    radial-gradient(125% 120% at 0% 100%, rgba(91, 157, 255, 0.16), transparent 46%);
  opacity: 0.55;
  transition: opacity 0.55s var(--ease);
}

.glass-white:hover::before { opacity: 1; }

.glass-white > * { position: relative; z-index: 1; }

.glass-white h1, .glass-white h2, .glass-white h3, .glass-white h4 { color: var(--ink); }
.glass-white p { color: var(--ink-muted); }
.glass-white li { color: var(--ink); }
.glass-white strong { color: var(--ink); }
.glass-white .text-muted { color: var(--ink-muted); }

/* Form fields when the panel is white glass (booking page) */
.glass-white .form-group label { color: var(--ink); }
.glass-white .form-group input,
.glass-white .form-group select,
.glass-white .form-group textarea {
  background: #fff;
  border-color: rgba(18, 38, 63, 0.16);
  color: var(--ink);
}
.glass-white .form-group input::placeholder,
.glass-white .form-group textarea::placeholder { color: var(--ink-soft); }
.glass-white .form-group input:focus,
.glass-white .form-group select:focus,
.glass-white .form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14);
}
.glass-white .form-group select option { background: #fff; color: var(--ink); }
/* Add-on chips: dark-glass surface (like the scheduler cells) so they carry the
   same screen-blend cubic hover material as the buttons; text switches to the
   light palette to stay legible on the dark chip. */
.glass-white .checkbox-item {
  background: linear-gradient(165deg, rgba(16, 34, 57, 0.9), rgba(11, 26, 46, 0.92));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.glass-white .checkbox-item:hover { border-color: var(--border-blue); }
.glass-white .checkbox-item:has(input:checked) {
  background: linear-gradient(165deg, rgba(20, 44, 74, 0.92), rgba(13, 32, 56, 0.94));
  border-color: var(--border-blue);
}
.glass-white .checkbox-item span {
  color: var(--text);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(4, 10, 22, 0.75);
}
/* Brighter than --text-muted so the price stays clearly readable on the dark
   chip (and above the animated cubes). */
.glass-white .checkbox-item .text-muted {
  color: #cdd8ec;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(4, 10, 22, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .glass::before, .glass-blue::before, .glass-card::before { display: none; }
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: var(--blue-soft);
  border: 1px solid var(--border-blue);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-glow);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.display-xl {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
}

.display-lg {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
}

.display-md {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.text-muted { color: var(--text-muted); }
.text-blue { color: var(--blue-light); }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.section {
  padding: clamp(3rem, 6vw, 5.25rem) 0;
  position: relative;
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.btn:active { transform: scale(0.97); }

/* Cubic material (paired with scripts/cubes.js). The canvas sits BENEATH the
   label so button text is always perfectly readable; a whisper of blur diffuses
   the cubes so they read as light glowing through the glass, not hard pixels;
   screen blend lets them glow over any surface colour. */
.cube-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: screen;
  filter: blur(0.5px);
}
.cube-hover { opacity: 0; }
.cube-ambient { opacity: 1; }
/* Cubes on light surfaces use multiply so the purple reads over white. */
.cube-light { mix-blend-mode: multiply; }

/* Cubic hover animation on the white before/after caption boxes (same system as
   the buttons). The canvas sits behind the caption text, which stays above it. */
.gallery-item-body { position: relative; }
.gallery-item-body > :not(.cube-layer) { position: relative; z-index: 1; }
.gallery-item-body > .cube-layer { z-index: 0; }

/* Logo "core node" — a denser cube field circulates in the ring around the
   badge, clipped to a disc; the logo image always sits on top and stays clickable. */
.logo-cube {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}
.logo-cube .cube-layer { border-radius: 50%; }
.logo-cube .brand-logo { position: relative; z-index: 1; }

/* Wrapped button/link content — always painted above the cube field. */
.cube-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  box-shadow: 0 4px 20px var(--blue-glow), 0 0 0 1px rgba(91, 157, 255, 0.3) inset, inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 36px var(--blue-glow), 0 0 32px rgba(91, 157, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.05);
}

.btn-glass {
  background: var(--surface-strong);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-glass:hover {
  transform: translateY(-2px);
  border-color: var(--border-blue);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Navigation */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  /* Height tracks scroll continuously (--sc: 0 at top → 1 once scrolled ~90px),
     shrinking 92→72px — the iOS large-title "stretch". The frosted liquid-glass
     material fades in via .scrolled. */
  height: calc(92px - 20px * var(--sc, 0));
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease),
    backdrop-filter 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  /* iOS Control-Centre liquid glass: heavy blur + saturation + a touch of
     brightness for the luminous "liquid" quality, a crisp specular top edge,
     and a soft base shadow so the pane floats over the page. */
  background: linear-gradient(180deg, rgba(34, 48, 74, 0.5), rgba(16, 28, 50, 0.4));
  backdrop-filter: blur(32px) saturate(1.9) brightness(1.12);
  -webkit-backdrop-filter: blur(32px) saturate(1.9) brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.05), 0 14px 42px rgba(0, 0, 0, 0.32);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  transform-origin: left center;
  /* Scroll-linked stretch (iOS large-title): larger at the very top, settling
     to normal size as you scroll. Short transition just smooths per-frame steps;
     under prefers-reduced-motion the global rule makes it instant. */
  transform: scale(calc(1.16 - 0.16 * var(--sc, 0)));
  transition: transform 0.12s linear;
}

.brand span em { font-style: normal; color: var(--blue-light); }

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  box-shadow: 0 4px 16px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.brand:hover .brand-mark {
  transform: scale(1.05);
  box-shadow: 0 6px 22px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Real T&B logo badge — circular clip hides the source's square corners. */
.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.35);
  /* Snappier, more immediate pop than the rest of the site's hovers. */
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.brand:hover .brand-logo {
  transform: scale(1.07);
  box-shadow: 0 6px 22px rgba(91, 157, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  /* Floating liquid-glass capsule around the links (iOS segmented-control feel)
     — the same frosted material as the scrolled header. */
  padding: 0.28rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  /* Smoother, weightier hover (not snappy) — matches the site's --ease. */
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Active = premium highlighted white (was blue-light, ~4.8:1 on dark). White
   reads clearer and the weight + persistent pill say "you are here" without
   being loud. The nav always sits on the dark navy / dark scrolled bar, so
   white passes AA in every state. */
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: color 0.35s var(--ease);
}

.nav-phone:hover { color: var(--text); }

.menu-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  padding: 1.5rem;
  background: rgba(9, 13, 24, 0.92);
  backdrop-filter: blur(24px);
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-phone { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: min(60vw, 700px);
  height: min(60vw, 700px);
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(circle, rgba(0, 102, 255, 0.28), transparent 70%);
  top: -18%;
  left: -12%;
  animation: heroDrift1 22s ease-in-out infinite;
}

.hero::after {
  background: radial-gradient(circle, rgba(91, 157, 255, 0.2), transparent 70%);
  bottom: -22%;
  right: -12%;
  animation: heroDrift2 26s ease-in-out infinite;
}

@keyframes heroDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 6%) scale(1.08); }
}

@keyframes heroDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, -4%) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-copy {
  max-width: 620px;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
}

.hero-copy p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(closest-side, rgba(91, 157, 255, 0.28), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-blue);
  box-shadow: var(--shadow-glow);
  transition: box-shadow 0.45s var(--ease);
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0) 40%, rgba(4, 8, 18, 0.55) 100%);
  pointer-events: none;
}

.hero-image-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Portrait framing for the About "person washing" shot. */
.hero-image-wrap.about-portrait img {
  aspect-ratio: 4/5;
  object-position: center 40%;
}

/* Before / After Slider */
.ba-section { padding: 0 0 clamp(4rem, 8vw, 6rem); }

.ba-hero-label {
  text-align: center;
  margin-bottom: 2rem;
}

/* Glass "picture frame" wrapper — used for the hero-level showcase slider.
   Hugs the (portrait) slider it contains and stays centred, so the blue frame
   fits the image rather than stretching the full column width. */
.ba-frame {
  padding: 0.7rem;
  border-radius: calc(var(--radius-lg) + 10px);
  max-width: 488px;
  margin-inline: auto;
}

.ba-frame .ba-slider {
  box-shadow: 0 0 0 1px rgba(91, 157, 255, 0.1);
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 280px;
  max-height: 74vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  border: 1px solid var(--border-blue);
  box-shadow: 0 0 0 1px rgba(91, 157, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 90px rgba(91, 157, 255, 0.12);
  transition: box-shadow 0.45s var(--ease);
}

.ba-slider:hover {
  box-shadow: 0 0 0 1px rgba(91, 157, 255, 0.22), 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 110px rgba(91, 157, 255, 0.22);
}

@media (max-width: 768px) {
  .ba-slider { aspect-ratio: 4/3; min-height: 240px; }
}

/* Portrait variant — used for the tall wheel before/after on the home page.
   Higher specificity than the base + mobile rules, so it holds at every width;
   capped width keeps it a centred showcase card rather than a full-bleed strip. */
.ba-slider.ba-portrait {
  aspect-ratio: 3/4;
  max-width: 460px;
  margin-inline: auto;
  min-height: 0;
}

/* "Prices may vary" note — light + muted on the dark home page, dark on the
   white booking-page pricing card. */
.price-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}
.glass-white .price-note { color: var(--ink-muted); text-align: left; font-style: normal; }

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(91, 157, 255, 0.7);
}

.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px) saturate(1.6);
  -webkit-backdrop-filter: blur(10px) saturate(1.6);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 24px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ba-slider:hover .ba-handle-knob {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4), 0 0 34px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ba-label {
  position: absolute;
  top: 1rem;
  z-index: 4;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.ba-label-before { left: 1rem; background: rgba(4, 8, 18, 0.7); color: #fff; }
.ba-label-after { right: 1rem; background: rgba(0, 102, 255, 0.85); color: #fff; }

/* Slow ambient light sweep across the showcase slider — a signature, restrained
   "reflection" pass rather than a constant shimmer on every card. */
.ba-frame {
  position: relative;
  overflow: hidden;
}

.ba-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: baSweep 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes baSweep {
  0%, 60%, 100% { transform: translateX(-120%); }
  80% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .ba-frame::after { display: none; }
}

/* Cards grid */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.glass-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-blue);
}

.glass-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue-light);
  margin-bottom: 1.25rem;
}

.glass-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Feature cards ("why us" strip) */
.feature-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  /* Deterministic columns so six cards never orphan a row:
     1 on mobile, 2 on tablet (3 rows of 2), 3 on desktop (2 rows of 3). */
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 1.9rem;
  text-align: left;
  border-radius: var(--radius-lg);
  transition: box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.feature-card:hover {
  border-color: rgba(91, 157, 255, 0.5);
  box-shadow: var(--shadow-card-hover);
}

/* Navy gradient icon tile with a white line icon (used on white cards).
   Grows and tips slightly toward you when the card is hovered. */
.feature-card .icon,
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(150deg, #1c3a5c, #0a1727);
  box-shadow: 0 10px 22px rgba(7, 20, 40, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.feature-card:hover .icon {
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 16px 30px rgba(7, 20, 40, 0.4), 0 0 22px rgba(91, 157, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-icon {
  transform: scale(1.09) rotate(-3deg);
  box-shadow: 0 16px 32px rgba(7, 20, 40, 0.42), 0 0 26px rgba(91, 157, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 1.15rem;
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.875rem;
}

/* Service cards (reference-inspired: icon, title + price pill, copy, link) */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius-lg);
  /* Aligned to the 0.45s card-hover timing used by feature/review/gallery cards. */
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 157, 255, 0.5);
  box-shadow: var(--shadow-card-hover);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.service-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.service-title-row h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-pill {
  flex-shrink: 0;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(91, 157, 255, 0.14);
  border: 1px solid rgba(91, 157, 255, 0.22);
  white-space: nowrap;
}

.service-card > p {
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blue);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.service-link svg { transition: transform 0.3s var(--ease); }
.service-card:hover .service-link { gap: 0.75rem; }
.service-card:hover .service-link svg { transform: translateX(3px); }

.service-addons {
  margin-top: 2.25rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-addons strong { color: var(--text); font-weight: 600; }

/* Gallery */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.gallery-tab {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.gallery-tab:hover {
  color: var(--text);
  border-color: var(--border-blue);
}

.gallery-tab:active {
  transform: scale(0.96);
}

.gallery-tab.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px var(--blue-glow);
}

/* Centered flex-wrap (was grid): a partial last row — from an odd total or a
   filter like "Full Valet" — now centres instead of hugging the left, so the
   gallery never looks lopsided. Cards grow to fill full rows, capped so partial
   rows stay a sensible size. */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.gallery-item:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--border-blue);
}

.gallery-item.hidden {
  display: none;
}

.gallery-item.filtering-out {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
}

.gallery-item .ba-slider {
  aspect-ratio: 4/3;
  min-height: auto;
  max-height: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Cards are laid out as flex columns and the grid stretches every card in a
   row to the tallest one's height. Let the media area grow to absorb that
   surplus so shorter cards (e.g. the single-image 16/9 "Showroom Finish" beside
   a taller 4/3 before/after slider) don't leave a blank strip below the caption.
   The caption keeps its natural height and stays pinned to the bottom. */
.gallery-item { display: flex; flex-direction: column; flex: 1 1 340px; max-width: 400px; }
.gallery-item .ba-slider,
.gallery-item .gallery-single { flex: 1 0 auto; }

/* Single-image cards only round their top corners (the card clips the rest). */
.gallery-item .gallery-single { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.gallery-item-body { padding: 1.25rem 1.5rem 1.5rem; }

.gallery-item-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.gallery-item-body .tag {
  font-size: 0.8125rem;
  color: var(--blue-light);
  font-weight: 600;
}

.gallery-item-body .quote {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Caption panels are now dark glass (same surface language as the filter buttons
   and CTA), so the cube hover reads as the IDENTICAL screen-blend glow. A soft
   dark halo keeps the light text crisp over the brightest cubes in every state.
   Colour transitions smoothly so the text can brighten to premium white on hover
   (Stage 2/3). */
.gallery-item-body h3,
.gallery-item-body .tag,
.gallery-item-body .quote {
  text-shadow: 0 1px 4px rgba(4, 10, 22, 0.9), 0 0 14px rgba(4, 10, 22, 0.65);
  transition: color 0.4s var(--ease);
}

/* On hover the caption text brightens toward premium white for maximum
   legibility over the cube glow; idle stays the calmer white/blue/grey.
   (Under prefers-reduced-motion the colour transition is instant, not removed.) */
.gallery-item:hover .gallery-item-body h3,
.gallery-item:hover .gallery-item-body .quote { color: var(--text); }
.gallery-item:hover .gallery-item-body .tag { color: #bcd6ff; }

/* Image hover zoom */
.gallery-zoom {
  overflow: hidden;
}

.gallery-zoom img {
  /* Snappier, more reactive zoom (was 0.6s) — the image responds sooner while
     still easing smoothly; opacity fade-in stays gentle. */
  transition: transform 0.45s var(--ease), opacity 0.6s var(--ease);
}

.gallery-item:hover .gallery-zoom img { transform: scale(1.05); }

/* Standalone "after" showcase card — mirrors the slider frame, single image. */
.gallery-single {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 280px;
  max-height: 74vh;
  border-radius: var(--radius-lg);
}
.gallery-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lazy-load fade-in (paired with scripts/media.js) */
img.img-fade {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

img.img-fade.loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  img.img-fade { transition: none; opacity: 1; }
}

/* Hover tilt for glass panels (paired with scripts/media.js). Event-driven:
   media.js sets an inline transform on hover and clears it on leave; this
   transition provides the smooth follow and premium ease-back. Panels are
   static (no transform) when not hovered. */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.review-card {
  padding: 1.85rem;
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 157, 255, 0.5);
  box-shadow: var(--shadow-card-hover);
}

.review-card p {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.62;
}

.review-stars {
  color: var(--blue);
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
}

.review-author {
  margin-top: 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.review-author .text-muted { color: var(--ink-soft); font-weight: 500; }

.review-role {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* CTA band */
.cta-band {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  overflow: hidden;
}

.cta-band .bg-image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}

.cta-band .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(9, 13, 24, 0.94), rgba(13, 20, 36, 0.88));
}

.cta-cubes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-band .content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

/* Booking form */
.book-layout {
  display: grid;
  gap: 2rem;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
}

@media (min-width: 900px) {
  .book-layout { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

.form-panel { padding: 2rem; border-radius: var(--radius-lg); }

/* Honeypot spam trap — off-screen (not display:none, which some bots skip). */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-group select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-soft);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.18);
}

.form-group input.error,
.form-group select.error { border-color: #f87171; }

.form-error {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.35rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.checkbox-item:hover {
  border-color: var(--border-blue);
}

.checkbox-item:has(input:checked) {
  border-color: var(--border-blue);
  box-shadow: 0 0 0 1px rgba(91, 157, 255, 0.15);
}

.checkbox-item input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--blue-light);
}
/* Keep the checkbox + label painted above the cubic hover canvas (cubes.js). */
.checkbox-item > :not(.cube-layer) { position: relative; z-index: 1; }
.checkbox-item > .cube-layer { z-index: 0; }

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(91, 157, 255, 0.1);
  border: 1px solid var(--border-blue);
  color: var(--blue-light);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

/* ── Booking scheduler (preferred date & time) ─────────────────────────────
   A dark-glass module inset in the white form panel. The dark surface is
   deliberate: it lets the screen-blend cubic hover material (scripts/cubes.js,
   registered on .cal-day / .time-pill / .cal-nav) glow exactly as it does on
   the buttons and gallery tabs. The day grid is a fixed 42-button grid updated
   in place, so each cube <canvas> survives month navigation. */
.scheduler {
  margin-top: 0.6rem;
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(14, 32, 54, 0.92), rgba(9, 22, 40, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(4, 12, 26, 0.35);
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.cal-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.cal-nav:hover:not(:disabled) { border-color: var(--border-blue); background: rgba(91, 157, 255, 0.12); }
.cal-nav:active:not(:disabled) { transform: scale(0.92); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }

.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-dow span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  text-transform: uppercase;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}
.cal-day > :not(.cube-layer) { position: relative; z-index: 1; }
.cal-day > .cube-layer { z-index: 0; }
.cal-day:hover:not(:disabled):not(.is-selected) {
  border-color: var(--border-blue);
  background: rgba(91, 157, 255, 0.14);
  transform: translateY(-1px);
}
.cal-day:disabled { color: var(--text-soft); opacity: 0.4; cursor: default; }
.cal-day.is-empty { border-color: transparent; background: transparent; cursor: default; }
.cal-day.is-today:not(.is-selected) {
  border-color: var(--border-blue);
  color: var(--blue-light);
  font-weight: 700;
}
.cal-day.is-selected {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.time-select {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 1rem;
}
.time-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.time-pill > :not(.cube-layer) { position: relative; z-index: 1; }
.time-pill > .cube-layer { z-index: 0; }
.time-pill:hover:not(.is-selected) {
  border-color: var(--border-blue);
  background: rgba(91, 157, 255, 0.12);
  transform: translateY(-1px);
}
.time-name { font-weight: 600; font-size: 0.9rem; text-shadow: 0 1px 3px rgba(4, 10, 22, 0.7); }
.time-range { font-size: 0.75rem; color: #cdd8ec; text-shadow: 0 1px 3px rgba(4, 10, 22, 0.65); }
.time-pill.is-selected {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-color: transparent;
  box-shadow: 0 4px 16px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.time-pill.is-selected .time-range { color: rgba(255, 255, 255, 0.85); }

.sched-summary {
  margin-top: 0.9rem;
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-light);
}
.sched-summary:empty { margin-top: 0; min-height: 0; }

.cal-nav:focus-visible,
.cal-day:focus-visible,
.time-pill:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

@media (max-width: 430px) {
  .time-select { grid-template-columns: 1fr; }
}

/* Page header */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3rem;
  text-align: center;
}

.page-hero p {
  max-width: 560px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-grid h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-grid a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  transition: color 0.3s var(--ease);
}

.footer-grid a:hover { color: var(--blue-light); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Floating book button mobile */
.floating-book {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: calc(100% - 2rem);
  max-width: 400px;
}

.floating-book .btn { width: 100%; }

@media (max-width: 640px) {
  .floating-book { display: block; }
  body:has(.floating-book) { padding-bottom: 5rem; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  /* Snappier reveal: shorter duration + smaller travel = immediate, fluid.
     Still transform/opacity-only (GPU, no layout/paint thrash). */
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle stagger only — the old 0.1/0.2/0.3s delays read as lag. */
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius-md);
}

.stat-item strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--blue);
}

.stat-item .stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.9rem;
  color: var(--blue);
}

.stat-item span {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
