@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&family=Oswald:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #14110f;
  --bg-soft: #181512;
  --panel: #071b33;
  --panel-strong: #0b2b52;
  --panel-highlight: #123c68;
  --text: #f8f3ea;
  --muted: #c0cad5;
  --subtle: #8ea7bf;
  --line: rgba(48, 150, 207, 0.28);
  --brand: #3096cf;
  --brand-deep: #3f61a7;
  --brand-strong: #ffbf32;
  --brand-strong-hover: #ffd36a;
  --asphalt: #14110f;
  --deep-blue: #002147;
  --mid-blue: #3f61a7;
  --font-body: "Barlow", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-title: "Oswald", Impact, "Arial Narrow", sans-serif;
  --radius: 8px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(48, 150, 207, 0.18), transparent 30rem),
    linear-gradient(180deg, #071b33 0%, var(--bg) 44rem);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(48, 150, 207, 0.22);
  background: rgba(20, 17, 15, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(48, 150, 207, 0.36);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.brand-name {
  white-space: pre;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(48, 150, 207, 0.16);
  color: var(--brand-strong);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(48, 150, 207, 0.36);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  color: var(--text);
  font-size: 1.3rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 72px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.08) 8% 9%, transparent 9% 18%),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(255, 191, 50, 0.72) 44px 84px, transparent 84px 128px),
    linear-gradient(180deg, transparent, rgba(20, 17, 15, 0.96));
  clip-path: polygon(5% 100%, 36% 0, 64% 0, 95% 100%);
  opacity: 0.72;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.home-hero-logo {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(34vw, 380px);
  max-width: 100%;
  transform: translateY(-50%);
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.home-hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand,
.site-nav a,
.button,
.tag,
.eyebrow {
  font-family: var(--font-title);
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--brand-strong);
  color: var(--bg);
  box-shadow: 0 12px 28px rgba(255, 191, 50, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-strong-hover);
}

.button-secondary {
  border-color: rgba(48, 150, 207, 0.48);
  background: rgba(0, 33, 71, 0.36);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 191, 50, 0.78);
  background: rgba(48, 150, 207, 0.16);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.social-link {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(48, 150, 207, 0.38);
  border-radius: var(--radius);
  background: transparent;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(255, 191, 50, 0.92);
  background: rgba(48, 150, 207, 0.16);
  transform: translateY(-1px);
}

.social-link img {
  display: block;
  width: 19px;
  height: 19px;
}

.header-social-links {
  margin-top: 0;
}

.header-social-links .social-link {
  width: 34px;
  height: 34px;
}

.header-social-links .social-link img {
  width: 17px;
  height: 17px;
}

.spec-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(7, 27, 51, 0.86);
  box-shadow: var(--shadow);
}

.spec-panel ul {
  list-style: none;
  margin: 0;
  padding: 18px;
}

.spec-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(48, 150, 207, 0.22);
}

.spec-panel li:last-child {
  border-bottom: 0;
}

.spec-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.spec-value {
  font-weight: 900;
  text-align: right;
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: rgba(0, 33, 71, 0.22);
}

.dynamic-background {
  --dynamic-background-image: linear-gradient(135deg, var(--deep-blue), var(--bg));
  --dynamic-background-position: center;
  --dynamic-background-blur: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.dynamic-background::before {
  content: "";
  position: absolute;
  inset: calc(var(--dynamic-background-blur) * -2);
  z-index: 0;
  background-image: var(--dynamic-background-image);
  background-position: var(--dynamic-background-position);
  background-size: cover;
  filter: blur(var(--dynamic-background-blur));
  pointer-events: none;
  transition: background-image 700ms ease, filter 200ms ease;
}

.dynamic-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.60);
  pointer-events: none;
}

.dynamic-background > * {
  position: relative;
  z-index: 2;
}

.story-band {
  min-height: 520px;
  display: grid;
  align-items: end;
}

.cars-page-hero {
  min-height: 440px;
}

.story-band-content {
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 100%;
  border: 1px solid rgba(48, 150, 207, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 43, 82, 0.94), rgba(7, 27, 51, 0.98));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  padding: 24px;
}

.card-with-media {
  overflow: hidden;
  padding: 0;
}

.card-media {
  aspect-ratio: 16 / 10;
  margin: 0;
  border-bottom: 1px solid rgba(48, 150, 207, 0.22);
  background: var(--panel-strong);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--card-image-position, center);
}

.card-body {
  padding: 24px;
}

.card p,
.section-header p {
  color: var(--muted);
}

.cars-section {
  padding-top: 64px;
}

.cars-carousel {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.cars-showcase {
  --car-feature-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  grid-template-rows: var(--car-feature-height);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(48, 150, 207, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(11, 43, 82, 0.92), rgba(7, 27, 51, 0.98));
  box-shadow: var(--shadow);
}

.cars-showcase-media {
  min-height: 0;
  height: 100%;
  margin: 0;
  background: var(--panel);
}

.cars-showcase-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cars-showcase-content {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
  overflow: auto;
  padding: 34px;
}

.cars-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(48, 150, 207, 0.48);
  border-radius: var(--radius);
  background: rgba(0, 33, 71, 0.36);
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  border-color: rgba(255, 191, 50, 0.78);
  background: rgba(48, 150, 207, 0.16);
}

.cars-counter {
  min-width: 58px;
  color: var(--muted);
  font-family: var(--font-title);
  text-align: center;
}

.cars-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.car-tab {
  min-height: 38px;
  border: 1px solid rgba(48, 150, 207, 0.34);
  border-radius: 999px;
  background: rgba(0, 33, 71, 0.28);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-title);
  padding: 7px 13px;
}

.car-tab[aria-pressed="true"],
.car-tab:hover,
.car-tab:focus-visible {
  border-color: rgba(255, 191, 50, 0.76);
  background: rgba(255, 191, 50, 0.1);
  color: var(--brand-strong);
}

.car-detail-grid {
  align-items: stretch;
}

.car-info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.car-spec-list,
.car-mod-list,
.car-gallery {
  display: grid;
  gap: 12px;
}

.car-spec-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid rgba(48, 150, 207, 0.18);
  padding-bottom: 10px;
}

.car-spec-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.car-spec-label {
  color: var(--subtle);
  font-size: 0.92rem;
}

.car-spec-value {
  color: var(--text);
  font-weight: 700;
}

.car-mod-group h4 {
  margin: 0 0 6px;
  color: var(--brand-strong);
  font-family: var(--font-title);
  font-size: 1rem;
}

.car-mod-group ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.car-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.car-gallery-item {
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(48, 150, 207, 0.22);
  border-radius: var(--radius);
  background: var(--panel);
}

.car-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.car-gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  padding: 0;
}

.car-gallery-trigger:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: -4px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(54px, 0.12fr) minmax(0, 1fr) minmax(54px, 0.12fr);
  align-items: center;
  gap: 18px;
  background: rgba(3, 11, 22, 0.9);
  padding: 76px 28px 34px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox-frame {
  display: grid;
  grid-column: 2;
  justify-items: center;
  gap: 14px;
  margin: 0;
  min-width: 0;
}

.lightbox-frame img {
  display: block;
  max-width: min(100%, 1120px);
  max-height: calc(100vh - 150px);
  border: 1px solid rgba(48, 150, 207, 0.32);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: contain;
}

.lightbox-frame figcaption {
  color: var(--muted);
  font-family: var(--font-title);
  text-align: center;
}

.lightbox-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 191, 50, 0.52);
  border-radius: 999px;
  background: rgba(0, 33, 71, 0.62);
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-button:hover,
.lightbox-button:focus-visible {
  background: rgba(255, 191, 50, 0.14);
  border-color: var(--brand-strong);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
}

.lightbox-prev {
  justify-self: end;
}

.lightbox-next {
  justify-self: start;
}


.page-hero {
  padding: 96px 0 56px;
  background:
    linear-gradient(135deg, rgba(48, 150, 207, 0.18), transparent 34rem),
    linear-gradient(180deg, rgba(0, 33, 71, 0.38), transparent);
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
}

.list {
  display: grid;
  gap: 14px;
}

.list-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid rgba(48, 150, 207, 0.22);
  padding: 20px 0;
}

.tag {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 191, 50, 0.46);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 191, 50, 0.08);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid rgba(48, 150, 207, 0.22);
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 920px) {
  .cars-showcase {
    --car-feature-height: 300px;
    grid-template-columns: 1fr;
    grid-template-rows: var(--car-feature-height) auto;
  }

  .cars-showcase-media {
    height: 100%;
  }

  .cars-showcase-content {
    overflow: visible;
  }
}

@media (max-width: 820px) {
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-strong), var(--panel));
    padding: 10px;
  }

  .site-nav--open {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .grid,
  .list-item {
    grid-template-columns: 1fr;
  }

  .home-hero-logo {
    display: none;
  }

  .story-band {
    min-height: 420px;
  }

  .cars-page-hero {
    min-height: 360px;
  }

  .spec-panel {
    max-width: 420px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .gallery-lightbox {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 74px 16px 24px;
  }

  .lightbox-frame {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox-frame img {
    max-height: calc(100vh - 190px);
  }

  .lightbox-prev,
  .lightbox-next {
    grid-row: 2;
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .cars-showcase {
    --car-feature-height: 240px;
  }

  .cars-showcase-content {
    padding: 24px;
  }

  .cars-controls,
  .cars-tabs {
    justify-content: center;
  }

  .car-spec-row,
  .car-gallery {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .section-inner {
    width: min(100% - 24px, 1120px);
  }

  .hero,
  .section {
    padding: 56px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}





