@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700&family=Barlow+Condensed:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900&family=DM+Mono:ital,wght@0,400;0,500&display=swap');

:root {
  --bg: #0b0b0d;
  --fg: #f2eee8;
  --muted: rgba(242, 238, 232, 0.45);
  --red: #c8102e;
  --gold: #c4a86b;
  --line: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Barlow", sans-serif;
  overflow: hidden;
}

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

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

.split-home {
  display: grid;
  grid-template-rows: 118px minmax(0, 1fr) 34px;
  min-height: 100vh;
}

.split-home__header {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: #09090b;
}

.split-home__brand {
  text-align: center;
  line-height: 1;
}

.split-home__eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.55em;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  margin-bottom: 10px;
}

.split-home__logo {
  width: 170px;
  height: auto;
  margin: 0 auto;
}

.split-home__subtitle {
  margin-top: 8px;
  color: rgba(242, 238, 232, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
}

.split-home__stage {
  display: flex;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.split-panel {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 34px 38px;
  transition: flex-basis 700ms cubic-bezier(0.4, 0, 0.2, 1), filter 450ms ease;
  border-right: 1px solid var(--line);
  isolation: isolate;
}

.split-panel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.01);
  filter: saturate(0.9) brightness(0.71);
  transition: transform 900ms ease, filter 700ms ease;
}

.split-home__stage[data-active="dealer"] .split-panel--dealer {
  flex-basis: 67%;
}

.split-home__stage[data-active="dealer"] .split-panel--workshop {
  flex-basis: 33%;
}

.split-home__stage[data-active="workshop"] .split-panel--dealer {
  flex-basis: 33%;
}

.split-home__stage[data-active="workshop"] .split-panel--workshop {
  flex-basis: 67%;
}

.split-panel:last-child {
  border-right: 0;
}

.split-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.76) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.08) 44%, rgba(0, 0, 0, 0.34) 100%);
  z-index: 1;
}

.split-panel > :not(.split-panel__bg) {
  position: relative;
  z-index: 2;
}

.split-home__stage[data-active="dealer"] .split-panel--dealer .split-panel__bg,
.split-home__stage[data-active="workshop"] .split-panel--workshop .split-panel__bg,
.split-panel:hover .split-panel__bg,
.split-panel:focus-visible .split-panel__bg {
  transform: scale(1.04);
  filter: saturate(0.98) brightness(0.87);
}

.split-home__stage[data-active="dealer"] .split-panel--workshop .split-panel__bg,
.split-home__stage[data-active="workshop"] .split-panel--dealer .split-panel__bg {
  transform: scale(1.01);
  filter: saturate(0.78) brightness(0.51) contrast(0.95);
}

.split-home__stage[data-active="dealer"] .split-panel--dealer .split-panel__bg,
.split-home__stage[data-active="workshop"] .split-panel--workshop .split-panel__bg {
  filter: saturate(1) brightness(1);
}

.split-panel__index {
  position: absolute;
  top: 34px;
  left: 34px;
  color: rgba(242, 238, 232, 0.34);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.split-panel__index--right {
  left: auto;
  right: 34px;
}

.split-panel__eyebrow {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto 14px;
  color: var(--gold);
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  opacity: 0.88;
}

.split-panel__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  transform: translateY(0);
  transition: transform 500ms ease, letter-spacing 500ms ease;
}

.split-panel__subtitle {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  text-align: center;
  color: rgba(242, 238, 232, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  transition: transform 500ms ease, opacity 500ms ease;
}

.split-panel__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin: 22px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 280ms ease, transform 280ms ease, border-color 280ms ease;
}

.split-panel:hover .split-panel__cta,
.split-panel:focus-visible .split-panel__cta {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(196, 168, 107, 0.5);
}

.split-home__stage[data-active="dealer"] .split-panel--dealer .split-panel__cta,
.split-home__stage[data-active="workshop"] .split-panel--workshop .split-panel__cta {
  opacity: 1;
  transform: translateY(0);
}

.split-home__stage[data-active="dealer"] .split-panel--dealer .split-panel__title,
.split-home__stage[data-active="workshop"] .split-panel--workshop .split-panel__title {
  transform: translateY(-4px);
}

.split-home__stage[data-active="dealer"] .split-panel--workshop .split-panel__title,
.split-home__stage[data-active="workshop"] .split-panel--dealer .split-panel__title {
  transform: translateY(6px);
  letter-spacing: 0.04em;
}

.split-home__stage[data-active="dealer"] .split-panel--workshop .split-panel__subtitle,
.split-home__stage[data-active="workshop"] .split-panel--dealer .split-panel__subtitle {
  opacity: 0.72;
  transform: translateY(4px);
}

.split-panel__cta {
  color: rgba(255, 255, 255, 0.92);
}

.split-home__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  background: #09090b;
  color: rgba(242, 238, 232, 0.62);
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.32em;
  white-space: nowrap;
  overflow: hidden;
}

.split-home__footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

@media (max-width: 1100px) {
  .split-home {
    grid-template-rows: 110px minmax(0, 1fr) 42px;
  }

  .split-home__stage {
    flex-direction: column;
  }

  .split-panel {
    flex: 1 1 auto;
    min-height: 50vh;
  }

  .split-home__stage[data-active="dealer"] .split-panel--dealer,
  .split-home__stage[data-active="dealer"] .split-panel--workshop,
  .split-home__stage[data-active="workshop"] .split-panel--dealer,
  .split-home__stage[data-active="workshop"] .split-panel--workshop {
    flex-basis: auto;
  }
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .split-home {
    grid-template-rows: auto auto auto;
  }

  .split-home__header {
    min-height: 88px;
  }

  .split-home__logo {
    width: 132px;
  }

  .split-home__stage {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .split-panel {
    min-height: 31vh;
    padding: 24px 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .split-panel__title {
    font-size: clamp(1.95rem, 11vw, 3.2rem);
  }

  .split-panel__cta {
    opacity: 1;
    transform: none;
    margin-top: 14px;
    padding: 9px 12px;
    font-size: 0.67rem;
  }

  .split-home__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    white-space: normal;
    padding: 10px 16px 12px;
    letter-spacing: 0.14em;
    font-size: 0.58rem;
  }

  .split-home__footer span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.45;
    word-break: break-word;
  }
}
