@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: collection-fade-out 280ms ease both;
}

::view-transition-new(root) {
  animation: collection-fade-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes collection-fade-out {
  to {
    opacity: 0;
    filter: blur(8px);
  }
}

@keyframes collection-fade-in {
  from {
    opacity: 0;
    filter: blur(10px);
  }
}

.project-card {
  isolation: isolate;
  background: #1d201d;
  color: #e1e3de;
}

.project-card__hit {
  position: absolute;
  inset: 0;
  z-index: 25;
}

.project-card a[target="_blank"] {
  position: relative;
  z-index: 30;
}

.car-hero__img,
.project-card img[data-vt] {
  view-transition-name: var(--car-vt, none);
}

.cars-hero {
  padding: 10rem 0 3rem;
}

.cars-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0 2rem;
}

.cars-filter {
  appearance: none;
  border: 1px solid rgba(64, 73, 66, 0.8);
  background: transparent;
  color: #c0c9c0;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cars-filter:hover,
.cars-filter.is-active {
  color: #111411;
  background: #e9c349;
  border-color: #e9c349;
}

.car-hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.car-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: car-hero-drift 18s ease-out both;
}

@keyframes car-hero-drift {
  from {
    transform: scale(1.12) translateY(12px);
    filter: saturate(0.85);
  }
  to {
    transform: scale(1.02) translateY(0);
    filter: saturate(1);
  }
}

.car-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 15, 12, 0.15) 0%, rgba(12, 15, 12, 0.2) 40%, rgba(12, 15, 12, 0.92) 100%);
}

.car-hero__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 4.5rem;
}

@media (min-width: 768px) {
  .car-hero__copy {
    padding: 0 80px 5.5rem;
  }
}

.car-hero__copy h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #e9c349;
  max-width: 16ch;
}

.car-subnav {
  position: sticky;
  top: 5.4rem;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(17, 20, 17, 0.72);
  border-bottom: 1px solid rgba(64, 73, 66, 0.45);
}

.car-subnav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
}

@media (min-width: 768px) {
  .car-subnav__inner {
    padding: 0 80px;
  }
}

.car-subnav a {
  flex: none;
  padding: 1rem 0;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0c9c0;
  border-bottom: 1px solid transparent;
}

.car-subnav a.is-active,
.car-subnav a:hover {
  color: #98d4ac;
  border-bottom-color: #98d4ac;
}

.car-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 5.5rem 24px;
  color: #e1e3de;
}

@media (min-width: 768px) {
  .car-section {
    padding: 7rem 80px;
  }
}

.car-editorial {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .car-editorial {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4.5rem;
  }

  .car-editorial--flip {
    direction: rtl;
  }

  .car-editorial--flip > * {
    direction: ltr;
  }
}

.car-editorial img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.car-copy {
  max-width: 62ch;
  color: #e1e3de;
  font-size: 1.05rem;
  line-height: 1.7;
}

.car-copy h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #e9c349;
  margin: 0 0 1.1rem;
}

.car-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .car-gallery {
    grid-template-columns: 1.2fr 0.8fr;
    grid-auto-rows: 280px;
  }

  .car-gallery a:first-child {
    grid-row: span 2;
  }

  .car-gallery a:first-child img {
    height: 100%;
  }
}

.car-gallery img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.car-gallery a:hover img {
  transform: scale(1.04);
}

.car-timeline {
  position: relative;
  display: grid;
  gap: 3.5rem;
}

.car-timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: rgba(233, 195, 73, 0.35);
}

@media (min-width: 800px) {
  .car-timeline::before {
    left: 1.15rem;
  }
}

.car-timeline__item {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding-left: 2.2rem;
}

@media (min-width: 800px) {
  .car-timeline__item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    padding-left: 3.2rem;
    gap: 3rem;
  }
}

.car-timeline__item::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: #e9c349;
}

@media (min-width: 800px) {
  .car-timeline__item::before {
    left: 0.9rem;
  }
}

.car-cinematic {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.car-cinematic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-cinematic__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(12, 15, 12, 0.88) 100%);
}

.car-cinematic__copy {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4rem 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .car-cinematic__copy {
    padding: 5rem 80px;
  }
}

.car-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .car-related {
    grid-template-columns: repeat(3, 1fr);
  }
}

.car-related a {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.car-related img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.car-related a:hover img {
  transform: scale(1.05);
}

.car-related span {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  color: #e9c349;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}

.car-missing {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem 24px;
}
