@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=Manrope:wght@300;400;500&display=swap');


/* =========================================================
   NATIVE
   BASE
   ========================================================= */

:root {
  --paper: #e9e5dc;
  --paper-2: #ded9cf;

  --ink: #1a1c1d;
  --muted: #77736c;

  --line: rgba(26, 28, 29, .16);

  --dark: #17191a;
  --white: #f2efe8;

  --content-width: 1440px;

  /*
    Desktop: padding растёт вместе с экраном.
    Mobile переопределяется ниже.
  */
  --page-padding: clamp(24px, 5vw, 80px);
}


/* =========================================================
   RESET
   ========================================================= */

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


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  background: var(--paper);
  color: var(--ink);

  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-weight: 300;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


body,
button,
a {
  font: inherit;
}


button {
  border: 0;
  padding: 0;

  background: none;
  color: inherit;

  cursor: pointer;
}


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


img {
  max-width: 100%;
}


h1,
h2,
h3,
p {
  margin-top: 0;
}


h1,
h2 {
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-weight: 300;

  letter-spacing: -.045em;
}


/* =========================================================
   SITE
   ========================================================= */

.site {
  width: 100%;
  min-height: 100vh;

  overflow: hidden;

  background: var(--paper);
}


/* =========================================================
   COMMON TYPOGRAPHY
   ========================================================= */

.eyebrow {
  margin: 0;

  color: var(--muted);

  font-size: 10px;
  line-height: 1.4;

  letter-spacing: .25em;

  text-transform: uppercase;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
  width: 100%;
  max-width: var(--content-width);

  min-height: 100px;

  margin: 0 auto;

  padding:
    24px
    var(--page-padding);

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;
  z-index: 100;
}


/* ---------- LOGO ---------- */

.brand {
  display: flex;
  align-items: center;

  gap: 18px;
}


.brand-mark {
  width: 43px;
  height: 43px;

  border: 1px solid var(--ink);

  display: grid;
  place-items: center;

  font-size: 20px;
  font-weight: 300;
}


.brand-name {
  font-size: 16px;
  font-weight: 400;

  letter-spacing: .34em;
}


/* ---------- RIGHT ---------- */

.header-right {
  display: flex;
  align-items: center;

  gap: 26px;
}


/* =========================================================
   THEME BUTTON
   ========================================================= */

.theme-toggle {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  color: var(--ink);

  transition:
    transform .25s ease,
    color .25s ease;
}


.theme-toggle:hover {
  transform: scale(1.08);
}


.theme-toggle:active {
  transform: scale(.94);
}


.theme-icon {
  display: block;

  font-size: 22px;
  line-height: 1;

  font-weight: 300;

  transform: rotate(-20deg);

  transition: transform .4s ease;
}


body.dark-theme .theme-icon {
  transform: rotate(160deg);
}


/* =========================================================
   MENU BUTTON
   ========================================================= */

.menu {
  width: 30px;

  display: grid;

  gap: 7px;

  padding: 5px 0;
}


.menu i {
  display: block;

  width: 30px;
  height: 1px;

  background: var(--ink);

  transition:
    transform .25s ease,
    opacity .25s ease;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  width: 100%;

  /*
    Hero + header ≈ один экран.
  */
  min-height: calc(100svh - 100px);

  padding:
    clamp(65px, 9vh, 130px)
    var(--page-padding)
    0;

  overflow: hidden;
}


/* ---------- HERO CONTENT ---------- */

.hero-copy {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: var(--content-width);

  margin: 0 auto;
}


/* ---------- HERO TITLE ---------- */

.hero h1 {
  margin:
    0
    0
    clamp(24px, 3vw, 40px);

  font-size:
    clamp(
      54px,
      6.2vw,
      108px
    );

  line-height: .93;

  letter-spacing: -.055em;
}


.hero h1 span {
  color: #817b73;
}


/* ---------- HERO DESCRIPTION ---------- */

.hero-lead {
  width: min(100%, 520px);

  margin-bottom: 0;

  font-size:
    clamp(
      15px,
      1.15vw,
      19px
    );

  line-height: 1.4;

  letter-spacing: -.025em;
}


/* =========================================================
   HERO BUTTON
   ========================================================= */

.button {
  width: 274px;
  min-height: 52px;

  margin-top: 27px;

  padding:
    0
    18px
    0
    23px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--dark);
  color: var(--white);

  font-size: 10px;

  letter-spacing: .18em;

  transition:
    transform .25s ease,
    background-color .25s ease;
}


.button:hover {
  transform: translateY(-2px);
}


.button .arrow,
.arrow {
  font-size: 22px;
  line-height: 1;

  font-weight: 200;

  transition: transform .25s ease;
}


.button:hover .arrow {
  transform: translateX(4px);
}


/* =========================================================
   HERO PHOTO
   ========================================================= */

.hero-photo {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 52%;

  z-index: 1;

  overflow: hidden;
}


/*
  Плавное растворение фотографии
  в фоне hero.
*/

.hero-photo::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;

  background:
    linear-gradient(
      to bottom,

      var(--paper) 0%,

      rgba(233, 229, 220, .82) 5%,

      rgba(233, 229, 220, .30) 17%,

      rgba(233, 229, 220, 0) 35%
    );

  pointer-events: none;
}


.hero-photo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  /*
    При необходимости двигаем машину
    именно этим значением.
  */
  object-position: center 58%;

  filter:
    saturate(.82)
    contrast(.96)
    blur(.35px);

  transform: scale(1.005);
}


/* =========================================================
   CAPABILITIES
   ========================================================= */

.capabilities {
  width: 100%;

  padding:
    clamp(75px, 9vw, 135px)
    0
    clamp(75px, 9vw, 135px);

  overflow: hidden;

  background: var(--paper);
  color: var(--ink);
}


/* ---------- HEADER ---------- */

.capabilities-header {
  width: 100%;
  max-width: var(--content-width);

  margin:
    0
    auto
    clamp(38px, 4vw, 58px);

  padding:
    0
    var(--page-padding);
}


.capabilities-header .eyebrow {
  margin-bottom: 18px;
}


.capabilities-header h2 {
  max-width: 900px;

  margin: 0;

  font-size:
    clamp(
      46px,
      5.2vw,
      88px
    );

  line-height: .96;

  letter-spacing: -.055em;

  font-weight: 300;
}


/* =========================================================
   CAPABILITIES SLIDER
   ========================================================= */

/* =========================================================
   CAPABILITIES — MOBILE FIRST
   На телефоне это SLIDER
   ========================================================= */

.capabilities-slider {
  display: flex;
  gap: 14px;

  padding-left: var(--page-padding);
  padding-right: 58px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.capabilities-slider::-webkit-scrollbar {
  display: none;
}

.capability-card {
  position: relative;

  flex: 0 0 86%;

  height: min(535px, 68vh);
  min-height: 470px;

  overflow: hidden;

  border-radius: 22px;

  scroll-snap-align: start;

  background: #111;
  isolation: isolate;
}


/* ---------- IMAGE ---------- */

.capability-card img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  z-index: 0;

  transition:
    transform
    .8s
    cubic-bezier(.2, .7, .2, 1);
}


@media (hover: hover) {

  .capability-card:hover img {
    transform: scale(1.025);
  }

}

/* =========================================================
   CAPABILITIES — DESKTOP
   Slider превращается в editorial grid
   ========================================================= */

@media (min-width: 768px) {

  .capabilities-slider {
    width: calc(100% - (var(--page-padding) * 2));
    max-width: calc(var(--content-width) - (var(--page-padding) * 2));

    margin: 0 auto;
    padding: 0;

    display: grid;

    grid-template-columns:
      minmax(0, 1.15fr)
      minmax(0, .5fr)
      minmax(0, .5fr);

    grid-template-rows:
      minmax(260px, 0.9fr)
      minmax(260px, 0.9fr);

    gap: clamp(14px, 1.3vw, 22px);

    overflow: visible;

    scroll-snap-type: none;
  }


  /* Все карточки больше не являются slider items */

  .capability-card {
    width: auto;
    height: auto;
    min-height: 0;

    flex: none;

    border-radius: clamp(18px, 1.5vw, 26px);

    scroll-snap-align: none;
  }


  /* =====================================================
     01 — большая карточка слева
     ===================================================== */

  .capability-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;

    min-height: 620px;
  }


  /* =====================================================
     02 — широкая справа сверху
     ===================================================== */

  .capability-card:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1;
  }


  /* =====================================================
     03 — справа снизу / левая
     ===================================================== */

  .capability-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }


  /* =====================================================
     04 — справа снизу / правая
     ===================================================== */

  .capability-card:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }


  /* =====================================================
     FOOTER SLIDER НА DESKTOP НЕ НУЖЕН
     ===================================================== */

  .capabilities-footer {
    display: none;
  }

}

@media (min-width: 768px) {

  .capability-card:nth-child(3) .capability-text h3,
  .capability-card:nth-child(4) .capability-text h3 {
    font-size: clamp(28px, 2.3vw, 40px);
  }

  .capability-card:nth-child(3) .capability-text p,
  .capability-card:nth-child(4) .capability-text p {
    font-size: clamp(11px, .85vw, 14px);
  }

  .capability-card:nth-child(3) .capability-text,
  .capability-card:nth-child(4) .capability-text {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

}

/* ---------- SHADE ---------- */

.capability-shade {
  position: absolute;

  inset: 0;

  z-index: 1;

  background:
    linear-gradient(
      180deg,

      rgba(0, 0, 0, .04) 0%,

      rgba(0, 0, 0, .05) 35%,

      rgba(0, 0, 0, .22) 58%,

      rgba(0, 0, 0, .92) 100%
    );
}


/* ---------- NUMBER ---------- */

.capability-number {
  position: absolute;

  top: 26px;
  left: 27px;

  z-index: 2;

  color: rgba(255, 255, 255, .92);

  font-size: 17px;
  font-weight: 300;

  letter-spacing: .08em;
}


/* =========================================================
   CAPABILITY TEXT
   ========================================================= */

.capability-text {
  position: absolute;

  left: 28px;
  right: 28px;
  bottom: 30px;

  z-index: 2;

  color: #f4f1ea;
}


.capability-text h3 {
  margin:
    0
    0
    14px;

  font-family:
    "Manrope",
    sans-serif;

  font-size:
    clamp(
      38px,
      3.3vw,
      54px
    );

  line-height: .95;

  font-weight: 300;

  letter-spacing: -.045em;
}


.capability-text p {
  max-width: 340px;

  margin:
    0
    0
    30px;

  color:
    rgba(
      244,
      241,
      234,
      .82
    );

  font-size:
    clamp(
      13px,
      1vw,
      15px
    );

  line-height: 1.45;
}


/* ---------- CARD LINK ---------- */

.capability-link {
  width: fit-content;

  display: flex;
  align-items: center;

  gap: 22px;

  color: #f4f1ea;

  font-size: 9px;

  letter-spacing: .23em;

  text-transform: uppercase;
}


.capability-link span {
  font-size: 21px;

  letter-spacing: 0;

  transition:
    transform
    .25s
    ease;
}


.capability-link:hover span {
  transform: translateX(5px);
}


/* =========================================================
   SLIDER FOOTER
   ========================================================= */

.capabilities-footer {
  width: 100%;
  max-width: var(--content-width);

  margin: 0 auto;

  padding:
    28px
    var(--page-padding)
    0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* ---------- PROGRESS ---------- */

.slider-progress {
  display: flex;
  align-items: center;

  gap: 9px;
}


.progress-item {
  width: 50px;
  height: 3px;

  display: block;

  border-radius: 10px;

  background:
    rgba(
      26,
      28,
      29,
      .14
    );

  transition:
    width .35s ease,
    background-color .35s ease;
}


.progress-item.active {
  width: 70px;

  background: var(--ink);
}


/* ---------- NEXT ---------- */

.slider-next {
  display: flex;
  align-items: center;

  gap: 20px;

  color: var(--ink);

  font-size: 9px;

  letter-spacing: .21em;

  text-transform: uppercase;
}


.slider-next span {
  font-size: 22px;

  letter-spacing: 0;

  transition:
    transform
    .25s
    ease;
}


.slider-next:hover span {
  transform: translateX(5px);
}


/* =========================================================
   MANIFESTO
   ========================================================= */

.manifesto {
  width: 100%;

  padding:
    clamp(85px, 10vw, 160px)
    max(
      var(--page-padding),
      calc(
        (100vw - var(--content-width)) / 2
        + var(--page-padding)
      )
    );

  background: var(--paper-2);
}


.manifesto h2 {
  max-width: 1050px;

  margin:
    22px
    0
    28px;

  font-size:
    clamp(
      46px,
      5.5vw,
      92px
    );

  line-height: .96;

  letter-spacing: -.055em;
}


.manifesto h2 span {
  color: #77736c;
}


.manifesto > p:last-child {
  width: min(100%, 540px);

  margin: 0;

  color: #77736c;

  font-size:
    clamp(
      14px,
      1.1vw,
      17px
    );

  line-height: 1.55;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  width: 100%;

  padding:
    clamp(90px, 10vw, 160px)
    max(
      var(--page-padding),
      calc(
        (100vw - var(--content-width)) / 2
        + var(--page-padding)
      )
    );

  background: var(--dark);
  color: var(--white);
}


.contact .eyebrow {
  color: #aaa59c;
}


.contact h2 {
  max-width: 900px;

  margin:
    22px
    0
    25px;

  font-size:
    clamp(
      50px,
      6vw,
      100px
    );

  line-height: .93;

  letter-spacing: -.055em;
}


.contact > p:not(.eyebrow) {
  width: min(100%, 500px);

  margin-bottom: 0;

  color: #aaa59c;

  font-size:
    clamp(
      13px,
      1vw,
      16px
    );

  line-height: 1.55;
}


.button-light {
  margin-top: 32px;

  background: var(--white);
  color: var(--dark);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  width: 100%;

  padding:
    26px
    max(
      var(--page-padding),
      calc(
        (100vw - var(--content-width)) / 2
        + var(--page-padding)
      )
    );

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--dark);
  color: #aaa59c;

  border-top:
    1px
    solid
    rgba(
      242,
      239,
      232,
      .12
    );

  font-size: 9px;

  letter-spacing: .16em;
}


/* =========================================================
   DARK THEME
   ========================================================= */

body.dark-theme {

  --paper: #191b1c;

  --paper-2: #242627;

  --ink: #eeeae2;

  --muted: #99958d;

  --line:
    rgba(
      238,
      234,
      226,
      .14
    );

  --dark: #0f1112;

  --white: #eeeae2;

  background: #111313;
}


/* ---------- HERO DARK ---------- */

body.dark-theme .hero h1 span {
  color: #99938a;
}


body.dark-theme .hero-photo::before {

  background:
    linear-gradient(
      to bottom,

      var(--paper) 0%,

      rgba(25, 27, 28, .82) 5%,

      rgba(25, 27, 28, .30) 17%,

      rgba(25, 27, 28, 0) 35%
    );
}


/* ---------- SLIDER DARK ---------- */

body.dark-theme .progress-item {
  background:
    rgba(
      238,
      234,
      226,
      .15
    );
}


body.dark-theme .progress-item.active {
  background: var(--ink);
}


/* ---------- MANIFESTO DARK ---------- */

body.dark-theme .manifesto h2 span {
  color: #96928a;
}


body.dark-theme .manifesto > p:last-child {
  color: #96928a;
}


/* ---------- CONTACT DARK ---------- */

body.dark-theme .contact,
body.dark-theme .footer {
  background: #0f1112;
}


/* =========================================================
   THEME TRANSITIONS
   ========================================================= */

body,
.site,
.header,
.hero,
.capabilities,
.manifesto,
.contact,
.footer,
.progress-item {

  transition:
    background-color .45s ease,
    color .45s ease,
    border-color .45s ease;
}


/* =========================================================
   TABLET
   768 — 1100
   ========================================================= */

@media (
  min-width: 768px
) and (
  max-width: 1100px
) {

  :root {
    --page-padding:
      clamp(
        36px,
        6vw,
        64px
      );
  }


  /* ---------- HEADER ---------- */

  .header {
    min-height: 92px;
  }


  /* ---------- HERO ---------- */

  .hero {
    min-height:
      calc(
        100svh - 92px
      );

    padding-top:
      clamp(
        65px,
        8vh,
        100px
      );
  }


  .hero h1 {
    font-size:
      clamp(
        64px,
        8vw,
        86px
      );
  }


  .hero-photo {
    height: 50%;
  }


  /* ---------- SLIDER ---------- */

  .capability-card {
    flex-basis:
      clamp(
        410px,
        65vw,
        570px
      );

    height:
      clamp(
        540px,
        65vh,
        680px
      );
  }

}


/* =========================================================
   MOBILE
   <= 767
   ========================================================= */

@media (
  max-width: 767px
) {

  :root {
    --page-padding: 24px;
  }


  /* =======================================================
     HEADER MOBILE
     ======================================================= */

  .header {
    min-height: 82px;

    padding:
      18px
      var(--page-padding)
      16px;
  }


  .brand {
    gap: 16px;
  }


  .brand-mark {
    width: 40px;
    height: 40px;

    font-size: 18px;
  }


  .brand-name {
    font-size: 14px;

    letter-spacing: .31em;
  }


  .header-right {
    gap: 20px;
  }


  .theme-toggle {
    width: 27px;
    height: 27px;
  }


  .theme-icon {
    font-size: 20px;
  }


  .menu {
    width: 27px;
  }


  .menu i {
    width: 27px;
  }


  /* =======================================================
     HERO MOBILE
     ======================================================= */

  .hero {
    min-height: 742px;

    padding:
      48px
      var(--page-padding)
      0;
  }


  .hero h1 {

    margin-bottom: 25px;

    font-size:
      clamp(
        48px,
        13.5vw,
        62px
      );

    line-height: .96;
  }


  .hero-lead {
    max-width: 420px;

    font-size: 15px;

    line-height: 1.38;
  }


  .button {
    width: min(
      274px,
      100%
    );

    min-height: 50px;

    margin-top: 24px;
  }


  .hero-photo {
    height: 360px;
  }


  .hero-photo img {
    object-position:
      center
      55%;
  }


  /* =======================================================
     CAPABILITIES MOBILE
     ======================================================= */

  .capabilities {
    padding:
      64px
      0
      64px;
  }


  .capabilities-header {

    margin-bottom: 38px;

    padding:
      0
      var(--page-padding);
  }


  .capabilities-header .eyebrow {
    margin-bottom: 16px;
  }


  .capabilities-header h2 {

    font-size:
      clamp(
        42px,
        11vw,
        52px
      );

    line-height: .98;
  }


  /* ---------- SLIDER MOBILE ---------- */

  .capabilities-slider {

    gap: 14px;

    padding-left:
      var(--page-padding);

    padding-right:
      58px;
  }


  .capability-card {

    flex:
      0
      0
      86%;

    height:
      min(
        535px,
        68vh
      );

    min-height: 470px;

    border-radius: 21px;
  }


  .capability-number {
    top: 22px;
    left: 23px;

    font-size: 15px;
  }


  .capability-text {

    left: 24px;
    right: 24px;
    bottom: 26px;
  }


  .capability-text h3 {

    margin-bottom: 12px;

    font-size:
      clamp(
        36px,
        10vw,
        43px
      );
  }


  .capability-text p {

    max-width: 290px;

    margin-bottom: 26px;

    font-size: 13px;
  }


  /* ---------- SLIDER FOOTER MOBILE ---------- */

  .capabilities-footer {

    padding:
      24px
      var(--page-padding)
      0;

    gap: 16px;
  }


  .slider-progress {
    gap: 6px;
  }


  .progress-item {
    width: 31px;
  }


  .progress-item.active {
    width: 47px;
  }


  .slider-next {

    gap: 10px;

    font-size: 8px;
  }


  .slider-next span {
    font-size: 19px;
  }


  /* =======================================================
     MANIFESTO MOBILE
     ======================================================= */

  .manifesto {

    padding:
      78px
      var(--page-padding)
      82px;
  }


  .manifesto h2 {

    margin:
      20px
      0
      23px;

    font-size:
      clamp(
        42px,
        11vw,
        52px
      );

    line-height: .98;
  }


  .manifesto > p:last-child {

    max-width: 440px;

    font-size: 14px;
  }


  /* =======================================================
     CONTACT MOBILE
     ======================================================= */

  .contact {

    padding:
      78px
      var(--page-padding)
      82px;
  }


  .contact h2 {

    margin:
      20px
      0
      22px;

    font-size:
      clamp(
        48px,
        13vw,
        60px
      );

    line-height: .95;
  }


  .contact > p:not(.eyebrow) {
    max-width: 410px;

    font-size: 13px;
  }


  /* =======================================================
     FOOTER MOBILE
     ======================================================= */

  .footer {

    padding:
      23px
      var(--page-padding);

    font-size: 9px;
  }

}


/* =========================================================
   VERY SMALL PHONES
   <= 390
   ========================================================= */

@media (
  max-width: 390px
) {

  :root {
    --page-padding: 20px;
  }


  .hero {
    min-height: 710px;
  }


  .hero h1 {
    font-size: 47px;
  }


  .hero-photo {
    height: 345px;
  }


  .capabilities-header h2 {
    font-size: 41px;
  }


  .capability-card {
    flex-basis: 88%;

    min-height: 455px;
  }


  .progress-item {
    width: 25px;
  }


  .progress-item.active {
    width: 39px;
  }


  .slider-next {
    font-size: 7px;
  }

}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (
  min-width: 1600px
) {

  :root {
    --content-width: 1500px;
  }


  .hero {
    min-height:
      calc(
        100svh - 100px
      );
  }


  .hero-photo {
    height: 54%;
  }


  .capability-card {
    flex-basis: 650px;

    height: 760px;
  }

}


/* =========================================================
   ACCESSIBILITY
   REDUCED MOTION
   ========================================================= */

@media (
  prefers-reduced-motion: reduce
) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {

    animation-duration:
      .01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      .01ms !important;

    scroll-behavior:
      auto !important;
  }

}

/* =========================================================
   NATIVE AI — THEME AWARE
   ========================================================= */

.ai-backdrop {
  position: fixed;
  inset: 0;

  z-index: 900;

  background: rgba(10, 11, 12, .28);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity .45s ease,
    visibility .45s ease;
}


/* =========================================================
   PANEL
   ========================================================= */

.ai-panel {
  position: fixed;

  top: 0;
  right: 0;
  bottom: 0;

  z-index: 1000;

  width: min(500px, 100%);

  display: flex;
  flex-direction: column;

  /*
    ВАЖНО:
    теперь AI использует переменные темы сайта
  */

  background: var(--paper);
  color: var(--ink);

  transform: translateX(100%);
  visibility: hidden;

  box-shadow:
    -30px 0 80px rgba(0, 0, 0, .12);

  transition:
    transform .55s cubic-bezier(.22, .8, .22, 1),
    visibility .55s ease,
    background-color .45s ease,
    color .45s ease;
}


/* =========================================================
   OPEN STATE
   ========================================================= */

body.ai-is-open {
  overflow: hidden;
}


body.ai-is-open .ai-backdrop {
  opacity: 1;
  visibility: visible;
}


body.ai-is-open .ai-panel {
  transform: translateX(0);
  visibility: visible;
}


/* =========================================================
   HEADER
   ========================================================= */

.ai-header {
  min-height: 92px;

  padding: 24px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);

  transition:
    border-color .45s ease;
}


.ai-brand {
  display: flex;
  align-items: center;

  gap: 14px;
}


.ai-brand-mark {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border: 1px solid var(--ink);

  color: var(--ink);

  font-size: 15px;

  transition:
    border-color .45s ease,
    color .45s ease;
}


.ai-brand > div {
  display: flex;
  flex-direction: column;

  gap: 4px;
}


.ai-brand-name {
  color: var(--ink);

  font-size: 11px;
  font-weight: 500;

  letter-spacing: .3em;
}


.ai-status {
  color: var(--muted);

  font-size: 7px;

  letter-spacing: .2em;
}


.ai-close {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: 30px;
  font-weight: 200;

  line-height: 1;

  transition:
    transform .25s ease,
    color .45s ease;
}


.ai-close:hover {
  transform: rotate(90deg);
}


/* =========================================================
   CONVERSATION
   ========================================================= */

.ai-conversation {
  flex: 1;

  padding: 46px 30px 30px;

  overflow-y: auto;

  scrollbar-width: none;
}


.ai-conversation::-webkit-scrollbar {
  display: none;
}


/* =========================================================
   INTRO
   ========================================================= */

.ai-intro {
  margin-bottom: 40px;
}


.ai-intro .eyebrow {
  margin-bottom: 16px;
}


.ai-intro h2 {
  margin: 0 0 22px;

  color: var(--ink);

  font-size: 44px;
  line-height: .98;

  letter-spacing: -.055em;
}


.ai-intro h2 span {
  color: var(--muted);
}


.ai-intro > p:last-child {
  max-width: 370px;

  margin: 0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.55;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.ai-messages {
  display: flex;
  flex-direction: column;

  gap: 12px;

  margin-bottom: 24px;
}


.ai-message {
  max-width: 86%;

  padding: 14px 16px;

  font-size: 13px;
  line-height: 1.5;

  animation:
    aiMessageIn
    .35s
    ease;
}


/* ---------- USER ---------- */

.ai-message-user {
  align-self: flex-end;

  background: var(--ink);
  color: var(--paper);

  border-radius:
    16px
    16px
    3px
    16px;
}


/* ---------- AI ---------- */

.ai-message-assistant {
  align-self: flex-start;

  /*
    Вместо фиксированного серого
  */

  background: var(--paper-2);
  color: var(--ink);

  border-radius:
    16px
    16px
    16px
    3px;
}


@keyframes aiMessageIn {

  from {
    opacity: 0;

    transform:
      translateY(7px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 22px;
}


.ai-quick-actions button {
  min-height: 38px;

  padding:
    0
    15px;

  border:
    1px
    solid
    var(--line);

  border-radius: 100px;

  color: var(--ink);

  background: transparent;

  font-size: 10px;

  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease;
}


.ai-quick-actions button:hover {
  background: var(--ink);
  color: var(--paper);

  border-color: var(--ink);
}


/* =========================================================
   INPUT AREA
   ========================================================= */

.ai-input-area {
  padding:
    18px
    30px
    25px;

  border-top:
    1px
    solid
    var(--line);

  background: var(--paper);

  transition:
    background-color .45s ease,
    border-color .45s ease;
}


.ai-input-wrap {
  min-height: 54px;

  padding:
    7px
    7px
    7px
    18px;

  display: flex;
  align-items: flex-end;

  gap: 10px;

  border:
    1px
    solid
    var(--line);

  background:
    color-mix(
      in srgb,
      var(--paper) 92%,
      var(--ink) 8%
    );

  transition:
    background-color .45s ease,
    border-color .45s ease;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.ai-input {
  flex: 1;

  max-height: 120px;

  padding: 10px 0;

  resize: none;

  overflow-y: auto;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--ink);

  font: inherit;

  font-size: 12px;
  line-height: 1.4;
}


.ai-input::placeholder {
  color: var(--muted);
}


/* =========================================================
   SEND BUTTON
   ========================================================= */

.ai-send {
  flex: 0 0 40px;

  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  background: var(--ink);
  color: var(--paper);

  font-size: 20px;

  transition:
    transform .2s ease,
    background-color .45s ease,
    color .45s ease;
}


.ai-send:hover {
  transform:
    translateX(2px);
}


/* =========================================================
   DISCLAIMER
   ========================================================= */

.ai-disclaimer {
  display: block;

  margin-top: 10px;

  color: var(--muted);

  font-size: 8px;
  line-height: 1.4;

  letter-spacing: .02em;
}


/* =========================================================
   DARK MODE — BACKDROP
   ========================================================= */

body.dark-theme .ai-backdrop {
  background:
    rgba(
      0,
      0,
      0,
      .52
    );
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .ai-panel {
    width: 100%;
  }


  .ai-header {
    min-height: 78px;

    padding:
      max(
        18px,
        env(safe-area-inset-top)
      )
      22px
      16px;
  }


  .ai-conversation {
    padding:
      38px
      22px
      24px;
  }


  .ai-intro h2 {
    font-size:
      clamp(
        39px,
        11vw,
        48px
      );
  }


  .ai-input-area {
    padding:
      14px
      22px
      max(
        18px,
        env(safe-area-inset-bottom)
      );
  }

}

/* =========================================================
   NATIVE CAPABILITIES
   MOBILE — ROUNDED SQUARE CARDS
   ========================================================= */

/* =========================================================
   MOBILE CAPABILITY CARDS
   Фиксированная пропорция на любых телефонах
   ========================================================= */

/* =========================================================
   MOBILE CAPABILITY CARDS
   Фиксированная пропорция на любых телефонах
   ========================================================= */

@media (max-width: 767px) {

  .capabilities-slider {
    --slide-width: 88vw;
    --slide-gap: 14px;

    display: flex;
    gap: var(--slide-gap);

    /*
      Одинаковое свободное пространство слева и справа.
      Благодаря этому первый и последний слайд
      тоже могут встать строго по центру.
    */
    padding-left: calc((100vw - var(--slide-width)) / 2);
    padding-right: calc((100vw - var(--slide-width)) / 2);

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .capabilities-slider::-webkit-scrollbar {
    display: none;
  }


  .capability-card {
    position: relative;

    /*
      У всех карточек одна и та же ширина.
    */
    flex: 0 0 var(--slide-width);
    width: var(--slide-width);

    /*
      Сохраняем твою текущую геометрию.
    */
    aspect-ratio: 3 / 4;

    height: auto !important;
    min-height: 500px !important;
    max-height: none !important;

    /*
      ВАЖНО:
      старый min-width: 100% обязательно убрать.
    */
    min-width: 0;

    overflow: hidden;

    border-radius: clamp(24px, 7vw, 32px);

    /*
      Теперь браузер центрирует карточку,
      а не её левый край.
    */
    scroll-snap-align: center;
    scroll-snap-stop: always;

    background: #111;
    isolation: isolate;
  }



  /* ФОТО ВСЕГДА ЗАПОЛНЯЕТ КАРТОЧКУ */

  .capability-card > img {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    display: block;

    object-fit: cover;
    object-position: center;

    z-index: 0;
  }


  /* ЗАТЕМНЕНИЕ */

  .capability-shade {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 36%,
        rgba(0,0,0,.08) 48%,
        rgba(0,0,0,.28) 60%,
        rgba(0,0,0,.58) 72%,
        rgba(0,0,0,.84) 84%,
        rgba(0,0,0,.97) 96%,
        #000 100%
      );

    pointer-events: none;
  }


  /* НОМЕР */

  .capability-number {
    position: absolute;

    top: clamp(22px, 6vw, 28px);
    left: clamp(22px, 6vw, 28px);

    z-index: 3;
  }


  /* ТЕКСТ */

  .capability-text {
    position: absolute;

    left: clamp(24px, 7vw, 30px);
    right: clamp(24px, 7vw, 30px);
    bottom: clamp(26px, 7vw, 32px);

    z-index: 3;
  }


  .capability-text h3 {
    margin: 0 0 14px;

    font-size: clamp(37px, 10.5vw, 48px);
    line-height: .96;

    letter-spacing: -.05em;
  }


  .capability-text p {
    max-width: 300px;

    margin: 0 0 26px;

    font-size: clamp(12px, 3.4vw, 14px);
    line-height: 1.45;

    color: rgba(255,255,255,.78);
  }


  .capability-link {
    gap: 24px;

    font-size: clamp(8px, 2.3vw, 10px);
  }


  /* Старое управление не показываем */

  .capabilities-footer,
  .slider-progress,
  .slider-next {
    display: none !important;
  }
}
/* =========================================================
   NATIVE — CARS INDEX / HOME
   ========================================================= */
.cars-index {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  min-height: 860px;
  background: #0d0f10;
  color: #f2efe8;
  overflow: hidden;
}

.cars-index__copy {
  position: relative;
  z-index: 3;
  padding: clamp(80px, 8vw, 128px) clamp(28px, 5vw, 80px);
  background: linear-gradient(90deg, #0d0f10 0%, rgba(13,15,16,.98) 76%, rgba(13,15,16,.72) 100%);
}

.cars-index__eyebrow { color: rgba(242,239,232,.62); }

.cars-index h2 {
  max-width: 720px;
  margin: 22px 0 24px;
  font-size: clamp(52px, 5.5vw, 88px);
  line-height: .98;
  letter-spacing: -.055em;
}

.cars-index__lead {
  max-width: 470px;
  margin-bottom: clamp(56px, 6vw, 86px);
  color: rgba(242,239,232,.52);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
}

.cars-index__brands { max-width: 720px; }

.cars-brand {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(242,239,232,.16);
}

.cars-brand__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.cars-brand__head::after {
  content: '';
  height: 1px;
  background: rgba(242,239,232,.20);
  grid-column: 2;
  grid-row: 1;
}

.cars-brand__head h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 300;
  letter-spacing: .24em;
  white-space: nowrap;
}

.cars-brand__head > span { font-size: 28px; font-weight: 200; }

.cars-brand__models {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
}

.car-model {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  min-width: 72px;
  padding: 7px 0;
  color: rgba(242,239,232,.88);
  font-size: 18px;
  transition: opacity .25s ease, transform .25s ease;
}

.car-model small {
  margin-top: 1px;
  color: rgba(242,239,232,.38);
  font-size: 11px;
  letter-spacing: .06em;
}

.car-model::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .3s ease;
}

.car-model:hover,
.car-model:focus-visible,
.car-model.is-active { color: #fff; transform: translateY(-1px); }
.car-model:hover::after,
.car-model:focus-visible::after,
.car-model.is-active::after { right: 20%; }

.cars-index__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  min-height: 76px;
  margin-top: 42px;
  padding: 0 28px;
  border: 1px solid rgba(242,239,232,.30);
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: .24em;
  transition: background .25s ease, color .25s ease;
}
.cars-index__all:hover { background: #f2efe8; color: #0d0f10; }
.cars-index__all span:last-child { font-size: 26px; letter-spacing: 0; }

.cars-index__visual {
  position: relative;
  min-width: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 68% 40%, rgba(255,255,255,.08), transparent 32%),
    linear-gradient(145deg, #242729 0%, #111314 55%, #080909 100%);
  overflow: hidden;
}

.cars-index__car {
  position: absolute;
  z-index: 1;
  width: 118%;
  max-width: none;
  right: -19%;
  top: 22%;
  filter: saturate(.65) brightness(.66) contrast(1.12);
  transform: scale(1.03);
}

.cars-index__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(13,15,16,.8), transparent 28%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,.82));
}

.cars-index__visual-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 44%, rgba(7,8,8,.12) 58%, rgba(7,8,8,.92) 100%);
  pointer-events: none;
}

.cars-index__visual-copy {
  position: absolute;
  z-index: 3;
  left: clamp(36px, 5vw, 80px);
  bottom: 78px;
  max-width: 330px;
}
.cars-index__active-brand {
  display: block;
  margin-bottom: 10px;
  color: rgba(242,239,232,.56);
  font-size: 11px;
  letter-spacing: .26em;
}
.cars-index__active-model {
  display: block;
  margin-bottom: 14px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(44px, 4.4vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.04em;
}
.cars-index__visual-copy p { margin: 0; color: rgba(242,239,232,.50); line-height: 1.45; }
.cars-index__counter {
  position: absolute;
  z-index: 3;
  right: clamp(28px, 4vw, 64px);
  bottom: 86px;
  color: rgba(242,239,232,.38);
  font-size: 11px;
  letter-spacing: .12em;
}

@media (max-width: 900px) {
  .cars-index { display: block; min-height: 0; }
  .cars-index__copy { padding: 72px var(--page-padding) 78px; background: #0d0f10; }
  .cars-index h2 { font-size: clamp(46px, 12vw, 68px); }
  .cars-index__lead { margin-bottom: 52px; font-size: 15px; }
  .cars-brand { margin-bottom: 26px; padding-bottom: 25px; }
  .cars-brand__head { gap: 16px; margin-bottom: 18px; }
  .cars-brand__head h3 { font-size: 20px; letter-spacing: .19em; }
  .cars-brand__models { gap: 9px 22px; }
  .car-model { min-width: 54px; font-size: 16px; }
  .cars-index__all { min-height: 68px; margin-top: 36px; padding: 0 20px; font-size: 11px; }
  .cars-index__visual { display: none; }
}

/* =========================================================
   NATIVE — TYPOGRAPHY + SERVICES GRID / 2026-09
   Final override for approved capabilities concept
   ========================================================= */

:root {
  --font-main: "Manrope", sans-serif;
}

html,
body,
button,
input,
textarea,
select {
  font-family: var(--font-main);
}

.capabilities {
  background: var(--paper);
}

.capabilities-header .eyebrow {
  font-family: var(--font-main);
  font-weight: 500;
  letter-spacing: .22em;
}

.capabilities-header h2 {
  max-width: 1050px;
  font-family: var(--font-main);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .96;
}

.capability-card {
  border: 1px solid rgba(127,127,127,.18);
}

.capability-card > img {
  filter: saturate(.72) contrast(1.03);
}

.capability-shade {
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.02) 0%,
      rgba(0,0,0,.02) 35%,
      rgba(0,0,0,.12) 50%,
      rgba(0,0,0,.48) 70%,
      rgba(0,0,0,.88) 90%,
      rgba(0,0,0,.97) 100%
    );
}

.capability-number,
.capability-text,
.capability-link {
  font-family: var(--font-main);
}

.capability-number {
  font-weight: 400;
  letter-spacing: -.02em;
}

.capability-text h3 {
  font-weight: 300;
  letter-spacing: -.045em;
}

.capability-text p {
  font-weight: 400;
  letter-spacing: -.015em;
}

.capability-link {
  font-weight: 500;
  letter-spacing: .20em;
}

@media (min-width: 768px) {
  .capabilities-slider {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .52fr) minmax(0, .52fr);
    grid-template-rows: minmax(285px, 1fr) minmax(285px, 1fr);
    gap: clamp(12px, 1vw, 18px);
  }

  .capability-card:nth-child(1) {
    min-height: 650px;
  }

  .capability-card:nth-child(1) .capability-text {
    left: clamp(28px, 2.4vw, 42px);
    right: clamp(28px, 2.4vw, 42px);
    bottom: clamp(30px, 2.6vw, 44px);
  }

  .capability-card:nth-child(1) .capability-text h3 {
    font-size: clamp(40px, 3.2vw, 56px);
  }

  .capability-card:nth-child(2) .capability-text {
    left: clamp(26px, 2vw, 36px);
    right: clamp(26px, 2vw, 36px);
    bottom: clamp(24px, 2vw, 34px);
  }

  .capability-card:nth-child(2) .capability-text h3 {
    font-size: clamp(32px, 2.6vw, 46px);
  }

  .capability-card:nth-child(2) .capability-text p {
    max-width: 500px;
  }

  .capability-card:nth-child(3) .capability-text h3,
  .capability-card:nth-child(4) .capability-text h3 {
    margin-bottom: 10px;
    font-size: clamp(23px, 1.65vw, 31px);
    line-height: 1.02;
  }

  .capability-card:nth-child(3) .capability-text p,
  .capability-card:nth-child(4) .capability-text p {
    margin-bottom: 18px;
    font-size: clamp(10px, .72vw, 13px);
    line-height: 1.42;
  }

  .capability-card:nth-child(3) .capability-link,
  .capability-card:nth-child(4) .capability-link {
    font-size: 8px;
  }
}

@media (max-width: 767px) {
  .capabilities-header h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .capability-text h3 {
    font-size: clamp(34px, 9.5vw, 46px);
  }

  .capability-card:nth-child(3) .capability-text h3,
  .capability-card:nth-child(4) .capability-text h3 {
    font-size: clamp(31px, 8.8vw, 42px);
  }
}

/* =========================================================
   NATIVE — CARS INDEX / approved full-scene treatment
   Keeps the catalogue image as one continuous cinematic scene.
   ========================================================= */
.cars-index {
  position: relative;
  display: block;
  min-height: 860px;
  overflow: hidden;
  background: #0b0d0e;
  color: #f2efe8;
  isolation: isolate;
}

.cars-index__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cars-index__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(.72) brightness(.72) contrast(1.08);
  transform: scale(1.015);
}

.cars-index::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(7,9,10,.995) 0%,
      rgba(7,9,10,.985) 22%,
      rgba(7,9,10,.92) 34%,
      rgba(7,9,10,.68) 46%,
      rgba(7,9,10,.26) 60%,
      rgba(7,9,10,.05) 74%),
    linear-gradient(0deg,
      rgba(7,9,10,.82) 0%,
      rgba(7,9,10,.20) 34%,
      rgba(7,9,10,.08) 100%);
}

.cars-index__copy {
  position: relative;
  z-index: 2;
  width: min(94%, 1500px);
  min-height: 860px;
  margin: 0 auto;
  padding: clamp(80px, 8vw, 128px) 0;
  background: transparent;
}

.cars-index h2 {
  max-width: 650px;
}

.cars-index__lead,
.cars-index__brands,
.cars-index__all {
  max-width: 650px;
}

.cars-index__visual { display: none !important; }

@media (max-width: 900px) {
  .cars-index { min-height: 0; }
  .cars-index__scene { display: none; }
  .cars-index::after { background: #0d0f10; }
  .cars-index__copy {
    width: auto;
    min-height: 0;
    padding: 72px var(--page-padding) 78px;
  }
}

/* =========================================================
   NATIVE — approved capability visuals / text readability
   ========================================================= */
.capability-number { display: none !important; }

/* Local dark field behind copy: preserves the photograph while keeping
   white typography readable on both bright and detailed areas. */
.capability-text {
  isolation: isolate;
}

.capability-text::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: clamp(-18px, -1.25vw, -10px);
  right: clamp(-18px, -1.25vw, -10px);
  top: clamp(-20px, -1.5vw, -12px);
  bottom: clamp(-18px, -1.25vw, -10px);
  border-radius: 18px;
  background: radial-gradient(
    ellipse at 12% 72%,
    rgba(0,0,0,.68) 0%,
    rgba(0,0,0,.52) 38%,
    rgba(0,0,0,.26) 68%,
    rgba(0,0,0,0) 100%
  );
  filter: blur(7px);
  pointer-events: none;
}

.capability-shade {
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.01) 0%,
      rgba(0,0,0,.02) 32%,
      rgba(0,0,0,.13) 48%,
      rgba(0,0,0,.48) 68%,
      rgba(0,0,0,.84) 86%,
      rgba(0,0,0,.96) 100%
    );
}

.capability-text h3,
.capability-text p,
.capability-link {
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
}

/* =========================================================
   NATIVE — 01 approved image / vertical-card crop
   Keep the original visual untouched; crop only with CSS.
   ========================================================= */
.capability-card:nth-child(1) > img {
  object-fit: cover;
  object-position: 50% 64%;
}

@media (min-width: 768px) {
  .capability-card:nth-child(1) > img {
    /* The source is 4:3 while card 01 is tall: zoom enough to remove
       the empty black band and keep the screen/car/navigation dominant. */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 66%;
    transform: scale(1.16);
  }

  .capability-card:nth-child(1):hover > img {
    transform: scale(1.185);
  }
}

@media (max-width: 767px) {
  .capability-card:nth-child(1) > img {
    object-position: 50% 64%;
  }
}

/* =========================================================
   NATIVE — MOBILE CAPABILITY ART DIRECTION
   Preserve the informational composition of approved 01–04.
   Desktop remains unchanged.
   ========================================================= */
@media (max-width: 767px) {
  .capability-card {
    background: #050607;
  }

  /* On mobile the approved wide visuals are treated as editorial artwork,
     not as cover photos. This keeps their functional content in frame. */
  .capability-card > img {
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: 67% !important;
    object-fit: contain !important;
    object-position: 50% 0 !important;
    transform: none !important;
    background: #050607;
  }

  /* 01 contains a large black band in the source itself. Pull that band
     outside the card while retaining the full dashboard composition. */
  .capability-card:nth-child(1) > img {
    top: -15% !important;
    height: 78% !important;
    object-fit: contain !important;
    object-position: 50% 0 !important;
    transform: none !important;
  }

  /* 02 is very wide: keep phone + vehicle together. */
  .capability-card:nth-child(2) > img {
    top: 4% !important;
    height: 62% !important;
  }

  /* 03: preserve soldering / vehicle / diagnostic-screen relationship. */
  .capability-card:nth-child(3) > img {
    top: 3% !important;
    height: 64% !important;
  }

  /* 04: green diagnostic topology and the vehicle display remain visible. */
  .capability-card:nth-child(4) > img {
    top: 3% !important;
    height: 64% !important;
  }

  /* Turn the lower part of every card into a deliberate typography field
     and dissolve the artwork into it instead of hard-cropping the image. */
  .capability-shade {
    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 35%,
        rgba(0,0,0,.10) 45%,
        rgba(0,0,0,.48) 58%,
        rgba(0,0,0,.88) 70%,
        rgba(0,0,0,.98) 82%,
        #000 100%
      ) !important;
  }

  .capability-text {
    bottom: clamp(25px, 6.5vw, 31px);
  }

  .capability-text::before {
    background: radial-gradient(
      ellipse at 15% 68%,
      rgba(0,0,0,.82) 0%,
      rgba(0,0,0,.62) 42%,
      rgba(0,0,0,.28) 72%,
      rgba(0,0,0,0) 100%
    );
  }
}

/* =========================================================
   NATIVE — SYSTEM UX
   Theme-aware capabilities / smooth lazy images / floating header
   ========================================================= */

:root {
  --header-glass: rgba(233, 229, 220, .78);
  --header-glass-line: rgba(26, 28, 29, .10);
  --capability-stage: #e9e5dc;
}

body.dark-theme {
  --header-glass: rgba(25, 27, 28, .78);
  --header-glass-line: rgba(238, 234, 226, .10);
  --capability-stage: #191b1c;
}

/* Slider surroundings now follow the active site theme. The approved
   01–04 artwork itself stays untouched and cinematic. */
.capabilities,
.capabilities-slider {
  background-color: var(--capability-stage);
  transition: background-color .45s ease, color .45s ease;
}

/* Native lazy loading + soft reveal. Hero is intentionally excluded. */
img.lazy-image {
  opacity: 0;
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1);
}

img.lazy-image.is-loaded {
  opacity: 1;
}

.capability-card,
.cars-index__scene {
  background-color: #0b0d0e;
}

/* Marker immediately after Hero. It has no visual height. */
.hero-sentinel {
  width: 100%;
  height: 1px;
  margin-top: -1px;
  pointer-events: none;
}

/* Header keeps its original composition while Hero is visible. */
.header--floating {
  position: fixed;
  top: 0;
  left: 50%;
  width: min(100%, var(--content-width));
  min-height: 72px;
  padding-top: 14px;
  padding-bottom: 14px;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--header-glass);
  border-bottom: 1px solid var(--header-glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .035);
  animation: nativeHeaderIn .32s cubic-bezier(.22, 1, .36, 1) both;
}

.header--floating .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 17px;
}

.header--floating .brand-name {
  font-size: 14px;
}

@keyframes nativeHeaderIn {
  from { transform: translate(-50%, -110%); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

@media (max-width: 767px) {
  .header--floating {
    width: 100%;
    min-height: 64px;
    padding: 10px var(--page-padding);
  }

  .header--floating .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header--floating .brand-name {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  img.lazy-image,
  .header--floating {
    transition: none !important;
    animation: none !important;
  }
}


/* =========================================================
   NATIVE — VERIFIED UX PATCH v2
   ========================================================= */
.header-ai {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.header--floating .header-ai { display: inline-flex; }
.header--floating .header-ai:hover { background: var(--ink); color: var(--paper); }

/* Explicit theme support for the entire slider stage. */
body:not(.dark-theme) .capabilities {
  background: #e9e5dc !important;
  color: #1a1c1d;
}
body.dark-theme .capabilities {
  background: #191b1c !important;
  color: #eeeae2;
}
body:not(.dark-theme) .capabilities-header .eyebrow { color: rgba(26,28,29,.52); }
body.dark-theme .capabilities-header .eyebrow { color: rgba(238,234,226,.52); }
body:not(.dark-theme) .capabilities-header h2 { color: #1a1c1d; }
body.dark-theme .capabilities-header h2 { color: #eeeae2; }

/* Browser-native lazy loading remains enabled; this adds the premium reveal. */
img[loading="lazy"].lazy-image { opacity: 0; filter: blur(5px); transform: scale(1.008); }
img[loading="lazy"].lazy-image.is-loaded { opacity: 1; filter: blur(0); transform: scale(1); }
.capability-card > img.lazy-image { transition: opacity .65s cubic-bezier(.22,1,.36,1), filter .65s ease, transform .9s cubic-bezier(.22,1,.36,1) !important; }

@media (max-width: 767px) {
  .header--floating .header-right { gap: 10px; }
  .header--floating .header-ai {
    min-height: 34px;
    padding: 0 11px;
    gap: 7px;
    font-size: 9px;
    letter-spacing: .11em;
  }
  .header--floating .theme-toggle { width: 28px; height: 28px; }
  .header--floating .menu { width: 26px; }
}

@media (max-width: 390px) {
  .header--floating .brand-name { display: none; }
}

/* =========================================================
   NATIVE CAPABILITIES — EDITORIAL GRID V2
   5 cards / Mercedes-like rhythm / deeper lower shade
   ========================================================= */

.capabilities-lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  letter-spacing: -.015em;
}

/* More uniform, deeper lower fade: the text sits on a calm surface,
   not directly on a busy photo. */
.capability-shade {
  background: linear-gradient(
    180deg,
    rgba(8,10,11,.00) 0%,
    rgba(8,10,11,.00) 31%,
    rgba(8,10,11,.08) 42%,
    rgba(8,10,11,.32) 57%,
    rgba(8,10,11,.68) 73%,
    rgba(8,10,11,.91) 90%,
    rgba(8,10,11,.98) 100%
  );
}

.capability-card--assistant {
  background:
    radial-gradient(circle at 76% 20%, rgba(230,223,211,.13), transparent 32%),
    linear-gradient(145deg, #34322f 0%, #17191a 48%, #0b0d0e 100%);
}

.assistant-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 25px;
  color: rgba(244,241,234,.92);
}

.assistant-visual__label,
.assistant-visual__status,
.assistant-visual__message,
.assistant-visual__line { position: absolute; }
.assistant-visual__label { top: 25px; left: 25px; font-size: 10px; letter-spacing: .24em; }
.assistant-visual__status { top: 25px; right: 25px; font-size: 8px; letter-spacing: .18em; color: rgba(244,241,234,.55); }
.assistant-visual__line { top: 57px; left: 25px; right: 25px; height: 1px; background: rgba(244,241,234,.18); }
.assistant-visual__message { top: 88px; left: 25px; right: 25px; font-size: clamp(17px,1.45vw,24px); line-height: 1.15; font-weight: 300; letter-spacing: -.035em; color: rgba(244,241,234,.72); }

@media (min-width: 768px) {
  .capabilities-header {
    margin-bottom: clamp(48px, 5vw, 76px);
  }

  .capabilities-slider {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(360px, 1.2fr) minmax(285px, .95fr);
    gap: clamp(14px, 1.35vw, 22px);
  }

  /* Mercedes-like first row: dominant story + secondary story */
  .capability-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
    min-height: 0;
  }
  .capability-card:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
  }

  /* Second row: three equal editorial tiles */
  .capability-card:nth-child(3) { grid-column: 1; grid-row: 2; }
  .capability-card:nth-child(4) { grid-column: 2; grid-row: 2; }
  .capability-card:nth-child(5) { grid-column: 3; grid-row: 2; }

  .capability-card:nth-child(1) .capability-text h3 {
    font-size: clamp(42px, 4vw, 64px);
  }

  .capability-card:nth-child(n+2) .capability-text {
    left: clamp(20px, 1.7vw, 28px);
    right: clamp(20px, 1.7vw, 28px);
    bottom: clamp(20px, 1.7vw, 28px);
  }

  .capability-card:nth-child(n+2) .capability-text h3 {
    font-size: clamp(25px, 2vw, 36px);
    line-height: 1;
    margin-bottom: 10px;
  }

  .capability-card:nth-child(n+2) .capability-text p {
    max-width: 310px;
    margin-bottom: 20px;
    font-size: clamp(10.5px, .78vw, 13px);
    line-height: 1.42;
  }

  .capability-card:nth-child(n+3) .capability-text p {
    max-width: 285px;
  }
}

@media (max-width: 767px) {
  .capabilities-lead {
    max-width: 90%;
    margin-top: 20px;
    font-size: 14px;
  }

  /* Keep existing mobile carousel behavior. Fifth card simply becomes
     another swipe item; no desktop grid rules leak into mobile. */
  .assistant-visual__message { font-size: 20px; }
}

/* =========================================================
   NATIVE CAPABILITIES — CARD FINISH V3
   Taller editorial cards / clean image top / dense lower fade
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider {
    grid-template-rows: 450px 305px;
    gap: clamp(16px, 1.45vw, 24px);
  }

  .capability-card {
    min-height: 0 !important;
    border-radius: clamp(18px, 1.7vw, 28px);
  }

  .capability-shade {
    background: linear-gradient(
      to bottom,
      rgba(8,10,11,0) 0%,
      rgba(8,10,11,0) 42%,
      rgba(8,10,11,.12) 50%,
      rgba(8,10,11,.48) 61%,
      rgba(8,10,11,.82) 72%,
      rgba(8,10,11,.96) 84%,
      #0b0d0e 100%
    ) !important;
  }

  .capability-text {
    left: clamp(28px, 2.25vw, 38px) !important;
    right: clamp(28px, 2.25vw, 38px) !important;
    bottom: clamp(28px, 2.2vw, 38px) !important;
  }

  .capability-card:nth-child(1) .capability-text h3 {
    font-size: clamp(36px, 3.25vw, 54px) !important;
    line-height: .96;
    letter-spacing: -.045em;
    margin-bottom: 14px;
  }

  .capability-card:nth-child(n+2) .capability-text h3 {
    font-size: clamp(22px, 1.7vw, 31px) !important;
    line-height: 1.02;
    letter-spacing: -.035em;
    margin-bottom: 11px;
  }

  .capability-text p,
  .capability-card:nth-child(n+2) .capability-text p {
    max-width: 390px;
    margin-bottom: 20px;
    color: rgba(247,244,237,.84) !important;
    font-size: clamp(11px, .78vw, 13px) !important;
    line-height: 1.46 !important;
    font-weight: 500;
  }

  .capability-card:nth-child(n+3) .capability-text p {
    max-width: 300px;
  }

  .capability-link {
    color: rgba(247,244,237,.94) !important;
    font-weight: 600;
    letter-spacing: .12em;
  }

  /* Assistant is intentionally quieter than the four photo cards. */
  .capability-card--assistant .assistant-visual__message {
    display: none;
  }
  .capability-card--assistant .assistant-visual__line {
    top: 58px;
  }
}

/* =========================================================
   NATIVE CAPABILITIES — MODULAR GRID V4
   Desktop geometry: 01 = 2x2 modules, 02 = 1x2, 03–05 = 1x1.
   Keeps V3 card finish/gradients/typography intact.
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    height: clamp(720px, 69vw, 980px);
    gap: clamp(16px, 1.45vw, 24px);
  }

  .capability-card:nth-child(1) {
    grid-column: 1 / 3 !important;
    grid-row: 1 / 3 !important;
  }

  .capability-card:nth-child(2) {
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
  }

  .capability-card:nth-child(3) {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  .capability-card:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  .capability-card:nth-child(5) {
    grid-column: 3 !important;
    grid-row: 3 !important;
  }
}

/* =========================================================
   NATIVE CAPABILITIES — EQUAL MODULES V5
   02 is the reference card. 03–05 use exactly the same
   width and height as 02. 01 is the hero: 2x module width.
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
    height: clamp(900px, 82vw, 1180px) !important;
    gap: clamp(16px, 1.45vw, 24px) !important;
  }

  /* Hero = two reference modules side-by-side */
  .capability-card:nth-child(1) {
    grid-column: 1 / 3 !important;
    grid-row: 1 / 3 !important;
  }

  /* 02 is the reference module */
  .capability-card:nth-child(2) {
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
  }

  /* 03–05 are geometrically identical to 02 */
  .capability-card:nth-child(3) {
    grid-column: 1 !important;
    grid-row: 3 / 5 !important;
  }

  .capability-card:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 3 / 5 !important;
  }

  .capability-card:nth-child(5) {
    grid-column: 3 !important;
    grid-row: 3 / 5 !important;
  }
}

/* =========================================================
   NATIVE CAPABILITIES — SPLIT CARD SYSTEM V6
   One internal layout for every card:
   50% media + 50% information surface.
   Information surface = title / description / CTA.
   V5 outer grid geometry stays untouched.
   ========================================================= */

:root {
  --cap-surface-light: #302e2a;
  --cap-surface-light-end: #272622;
  --cap-surface-dark: #151718;
  --cap-surface-dark-end: #0c0e0f;
}

/* Desktop: strict common internal architecture */
@media (min-width: 768px) {
  .capability-card {
    background: var(--cap-surface-light-end) !important;
    isolation: isolate;
  }

  /* Media occupies exactly the upper half. */
  .capability-card > img,
  .capability-card > .assistant-visual {
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: 50% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    z-index: 0 !important;
  }

  /* A short blend only at the seam — not a full-card black overlay. */
  .capability-shade {
    position: absolute !important;
    z-index: 1 !important;
    inset: calc(50% - 11%) 0 auto 0 !important;
    height: 12% !important;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(48,46,42,0) 0%,
      rgba(48,46,42,.18) 34%,
      rgba(48,46,42,.72) 76%,
      var(--cap-surface-light) 100%
    ) !important;
  }

  /* Bottom half is a real information surface. */
  .capability-text,
  .capability-card:nth-child(n+2) .capability-text {
    position: absolute !important;
    z-index: 2 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: 50% !important;
    box-sizing: border-box;
    padding: clamp(22px, 1.8vw, 32px) !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
    align-items: start !important;
    background: linear-gradient(
      180deg,
      var(--cap-surface-light) 0%,
      var(--cap-surface-light-end) 100%
    ) !important;
  }

  /* Remove older pseudo-gradients from previous iterations. */
  .capability-text::before,
  .capability-text::after {
    content: none !important;
    display: none !important;
  }

  /* 1 — title */
  .capability-text h3,
  .capability-card:nth-child(1) .capability-text h3,
  .capability-card:nth-child(n+2) .capability-text h3 {
    margin: 0 0 clamp(10px, .9vw, 16px) !important;
    max-width: 100% !important;
    color: #f4f0e8 !important;
    font-size: clamp(24px, 1.9vw, 34px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.04em !important;
    font-weight: 300 !important;
    align-self: start;
  }

  /* Hero uses the same structure, only a slightly larger title. */
  .capability-card:nth-child(1) .capability-text h3 {
    font-size: clamp(34px, 3vw, 52px) !important;
  }

  /* 2 — description */
  .capability-text p,
  .capability-card:nth-child(n+2) .capability-text p,
  .capability-card:nth-child(n+3) .capability-text p {
    margin: 0 !important;
    max-width: 42ch !important;
    color: rgba(244,240,232,.74) !important;
    font-size: clamp(11px, .78vw, 13px) !important;
    line-height: 1.48 !important;
    font-weight: 400 !important;
    align-self: start;
  }

  /* 3 — CTA is pinned to the lower-left corner of the text half. */
  .capability-link,
  .capability-card:nth-child(n+3) .capability-link {
    justify-self: start !important;
    align-self: end !important;
    margin: 0 !important;
    color: rgba(244,240,232,.94) !important;
  }

  /* Assistant follows the same 50/50 system. */
  .capability-card--assistant .assistant-visual {
    background:
      radial-gradient(circle at 74% 30%, rgba(255,255,255,.08), transparent 30%),
      linear-gradient(135deg, #3a3936 0%, #202223 100%) !important;
  }
  .capability-card--assistant .assistant-visual__message {
    display: block !important;
    top: auto !important;
    bottom: 24px !important;
    font-size: clamp(14px, 1.05vw, 18px) !important;
  }
}

/* Dark theme: same geometry, deeper information surface. */
@media (min-width: 768px) {
  body.dark-theme .capability-card {
    background: var(--cap-surface-dark-end) !important;
  }

  body.dark-theme .capability-text,
  body.dark-theme .capability-card:nth-child(n+2) .capability-text {
    background: linear-gradient(
      180deg,
      var(--cap-surface-dark) 0%,
      var(--cap-surface-dark-end) 100%
    ) !important;
  }

  body.dark-theme .capability-shade {
    background: linear-gradient(
      to bottom,
      rgba(21,23,24,0) 0%,
      rgba(21,23,24,.18) 34%,
      rgba(21,23,24,.72) 76%,
      var(--cap-surface-dark) 100%
    ) !important;
  }
}

/* Mobile keeps the carousel, but uses the same internal hierarchy. */
@media (max-width: 767px) {
  .capability-card > img,
  .capability-card > .assistant-visual {
    height: 48% !important;
    object-fit: cover !important;
  }

  .capability-text {
    height: 54% !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
  }

  .capability-link {
    justify-self: start !important;
    align-self: end !important;
  }
}

/* =========================================================
   NATIVE CAPABILITIES — MATERIAL & MOTION POLISH V7
   - longer, softer media -> copy fade
   - hover belongs to the whole card, never the image
   - light theme uses a warm liquid-glass information surface
   V5/V6 geometry and internal grid remain unchanged.
   ========================================================= */

/* Image stays optically stable on hover. */
.capability-card > img {
  transform: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .capability-card {
    transition:
      transform .55s cubic-bezier(.22,1,.36,1),
      box-shadow .55s cubic-bezier(.22,1,.36,1),
      filter .55s ease !important;
    will-change: transform;
  }

  .capability-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 24px 58px rgba(17,18,18,.14) !important;
  }

  body.dark-theme .capability-card:hover {
    box-shadow: 0 28px 64px rgba(0,0,0,.30) !important;
  }

  .capability-card:hover > img {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .capability-card,
  .capability-card > img {
    transition: none !important;
  }
  .capability-card:hover {
    transform: none !important;
  }
}

@media (min-width: 768px) {
  /* The blend starts well inside the image and continues under the glass.
     This removes the visible 50/50 seam without changing the actual layout. */
  .capability-shade {
    inset: 34% 0 auto 0 !important;
    height: 27% !important;
    background: linear-gradient(
      to bottom,
      rgba(43,41,37,0) 0%,
      rgba(43,41,37,.025) 18%,
      rgba(43,41,37,.08) 36%,
      rgba(43,41,37,.20) 54%,
      rgba(43,41,37,.43) 72%,
      rgba(43,41,37,.72) 88%,
      rgba(43,41,37,.92) 100%
    ) !important;
  }

  /* Warm smoked liquid glass for the light site theme. */
  body:not(.dark-theme) .capability-card {
    background: rgba(39,38,34,.90) !important;
  }

  body:not(.dark-theme) .capability-text,
  body:not(.dark-theme) .capability-card:nth-child(n+2) .capability-text {
    background:
      radial-gradient(120% 85% at 14% 0%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 48%),
      radial-gradient(90% 100% at 100% 20%, rgba(255,255,255,.055) 0%, rgba(255,255,255,0) 58%),
      linear-gradient(180deg, rgba(55,53,48,.82) 0%, rgba(39,38,34,.91) 100%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(118%) !important;
    backdrop-filter: blur(24px) saturate(118%) !important;
    border-top: 1px solid rgba(255,255,255,.055) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.045),
      inset 0 18px 34px rgba(255,255,255,.018) !important;
  }

  body:not(.dark-theme) .capability-shade {
    background: linear-gradient(
      to bottom,
      rgba(45,43,39,0) 0%,
      rgba(45,43,39,.02) 16%,
      rgba(45,43,39,.07) 34%,
      rgba(45,43,39,.18) 52%,
      rgba(45,43,39,.40) 70%,
      rgba(45,43,39,.68) 86%,
      rgba(45,43,39,.88) 100%
    ) !important;
  }

  /* Dark mode keeps the cinematic material, with the same softer fade. */
  body.dark-theme .capability-shade {
    background: linear-gradient(
      to bottom,
      rgba(12,14,15,0) 0%,
      rgba(12,14,15,.02) 18%,
      rgba(12,14,15,.08) 36%,
      rgba(12,14,15,.22) 54%,
      rgba(12,14,15,.48) 72%,
      rgba(12,14,15,.78) 88%,
      rgba(12,14,15,.96) 100%
    ) !important;
  }
}

/* Mobile receives the same material language without hover motion. */
@media (max-width: 767px) {
  .capability-card > img { transform: none !important; }

  body:not(.dark-theme) .capability-text {
    background:
      radial-gradient(120% 75% at 12% 0%, rgba(255,255,255,.11), transparent 50%),
      linear-gradient(180deg, rgba(55,53,48,.84), rgba(39,38,34,.94)) !important;
    -webkit-backdrop-filter: blur(20px) saturate(116%) !important;
    backdrop-filter: blur(20px) saturate(116%) !important;
    border-top: 1px solid rgba(255,255,255,.05) !important;
  }

  .capability-shade {
    inset: 31% 0 auto 0 !important;
    height: 27% !important;
  }
}

/* =========================================================
   NATIVE CAPABILITIES — SEAM / GLASS POLISH V8
   ========================================================= */
/* One outer radius only: media itself has no rounding. */
.capability-card > img,
.capability-card > .assistant-visual {
  border-radius: 0 !important;
}

/* Retire the old full-card capability shade. */
.capability-shade {
  display: none !important;
}

@media (min-width: 768px) {
  /* Stronger glass opacity while keeping the material translucent. */
  body:not(.dark-theme) .capability-text,
  body:not(.dark-theme) .capability-card:nth-child(n+2) .capability-text {
    position: absolute !important;
    isolation: isolate;
    background:
      radial-gradient(120% 85% at 12% 0%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 52%),
      linear-gradient(180deg, rgba(47,47,44,.88) 0%, rgba(38,38,36,.94) 100%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(112%) !important;
    backdrop-filter: blur(24px) saturate(112%) !important;
    border-top: 0 !important;
    box-shadow: none !important;
  }

  /* The transition is owned by the text surface, not by a global shade.
     It rises over the bottom of the image and fades into the glass. */
  body:not(.dark-theme) .capability-text::before,
  body:not(.dark-theme) .capability-card:nth-child(n+2) .capability-text::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: -84px;
    height: 86px;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(38,38,36,0) 0%,
      rgba(38,38,36,.05) 20%,
      rgba(38,38,36,.18) 43%,
      rgba(38,38,36,.48) 70%,
      rgba(38,38,36,.82) 91%,
      rgba(38,38,36,.88) 100%
    );
  }

  body.dark-theme .capability-text::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: -84px;
    height: 86px;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(10,12,13,0) 0%,
      rgba(10,12,13,.06) 22%,
      rgba(10,12,13,.22) 48%,
      rgba(10,12,13,.58) 74%,
      rgba(10,12,13,.94) 100%
    );
  }
}

@media (max-width: 767px) {
  .capability-shade { display:none !important; }
  .capability-card > img,
  .capability-card > .assistant-visual { border-radius:0 !important; }

  body:not(.dark-theme) .capability-text {
    position:absolute !important;
    isolation:isolate;
    background:linear-gradient(180deg,rgba(47,47,44,.88),rgba(38,38,36,.95)) !important;
    border-top:0 !important;
    box-shadow:none !important;
  }
  .capability-text::before {
    content:"";
    position:absolute;
    z-index:-1;
    left:0;right:0;top:-64px;height:66px;
    pointer-events:none;
    background:linear-gradient(to bottom,rgba(38,38,36,0),rgba(38,38,36,.16) 38%,rgba(38,38,36,.62) 78%,rgba(38,38,36,.88));
  }
  body.dark-theme .capability-text::before {
    background:linear-gradient(to bottom,rgba(10,12,13,0),rgba(10,12,13,.18) 38%,rgba(10,12,13,.68) 78%,rgba(10,12,13,.95));
  }
}

/* v70 — extended capability grid */
.capability-card--software .capability-text,.capability-card--account .capability-text{position:relative;z-index:2}
.capability-card--software::after,.capability-card--account::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 28%,rgba(10,12,12,.12) 52%,rgba(10,12,12,.86) 100%);pointer-events:none}
.capability-card--account{background:#17191a}
.capability-card--account img{filter:saturate(.72) contrast(1.03)}

/* =========================================================
   v72 — seven-card editorial capabilities grid
   01 wide + 02 narrow / 03–05 equal / 06–07 equal 50/50.
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: minmax(360px, 1.2fr) minmax(285px, .95fr) minmax(320px, 1fr);
    gap: clamp(14px, 1.35vw, 22px);
  }

  .capability-card:nth-child(1) { grid-column: 1 / 5; grid-row: 1; }
  .capability-card:nth-child(2) { grid-column: 5 / 7; grid-row: 1; }
  .capability-card:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .capability-card:nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
  .capability-card:nth-child(5) { grid-column: 5 / 7; grid-row: 2; }
  .capability-card:nth-child(6) { grid-column: 1 / 4; grid-row: 3; }
  .capability-card:nth-child(7) { grid-column: 4 / 7; grid-row: 3; }

  .capability-card:nth-child(6) .capability-text,
  .capability-card:nth-child(7) .capability-text {
    left: clamp(20px, 1.7vw, 28px);
    right: clamp(20px, 1.7vw, 28px);
    bottom: clamp(20px, 1.7vw, 28px);
  }

  .capability-card:nth-child(6) .capability-text h3,
  .capability-card:nth-child(7) .capability-text h3 {
    font-size: clamp(25px, 2vw, 36px);
    line-height: 1;
    margin-bottom: 10px;
  }
}

/* =========================================================
   v73 — FIXED 7-CARD EDITORIAL GRID
   Explicit placement wins over legacy V4/V5 !important rules.
   01 wide + 02 narrow / 03–05 equal / 06–07 equal 50/50.
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-template-rows: 450px 305px 360px !important;
    grid-auto-flow: row !important;
    grid-auto-rows: 0 !important;
    height: auto !important;
    gap: clamp(16px, 1.45vw, 24px) !important;
  }

  .capabilities-slider > .capability-card:nth-child(1) {
    grid-column: 1 / 5 !important;
    grid-row: 1 / 2 !important;
  }
  .capabilities-slider > .capability-card:nth-child(2) {
    grid-column: 5 / 7 !important;
    grid-row: 1 / 2 !important;
  }
  .capabilities-slider > .capability-card:nth-child(3) {
    grid-column: 1 / 3 !important;
    grid-row: 2 / 3 !important;
  }
  .capabilities-slider > .capability-card:nth-child(4) {
    grid-column: 3 / 5 !important;
    grid-row: 2 / 3 !important;
  }
  .capabilities-slider > .capability-card:nth-child(5) {
    grid-column: 5 / 7 !important;
    grid-row: 2 / 3 !important;
  }
  .capabilities-slider > .capability-card:nth-child(6) {
    grid-column: 1 / 4 !important;
    grid-row: 3 / 4 !important;
  }
  .capabilities-slider > .capability-card:nth-child(7) {
    grid-column: 4 / 7 !important;
    grid-row: 3 / 4 !important;
  }

  .capabilities-slider > .capability-card {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }
}

/* =========================================================
   v74 — RESTORE EDITORIAL CARD PROPORTIONS
   Keep v73 placement, restore the taller rectangular card
   silhouette used before the fixed-grid pass.
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider {
    grid-template-rows: clamp(430px, 31vw, 520px) clamp(400px, 29vw, 480px) clamp(390px, 27vw, 460px) !important;
  }

  .capabilities-slider > .capability-card {
    aspect-ratio: auto !important;
  }
}

/* =========================================================
   v75 — RESTORE ORIGINAL COMPACT CARD HEIGHTS
   Keep the fixed 7-card placement from v73. The first two
   rows return to the pre-extension proportions (450 / 305),
   while the new 06–07 row uses the same compact 305px height.
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider {
    grid-template-rows: 450px 305px 305px !important;
  }

  .capabilities-slider > .capability-card {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }
}

/* =========================================================
   v76 — LOCK ORIGINAL HERO-CARD HEIGHT
   Safari inspector reference: first capability card rendered at
   855 × 579.34px. Keep v73 placement and explicitly restore that
   desktop first-row height instead of relying on legacy computed rows.
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider {
    grid-template-rows: 579.34px 305px 305px !important;
  }

  .capabilities-slider > .capability-card {
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }
}

/* =========================================================
   v77 — RESPONSIVE EDITORIAL CARD PROPORTIONS
   No fixed desktop row heights. The first/original hero tile keeps
   the measured 855:579.34 proportion; the grid rows are then sized
   intrinsically from card width, so the composition scales with the
   capabilities container at different desktop resolutions.
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider {
    grid-template-rows: auto auto auto !important;
    align-items: stretch !important;
  }

  .capabilities-slider > .capability-card {
    height: auto !important;
    min-height: 0 !important;
  }

  /* Original large tile: inspector reference 855 × 579.34. */
  .capabilities-slider > .capability-card:nth-child(1) {
    aspect-ratio: 855 / 579.34 !important;
  }

  /* Its narrow companion stretches to the row established by 01. */
  .capabilities-slider > .capability-card:nth-child(2) {
    aspect-ratio: auto !important;
  }

  /* Three original lower tiles keep the compact editorial silhouette. */
  .capabilities-slider > .capability-card:nth-child(3),
  .capabilities-slider > .capability-card:nth-child(4),
  .capabilities-slider > .capability-card:nth-child(5) {
    aspect-ratio: 1.28 / 1 !important;
  }

  /* New services: equal 50/50 tiles, intentionally wider than tall. */
  .capabilities-slider > .capability-card:nth-child(6),
  .capabilities-slider > .capability-card:nth-child(7) {
    aspect-ratio: 1.72 / 1 !important;
  }
}

/* =========================================================
   v78 — LOCK 01/02, RESPONSIVE ROWS 03–07 + HOME MOTION
   01/02 intentionally inherit the proven v77 geometry.
   Rows 2/3 are sized from the live capabilities width so their
   height scales with viewport/container width without per-card ratios.
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider {
    --native-cap-gap: clamp(16px, 1.45vw, 24px);
    /* Row 2: 3 equal columns, approx 1.55:1 card silhouette.
       Row 3: 2 equal columns, approx 1.85:1 silhouette. */
    grid-template-rows:
      auto
      calc((100% - (2 * var(--native-cap-gap))) / 3 / 1.55)
      calc((100% - var(--native-cap-gap)) / 2 / 1.85) !important;
    gap: var(--native-cap-gap) !important;
  }

  .capabilities-slider > .capability-card:nth-child(3),
  .capabilities-slider > .capability-card:nth-child(4),
  .capabilities-slider > .capability-card:nth-child(5),
  .capabilities-slider > .capability-card:nth-child(6),
  .capabilities-slider > .capability-card:nth-child(7) {
    aspect-ratio: auto !important;
    height: 100% !important;
    min-height: 0 !important;
  }
}

/* Calm cinematic motion system. */
@media (prefers-reduced-motion: no-preference) {
  html.native-motion-ready .capabilities-slider > .capability-card,
  html.native-motion-ready .brand-statement .landing-inner,
  html.native-motion-ready .principles .landing-inner,
  html.native-motion-ready .cars-index .landing-inner,
  html.native-motion-ready .factory-experience .factory-copy,
  html.native-motion-ready .factory-experience .factory-visual,
  html.native-motion-ready .ecosystem .landing-inner,
  html.native-motion-ready .question-statement__inner,
  html.native-motion-ready .native-process .landing-inner,
  html.native-motion-ready .final-cta > * {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity .78s cubic-bezier(.22,1,.36,1), transform .88s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
  }

  html.native-motion-ready .capabilities-slider > .capability-card.native-in,
  html.native-motion-ready .brand-statement .landing-inner.native-in,
  html.native-motion-ready .principles .landing-inner.native-in,
  html.native-motion-ready .cars-index .landing-inner.native-in,
  html.native-motion-ready .factory-experience .factory-copy.native-in,
  html.native-motion-ready .factory-experience .factory-visual.native-in,
  html.native-motion-ready .ecosystem .landing-inner.native-in,
  html.native-motion-ready .question-statement__inner.native-in,
  html.native-motion-ready .native-process .landing-inner.native-in,
  html.native-motion-ready .final-cta > *.native-in {
    opacity: 1;
    transform: translate3d(0,0,0);
  }

  html.native-motion-ready .capabilities-slider > .capability-card { transition-delay: var(--native-delay, 0ms); }
  html.native-motion-ready .capabilities-slider > .capability-card:nth-child(1) { --native-delay: 0ms; }
  html.native-motion-ready .capabilities-slider > .capability-card:nth-child(2) { --native-delay: 90ms; }
  html.native-motion-ready .capabilities-slider > .capability-card:nth-child(3) { --native-delay: 0ms; }
  html.native-motion-ready .capabilities-slider > .capability-card:nth-child(4) { --native-delay: 80ms; }
  html.native-motion-ready .capabilities-slider > .capability-card:nth-child(5) { --native-delay: 160ms; }
  html.native-motion-ready .capabilities-slider > .capability-card:nth-child(6) { --native-delay: 0ms; }
  html.native-motion-ready .capabilities-slider > .capability-card:nth-child(7) { --native-delay: 90ms; }

  .capability-card > img,
  .drive-statement > img,
  .factory-slide {
    transition: transform 1.1s cubic-bezier(.22,1,.36,1), opacity .65s ease;
  }
  .capability-card:hover > img { transform: scale(1.025); }

  html.native-motion-ready .drive-statement__copy {
    opacity: 0;
    transform: translate3d(0,32px,0);
    transition: opacity .9s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
  }
  html.native-motion-ready .drive-statement__copy.native-in {
    opacity: 1;
    transform: translate3d(0,0,0);
  }
  html.native-motion-ready .drive-statement > img { transform: scale(1.035); }
  html.native-motion-ready .drive-statement.native-in > img { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .capability-card > img,
  .drive-statement > img,
  .factory-slide { transition: none !important; transform: none !important; }
}

/* =========================================================
   v79 — FIX RESPONSIVE ROW SIZING (03–07)
   v78 used percentages inside grid track calc(). In CSS Grid those
   percentages resolve against the grid block-size, creating a cyclic
   dependency and collapsing the rows in Safari. Size rows from the
   container INLINE width instead. 01/02 remain untouched.
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider {
    container-type: inline-size;
    --native-cap-gap: clamp(16px, 1.45vw, 24px);
    grid-template-rows:
      auto
      calc(((100cqw - (2 * var(--native-cap-gap))) / 3) / 1.55)
      calc(((100cqw - var(--native-cap-gap)) / 2) / 1.85) !important;
    gap: var(--native-cap-gap) !important;
  }

  .capabilities-slider > .capability-card:nth-child(3),
  .capabilities-slider > .capability-card:nth-child(4),
  .capabilities-slider > .capability-card:nth-child(5),
  .capabilities-slider > .capability-card:nth-child(6),
  .capabilities-slider > .capability-card:nth-child(7) {
    aspect-ratio: auto !important;
    height: 100% !important;
    min-height: 0 !important;
  }
}

/* =========================================================
   v80 — CAPABILITIES GEOMETRY RESET
   One authoritative desktop layout for the 7-card homepage grid.
   This intentionally neutralizes the accumulated v72–v79 sizing
   experiments. No section/card max-height is used.
   ========================================================= */
@media (min-width: 768px) {
  .capabilities-slider.capabilities-slider--seven {
    width: calc(100% - (var(--page-padding) * 2)) !important;
    max-width: calc(var(--content-width) - (var(--page-padding) * 2)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto auto !important;
    grid-auto-rows: auto !important;
    /*gap: clamp(16px, 1.45vw, 24px) !important; */
    align-items: stretch !important;
    overflow: visible !important;
    container-type: normal !important;
  }

  .capabilities-slider.capabilities-slider--seven > .capability-card {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: none !important;
  }

  /* 01/02 — proven first row. 01 establishes the responsive row height. */
  .capabilities-slider.capabilities-slider--seven > .capability-card:nth-child(1) {
    grid-column: 1 / 5 !important;
    grid-row: 1 !important;
    aspect-ratio: 4 / 3!important;
  }
  .capabilities-slider.capabilities-slider--seven > .capability-card:nth-child(2) {
    grid-column: 5 / 7 !important;
    grid-row: 1 !important;
    aspect-ratio: auto/auto !important;
  }

  /* 03/04/05 — one auto row, each card establishes the same old-style
     low horizontal silhouette. Width drives height; no px/cqw track math. */
  .capabilities-slider.capabilities-slider--seven > .capability-card:nth-child(3) {
    grid-column: 1 / 3 !important;
    grid-row: 2 !important;
    aspect-ratio: 3 / 4!important;
  }
  .capabilities-slider.capabilities-slider--seven > .capability-card:nth-child(4) {
    grid-column: 3 / 5 !important;
    grid-row: 2 !important;
        aspect-ratio: 3 / 4!important;
  }
  .capabilities-slider.capabilities-slider--seven > .capability-card:nth-child(5) {
    grid-column: 5 / 7 !important;
    grid-row: 2 !important;
        aspect-ratio: 3 / 4!important;
  }

  /* 06/07 — equal 50/50 wide cards. */
  .capabilities-slider.capabilities-slider--seven > .capability-card:nth-child(6) {
    grid-column: 1 / 4 !important;
    grid-row: 3 !important;
    aspect-ratio: 4/ 3 !important;
  }
  .capabilities-slider.capabilities-slider--seven > .capability-card:nth-child(7) {
    grid-column: 4 / 7 !important;
    grid-row: 3 !important;
    aspect-ratio: 4 / 3 !important;
  }
}



/* =========================================================
   v83 — MOBILE CAROUSEL: gesture hint + seamless loop
   Desktop grid geometry is intentionally untouched.
   ========================================================= */
@media (max-width: 767px) {
  .capabilities-slider.capabilities-slider--seven.is-mobile-loop {
    scroll-behavior: auto;
  }

  /* Quiet persistent affordance: one long active stroke + six short strokes.
     It sits outside the card, so the full-width composition stays untouched. */
  .native-swipe-pagination {
    width: min(92px, 24vw);
    height: 12px;
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
  }

  .native-swipe-segment {
    display: block;
    width: 6px;
    height: 1px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text-primary, #eeeae2) 24%, transparent);
    opacity: .62;
    transition: width 420ms cubic-bezier(.22,1,.36,1),
                opacity 320ms ease,
                background-color 320ms ease;
  }

  .native-swipe-segment.is-active {
    width: 24px;
    opacity: .92;
    background: color-mix(in srgb, var(--text-primary, #eeeae2) 78%, transparent);
  }

  /* The one-time gesture cue also gives the indicator a tiny pulse. */
  .capabilities-slider--seven.native-swipe-hint + .native-swipe-pagination {
    animation: nativeSwipePaginationCue 920ms cubic-bezier(.22,1,.36,1) both;
  }

  /* Clones shift :nth-child positions, so mobile artwork tuning follows
     the logical slide index instead of DOM position. */
  .capabilities-slider--seven .capability-card[data-native-slide="1"] > img {
    top: -15% !important;
    height: 78% !important;
    object-fit: contain !important;
    object-position: 50% 0 !important;
  }
  .capabilities-slider--seven .capability-card[data-native-slide="2"] > img {
    top: 4% !important;
    height: 62% !important;
  }
  .capabilities-slider--seven .capability-card[data-native-slide="3"] > img,
  .capabilities-slider--seven .capability-card[data-native-slide="4"] > img {
    top: 3% !important;
    height: 64% !important;
  }
  .capabilities-slider--seven .capability-card[data-native-slide="5"] > img,
  .capabilities-slider--seven .capability-card[data-native-slide="6"] > img,
  .capabilities-slider--seven .capability-card[data-native-slide="7"] > img {
    top: 0 !important;
    height: 67% !important;
    object-fit: contain !important;
    object-position: 50% 0 !important;
  }
  .capabilities-slider--seven .capability-card[data-native-slide="2"] .capability-text h3 {
    font-size: clamp(34px, 9.5vw, 46px) !important;
  }
  .capabilities-slider--seven .capability-card[data-native-slide="3"] .capability-text h3,
  .capabilities-slider--seven .capability-card[data-native-slide="4"] .capability-text h3 {
    font-size: clamp(31px, 8.8vw, 42px) !important;
  }

  /* The hint is deliberately UI-less: no arrows/dots/text. A soft edge
     sheen follows the one-time micro swipe and then disappears. */
  .capabilities-slider--seven::after {
    content: "";
    position: sticky;
    right: 0;
    flex: 0 0 0;
    width: 0;
    height: 1px;
    pointer-events: none;
  }
  .capabilities-slider--seven.native-swipe-hint::before {
    content: "";
    position: fixed;
    right: 0;
    top: 42%;
    width: 18px;
    height: 26%;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(244,240,232,.12));
    animation: nativeSwipeEdge 1.05s cubic-bezier(.22,1,.36,1) both;
  }
}

@keyframes nativeSwipeEdge {
  0%, 100% { opacity: 0; transform: translateX(8px); }
  35% { opacity: .55; transform: translateX(0); }
  70% { opacity: .16; transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .capabilities-slider--seven.native-swipe-hint::before { animation: none !important; }
}

@keyframes nativeSwipePaginationCue {
  0%, 100% { transform: translateX(0); opacity: 1; }
  42% { transform: translateX(-7px); opacity: .82; }
  72% { transform: translateX(2px); opacity: .96; }
}

@media (prefers-reduced-motion: reduce) {
  .native-swipe-segment { transition: none !important; }
  .capabilities-slider--seven.native-swipe-hint + .native-swipe-pagination { animation: none !important; }
}
