/* ==========================================================================
   SERES — Base styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-text: #1a1a1a;
  --color-text-muted: #2d2d2d;
  --color-bg: #f5f0e8;
  --color-surface: #ffffff;
  --color-accent: #000000;
  --color-border: #e0d8cc;

  --font-body: "Arimo", system-ui, sans-serif;
  --font-display: "Arimo", system-ui, sans-serif;
  --page-hero-bg-image: url("assets/images/colors/prd_seres5_10.webp");

  --header-pad-x: clamp(2rem, 5vw, 4rem);
  --header-pad-y: 1.85rem;
  --header-height: 5.5rem;

  --container-max: 75rem;
  --transition: 0.2s ease;

  --cursor-dot-size: 8px;
  --cursor-ring-size: 2.75rem;
  --cursor-color: var(--color-accent);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1 {
  font-family: var(--font-body);
  font-weight: 600;
}

html[data-depth="1"] {
  --page-hero-bg-image: url("../assets/images/colors/prd_seres5_10.webp");
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

/* Skip link (a11y + SEO crawl path) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: min(100% - 3rem, var(--container-max));
  margin-inline: auto;
}

body.is-loading {
  overflow: hidden;
}

/* ── Page loader (home) ──────────────────────────────────── */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  will-change: transform;
}

.page-loader__stage {
  width: min(78vw, 24rem);
}

.page-loader__logo-wrap {
  position: relative;
  width: 100%;
}

.page-loader__logo {
  width: 100%;
  height: auto;
  overflow: visible;
}

.page-loader__logo-fill {
  opacity: 0;
  transform: scale(0.985);
  transform-origin: center;
  transform-box: fill-box;
  animation: page-loader-logo-in 0.65s ease forwards;
}

.page-loader__logo-fill path,
.page-loader__logo-fill use {
  fill: #ffffff;
}

.page-loader__logo-beam-glow,
.page-loader__logo-beam-core {
  opacity: 0;
  animation: page-loader-beam-fade 1.85s ease 0.35s forwards;
}

.page-loader__logo-beam-glow use,
.page-loader__logo-beam-core use {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dashoffset: 0;
  animation: page-loader-beam-trace 1.85s cubic-bezier(0.33, 0, 0.12, 1) 0.35s forwards;
}

.page-loader__logo-beam-glow use {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 6;
  stroke-dasharray: 220 3080;
}

.page-loader__logo-beam-core use {
  stroke: #ffffff;
  stroke-width: 1.5;
  stroke-dasharray: 70 3230;
}

@keyframes page-loader-logo-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 0.42;
    transform: scale(1);
  }
}

@keyframes page-loader-beam-fade {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    opacity: 0.75;
  }
}

@keyframes page-loader-beam-trace {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -3300;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__logo-fill {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .page-loader__logo-beam-glow,
  .page-loader__logo-beam-core {
    animation: none;
    opacity: 0;
  }

  .page-loader__logo-beam-glow use,
  .page-loader__logo-beam-core use {
    animation: none;
  }
}

/* ── Site header ─────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--header-pad-y) var(--header-pad-x);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.8vw, 2.75rem);
}

.site-header__logo {
  grid-column: 2;
  justify-self: center;
  display: block;
  text-decoration: none;
  line-height: 0;
}

.site-header__nav--right {
  grid-column: 3;
  justify-self: end;
}

.site-header__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.015em;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: color var(--transition);
}

.site-header__nav .site-header__link {
  position: relative;
}

.site-header__nav .site-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.site-header__nav .site-header__link:hover::after,
.site-header__nav .site-header__link:focus-visible::after {
  transform: scaleX(1);
}

.site-header__link:hover,
.site-header__link:focus-visible {
  color: var(--color-accent);
}

.site-header__chevron {
  margin-top: 1px;
  opacity: 0.9;
}

.site-header__cta {
  padding: 0.55rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.site-header__logo-img {
  display: block;
  width: auto;
  height: clamp(1.5rem, 3.5vw, 2.25rem);
}

.site-header__menu-btn,
.site-header__spacer,
.site-header__drawer,
.site-header__backdrop {
  display: none;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background-color: #d4c4a8;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  z-index: 0;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.35) 75%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 40rem;
  text-align: left;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  padding-left: clamp(1.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
}

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.25rem 0;
  font-size: clamp(0.875rem, 1.5vw, 1.05rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.025em;
  margin-bottom: 0.25rem;
}

.hero__features li {
  display: flex;
  align-items: center;
}

.hero__features li:not(:last-child)::after {
  content: "|";
  margin: 0 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
}

.hero__cta {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  min-width: min(100%, 14rem);
}

/* ── Drive stats (home) ──────────────────────────────────── */

.drive-stats {
  background: var(--color-surface);
  color: var(--color-accent);
}

.drive-stats__inner {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.drive-stats__title {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 22ch;
}

.drive-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.drive-stats__item {
  min-width: 0;
}

.drive-stats__label {
  font-size: clamp(0.875rem, 1.35vw, 1.05rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.drive-stats__value {
  display: flex;
  align-items: baseline;
  font-family: var(--font-body);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.drive-stats__suffix {
  font-size: 0.72em;
  font-weight: 700;
}

/* ── Colors showcase (home) ──────────────────────────────── */

.colors-showcase {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: #f5f5f5;
  color: var(--color-accent);
}

.colors-showcase__inner {
  padding-block: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.colors-showcase__title {
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.colors-showcase__figure {
  margin: 0;
}

.colors-showcase__vehicle-wrap {
  position: relative;
  max-width: min(100%, 56rem);
  margin-inline: auto;
  padding-inline: clamp(0.5rem, 3vw, 2rem);
}

.colors-showcase__vehicle-wrap::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 4%;
  height: 12%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.18) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.colors-showcase__vehicle-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin-inline: auto;
  transition: opacity 0.35s ease, filter 0.45s ease;
}

.colors-showcase__vehicle-img.is-fading {
  opacity: 0;
}

.colors-showcase--interior-view .colors-showcase__vehicle-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.colors-showcase--interior-view .colors-showcase__vehicle-wrap::after {
  display: none;
}

.colors-showcase--interior-view .colors-showcase__vehicle-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.colors-showcase--interior-view .colors-showcase__vehicle-img--beige {
  object-position: center 42%;
}

.colors-showcase--interior-view .colors-showcase__specs {
  display: none;
}

.colors-showcase__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 56rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.colors-showcase__spec {
  padding-inline: clamp(1rem, 2.5vw, 2rem);
  border-right: 1px solid #d8d8d8;
}

.colors-showcase__spec:first-child {
  padding-left: 0;
}

.colors-showcase__spec:last-child {
  border-right: none;
  padding-right: 0;
}

.colors-showcase__spec-label {
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.colors-showcase__spec-value {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.colors-showcase--interior-view .colors-showcase__controls {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.colors-showcase__controls {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.colors-showcase__pickers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
}

.colors-showcase__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.colors-showcase__picker {
  display: none;
  align-items: center;
  padding: 0.55rem 0.9rem;
  background: var(--color-surface);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.colors-showcase__picker.is-visible {
  display: flex;
}

.colors-showcase--interior-view .colors-showcase__pickers {
  min-height: 2.85rem;
}

.colors-showcase--interior-view #colors-interior-picker.is-visible {
  display: flex;
}

.colors-showcase__swatches {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.colors-showcase__swatch {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  background-color: var(--swatch-color, #ccc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.colors-showcase__swatch:hover,
.colors-showcase__swatch:focus-visible {
  transform: scale(1.08);
}

.colors-showcase__swatch.is-active {
  border: 2px solid #2d2d2d;
  box-shadow: none;
}

.colors-showcase__views-pill {
  padding: 0.28rem;
  background: #ececec;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.colors-showcase__views {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.colors-showcase__view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-accent);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.colors-showcase__view-icon {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
}

.colors-showcase__view:not(.is-active) .colors-showcase__view-icon {
  opacity: 0.55;
}

.colors-showcase__view:not(.is-active) {
  background: transparent;
  color: #6b6b6b;
}

.colors-showcase__view:hover,
.colors-showcase__view:focus-visible {
  color: var(--color-accent);
}

.colors-showcase__view.is-active[data-view="exterior"] {
  border-color: #2d2d2d;
  background: var(--color-surface);
}

.colors-showcase__view.is-active[data-view="interior"] {
  border-color: #4a7fd4;
  background: var(--color-surface);
}

.colors-showcase__color-name {
  display: none;
  margin-top: 0.85rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b6b6b;
  text-align: center;
}

.colors-showcase__color-name.is-visible {
  display: block;
}

/* ── Scroll reveal (GSAP) ─────────────────────────────────── */

.scroll-reveal {
  position: relative;
  z-index: 2;
  background: var(--color-surface);
}

.scroll-reveal__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--color-surface);
  isolation: isolate;
  box-sizing: border-box;
}

.scroll-reveal__title {
  position: absolute;
  z-index: 20;
  top: clamp(5.5rem, 11vh, 6.25rem);
  left: clamp(1.25rem, 5vw, 3.5rem);
  max-width: 14ch;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  pointer-events: none;
  will-change: top, left, color, opacity;
}

.scroll-reveal--interior .scroll-reveal__title {
  max-width: 18ch;
}

.scroll-reveal--electric .scroll-reveal__title {
  max-width: 16ch;
  color: #8b7355;
}

.scroll-reveal--electric .scroll-reveal__media {
  object-position: center 55%;
}

.scroll-reveal--safety .scroll-reveal__title {
  max-width: 14ch;
}

.scroll-reveal--safety .scroll-reveal__media {
  object-position: center 38%;
}

.scroll-reveal__media-frame {
  position: absolute;
  z-index: 1;
  top: 38%;
  left: 11%;
  right: 11%;
  height: 48%;
  width: auto;
  overflow: hidden;
  border-radius: 3px;
  will-change: top, left, width, height, border-radius;
}

.scroll-reveal__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 1;
  will-change: transform;
}

.scroll-reveal--interior .scroll-reveal__media {
  object-position: center center;
}

.scroll-reveal.is-static .scroll-reveal__viewport {
  min-height: 100vh;
  min-height: 100dvh;
}

.scroll-reveal.is-static .scroll-reveal__title {
  top: clamp(1.25rem, 4vh, 2.5rem);
  left: clamp(1.25rem, 5vw, 3rem);
  color: #fff;
  mix-blend-mode: difference;
}

.scroll-reveal--electric.is-static .scroll-reveal__title {
  color: #c4a882;
}

.scroll-reveal.is-static .scroll-reveal__media-frame {
  inset: 0;
  width: 100%;
  height: 100%;
}

.scroll-reveal.is-static .scroll-reveal__media {
  opacity: 1;
  transform: none;
}

/* ── Exterior design ───────────────────────────────────────── */

.exterior-design {
  background: var(--color-surface);
  color: var(--color-accent);
}

.exterior-design__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: clamp(2rem, 4vw, 3.25rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.exterior-design__intro {
  grid-column: 1;
  grid-row: 1;
  max-width: 26rem;
  align-self: center;
}

.exterior-design__figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.exterior-design__features {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.25rem);
  max-width: 26rem;
}

.exterior-design__title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.exterior-design__lead {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.45;
  color: #6b6b6b;
}

.exterior-design__feature-title {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  color: #333333;
  margin-bottom: 0.4rem;
}

.exterior-design__feature-text {
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.5;
  color: #666666;
}

.exterior-design__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(165deg, #e8e2dc 0%, #f3f0eb 48%, #f7f7f7 100%);
}

.exterior-design__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 58%,
    rgba(255, 255, 255, 0.35) 100%
  );
  pointer-events: none;
}

.exterior-design__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* ── Feature tabs ──────────────────────────────────────────── */

.feature-tabs {
  background: var(--color-surface);
  color: var(--color-accent);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  padding-inline: clamp(2.5rem, 10vw, 8rem);
}

.feature-tabs__inner {
  max-width: 68rem;
  margin-inline: auto;
}

.feature-tabs__stage {
  display: flex;
  flex-direction: column;
}

.feature-tabs__media {
  position: relative;
  width: 100%;
  min-height: clamp(18rem, 48vh, 32rem);
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 2px;
}

.feature-tabs__image {
  width: 100%;
  height: 100%;
  min-height: clamp(18rem, 48vh, 32rem);
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.4s ease;
}

.feature-tabs__image.is-fading {
  opacity: 0;
}

.feature-tabs__controls {
  width: 100%;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--color-surface);
}

.feature-tabs__nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 0.5rem;
  width: 100%;
  border-bottom: 1px solid #e3e3e3;
}

.feature-tabs__tab {
  flex: 1 1 0;
  max-width: 14rem;
  padding: 0.15rem 0.5rem 0.75rem;
  margin-bottom: -1px;
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.35vw, 1rem);
  font-weight: 400;
  line-height: 1.35;
  color: #8a8a8a;
  text-align: center;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition),
    font-weight var(--transition);
}

.feature-tabs__tab:hover,
.feature-tabs__tab:focus-visible {
  color: var(--color-accent);
}

.feature-tabs__tab.is-active {
  font-weight: 600;
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.feature-tabs__copy {
  margin: 0;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1rem, 4vw, 2rem) 0;
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.25vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  color: #5c5c5c;
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  transition: opacity 0.25s ease;
}

.feature-tabs__copy.is-fading {
  opacity: 0;
}

/* ── Tech gallery (horizontal scroll) ─────────────────────── */

.tech-gallery {
  position: relative;
  background: var(--color-surface);
  padding-top: clamp(4rem, 8vw, 6.5rem);
  --tech-gallery-pad: clamp(2.5rem, 10vw, 8rem);
  --tech-gallery-gap: clamp(1rem, 2vw, 1.5rem);
  --tech-gallery-img: clamp(11rem, 20vw, 14rem);
  --tech-gallery-panel: min(
    20rem,
    calc((100vw - (2 * var(--tech-gallery-pad)) - var(--tech-gallery-gap)) / 2)
  );
}

.tech-gallery__pin {
  display: flex;
  align-items: center;
  height: clamp(22rem, 46vh, 28rem);
  overflow: hidden;
}

.tech-gallery__track {
  display: flex;
  align-items: flex-start;
  gap: var(--tech-gallery-gap);
  width: max-content;
  padding-inline: var(--tech-gallery-pad);
  padding-block: 1.25rem;
  will-change: transform;
}

.tech-gallery__panel {
  flex: 0 0 auto;
  width: var(--tech-gallery-panel);
  display: flex;
  flex-direction: column;
}

.tech-gallery__media {
  flex: 0 0 auto;
  width: 100%;
  height: var(--tech-gallery-img);
  overflow: hidden;
  background: #111111;
}

.tech-gallery__panel--light .tech-gallery__media {
  background: #f0f0f0;
}

.tech-gallery__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.tech-gallery__copy {
  flex: 0 0 auto;
  padding-top: 0.85rem;
  color: var(--color-accent);
}

.tech-gallery__title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.tech-gallery__text {
  font-size: clamp(0.8125rem, 1.1vw, 0.875rem);
  font-weight: 400;
  line-height: 1.45;
  color: #666666;
  max-width: 34ch;
}

.tech-gallery.is-static {
  background: var(--color-surface);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.tech-gallery.is-static .tech-gallery__pin {
  height: auto;
  overflow: visible;
}

.tech-gallery.is-static .tech-gallery__track {
  flex-direction: column;
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.tech-gallery.is-static .tech-gallery__panel {
  width: 100%;
}

/* ── Safety features (accordion) ───────────────────────────── */

.safety-features {
  background: var(--color-surface);
  color: var(--color-accent);
}

.safety-features__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.safety-features__figure {
  margin: 0;
  min-width: 0;
}

.safety-features__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  transition: opacity 0.35s ease;
}

.safety-features__image.is-fading {
  opacity: 0;
}

.safety-features__accordion {
  min-width: 0;
}

.safety-accordion__item {
  border-bottom: 1px solid #e8e8e8;
}

.safety-accordion__item:first-child {
  border-top: 1px solid #e8e8e8;
}

.safety-accordion__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.safety-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: clamp(1.35rem, 2.5vw, 1.85rem) 0;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.safety-accordion__trigger:hover,
.safety-accordion__trigger:focus-visible {
  color: #333333;
}

.safety-accordion__label {
  flex: 1 1 auto;
}

.safety-accordion__icon {
  flex: 0 0 auto;
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
}

.safety-accordion__icon::before,
.safety-accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--transition), opacity var(--transition);
}

.safety-accordion__icon::before {
  width: 100%;
  height: 2px;
}

.safety-accordion__icon::after {
  width: 2px;
  height: 100%;
}

.safety-accordion__item.is-open .safety-accordion__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.safety-accordion__panel {
  overflow: hidden;
  transition: grid-template-rows 0.35s ease;
}

.safety-accordion__panel[hidden] {
  display: none;
}

.safety-accordion__item.is-open .safety-accordion__panel {
  display: block;
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.safety-accordion__text {
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.55;
  color: #666666;
  max-width: 42ch;
}

/* ── Buttons (component) ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #333;
}

.btn--glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn--glass:hover,
.btn--glass:focus-visible {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--glass:active {
  transform: translateY(1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-accent);
  color: #fff;
}

/* ── Cards (component) ───────────────────────────────────── */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: 1.5rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ── Page layout (internal pages) ────────────────────────── */

.page-main {
  padding-top: var(--header-height);
}

.page-hero {
  position: relative;
  isolation: isolate;
  padding: 4rem 0 3rem;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  border-bottom: none;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--page-hero-bg-image);
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.58) 55%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.page-hero__lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 40rem;
  margin-inline: auto;
}

.page-content {
  padding: 3rem 0 4rem;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.page-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  max-width: 65ch;
}

.page-layout {
  max-width: 48rem;
}

.page-block + .page-block {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--color-border);
}

.page-block:first-child {
  padding-top: 0;
  border-top: none;
}

.page-content .page-block .btn {
  margin-top: 0.5rem;
}

.page-content .page-block .btn + .btn {
  margin-left: 0.75rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info > h2,
.contact-form > h2 {
  letter-spacing: -0.03em;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.contact-details__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.contact-details__item:has(a:hover),
.contact-details__item:has(a:focus-visible) {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.contact-details__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.05rem;
  color: var(--color-accent);
}

.contact-details__icon img {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.contact-details__body {
  flex: 1;
  min-width: 0;
}

.contact-details__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.contact-details__value,
.contact-details a {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-text);
}

.contact-details a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.contact-details a:hover,
.contact-details a:focus-visible {
  border-bottom-color: currentColor;
}

.contact-form {
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.contact-form h2 {
  margin-bottom: 1.25rem;
}

.contact-form__field {
  margin-bottom: 1.25rem;
}

.contact-form__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: border-color var(--transition);
}

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

.contact-form__field textarea {
  resize: vertical;
  min-height: 7rem;
}

.contact-form__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  max-width: none;
}

/* ── Site footer ───────────────────────────────────────────── */

.site-footer {
  background: var(--color-accent);
  color: #f5f0e8;
  padding: 3rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer__logo {
  display: inline-block;
  margin-bottom: 0.85rem;
  line-height: 0;
  text-decoration: none;
}

.site-footer__logo-img {
  display: block;
  width: auto;
  height: clamp(1.35rem, 3vw, 1.85rem);
  filter: brightness(0) invert(1);
}

.site-footer__tagline {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.92;
}

.site-footer__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.site-footer__link {
  display: block;
  color: inherit;
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  opacity: 1;
}

.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8125rem;
  opacity: 0.6;
  text-align: center;
}

/* Noscript notice */
.noscript-notice {
  padding: 1rem;
  text-align: center;
  background: #fff3cd;
  color: #664d03;
  font-size: 0.875rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem;
}

/* ── Custom cursor ─────────────────────────────────────────── */

body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: none !important;
}

body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor [contenteditable="true"] {
  cursor: text !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor.is-hidden {
  opacity: 0;
}

.custom-cursor__dot,
.custom-cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.custom-cursor__dot {
  width: var(--cursor-dot-size);
  height: var(--cursor-dot-size);
  background: var(--cursor-color);
}

.custom-cursor__ring {
  width: var(--cursor-ring-size);
  height: var(--cursor-ring-size);
  border: 1.5px solid var(--cursor-color);
  background: transparent;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-cursor.is-hover .custom-cursor__ring {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.custom-cursor.is-pressed .custom-cursor__dot {
  transform: translate(-50%, -50%) scale(0.85);
}

.custom-cursor.is-pressed.is-hover .custom-cursor__ring {
  transform: translate(-50%, -50%) scale(0.92);
}
