:root {
  --black: #070708;
  --slar-navy: #0a3d62;
  --slar-blue: #00b2d8;
  --slar-blue-light: #4fc3f7;
  --slar-cream: #f0f7ff;
  --slar-muted: #a3b9d4;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-55: rgba(255, 255, 255, 0.55);
  --white-35: rgba(255, 255, 255, 0.35);
  --font-display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Libre Baskerville", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body.splash-division-home {
  margin: 0;
  background: var(--black);
  color: var(--white-90);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body.splash-division-home #wpadminbar {
  position: fixed;
}

.splash-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.splash-page::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.04;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.splash-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.75rem);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
}

.splash-nav .nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.splash-nav .nav-brand strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.splash-nav .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.splash-nav .nav-links a {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-55);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.splash-nav .nav-links a:hover,
.splash-nav .nav-links a:focus-visible {
  color: var(--white-90);
}

/* Mobile menu toggle + overlay — hidden on desktop */
.splash-nav__menu-toggle,
.splash-nav__mobile-menu {
  display: none;
}

.splash-split {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

.splash-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: inherit;
  transition: flex 0.7s var(--ease-out);
  outline: none;
}

.splash-panel:focus-visible {
  z-index: 15;
  box-shadow: inset 0 0 0 3px var(--white-90);
}

@media (hover: hover) and (pointer: fine) {
  .splash-split:hover .splash-panel { flex: 0.92; }
  .splash-split .splash-panel:hover { flex: 1.35; }
  .splash-split:has(.splash-panel-left:hover) .splash-divider { left: 58%; }
  .splash-split:has(.splash-panel-roadster:hover) .splash-divider { left: 42%; }
}

.splash-panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 1.2s var(--ease-out);
}

.splash-panel:hover .splash-panel-bg,
.splash-panel:focus-visible .splash-panel-bg {
  transform: scale(1.12);
}

/* Background images set inline from theme assets (splash-vw-bg.webp, splash-roadster-bg.jpeg). */

.splash-panel-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Left panel — black fade from bottom + left (copy legibility) */
.splash-panel-left .splash-panel-overlay,
.splash-panel-vw .splash-panel-overlay {
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.45) 32%,
      rgba(0, 0, 0, 0.12) 55%,
      transparent 72%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.5) 38%,
      rgba(0, 0, 0, 0.18) 62%,
      transparent 85%
    );
}

/* Right panel — black fade from bottom + right (mirrored) */
.splash-panel-roadster .splash-panel-overlay {
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.45) 32%,
      rgba(0, 0, 0, 0.12) 55%,
      transparent 72%
    ),
    linear-gradient(
      to left,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.5) 38%,
      rgba(0, 0, 0, 0.18) 62%,
      transparent 85%
    );
}

.splash-panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 28rem;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  padding-bottom: clamp(2.5rem, 8vh, 4rem);
}

.splash-panel-roadster .splash-panel-content {
  margin-left: auto;
  text-align: right;
}

.splash-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.splash-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  flex-shrink: 0;
}

.splash-panel-roadster .splash-eyebrow {
  flex-direction: row-reverse;
  margin-left: auto;
}

.splash-eyebrow--vw {
  color: var(--slar-blue-light);
}

.splash-eyebrow--vw::before {
  background: var(--slar-blue-light);
}

.splash-panel-h {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.splash-panel-vw .splash-panel-h span {
  color: var(--slar-blue-light);
}

.splash-panel-sub {
  font-size: clamp(0.8rem, 1.6vw, 0.92rem);
  line-height: 1.7;
  color: var(--white-55);
  margin: 0 0 1.75rem;
  max-width: 22rem;
}

.splash-panel-roadster .splash-panel-sub {
  margin-left: auto;
}

.splash-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  border-radius: 2px;
}

.splash-panel-cta--vw {
  background: var(--slar-blue);
  color: #fff;
  box-shadow: 0 8px 32px rgba(80, 137, 198, 0.4);
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.splash-panel-vw:hover .splash-panel-cta--vw,
.splash-panel-vw:focus-visible .splash-panel-cta--vw {
  background: var(--slar-navy);
  box-shadow: 0 10px 28px rgba(15, 52, 96, 0.45);
}

.splash-panel-cta--roadster {
  color: #fff;
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.splash-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent);
  z-index: 10;
  pointer-events: none;
  transition: left 0.7s var(--ease-out);
}

@media (min-width: 769px) {
  .splash-nav .nav-brand {
    gap: 0.25rem;
  }

  /* Desktop logo — splash-home loads after roadster-palette; keep in sync with palette desktop size */
  body.splash-division-home .splash-nav .nav-brand .slr-brand-logo {
    width: auto !important;
    max-width: 16rem !important;
    height: 3.35rem !important;
    max-height: 3.35rem !important;
  }

  .splash-nav .nav-brand strong {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  .splash-nav {
    padding: 0.75rem 0.85rem;
    align-items: flex-start;
  }

  .splash-nav .nav-brand {
    gap: 0.25rem;
    max-width: min(100%, 14rem);
  }

  .splash-nav .nav-brand strong {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    line-height: 1.25;
  }

  .splash-split { flex-direction: column; }
  .splash-panel { flex: 1; min-height: 50dvh; }
  .splash-split:hover .splash-panel,
  .splash-split .splash-panel:hover { flex: 1; }
  .splash-divider { display: none; }
  .splash-panel-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 2.5rem;
  }

  .splash-panel-vw .splash-panel-content,
  .splash-panel-roadster .splash-panel-content {
    text-align: left;
    margin-left: 0;
    max-width: none;
  }

  .splash-panel-vw .splash-eyebrow,
  .splash-panel-roadster .splash-eyebrow {
    flex-direction: row;
    margin-left: 0;
  }

  .splash-panel-vw .splash-panel-sub,
  .splash-panel-roadster .splash-panel-sub {
    margin-left: 0;
  }

  /* Mobile: left-aligned copy — darken left edge, fade to transparent right */
  .splash-panel .splash-panel-overlay {
    background:
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.45) 32%,
        rgba(0, 0, 0, 0.12) 55%,
        transparent 72%
      ),
      linear-gradient(
        to right,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.5) 38%,
        rgba(0, 0, 0, 0.18) 62%,
        transparent 85%
      );
  }

  /* Top panel sits under absolute nav — same bottom-anchored copy as Roadster, with header clearance */
  .splash-panel-vw .splash-panel-content {
    position: absolute;
    inset: 5.5rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    padding: 0 0.75rem 2.5rem;
    box-sizing: border-box;
  }

  .splash-nav .nav-links {
    display: none !important;
  }

  body.splash-division-home .splash-nav {
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
  }

  /* Beat WP / Elementor global button styles (blue fill, padding) on iOS */
  body.splash-division-home button.splash-nav__menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 2.65rem;
    height: 2.65rem;
    min-width: 2.65rem;
    min-height: 2.65rem;
    margin: 0;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.38) !important;
    color: rgba(255, 255, 255, 0.94) !important;
    box-shadow: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    line-height: 1;
  }

  body.splash-division-home button.splash-nav__menu-toggle:hover,
  body.splash-division-home button.splash-nav__menu-toggle:focus-visible {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(0, 0, 0, 0.52) !important;
    outline: none;
  }

  body.splash-division-home button.splash-nav__menu-toggle .splash-nav__menu-toggle-bar {
    display: block !important;
    flex-shrink: 0;
    width: 1.1rem;
    height: 2px;
    min-height: 2px;
    background: currentColor !important;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  body.splash-division-home button.splash-nav__menu-toggle[aria-expanded="true"] .splash-nav__menu-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.splash-division-home button.splash-nav__menu-toggle[aria-expanded="true"] .splash-nav__menu-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  body.splash-division-home button.splash-nav__menu-toggle[aria-expanded="true"] .splash-nav__menu-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .splash-nav__mobile-menu:not([hidden]) {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 100000;
  }

  .splash-nav__mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 14, 0.72);
    cursor: pointer;
  }

  .splash-nav__mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(18rem, 88vw);
    height: 100%;
    margin: 0;
    padding: 5.5rem 1.35rem 2rem;
    box-sizing: border-box;
    background: rgba(14, 16, 20, 0.97);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.45);
  }

  .splash-nav__mobile-menu-panel a {
    display: block;
    padding: 0.9rem 0;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease;
  }

  .splash-nav__mobile-menu-panel a:hover,
  .splash-nav__mobile-menu-panel a:focus-visible {
    color: var(--rs-nav-accent, var(--white-90));
  }

  .splash-nav__mobile-menu-panel a.nav-contact {
    margin-top: 0.5rem;
    color: var(--rs-nav-accent, var(--white-90));
    border-bottom: 0;
  }

  body.splash-mobile-nav-open {
    overflow: hidden;
  }
}

/* Palette preview — layout; colors from roadster-palette.css (?palette= on body) */
.rs-palette-preview {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 999999;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  max-width: min(16rem, calc(100vw - 2rem));
  padding: 0.6rem 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.rs-palette-preview__label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

.rs-palette-preview__hint {
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.rs-palette-preview__options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rs-palette-preview__options a {
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .splash-panel,
  .splash-panel-bg,
  .splash-divider { transition: none; }
  .splash-panel-bg { transform: none; }
}
