@font-face {
  font-family: Cairo;
  src: url('assets/cairo.woff2?rev=b5cb5ea7a966e3fc') format('woff2');
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #181616;
  --text: #f2f2f2;
  --lime: #21c45d;
  --brand-green: #36c878;
  --line: #333333;
  --scene: url('assets/showroom-emerald-master.webp?rev=54a05b2c7b3fbdb7');
  --section-space: clamp(32px, 4.5vw, 64px);
  --journey-gap: var(--section-space);
  --header-height: 6rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: Cairo, Tahoma, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
:where(section[tabindex="-1"]):target:focus { outline: none; }
.container { width: min(1100px, 80%); margin-inline: auto; }

.top {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#181616e8, #1816169e);
}

.nav { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 7px; }
.brand img { width: 29px; height: 29px; }
.brand b { font: 750 23px/1 Arial, sans-serif; letter-spacing: -1.3px; }
.brand span { color: var(--brand-green); }
.nav nav { display: flex; gap: 30px; align-items: center; }
.nav nav :is(a, button) { font-size: 13px; font-weight: 600; padding: 8px 0; color: #c8d0ca; }
.nav [aria-current] { position: relative; color: white; }
.nav [aria-current]::after { content: ''; position: absolute; bottom: 0; left: 30%; right: 30%; height: 2px; background: var(--lime); }
.external { border: 1px solid #607466; border-radius: 6px; padding: 5px 13px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.external i { font: 22px/1 sans-serif; color: var(--lime); }

.hero-frame {
  overflow: clip;
  padding-bottom: var(--journey-gap);
  margin-bottom: calc(0px - var(--journey-gap));
}
.hero {
  --floor-fade: linear-gradient(to top, var(--ink), transparent calc(var(--journey-gap) + 30px));
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--ink);
}

.world {
  position: absolute;
  z-index: -2;
  inset: 0;
  transform-origin: 46% 48%;
  transition: transform 550ms cubic-bezier(.22, 1, .36, 1);
}

.room {
  position: absolute;
  inset: 0;
  container-type: size;
  transform: perspective(1800px)
    translate3d(var(--look-x, 0px), var(--look-y, 0px), 0)
    rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 260ms ease-out;
}
.scenery {
  position: absolute;
  inset: -8px -8px calc(0px - var(--journey-gap) - 8px);
  /* Frame the master by its 1536 × 1024 hero crop and show the continuation below. */
  background: var(--scene) center min(0px, calc(57cqh - 38cqw + 3.04px)) / max(100%, calc(150cqh + 24px)) auto no-repeat;
}
.vehicle {
  position: absolute;
  left: 37.8%;
  bottom: 13.5%;
  width: min(53%, 920px);
  height: 47%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
}

.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 calc(0px - var(--journey-gap));
  pointer-events: none;
  background: var(--floor-fade), linear-gradient(90deg, transparent 38%, #18161618 49%, #181616b8 69%, #181616cd 86%, #181616aa 100%);
}

.stage { position: absolute; inset: var(--header-height) auto 0 0; width: 69%; }
.stage, .message { transition: opacity 260ms ease; }
.studio { position: absolute; top: 10%; left: 15%; display: flex; align-items: center; gap: 11px; color: #eff8e4; font: 600 10px/1.4 Arial, sans-serif; letter-spacing: .22em; text-shadow: 0 1px 5px #000; }
.diamond { width: 11px; height: 11px; border: 1px solid var(--lime); transform: rotate(45deg); box-shadow: inset 0 0 0 3px #203329; background: var(--lime); }
.expand, .back { border: 1px solid #97b09488; background: #0a0a0ae8; border-radius: 30px; padding: 8px 16px; min-height: 42px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.expand { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); }
.expand span, .back span { font: 18px/1 Arial; color: var(--lime); }
.expand:hover, .back:hover { border-color: var(--lime); background: #203729; }

.message { pointer-events: none; padding-block: 32px; }
.copy { width: min(100%, 440px); margin-inline-end: auto; position: relative; }
.copy > * { pointer-events: auto; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--lime); font-size: 12px; font-weight: 750; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
h1 { font-size: clamp(48px, 5.15vw, 80px); font-weight: 800; line-height: 1.24; letter-spacing: -.035em; margin: 21px 0 19px; }
h1 em { font-style: normal; color: var(--brand-green); }
.copy p { font-size: clamp(14px, 1.05vw, 17px); line-height: 1.95; margin: 0 0 22px; max-width: 34ch; color: #e4e4e7; }
.action { border-radius: 6px; background: var(--lime); color: #181616; padding: 10px 21px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; }
.action:hover { background: #36c878; }
.action svg, .rail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.rail { background: #0e1712; border-block: 1px solid var(--line); }
.rail ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin-block: 0; list-style: none; }
.rail li + li { border-inline-start: 1px solid var(--line); }
.rail a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 57px; padding: 8px 4px; font-size: 13px; font-weight: 700; transition: color 180ms, background 180ms; }
.rail a:hover, .rail a:focus-visible { color: var(--lime); background: #21c45d12; }
.rail a:focus-visible { outline-offset: -3px; }
.rail svg { color: var(--lime); flex-shrink: 0; }

.showroom-ui {
  position: absolute;
  inset: var(--header-height) 0 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 230ms ease;
}

.showroom-ui button { pointer-events: auto; }
.showroom-ui[inert] button { pointer-events: none; }
.back { position: absolute; top: 18px; inset-inline-end: max(5%, calc((100% - 1100px) / 2)); }
.spin { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); align-items: center; gap: 18px; direction: ltr; background: #09100dee; padding: 5px; border-radius: 30px; }
.spin:not([hidden]) { display: flex; }
.spin button { background: #101a14; border: 1px solid #a5bfab75; border-radius: 50%; width: 40px; height: 40px; font: 24px/1 Arial; }
.spin output { min-width: 41px; text-align: center; font: 14px Arial; }

.hero.is-inside .world { transform: scale(1.018); }
.hero.is-inside .vehicle { left: 46%; width: min(62%, 1040px); height: 58%; }
.hero.is-inside::after { background: var(--floor-fade); }
.hero.is-inside .message, .hero.is-inside .stage { opacity: 0; }
.hero.is-inside .showroom-ui { opacity: 1; }
.hero.has-frames .stage, .hero.is-inside.has-frames { touch-action: pan-y pinch-zoom; cursor: grab; user-select: none; }
.hero.has-frames .stage:active, .hero.is-inside.has-frames:active { cursor: grabbing; }

@media (min-width: 721px) and (max-width: 1000px) {
  .vehicle { width: 48%; left: 30%; }
  .message .copy { width: 37vw; }
}
@media (min-width: 721px) and (max-width: 1000px) and (min-aspect-ratio: 5/3) {
  .vehicle { width: 44%; left: 34.5%; }
  .message .copy { width: 34vw; }
}

@media (max-width: 1023px) {
  :root { --header-height: calc(4.5rem + 52px); }
}

@media (max-width: 720px), (max-width: 900px) and (max-height: 500px) {
  :root { --scene: url('assets/showroom-emerald-mobile.webp?rev=24b2e6f0700fa1eb'); }
}

@media (max-width: 720px) {
  .container { width: 90%; }
  .nav nav { display: none; }
  .brand img { width: 26px; height: 26px; }
  .hero {
    --stage-height: clamp(230px, 70vw, 340px);
    min-height: min(100svh, 690px);
    grid-template-rows: minmax(var(--stage-height), 1fr) auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .hero::before {
    content: '';
    position: absolute;
    z-index: -3;
    inset: -22px;
    background: linear-gradient(180deg, #18161682, #181616bf 48%, #181616 82%), var(--scene) 36% 20% / cover no-repeat;
    filter: blur(22px);
  }
  .hero::after { background: var(--floor-fade); }
  .world, .stage { grid-area: 1 / 1 / 2 / 2; inset: 0; width: auto; }
  .vehicle { left: 47%; width: min(96%, 90cqh); height: 60%; bottom: 18%; }
  .hero.is-inside .vehicle { left: 50%; width: min(103%, 95cqh); height: 60%; bottom: 18%; }
  .hero.is-inside .world { grid-area: 1 / 1 / 3 / 2; }
  .scenery { mask-image: linear-gradient(to bottom, transparent, #000 16cqh); }
  .scenery::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--ink), transparent 25cqh);
  }
  .message { grid-area: 2 / 1; padding: 18px 0 24px; }
  .hero:not(.is-inside) .scenery {
    inset-block-end: -1px;
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  .hero:not(.is-inside) .scenery::after { background: none; }
  .copy { width: 100%; }
  .eyebrow { font-size: 11px; }
  h1 { font-size: clamp(34px, 10.7vw, 62px); margin: 9px 0 10px; line-height: 1.24; }
  h1 em br { display: none; }
  .copy p { font-size: 13px; line-height: 1.8; margin-bottom: 14px; max-width: 43ch; }
  .action { font-size: 12px; padding: 8px 15px; }
  .studio { top: 15%; left: 7%; font-size: 9px; }
  .expand { bottom: 5%; }
  .rail ul { width: 100%; }
  .rail a { min-height: 52px; gap: 5px; font-size: clamp(10px, 2.75vw, 13px); }
  .rail svg { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .room, .hero.is-inside .world { transform: none; }
}

.showroom-hint {
  position:absolute; inset:auto 0 calc(6% + 60px); margin:0 auto; width:max-content;
  max-width:90%; padding:4px 12px; border-radius:20px; background:#09100dee;
  color:var(--text); font-size:14px;
}
.landing-footer {
  text-align:center; padding:var(--section-space) 0; border-top:1px solid var(--line);
  background:radial-gradient(ellipse at 50% 100%,#163525,transparent 78%),#151a17;
}
.landing-footer h2 { font-size:clamp(27px,4vw,48px); margin:0; }
.landing-footer p { color:#d0dbd2; margin:8px 0 20px; }
.section-link {
  display:inline-flex; align-items:center; min-height:44px; margin-top:14px;
  color:#66e29b; font-weight:750;
}
.section-link:hover { text-decoration:underline; }
@media (max-width:720px) {
  .hero:not(.is-inside) .vehicle { bottom:23%; }
  .expand { bottom:6%; }
}


.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
#home .hero-actions .hero-install { display: none; }
@media (max-width: 1023px) {
  #home .hero-actions .hero-install { display: inline-flex; }
  #home .hero-actions a[href="#explore"] {
    border: 0; background: none; color: #e2eee7; padding: 6px 0; gap: .3em;
    text-decoration: underline; text-underline-offset: .28em;
  }
}
@media (min-width: 1024px) {
  .hero .world::after {
    content: "";
    position: absolute; inset: 0 0 auto; height: 150px;
    background: linear-gradient(to bottom, rgb(6 12 9 / .88), rgb(6 12 9 / .74) 44%, transparent);
    pointer-events: none;
  }
}
@media (max-width: 540px) and (max-height: 660px) {
  .hero { --stage-height: clamp(166px, 35svh, 220px); }
}
@media (min-width: 540px) and (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero {
    grid-template: "copy art" minmax(238px,1fr) / minmax(0,1fr) minmax(0,1fr);
    min-height: 100svh;
    align-items: center;
  }
  .hero:not(.is-inside) .world { position: absolute; grid-area: auto; inset: var(--header-height) 0 0 0; }
  .hero:not(.is-inside) .scenery {
    mask-image: linear-gradient(to right,black 28%,transparent 65%);
    background-position: left 48%; background-size: 65% auto;
  }
  .hero:not(.is-inside) .vehicle { left: 25%; width: 44%; height: 65%; bottom: 16%; }
  .hero .stage { position: relative; grid-area: art; align-self: stretch; inset: auto; width: auto; }
  .hero .message { grid-area: copy; width: auto; margin: 0; padding: 10px 6% 10px 4%; }
  .hero .copy { width: 100%; }
  .hero h1 { font-size: clamp(25px,4.2vw,35px); margin: 0 0 6px; line-height: 1.2; }
  .hero h1 em br { display: none; }
  .hero .copy p { font-size: 13px; line-height: 1.55; margin: 0 0 8px; }
  .hero .expand { bottom: 0; }
  #home .hero-actions a { font-size: 12px; }
}


/* Continue the room above its original crop. The stage and car keep their own framing. */
@media (max-width: 720px), (min-width: 540px) and (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .room::before {
    --scene-width: max(calc(100cqw + 16px), calc(150cqh + 24px));
    --scene-top: min(0px, calc(57cqh - 38cqw + 3.04px));
    content: "";
    position: absolute;
    inset: calc(-8px - var(--header-height)) -8px -1px;
    padding-top: var(--header-height);
    background-image: var(--scene), url('assets/showroom-ceiling.webp?rev=5d136db965e0173b');
    background-repeat: no-repeat;
    background-origin: content-box;
    background-size: var(--scene-width) auto;
    background-position: center var(--scene-top), center calc(var(--scene-top) - var(--scene-width) / 2);
    clip-path: inset(0 0 calc(100% - var(--header-height)) 0);
    pointer-events: none;
  }
  .hero.is-inside .room::before {
    mask-image: linear-gradient(to bottom, #0008, transparent var(--header-height));
  }
}
@media (min-width: 540px) and (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero:not(.is-inside) .room::before {
    --scene-width: calc((100cqw + 16px) * .65);
    /* Match the original 48% vertical positioning of the 960 × 1130 room. */
    background-position: left 48%, left calc(48% - var(--scene-width) * .825);
    mask-image: linear-gradient(to right, black 28%, transparent 65%);
  }
}
@media (min-width: 721px) and (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero:not(.is-inside) .room::before { inset-block-end: calc(0px - var(--journey-gap) - 8px); }
  .hero.is-inside .room::before { content: none; }
}

html { scroll-behavior: smooth; }

.journey {
  --card-background: #1f1f1f;
  padding-block: var(--journey-gap);
  scroll-margin-block-start: 12px;
}

.journey > h2 {
  margin: 0 0 clamp(16px, 2.4vw, 32px);
  font-size: clamp(32px, 4.3vw, 58px);
  font-weight: 800;
  line-height: 1.27;
}

.journey-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #8bac903d;
  border-radius: 20px;
  background: var(--card-background);
}

.journey-nav, .journey-copy {
  width: var(--journey-copy-width, 49%);
  padding-inline: clamp(20px, 2.7vw, 38px);
}

.journey-panel { display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }
.journey-panel[hidden] { visibility: hidden; pointer-events: none; }
.journey-panel:not([hidden]) { animation: preview-in 320ms ease-out; }
@keyframes preview-in { from { opacity: 0; } to { opacity: 1; } }

.journey-copy { display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }

.journey-copy h3 {
  margin: 0 0 15px;
  font-size: clamp(33px, 4.05vw, 53px);
  line-height: 1.23;
  font-weight: 800;
}

.journey-copy p {
  min-height: 2lh;
  max-width: 38ch;
  margin: 0 0 22px;
  color: #a6a6a6;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.85;
}

.journey-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-radius: 8px;
  padding: 7px 15px;
  background: var(--lime);
  color: #181616;
  font-size: 14px;
  font-weight: 800;
}

.journey-link:hover { background: #36c878; }
.journey-link-label { min-width: 0; line-height: 1.45; text-align: center; text-wrap: balance; }
.journey-link > [aria-hidden="true"] { flex: none; font: 20px/1 system-ui, sans-serif; }

.journey-art {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 58%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 40% 50%, #29533a, #172a20 65%, var(--card-background));
}

.journey-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, #1f1f1f80 83%, var(--card-background) 100%);
  pointer-events: none;
}

.journey-art--market img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.journey-art--phones {
  container-type: size;
  background:
    radial-gradient(ellipse at 38% 55%, #2d493c, transparent 70%),
    var(--card-background);
}

.journey-phones {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 88%;
  margin-right: 10%;
  gap: clamp(12px, 3cqw, 24px);
}

.journey-phone {
  position: relative;
  flex: none;
  width: min(64cqw, 40cqh, 210px);
  padding: clamp(3px, .9cqw, 5px);
  border: 1px solid #969b98;
  border-radius: 13% / 6%;
  background: linear-gradient(115deg, #878b88, #171b19 18%, #555b57 52%, #141715 85%, #7f8681);
  box-shadow: inset 0 0 0 1px #c4c9c555, 0 15px 24px -10px #000b;
  transform: rotate(-4deg);
}

.journey-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10.5% / 4.85%;
  outline: 1px solid #080a09;
}

/* Profile positions are measured on the original 738 × 1600 screens. */
.journey-profile-screen { position: relative; }
.journey-profile-screen::before,
.journey-profile-screen--galaxy::after {
  --avatar-x: 607;
  --avatar-y: 161;
  --avatar-size: 72;
  content: '';
  pointer-events: none;
  position: absolute;
  left: calc(100% * var(--avatar-x) / 738);
  top: calc(100% * var(--avatar-y) / 1600);
  width: calc(100% * var(--avatar-size) / 738);
  aspect-ratio: 1;
  background: var(--screen-backdrop, #1e1e1e) url('assets/journeys/profile-emerald-bust.webp?rev=cb1619b47eca9509') center / 94% no-repeat;
  outline: 1px solid var(--screen-backdrop, #1e1e1e);
}
.journey-profile-screen--galaxy::before { --avatar-x: 646; --avatar-y: 128; --avatar-size: 71; --screen-backdrop: #000; }
.journey-profile-screen--galaxy::after { --avatar-x: 409; --avatar-y: 852; --avatar-size: 54; --screen-backdrop: #020b08; }

.journey-phone::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 2.1%;
  left: 39%;
  width: 22%;
  height: 2.5%;
  border-radius: 999px;
  background: #080808;
}

.journey-phone::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 25%;
  width: 2px;
  height: 9%;
  border-radius: 2px 0 0 2px;
  background: #7a7e7b;
}

.journey-phones--pair .journey-phone { width: min(36cqw, 36cqh, 185px); }
.journey-phones--pair .journey-phone:first-child { transform: translateY(-2%) rotate(3deg); }
.journey-phones--pair .journey-phone:last-child { transform: translateY(2%) rotate(-3deg); }

.journey-destination {
  padding-block: var(--section-space);
  border-block-start: 1px solid var(--line);
}
.journey-destination:nth-of-type(odd) { background: #181616; }
.journey-destination h2 { margin: 0; font-size: clamp(29px, 4vw, 48px); line-height: 1.3; }
.journey-destination:target h2 { color: var(--lime); }

@media (max-width: 900px) {
  .journey-nav, .journey-copy { width: 100%; }
  .journey-copy { min-height: 0; }
  .journey-art { position: relative; z-index: auto; width: 100%; height: clamp(350px, 80vw, 435px); }
  .journey-art::after { background: linear-gradient(180deg, var(--card-background), transparent 24%); }
  .journey-phones { width: 100%; margin-right: 0; }
  .journey-phones--pair .journey-phone { width: min(42cqw, 38cqh, 185px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .journey-panel:not([hidden]) { animation: none; }
}

@media (max-width:720px) {
  .journey-art { height:clamp(245px,68vw,350px); }
}
@media (max-width: 900px) {
  .journey {
    --card-inset: clamp(14px, 4vw, 24px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .journey > h2 {
    z-index: 1;
    grid-area: 2 / 1;
    margin: 16px calc(var(--card-inset) + 1px) 5px;
    font-size: 16px;
  }
  .journey-card {
    grid-area: 1 / 1 / 8;
    grid-template-rows: subgrid;
    overflow: clip;
  }
  /* Reserve the final row for the directory tabs. */
  .journey-card::after {
    content: "";
    grid-area: 7 / 1;
    height: 84px;
    pointer-events: none;
  }
  .journey-panel { grid-area: 1 / 1 / 7; }
  .journey-panel[hidden] { display: grid; }
  .journey-copy { grid-area: 3 / 1 / 7; padding: 0 var(--card-inset); }
  .journey-copy h3 { grid-row: 1; margin: 0 0 6px; font-size: clamp(25px, 5vw, 34px); line-height: 1.35; }
  .journey-copy h3 br { display: none; }
  .journey-copy p { grid-row: 3; min-height: 0; max-width: none; margin: 12px 0 0; }
  .journey-art { grid-area: 1 / 1; }
  .journey-art--market { height: 100%; }
  .journey-art::after { background: none; }
  .journey-link { grid-row: 4; justify-content: center; margin: 12px 0 var(--card-inset); background: var(--brand-green); }
  .journey-nav {
    position: relative;
    grid-area: 7 / 1;
    align-self: end;
    margin-block-end: 12px;
    z-index: 2;
    width: auto;
    margin-inline: var(--card-inset);
    padding: 0;
    box-shadow: 0 6px 22px #0008;
  }
}
.market-cars .market-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.market-cars .market-switch button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 64px;
  padding: 6px;
  background: #262927;
  border: 1px solid #474c49;
  border-radius: 10px;
  color: #f2f2f2;
  white-space: normal;
  text-align: center;
  font: 700 clamp(12px, 2.9vw, 14px)/1.4 Cairo, sans-serif;
}

.tile-icon {
  display: block;
  width: 36px;
  height: 25px;
  padding: 3px 8px;
  border-radius: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.market-cars .market-switch button:is([aria-selected="true"], [aria-pressed="true"]) {
  border-color: var(--brand-green);
  background: #203327;
  color: #77e69b;
}
.market-switch .tile-icon {
  width: 27px;
  height: 26px;
  padding: 0;
  border-radius: 0;
}
@media (max-width: 900px) {
  .market-switch .tile-icon { width: 21px; height: 21px; }
  .market-cars .market-switch button[aria-pressed="true"] {
    color: var(--brand-green);
    background: #20272c;
  }
}
.market-cars .market-switch button:is([aria-selected="true"], [aria-pressed="true"])::after {
  content: '';
  position: absolute;
  inset: 9px auto auto 10px;
  width: 5px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(38deg);
}
.market-cars .market-switch button:hover { border-color: var(--brand-green); }
@media (min-width: 901px) {
  .journey-card { --journey-copy-width: 49%; grid-template-rows: repeat(4, max-content); align-content: center; padding-block: clamp(20px, 2.2vw, 32px); }
  .journey-art { width: calc(100% - var(--journey-copy-width)); }
  .journey-panel, .journey-copy { grid-area: 1 / 1 / 5; }
  .journey-panel[hidden] { display: grid; }
  .journey-copy h3 { grid-row: 1; font-size: clamp(30px, 3.3vw, 46px); margin-bottom: 8px; }
  .journey-copy p { grid-row: 3; margin-block: 14px 0; }
  .journey-nav { grid-area: 2 / 1; z-index: 1; }
  .journey-link { grid-row: 4; justify-content: center; align-self: start; margin-top: 12px; background: var(--brand-green); }
}

#journey-title,
#market-title,
#charging-title,
#products-title,
#community-title,
#knowledge-title,
#ev-community-life-title {
  color: var(--brand-green);
}

@media (max-width: 900px) {
  .journey-nav {
    display: flex;
    align-items: stretch;
    min-width: 0;
    border: 1px solid #303133;
    border-radius: 26px;
    background: #1e1e20;
    overflow: hidden;
  }
  .journey-tabs {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .journey-tabs::-webkit-scrollbar { display: none; }
  .journey-tabs :is(button, a) {
    background: transparent;
    border: 0;
    color: #b7b8c0;
    cursor: pointer;
  }
  .journey-tabs :is(button, a) {
    position: relative;
    flex: 1 0 auto;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    min-width: 65px;
    min-height: 65px;
    padding: 8px 10px;
    margin: 4px 2px;
    border-radius: 18px;
    font: 700 clamp(12px, 1.1vw, 14px)/1.45 Cairo, sans-serif;
    white-space: nowrap;
  }
  .journey-tabs .tile-icon {
    width: 25px;
    height: 25px;
    padding: 0;
    border-radius: 0;
  }
  .journey-tabs [aria-selected="true"] {
    color: var(--brand-green);
    background: #20272c;
  }
  .journey-nav :is(button, a):focus-visible { outline: 2px solid var(--brand-green); outline-offset: -3px; }
}
@media (min-width: 901px) {
  .journey-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .journey-tabs button:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .journey-tabs button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 64px;
    padding: 6px;
    background: #262927;
    border: 1px solid #474c49;
    border-radius: 10px;
    color: #f2f2f2;
    white-space: normal;
    text-align: center;
    font: 700 clamp(12px, 2.9vw, 14px)/1.4 Cairo, sans-serif;
  }
  .journey-tabs button:hover { border-color: var(--brand-green); }
  .journey-tabs [aria-selected="true"] {
    border-color: var(--brand-green);
    background: #203327;
    color: #77e69b;
  }
  .journey-tabs [aria-selected="true"] .tile-icon { background: #304d39; }
  .journey-tabs [aria-selected="true"]::after {
    content: '';
    position: absolute;
    inset: 9px auto auto 10px;
    width: 5px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(38deg);
  }
}
.journey-link { justify-self: start; border-radius: 999px; padding-inline: 24px; }

.charging-briefs { grid-row: 3; margin-block-start: 14px; }
.charging-briefs h4 { font-size: 16px; line-height: 1.5; margin: 0 0 3px; }
.charging-briefs p { font-size: 15px; line-height: 1.7; min-height: 0; color: #cad0cc; margin: 0; max-width: none; }
.charging-briefs p + h4 { border-top: 1px solid #ffffff18; padding-top: 11px; margin-top: 11px; }
#preview-charging { --charging-backdrop: url('assets/journeys/charging-smartsafe.webp?rev=cf663d22d48bb9d9'); }
@media (max-width: 600px) {
  #preview-charging { --charging-backdrop: url('assets/journeys/charging-smartsafe-720.webp?rev=2045718d43f031c6'); }
}
#preview-charging:where(:not([hidden]), [data-warm], :target) .journey-art {
  background: linear-gradient(90deg, transparent 79%, #1f1f1f),
    linear-gradient(#1115, #1113), var(--charging-backdrop) center / cover;
}
#preview-charging .journey-art::after { display: none; }
#preview-charging .journey-phones { margin: 0; width: 94%; }
@media (max-width: 900px) {
  .charging-briefs h4 { font-size: 15px; }
  .charging-briefs p { font-size: 14px; line-height: 1.8; }
  #preview-charging:where(:not([hidden]), [data-warm], :target) .journey-art {
    grid-area: 1 / 1; width: 100%; height: 100%; place-items: center;
    background: linear-gradient(to bottom, transparent 55%, rgba(31,31,31,.46) 75%, #1f1f1f 100%),
      linear-gradient(#1112, #1113), var(--charging-backdrop) center / cover;
  }
  #preview-charging .journey-phones { height: 87%; }
}


.market { background: #181616; }
.market h2 { margin-block-end: 24px; }
.market-card { border: 1px solid #333333; border-radius: 18px; overflow: hidden; background: #1f1f1f; }
.market-cars { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.market-copy { padding: clamp(20px, 3.4vw, 40px); }
.market-label { display: block; color: var(--lime); font-size: 14px; font-weight: 800; }
.market-card h3 { margin: 6px 0 13px; line-height: 1.28; font-weight: 800; font-size: clamp(24px, 3vw, 40px); }
.market-cars .market-copy { display: flex; flex-direction: column; justify-content: center; }
.market-switch { order: 1; margin: 14px 0 0; }
.market-model strong { display: inline-block; font: 700 clamp(17px, 2vw, 24px)/1.35 Arial, sans-serif; }
.market-model p { margin: 5px 0 0; font-size: 14px; color: #a6a6a6; }
.market-sale-steps { order: 2; margin-block-start: 6px; }
.market-sale-steps summary {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 44px;
  color: var(--lime);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.market-sale-steps summary::-webkit-details-marker { display: none; }
.market-sale-steps summary span { font: 19px/1 Arial, sans-serif; }
.market-sale-steps[open] summary span { transform: rotate(180deg); }
.market-sale-steps ol {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: market-sale-step;
}
.market-sale-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px;
  border-radius: 8px;
  background: #2e2e2e;
  font-size: 14px;
}
.market-sale-steps li p {
  margin: 2px 0 0;
  color: #c1cdc4;
  line-height: 1.6;
}
.market-sale-steps li::before {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime);
  color: #181616;
  font-weight: 800;
  counter-increment: market-sale-step;
  content: counter(market-sale-step, decimal);
}

.market-art { position: relative; isolation: isolate; margin: 0; min-height: 280px; overflow: hidden; container-type: size; background: #132b20; }
.market-art figcaption { position: absolute; inset: auto auto 12px 12px; padding: 2px 9px; border-radius: 6px; background: #08150ddd; color: #dce7df; font-size: 11px; }
.market-image {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: max(100%, calc(100cqh * var(--crop-ratio)));
  aspect-ratio: var(--crop-ratio);
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
}
.market-image[hidden] { display: none; }
.market-image:not([hidden]) { animation: preview-in 280ms ease-out; }

/* Frame the photographic regions of the review mockups as responsive art. */

.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block-start: 14px; }
.market-grid > article { display: flex; flex-direction: column; }
.market-showrooms img,
.market-import .market-art { display: block; flex: none; width: 100%; height: auto; min-height: 0; aspect-ratio: 2; }
.market-grid .market-copy { flex: 1; display: flex; flex-direction: column; padding: clamp(14px, 1.5vw, 20px) clamp(16px, 2vw, 24px); }
.market-grid .market-label { line-height: 1.5; }
.market-grid > article h3 { margin-block: 4px 6px; font-size: clamp(21px, 2.35vw, 30px); line-height: 1.35; }
.crop-ship {
  --crop-ratio: 2.4824;
  left: 54%;
  background-size: 217.87% auto;
  background-position: 6.38% 76.76%;
}
.crop-ship.is-near { background-image: url('assets/market/section-concept.webp?rev=07a0079fa4a4dd78'); }
@media (scripting: none) {
  .crop-ship { background-image: url('assets/market/section-concept.webp?rev=07a0079fa4a4dd78'); }
}
.market-detail-toggle { display: inline-flex; align-items: center; align-self: flex-start; gap: 9px; margin-block-start: auto; min-height: 44px; padding: 0; color: var(--lime); font-size: 14px; font-weight: 750; }
.market-detail-toggle span { font: 19px/1 Arial, sans-serif; transition: transform 220ms ease; }
.market-detail-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.market-timeline { padding: clamp(20px, 3vw, 35px); scroll-margin-block: 16px; }
.market-timeline[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .market-timeline:not([hidden]) { animation: market-reveal 180ms ease-out; }
  @keyframes market-reveal { from { opacity: 0.35; clip-path: inset(0 0 12%); } to { opacity: 1; clip-path: inset(0); } }
}
.market-timeline h3 { font-size: clamp(21px, 3vw, 33px); }
.market-timeline p { margin: 0; color: #bdbdbd; font-size: 15px; }
.market-timeline ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 20px 0 0; list-style: none; counter-reset: import-step; }
.market-timeline li { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 9px; background: #2e2e2e; font-size: 14px; }
.market-timeline li::before { counter-increment: import-step; content: counter(import-step, decimal); display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 50%; background: var(--lime); color: #181616; font-weight: 800; }

@media (min-width: 741px) {
  .market-showrooms, .market-import { grid-row: 1; }
  .market-timeline { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 740px) {
  .market-cars, .market-grid { grid-template-columns: minmax(0, 1fr); }
  .market-car-art { grid-row: 1; min-height: 0; aspect-ratio: 2.5; }
  .market-cars .market-copy { padding: clamp(14px, 4vw, 24px); }
  .market-timeline ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .market-image:not([hidden]) { animation: none; }
  .market-detail-toggle span { transition: none; }
}

.market-car-art { background: linear-gradient(#a68167, #a48269); }
.market-car-art:has(.crop-used:not([hidden])) { background: linear-gradient(#96d3e8, #6b818e); }
.market-car-art img { inset:0; width:100%; height:100%; transform:none; object-fit:contain; }
.market-timeline .section-link { margin-inline-end: 14px; }
.market-model .market-example { display:block; margin-bottom:4px; color:#b9c7bd; font-size:13px; }
.market-return { min-height:44px; margin-top:10px; padding:0; color:#63dd96; font-weight:750; }
.market-card-description { margin:0 0 8px; color:#c1cdc4; font-size:14px; line-height:1.65; }

.galaxy-preview {
  container: galaxy / size;
  background:
    url('assets/journeys/galaxy-orbits.svg?rev=1dd2cb388caf8f45') center / cover,
    radial-gradient(ellipse at 42% 58%, #164f3d, #103126 22%, #092019 52%, transparent 83%),
    #080e10;
}
.galaxy-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1fr);
  grid-template-areas: "phone gold" "phone verified" "phone member";
  align-items: center;
  gap: clamp(6px, 1.8cqh, 11px) clamp(8px, 2.4cqw, 18px);
  padding: 10px 13% 10px 3%;
}
.galaxy-layout .journey-phone {
  grid-area: phone;
  justify-self: center;
  width: min(96%, 40cqh);
  transform: rotate(-2deg);
}
.galaxy-stars { position: absolute; inset: 0; background: url('assets/journeys/galaxy-stars.svg?rev=386896e71b7d6a7e') center / 100% 100%; pointer-events: none; }
.galaxy-post {
  --frame: url('assets/journeys/galaxy-frame-member.webp?rev=7f7dd390639be01b');
  direction: rtl;
  min-width: 0;
  padding: clamp(6px, 1.45cqw, 11px) clamp(8px, 1.85cqw, 13px);
  border: 1px solid #58877670;
  border-radius: 11px;
  background: linear-gradient(118deg, #172622fa, #0f1918fa);
  box-shadow: 0 7px 16px #0003;
}
.galaxy-post--gold { grid-area: gold; --frame: url('assets/journeys/galaxy-frame-gold.webp?rev=c095a4f5bb2b5a3d'); --tier-color: #e8c573; }
.galaxy-post--verified { grid-area: verified; --frame: url('assets/journeys/galaxy-frame-verified.webp?rev=6921a043cce4e8a4'); --tier-color: #75db9d; }
.galaxy-post--charging { grid-area: member; }
.galaxy-post header { display: flex; align-items: center; gap: clamp(4px, .8cqw, 6px); line-height: 1.25; }
.galaxy-post b { display: block; font-size: clamp(13px, 2.6cqw, 16px); }
.galaxy-post small { display: block; margin-top: 2px; color: var(--tier-color, #b4c6bb); font-size: clamp(10px, 1.9cqw, 12px); }
.galaxy-post p { margin: 5px 0 0; font-size: clamp(13px, 2.5cqw, 16px); line-height: 1.5; font-weight: 600; }
.galaxy-avatar { position: relative; flex: 0 0 clamp(30px, 6.5cqw, 40px); aspect-ratio: 1; }
.galaxy-avatar::before { content: ''; position: absolute; inset: 18%; background: url('assets/journeys/profile-emerald-bust.webp?rev=cb1619b47eca9509') center / contain no-repeat; }
.galaxy-avatar::after { content: ''; position: absolute; inset: 0; background: var(--frame) center / contain no-repeat; }
.galaxy-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
  border: 1px solid #5a7d6b61;
  border-radius: 6px;
  padding: 2px 5px;
  color: #b2c4bb;
  font: 10px/1.4 Arial, sans-serif;
}
.galaxy-tag::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: #36c878; }
@media (max-width: 900px) {
  .galaxy-preview {
    container-type: inline-size;
    height: auto;
  }
  .galaxy-layout { padding: 14px 3%; row-gap: 8px; }
  .galaxy-layout .journey-phone { width: min(90%, 155px); }
}
@container galaxy (max-width: 380px) {
  .galaxy-layout { grid-template-columns: minmax(0, .43fr) minmax(0, 1fr); }
}

.market-directory-briefs {
  grid-row: 3;
  margin-block-start: 14px;
}

.market-directory-briefs h4 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.5;
}

.market-directory-briefs p {
  min-height: 0;
  max-width: none;
  margin: 0;
  color: #a6a6a6;
  font-size: 15px;
  line-height: 1.65;
}

.market-directory-briefs p + h4 {
  margin-block-start: 9px;
  padding-block-start: 9px;
  border-block-start: 1px solid #ffffff18;
}

#preview-market .market-directory-image {
  z-index: 0;
}

.market-directory-image:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: -5px;
}

@media (max-width: 900px) {
  .market-directory-briefs { margin-block-start: 8px; }
  .market-directory-briefs p { font-size: 14px; }
}

.journey-dock-mascot,
.directory-mobile-brief,
.directory-mobile-break,
.journey-link .directory-mobile-label {
  display: none;
}

.journey-link :is(.directory-desktop-label, .directory-mobile-label) {
  font: inherit;
}

@media (max-width: 900px) {
  #explore {
    --directory-title-inset: 24px;
    --directory-scene-height: calc(clamp(355px, 109vw, 570px) - 31px);
    --directory-scene-side: clamp(19px, 6vw, 34px);
    position: relative;
    grid-template-rows: auto minmax(42px, auto) repeat(5, auto);
  }

  .directory-scene .journey-copy {
    display: contents;
  }

  .journey-panel:not(.directory-scene) .journey-copy > p {
    grid-row: 2 / 4;
    align-self: start;
    margin-block: 8px 0;
  }

  .directory-scene .journey-copy h3 {
    grid-area: 1 / 1;
    align-self: start;
    z-index: 1;
    margin: var(--directory-title-inset) var(--directory-scene-side) 0;
    color: #f5f5f5;
    font-size: clamp(28px, 8.3vw, 50px);
    line-height: 1.23;
    text-shadow: 0 2px 12px #0009;
    pointer-events: none;
  }

  .directory-scene .journey-copy h3 br { display: initial; }
  .directory-scene :is(.market-directory-briefs, .charging-briefs) { display: none; }

  .directory-scene .directory-mobile-brief {
    display: block;
    grid-area: 5 / 1;
    align-self: end;
    z-index: 1;
    margin: 0 var(--directory-scene-side);
    color: #f0f1ef;
    text-align: center;
    font-size: clamp(13px, 3.7vw, 17px);
    line-height: 1.6;
  }

  .directory-scene .journey-link {
    grid-area: 6 / 1;
    z-index: 1;
    justify-self: center;
    align-self: center;
    min-width: 72%;
    margin: 9px 16px 8px;
    padding-inline: 16px;
    background: #36c878;
    font-size: clamp(14px, 4vw, 17px);
  }

  .journey-link .directory-desktop-label { display: none; }
  .journey-link .directory-mobile-label { display: inline; }

  #preview-market .journey-art,
  #preview-charging .journey-art {
    grid-area: 1 / 1 / 5;
    align-self: start;
    min-height: var(--directory-scene-height);
    height: 100%;
    overflow: visible;
    background: none;
  }

  #preview-market .journey-art img,
  #preview-market .journey-art::after {
    bottom: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    max-height: calc(100% + 90px);
    pointer-events: none;
  }

  #preview-market .journey-art img { object-position: 51% center; }

  #preview-market .journey-art::after {
    background: linear-gradient(180deg, #101511d8 1%, #14191390 22%, transparent 49%, #1f1f1f52 76%, #1f1f1f 98%);
  }

  #preview-charging .journey-art { place-items: end center; }

  #preview-charging:where(:not([hidden]), [data-warm], :target) .journey-art::before {
    content: "";
    position: absolute;
    inset: 0 0 -78px;
    pointer-events: none;
    background:
      linear-gradient(180deg, #101912b5 0%, #10191236 34%, transparent 55%, #1f1f1f27 74%, #1f1f1f 98%),
      var(--charging-backdrop) 43% center / cover no-repeat;
  }

  #preview-charging .journey-phones {
    width: 100%;
    height: auto;
    margin: 0;
    padding-block-end: 11px;
    gap: clamp(7px, 2vw, 16px);
    transform: translateX(3%);
  }

  #preview-charging .journey-phones .journey-phone {
    width: clamp(99px, 31vw, 176px);
  }

  #preview-charging .journey-phone:first-child { transform: translateY(-1%) rotate(-2deg); }
  #preview-charging .journey-phone:last-child { transform: translateY(2%) rotate(2deg); }
}


@media (max-width: 900px) {
  .journey-card::after { height: 98px; }

  .journey-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "tabs";
    overflow: visible;
    padding: 7px 5px;
    margin-inline: clamp(5px, 1.7vw, 10px);
    margin-block-end: 7px;
    min-height: 84px;
    border: 0;
    background: #1e1e1e;
    box-shadow: 0 8px 22px #0006;
    align-items: center;
    border-radius: 22px;
  }

  .journey-tabs {
    grid-area: tabs;
    min-width: 0;
    border-radius: inherit;
    overflow-y: hidden;
    user-select: none;
  }

  .journey-tabs button {
    box-sizing: border-box;
    flex: 0 0 calc(25% - 4px);
    height: 64px;
    min-height: 64px;
    min-width: 0;
    margin: 2px;
    padding: 3px 1px;
    grid-template-rows: 21px 32px;
    align-items: center;
    gap: 2px;
    border-radius: 15px;
    text-align: center;
    white-space: normal;
    font: 650 clamp(12px, 3.15vw, 13px)/1.28 Cairo, sans-serif;
  }

  .journey-tabs button { color: #afb0b6; }
  .journey-tabs button[aria-selected="true"] {
    color: #54d389;
    background: #1f232b;
  }

  .journey-tabs .tile-icon { width: 21px; height: 21px; }
}

@media (max-width: 900px) {
  #explore {
    --mascot-height: clamp(67px, 21vw, 94px);
    --mascot-button-gap: max(8px, calc((var(--mascot-height) - 58px) / 2));
  }

  .journey-dock-mascot {
    display: block;
    position: absolute;
    z-index: 1;
    right: 12.5%;
    bottom: calc(100% - min(15px, var(--mascot-height) * .228) + 1px);
    transform: translateX(50%);
    width: auto;
    height: var(--mascot-height);
    pointer-events: none;
    user-select: none;
  }

  /* Keep the rightmost tab's column free for the seated mascot. */
  .directory-scene .journey-link {
    justify-self: end;
    min-width: 0;
    width: calc((100% - 2 * var(--card-inset)) * .75 + 6px);
    margin-inline: 0 var(--card-inset);
    margin-block: calc(var(--mascot-button-gap) + 5px) var(--mascot-button-gap);
    gap: 8px;
    padding-inline: 10px;
  }
}

@media (max-width: 430px) {
  #preview-lifestyle .journey-link { gap: 4px; padding-inline: 5px; }
}

@media (min-width: 901px) {
  #explore {
    --directory-inset: clamp(28px, 3.2vw, 46px);
    --directory-top: clamp(36px, 4vw, 57px);
    --directory-stage: calc(clamp(414px, 39vw, 560px) - 50px);
    position: relative;
  }

  #explore .journey-card {
    --journey-copy-width: 46%;
    grid-template-rows: minmax(var(--directory-stage), auto) auto;
    padding: 0;
  }

  #explore .journey-panel,
  #explore .journey-copy {
    grid-area: 1 / 1;
  }

  #explore .journey-panel {
    grid-template-rows: auto;
  }

  #explore .journey-copy {
    display: block;
    position: relative;
    z-index: 1;
    padding: var(--directory-top) var(--directory-inset) 32px 0;
    align-self: start;
  }

  #explore .journey-copy h3 {
    margin: 0;
    color: #f6f8f6;
    font-size: clamp(38px, 4.4vw, 61px);
    line-height: 1.16;
    text-shadow: 0 2px 10px #070c0899;
  }

  .directory-scene .journey-copy h3 br {
    display: initial;
  }

  .directory-scene :is(.market-directory-briefs, .charging-briefs),
  .directory-scene .journey-link .directory-desktop-label {
    display: none;
  }

  .directory-scene .journey-link .directory-mobile-label {
    display: inline;
  }

  #explore .journey-copy > p {
    margin: clamp(14px, 1.8vw, 26px) 0 0;
    min-height: 0;
    max-width: 100%;
    color: #f0f4f0;
    font-size: clamp(15px, 1.48vw, 20px);
    line-height: 1.65;
    text-shadow: 0 1px 5px #050906;
  }

  #explore .directory-mobile-brief {
    display: block;
  }

  #explore .journey-copy .journey-link {
    justify-content: center;
    width: max-content;
    min-width: min(100%, 260px);
    max-width: 100%;
    gap: 8px;
    min-height: clamp(52px, 5.8vw, 67px);
    margin-top: clamp(14px, 1.8vw, 24px);
    padding-inline: 14px;
    background: #38d674;
    font-size: clamp(17px, 1.63vw, 23px);
  }

  #explore .journey-copy .journey-link:hover {
    background: #54e084;
  }

  #explore .journey-link [aria-hidden="true"] {
    font-size: clamp(22px, 2vw, 29px);
  }

  #explore .journey-nav {
    z-index: 2;
    grid-area: 2 / 1;
    width: auto;
    margin: 0 18px 19px;
    padding: 6px;
    border: 0;
    box-shadow: 0 8px 22px #0006;
    border-radius: 23px;
    background: #1e1e1e;
  }

  #explore .journey-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.26fr) repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  #explore .journey-tabs button {
    min-height: clamp(62px, 6vw, 80px);
    padding: 5px 3px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: #afb0b6;
    font-size: clamp(.6875rem, .95vw, .8125rem);
    line-height: 1.3;
  }

  #explore .journey-tabs button:hover {
    background: #ffffff11;
  }

  #explore .journey-tabs button[aria-selected="true"] {
    background: #1f232b;
    color: #54d389;
  }

  #explore .journey-tabs button[aria-selected="true"]::after {
    content: none;
  }

  #explore .journey-tabs .tile-icon {
    width: 27px;
    height: 26px;
    padding: 0;
    background: transparent;
  }

  :is(#preview-market, #preview-charging) .journey-art {
    z-index: 0;
    width: 100%;
  }

  :is(#preview-market, #preview-charging) .journey-art::after {
    display: block;
    z-index: 0;
    background: linear-gradient(
      90deg,
      transparent 29%,
      #10161233 47%,
      #0b130fd6 62%,
      #0b120ef5 100%
    );
  }

  #preview-market .journey-art {
    background: #111813;
  }

  #preview-market .journey-art img {
    left: 0;
    right: auto;
    width: 62%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
  }

  #preview-market .journey-art::after {
    background: linear-gradient(to right, transparent 44%, #11181352 52%, #111813 62%);
  }

  #preview-charging:where(:not([hidden]), [data-warm], :target) .journey-art {
    background: var(--charging-backdrop) left center / cover no-repeat;
  }

  #preview-charging .journey-art::after {
    background: linear-gradient(90deg, transparent 44%, #06100d44 56%, #06100d80 70%, #07150f99 100%);
  }

  #preview-charging .journey-phones {
    align-self: start;
    justify-self: end;
    width: 57%;
    margin: clamp(42px, 5.6vw, 76px) 0 0;
    padding-inline-end: 7%;
  }

  #preview-charging .journey-phone {
    width: min(17.9cqw, 34cqh, 198px);
  }
}

.charging-section {
  --charging-accent: var(--brand-green, #36c878);
  --charging-card-bg: #1f1f1f;
  --charging-border: #ffffff24;
  --charging-muted: #c0c0c0;
}

#charging .charging-heading {
  margin: 0 0 25px;
  padding-block-end: 15px;
  border-block-end: 1px solid var(--charging-border);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.3;
}

.charging-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 14px 20px;
}

.charging-card,
.charging-details {
  border: 1px solid var(--charging-border);
  border-radius: 16px;
  background: var(--charging-card-bg);
}

.charging-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  grid-row: 1;
}

.charging-photo {
  position: relative;
  isolation: isolate;
  height: 235px;
  overflow: hidden;
  background: #121614;
}

.charging-photo--station img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.charging-photo-note {
  position: absolute;
  inset: auto 12px 12px auto;
  padding: 2px 9px;
  border-radius: 6px;
  background: #101410e6;
  color: #e4ece5;
  font-size: 12px;
}

.charging-photo--service img {
  position: absolute;
  top: 50%;
  right: -14%;
  width: 245%;
  max-width: none;
  height: auto;
  transform: translateY(-27.5%);
}

.charging-photo--service::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0003, transparent 45%);
  content: "";
  pointer-events: none;
}

.charging-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 21px 25px 16px;
}

.charging-label {
  display: block;
  color: var(--charging-accent);
  font-size: 14px;
  font-weight: 750;
}

.charging-copy h3,
.charging-details h3 {
  margin: 2px 0 7px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.45;
}

.charging-copy p {
  margin: 0;
  color: var(--charging-muted);
  font-size: 16px;
  line-height: 1.65;
}

.charging-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-block-start: 18px;
  padding-block: 14px 12px;
  border-block-start: 1px solid var(--charging-border);
  font-size: 14px;
}

.charging-facts strong { font: 600 16px/1.25 Arial, sans-serif; }
.charging-facts small { color: #b4b4b4; font-size: 12px; }

.charging-chip {
  padding: 2px 8px;
  border-radius: 6px;
  background: #36c87815;
  color: #b1dfbe;
}

.charging-facts--services { gap: 7px; }

.charging-facts--services span {
  padding: 1px 10px;
  border: 1px solid var(--charging-border);
  border-radius: 20px;
  color: #d1d7d1;
}

.charging-toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  min-height: 44px;
  margin-block-start: auto;
  padding: 0 2px;
  color: var(--charging-accent);
  text-align: start;
  font-size: 14px;
  font-weight: 750;
}

.charging-toggle:hover { color: #b8f2c8; }
.charging-toggle span { font: 19px/1 Arial, sans-serif; transition: transform 200ms ease; }
.charging-toggle[aria-expanded="true"] span { transform: rotate(180deg); }

.charging-details {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: clamp(20px, 3.4vw, 35px);
  scroll-margin-block-start: 16px;
}

.charging-details ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.charging-details li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px;
  border: 1px solid #36c87826;
  border-radius: 8px;
  background: #36c87809;
  color: #e1eae3;
  font-size: 14px;
  line-height: 1.55;
}

.charging-details li::before {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--charging-accent);
  content: "";
  align-self: center;
}

.charging-map-example { margin: 20px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 3vw, 32px); }
.charging-map-example img { width: min(140px, 40%); height: auto; border-radius: 12px; border: 1px solid #3e5145; }
.charging-map-example figcaption { flex: 1 1 160px; max-width: 37ch; }
.charging-map-example p { margin: 5px 0 0; color: #d3dfd6; line-height: 1.75; }

@media (max-width: 700px) {
  .charging-grid { grid-template-columns: minmax(0, 1fr); }
  .charging-card, .charging-details { grid-row: auto; }
  .charging-photo { height: clamp(160px, 40vw, 235px); }
  .charging-copy { padding: 16px 20px 13px; }
  .charging-details ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .charging-toggle span { transition: none; }
}

@media(max-width:430px) {
  .charging-details ul { grid-template-columns:1fr; }
}

.charging-map-example .charging-chip { display: inline-block; margin-block-start: .5em; }
.charging-details > p { color: var(--charging-muted); line-height: 1.7; margin: 8px 0; }
.charging-details .charging-facts--services { margin-block: 8px 12px; padding-block: 4px; border: 0; }
.charging-copy .charging-facts { margin-block-start: 8px; padding-block: 4px 9px; border: 0; }
.charging-copy .charging-toggle { margin-block-start: auto; }
.charging-copy > p + .charging-toggle { margin-block-start: 12px; }

.products-intro {
  padding-block: var(--section-space);
  border-block-start: 1px solid var(--line);
  background: radial-gradient(ellipse at 18% 50%, #18231e, transparent 55%), var(--ink);
}

.products-intro .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.products-copy h2 {
  margin: 0 0 7px;
  font-size: clamp(25px, 2.8vw, 38px);
  line-height: 1.3;
  font-weight: 800;
}

.products-copy p {
  max-width: 45ch;
  margin: 0;
  color: #bec7c1;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.9;
}

.products-picker {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.products-copy .products-hint { margin-block-start: 12px; color: #dae5dd; }

.products-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 12px);
  width: 100%;
  max-width: 390px;
}

.products-categories button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  gap: 5px;
  padding: 4px 1px;
  aspect-ratio: 1;
  border: 1px solid #506258;
  border-radius: clamp(10px, 1.15vw, 15px);
  background: #202522;
  color: var(--text);
  font: inherit;
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.35;
  font-weight: 700;
  cursor: pointer;
}

.products-categories button:hover {
  border-color: var(--brand-green);
}

.products-categories button[aria-pressed="true"] {
  border-color: var(--brand-green);
  background: #112a1c;
  color: var(--brand-green);
}

.product-icon {
  width: 45%;
  max-width: 39px;
  aspect-ratio: 1;
  background: url('assets/product-categories.webp?rev=8c83e324f50d81f9') 0 center / 400% 100% no-repeat;
  filter: grayscale(1) brightness(1.15);
}

.product-icon--accessories { background-position-x: 33.3333%; }
.product-icon--cables { background-position-x: 66.6667%; }
.product-icon--adaptors { background-position-x: 100%; }
.products-categories button[aria-pressed="true"] .product-icon {
  filter: saturate(1.65) brightness(.9);
}

.products-handset {
  width: clamp(174px, 15vw, 207px);
  max-width: 100%;
  aspect-ratio: 738 / 1600;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  margin-inline: auto;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #7a857f;
  border-radius: 14% / 6.5%;
  background: linear-gradient(125deg, #808983, #242a27 12%, #161917 82%, #737d76);
  box-shadow: 0 16px 26px #0005;
}

.products-handset > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12% / 5.6%;
  object-fit: contain;
  background: #000;
}

.products-preview { margin: 0; text-align: center; }
.products-device { margin: 0; }
.products-next { display: none; }
.products-credit {
  min-height: 1.6em;
  margin: 8px 0 0;
  color: #c1cdc4;
  font-size: 12px;
}
.products-credit a { color: inherit; text-underline-offset: 2px; }

.products-example {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  text-align: start;
  border-radius: 12% / 5.6%;
  background: #101713;
}

.product-screen-label { color: var(--brand-green); font-size: 12px; font-weight: 750; }
.products-example img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.15;
  object-fit: contain;
  border-radius: 8px;
  background: #999;
}
.products-example h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.products-example p { margin: 0; color: #d0d9d3; font-size: 13px; line-height: 1.65; }
.products-example small { color: #a8b9ae; font-size: 11px; }
@media (width < 900px) {
  .products-device:not(.is-active) { display: none; }
}

@media (min-width: 900px) {
  .products-intro .container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". preview" "copy preview" "controls preview" ". preview";
    align-items: center;
    gap: 0 clamp(24px, 4vw, 56px);
    max-width: 940px;
  }
  .products-picker { display: contents; }
  .products-copy { grid-area: copy; }
  .products-picker .products-preview { grid-area: preview; }
  .products-categories { grid-area: controls; justify-self: start; margin-block-start: 16px; }
  .products-intro {
    background: radial-gradient(ellipse at 50% 57%, #1a2b22, transparent 56%), var(--ink);
  }

  .products-copy h2 { font-size: clamp(25px, 2.3vw, 32px); }
  .products-copy p { max-width: 65ch; font-size: 14px; }

  .products-preview {
    --phone-width: clamp(164px, 15vw, 195px);
    display: grid;
    justify-items: center;
    width: 100%;
  }

  .products-device {
    grid-area: 1 / 1;
    width: var(--phone-width);
    visibility: hidden;
    opacity: 0;
    transform: translateX(-50%) scale(.86);
    pointer-events: none;
  }

  .products-device.is-next { visibility: visible; opacity: .82; }
  .products-device:not(.is-active) .products-credit { visibility: hidden; }
  .products-device.is-active {
    visibility: visible;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }

  .products-next {
    display: block;
    grid-area: 1 / 1;
    align-self: center;
    width: calc(var(--phone-width) * .43);
    height: 75%;
    transform: translateX(calc(var(--phone-width) * -.715));
    z-index: 1;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .products-next:focus-visible { outline: 2px solid var(--brand-green); }
  .products-handset { width: var(--phone-width); }
  .products-device.is-active .products-handset {
    border-color: #6bb489;
    box-shadow: 0 12px 28px #0007, 0 0 28px #36c87820;
  }

  .products-categories { max-width: 320px; }
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .products-device {
    transition: transform 380ms cubic-bezier(.2,.7,.25,1), opacity 240ms ease, visibility 0s 380ms;
  }
  .products-device:is(.is-next,.is-active) { transition-delay: 0s; }
  .products-device.is-leaving:not(.is-next):not(.is-active) { transform: translateY(-10px) scale(.8); }
}

.ev-knowledge-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.knowledge-brand { display: inline-block; font: 700 19px/1.4 Arial, sans-serif; }
.knowledge-brand em { color: var(--brand-green); font-style: normal; }

.pedia-showroom {
  --showroom-green: #37d67c;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-areas: "heading car" "guide car";
  align-content: center;
  align-items: center;
  row-gap: clamp(16px, 2vw, 28px);
  overflow: hidden;
  min-height: clamp(380px, 43vw, 550px);
  border: 1px solid #343b36;
  border-radius: 18px;
  background: radial-gradient(ellipse at 36% 66%, #182720, transparent 60%), #0c100e;
  color: #fafbf9;
}
.pedia-heading, .pedia-guide {
  position: relative;
  z-index: 1;
  padding-inline: clamp(18px, 2.5vw, 36px) 4px;
}
.pedia-heading { grid-area: heading; align-self: end; }
.pedia-heading .knowledge-brand { font-size: clamp(23px, 2.45vw, 36px); }
.pedia-heading h3 { margin: 13px 0 20px; font-size: clamp(26px, 3.25vw, 46px); line-height: 1.3; }
.pedia-model { margin-block-end: 1rem; }
#home .pedia-model > summary:hover { background: #54df90; color: var(--control-ink); }
.pedia-model p { margin: 1rem 0 .5rem; }
.pedia-model-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(68px, 27%);
  gap: .75rem;
  align-items: start;
  text-align: start;
}
.pedia-model-data img { display: block; width: 100%; height: auto; margin-block-start: .6rem; border-radius: 6px; }
@media (max-width: 360px) {
  .pedia-model-data { grid-template-columns: minmax(0, 1fr); }
  .pedia-model-data img { width: 90px; margin-block-start: 0; }
}
.pedia-model dl { margin: .5rem 0; }
.pedia-model dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid #354138; }
.pedia-model dt { color: #c8d2ca; }
.pedia-model dd { margin: 0; font-weight: 700; }
.pedia-stage { grid-area: car; min-width: 0; position: relative; }
.pedia-canvas {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  direction: ltr;
  user-select: none;
}
.pedia-canvas[role="slider"] { cursor: grab; touch-action: pan-y pinch-zoom; }
.pedia-canvas.is-dragging { cursor: grabbing; }
.pedia-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 9% 83%, transparent), linear-gradient(to right, black 87%, transparent);
  mask-composite: intersect;
}
.pedia-scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pedia-car { transform: scale(1.13); }
.pedia-spin-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  color: #dce6df;
  font-size: .875rem;
  padding: 0 .5rem .25rem;
}
.pedia-spin-controls[hidden] { display: none; }
.pedia-spin-controls bdi { color: #70df9d; font-weight: 700; }
.pedia-spin-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #53916c;
  border-radius: 50%;
  background: #193326;
  color: #b2f2c8;
  cursor: pointer;
}
.pedia-spin-controls button:hover { background: #24372a; }
.pedia-spin-controls svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.pedia-canvas:focus-visible { outline: 2px solid #78e9a1; outline-offset: -3px; }
.pedia-spin-controls button:focus-visible { outline: 2px solid #78e9a1; outline-offset: 2px; }
.pedia-spin-status:not(:empty) { display: block; margin: .4em; text-align: center; color: #edf1eb; }
.pedia-guide { grid-area: guide; align-self: start; }
.pedia-guide > p { margin: 0; color: #dfE6e0; font-size: clamp(15px, 1.48vw, 19px); line-height: 1.68; }
.pedia-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: .55rem 1rem;
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
  color: #bac9bf;
}
.pedia-features li { display: inline-flex; align-items: center; gap: .35em; font-size: .8125rem; line-height: 1.5; }
.pedia-features svg { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
.pedia-cta { gap: 5px; min-width: min(100%, 235px); font-size: clamp(16px, 1.5vw, 20px); }
.pedia-cta span { margin-inline-start: 8px; }

.knowledge-news { min-width: 0; overflow: hidden; border: 1px solid #393d39; border-radius: 18px; background: #1e201f; display: flex; flex-direction: column; }
.knowledge-byline { padding: 18px; }
.news-intro, .knowledge-story p { color: #c5cac7; font-size: 15px; line-height: 1.75; margin: 9px 0 15px; }
.news-intro { margin: 6px 0 0; }
.news-map { width: 100%; height: auto; display: block; }
.knowledge-story { flex: 1; display: flex; flex-direction: column; padding: 17px 20px; }
.knowledge-story h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; margin: 6px 0 14px; }
.knowledge-story small { color: #bbc0bd; font-size: 12px; }
.knowledge-story details { margin-top: auto; }
.knowledge-story summary { cursor: pointer; font-weight: 700; }
.knowledge-story summary, .knowledge-story a { color: var(--brand-green); }

@media (min-width: 761px) {
  .knowledge-news { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "brand map" "story map"; }
  .knowledge-byline { grid-area: brand; padding-bottom: 0; }
  .news-map { grid-area: map; align-self: center; }
  .knowledge-story { grid-area: story; }
}
@media (max-width: 760px) {
  .ev-knowledge-grid { gap: 12px; }
  .pedia-showroom {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "car" "guide";
    row-gap: 0;
    padding: 22px 0;
    text-align: center;
  }
  .pedia-heading, .pedia-guide { padding-inline: clamp(14px, 4vw, 26px); }
  .pedia-heading h3 { margin: 8px 0 12px; }
  .pedia-stage { width: min(100%, 495px); margin: 4px auto; }
  .pedia-scene { mask-image: linear-gradient(to bottom, transparent, black 8% 84%, transparent); }
  .pedia-spin-controls { margin-block-end: .5rem; }
  .pedia-features { justify-content: center; margin: 12px 0 18px; }
  .pedia-cta { width: 100%; }
  .news-intro, .knowledge-story p { font-size: 14px; }
  .knowledge-story summary { min-height: 44px; padding-block: 7px; }
}


#community + #lifestyle { margin-block-start: var(--section-space); }

.ev-merch-selected {
  position: relative;
  background: #0d0f0e;
  box-shadow: 0 0 0 100vmax #0d0f0e;
  clip-path: inset(0 -100vmax);
}

.ev-merch-selected::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
  box-shadow: 0 0 0 100vmax var(--line);
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}

.ev-merch-stage {
  --stage-width: min(1172px, calc(100vw - 108px));
  width: var(--stage-width);
  margin-inline: calc((100% - var(--stage-width)) / 2);
  padding-block: var(--section-space);
  display: grid;
  grid-template-columns: 40% 55%;
  gap: 5%;
  align-items: center;
}

.ev-merch-heading img {
  display: block;
  border-radius: 11px;
  margin-block-end: 13px;
}

.ev-merch-selected #ev-community-life-title {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.25;
  letter-spacing: -2px;
  color: #49d182;
}

.ev-merch-copy p {
  margin: 20px 0 26px;
  font-size: 18px;
  line-height: 1.9;
  color: #cad1cd;
}

.ev-merch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 20px;
  border-radius: 9px;
  background: #33c776;
  color: #072212;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.ev-merch-link:hover { background: #49d182; }
.ev-merch-link:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.ev-merch-photo { display: block; width: 100%; height: auto; }
.merch-strips {
  display: grid;
  grid-template-rows: 415fr 407fr 432fr;
  aspect-ratio: 1;
  width: 100%;
  background-color: #0c0e10;
}
.merch-strips > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.merch-preview {
  display: grid;
  container-type: size;
  place-items: center;
}
.merch-preview .merch-strips { width: min(100%, 100cqh); }
.merch-strips > img[hidden] { visibility: hidden; }
.merch-strip-top { grid-row: 1; }
.merch-strip-middle { grid-row: 2; }
.merch-strip-bottom { grid-row: 3; }
.merch-outfit summary { cursor: pointer; list-style: none; }
#home .merch-outfit summary.ev-merch-link:hover { background: #54df90; color: var(--control-ink); }
.merch-outfit summary::-webkit-details-marker { display: none; }
.merch-outfit summary::after { content: ""; width: .5em; height: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.merch-outfit[open] summary::after { transform: rotate(225deg); }
.merch-outfit ul { margin: 16px 0 0; padding-inline-start: 20px; color: #d8dfda; line-height: 1.8; }
.merch-outfit li + li { margin-block-start: 8px; }

@media (max-width: 650px) {
  .ev-merch-stage {
    --stage-width: calc(100vw - 38px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .ev-merch-copy { display: contents; }
  .ev-merch-heading { display: flex; align-items: center; gap: 10px; }
  .ev-merch-heading img { width: 34px; height: 34px; margin: 0; }
  .ev-merch-selected #ev-community-life-title { font-size: 32px; letter-spacing: -1px; }
  .ev-merch-photo { order: 1; margin-block-start: 17px; }
  .ev-merch-copy p { order: 2; font-size: 15px; line-height: 1.85; margin: 17px 0; }
  .merch-outfit { order: 3; }
  #lifestyle .merch-outfit summary.ev-merch-link { display: flex; width: fit-content; margin-inline: auto; }
}

#community.journey-destination { min-height: 0; }

#community {
  background: linear-gradient(180deg, #181716, #131715 60%, #171817);
  padding-block-end: 0;
}
.community-layout {
  display: grid;
  grid-template: "heading profile" auto "notes profile" auto / minmax(0, .88fr) minmax(0, 1.12fr);
  align-content: center;
  gap: 22px clamp(28px, 5vw, 76px);
}
.community-heading { grid-area: heading; align-self: end; }
#community #community-title { margin: 0 0 .5rem; font-size: 1rem; font-weight: 750; line-height: 1.55; color: #48d085; }
#membership-heading { margin: 0; font-size: clamp(1.875rem, 3.2vw, 3rem); font-weight: 840; line-height: 1.4; }
#membership-heading span { display: block; }
.community-notes { grid-area: notes; align-self: start; max-width: 65ch; }
.community-intro, .community-galaxy-brief p { color: #c5cac7; font-size: .9375rem; line-height: 1.75; }
.community-intro { margin: 0 0 18px; }
.community-galaxy-brief { padding-inline-start: 14px; border-inline-start: 2px solid var(--brand-green); }
.community-galaxy-brief h3 { margin: 0 0 6px; color: var(--brand-green); font-size: 1.375rem; line-height: 1.4; }
.community-galaxy-brief p { margin: 0; }
.membership {
  grid-area: profile;
  width: min(100%, 470px);
  min-width: 0;
  justify-self: center;
  color: #f5f6f1;
}
#membership-frames {
  --portrait-size: clamp(140px, 45.4vw, 188px);
  position: relative;
  isolation: isolate;
  height: calc(var(--portrait-size) + 11px);
  touch-action: pan-y pinch-zoom;
  user-select: none;
  background: radial-gradient(ellipse 39% 48% at 50% 56%, #1c513747, transparent);
}
#membership-frames::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -16px 0 -12px;
  background: url('assets/journeys/galaxy-orbits.svg?rev=1dd2cb388caf8f45') 50% 49% / 200% auto no-repeat;
  opacity: .19;
  mask-image: radial-gradient(ellipse 64% 44% at 50% 58%, black 25%, transparent 98%);
  pointer-events: none;
}
.membership-portrait, .membership-frame {
  position: absolute;
  left: 50%;
  top: 52%;
  width: var(--portrait-size);
  height: var(--portrait-size);
  transform: translate(-50%, -50%);
}
.membership-portrait {
  pointer-events: none;
  /* The clip follows the middle of the rounded stroke in all three frame assets. */
  clip-path: inset(17% round calc(var(--portrait-size) * .18));
}
.membership-portrait::before { content: ""; position: absolute; inset: 18.5%; border-radius: 20%; background: #15271e; box-shadow: 0 0 40px #23b56e14; }
.membership-portrait img { position: absolute; inset: 23% 19% auto; width: 62%; height: 62%; object-fit: contain; }
.membership-frame {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 20%;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: left .36s ease, transform .36s ease, opacity .36s ease;
}
.membership-frame img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.membership-frame[data-place="center"] { z-index: 2; opacity: 1; }
.membership-frame[data-place="left"] { left: 16.3%; opacity: .53; transform: translate(-50%, -50%) perspective(330px) rotateY(22deg) scale(.60); }
.membership-frame[data-place="right"] { left: 83.7%; opacity: .53; transform: translate(-50%, -50%) perspective(330px) rotateY(-22deg) scale(.60); }
.membership-frame:focus-visible { outline: 3px solid #b1edc6; outline-offset: -12px; }
.membership-frame[data-place="center"]::after {
  content: "Ⅱ";
  position: absolute;
  inset: auto auto 14% 12%;
  padding: 4px 7px;
  border-radius: 50%;
  background: #16281f;
  color: #e3f4e7;
  opacity: 0;
  font: bold 13px/1.1 Arial, sans-serif;
}
.membership[data-paused="true"] .membership-frame[data-place="center"]::after { content: "▶"; }
.membership-frame[data-place="center"]:focus-visible::after { opacity: 1; }
@media (hover: hover) {
  .membership-frame[data-place="center"]:hover::after { opacity: 1; }
}
.membership-name { margin: -5px 0 0; text-align: center; font-size: 1.625rem; font-weight: 800; line-height: 1.4; }
.membership-stories { display: grid; }
.membership-story {
  grid-area: 1 / 1;
  display: grid;
  grid-row: 1 / span 3;
  grid-template-rows: subgrid;
  align-content: start;
  min-width: 0;
}
.membership-story[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.membership-tier { margin: 2px 0 0; text-align: center; font-size: 1rem; font-weight: 750; line-height: 1.65; color: #50d990; }
.membership-story[data-story="gold"] .membership-tier { color: #e8c573; }
.membership-explanation { margin: 10px auto 0; max-width: 335px; text-align: center; color: #c0cbc3; font-size: .9375rem; line-height: 1.85; text-wrap: pretty; }
.membership-post { margin: 25px 0 0; padding: 17px 19px 18px; border: 1px solid #354038; border-radius: 16px; background: linear-gradient(120deg,#1c211e,#202923); }
.membership-post header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.membership-post b { font-size: .9375rem; font-weight: 750; line-height: 1.65; color: #cae6d1; }
.membership-post small { color: #b4bdb7; font-size: .75rem; }
.membership-post p { margin: 8px 0 0; color: #f5f5ef; font-weight: 520; font-size: 1.0625rem; line-height: 1.8; }
.membership-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
  #community .community-layout { width: min(100%, 510px); grid-template: "heading" "profile" "notes" / minmax(0, 1fr); gap: 13px; }
  .community-heading, .community-notes { margin-inline: 24px; }
  .membership { width: 100%; }
  .membership-explanation { width: calc(100% - 48px); }
  .membership-post { margin-inline: 20px; }
  .community-notes { margin-top: 16px; padding-top: 20px; border-top: 1px solid #344037; }
}
@media (prefers-reduced-motion: reduce) {
  .membership-frame { transition: none; }
}

#preview-community[hidden]:not([data-warm]):not(:target) #membership-frames::before { background-image: none; }
#preview-community[hidden]:not([data-warm]):not(:target) .membership img { display: none; }

.evsawy-peek {
  --edge: 1;
  /* Let the character occupy the existing section gutter on either side of the rule. */
  height: calc(2 * var(--section-space));
  margin-block: calc(-1 * var(--section-space));
  z-index: 1;
  position: relative;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}
.evsawy-peek img {
  position: absolute;
  top: 0;
  right: 0;
  height: 114%;
  width: auto;
  transform: translateX(calc(var(--edge) * var(--retreat, 4%)));
}
.evsawy-peek--left { --edge: -1; }
.evsawy-peek--left img { right: auto; left: 0; }

#evsawy {
  border-block-start: 1px solid var(--line);
  padding-block: var(--section-space);
  background: radial-gradient(ellipse at 50% 78%, #182822, var(--ink) 65%);
}
.evsawy-copy {
  max-width: 640px;
  margin-block-end: clamp(20px, 3vw, 38px);
}
.evsawy-copy > span {
  font-weight: 700;
  color: var(--brand-green);
}
.evsawy-copy p {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
}
.evsawy-example { margin-block-start: 14px; padding-inline-start: 14px; border-inline-start: 2px solid var(--brand-green); }
.evsawy-example strong { color: #78db9f; }
#evsawy-title {
  margin: 6px 0 10px;
  color: var(--brand-green);
  font-size: clamp(29px, 4vw, 48px);
  line-height: 1.3;
}
.evsawy-scene {
  --figure-height: min(440px, 72vw);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2.8vw, 36px);
}
.evsawy-scene .evsawy-phone {
  height: var(--figure-height);
  width: auto;
  aspect-ratio: 300 / 639;
  padding: clamp(2px, .55vw, 4px);
  transform: none;
}
.evsawy-phone img { width: 100%; height: 100%; object-fit: contain; background: #020403; }
.evsawy-standing { display: block; height: var(--figure-height); width: auto; }

@media (min-width: 900px) {
  #evsawy > .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    max-width: 940px;
  }
  .evsawy-copy { margin: 0; }
  .evsawy-scene { --figure-height: clamp(245px, 29vw, 375px); gap: 16px; }
}

/* Show the original character's head in the last directory tab. */
.journey-tabs .evsawy-tab-head {
  display: block;
  width: 30px;
  height: 31px;
  margin-block-end: 3px;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 900px) {
  .journey-tabs .evsawy-tab-head {
    width: 25px;
    height: 26px;
    margin-block-end: 0;
    justify-self: center;
  }
}

#rewards {
  background: #0d0d0d;
}
.rewards > .container {
  display: grid;
  justify-items: center;
  text-align: center;
  row-gap: 14px;
}
.rewards-art,
.journey-art--rewards {
  background: #0d0d0d;
}
.rewards-art {
  width: min(100%, 540px);
  aspect-ratio: 900 / 790;
}
.journey-art--rewards {
  container-type: size;
}
.rewards-art .rewards-stack,
.journey-art--rewards .rewards-stack {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 91%, transparent);
}
.journey-art--rewards .rewards-stack {
  width: min(100%, 110cqh);
  aspect-ratio: 900 / 790;
  height: auto;
  max-height: 100%;
  margin-inline: auto;
}
.rewards-canvas {
  position: absolute;
  inset: 0;
}
.rewards-canvas img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 17%;
}
/* The card and ticket sit between the two sides of the same wallet.
   Set --wallet-transform on the holder to move its three layers together. */
.rewards-holder { display: contents; }
.rewards-holder[hidden], .rewards-canvas img[hidden] { display: none; }
.rewards-holder img { transform: var(--wallet-transform, none); }
.rewards-shadow { z-index: 1; }
.rewards-wallet-back { z-index: 2; }
.rewards-card { z-index: 3; }
.rewards-ticket { z-index: 4; }
.rewards-wallet-front { z-index: 5; }
.rewards-heading, .rewards-copy {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 52ch;
}
.rewards-brand {
  color: #d8dfdb;
  font-size: clamp(16px, 2vw, 22px);
}
.rewards-brand::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin: 8px auto 0;
  background: var(--brand-green);
}
#rewards-title {
  color: #f4f4f2;
  font-size: clamp(30px, 4.5vw, 58px);
}
#rewards-title em {
  color: var(--brand-green);
  font-style: normal;
}
.rewards-copy p {
  margin: 0;
  color: #cbd0cc;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.8;
}
.rewards-copy .rewards-example { color: #bdc6bf; font-size: .92rem; }
@media (min-width: 820px) {
  .rewards > .container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". art" "heading art" "copy art" ". art";
    align-items: center;
    gap: 0 clamp(25px, 6vw, 84px);
    text-align: start;
  }
  .rewards-art { grid-area: art; }
  .rewards-heading, .rewards-copy { justify-self: start; justify-items: start; }
  .rewards-heading { grid-area: heading; margin-block-end: 12px; }
  .rewards-copy { grid-area: copy; }
  .rewards-brand::after { margin-inline: 0; }
}
@media (max-width: 740px) {
  .journey-art--lifestyle {
    height: auto;
    aspect-ratio: 800 / 348;
  }
}

/* The foreground and the tab strip share one continuous scene. */
#explore .directory-scene:where(:not(#preview-market, #preview-charging)) .journey-art {
  width: 100%;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  background-color: #101813;
}

#preview-products .journey-art {
  background-image: radial-gradient(ellipse at 28% 52%, #315747, #13291f 42%, #101813 75%);
}

#preview-knowledge:where(:not([hidden]), [data-warm], :target) .journey-art {
  background: linear-gradient(85deg, #09130f77, #0a150fe6 72%), url('assets/evpedia/tang-l.webp?rev=5f50c29f9fe7bbb0') left center / cover;
}

#preview-evsawy .journey-art {
  background-image: radial-gradient(ellipse at 30% 60%, #1b5a46, #0d2c21 43%, #101813 76%);
}

#preview-lifestyle .journey-art {
  container-type: size;
  background: #101310;
}

#preview-lifestyle .merch-preview {
  width: 100%;
  height: 100%;
}

@media (min-width: 901px) {
  #explore .directory-scene:where(:not(#preview-market, #preview-charging)) .journey-art {
    z-index: 0;
    justify-items: end;
    padding-block-end: clamp(88px, 8vw, 108px);
  }

  #explore .directory-scene:where(:not(#preview-market, #preview-charging)) .journey-art::after {
    background: linear-gradient(90deg, transparent 33%, #0e171255 49%, #0e1712e8 66%, #101612fa);
  }

  #explore .directory-scene:where(:not(#preview-market, #preview-charging)) :is(.journey-phones, .galaxy-layout) {
    width: 54%;
    margin: 0;
  }

  #explore :is(#preview-products, #preview-knowledge, #preview-evsawy) .journey-phone {
    width: min(20cqw, 39cqh, 195px);
  }

  #preview-community .galaxy-layout { padding: 12px 2% 12px 3%; }
  #preview-lifestyle .merch-preview { width: 55%; }
  #preview-rewards .rewards-stack {
    width: min(55%, 110cqh);
    margin: 0;
    justify-self: end;
  }
}

@media (min-width: 901px) and (max-width: 1150px) {
  #preview-community .galaxy-layout {
    grid-template-columns: minmax(0, .44fr) minmax(0, 1fr);
    gap: 6px;
  }
  #preview-community .galaxy-post { padding: 6px 8px; }
  #preview-community .galaxy-post p { font-size: 13px; }
  #preview-community .galaxy-post b { font-size: 14px; }
  #preview-community .galaxy-avatar { flex-basis: 30px; }
}

@media (max-width: 900px) {
  #explore .directory-scene:where(:not(#preview-market, #preview-charging)) .journey-art {
    --art-heading-space: calc(var(--directory-title-inset) + 11px + clamp(28px, 8.3vw, 50px) * 2.46);
    grid-area: 1 / 1 / 5;
    height: 100%;
    min-height: var(--directory-scene-height);
    aspect-ratio: auto;
    padding-block: var(--art-heading-space) 8px;
    place-items: center;
  }

  #explore .directory-scene:where(:not(#preview-market, #preview-charging)) .journey-art::after {
    background: linear-gradient(to bottom, #0c1713b3, transparent 32%, transparent 87%, var(--card-background));
  }

  #explore :is(#preview-products, #preview-knowledge, #preview-evsawy) .journey-phone {
    width: min(34cqw, 43cqh, 170px);
  }

  #preview-community .galaxy-layout { padding-block: 3px; }
  #preview-lifestyle .merch-preview { min-height: 0; }
  #preview-rewards .rewards-stack {
    width: min(95%, 116cqh);
    margin: 0;
  }
}

#preview-knowledge .directory-mobile-brief {
  text-wrap: pretty;
}
#preview-knowledge .directory-mobile-brief bdi {
  direction: ltr;
  white-space: nowrap;
}
@media (max-width: 900px) {
  #explore.journey-ready #preview-knowledge {
    grid-template-rows: auto minmax(9rem, 1fr) auto;
  }
  #explore.journey-ready #preview-knowledge .journey-copy h3 {
    margin-block-end: .5rem;
    font-size: clamp(1.5rem, 7.2vw, 3rem);
    line-height: 1.35;
    text-wrap: balance;
  }
  #preview-knowledge .journey-copy h3 br { display: none; }
  #explore.journey-ready #preview-knowledge .journey-art {
    grid-area: 1 / 1 / 3;
    grid-template-rows: subgrid;
    container-type: normal;
    padding-block: 0;
    min-height: var(--directory-scene-height);
  }
  #explore.journey-ready #preview-knowledge .journey-phones {
    grid-area: 2 / 1;
    align-self: stretch;
    container-type: size;
    width: 100%;
    padding-block: 8px 13px;
  }
  #explore.journey-ready #preview-knowledge .directory-mobile-brief {
    grid-row: 3;
    margin-block: .6rem 0;
    font-size: clamp(.85rem, 3.7vw, 1.0625rem);
    text-wrap: balance;
  }
}

/* One action row belongs to the card, independently of the selected panel. */
.journey-card > .journey-install {
  z-index: 1;
  display: inline-flex;
  align-self: center;
  justify-self: center;
  justify-content: center;
  width: max-content;
  min-width: min(8.5rem, 54%);
  max-width: 54%;
  min-height: 44px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 26px);
  background: #36c878;
}
.journey-card > .journey-install:hover { background: #54df90; }
@media (max-width: 900px) {
  #explore.journey-ready .journey-panel { grid-area: 1 / 1 / 6; }
  .journey-card > .journey-install {
    grid-area: 6 / 1;
    margin-block: calc(var(--mascot-button-gap) + 5px) var(--mascot-button-gap);
    font-size: clamp(14px, 4vw, 17px);
  }
}
@media (min-width: 901px) {
  #explore.journey-ready .journey-card {
    grid-template-rows: minmax(calc(var(--directory-stage) - 64px), auto) auto auto;
  }
  #explore.journey-ready .journey-nav { grid-row: 3; }
  .journey-card > .journey-install {
    grid-area: 2 / 1;
    min-height: 48px;
    margin-block: 0 16px;
    font-size: clamp(1rem, 1.3vw, 1.1875rem);
  }
  #explore .directory-scene .journey-art:not(.market-directory-image) {
    padding-block-end: calc(clamp(88px, 8vw, 108px) + 64px);
  }
}
#explore:not(.journey-ready) .journey-card > .journey-install {
  display: flex;
  margin-block: 12px;
}

/* Five responsive Lifestyle alternatives. Active only in the review URLs. */
.ls-section {
  --ls-surface: #121715;
  scroll-margin-block-start: 28px;
  padding: 0;
  min-width: 0;
}
.ls-section:focus { outline: none; }
.ls-composition {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  grid-template-areas: "art copy" "art action";
  grid-template-rows: 1fr auto;
  column-gap: clamp(24px, 4vw, 52px);
  min-height: 510px;
  overflow: hidden;
  isolation: isolate;
}
.ls-copy { grid-area: copy; direction: rtl; align-self: end; padding: 32px 0 0; }
.ls-brand { display: inline-block; color: #36c878; font: 750 clamp(18px, 2vw, 23px)/1.3 Cairo, sans-serif; }
.ls-section #ev-community-life-title {
  color: #f5f5f2;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 13px 0 14px;
  text-wrap: balance;
}
.ls-copy p { margin: 0; max-width: 33ch; color: #c6cdc8; font-size: clamp(16px, 1.55vw, 19px); line-height: 1.9; }
.ls-art { grid-area: art; margin: 0; min-width: 0; overflow: hidden; background: #141a17; border-radius: 20px; }
.ls-art picture { display: block; height: 100%; }
.ls-art img { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 50% 45%; }
.ls-cta {
  grid-area: action;
  direction: rtl;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: start;
  flex-wrap: wrap;
  gap: 7px;
  background: #36c878;
  color: #08140e;
  min-height: 54px;
  border-radius: 10px;
  padding: 12px 24px;
  margin: 24px 0 44px;
  font: 800 16px/1.6 Cairo, sans-serif;
  transition: background-color 180ms ease, box-shadow 180ms ease;
  text-align: center;
}
.ls-cta:hover { background: #68dd97; box-shadow: 0 8px 28px #0002; }
.ls-cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.ls-variant-1 .ls-art { position: relative; }
.ls-variant-1 .ls-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 75%, #18161650); pointer-events: none; }
.ls-variant-2 .ls-composition {
  grid-template-areas: "display display" "art copy" "art action";
  grid-template-rows: auto 1fr auto;
  background: #151816;
  border-radius: 22px;
  padding: clamp(22px, 3vw, 40px);
  column-gap: clamp(20px, 3vw, 40px);
}
.ls-display { grid-area: display; direction: ltr; margin: 0 0 20px; }
.ls-display small { display: block; font: 700 19px/1.2 Arial, sans-serif; letter-spacing: .04em; }
.ls-display strong { display: block; font: 800 clamp(75px, 10vw, 136px)/.98 Arial, sans-serif; letter-spacing: -.065em; }
.ls-variant-2 .ls-art { height: 405px; border-radius: 12px; }
.ls-variant-2 .ls-art img { object-position: 52% 42%; }
.ls-variant-2 .ls-brand { display: none; }
.ls-variant-2 .ls-cta { margin-bottom: 24px; }
.ls-variant-3 .ls-composition { min-height: 460px; }
.ls-variant-3 .ls-art { border-radius: 14px; background: #151715; align-self: center; aspect-ratio: 3 / 2; }
.ls-variant-3 .ls-art img { object-fit: contain; }
.ls-variant-3 .ls-copy { align-self: end; }
.ls-variant-4 .ls-composition {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "art" "action";
  grid-template-rows: auto auto auto;
  gap: 0;
}
.ls-variant-4 .ls-copy { text-align: center; padding: 0 0 25px; }
.ls-variant-4 .ls-copy p { max-width: none; }
.ls-variant-4 .ls-art { height: clamp(340px, 38vw, 470px); border-radius: 22px; }
.ls-variant-4 .ls-art img { object-position: 50% 0%; }
.ls-variant-4 .ls-cta { justify-self: center; margin: -27px 0 0; position: relative; z-index: 1; min-width: 260px; box-shadow: 0 0 0 9px #181616; }
.ls-variant-5 .ls-composition {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-areas: "copy art" "action art";
  background: #111714;
  border-radius: 22px;
  gap: 0 28px;
}
.ls-variant-5 .ls-copy { padding: 36px 0 0 32px; }
.ls-variant-5 .ls-cta { margin-left: 32px; }
.ls-variant-5 .ls-art { border-radius: 0; height: 530px; }
.ls-variant-5 .ls-art img { object-position: 50% 50%; }
.ls-review-inline { direction: rtl; display: grid; gap: 12px; padding: 18px; margin-bottom: -32px; background: #222825; border: 1px solid #3a4b40; border-radius: 14px; }
.ls-review-inline p { margin: 0; font-size: 14px; color: #cbd7cf; }
.ls-review-options { display: flex; gap: 8px; flex-wrap: wrap; }
.ls-review-options button { min-width: 44px; min-height: 44px; border: 1px solid #56645b; border-radius: 8px; background: #19201c; font-size: 16px; font-weight: 750; }
.ls-review-options button[aria-pressed="true"] { background: #36c878; color: #0b180f; border-color: #36c878; }
.ls-review-inline a { text-decoration: underline; text-underline-offset: 4px; font-size: 14px; color: #9be9b9; justify-self: start; }

@media (max-width: 760px) {
  .ls-section { scroll-margin-block-start: 18px; }
  .ls-composition {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "art" "copy" "action";
    grid-template-rows: auto auto auto;
    min-height: 0;
    column-gap: 0;
  }
  .ls-art { aspect-ratio: 4 / 3; border-radius: 15px; }
  .ls-art img { object-position: 50% 43%; }
  .ls-copy { padding: 22px 0 0; }
  .ls-brand { font-size: 19px; }
  .ls-section #ev-community-life-title { font-size: clamp(28px, 8.2vw, 40px); line-height: 1.4; margin: 9px 0 10px; }
  .ls-copy p { max-width: none; font-size: 16px; line-height: 1.85; }
  .ls-cta { justify-self: stretch; width: 100%; min-height: 52px; margin: 20px 0 0; padding: 12px 15px; font-size: 16px; }
  .ls-variant-1 .ls-art::after { background: linear-gradient(0deg, #18161680, transparent 25%); }
  .ls-variant-2 .ls-composition {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "display" "art" "copy" "action";
    grid-template-rows: auto;
    padding: 22px 17px;
    border-radius: 17px;
    gap: 0;
  }
  .ls-display { margin-bottom: 17px; }
  .ls-display small { font-size: 16px; }
  .ls-display strong { font-size: clamp(44px, 17vw, 96px); }
  .ls-variant-2 .ls-art { height: auto; aspect-ratio: 1.2; }
  .ls-variant-2 .ls-copy { padding-top: 18px; }
  .ls-variant-2 .ls-cta { margin-bottom: 0; }
  .ls-variant-3 .ls-composition { min-height: 0; }
  .ls-variant-3 .ls-art { aspect-ratio: 3 / 2; border-radius: 12px; }
  .ls-variant-4 .ls-copy { text-align: right; padding-bottom: 22px; }
  .ls-variant-4 .ls-art { height: auto; aspect-ratio: 1.02; border-radius: 16px; }
  .ls-variant-4 .ls-art img { object-position: 50% 40%; }
  .ls-variant-4 .ls-cta { justify-self: stretch; margin: 18px 0 0; min-width: 0; box-shadow: none; }
  .ls-variant-5 .ls-composition {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "art" "action";
    grid-template-rows: auto;
    padding: 22px 17px;
    gap: 0;
    border-radius: 17px;
  }
  .ls-variant-5 .ls-copy { padding: 0 0 24px; }
  .ls-variant-5 .ls-art { height: auto; aspect-ratio: 1.2; border-radius: 12px; }
  .ls-variant-5 .ls-cta { margin: 20px 0 0; }
  .ls-review-inline { margin-bottom: -12px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-cta { transition: none; }
}


/* Shared controls outside the section directory. The directory sets its own geometry. */
.store-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 18px 4px;
}
.landing-footer > .container > .section-link { margin-inline: 10px; }
.store-links a { gap: .35em; }
.section-link.section-back { margin-inline-start: 1.25rem; }
#home {
  --control-accent: var(--brand-green);
  --control-ink: #0a1b11;
  --control-surface: #1e1e20;
  --control-selected: #20272c;
  --control-edge: #41464a;
  --control-label: #c9ccd0;
  --control-icon-size: 26px;
}

#home :is(.action, .ev-merch-link, .ls-cta, .market-detail-toggle,
          .charging-toggle, .market-sale-steps summary, .ev-knowledge summary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  border-radius: 999px;
  padding-inline: clamp(16px, 2vw, 24px);
  background: var(--control-accent);
  color: var(--control-ink);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

#home :is(.external, .expand, .back, .market-return) {
  min-height: 44px;
  max-width: 100%;
  padding: 7px 14px;
  border: 1px solid var(--control-edge);
  border-radius: 999px;
  background: var(--control-surface);
  color: #ebeeec;
  font-weight: 650;
  line-height: 1.5;
}

#home :is(.external, .expand, .back) { padding-inline: 12px; }
#home :is(.market-detail-toggle, .charging-toggle, .market-sale-steps summary, .ev-knowledge summary) {
  display: flex;
  align-self: center;
  margin-inline: auto;
  gap: 6px;
  width: max-content;
  min-height: 44px;
  padding: 5px 12px;
  border: 0;
  font-size: 14px;
  line-height: 1.5;
}
#home button.charging-toggle { padding-inline: 9px; }
#home :is(.market-detail-toggle, .charging-toggle, details > summary),
#home :is(.market-detail-toggle, .charging-toggle, details > summary):hover {
  background: var(--control-surface);
  border: 1px solid var(--control-edge);
  color: #e7f5eb;
}
#home :is(.market-detail-toggle, .charging-toggle, details > summary):hover,
#home details[open] > summary { border-color: var(--control-accent); }
#home .market-sale-steps { margin-block-start: 12px; }
#home .market-sale-steps[open] ol { margin-block-start: 12px; }
#home .market-grid .market-card-description { margin-block-end: 12px; }
#home .ev-knowledge summary { list-style: none; }
#home .ev-knowledge summary::-webkit-details-marker { display: none; }
#home .ev-knowledge summary::after {
  content: "";
  width: 16px;
  flex: none;
  height: 18px;
  background: currentColor;
  clip-path: polygon(45% 5%, 55% 5%, 55% 78%, 82% 54%, 90% 61%, 50% 97%, 10% 61%, 18% 54%, 45% 78%);
}
#home .ev-knowledge details[open] > summary::after { transform: rotate(180deg); }

#home :is(.market-switch, .products-categories, .membership-buttons) {
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--control-edge);
  border-radius: 20px;
  background: var(--control-surface);
}
#home :is(.market-switch button, .products-categories button, .membership-tile) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: auto;
  min-width: 0;
  min-height: 64px;
  height: 100%;
  padding: 4px 2px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--control-label);
  font: 600 clamp(12px, 1.1vw, 14px)/1.3 Cairo, sans-serif;
}
#home :is(.market-switch button, .products-categories button)[aria-pressed="true"],
#home .membership-buttons input:checked + .membership-tile,
#home .ls-review-options button[aria-pressed="true"] {
  color: var(--control-accent);
  background: var(--control-selected);
}
#home .market-switch button[aria-pressed="true"]::after { content: none; }
#home .membership-tile .membership-indicator { display: none; }
#home .membership-tile .membership-badge { flex: none; width: var(--control-icon-size); height: var(--control-icon-size); background-color: transparent; }
#home .product-glyph {
  width: var(--control-icon-size);
  height: var(--control-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#home .profile-tabs button[aria-pressed="true"],
#home .profile-follow[aria-pressed="true"] { background: var(--control-selected); color: var(--control-accent); }
#home .profile-follow { border-radius: 999px; }
#home .spin button { width: 44px; height: 44px; border-color: var(--control-edge); background: var(--control-selected); }
#home .ls-review-options button { border-radius: 12px; border-color: var(--control-edge); color: var(--control-label); background: var(--control-surface); }

#home :is(a, button, summary):focus-visible,
#home .membership-buttons input:focus-visible + .membership-tile {
  outline: 2px solid #d1ffde;
  outline-offset: -3px;
}
@media (hover: hover) {
  #home :is(.action, .ev-merch-link, .ls-cta, .market-detail-toggle,
            .charging-toggle, .market-sale-steps summary, .ev-knowledge summary):hover { background: #54df90; }
  #home :is(.external, .expand, .back, .market-return,
            .market-switch button, .products-categories button, .membership-tile, .ls-review-options button, .spin button):hover {
    border-color: var(--control-accent);
  }
}
@media (max-width: 900px) {
  #home { --control-icon-size: 21px; }
}

.journey-ready .journey-fallback,
#explore:not(.journey-ready) .journey-card {
  display: none;
}

#explore.journey-ready > #journey-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#explore:not(.journey-ready) { display: block; }
html:has(#explore:not(.journey-ready)) { scroll-behavior: auto; }
#explore:not(.journey-ready) > #journey-title {
  position: static;
  margin: 0 0 .8em;
}

.journey-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}

.journey-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-green);
  text-decoration: underline;
  text-underline-offset: .25em;
}

@media (max-width: 900px) {
  .top .nav {
    flex-wrap: wrap;
    min-height: var(--header-height);
    height: auto;
    gap: 2px 10px;
    padding-block: 3px;
  }

  .top .external { margin-inline-start: auto; }

  .journey-nav { container: directory-dock / inline-size; }

  #explore .journey-tabs button {
    font-size: .6875rem;
    height: auto;
    min-height: 64px;
    grid-template-rows: 21px minmax(32px, auto);
    padding-block-end: max(3px, .26em);
    overflow-wrap: anywhere;
  }

  #explore .journey-tabs { align-items: stretch; }
}

/* A larger preferred text size needs fewer, equally sized columns. */
@container directory-dock (max-width: 14em) {
  #explore .journey-tabs button { flex-basis: calc(50% - 4px); }
}

html:has(#evs-main-nav) { scroll-padding-block-start: var(--header-height); }
.evs-bar {
  --nav-green: hsl(142 71% 45%);
  --nav-ink: hsl(9 4% 9%);
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  font-family: Cairo, Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  pointer-events: none;
}
.evs-bar [hidden] { display: none; }
.evs-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.evs-icon {
  width: 1rem; height: 1rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.evs-desktop, .evs-mobile, .evs-menu, .evs-scrim, .evs-rail, .evs-store-dialog { pointer-events: auto; }
.evs-desktop { display: none; padding-block: 1.5rem; transition: all .5s ease-out; }
.is-scrolled .evs-desktop {
  padding-block: 1rem;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  background: hsl(9 4% 9% / .85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}
.evs-inner, .evs-logo, .evs-actions, .evs-desktop-nav, .evs-links,
.evs-install span, .evs-pill { display: flex; align-items: center; }
.evs-inner { max-width: 80rem; margin-inline: auto; padding-inline: 2rem; justify-content: space-between; }
.evs-logo, .evs-actions { gap: .75rem; }
.evs-logo img { display: block; width: auto; height: 3rem; transition: transform .3s, filter .3s; }
.evs-logo img:hover { transform: scale(1.05); filter: brightness(1.1) drop-shadow(0 0 10px rgb(0 255 140 / .35)); }
.evs-signature {
  display: flex; flex-direction: column; border-right: 1px solid rgb(255 255 255 / .15);
  padding-right: .75rem; text-transform: uppercase; line-height: 1.25; white-space: nowrap;
}
.evs-signature strong { font-size: 10px; letter-spacing: .1em; font-weight: 700; color: rgb(255 255 255 / .6); }
.evs-signature small { font-size: 9px; letter-spacing: .05em; font-weight: 700; color: var(--nav-green); }
.evs-desktop-nav { gap: 2rem; }
.evs-links { gap: 1.75rem; padding: 0; margin: 0; list-style: none; }
.evs-links a {
  position: relative; font-size: .875rem; line-height: 1.25rem; font-weight: 600;
  color: rgb(255 255 255 / .65); white-space: nowrap; transition: color .2s;
}
.evs-links a:hover, .evs-links a:focus-visible { color: white; }
.evs-links a::after {
  content: ''; position: absolute; right: 0; bottom: -.25rem;
  width: 0; height: 1px; background: var(--nav-green); transition: width .3s;
}
.evs-links a:is(:hover,:focus-visible)::after { width: 100%; }
.evs-language {
  padding: .375rem .75rem; border: 1px solid rgb(255 255 255 / .1); border-radius: 999px;
  font-size: .75rem; line-height: 1rem; font-weight: 700; color: #a1a1aa;
  transition: color .2s, border-color .2s;
}
.evs-language:hover { color: white; border-color: rgb(255 255 255 / .3); }
.evs-install {
  position: relative; overflow: hidden; padding: .625rem 1.5rem; border-radius: 999px;
  background: var(--nav-green); color: var(--nav-ink); font-size: .875rem;
  font-weight: 700; line-height: 1.25rem; white-space: nowrap; transition: transform .3s, box-shadow .3s;
}
.evs-install span { position: relative; z-index: 1; gap: .5rem; }
.evs-install::before { content: ''; position: absolute; inset: 0; background: rgb(255 255 255 / .15); transform: translateY(100%); transition: transform .3s; }
.evs-install:hover { transform: scale(1.05); box-shadow: 0 0 30px -5px hsl(142 71% 45% / .7); }
.evs-install:hover::before { transform: translateY(0); }
.evs-install .evs-icon { stroke-width: 2; transition: transform .2s; }
.evs-install:hover .evs-icon { transform: translateX(-2px); }

.evs-mobile { position: relative; z-index: 3; padding: .75rem 1rem 0; transition: transform .28s cubic-bezier(.4,0,.2,1); }
.evs-pill {
  justify-content: space-between; border: 1px solid rgb(255 255 255 / .08);
  border-radius: 1.25rem; padding: .625rem 1rem; background: rgb(24 24 27 / .95);
  box-shadow: 0 8px 32px rgb(0 0 0 / .55), 0 2px 8px rgb(0 0 0 / .3), 0 0 0 1px rgb(255 255 255 / .03);
}
.evs-mobile .evs-logo img { height: 2.5rem; }
.evs-mobile .evs-logo img:hover { transform: none; filter: brightness(1.1); }
.evs-mobile .evs-actions { gap: .5rem; }
.evs-mobile .evs-language { padding: .25rem .625rem; }
.evs-menu-toggle {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 34px; height: 34px; padding: 6px; border: 0; background: transparent;
}
.evs-menu-toggle span { display: block; flex: none; width: 22px; height: 3.5px; border-radius: 999px; transition: transform .28s ease-in-out, opacity .28s ease-in-out; }
.evs-menu-toggle span:nth-child(1) { background: #1f6f3d; }
.evs-menu-toggle span:nth-child(2) { background: #2fae66; }
.evs-menu-toggle span:nth-child(3) { background: #36c878; }
.is-menu-open .evs-menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.is-menu-open .evs-menu-toggle span:nth-child(2) { opacity: 0; }
.is-menu-open .evs-menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.is-retracted .evs-mobile { transform: translateY(-120%); }
.evs-rail { position: fixed; top: calc(4.5rem + 4px); inset-inline: 1rem; z-index: 2; transition: opacity .3s, transform .3s; }
.is-retracted .evs-rail, .is-menu-open .evs-rail { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.evs-rail-mask { mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent); }
.evs-track {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; overflow-x: auto;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.evs-track::-webkit-scrollbar { display: none; }
.evs-chip {
  display: flex; align-items: center; gap: 6px; flex: none; padding: 7px 14px;
  border: 1px solid rgb(255 255 255 / .08); border-radius: 999px; background: rgb(24 24 27 / .82);
  color: rgb(255 255 255 / .65); white-space: nowrap; user-select: none; font-size: 12px;
  font-weight: 600; line-height: 1; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color .1s, transform .1s;
}
.evs-chip:hover { color: white; }
.evs-chip:active { transform: scale(.96); }
.evs-chip .evs-icon { width: 14px; height: 14px; color: var(--nav-green); }
.evs-chip[data-main-install] {
  flex-direction: row-reverse; font-weight: 700; line-height: 18px; color: black; border: 0;
  background: linear-gradient(135deg,#36c878,#2fae66);
}
.evs-chip[data-main-install] .evs-icon { width: 12px; height: 12px; margin-left: 4px; color: inherit; stroke-width: 2.5; }
.evs-scrim { position: fixed; inset: 0; z-index: 1; }
.evs-menu {
  position: fixed; inset-inline: 1rem; top: calc(4.5rem + 8px); z-index: 2; transform-origin: top center;
  opacity: 0; transform: translateY(-10px) scale(.96); pointer-events: none;
  transition: opacity .26s cubic-bezier(.16,1,.3,1), transform .26s cubic-bezier(.16,1,.3,1);
}
.is-menu-open .evs-menu { opacity: 1; transform: none; pointer-events: auto; }
.evs-menu-surface {
  border-radius: 1.5rem; border: 1px solid rgb(255 255 255 / .08); overflow: hidden; background: rgb(24 24 27 / .98);
  box-shadow: 0 24px 64px rgb(0 0 0 / .75), 0 8px 24px rgb(0 0 0 / .4), 0 0 0 1px rgb(255 255 255 / .03);
}
.evs-menu-scroll { padding: 1.25rem 1rem; max-height: calc(100dvh - 4.5rem - 28px); overflow-y: auto; overscroll-behavior: contain; }
.evs-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
.evs-card, .evs-news, .evs-menu-install { display: flex; align-items: center; gap: .625rem; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.evs-card {
  flex-direction: row-reverse; background: rgb(24 24 27 / .55); border: 1px solid rgb(255 255 255 / .07);
  border-radius: .75rem; padding: .625rem .875rem; font-size: 13px; font-weight: 600; line-height: 1.375; color: rgb(255 255 255 / .75);
}
.evs-card .evs-icon { color: #71717a; }
.evs-card:hover { color: white; border-color: hsl(142 71% 45% / .25); background: rgb(39 39 42 / .5); box-shadow: 0 0 14px -5px hsl(142 71% 45% / .18); }
.evs-card:hover .evs-icon, .evs-news .evs-icon { color: var(--nav-green); }
.evs-card:active { transform: scale(.98); }
.evs-news, .evs-menu-install {
  justify-content: center; width: 100%; padding: 1rem 1.5rem;
  border-radius: 1rem; font-size: 15px; font-weight: 700; line-height: 1.5;
}
.evs-news { --entry-delay: .38s; flex-direction: row-reverse; margin-top: .75rem; color: white; background: #27272a; border: 1px solid rgb(255 255 255 / .09); }
.evs-news:hover { background: #3f3f46; border-color: rgb(255 255 255 / .2); }
.evs-menu-install { --entry-delay: .44s; margin-top: .5rem; background: var(--nav-green); color: var(--nav-ink); }
.evs-menu-install .evs-icon { stroke-width: 2; }
.evs-menu-install:hover { transform: scale(1.02); box-shadow: 0 0 40px -5px hsl(142 71% 45% / .6); }
.evs-news:active, .evs-menu-install:active { transform: scale(.99); }
.is-menu-open :is(.evs-card,.evs-news,.evs-menu-install) { animation: evs-nav-entry .28s cubic-bezier(.16,1,.3,1) var(--entry-delay) backwards; }
@keyframes evs-nav-entry { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.evs-store-dialog {
  width: min(26rem,calc(100% - 2rem)); padding: 2.5rem 1.5rem 1.5rem; margin: auto;
  border: 1px solid rgb(255 255 255 / .12); border-radius: 1.5rem; color: white; background: #18181b;
  text-align: center; box-shadow: 0 24px 64px rgb(0 0 0 / .5);
}
.evs-store-dialog::backdrop { background: rgb(0 0 0 / .72); backdrop-filter: blur(5px); }
html:has(.evs-store-dialog[open]) { overflow: hidden; }
.evs-store-dialog h2 { margin: 0 0 1.25rem; font-size: 1.4rem; line-height: 1.5; }
.evs-close { position: absolute; inset-inline-end: .5rem; top: .25rem; width: 2.75rem; height: 2.75rem; font-size: 1.5rem; }
.evs-store-links { display: grid; gap: .65rem; }
.evs-store-link { padding: .75rem 1rem; border: 1px solid #3f3f46; border-radius: .875rem; font-weight: 700; }
.evs-store-link:hover, .evs-store-link:focus-visible { border-color: var(--nav-green); }
@media (min-width: 1024px) {
  .evs-desktop { display: block; }
  .evs-links { gap: clamp(1.125rem, calc(12.5vw - 110px), 1.75rem); }
  .evs-mobile, .evs-rail, .evs-menu, .evs-scrim { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .evs-bar *, .evs-bar *::before, .evs-bar *::after { transition-duration: 0s !important; animation: none !important; }
}

/* Membership content uses the shared tab panel row. */
#explore .directory-feature {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-width: 0;
  color: #f5f6f1;
}
.journey-card:has(> #preview-community:is(:not([hidden]), :target)) { background: linear-gradient(135deg, #101914, #1b201c 70%, var(--card-background)); }
.journey-card:has(> #preview-lifestyle:is(:not([hidden]), :target)) { background: linear-gradient(150deg, #0c1511, var(--card-background)); }
.directory-feature .community-layout {
  align-self: center;
  width: 100%;
  margin: 0;
  padding: 24px var(--directory-inset, 24px);
  min-width: 0;
}
.directory-feature .community-layout { row-gap: 12px; padding-block: 14px; }
@media (min-width: 901px) {
  .directory-feature .membership-explanation { margin-top: 6px; line-height: 1.65; }
  .directory-feature .membership-post { padding-block: 11px; }
}
.directory-feature .community-heading, .directory-feature .community-notes { margin: 0; }
.directory-feature .community-intro { margin: 0; color: #c7d1ca; }
.directory-feature #membership-heading { font-size: clamp(1.35rem, 3.2vw, 2.8rem); line-height: 1.38; }
.directory-feature #membership-frames { --portrait-size: clamp(108px, 13vw, 165px); }
.directory-feature .membership-post { margin-top: 14px; }
@media (max-width: 900px) {
  .directory-feature .community-layout {
    width: min(100%, 540px);
    justify-self: center;
    padding: 16px var(--card-inset) 0;
  }
  .directory-feature .community-layout {
    grid-template: "heading" "notes" "profile" / minmax(0, 1fr);
    gap: 8px;
  }
  .directory-feature .community-notes { border: 0; padding: 0; }
  .directory-feature .community-intro { font-size: .875rem; line-height: 1.55; }
  .directory-feature #membership-heading span { display: inline; }
  .directory-feature #membership-frames { --portrait-size: clamp(105px, 30vw, 150px); height: var(--portrait-size); }
  .directory-feature .membership-name { font-size: 1.2rem; margin: 0; }
  .directory-feature .membership-tier { margin: 0; line-height: 1.5; }
  .directory-feature .membership-explanation { width: 100%; margin-top: 4px; line-height: 1.55; }
  .directory-feature .membership-post { margin: 10px 0 0; padding: 9px 13px 11px; }
  .directory-feature .membership-post p { margin-top: 4px; font-size: .96rem; line-height: 1.6; }

}

@media (max-width: 370px) {
  .directory-feature .community-layout {
    padding-block: 8px;
    gap: 3px;
  }
  .directory-feature #membership-frames { --portrait-size: 91px; }
  .directory-feature .membership-explanation { font-size: .875rem; }
  .directory-feature .membership-post { margin-top: 6px; padding-block: 6px; }
  .directory-feature .membership-post p { font-size: .9375rem; line-height: 1.5; }
}

/* Original 1254px square campaign art. Sample x=26..1226 across all
   three pills. The empty grid tracks preserve the original y offsets. */
.outfit-art {
  display: grid;
  place-items: center;
  container-type: size;
  min-width: 0;
}
.outfit-strips {
  width: min(100%, 100cqh, 440px);
  aspect-ratio: 1200 / 1197;
  display: grid;
  grid-template-rows: 373fr 21fr 389fr 19fr 395fr;
}
.outfit-strip {
  display: block;
  min-height: 0;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
}
.outfit-strip img {
  position: absolute;
  width: calc(100% * 1254 / 1200);
  max-width: none;
  height: auto;
  left: calc(-100% * 26 / 1200);
  top: var(--photo-top);
}
.outfit-strip-top {
  grid-row: 1;
  --photo-top: calc(-100% * 29 / 373);
}
.outfit-strip-middle {
  grid-row: 3;
  --photo-top: calc(-100% * 423 / 389);
}
.outfit-strip-bottom {
  grid-row: 5;
  --photo-top: calc(-100% * 831 / 395);
}

@media (min-width: 901px) {
  .outfit-art {
    grid-area: 1 / 1;
    width: calc(100% - var(--journey-copy-width));
    justify-self: end;
    padding: 18px var(--directory-inset);
  }
}
@media (max-width: 900px) {
  .outfit-art {
    grid-area: 1 / 1 / 5;
    min-height: var(--directory-scene-height);
    padding: calc(var(--directory-title-inset) + clamp(28px, 8.3vw, 50px) * 1.23 + 12px)
             var(--directory-scene-side) 8px;
  }
}

/* The fallback links can still reveal one section when scripting is disabled. */
#explore:not(.journey-ready):has(.journey-panel:target) .journey-card { display: block; margin-top: 1rem; }
#explore:not(.journey-ready) .journey-nav,
#explore:not(.journey-ready) .journey-panel:not(:target) { display: none; }
#explore:not(.journey-ready) .journey-panel:target {
  display: grid;
  position: relative;
  min-height: 18rem;
  visibility: visible;
  pointer-events: auto;
}
#explore:not(.journey-ready) .journey-copy { display: block; z-index: 1; padding: 20px; }
#explore:not(.journey-ready) .journey-copy h3 { margin: 0; }
#explore:not(.journey-ready) .journey-art { display: none; }

/* The authored layers use a 900 × 1600 canvas cropped at object-position: 50% 17%.
   Map its slanted pocket lip into the visible box using the wallet's rendered width. */
.rewards-canvas { container-type: inline-size; }
.rewards-inserts {
  position: absolute;
  inset: 0;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 100% calc(17% + 31.6cqw), 0 calc(17% + 46.6cqw));
}

#explore.journey-ready .journey-panel { animation: none; }
#preview-products .journey-phone { --phone-zoom: 1.34; scale: var(--phone-zoom); }
#preview-evsawy .journey-phone { --phone-zoom: 1.14; scale: var(--phone-zoom); }
/* Hidden panels reserve space in the card. Keep their lazy outfit images offscreen. */
#preview-lifestyle[hidden]:not([data-warm]):not(:target) .outfit-strip img { display: none; }

@media (max-width: 900px) {
  #explore.journey-ready :is(#preview-products, #preview-evsawy) {
    grid-template-rows: auto minmax(9rem, 1fr) auto;
  }
  #explore.journey-ready :is(#preview-products, #preview-evsawy) .journey-art {
    grid-area: 1 / 1 / 3;
    grid-template-rows: subgrid;
    padding-block: 0;
    container-type: normal;
  }
  #explore.journey-ready :is(#preview-products, #preview-evsawy) .journey-phones {
    grid-area: 2 / 1;
    align-self: stretch;
    width: 100%;
    margin: 0;
    padding-block: 8px 12px;
    container-type: size;
  }
  #explore.journey-ready :is(#preview-products, #preview-evsawy) .journey-phone {
    width: min(34cqw, calc(45cqh / var(--phone-zoom)), 170px);
  }
  #explore.journey-ready :is(#preview-products, #preview-evsawy) .directory-mobile-brief {
    grid-row: 3;
  }
}
@media (min-width: 901px) {
  #explore #preview-products .journey-art {
    padding-block: 12px clamp(108px, 9vw, 128px);
  }
  #explore #preview-products .journey-phone {
    width: min(20cqw, 33.3cqh, 195px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-entrance] { --entry-state: paused; }
  [data-entrance="playing"] { --entry-state: running; }
  #preview-market[data-entrance] .market-directory-image img {
    animation: market-light 560ms ease-out backwards var(--entry-state);
  }

  :is(#preview-charging, #preview-knowledge)[data-entrance] .journey-phone {
    --entry-x: -6px;
    --entry-tilt: -3deg;
    --open-x: 2px;
    --open-tilt: 1.5deg;
    animation: phone-pair-open 590ms ease-in-out backwards var(--entry-state);
  }
  :is(#preview-charging, #preview-knowledge)[data-entrance] .journey-phone + .journey-phone {
    --entry-x: 6px;
    --entry-tilt: 3deg;
    --open-x: -2px;
    --open-tilt: -1.5deg;
    animation-delay: 90ms;
  }
  #preview-products[data-entrance] .journey-phone {
    animation: product-zoom 1000ms cubic-bezier(.22,.72,.26,1) backwards var(--entry-state);
  }
  #preview-evsawy[data-entrance] .journey-phone {
    animation: assistant-greeting 850ms ease-in-out backwards var(--entry-state);
  }

  #preview-lifestyle[data-entrance] .outfit-strip {
    animation: outfit-charge 850ms ease-in-out backwards var(--entry-state);
  }
  #preview-lifestyle[data-entrance] .outfit-strip-middle { animation-delay: 650ms; }
  #preview-lifestyle[data-entrance] .outfit-strip-top { animation-delay: 1300ms; }

  #preview-rewards[data-entrance] .rewards-card,
  #preview-rewards[data-entrance] .rewards-ticket {
    --pocket-offset: 4.8cqw;
    animation: pocket-rise 720ms ease-in-out 180ms backwards var(--entry-state);
  }
  #preview-rewards[data-entrance] .rewards-ticket {
    --pocket-offset: 2.8cqw;
    animation-duration: 660ms;
    animation-delay: 290ms;
  }
  .membership[data-intro] .membership-frame { transition-duration: 190ms; }
  .membership[data-intro] .membership-stories { visibility: hidden; }
}

@keyframes market-light {
  from { filter: brightness(.52); }
  to { filter: brightness(1); }
}
@keyframes phone-pair-open {
  from { translate: var(--entry-x) 13px; rotate: var(--entry-tilt); }
  68% { translate: var(--open-x) -2px; rotate: var(--open-tilt); }
  to { translate: 0 0; rotate: 0deg; }
}
@keyframes product-zoom {
  from { scale: .90; }
  to { scale: var(--phone-zoom); }
}
@keyframes assistant-greeting {
  from { translate: 0 9px; rotate: -2deg; scale: 1; }
  55% { translate: 0 -4px; rotate: 1.8deg; }
  to { translate: 0 0; rotate: 0deg; scale: var(--phone-zoom); }
}
@keyframes outfit-charge {
  from { opacity: .16; }
  to { opacity: 1; }
}
@keyframes pocket-rise {
  from { translate: 0 var(--pocket-offset); }
  to { translate: 0 0; }
}

#explore .journey-panel[hidden]:not([data-warm]):not(:target) .journey-profile-screen::before,
#explore .journey-panel[hidden]:not([data-warm]):not(:target) .journey-profile-screen--galaxy::after {
  background-image: none;
}
