/* Shared brand treatment for advertising landings and the model hub.
   Keep page layout/content in each landing's own stylesheet. */
:root {
  --landing-black: #050505;
  --landing-white: #f3f2ef;
  --landing-red: #e10613;
  --landing-red-hover: #b80510;
  --landing-muted: #a3a6aa;
  --landing-line: rgba(255, 255, 255, .15);
  --landing-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  color-scheme: dark;
}

html,
body {
  background: var(--landing-black);
  color: var(--landing-white);
  font-family: var(--landing-font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

.nav,
main,
footer {
  max-width: 1320px;
}

.nav {
  position: relative;
  z-index: 2;
  border-bottom-color: var(--landing-line);
  background: linear-gradient(180deg, rgba(5, 5, 5, .92), rgba(5, 5, 5, .55));
  color: var(--landing-white);
  font-family: var(--landing-font);
  backdrop-filter: blur(16px);
}

.nav nav { font-family: var(--landing-font); }
.nav a:hover,
.related a:hover { color: var(--landing-white); }
.phone { color: var(--landing-white); }

.hero,
.hub {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--landing-white);
  background-color: var(--landing-black);
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, .96) 0%, rgba(5, 5, 5, .84) 37%, rgba(5, 5, 5, .35) 70%, rgba(5, 5, 5, .12) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, .78), transparent 50%),
    url("/opening-desktop-v3-r2.webp");
  background-repeat: no-repeat;
  background-position: center, center, center 54%;
  background-size: cover;
}

.hero {
  display: flex;
  min-height: min(780px, calc(100svh - 75px));
  align-items: center;
  padding: clamp(72px, 10vw, 132px) clamp(24px, 6.5vw, 92px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
}

.hero-image { display: none !important; }

.hub {
  min-height: min(560px, calc(82svh - 75px));
  padding: clamp(74px, 9vw, 120px) clamp(24px, 6.5vw, 92px) clamp(56px, 7vw, 92px);
  background-position: center, center, center 51%;
}

.hero::before,
.hub::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, var(--landing-black) 0%, transparent 22%);
  pointer-events: none;
}

.hero h1,
.hub h1,
.section h2,
.closing h2,
.related h2 {
  color: var(--landing-white);
  font-family: var(--landing-font);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.hero h1 span { color: var(--landing-white); }
.hero .eyebrow,
.hub .eyebrow { color: var(--landing-muted); }
.intro,
.hub > p:last-child { color: var(--landing-white); }
.fine { color: var(--landing-muted); }

.button,
.button.secondary {
  min-height: 54px;
  border: 1px solid var(--landing-red);
  border-radius: 3px;
  background: var(--landing-red);
  box-shadow: none;
  color: #fff;
  font-family: var(--landing-font);
  font-weight: 550;
  letter-spacing: .005em;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.button:hover,
.button.secondary:hover {
  border-color: var(--landing-red-hover);
  background: var(--landing-red-hover);
  color: #fff;
}

.button:focus-visible,
.text-link:focus-visible,
.related a:focus-visible,
.nav a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.text-link,
.related a,
footer,
footer a,
footer strong { font-family: var(--landing-font); }
.text-link { color: var(--landing-white); }

.section,
.related,
footer { border-color: var(--landing-line); }
.section { border-top-color: var(--landing-line); }
.section-heading > p:last-child { color: var(--landing-muted); }

.car,
.hub-grid article {
  border: 1px solid var(--landing-line);
  border-radius: 3px;
  background: #111214;
}

.car p,
.hub-grid div > p:last-child,
footer { color: var(--landing-muted); }
.car span { color: var(--landing-white); }
.closing {
  border-radius: 3px;
  background: #111214;
}
.related a {
  border-color: var(--landing-line);
  border-radius: 3px;
}
footer strong { color: var(--landing-white); }

@media (max-width: 900px) {
  .hero,
  .hub {
    background-position: center, center, 58% center;
  }
}

@media (max-width: 620px) {
  .nav {
    background: rgba(5, 5, 5, .86);
    backdrop-filter: blur(12px);
  }

  .hero {
    min-height: max(640px, calc(100svh - 66px));
    align-items: flex-start;
    padding: clamp(48px, 9svh, 76px) 20px 72px;
    background-image:
      linear-gradient(180deg, rgba(5, 5, 5, .76) 0%, rgba(5, 5, 5, .54) 39%, rgba(5, 5, 5, .08) 70%, rgba(5, 5, 5, .48) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, .28), transparent 58%),
      url("/opening-mobile-v3-720.webp");
    background-position: center, center, center 61%;
    background-size: cover;
  }

  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .hero .intro { max-width: 34rem; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
  .hero .fine { max-width: 34rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .75); }
  .hero .button { width: 100%; }

  .hub {
    min-height: max(470px, 69svh);
    padding: 64px 20px 50px;
    background-image:
      linear-gradient(180deg, rgba(5, 5, 5, .68) 0%, rgba(5, 5, 5, .5) 38%, rgba(5, 5, 5, .08) 72%, rgba(5, 5, 5, .68) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, .24), transparent 65%),
      url("/opening-mobile-v3-720.webp");
    background-position: center, center, center 60%;
    background-size: cover;
  }

  .hub h1 { font-size: clamp(36px, 10vw, 44px); }
  .button.secondary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button.secondary { transition: none; }
}
