/* ==========================================================================
   DIESEL NATION USA — design tokens & components
   Palette is deliberately narrow: blacks, grays, one pop of maroon.
   ========================================================================== */

:root {
  /* surface */
  --black: #07070a;
  --coal: #0b0c0e;
  --steel: #111318;
  --iron: #1a1d24;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* type */
  --bone: #f4f1ec;
  --ash: #b7b3ac;
  --muted: #a5a19a;

  /* the one pop */
  --maroon: #8f1d2c;
  --maroon-bright: #b32539;
  --maroon-deep: #4a0d15;
  --maroon-glow: rgba(143, 29, 44, 0.42);

  /* system */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 2px;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--ash);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--bone);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--bone); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--maroon-bright); }

::selection { background: var(--maroon); color: #fff; }

:focus-visible {
  outline: 2px solid var(--maroon-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--maroon);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--coal { background: var(--coal); }
.section--steel { background: var(--steel); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--maroon);
}
.eyebrow--center { justify-content: center; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ash); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--maroon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn--primary {
  background: var(--btn-bg);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 30px -18px var(--maroon-glow);
}
.btn--primary:hover {
  background: var(--maroon-bright);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 20px 40px -18px var(--maroon-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--bone);
  color: var(--bone);
  transform: translateY(-2px);
}
.btn--block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
}
.header.is-scrolled {
  background: rgba(7, 7, 10, 0.86);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--bone);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--maroon-bright);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cfcbc5;
  position: relative;
  padding-block: 0.4rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--maroon-bright);
  transition: right 0.3s var(--ease);
}
.nav__link:hover { color: var(--bone); }
.nav__link:hover::after { right: 0; }

.header__cta { display: inline-flex; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--bone);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background-color 0.2s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 10, 0.98);
  backdrop-filter: blur(14px);
}
.mobile-nav.is-open { display: block; }
.mobile-nav__inner { padding: 1.25rem var(--gutter) 2rem; display: grid; gap: 0.25rem; }
.mobile-nav__link {
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--bone);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 1.25rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: 9rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/hero-night.jpg");
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.04);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(143, 29, 44, 0.26) 0%, rgba(143, 29, 44, 0) 55%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.88) 0%, rgba(7, 7, 10, 0.34) 38%, rgba(7, 7, 10, 0.72) 78%, var(--black) 100%),
    linear-gradient(90deg, rgba(7, 7, 10, 0.82) 0%, rgba(7, 7, 10, 0.12) 58%, rgba(7, 7, 10, 0.55) 100%);
}
.hero::after {
  /* hazard rule across the bottom edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--maroon) 0 14px, #0a0a0c 14px 28px);
  opacity: 0.9;
}

.hero__inner { width: 100%; }
.hero__title {
  font-size: clamp(2.9rem, 7.6vw, 6.6rem);
  line-height: 0.9;
  margin-bottom: 1.6rem;
  letter-spacing: -0.015em;
}
.hero__title span { display: block; }
.hero__title .outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(244, 241, 236, 0.8);
  text-stroke: 2px rgba(244, 241, 236, 0.8);
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.65));
  padding-bottom: 0.1em;
}
.hero__title .flare { color: var(--bone); position: relative; }
.hero__title .flare::after {
  content: "";
  display: block;
  width: clamp(70px, 12vw, 150px);
  height: 4px;
  background: var(--maroon);
  margin-top: 0.55rem;
}

.hero__sub {
  max-width: 55ch;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--ash);
  margin-bottom: 2.1rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: clamp(2.5rem, 5vw, 3.25rem); }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  max-width: 660px;
}
.hero__stat {
  padding-right: clamp(1.5rem, 4vw, 3rem);
  margin-right: clamp(1.5rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
}
.hero__stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__stat dt {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--bone);
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.hero__stat dd {
  margin: 0.3rem 0 0;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--maroon);
  color: #fff;
  border-block: 1px solid rgba(0, 0, 0, 0.35);
  overflow: hidden;
  padding-block: 0.7rem;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  flex: none;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__group > span { padding-inline: 0.9rem; }
.ticker__group .dot { opacity: 0.55; }
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- manifesto ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }

.checklist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.85rem; }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.8rem;
  align-items: start;
  font-size: 0.98rem;
  color: var(--ash);
}
.checklist svg { width: 18px; height: 18px; margin-top: 4px; color: var(--maroon-bright); }

.frame { position: relative; }
.frame::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(143, 29, 44, 0.9);
  z-index: -1;
}
.frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(0.86) contrast(1.05);
}
.frame__tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  background: var(--maroon);
  color: #fff;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
}
.frame__credit {
  margin-top: 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- the code ---------- */
.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--coal);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  position: relative;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover { background: var(--steel); transform: translateY(-3px); }
.card:hover::before { transform: scaleX(1); }
.card__num {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(196, 76, 92, 0.9);
  margin-bottom: 1.5rem;
  display: block;
}
.card h3 { font-size: 1.12rem; letter-spacing: 0.02em; margin-bottom: 0.7rem; }
.card p { font-size: 1rem; color: var(--muted); line-height: 1.65; }

/* ---------- nation / community band ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; }
.band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/road-band.jpg");
  background-size: cover;
  background-position: center 45%;
}
.band__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--black) 0%, rgba(7, 7, 10, 0.72) 30%, rgba(7, 7, 10, 0.86) 70%, var(--black) 100%),
    linear-gradient(90deg, rgba(74, 13, 21, 0.55), rgba(7, 7, 10, 0.2));
}

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.feature { background: rgba(11, 12, 14, 0.86); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; }
.feature__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--maroon-bright);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.06rem; margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.feature p { font-size: 0.97rem; color: var(--muted); line-height: 1.62; }

/* ---------- quote ---------- */
.quote { text-align: center; max-width: 900px; margin-inline: auto; }
.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.quote blockquote em { font-style: normal; color: var(--maroon-bright); }
.quote figcaption {
  margin-top: 1.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- join ---------- */
.join { border-top: 1px solid var(--line); background: var(--coal); position: relative; overflow: hidden; }
.join::before {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  right: -8vw;
  top: -14vw;
  background: radial-gradient(circle, rgba(143, 29, 44, 0.22) 0%, rgba(143, 29, 44, 0) 62%);
  pointer-events: none;
}
.join__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.join h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.join__form { display: grid; gap: 0.85rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}
.field input,
.field select {
  width: 100%;
  background: #14171b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 0.95rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder { color: #7d7972; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--maroon-bright);
  box-shadow: 0 0 0 3px rgba(143, 29, 44, 0.25);
}
.field--row { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.field--row > div { display: grid; gap: 0.45rem; }
.form__note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.form__status { font-size: 0.85rem; font-weight: 600; color: var(--bone); margin: 0; min-height: 1.2em; }
.form__status.is-error { color: var(--maroon-bright); }

/* ---------- footer ---------- */
.footer { background: var(--black); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); padding-bottom: 3rem; }
.footer__brand p { font-size: 0.92rem; color: var(--muted); max-width: 34ch; margin-top: 1.1rem; }
.footer h4 {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--bone);
  margin-bottom: 1.15rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer ul a { font-size: 0.95rem; color: var(--muted); }
.footer ul a:hover { color: var(--bone); }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ash);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer__social a:hover { border-color: var(--maroon); color: var(--maroon-bright); }
.footer__social svg { width: 17px; height: 17px; }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.6rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #928e87;
}
.footer__bottom p { margin: 0; }
.footer__credits { max-width: 70ch; }
.footer__credits a { color: #a5a19a; text-decoration: underline; text-decoration-color: rgba(133, 129, 122, 0.4); }
.footer__credits a:hover { color: var(--ash); }

/* ---------- reveal ---------- */
/* Content is never hidden: reveal is a translation-only accent so crawlers,
   screenshots, and no-JS users always get the full page. */
.reveal { opacity: 1; transform: none; }

.hero__inner > * { animation: rise 0.75s var(--ease) both; }
.hero__inner > .eyebrow { animation-delay: 0.05s; }
.hero__inner > .hero__title { animation-delay: 0.12s; }
.hero__inner > .hero__sub { animation-delay: 0.22s; }
.hero__inner > .hero__actions { animation-delay: 0.32s; }
.hero__inner > .hero__stats { animation-delay: 0.42s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .frame { order: -1; }
  .frame::after { inset: 12px -12px -12px 12px; }
  .join__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; }
  .header__bar { height: 68px; }
  .hero { min-height: auto; padding-top: 7.5rem; padding-bottom: 3rem; }
  .hero__media { background-image: url("../assets/hero-night-mobile.jpg"); background-position: center 30%; }
  .hero__title { font-size: clamp(2.6rem, 11vw, 4.2rem); }
  .hero__stat { padding-right: 1.25rem; margin-right: 1.25rem; }
  .features { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 0; }
  .hero__stat:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
  .hero__actions .btn { width: 100%; }
  .brand__name { font-size: 1rem; }
  .brand__mark { width: 34px; height: 34px; }
  .frame__tag { font-size: 0.68rem; padding: 0.65rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__inner > * { animation: none; }
  .ticker__track { animation: none; }
}
