/* ------------------------------------------------------------------ */
/* Pro 307 — styles                                                    */
/* Palette: purple car, red logo accent, silver type, charcoal base.   */
/* ------------------------------------------------------------------ */
:root {
  --purple: #431d63; /* deeper version of the car purple */
  --purple-2: #5b2a86;
  --purple-3: #7a43b3;
  --red: #e5303c;
  --red-2: #b81f27;
  --silver: #cfd3d9;
  --silver-2: #9aa0a8;
  --text: #eceef1;
  --muted: #aeb4bd;
  --bg: #101116;
  --bg-2: #16181f;
  --bg-3: #1c1f28;
  --line: #2c3039;
  --max: 1180px;
  --radius: 14px;
  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  margin: 0;
  letter-spacing: 0.2px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12.5px;
  color: var(--silver-2);
  position: relative;
  inline-size: max-content;
  padding-left: 26px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--purple-3));
}
.section-head {
  max-width: 52rem;
  margin-bottom: clamp(28px, 5vw, 48px);
}
section > .wrap > .section-head {
  margin-bottom: clamp(30px, 5vw, 54px);
}
.section-lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  margin: 14px 0 0;
}

/* Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary,
.btn-ghost {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%);
  color: #fff;
  box-shadow: 0 10px 28px -12px rgba(229, 48, 60, 0.7);
}
.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 3px solid var(--silver);
  outline-offset: 3px;
}
.btn[hidden] {
  display: none;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 99;
  background: var(--bg-3);
  color: #fff;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

/* Header ----------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 15, 20, 0.72);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}
.brand-logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.site-nav ul {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 13.5px;
  color: var(--silver);
  position: relative;
  padding-block: 6px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.2s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  right: 0;
}
.site-nav a:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 4px;
  border-radius: 4px;
}
.a:focus-visible,
.vf-open:focus-visible,
.social:focus-visible,
.vf-open-link:focus-visible {
  outline: 3px solid var(--silver);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  min-height: min(92vh, 860px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(40px, 8vw, 96px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 82% 20%, rgba(91, 42, 134, 0.42) 0%, transparent 60%),
    linear-gradient(180deg, #111 0%, var(--bg) 60%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("img/hero.jpg");
  background-size: cover;
  background-position: center 62%;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 92%);
  mask-image: linear-gradient(90deg, #000 30%, transparent 92%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    100deg,
    rgba(16, 17, 22, 0.97) 0%,
    rgba(16, 17, 22, 0.78) 42%,
    rgba(16, 17, 22, 0.2) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 56rem;
}
.hero-title {
  font-size: clamp(64px, 17vw, 168px);
  font-weight: 700;
  line-height: 0.92;
  background: linear-gradient(180deg, #ffffff 0%, #d6d9de 55%, #aeb4bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}
.hero-sub {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: clamp(13px, 2vw, 17px);
  color: var(--red);
}
.hero-tag {
  margin: 22px 0 0;
  max-width: 42rem;
  color: var(--silver);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Content / videos ------------------------------------------------- */
.content {
  padding-block: clamp(64px, 10vw, 128px);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  margin-bottom: 18px;
}
.vf-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.vf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vf-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vf-open {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(229, 48, 60, 0.9);
  box-shadow: 0 14px 30px -12px rgba(229, 48, 60, 0.8);
  transition: transform 0.15s ease, background 0.15s ease;
}
.vf-open:hover {
  transform: scale(1.06);
  background: var(--red);
}
.vf-frame.has-video .vf-open,
.vf-frame.has-video .vf-img {
  display: none;
}
.vf-still {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  background: rgba(11, 12, 16, 0.85);
  color: var(--silver);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 16px;
  font: 500 12px var(--font-body);
  letter-spacing: 1px;
  cursor: pointer;
}
.vf-still:hover {
  color: #fff;
  border-color: var(--silver-2);
}
.vf-still:focus-visible {
  outline: 3px solid var(--silver);
  outline-offset: 2px;
}
.vf-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.vf-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(18px, 3vw, 30px);
  border-left: 1px solid var(--line);
}
.tag {
  font-family: var(--font-display);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--red);
  border: 1px solid rgba(229, 48, 60, 0.4);
  padding: 5px 10px;
  border-radius: 100px;
  align-self: flex-start;
}
.vf-title {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.15;
}
.vf-open-link {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12.5px;
  color: var(--silver);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vf-open-link:hover {
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.video-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  min-height: 0;
}
.video-card .thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
  transition: transform 0.4s ease;
}
.video-card:hover .thumb,
.video-card:focus-visible .thumb {
  transform: scale(1.04);
}
.video-card .play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(17, 18, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: #fff;
}
.video-card .vmeta {
  display: grid;
  gap: 6px;
  padding: 14px 15px 16px;
}
.video-card h3 {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 1.3;
}

.content-cta {
  margin-top: 34px;
  display: flex;
}

/* Car ------------------------------------------------------------- */
.car {
  padding-block: clamp(64px, 10vw, 128px);
  background:
    linear-gradient(180deg, transparent, rgba(91, 42, 134, 0.05)),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.car-inner {
  display: block;
}
.car-fig {
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.car-copy {
  margin-bottom: 8px;
}
.car-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 11;
}
.projects {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.project {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
}
.project h3 {
  font-size: 17px;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.project-fig {
  margin: 14px 0 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.project-fig img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}
.project ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}
.project li {
  padding-left: 18px;
  position: relative;
}
.project li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 2px;
  background: var(--purple-3);
}
.car-note {
  margin: 22px 0 0;
  color: var(--silver-2);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* Car spec lists ---------------------------------------------------- */
.project dl.spec-list {
  margin: 0;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.spec-list dt,
.spec-list dd {
  margin: 0;
  padding: 10px 14px;
  background: var(--bg-3);
}
.spec-list dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
  color: var(--silver-2);
  padding-top: 12px;
}
.spec-list dd {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .project dl.spec-list {
    grid-template-columns: 128px 1fr;
  }
}

/* Events ------------------------------------------------------------ */
.events {
  padding-block: clamp(60px, 9vw, 112px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.event-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.event {
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple-3);
  border-radius: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
}
.event h3 {
  font-size: 16px;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.event p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Stories (Fail Vlogs) ----------------------------------------------- */
.stories {
  padding-block: clamp(60px, 9vw, 112px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.story-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  max-width: 72rem;
}
.story {
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
}
.story h3 {
  font-size: 16px;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.story p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.story-quote {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--purple);
  font-style: italic;
  color: var(--silver);
  font-size: 0.98rem;
  line-height: 1.5;
}
.story-watch {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
.story-watch:hover {
  color: var(--silver);
  text-decoration: underline;
}
.story-watch:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* About ----------------------------------------------------------- */
.about {
  padding-block: clamp(64px, 10vw, 128px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.about-copy {
  max-width: 36rem;
}
.about h2 {
  font-size: clamp(30px, 5vw, 52px);
}
#about-body {
  margin: 18px 0 0;
  color: var(--silver);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}
.facts {
  margin: 0;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(90px, 40%) 1fr;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.facts > div:last-child {
  border-bottom: none;
}
.facts dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 11.5px;
  color: var(--silver-2);
  padding-top: 2px;
}
.facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

/* Follow ---------------------------------------------------------- */
.follow {
  padding-block: clamp(64px, 10vw, 120px);
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(91, 42, 134, 0.35), transparent 55%),
    var(--bg-3);
  border-top: 1px solid var(--line);
  text-align: center;
}
.follow .section-lede {
  margin-inline: auto;
  max-width: 38rem;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px 10px;
  justify-content: space-between;
  padding: 22px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.social:hover {
  border-color: var(--silver-2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}
.social .s-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13.5px;
  color: var(--text);
  width: 100%;
  justify-content: space-between;
}
.social svg {
  width: 22px;
  height: 22px;
  color: var(--silver);
}
.social:hover svg {
  color: var(--red);
}
.social .s-handle {
  color: var(--muted);
  font-size: 0.9rem;
}

.instagram-panel {
  margin-top: 36px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  min-width: 0;
  text-align: center;
}
.instagram-panel h3 {
  font-size: 1.5rem;
  text-align: center;
}
.instagram-panel p {
  margin-block: 12px 18px;
  margin-inline: auto;
  max-width: 65ch;
  text-align: center;
}
.instagram-note {
  color: var(--silver);
  font-size: 0.9rem;
}
.instagram-panel .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 540px !important;
  margin: 20px auto 0 !important;
  background: var(--bg-2) !important;
  color: var(--silver) !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Footer ---------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: #0b0c10;
  padding-block: 30px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
}
.foot-logo {
  height: 34px;
  width: auto;
  opacity: 0.9;
}
#foot-line {
  margin: 0;
  color: var(--silver);
  font-size: 0.95rem;
}
.foot-legal {
  margin: 0;
  color: var(--silver-2);
  font-size: 0.85rem;
}

/* Noscript -------------------------------------------------------- */
.noscript {
  padding: 24px clamp(18px, 4vw, 40px);
  background: var(--bg-3);
  text-align: center;
}

/* Responsive ------------------------------------------------------ */
@media (max-width: 940px) {
  .video-feature {
    grid-template-columns: 1fr;
  }
  .vf-meta {
    border-left: none;
    border-top: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .vf-title {
    flex: 1 1 100%;
    order: -1;
  }
  .vf-meta .tag {
    order: 1;
  }
  .vf-meta .vf-open-link {
    order: 2;
  }
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .car-inner,
  .about-inner {
    grid-template-columns: 1fr;
  }
  .car-fig-alt {
    display: block;
  }
  .hero-bg::before {
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 96%);
    mask-image: linear-gradient(180deg, #000 40%, transparent 96%);
    opacity: 0.55;
  }
}
@media (max-width: 620px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .social-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
  }
  .hero-title {
    font-size: clamp(58px, 22vw, 110px);
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-cta .btn {
    width: auto;
  }
  .facts > div {
    grid-template-columns: 1fr;
  }
  .head-inner {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .site-nav {
    order: 3;
    width: 100%;
  }
  .site-nav ul {
    justify-content: space-between;
    gap: 8px;
  }
  .site-nav a {
    font-size: 12px;
  }
}
