:root {
  --bg: #0a0a0a;
  --paper: #e8e4dc;
  --ink: #111;
  --muted: #9a9a96;
  --line: #2e2e2e;
  --graphite: #1a1a1a;
  --accent: #ffb800;
  --accent-dim: #c48f00;
  --steel: #3f3f3d;
  --steel-text: #eceae4;
  --label: #a8a8a4;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: #f0ede6;
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }

section[id] {
  scroll-margin-top: 96px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(165deg, var(--graphite) 0%, #0c0c0c 38%, rgba(255, 184, 0, 0.09) 100%);
}

.media-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 48px,
      rgba(255, 184, 0, 0.035) 48px,
      rgba(255, 184, 0, 0.035) 49px
    );
  pointer-events: none;
}

/* Header */
.header {
  height: 86px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
}

.logo {
  font: 600 25px Unbounded, sans-serif;
  letter-spacing: -2px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}

.logo span { color: var(--accent); }

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #f0ede6;
  font: 700 14px Manrope, Arial, sans-serif;
  cursor: pointer;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

nav a,
.header__cta { transition: .2s opacity; }

nav a:hover,
.header__cta:hover { opacity: .72; }

.header__cta {
  font-size: 14px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}

/* Hero — one idea: brand + offer + CTA */
.hero {
  min-height: calc(100vh - 86px);
  max-height: 920px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  position: relative;
  isolation: isolate;
}

.hero__copy {
  padding: clamp(48px, 8vh, 96px) 4vw 6vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section__number {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--label);
  font-weight: 600;
}

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

h1 {
  font: 500 clamp(44px, 7vw, 110px)/.9 Unbounded, sans-serif;
  letter-spacing: -.075em;
  margin: 20px 0 28px;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: #d0cec8;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  min-width: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 184, 0, 0.18);
}

.button--light:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button--light {
  background: var(--paper);
  color: var(--ink);
}

.button--accent {
  background: var(--accent);
  color: var(--ink);
}

.text-link {
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--label);
}

.text-link:hover { color: #f0ede6; }

.hero__visual {
  margin: 0;
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--graphite);
}

.hero__visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero__visual img.is-fallback {
  object-fit: none;
  object-position: center;
  background:
    linear-gradient(165deg, var(--graphite) 0%, #0c0c0c 38%, rgba(255, 184, 0, 0.09) 100%);
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(165deg, rgba(255, 184, 0, 0.06) 0%, transparent 48%);
  pointer-events: none;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--bg), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, .5), transparent 42%);
}

.hero__visual figcaption {
  position: absolute;
  z-index: 2;
  right: 25px;
  bottom: 22px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero__orbit {
  position: absolute;
  right: 24px;
  top: 25px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255, 184, 0, .45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: .12em;
  transform: rotate(25deg);
  z-index: 3;
  text-align: center;
  padding: 12px;
}

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--accent);
  color: var(--ink);
  font: 500 clamp(22px, 2.8vw, 44px) Unbounded, sans-serif;
  white-space: nowrap;
  padding: 20px 0;
  transform: rotate(-1deg);
  width: 100%;
  max-width: 100vw;
}

.marquee div {
  display: inline-flex;
  animation: marquee 22s linear infinite;
}

.marquee span { padding-right: 2vw; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section {
  padding: clamp(80px, 10vw, 110px) clamp(20px, 5vw, 5vw);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font: 500 clamp(36px, 5vw, 76px)/1.02 Unbounded, sans-serif;
  letter-spacing: -.055em;
}

/* Editorial lede */
.editorial-lede {
  padding: clamp(48px, 8vw, 72px) clamp(20px, 5vw, 5vw);
  border-bottom: 1px solid var(--line);
  background: var(--graphite);
}

.editorial-lede.section {
  padding-top: clamp(48px, 8vw, 72px);
  padding-bottom: clamp(48px, 8vw, 72px);
}

.editorial-lede p {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: #cccac4;
  text-align: center;
}

.editorial-lede strong { color: var(--accent); }

.section__intro {
  max-width: 640px;
  margin: -32px 0 48px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* Origins (Ferruccio) */
.origins__grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 8vw;
  margin-top: 40px;
}

.origins__text {
  font-size: 17px;
  line-height: 1.7;
  color: #c0c0bc;
  padding-top: 10px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 80px;
  border-top: 1px solid var(--line);
}

.facts article {
  padding: 28px 22px 0 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.facts article:last-child { border-right: 0; }

.facts strong {
  font: 500 clamp(32px, 4.5vw, 64px) Unbounded, sans-serif;
  color: var(--accent);
  letter-spacing: -.04em;
}

.facts span {
  max-width: 200px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Timeline */
.timeline h2 { margin: 38px 0 56px; }

.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.timeline__list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 36px 10px;
  border-bottom: 1px solid var(--line);
  transition: .25s background;
}

.timeline__list li:hover {
  background: var(--graphite);
}

@media (min-width: 801px) {
  .timeline__list li:hover {
    padding-left: 22px;
  }

  .model-list article:hover {
    padding-left: 22px;
  }
}

.timeline__list time {
  font: 500 clamp(28px, 3vw, 48px) Unbounded, sans-serif;
  color: var(--accent);
  letter-spacing: -.04em;
}

.timeline__list h3 {
  font: 500 clamp(20px, 2vw, 28px) Unbounded, sans-serif;
  margin: 0 0 10px;
}

.timeline__list p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
}

/* Models list */
.models h2 { margin: 38px 0 65px; }

.model-list { border-top: 1px solid var(--line); }

.model-list article {
  display: grid;
  grid-template-columns: 70px 1.3fr 1fr 50px;
  gap: 20px;
  align-items: center;
  padding: 28px 10px;
  border-bottom: 1px solid var(--line);
  transition: .25s;
}

.model-list article:hover {
  background: var(--graphite);
}

.model-list span,
.model-list p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.model-list h3 {
  font: 500 clamp(20px, 2vw, 30px) Unbounded, sans-serif;
  margin: 0;
}

.model-list a {
  font-size: 28px;
  text-align: right;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 8px;
  transition: color .2s ease, transform .2s ease;
}

.model-list a:hover {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* Design DNA */
.design-dna {
  background: var(--paper);
  color: var(--ink);
}

.design-dna .section__number { color: #3d3d39; }

.design-dna__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 8vw;
  margin-top: 40px;
}

.design-dna__text {
  font-size: 17px;
  line-height: 1.7;
  color: #3a3a38;
  padding-top: 10px;
}

.design-dna__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 60px 0 0;
  padding: 0;
}

.design-dna__tags li {
  padding: 14px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #2a2a28;
}

/* Legacy */
.legacy .section__intro {
  margin: 8px 0 40px;
}

.legacy__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 8vw;
}

.legacy__text {
  font-size: 17px;
  line-height: 1.7;
  color: #c0c0bc;
  padding-top: 10px;
}

.legacy__text em {
  font-style: normal;
  color: var(--accent);
}

.contact__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--steel-text);
}

.racing__visual figcaption {
  position: absolute;
  z-index: 2;
  left: 25px;
  bottom: 22px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.racing__visual {
  margin: 0;
  min-height: 760px;
  position: relative;
  background: var(--graphite);
}

.racing__visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.racing__visual img.is-fallback {
  object-fit: none;
  background: linear-gradient(165deg, var(--graphite) 0%, #0c0c0c 52%, rgba(255, 184, 0, 0.08) 100%);
}

.racing__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 40%);
  pointer-events: none;
}

/* Gallery extended grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-item--wide {
  grid-column: span 2;
  height: 520px;
}

.gallery-item:not(.gallery-item--wide) {
  height: 380px;
}

.gallery-grid .gallery-item:last-child {
  grid-column: 1 / -1;
  height: min(440px, 52vw);
}

/* Racing */
.racing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

.racing__copy {
  padding: 90px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.racing__copy .section__number { color: #3d3d39; }

.racing__badge {
  font: 500 clamp(48px, 7vw, 100px)/.85 Unbounded, sans-serif;
  letter-spacing: -.07em;
  margin: 35px 0;
}

.racing__badge span { color: var(--accent-dim); }

.racing__copy h2 {
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 25px;
}

.racing__copy p,
.racing__copy li {
  font-size: 16px;
  line-height: 1.65;
  color: #3a3a38;
}

.racing__copy ul {
  padding-left: 20px;
  margin: 16px 0 35px;
}

.racing__copy .button { align-self: flex-start; }

.racing__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(200deg, rgba(255, 184, 0, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

/* Gallery */
.gallery h2 { margin: 38px 0 65px; }

.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--graphite);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.gallery-item img.is-fallback {
  object-fit: none;
  background: linear-gradient(155deg, var(--graphite) 0%, #0d0d0d 52%, rgba(255, 184, 0, 0.08) 100%);
}

.gallery-item .media-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(155deg, var(--graphite) 0%, #0d0d0d 52%, rgba(255, 184, 0, 0.08) 100%);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.gallery-item figcaption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 25px;
  z-index: 2;
}

.gallery-item span {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.gallery-item h3 {
  font: 500 clamp(24px, 3vw, 40px) Unbounded, sans-serif;
  margin: 10px 0;
}

.gallery-item p {
  font-size: 16px;
  color: #d8d8d4;
  margin: 0;
}

/* Quote */
.quote {
  text-align: center;
  padding-top: clamp(96px, 12vw, 145px);
  padding-bottom: clamp(96px, 12vw, 145px);
}

.quote blockquote {
  max-width: 1000px;
  margin: 0 auto 28px;
  font: 400 clamp(28px, 4.5vw, 64px)/1.18 Unbounded, sans-serif;
  letter-spacing: -.05em;
}

.quote p {
  color: var(--accent);
  font-size: 16px;
}

.quote__cta {
  margin-top: 36px;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  background: var(--steel);
  color: var(--steel-text);
}

.contact > div > p:not(.contact__email):not(.contact__note) {
  max-width: 500px;
  line-height: 1.6;
  color: #ddd;
  font-size: 16px;
}

.contact__email {
  margin-top: 24px;
  font-size: 18px;
}

.contact__email a {
  border-bottom: 1px solid var(--accent);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.contact input,
.contact textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.55);
  color: #fff;
  padding: 10px 0;
  font: 18px Manrope, Arial, sans-serif;
  outline: none;
  resize: vertical;
}

.contact input:focus,
.contact textarea:focus { border-color: var(--accent); }

.contact .consent {
  flex-direction: row;
  align-items: flex-start;
  color: #ddd;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  min-height: 44px;
  cursor: pointer;
}

.contact .consent input {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin-top: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.contact .consent span { flex: 1; }

.contact button { align-self: flex-start; }

.form-status {
  min-height: 20px;
  font-size: 14px;
}

/* Footer */
footer {
  padding: 55px 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
}

footer div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

footer div a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer__meta p {
  text-align: right;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  max-width: 320px;
}

.studio-credit {
  max-width: 280px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.studio-credit b {
  color: var(--accent);
  font-weight: 700;
}

/* Reveal — explicit final state; no FOUC on hero (hero__copy без .reveal) */
.reveal {
  opacity: 1;
  visibility: visible;
  animation: reveal .8s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
    visibility: visible;
  }

  to {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
}

/* a11y */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

nav a,
.header__cta,
.text-link,
.logo {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1100px) {
  nav { gap: 14px; font-size: 14px; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 86px;
    z-index: 20;
    padding: 18px 24px 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--line);
  }

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

  .header nav a {
    min-height: 48px;
    padding: 4px 0;
  }
}

@media (max-width: 800px) {
  .header { height: 70px; }

  section[id] { scroll-margin-top: 82px; }

  .header nav { top: 70px; }

  .hero {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: auto;
  }

  .hero__visual {
    order: -1;
    min-height: 42vh;
    max-height: 48vh;
  }

  .hero__copy {
    padding: 32px 20px 48px;
  }

  .hero__lead {
    max-width: none;
    font-size: 16px;
  }

  h1 {
    font-size: clamp(38px, 10vw, 52px);
    margin-bottom: 20px;
  }

  .hero__orbit { display: none; }

  .hero__visual::after {
    background: linear-gradient(0deg, var(--bg) 8%, transparent 38%);
  }

  .marquee {
    transform: none;
    padding: 16px 0;
  }

  .section { padding: 72px 20px; }

  .origins__grid,
  .design-dna__grid,
  .legacy__grid,
  .racing,
  .contact { grid-template-columns: 1fr; }

  .section__intro { margin-top: -12px; margin-bottom: 36px; }

  .facts { grid-template-columns: 1fr 1fr; }

  .facts article {
    min-height: 132px;
    padding-right: 12px;
  }

  .facts article:nth-child(2n) { border-right: 0; }

  .timeline__list li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 4px;
  }

  .model-list article {
    grid-template-columns: 40px 1fr 44px;
    gap: 12px;
  }

  .model-list p { display: none; }

  .racing__visual {
    min-height: 50vh;
    order: -1;
  }

  .racing__copy { padding: 64px 20px; }

  .racing__badge {
    font-size: clamp(36px, 10vw, 56px);
    margin: 24px 0;
  }

  .gallery-grid { grid-template-columns: 1fr; }

  .gallery-item--wide,
  .gallery-item:not(.gallery-item--wide) {
    grid-column: span 1;
    height: min(420px, 62vw);
  }

  .gallery-grid .gallery-item:last-child {
    grid-column: span 1;
    height: min(420px, 62vw);
  }

  .quote blockquote { font-size: clamp(24px, 7vw, 36px); }

  footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 20px;
  }

  .footer__meta {
    align-items: flex-start;
  }

  .footer__meta p,
  .studio-credit {
    text-align: left;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .marquee div,
  .reveal,
  .button,
  .model-list a {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .reveal {
    opacity: 1 !important;
    visibility: visible !important;
  }
}
