@font-face {
  font-family: "Stereo Gothic";
  src: url("assets/fonts/stereo-gothic-600.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Stereo Gothic";
  src: url("assets/fonts/stereo-gothic-850.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 850;
}

:root {
  color-scheme: dark;
  --logo-navy: #001B44;
  --logo-navy-deep: #000f25;
  --logo-white: #ffffff;
  --logo-red: #E10600;
  --logo-blue: #5BC2E7;
  --logo-blue-deep: #1d82b6;
  --bg: var(--logo-navy);
  --bg-deep: var(--logo-navy-deep);
  --ink: var(--logo-white);
  --muted: #c2cede;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(0, 27, 68, 0.82);
  --panel-solid: #041f4e;
  --red: var(--logo-red);
  --blue: var(--logo-blue);
  --blue-deep: var(--logo-blue-deep);
  --steel: #8da0b8;
  --max: 1180px;
  --font-body: "Open Sans", Arial, sans-serif;
  --font-heading: "Archivo", Arial, sans-serif;
  --font-brand: "Stereo Gothic", "Arial Narrow", Arial, sans-serif;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background: var(--bg-deep);
  font-weight: 600;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.scroll-video-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-deep) url("assets/IMG_1940.png") center / cover no-repeat;
  opacity: 0.58;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.scroll-video-backdrop.ready,
.scroll-video-backdrop.frames-ready {
  opacity: 0.72;
}

.scroll-video-backdrop.fallback {
  opacity: 0.46;
}

.scroll-video-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 27, 68, 0.58), rgba(0, 27, 68, 0.28)),
    linear-gradient(180deg, rgba(0, 15, 37, 0.4), rgba(0, 15, 37, 0.68));
}

.scroll-video-backdrop canvas,
.scroll-video-backdrop video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.scroll-video-backdrop canvas {
  position: absolute;
  inset: 0;
}

.scroll-video-backdrop.frames-ready video {
  opacity: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

a,
button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(0, 27, 68, 0.9), rgba(0, 27, 68, 0));
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(0, 27, 68, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: clamp(180px, 22vw, 320px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.site-nav a {
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.brand:hover {
  color: var(--blue);
}

.site-nav a::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--red) 0 42%, var(--blue-deep) 42% 68%, var(--blue) 68% 100%);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 140px clamp(22px, 5vw, 72px) 86px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 27, 68, 0.72) 0%, rgba(0, 27, 68, 0.34) 42%, rgba(0, 27, 68, 0.06) 72%),
    linear-gradient(0deg, rgba(0, 15, 37, 0.86) 0%, rgba(0, 15, 37, 0.08) 28%, rgba(0, 15, 37, 0.12) 100%);
}

.hero-content {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.kicker,
.product-meta {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: var(--font-brand);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1 {
  font-family: var(--font-brand);
  font-weight: 850;
  max-width: 100%;
  font-size: clamp(1.2rem, 6vw, 7.2rem);
  white-space: nowrap;
  overflow: visible;
}

h1 span {
  display: inline-block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2.35rem, 5vw, 5.2rem);
}

h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

p {
  color: var(--muted);
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-deep);
}

.button.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--ink) 0 72%, var(--blue) 72% 86%, var(--red) 86% 100%);
  transition: transform 240ms ease;
  transform: scaleX(1);
  transform-origin: right;
}

.button.primary:hover::before {
  transform: scaleX(1.28);
}

.button.secondary,
.product-link {
  background: rgba(0, 27, 68, 0.36);
}

.button.secondary:hover,
.product-link:hover {
  background: var(--red);
  border-color: var(--red);
}

.hero-status {
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: 86px;
  width: min(380px, calc(100% - 44px));
  padding-left: 22px;
  border-left: 3px solid var(--red);
}

.hero-status span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-status strong {
  display: block;
  font: 700 1.06rem/1.45 var(--font-body);
}

.section {
  position: relative;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) 0;
}

.parts-section,
.social-section,
.garage-section {
  isolation: isolate;
}

.parts-section::before,
.social-section::before,
.garage-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--section-bg, var(--ink));
}

.parts-section::after,
.social-section::after,
.garage-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  height: 4px;
  background: linear-gradient(90deg, var(--ink) 0 52%, var(--red) 52% 66%, var(--blue-deep) 66% 80%, var(--blue) 80% 100%);
  opacity: 0.95;
}

.parts-section::after {
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
}

.parts-section {
  --section-bg: rgba(0, 27, 68, 0.58);
}

.social-section {
  --section-bg: rgba(0, 27, 68, 0.58);
}

.garage-section {
  --section-bg: rgba(0, 27, 68, 0.58);
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.section-heading p:last-child,
.garage-details p {
  margin: 0;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-card {
  position: relative;
  min-width: 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 3vw, 36px);
  background:
    linear-gradient(180deg, rgba(91, 194, 231, 0.14), rgba(29, 130, 182, 0.08) 45%, rgba(225, 6, 0, 0.08) 100%),
    var(--panel-solid);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ink) 0 58%, var(--red) 58% 73%, var(--blue-deep) 73% 86%, var(--blue) 86% 100%);
}

.product-card p:not(.product-meta) {
  margin: 18px 0 0;
  line-height: 1.7;
}

.garage-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.garage-details {
  display: grid;
  gap: 34px;
}

.upgrade-list {
  display: grid;
  background: var(--line);
  border: 1px solid var(--line);
}

.upgrade-list div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px clamp(20px, 3vw, 30px);
  background: rgba(0, 27, 68, 0.76);
}

.upgrade-list div + div {
  border-top: 1px solid var(--line);
}

.upgrade-list strong {
  color: var(--ink);
  font: 800 clamp(1.05rem, 2vw, 1.55rem)/1.16 var(--font-heading);
  text-transform: uppercase;
}

.upgrade-list span {
  color: var(--muted);
  font-family: var(--font-brand);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-section {
  padding-top: clamp(72px, 10vw, 130px);
}

.link-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.link-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.link-list a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(180px, 34vw);
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 42%, var(--blue-deep) 42% 68%, var(--blue) 68% 100%);
  opacity: 0.35;
  transition: opacity 180ms ease, width 180ms ease;
}

.link-list a:hover::before {
  width: min(320px, 55vw);
  opacity: 1;
}

.link-list span {
  color: var(--muted);
  font-family: var(--font-brand);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.link-list strong {
  font: 800 clamp(1.25rem, 3vw, 2.7rem)/1 var(--font-heading);
  text-align: right;
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: anywhere;
}

.link-list a:hover strong {
  color: var(--red);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-brand);
  font-weight: 850;
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1220px) {
  .hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero-status {
    position: static;
    width: min(520px, 100%);
    margin-top: 18px;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    position: relative;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: rgba(0, 27, 68, 0.74);
    color: var(--ink);
  }

  .nav-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .nav-toggle span + span {
    margin-top: -12px;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 20px;
    width: 100vw;
    min-height: 0;
    padding: 106px 30px 34px;
    background: rgba(0, 27, 68, 0.88);
    border-bottom: 1px solid rgba(91, 194, 231, 0.32);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    font: 850 clamp(1.15rem, 6vw, 1.65rem)/1 var(--font-brand);
    max-width: 100%;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .site-nav a::after {
    height: 2px;
    margin-top: 8px;
    opacity: 1;
    transform: scaleX(1);
  }

  .hero {
    min-height: auto;
    padding-bottom: 42px;
  }

  .product-grid,
  .garage-section {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: min(190px, 54vw);
  }

  .hero {
    padding: 118px 20px 44px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .section {
    width: min(100% - 34px, var(--max));
    padding-block: 76px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.15rem, 6.4vw, 2.2rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  h3 {
    font-size: clamp(1.35rem, 7.5vw, 2rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .link-list a,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .link-list strong {
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .site-header {
    min-height: 58px;
    padding: 12px 16px;
  }

  .brand img {
    width: min(150px, 48vw);
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .site-nav {
    gap: 14px;
    padding: 82px 18px 24px;
    background: rgba(0, 27, 68, 0.96);
    backdrop-filter: blur(16px);
  }

  .site-nav a {
    font-size: clamp(1rem, 8.8vw, 1.45rem);
  }

  .site-nav a::after {
    width: min(180px, 100%);
  }
}

@media (max-width: 490px) {
  h1 {
    max-width: 11.5ch;
    white-space: normal;
    line-height: 0.88;
  }
}
