:root {
  --bg: #090a0c;
  --panel: #101216;
  --text: #f3f3f3;
  --muted: #96999e;
  --red: #e52d35;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: default;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6,
p, span, label, small {
  cursor: default;
}

button {
  font: inherit;
  cursor: pointer;
}

input, textarea {
  cursor: text;
}

select {
  cursor: pointer;
}

.header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(9, 10, 12, .8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.logo {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -2px;
}

.logo span,
.red {
  color: var(--red);
}

.nav {
  display: flex;
  gap: 35px;
}

.nav a {
  font-size: 12px;
  color: #b5b5b5;
  transition: color .3s;
}

.nav a:hover {
  color: white;
}

.nav-contact {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--red);
  padding-bottom: 8px;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 25px;
}

.hero {
  min-height: 850px;
  height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 120px 8% 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse at 70% 50%, #22252b, transparent 60%),
    #090a0c;
}

.hero-top,
.hero-bottom {
  position: absolute;
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #aaa;
  z-index: 5;
}

.hero-top {
  top: 125px;
}

.hero-bottom {
  bottom: 35px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 12px var(--red);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  pointer-events: none;
}

.hero-content a {
  pointer-events: auto;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 25px;
}

.hero h1,
.experience h2,
.legacy h2,
.gallery h2,
.contact h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .98;
}

.hero h1 {
  font-size: clamp(65px, 9.4vw, 165px);
}

.hero h1 em,
.legacy h2 em,
.contact h2 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .8);
}

.hero-description {
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
  margin-top: 30px;
}

.primary-btn,
.contact-btn {
  display: inline-flex;
  gap: 45px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 20px 25px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 35px;
  transition: .3s;
}

.primary-btn:hover,
.contact-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.hero-image {
  position: absolute;
  width: 50%;
  height: 65%;
  right: 0;
  top: 21%;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-watermark {
  position: absolute;
  bottom: -9%;
  right: -2%;
  font-size: clamp(200px, 36vw, 650px);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -30px;
  color: rgba(255, 255, 255, .025);
  pointer-events: none;
}

.section {
  padding: 110px 8%;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #292b30;
}

.section-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #aaa;
}

.experience-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding: 75px 0 55px;
}

.experience h2,
.gallery h2 {
  font-size: clamp(60px, 7.5vw, 120px);
}

.experience h2 span,
.gallery h2 span {
  color: #656970;
}

.experience-intro > p {
  max-width: 310px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 13px;
}

.car-viewer {
  position: relative;
  height: min(650px, 65vw);
  min-height: 360px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #262a30, #111318 72%);
  border: 1px solid #303238;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.car-viewer:active,
.car-viewer.is-dragging {
  cursor: grabbing;
}

.viewer-grid {
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image:
    linear-gradient(#73777c 1px, transparent 1px),
    linear-gradient(90deg, #73777c 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: linear-gradient(transparent, black, transparent);
}

.viewer-glow {
  position: absolute;
  width: 55%;
  height: 50%;
  left: 22%;
  top: 24%;
  background: rgba(229, 45, 53, .08);
  filter: blur(90px);
  border-radius: 50%;
}

.car-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  display: none;
  transition:none;
  will-change: opacity, transform;
}

.viewer-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #777b81;
}

.viewer-placeholder span {
  font-size: clamp(70px, 12vw, 160px);
  font-weight: 800;
  letter-spacing: -8px;
  opacity: .18;
}

.viewer-placeholder p {
  font-size: 11px;
  letter-spacing: 2px;
  text-align: center;
}

.viewer-top,
.viewer-bottom {
  position: absolute;
  left: 30px;
  right: 30px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.viewer-top {
  top: 30px;
}

.viewer-bottom {
  bottom: 30px;
}

.viewer-controls {
  display: flex;
  gap: 10px;
}

.viewer-controls button {
  width: 42px;
  height: 42px;
  color: white;
  border: 1px solid #777;
  background: rgba(0, 0, 0, .4);
  transition:
    background .25s ease,
    border-color .25s ease,
    transform .25s ease;
}

.viewer-controls button:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}

.viewer-controls button:active {
  transform: scale(.94);
}

.progress-track {
  height: 2px;
  background: #34363a;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width .4s cubic-bezier(.2, .8, .2, 1);
}

.viewer-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  color: #777;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.legacy {
  min-height: 750px;
  padding: 100px 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #17191d;
  position: relative;
  overflow: hidden;
}

.legacy::before {
  content: "F40";
  position: absolute;
  right: -3%;
  top: 5%;
  font-size: 32vw;
  font-weight: 800;
  opacity: .025;
}

.legacy-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
  z-index: 0;
  transform: scale(1.08);
  transition: transform 2s cubic-bezier(.16, 1, .3, 1);
}

.legacy:has(.legacy-content.visible) .legacy-image {
  transform: scale(1);
}

.legacy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .85),
    rgba(0, 0, 0, .15)
  );
  z-index: 0;
  pointer-events: none;
}

.legacy > .section-label,
.legacy-content {
  position: relative;
  z-index: 2;
}

.legacy h2 {
  font-size: clamp(55px, 8.5vw, 145px);
}

.legacy-bottom {
  margin-top: 90px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.legacy-bottom span {
  font-size: 11px;
  letter-spacing: 2px;
}

.legacy-bottom p {
  max-width: 330px;
  color: #a3a5aa;
  line-height: 1.9;
  font-size: 13px;
}

.gallery-heading {
  margin: 80px 0 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gallery-card {
  height: 380px;
  position: relative;
  background: linear-gradient(145deg, #202329, #101115);
  border: 1px solid #303238;
  overflow: hidden;
  isolation: isolate;
}

.gallery-card.large {
  grid-column: span 2;
  height: 580px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.16, 1, .3, 1);
}

.gallery-card:hover img {
  transform: scale(1.07);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(0, 0, 0, .65) 100%
  );
  pointer-events: none;
}

.gallery-card span {
  position: absolute;
  bottom: 25px;
  left: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  z-index: 2;
  text-shadow: 0 2px 10px black;
  transition: transform .4s ease;
}

.gallery-card:hover span {
  transform: translateY(-6px);
}

.contact {
  position: relative;
  min-height: 900px;
  height: auto;
  padding: 130px 8% 110px;
  background: #090a0c;
  isolation: isolate;
  overflow: hidden;
  display: block;
}

.contact-background {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.contact-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, .85),
      rgba(0, 0, 0, .5) 55%,
      rgba(0, 0, 0, .75)
    ),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, .5),
      transparent 50%
    );
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 8%;
  max-width: 1500px;
  margin: 0 auto;
}

.contact-content {
  min-width: 0;
}

.contact-content .section-label {
  display: block;
  margin-bottom: 85px;
}

.contact h2 {
  font-size: clamp(50px, 6.8vw, 110px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.contact-description {
  max-width: 390px;
  margin-top: 30px;
  color: #c5c5c5;
  line-height: 1.9;
  font-size: 14px;
}

.contact-vehicle {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 55px;
  padding-left: 20px;
  border-left: 2px solid var(--red);
}

.contact-vehicle span,
.contact-vehicle small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #aaa;
}

.contact-vehicle strong {
  font-family: "Manrope", sans-serif;
  font-size: 24px;
}

.inquiry-form {
  width: 100%;
  min-width: 0;
  background: rgba(16, 18, 22, .93);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 38px;
  backdrop-filter: blur(18px);
}

.form-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #aaa;
}

.inquiry-form h3 {
  margin-top: 45px;
  font-family: "Manrope", sans-serif;
  font-size: 29px;
  letter-spacing: -1.5px;
}

.inquiry-form h3 span {
  color: var(--red);
}

.inquiry-form > p {
  margin: 15px 0 30px;
  color: #aaa;
  font-size: 12px;
  line-height: 1.8;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #c7c7c7;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid #414349;
  border-radius: 0;
  background: #191b20;
  color: white;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  resize: vertical;
  transition:
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #777;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #777b83;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  background: #202127;
  box-shadow: 0 0 0 3px rgba(229, 45, 53, .1);
}

.inquiry-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 19px 22px;
  border: none;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  overflow: hidden;
  transition:
    background .3s ease,
    transform .3s ease;
}

.inquiry-submit:hover {
  background: #b91d26;
}

.inquiry-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, .18),
    transparent
  );
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}

.inquiry-submit:hover::after {
  left: 150%;
}

.inquiry-submit:active {
  transform: scale(.985);
}

.inquiry-form .form-note {
  margin: 16px 0 0;
  font-size: 10px;
  color: #999;
}

.contact-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 85px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #bbb;
}

.contact-bottom a:hover {
  color: var(--red);
}

.footer {
  min-height: 130px;
  padding: 30px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.footer p,
.footer > a:last-child {
  color: #8c8f94;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.reveal {
  opacity: 0;
  transform: translateY(55px);
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.2, .8, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .inquiry-form {
    max-width: 560px;
  }

  .contact h2 {
    overflow-wrap: normal;
    font-size: clamp(45px, 9vw, 85px);
  }
}

@media (max-width: 800px) {
  .header {
    height: 70px;
  }

  .menu-btn {
    display: block;
  }

  .nav-contact {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 30px 8%;
    background: #101216;
    flex-direction: column;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    min-height: 720px;
    padding: 130px 6% 80px;
  }

  .hero-top,
  .hero-bottom {
    left: 6%;
    right: 6%;
    font-size: 8px;
  }

  .hero h1 {
    font-size: clamp(52px, 12vw, 90px);
  }

  .hero-image {
    width: 100%;
    right: -10%;
    top: 33%;
    opacity: .6;
  }

  .hero-content {
    margin-top: -120px;
  }

  .section {
    padding: 80px 6%;
  }

  .experience-intro,
  .legacy-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-intro {
    padding: 55px 0 35px;
  }

  .car-viewer {
    min-height: 350px;
  }

  .viewer-top,
  .viewer-bottom {
    left: 15px;
    right: 15px;
  }

  .legacy {
    min-height: 600px;
    padding: 80px 6%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card.large {
    grid-column: auto;
    height: 320px;
  }

  .contact {
    min-height: 0;
    padding: 100px 6% 80px;
  }

  .contact-content .section-label {
    margin-bottom: 55px;
  }

  .footer {
    padding: 35px 6%;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .contact {
    padding: 100px 6% 60px;
  }

  .contact-layout {
    gap: 50px;
  }

  .contact h2 {
    font-size: clamp(38px, 9vw, 65px);
  }

  .inquiry-form {
    padding: 24px;
  }

  .inquiry-form h3 {
    font-size: 25px;
  }

  .contact-bottom {
    margin-top: 65px;
    flex-wrap: wrap;
  }
}

@media (min-width: 601px) and (max-width: 1000px) {
  .hero {
    min-height: 760px;
    height: 100vh;
    padding: 140px 6% 90px;
  }

  .hero-content {
    margin-top: -100px;
  }

  .hero h1 {
    font-size: clamp(52px, 8vw, 78px);
    line-height: 1.08;
    letter-spacing: -.065em;
  }

  .hero-description {
    max-width: 280px;
    margin-top: 25px;
  }

  .hero-image {
    width: 85%;
    height: 48%;
    right: -12%;
    top: 48%;
    opacity: .65;
  }

  .hero-watermark {
    font-size: 30vw;
    letter-spacing: -10px;
  }
}

@keyframes heroTextEntrance {
  from {
    opacity: 0;
    transform: translateY(45px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroCarEntrance {
  from {
    opacity: 0;
    transform: translateX(70px) scale(1.08);
    filter: blur(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroFadeEntrance {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-content .eyebrow {
  animation: heroTextEntrance .9s ease-out .15s both;
}

.hero h1 {
  animation: heroTextEntrance 1.1s cubic-bezier(.16, 1, .3, 1) .3s both;
}

.hero-description {
  animation: heroTextEntrance 1s ease-out .65s both;
}

.hero .primary-btn {
  animation: heroTextEntrance .9s ease-out .9s both;
}

.hero-image img {
  animation: heroCarEntrance 1.5s cubic-bezier(.16, 1, .3, 1) .45s both;
}

.hero-top {
  animation: heroFadeEntrance 1s ease-out .2s both;
}

.hero-bottom {
  animation: heroFadeEntrance 1s ease-out 1.2s both;
}

.hero-watermark {
  animation: heroFadeEntrance 1.8s ease-out .5s both;
}

@media (hover: none) {
  .gallery-card:hover img,
  .gallery-card:hover span {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .legacy-image,
  .legacy:has(.legacy-content.visible) .legacy-image {
    transform: none;
  }
}

.contact-content.reveal {
  opacity: 0;
  transform: translateX(-80px);
  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(.16, 1, .3, 1);
}

.inquiry-form.reveal {
  opacity: 0;
  transform: translateX(80px);
  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(.16, 1, .3, 1);
  transition-delay: .15s;
}

.contact-content.reveal.visible,
.inquiry-form.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .contact-content.reveal,
  .inquiry-form.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
