/* Custom Livery page — editorial motorsport layout (owner request 20.10.2026, based on the Drift Season prototype).
   Site tokens only; scoped with .lx-. AI images carry a visible "Design concept" label. */
.lx {
  --lx-pad: max(1rem, calc((100vw - 75rem) / 2 + 1.5rem));
  overflow-x: clip;
}

/* Brand display font: Unbounded Black (brand OS; "UNBOLTED BLACK" in the brand book is a typo), self-hosted, Latin + Cyrillic.
   Brand rule: uppercase, tracking -0.055em, line-height 0.84. Arabic falls back to the site's Arabic font. */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/unbounded-black-latin-cyrillic.woff2") format("woff2");
}

.lx h1,
.lx h2 {
  margin: 0;
  font-family: "Unbounded", var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

html[lang="ru"] .lx h1,
html[lang="ru"] .lx h2 {
  font-family: "Unbounded", var(--font-ru-display, var(--font-display));
  letter-spacing: -0.045em;
}

html[lang="ru"] .lx-hero h1 {
  font-size: clamp(1.8rem, 3.8vw, 3.5rem);
}

[dir="rtl"] .lx h1,
[dir="rtl"] .lx h2 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: normal;
}

.lx h1 em,
.lx h2 em {
  color: var(--color-brand-focus);
  font-style: normal;
}

.lx-kicker {
  display: flex;
  margin: 0 0 var(--space-5);
}

.lx-concept {
  position: absolute;
  z-index: 3;
  left: var(--space-3);
  bottom: var(--space-3);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: rgba(5, 5, 5, 0.8);
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[dir="rtl"] .lx-concept {
  right: var(--space-3);
  left: auto;
}

.lx .button-row {
  margin-top: var(--space-6);
}

/* Hero */
.lx-hero {
  position: relative;
  display: grid;
  border-bottom: 1px solid var(--color-line);
}

.lx-hero__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4rem 4rem;
  pointer-events: none;
}

.lx-hero__copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: var(--space-6) var(--lx-pad) var(--space-7);
}

.lx-hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
}

.lx-hero__lede {
  max-width: 30rem;
  margin: var(--space-6) 0 0;
  color: var(--color-muted);
  font-size: var(--step-0);
  line-height: 1.6;
}

.lx-hero__visual {
  position: relative;
  min-height: 30rem;
  margin: 0;
  overflow: hidden;
  background: var(--color-surface-raised);
}

.lx-hero__visual img,
.lx-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lx-hero__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.45), transparent 40%, rgba(5, 5, 5, 0.45));
  content: "";
}

.lx-glass {
  position: absolute;
  z-index: 2;
  top: var(--space-6);
  right: var(--space-5);
  display: grid;
  gap: 0.15rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-line-strong);
  background: rgba(5, 5, 5, 0.8);
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
  font-weight: 700;
}

@supports (backdrop-filter: blur(1px)) {
  .lx-glass {
    background: rgba(5, 5, 5, 0.55);
    backdrop-filter: blur(12px);
  }
}

.lx-glass b {
  color: var(--color-brand-focus);
}

/* Manifesto */
.lx-manifesto {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-8, 5rem) var(--lx-pad);
}

.lx-manifesto h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
}

.lx-manifesto p:last-child {
  max-width: 26rem;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

/* Before / after */
.lx-reveal {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-8, 5rem) var(--lx-pad);
  background: var(--color-surface-raised);
}

.lx-reveal h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.8rem);
}

.lx-reveal__head > p:last-child {
  max-width: 22rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.lx-slider {
  position: relative;
  height: min(43rem, 125vw);
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

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

.lx-slider__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 47% 0 0);
}

.lx-slider input {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.lx-slider__line {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 53%;
  width: 2px;
  background: var(--color-brand-focus);
  pointer-events: none;
}

.lx-slider__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-pill);
  background: var(--color-brand-focus);
  color: var(--jg-black);
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.lx-slider:focus-within .lx-slider__handle {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.lx-slider__label {
  position: absolute;
  z-index: 3;
  top: var(--space-3);
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 5, 5, 0.75);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.lx-slider__label--before { right: var(--space-3); }
.lx-slider__label--after { left: var(--space-3); }

@media (max-width: 41.999rem) {
  .lx-slider__detail {
    display: none;
  }
}

.lx-caption {
  margin: var(--space-3) 0 0;
  color: var(--color-muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

/* Real work */
.lx-real {
  padding: var(--space-8, 5rem) var(--lx-pad);
}

.lx-real h2 {
  margin-bottom: var(--space-6);
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
}

.lx-real .portfolio-grid {
  max-width: 40rem;
}

/* Team + collection */
.lx-split {
  display: grid;
}

.lx-media {
  position: relative;
  min-height: 32rem;
  overflow: hidden;
  background: var(--color-surface-raised);
}

.lx-split__copy {
  padding: var(--space-8, 5rem) var(--lx-pad);
}

.lx-split h2 {
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

.lx-split__intro {
  max-width: 26rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.lx-system {
  display: grid;
  margin: var(--space-6) 0 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
  list-style: none;
}

.lx-system li {
  display: grid;
  gap: 0.2rem;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line);
}

.lx-system strong {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.lx-system span {
  color: var(--color-muted);
  font-size: var(--step--1);
}

.lx-collection {
  background: var(--jg-purple);
}

.lx-collection .lx-split__intro,
.lx-collection .lx-kicker {
  color: var(--color-text);
}

.lx-collection h2 em {
  color: var(--color-brand-focus);
}

/* Final */
.lx-final {
  position: relative;
  overflow: hidden;
  padding: var(--space-8, 5rem) var(--lx-pad);
  background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--jg-purple) 45%, transparent), transparent 35%), var(--color-surface);
}

.lx-final h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
}

.lx-final__copy {
  max-width: 30rem;
  margin: var(--space-5) 0 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.lx-final__price {
  margin: var(--space-5) 0 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--step-1);
}

@media (min-width: 60rem) {
  .lx-hero {
    grid-template-columns: 47% 53%;
    min-height: calc(100svh - var(--header-height));
  }

  .lx-hero__visual {
    min-height: 100%;
    border-left: 1px solid var(--color-line);
  }

  .lx-manifesto {
    grid-template-columns: 2fr 1fr;
    align-items: end;
  }

  .lx-reveal {
    grid-template-columns: 34% 1fr;
    gap: var(--space-8, 4rem);
  }

  .lx-split {
    grid-template-columns: 1fr 1fr;
    min-height: 46rem;
  }

  .lx-collection .lx-media {
    order: 2;
  }

  .lx-system {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lx * {
    transition: none !important;
  }
}
