/* Dream State Motors — graffiti brush, black paint, white chrome, logo red. */
:root {
  --ink: #000000;          /* page base, matches the logo's black paint */
  --asphalt: #121212;      /* raised surfaces */
  --asphalt-line: #2b2b2b; /* surface borders */
  --white: #ffffff;        /* primary text */
  --smoke: #b8b8b8;        /* secondary text */
  --red: #f40a0a;          /* logo red: buttons, links, drips, focus */
  --red-deep: #b30000;
  --amber: #ffb020;        /* errors, kept distinct from brand red */

  --display: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
  --body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --measure: 64ch;
  --slant: -8deg;          /* matches the lean of MOTORS in the logo */
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--ink);
  /* sparse spray-paint overspray */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(244,10,10,.10) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 9%, rgba(255,255,255,.06) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 64% 42%, rgba(244,10,10,.07) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 30% 71%, rgba(255,255,255,.05) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 83%, rgba(244,10,10,.08) 0 2.5px, transparent 3.5px);
  background-size: 420px 420px, 310px 310px, 530px 530px, 380px 380px, 470px 470px;
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--red); text-underline-offset: 0.18em; font-weight: 500; }
a:hover { color: var(--white); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: var(--white); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header
   Desktop: menu split around a centered logo.
   Mobile: logo left, hamburger right, menu drops down as a full-width panel. */
.site-header {
  position: relative; z-index: 20;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--asphalt-line);
  background: rgba(0,0,0,.92);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--smoke); text-decoration: none; }
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px;
}
.brand { display: flex; }
.brand img { width: auto; }

/* Hamburger */
.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  padding: 0; margin: 0;
  background: transparent; border: 0; cursor: pointer;
  position: relative;
}
.menu-toggle .bar {
  position: absolute; left: 11px; right: 11px; height: 3px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.menu-toggle .bar:nth-child(1) { top: 15px; }
.menu-toggle .bar:nth-child(2) { top: 22.5px; background: var(--red); }
.menu-toggle .bar:nth-child(3) { top: 30px; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { top: 22.5px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .site-nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .brand img { height: 48px; }
  .menu-toggle { grid-column: 2; grid-row: 1; }
  .nav-left, .nav-right { grid-column: 1 / -1; }
  .nav-left { margin-top: .75rem; border-top: 1px solid var(--asphalt-line); }
  .site-nav li a {
    display: block;
    padding: .95rem .25rem;
    border-bottom: 1px solid var(--asphalt-line);
    font-family: var(--display);
    text-transform: uppercase; letter-spacing: .04em;
    font-size: 1.5rem; line-height: 1;
    color: var(--white);
  }
  .site-nav li a:hover, .site-nav li a:focus-visible { color: var(--red); }
  .site-nav li a[aria-current="page"] { color: var(--red); text-decoration: none; }

  /* With JavaScript: collapse behind the hamburger. Without it, links stay visible. */
  .js .menu-toggle { display: block; }
  .js .nav-left, .js .nav-right { display: none; }
  .js .site-nav.is-open .nav-left, .js .site-nav.is-open .nav-right {
    display: block;
    animation: menu-in .18s ease-out;
  }
  .js .site-nav.is-open .nav-right li:last-child a { border-bottom: 0; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .site-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }
  .site-nav ul { display: flex; gap: clamp(1.5rem, 3vw, 2.5rem); }
  .nav-left { justify-content: flex-end; }
  .nav-right { justify-content: flex-start; }
  .brand img { height: 76px; }
  .site-nav a {
    font-family: var(--display); font-weight: 400;
    text-transform: uppercase; letter-spacing: .05em; font-size: 1.15rem;
  }
}

/* Hero: full-bleed photo. Headline sits in the dark space above the car,
   buttons sit on the floor below it, so the car stays unobstructed. */
.hero {
  position: relative;
  display: flex;
  min-height: min(92vh, 920px);
  text-align: center;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 70%, rgba(0,0,0,.55) 100%),
    image-set(url("/images/hero.webp") type("image/webp"), url("/images/hero.jpg") type("image/jpeg"));
  /* the photo's edges are pure black, so it can sit smaller than the hero with no seams */
  background-size: 100% 100%, auto 80%;
  background-position: center, center 78%;
  background-repeat: no-repeat;
}
@media (max-width: 699px) {
  .hero {
    min-height: max(86vh, 640px);
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 72%, rgba(0,0,0,.5) 100%),
      image-set(url("/images/hero-sm.webp") type("image/webp"), url("/images/hero-sm.jpg") type("image/jpeg"));
    background-size: 100% 100%, auto 74%;
    background-position: center, center 80%;
  }
}
.hero-inner {
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding-top: clamp(2.25rem, 6vh, 4.5rem);
  padding-bottom: clamp(2rem, 6vh, 3.5rem);
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--red);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: .95;
  letter-spacing: .01em;
  margin: 0 auto;
  transform: skewX(var(--slant));
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.hero h1 span { display: block; }
@media (min-width: 900px) {
  .hero h1 span { display: inline; }
}
.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 50ch;
  margin: 1rem auto 0;
  color: #e6e6e6;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* Road divider: asphalt lane with red curbs, white edge lines, and a dashed center line */
.road {
  position: relative;
  height: clamp(44px, 5vw, 60px);
  background: #0e0e0e;
  border-top: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
  overflow: hidden;
}
.road::before {
  /* solid white edge lines */
  content: "";
  position: absolute; inset: 7px 0;
  border-top: 2px solid rgba(255,255,255,.55);
  border-bottom: 2px solid rgba(255,255,255,.55);
}
.road::after {
  /* dashed center line, drifting like you're driving */
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 4px; margin-top: -2px;
  background: linear-gradient(90deg, #ffffff 0 56px, transparent 56px 112px) 0 0 / 112px 100% repeat-x;
  animation: lane 1.6s linear infinite;
}
@keyframes lane { to { background-position: -112px 0; } }

/* Buttons: slanted like the brush lettering */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font: 400 1.2rem/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--red);
  cursor: pointer;
  transform: skewX(var(--slant));
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn > span { display: inline-block; transform: skewX(calc(var(--slant) * -1)); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Headings: condensed, slanted, uppercase */
.section h2, .page-intro h1, .panel h3, .done h2, .prose h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transform: skewX(var(--slant));
  transform-origin: left bottom;
}

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section h2 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 0.95; margin: 0 0 0.75rem; }
.section p { max-width: var(--measure); color: var(--smoke); }

.split { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.panel {
  background: var(--asphalt);
  border: 1px solid var(--asphalt-line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.panel h3 { font-size: 2.1rem; line-height: 1; margin: 0 0 .6rem; }
.panel p { color: var(--smoke); margin: 0 0 1.4rem; }

/* Section header with a call to action on the right */
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: 1.75rem;
}
.section-head p { margin: 0; }

/* Latest videos */
.videos { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--asphalt);
  border: 1px solid var(--asphalt-line);
}
.video-empty { display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--smoke); font-size: .95rem; }

.video-card { display: grid; gap: .5rem; color: var(--white); text-decoration: none; font-weight: 400; }
.video-thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--asphalt-line); background: var(--asphalt);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px;
  background: var(--red); border-radius: 10px; transform: skewX(var(--slant));
}
.video-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -5px;
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
  transform: skewX(calc(var(--slant) * -1));
}
.video-tag {
  position: absolute; left: .6rem; top: .6rem;
  background: #000; color: var(--white); border: 1px solid var(--red);
  font: 400 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; padding: .3rem .5rem;
}
.video-title { font-weight: 600; line-height: 1.35; }
.video-date { color: var(--smoke); font-size: .9rem; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-card:hover .video-title { color: var(--red); }

/* Latest shoots: photo grid */
.shots { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .shots { grid-template-columns: repeat(3, 1fr); gap: .9rem; } }
.shot {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius); background: var(--asphalt); border: 1px solid var(--asphalt-line);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, filter .3s ease; }
.shot:hover img { transform: scale(1.04); filter: brightness(1.1); }
.shot-empty {
  display: grid; place-items: center; text-decoration: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(244,10,10,.12), transparent 55%),
    var(--asphalt);
}
.shot-empty span { color: #6f6f6f; font: 400 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; }

/* Follow the ride */
.socials { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 820px) { .socials { grid-template-columns: repeat(3, 1fr); } }
.social {
  display: grid; gap: .35rem;
  padding: 1.4rem 1.5rem;
  background: var(--asphalt); border: 1px solid var(--asphalt-line); border-left: 4px solid var(--red);
  border-radius: var(--radius);
  color: var(--white); text-decoration: none; font-weight: 400;
  transition: border-color .15s ease, background-color .15s ease;
}
.social:hover { background: #1a1a1a; border-color: var(--red); color: var(--white); }
.social-name { font: 400 1.8rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.social-what { color: var(--smoke); }
.social-handle { color: var(--red); font-weight: 600; }

/* Inner page intro */
.page-intro { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
.page-intro h1 { font-size: clamp(3rem, 9vw, 5.5rem); line-height: .9; margin: 0 0 1rem; }
.page-intro p { max-width: 52ch; color: var(--smoke); font-size: 1.15rem; margin: 0; }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 640px; margin: 1.5rem 0 3rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 600; color: var(--white); }
.field .hint { font-size: .9rem; color: var(--smoke); }
.req { color: var(--red); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select {
  width: 100%;
  font: inherit;
  color: var(--white);
  background: var(--asphalt);
  border: 1.5px solid #3a3a3a;
  border-radius: var(--radius);
  padding: .75rem .85rem;
  min-height: 48px;
}
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7d7d7d; }
input:focus, textarea:focus, select:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(244,10,10,.3); }
input[type="date"] { color-scheme: dark; }

fieldset { border: 0; margin: 0; padding: 0; }
.choices { display: flex; gap: .75rem; flex-wrap: wrap; }
.choice {
  display: flex; align-items: center; gap: .6rem;
  border: 1.5px solid #3a3a3a; border-radius: var(--radius);
  padding: .6rem 1rem; cursor: pointer; font-weight: 600;
}
.choice input { accent-color: var(--red); width: 1.1rem; height: 1.1rem; margin: 0; }
.choice:has(input:checked) { border-color: var(--red); background: rgba(244,10,10,.12); }

.check { display: flex; gap: .75rem; align-items: flex-start; color: var(--white); }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--red); flex: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.5em; margin: 0; font-weight: 600; }
.form-status.error { color: var(--amber); }

.done { max-width: 640px; margin: 1.5rem 0 3rem; }
.done h2 { font-size: 2.8rem; line-height: .95; margin: 0 0 .75rem; }
.done p { color: var(--smoke); }

/* Prose pages */
.prose { max-width: var(--measure); padding-bottom: 3rem; }
.prose h2 { font-size: 2rem; margin: 2rem 0 .5rem; }
.prose p, .prose li { color: var(--smoke); }

/* Footer */
.site-footer { border-top: 4px solid var(--red); padding: 2.25rem 0 2.75rem; margin-top: 2rem; color: var(--smoke); font-size: .95rem; background: #0a0a0a; }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--red); }
.disclosure { max-width: var(--measure); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .road::after { animation: none; }
  .video-thumb img, .shot img { transition: none; }
  .menu-toggle .bar { transition: none; }
  .js .site-nav.is-open .nav-left, .js .site-nav.is-open .nav-right { animation: none; }
}
