:root {
  --black: #070707;
  --asphalt: #151515;
  --charcoal: #24211d;
  --steel: #c8ccd1;
  --mist: #f2f2ee;
  --white: #ffffff;
  --orange: #f05a24;
  --orange-dark: #b53813;
  --blue: #0a5f8f;
  --cream: #f4e8cf;
  --line: rgba(7, 7, 7, 0.14);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.035) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(180deg, #fcfbf7 0%, #e7e8e8 52%, #ffffff 100%);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(7, 7, 7, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--black);
  background: var(--orange);
  border: 2px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(7, 7, 7, 0.24);
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--steel);
  font-size: 0.76rem;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  padding: 9px 11px;
  color: var(--steel);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
  outline: none;
}

.section-band {
  padding: clamp(44px, 6vw, 88px) clamp(18px, 4vw, 56px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.78fr);
  align-items: end;
  gap: clamp(22px, 4vw, 54px);
  min-height: calc(100vh - 74px);
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.94), rgba(7, 7, 7, 0.46) 45%, rgba(7, 7, 7, 0.26)),
    linear-gradient(180deg, rgba(7, 7, 7, 0.08), rgba(7, 7, 7, 0.78)),
    url("assets/chevy-nova-hero.png") center / cover;
  transform: scale(1.02);
}

.hero-content,
.anchor-strip {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
  padding: 10vh 0 12vh;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 10vw, 9.6rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.98;
}

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

.hero p:not(.eyebrow) {
  max-width: 680px;
  color: #ece7dc;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.58;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--black);
  background: var(--orange);
  border-color: var(--orange);
}

.button.primary:hover {
  background: #ff713f;
}

.button.ghost {
  color: inherit;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.anchor-strip {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 9px;
  padding-bottom: 12vh;
}

.anchor-strip span {
  display: block;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  font-weight: 850;
}

.intro-grid,
.card-grid,
.trim-board,
.culture-grid,
.race-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.intro-grid {
  background: var(--white);
}

.stat-panel,
.info-card,
.detail-panel,
.trim-card,
.culture-card,
.race-card,
.flash-card,
.knowledge-panel,
.result-panel,
.quiz-question {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.07);
}

.stat-panel {
  min-height: 164px;
  padding: 24px;
  background: var(--mist);
}

.stat-panel span {
  display: block;
  color: var(--orange);
  font-size: 3.2rem;
  font-weight: 950;
  line-height: 0.9;
}

.stat-panel strong {
  display: block;
  margin: 10px 0;
  font-size: 1.14rem;
  text-transform: uppercase;
}

.stat-panel.redline {
  color: var(--white);
  background: var(--asphalt);
}

.stat-panel.redline p {
  color: #d8d5cf;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: clamp(18px, 3vw, 40px);
  margin-bottom: 28px;
}

.section-title p:last-child {
  color: #5b5c5c;
  font-size: 1.04rem;
  line-height: 1.58;
}

.timeline-wrap,
.bodyline-layout,
.engine-layout,
.quiz-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 18px;
  align-items: start;
}

.timeline-rail,
.engine-controls,
.buyer-form,
.knowledge-panel {
  display: grid;
  gap: 10px;
}

.timeline-button,
.engine-button,
.choice-button,
.answer-button {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
}

.timeline-button {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
}

.timeline-button strong {
  color: var(--orange);
  font-size: 1.42rem;
}

.timeline-button.active,
.engine-button.active,
.choice-button.active {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.detail-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.detail-panel img,
.info-card img,
.race-card img,
.result-panel img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: var(--asphalt);
}

.detail-panel .content,
.card-body,
.trim-card,
.culture-card,
.flash-card,
.knowledge-panel,
.result-panel {
  padding: 22px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  padding: 7px 10px;
  color: var(--black);
  background: var(--cream);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
}

.engine-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(circle at 50% 24%, rgba(240, 90, 36, 0.24), transparent 34%),
    #101010;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bodyline-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bodyline-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 48%;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.03);
}

.bodyline-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.78), rgba(7, 7, 7, 0.16) 42%, rgba(7, 7, 7, 0.34)),
    linear-gradient(180deg, rgba(7, 7, 7, 0.05), rgba(7, 7, 7, 0.64));
}

.bodyline-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 38px 38px;
  mix-blend-mode: screen;
  opacity: 0.42;
}

.inspection-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at 58% 20%, rgba(240, 90, 36, 0.28), transparent 34%);
  pointer-events: none;
}

.cue-line {
  position: absolute;
  z-index: 4;
  display: block;
  color: var(--white);
  opacity: 0.32;
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.cue-line::before,
.cue-line::after {
  content: "";
  position: absolute;
  display: block;
  background: var(--orange);
  box-shadow: 0 0 20px rgba(240, 90, 36, 0.74);
}

.cue-line b {
  position: absolute;
  display: inline-flex;
  min-width: max-content;
  padding: 7px 9px;
  color: var(--black);
  background: rgba(255, 239, 217, 0.94);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.cue-hood {
  left: 43%;
  right: 10%;
  top: 37%;
  height: 84px;
}

.cue-hood::before {
  left: 0;
  right: 0;
  top: 22px;
  height: 4px;
}

.cue-hood::after {
  left: 0;
  top: 22px;
  width: 4px;
  height: 56px;
}

.cue-hood b {
  right: 0;
  top: -19px;
}

.cue-flanks {
  left: 15%;
  right: 15%;
  top: 56%;
  height: 62px;
}

.cue-flanks::before {
  left: 0;
  right: 0;
  top: 22px;
  height: 4px;
}

.cue-flanks::after {
  left: 0;
  top: 8px;
  width: 4px;
  height: 48px;
}

.cue-flanks b {
  left: 2%;
  top: -29px;
}

.cue-deck {
  left: 13%;
  top: 41%;
  width: 24%;
  height: 112px;
}

.cue-deck::before {
  left: 0;
  right: 0;
  bottom: 18px;
  height: 4px;
}

.cue-deck::after {
  right: 0;
  top: 18px;
  width: 4px;
  height: 76px;
}

.cue-deck b {
  left: 0;
  top: -22px;
}

.cue-cabin {
  left: 28%;
  top: 23%;
  width: 31%;
  height: 155px;
}

.cue-cabin::before {
  inset: 0;
  width: auto;
  height: auto;
  background: transparent;
  border: 4px solid var(--orange);
  border-bottom: 0;
  border-radius: 14px 16px 0 0;
  box-shadow: 0 0 24px rgba(240, 90, 36, 0.72);
}

.cue-cabin::after {
  display: none;
}

.cue-cabin b {
  left: 8%;
  top: -30px;
}

.cue-chrome {
  left: 7%;
  right: 8%;
  top: 67%;
  height: 42px;
}

.cue-chrome::before {
  left: 0;
  right: 0;
  top: 15px;
  height: 3px;
  background: #f6efe2;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.72);
}

.cue-chrome::after {
  right: 1%;
  top: 2px;
  width: 22%;
  height: 4px;
  background: #f6efe2;
}

.cue-chrome b {
  right: 2%;
  top: -31px;
}

.bodyline-visual[data-active-line="0"] .cue-hood,
.bodyline-visual[data-active-line="1"] .cue-flanks,
.bodyline-visual[data-active-line="2"] .cue-deck,
.bodyline-visual[data-active-line="3"] .cue-cabin,
.bodyline-visual[data-active-line="4"] .cue-chrome {
  opacity: 1;
  filter: saturate(1.4);
  transform: translateY(-3px);
}

.bodyline-visual[data-active-line="0"] .cue-line:not(.cue-hood),
.bodyline-visual[data-active-line="1"] .cue-line:not(.cue-flanks),
.bodyline-visual[data-active-line="2"] .cue-line:not(.cue-deck),
.bodyline-visual[data-active-line="3"] .cue-line:not(.cue-cabin),
.bodyline-visual[data-active-line="4"] .cue-line:not(.cue-chrome) {
  opacity: 0.16;
}

.photo-tag {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(7, 7, 7, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.generation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card {
  overflow: hidden;
}

.info-card h3,
.trim-card h3 {
  color: var(--black);
}

.swatch-row {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.swatch {
  width: 34px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.engine-school,
.shop-floor,
.final-quiz {
  background: linear-gradient(180deg, #f5f4ef, #ffffff);
}

.engine-visual {
  isolation: isolate;
}

.engine-visual::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 18%;
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  filter: blur(10px);
}

.engine-title {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 5;
  max-width: 260px;
  padding: 9px 11px;
  color: var(--black);
  background: rgba(255, 239, 217, 0.95);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 950;
}

.engine-part {
  position: absolute;
  z-index: 3;
  display: block;
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.engine-part b,
.engine-part small {
  position: absolute;
  display: block;
  min-width: max-content;
  line-height: 1;
}

.engine-part b {
  padding: 7px 9px;
  color: var(--black);
  background: rgba(255, 239, 217, 0.94);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.engine-part small {
  padding: 5px 7px;
  color: #f7efe1;
  background: rgba(7, 7, 7, 0.72);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
}

.air-cleaner {
  left: 50%;
  top: 18%;
  width: 112px;
  height: 112px;
  background: radial-gradient(circle, var(--orange) 0 17%, #111 19% 37%, #d7d9dc 39% 61%, #111 63%);
  border: 5px solid #050505;
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
  transform: translateX(-50%);
  animation: airPulse 1.3s ease-in-out infinite;
}

.air-cleaner b {
  left: 118px;
  top: 14px;
}

.air-cleaner small {
  left: 118px;
  top: 48px;
}

.carburetor {
  left: 50%;
  top: 40%;
  width: 96px;
  height: 70px;
  background: linear-gradient(180deg, #b9bdbe, #565b5c);
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  transform: translateX(-50%);
}

.carburetor::before,
.carburetor::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 22px;
  height: 28px;
  background: #202425;
  border-radius: 5px;
}

.carburetor::before { left: 16px; }
.carburetor::after { right: 16px; }

.carburetor b {
  left: -118px;
  top: 10px;
}

.carburetor small {
  left: -118px;
  top: 43px;
}

.intake {
  left: 33%;
  right: 33%;
  top: 53%;
  height: 74px;
  background: linear-gradient(180deg, #777b7b, #303434);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
  border-radius: 8px;
}

.intake b {
  left: 50%;
  bottom: -48px;
  transform: translateX(-50%);
}

.intake small {
  left: 50%;
  bottom: -78px;
  transform: translateX(-50%);
}

.v-bank {
  top: 48%;
  width: 190px;
  height: 160px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px) 0 0 / 38px 100%,
    linear-gradient(180deg, #f05a24, #7f240c);
  border: 4px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -18px 32px rgba(0, 0, 0, 0.26);
}

.left-bank {
  left: 17%;
  transform: skewY(10deg);
}

.right-bank {
  right: 17%;
  transform: skewY(-10deg);
}

.left-bank b {
  left: -22px;
  top: -50px;
}

.left-bank small {
  left: -16px;
  top: -20px;
}

.right-bank b {
  right: -16px;
  top: -50px;
}

.right-bank small {
  right: -10px;
  top: -20px;
}

.piston {
  z-index: 4;
  width: 28px;
  height: 60px;
  background: linear-gradient(180deg, #e7e3da, #969a9b);
  border: 3px solid #161616;
  border-radius: 8px;
  animation: pistonMove 0.9s ease-in-out infinite;
}

.p1 { left: 23%; top: 52%; }
.p2 { left: 32%; top: 58%; animation-delay: 0.22s; }
.p3 { right: 32%; top: 52%; animation-delay: 0.44s; }
.p4 { right: 23%; top: 58%; animation-delay: 0.66s; }

.spark-plug {
  z-index: 5;
  width: 10px;
  height: 48px;
  background: #f9ead2;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(240, 90, 36, 0.74);
}

.spark-plug::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 16px;
  height: 16px;
  background: var(--orange);
  border-radius: 50%;
  filter: blur(3px);
  transform: translateX(-50%);
  animation: sparkBlink 0.7s linear infinite;
}

.sp1 { left: 27%; top: 42%; transform: rotate(-14deg); }
.sp2 { right: 27%; top: 42%; transform: rotate(14deg); animation-delay: 0.25s; }

.header-pipe {
  z-index: 2;
  bottom: 20%;
  width: 150px;
  height: 12px;
  background: #ddd6c8;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.32);
}

.hp1 {
  left: 15%;
  transform: rotate(5deg);
}

.hp2 {
  right: 15%;
  transform: rotate(-5deg);
}

.crank {
  left: 50%;
  bottom: 17%;
  width: 170px;
  height: 46px;
  background: linear-gradient(180deg, #d2d2cc, #595d5f);
  border: 3px solid #111;
  border-radius: 999px;
  transform: translateX(-50%);
}

.crank::before {
  content: "";
  position: absolute;
  inset: 8px 28px;
  background: #121212;
  border-radius: 999px;
  animation: crankSpin 1s linear infinite;
}

.crank b {
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
}

.crank small {
  left: 50%;
  top: 88px;
  transform: translateX(-50%);
}

.transmission {
  right: 5%;
  bottom: 31%;
  width: 124px;
  height: 88px;
  background: linear-gradient(180deg, #949798, #343838);
  clip-path: polygon(0 18%, 70% 0, 100% 50%, 70% 100%, 0 82%);
}

.transmission b {
  right: 0;
  top: -54px;
}

.transmission small {
  right: 0;
  top: -23px;
}

.power-flow {
  position: absolute;
  left: 56%;
  right: 14%;
  bottom: 39%;
  z-index: 1;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 18px, transparent 18px 30px);
  border-radius: 999px;
  animation: flowDash 0.7s linear infinite;
}

.engine-visual[data-active-engine="0"] .air-cleaner,
.engine-visual[data-active-engine="0"] .carburetor,
.engine-visual[data-active-engine="1"] .v-bank,
.engine-visual[data-active-engine="1"] .piston,
.engine-visual[data-active-engine="2"] .spark-plug,
.engine-visual[data-active-engine="2"] .piston,
.engine-visual[data-active-engine="3"] .v-bank,
.engine-visual[data-active-engine="3"] .intake,
.engine-visual[data-active-engine="4"] .v-bank,
.engine-visual[data-active-engine="4"] .crank,
.engine-visual[data-active-engine="5"] .transmission,
.engine-visual[data-active-engine="5"] .power-flow {
  filter: saturate(1.35) brightness(1.14);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 28px rgba(240, 90, 36, 0.44);
}

.engine-visual[data-active-engine="0"] .air-cleaner {
  transform: translateX(-50%) translateY(-4px) scale(1.02);
}

.engine-visual[data-active-engine="0"] .carburetor {
  transform: translateX(-50%) translateY(-4px) scale(1.02);
}

.engine-visual[data-active-engine="4"] .crank {
  transform: translateX(-50%) translateY(-4px) scale(1.02);
}

.engine-visual[data-active-engine="1"] .left-bank,
.engine-visual[data-active-engine="3"] .left-bank,
.engine-visual[data-active-engine="4"] .left-bank {
  transform: skewY(10deg) translateY(-4px) scale(1.02);
}

.engine-visual[data-active-engine="1"] .right-bank,
.engine-visual[data-active-engine="3"] .right-bank,
.engine-visual[data-active-engine="4"] .right-bank {
  transform: skewY(-10deg) translateY(-4px) scale(1.02);
}

@keyframes airPulse {
  50% { filter: brightness(1.2); }
}

@keyframes pistonMove {
  50% { transform: translateY(-22px); }
}

@keyframes sparkBlink {
  50% { opacity: 0.2; transform: translateX(-50%) scale(0.7); }
}

@keyframes crankSpin {
  to { transform: rotate(360deg); }
}

@keyframes flowDash {
  to { background-position: 30px 0; }
}

.trim-card {
  display: grid;
  gap: 12px;
}

.trim-card b {
  color: var(--orange-dark);
}

.racing {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--black);
}

.racing .section-title p:last-child,
.racing .race-card p {
  color: #d3d3cf;
}

.race-card {
  overflow: hidden;
  color: var(--white);
  background: #151515;
  border-color: rgba(255, 255, 255, 0.13);
}

.race-card .eyebrow {
  color: #ff7b45;
}

.culture {
  background: #f7f7f3;
}

.culture-card {
  min-height: 220px;
}

.culture-card .term {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--black);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  font-weight: 950;
}

.buyer {
  background: var(--white);
}

.question-group {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-group legend {
  margin-bottom: 8px;
  font-weight: 950;
}

.choice-row,
.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.result-panel {
  position: sticky;
  top: 92px;
}

.result-panel .model-name {
  color: var(--orange-dark);
}

.why-box {
  padding: 14px;
  background: var(--mist);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.flash-card {
  min-height: 360px;
}

.flash-card h3 {
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  line-height: 1.02;
}

#flashAnswer {
  display: none;
  color: #5e6269;
  line-height: 1.6;
}

.flash-card.revealed #flashAnswer {
  display: block;
}

.quiz-question {
  padding: 14px;
}

.quiz-question h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.answer-button.correct {
  color: var(--white);
  background: #146b36;
}

.answer-button.incorrect {
  color: var(--white);
  background: var(--orange-dark);
}

.score-box {
  padding: 16px;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius);
  font-weight: 950;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--steel);
  background: var(--black);
}

footer strong {
  color: var(--white);
}

@media (max-width: 1120px) {
  .hero,
  .timeline-wrap,
  .bodyline-layout,
  .quiz-layout,
  .engine-layout {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .anchor-strip {
    padding-bottom: 5vh;
  }

  .intro-grid,
  .card-grid,
  .trim-board,
  .culture-grid,
  .race-strip,
  .generation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-panel,
  .result-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 8vh;
  }

  h1 {
    font-size: clamp(3.2rem, 20vw, 5.4rem);
  }

  .section-title,
  .intro-grid,
  .card-grid,
  .generation-grid,
  .trim-board,
  .culture-grid,
  .race-strip,
  .choice-row,
  .answer-grid {
    grid-template-columns: 1fr;
  }

  .timeline-button {
    grid-template-columns: 72px 1fr;
  }

  .bodyline-visual,
  .engine-visual {
    min-height: 320px;
  }
}
