/* Polygon EV — v2
   Design language: the Manta's chamfered diamond and its single line of light.
   ------------------------------------------------------------------------- */

:root {
  --bg: #050707;
  --bg-2: #0a0e0d;
  --bg-3: #101614;
  --line: rgba(214, 230, 224, 0.12);
  --line-strong: rgba(214, 230, 224, 0.24);
  --text: #eef3f1;
  --text-2: #a9b4b0;
  --text-3: #6d7975;
  --steel: #c9ccce;
  --brand: #097855;
  --brand-deep: #014539;
  --mint: #9be0d2;
  --led-green: #27e36f;
  --led-yellow: #ffc21f;
  --led-blue: #2f78ff;
  --led: var(--led-green); /* current LED state colour, driven by JS */

  --font: "Montserrat", "Alexandria", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1520px;
  --chamfer: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[dir="rtl"] body {
  font-family: "Alexandria", "Montserrat", system-ui, sans-serif;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--led);
  color: #000;
}

:focus-visible {
  outline: 1px solid var(--led);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* film grain — keeps large dark areas from looking flat/digital */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- type ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label,
.cap {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

[dir="rtl"] .nav a {
  letter-spacing: 0;
  font-size: 13px;
}

.label--dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 10px;
  vertical-align: 1px;
  background: var(--led);
  box-shadow: 0 0 10px var(--led);
  border-radius: 50%;
  transition: background 0.6s, box-shadow 0.6s;
}

.display {
  font-size: clamp(52px, 9.4vw, 168px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 0;
}

.display .thin {
  font-weight: 250;
}

.h2 {
  font-size: clamp(36px, 5.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
}

.h2 .thin,
.h3 .thin {
  font-weight: 250;
}

.h3 {
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
}

[dir="rtl"] .display,
[dir="rtl"] .h2,
[dir="rtl"] .h3 {
  letter-spacing: 0;
  line-height: 1.15;
}

[dir="rtl"] .display {
  font-size: clamp(46px, 8vw, 140px);
}

.lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 36em;
  margin: 0;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* line-mask reveal: JS wraps lines in .line > .line-in */
.line {
  display: block;
  overflow: hidden;
  /* room for descenders (g, y, p) below tight display line-heights; the negative margin keeps line spacing */
  padding-bottom: 0.28em;
  margin-bottom: -0.28em;
}

.line-in {
  display: block;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.btn:hover {
  border-color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
}

.btn--solid {
  background: var(--text);
  border-color: var(--text);
  color: #050707;
}

.btn--solid:hover {
  background: #fff;
  border-color: #fff;
}

.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.5s var(--ease-out);
}

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

[dir="rtl"] .btn .arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .btn:hover .arrow {
  transform: scaleX(-1) translateX(4px);
}

.btn--small {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: transform 0.6s var(--ease-out), background 0.4s;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 7, 7, 0.75), rgba(5, 7, 7, 0));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.nav.is-scrolled::before {
  opacity: 1;
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.nav__logo img:first-child {
  height: 30px;
  width: auto;
}

.nav__logo img:last-child {
  height: 13px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 34px;
  margin-inline-start: auto;
}

.nav a.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s;
  padding: 6px 0;
}

.nav a.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--led);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.nav a.nav__link:hover,
.nav a.nav__link[aria-current="page"] {
  color: var(--text);
}

.nav a.nav__link:hover::after,
.nav a.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__lang {
  font-size: 13px;
  color: var(--text-2);
  padding: 6px 2px;
  transition: color 0.3s;
}

.nav__lang:hover {
  color: var(--text);
}

.nav__lang[lang="ar"] {
  font-family: "Alexandria", sans-serif;
}

.nav__cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-2);
}

.nav__cart svg {
  width: 20px;
  height: 20px;
}

.nav__cart-count {
  position: absolute;
  top: 3px;
  inset-inline-end: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--led);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.nav__cart-count:empty,
.nav__cart-count[data-count="0"] {
  display: none;
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav__burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--text);
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}

.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 23px; }

.menu-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%);
  /* closing: the wipe plays out first, then the panel is hidden */
  transition: clip-path 0.7s var(--ease-io) 0.15s, visibility 0s linear 0.85s;
  visibility: hidden;
}

.menu-open .menu {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-io), visibility 0s;
}

.menu a.menu__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: clamp(34px, 10vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.menu a.menu__link small {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  font-weight: 500;
}

.menu__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 16px;
}

@media (max-width: 960px) {
  :root {
    --nav-h: 64px;
  }
  .nav__links {
    display: none;
  }
  .nav__actions {
    margin-inline-start: auto;
  }
  .nav__actions .btn {
    display: none;
  }
  .nav__burger {
    display: block;
  }
}

/* ---------- loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--bg);
  pointer-events: none;
}

.loader__line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 22vh;
  margin: -11vh 0 0 -1.5px;
  border-radius: 3px;
  background: linear-gradient(to top, #c9fbd9, var(--led-green));
  box-shadow: 0 0 18px 2px rgba(39, 227, 111, 0.55), 0 0 60px 8px rgba(39, 227, 111, 0.18);
  transform-origin: 50% 100%;
  transform: scaleY(0);
}

.loader__count {
  position: absolute;
  bottom: auto;
  top: calc(100vh - 56px);
  top: calc(100svh - 56px); /* the loader is as tall as the 3D canvas; keep the counter above the browser bar */
  inset-inline-start: var(--gutter);
}

.no-js .loader {
  display: none;
}

/* ---------- 3D stage ---------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.stage canvas {
  width: 100% !important;
  height: 100% !important;
}

/* overlay for dimension lines / callouts projected from 3D */
.callouts {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.callouts svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dim line,
.dim path {
  stroke: var(--text-2);
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
}

.dim text {
  fill: var(--text);
  font: 600 11px var(--font);
  letter-spacing: 0.14em;
}

/* content sits above or below the stage depending on the section */
main {
  position: relative;
}

.layer-back {
  position: relative;
  z-index: 1;
}

.layer-front {
  position: relative;
  z-index: 4;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--nav-h);
}

.hero__title {
  align-self: end;
  padding-bottom: clamp(24px, 4vh, 48px);
}

.hero__title .display {
  max-width: 11ch;
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 600px) 1fr auto;
  gap: 32px;
  align-items: end;
  padding-bottom: clamp(24px, 5vh, 56px);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__specs {
  display: flex;
  gap: 0;
  align-self: end;
  justify-self: end;
}

.hero__spec {
  padding: 0 24px;
  border-inline-start: 1px solid var(--line);
}

.hero__spec b {
  display: block;
  white-space: nowrap;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.hero__spec span {
  display: block;
  margin-top: 4px;
}

.scrollcue {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 64px;
  background: var(--line);
  overflow: hidden;
}

.scrollcue::after {
  content: "";
  position: absolute;
  left: 0;
  top: -30%;
  width: 1px;
  height: 30%;
  background: var(--led);
  box-shadow: 0 0 8px var(--led);
  animation: cue 2.2s var(--ease-io) infinite;
}

@keyframes cue {
  to { top: 100%; }
}

@media (max-width: 960px) {
  .hero {
    grid-template-rows: 1fr auto auto;
  }
  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero__specs {
    justify-self: stretch;
  }
  .hero__spec {
    flex: 1;
    padding: 0 12px;
  }
  .hero__spec:first-child {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
  .hero__spec b {
    font-size: 20px;
  }
  .scrollcue {
    display: none;
  }
}

/* ---------- chapters (pinned 3D beats) ---------- */

.chapter {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.chapter__text {
  max-width: 520px;
}

.chapter__text .label {
  display: block;
  margin-bottom: 28px;
}

.chapter__text .lead {
  margin-top: 28px;
}

.chapter--right .chapter__text {
  margin-inline-start: auto;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}

.facts li b {
  color: var(--text);
  font-weight: 500;
  text-align: end;
}

/* status chapter: giant state word behind the charger */
.status {
  position: relative;
  height: 400svh;
}

.status__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.status__pin--back {
  z-index: 1;
}

.status__pin--front {
  z-index: 4;
  margin-top: -100svh;
}

.status__word {
  position: absolute;
  inset: 0;
  /* flex (not grid) centring: an overflowing word stays centred and crops evenly on both sides */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(80px, 19vw, 340px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--led) 55%, transparent);
  white-space: nowrap;
  user-select: none;
}

[dir="rtl"] .status__word {
  letter-spacing: 0;
}

.status__word span {
  position: absolute;
  opacity: 0;
}

.status__head {
  position: absolute;
  top: calc(var(--nav-h) + 4vh);
  inset-inline: 0;
}

.status__list {
  position: absolute;
  bottom: clamp(24px, 6vh, 64px);
  inset-inline: 0;
}

.status__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.status__item {
  padding: 20px 24px 0 0;
  color: var(--text-3);
  transition: color 0.5s;
}

[dir="rtl"] .status__item {
  padding: 20px 0 0 24px;
}

.status__item h3 {
  margin: 0 0 6px;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status__item h3 i {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: box-shadow 0.5s, background 0.5s;
}

.status__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 28em;
}

.status__item.is-active {
  color: var(--text);
}

.status__item.is-active h3 i {
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

.status__item.is-active p {
  color: var(--text-2);
}

@media (max-width: 720px) {
  .status__items {
    grid-template-columns: 1fr;
  }
  .status__item {
    display: none;
    padding: 18px 0 0;
  }
  .status__item.is-active {
    display: block;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .grain,
  .scrollcue::after {
    animation: none;
  }
}

/* ---------- intro states + failsafes (if scripts never run, nothing stays hidden) ---------- */

.loader__line {
  width: calc(22vh * 5 / 78);
  margin-left: calc(22vh * -2.5 / 78);
  /* same units as the 3D canvas (100lvh), so the line lands exactly on the real LED on phones too */
  height: 22lvh;
  margin-top: -11lvh;
  width: calc(22lvh * 5 / 78);
  margin-left: calc(22lvh * -2.5 / 78);
}

.loader,
.js [data-intro],
.js [data-intro-lines] {
  animation: failsafe 0s 7s forwards;
}

.js [data-intro] {
  opacity: 0;
}

/* hidden with visibility, never a CSS transform: GSAP would read that back as a pixel offset */
.js [data-intro-lines] {
  visibility: hidden;
}

@keyframes failsafe {
  to {
    opacity: 1;
    visibility: visible;
  }
}

.loader {
  animation-name: failsafe-hide;
}

@keyframes failsafe-hide {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.no-webgl .stage,
.no-webgl .callouts {
  display: none;
}

.facts li span {
  color: var(--text-3);
}

/* ---------- portrait / phone: the 3D object owns the top of the screen, copy sits below ---------- */
@media (max-aspect-ratio: 9/10) {
  .hero {
    grid-template-rows: auto auto;
    padding-top: calc(var(--nav-h) + 40svh);
  }
  .hero__title {
    align-self: start;
    padding-bottom: 20px;
  }
  .chapter {
    align-items: flex-end;
    padding-bottom: 8svh;
  }
  .chapter__text {
    padding-top: 52svh;
  }
  .status__head .h2 {
    font-size: clamp(30px, 8vw, 44px);
  }
  .status__word {
    font-size: 24vw;
    align-items: flex-start;
    padding-top: 30svh;
  }
}

/* ---------- app chapter ---------- */

.app {
  position: relative;
  height: 420svh;
}

.app__pin {
  position: sticky;
  z-index: 4;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
}

.app__text {
  max-width: 540px;
}

.app__text .h2 {
  font-size: clamp(36px, 4.4vw, 72px);
}

.app__text .label {
  display: block;
  margin-bottom: 24px;
}

.app__lead {
  margin-top: 22px;
  font-size: 16px;
}

.app__live {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--text-2);
  border-radius: 999px;
}

.app__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 10px var(--led);
  transition: background 0.6s, box-shadow 0.6s;
}

.app__live-state {
  color: var(--text);
  font-weight: 600;
  min-width: 6.5em;
}

.app__live-sep {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.app__live .num {
  min-width: 4.4em;
}

.app__features {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

.app__features li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
}

.app__features b {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
}

.app__stores {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

@media (max-aspect-ratio: 9/10) {
  .app__pin {
    align-items: flex-end;
    padding-bottom: 5svh;
  }
  /* the cable runs down the screen — let it fade out behind the copy */
  .app__inner::before {
    content: "";
    position: absolute;
    inset: -12svh 0 -6svh 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(5, 7, 7, 0), var(--bg) 34%);
    pointer-events: none;
  }
  .app__lead,
  .app__features {
    display: none;
  }
  .app__live {
    gap: 10px;
    padding: 10px 14px;
    font-size: 12px;
  }
  .app__live .num {
    min-width: 0;
  }
}

/* touch devices: the animated grain layer sits over the WebGL canvas and costs a full-screen composite every frame */
@media (hover: none) {
  .grain {
    display: none;
  }
}

/* 3D layers use the large viewport height: constant while the mobile address bar shows/hides.
   The loader shares the exact same box, so its light line hands over to the 3D LED without a jump. */
.stage,
.callouts,
.loader {
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100lvh;
}

@media (max-aspect-ratio: 9/10) {
  /* the hanging cable passes behind the state description: fade the scene out under the copy */
  .status__list::before {
    content: "";
    position: absolute;
    inset: -10svh 0 calc(-1 * clamp(24px, 6vh, 64px)) 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(5, 7, 7, 0), var(--bg) 45%);
    pointer-events: none;
  }
}

/* ---------- statement: words brighten as you scroll past ---------- */

.statement {
  margin: 0;
  font-size: clamp(26px, 2.7vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text);
}

[dir="rtl"] .statement {
  letter-spacing: 0;
  line-height: 1.45;
}

.statement .w {
  opacity: 0.16;
}

.no-js .statement .w {
  opacity: 1;
}

.specrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
  margin: 48px 0 0;
}

.specrow div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.specrow dt {
  font-size: 13px;
  color: var(--text-3);
}

.specrow dd {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--text);
}

/* ---------- status progress track ---------- */

.status__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.status__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 18px;
}

.status__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
  transform: scaleX(0);
  transform-origin: left;
}

[dir="rtl"] .status__bar i {
  transform-origin: right;
}

.status__seg h3 {
  margin: 0 0 6px;
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 500;
  color: var(--text-3);
  transition: color 0.5s;
}

.status__seg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 26em;
  opacity: 0.6;
  transition: opacity 0.5s, color 0.5s;
}

.status__seg.is-active h3 {
  color: var(--text);
}

.status__seg.is-active p {
  color: var(--text-2);
  opacity: 1;
}

@media (max-width: 720px) {
  .status__track {
    gap: 10px;
    padding-bottom: 3.6em;
  }
  .status__seg h3 {
    font-size: 14px;
  }
  .status__seg p {
    display: none;
  }
  .status__seg.is-active p {
    display: block;
    position: absolute;
    inset-inline: var(--gutter);
    margin-top: 6px;
  }
  .status__bar {
    margin-bottom: 12px;
  }
  .specrow {
    gap: 16px 20px;
    margin-top: 32px;
  }
}

/* ---------- specs ---------- */

/* full spec sheet */
.spectable {
  margin-top: 12svh;
  border-bottom: 1px solid var(--line);
}

.spectable__group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.spectable__group h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.spectable dl {
  margin: 0;
}

.spectable dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.spectable dl > div:first-child {
  padding-top: 4px;
}

.spectable dl > div:last-child {
  border-bottom: 0;
}

.spectable dt {
  color: var(--text-3);
}

.spectable dd {
  margin: 0;
  color: var(--text);
}

.soon {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-style: normal;
  color: var(--text-2);
  vertical-align: 1px;
}

.spectable__note {
  margin: 0;
  padding: 28px 0 32px;
  font-size: 14px;
  color: var(--text-3);
  max-width: 60em;
}

/* values that change with the version fade through a swap */
[data-swap],
[data-count] {
  transition: opacity 0.25s;
}

[data-swap].is-swapping {
  opacity: 0;
}

@media (max-width: 960px) {
  .spectable__group {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .spectable dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}


/* ---------- numbers ---------- */

.numbers {
  position: relative;
  z-index: 4;
  padding: 26svh 0 16svh;
}

.numbers__statement {
  max-width: 22em;
  font-size: clamp(28px, 3.4vw, 56px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 14svh;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.stat b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(56px, 7vw, 120px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.stat b small {
  font-size: 0.22em;
  letter-spacing: 0;
  color: var(--text-2);
  margin-inline-start: 4px;
}

.stat__plus {
  font-weight: 250;
  color: var(--led-green);
}

.stat .cap {
  display: block;
  margin-top: 14px;
  font-size: 15px;
}

.partners {
  margin-top: 16svh;
}

.partners > .cap {
  display: block;
  margin-bottom: 28px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  width: max-content;
  animation: marquee 38s linear infinite;
}

/* every logo sits in the same box, so files with different padding read at a similar size */
.marquee__track img {
  width: clamp(110px, 10vw, 150px);
  height: clamp(40px, 4vw, 56px);
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.4s;
}

.marquee__track img:hover {
  opacity: 0.9;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - clamp(24px, 3.5vw, 55px)));
  }
}

[dir="rtl"] .marquee__track {
  animation-direction: reverse;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8svh;
  }
  .stat {
    padding: 18px 0 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* =========================================================================
   Home charging page
   ========================================================================= */

/* ---------- overnight: one night of charging, pinned and scrubbed ---------- */

.night {
  position: relative;
  height: 460svh;
}

.night__pin {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 100svh;
  overflow: hidden;
}

/* the sky: an absolute layer the size of the section holding a sticky panel, so it can never
   spill past the end of the night (a negative-margin sticky layer would hang 100svh into the next section) */
.night__back {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* the sky behind everything drifts from deep night to the first light of dawn */
.night__sky {
  position: sticky;
  top: 0;
  height: 100svh;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 70% -10%, rgba(30, 62, 140, calc(0.34 * (1 - var(--dawn, 0)))), transparent 70%),
    radial-gradient(130% 60% at 50% 115%, rgba(255, 168, 82, calc(0.2 * var(--dawn, 0))), transparent 70%),
    radial-gradient(90% 50% at 70% 0%, rgba(255, 214, 160, calc(0.1 * var(--dawn, 0))), transparent 70%);
  opacity: var(--sky, 0);
}

.night__inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  grid-template-rows: auto auto 1fr auto;
  padding-top: calc(var(--nav-h) + 6svh);
  padding-bottom: 9svh;
}

.night__inner > * {
  grid-column: 1;
}

.night__example {
  max-width: 30em;
}

.night__clock {
  margin-top: 2svh;
  font-size: clamp(88px, 13vw, 220px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

[dir="rtl"] .night__clock {
  text-align: right;
}

.night__meter {
  margin-top: 3svh;
}

.night__bar {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.night__bar i {
  position: absolute;
  inset: 0;
  background: var(--led);
  box-shadow: 0 0 14px var(--led);
  transform-origin: left center;
  transform: scaleX(0.2);
  transition: background 0.6s, box-shadow 0.6s;
}

[dir="rtl"] .night__bar i {
  transform-origin: right center;
}

.night__read {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 0;
}

.night__read dt {
  font-size: 13px;
  color: var(--text-3);
}

.night__read dd {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-2);
}

.night__read dd b {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.night__beats {
  position: relative;
  align-self: end;
  min-height: 9.5em;
}

.night__beat {
  position: absolute;
  inset: auto 0 0 0;
  opacity: 0;
}

.night__beat p {
  margin: 14px 0 0;
  max-width: 30em;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- calculator ---------- */

.calc {
  position: relative;
  z-index: 4;
  padding: 22svh 0 16svh;
  scroll-margin-top: 0;
}

.calc__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 9svh;
}

.calc__head .lead {
  max-width: 24em;
}

.calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}

.calc__controls {
  display: grid;
  gap: 40px;
}

.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field legend,
.field__top label {
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.field__help {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
}

.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.choice label {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.choice label:hover span {
  border-color: var(--text-2);
  color: var(--text);
}

.choice input:checked + span {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--led-green);
  outline-offset: 3px;
}

.field__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.field__top output {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* range slider: thin track, LED-green fill up to the thumb */
.range {
  --p: 50%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 10px;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--led-green) var(--p), var(--line-strong) var(--p));
}

[dir="rtl"] .range::-webkit-slider-runnable-track {
  background: linear-gradient(to left, var(--led-green) var(--p), var(--line-strong) var(--p));
}

.range::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: var(--line-strong);
}

.range::-moz-range-progress {
  height: 3px;
  border-radius: 3px;
  background: var(--led-green);
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9.5px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 6px rgba(39, 227, 111, 0.14);
  transition: transform 0.3s var(--ease-out);
}

.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 6px rgba(39, 227, 111, 0.14);
}

.range:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

.range:focus-visible {
  outline: none;
}

.range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(39, 227, 111, 0.35);
}

.calc__result {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: clamp(24px, 3vw, 44px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 22, 20, 0.9), rgba(10, 14, 13, 0.9));
}

.calc__time .cap {
  display: block;
}

.calc__time b {
  display: block;
  margin-top: 8px;
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.calc__time b small {
  font-size: 0.4em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-2);
  margin: 0 0.25em 0 0.12em;
}

.calc__night {
  margin-top: 32px;
}

.calc__track {
  position: relative;
  height: 10px;
  border-radius: 10px;
  background: var(--line);
}

.calc__track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(47, 120, 255, 0.55), var(--led-blue));
  box-shadow: 0 0 18px rgba(47, 120, 255, 0.5);
  transition: width 0.7s var(--ease-out);
}

.calc__track.is-over i {
  border-radius: 10px 0 0 10px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.calc__flag {
  position: absolute;
  top: -6px;
  left: 40%;
  width: 2px;
  height: 22px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--led-green);
  box-shadow: 0 0 10px var(--led-green);
  transition: left 0.7s var(--ease-out), opacity 0.3s;
}

.calc__track.is-over .calc__flag {
  opacity: 0;
}

.calc__hours {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.calc__by {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--text-2);
}

.calc__by b {
  color: var(--text);
  font-weight: 500;
}

.calc__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.calc__stats dt {
  font-size: 13px;
  color: var(--text-3);
}

.calc__stats dd {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.calc__msg {
  min-height: 3.2em;
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.calc__pick {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.calc__pick .cap {
  display: block;
}

.calc__pick b {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
}

.calc__price {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--text-2);
}

.calc__install {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-3);
}

.calc__note {
  margin: 40px 0 0;
  max-width: 44em;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

[data-r-time].is-swapping,
[data-r-by].is-swapping {
  opacity: 0.4;
}

/* ---------- heat + build ---------- */

.heat {
  position: relative;
  z-index: 4;
  overflow-x: clip; /* the last tick label sits right at the scale's edge */
  padding: 14svh 0 14svh;
}

.heat__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.heat__head .lead {
  max-width: 26em;
}

/* temperature scale −30 … +60 °C; Manta's rated band lights up across it */
.thermo {
  --min: -30;
  --span: 90;
  margin-top: 12svh;
  padding: 92px 0 96px;
}

.thermo__scale {
  position: relative;
}

.thermo__track {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: var(--line);
}

.thermo__band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((-20 - var(--min)) / var(--span) * 100%);
  width: calc(70 / var(--span) * 100%);
  border-radius: 6px;
  background: linear-gradient(90deg, #6fb7ff, var(--led-green) 45%, var(--led-green) 70%, #ffb547);
  box-shadow: 0 0 22px rgba(39, 227, 111, 0.35);
  transform-origin: left center;
  transform: scaleX(var(--fill, 1));
}

.thermo__ticks span {
  position: absolute;
  top: 22px;
  left: calc((var(--t) - var(--min)) / var(--span) * 100%);
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.thermo__ticks span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 1px;
  height: 6px;
  background: var(--line-strong);
}

.thermo__mark {
  position: absolute;
  bottom: 12px;
  left: calc((var(--t) - var(--min)) / var(--span) * 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.thermo__mark::after {
  content: "";
  order: 3;
  width: 1px;
  height: 22px;
  margin-top: 10px;
  background: var(--text-2);
}

.thermo__mark b {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.thermo__mark small {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-2);
}

.thermo__mark--hot b {
  color: #ffc98a;
}

.thermo__rated {
  position: absolute;
  top: 54px;
  left: calc((-20 - var(--min)) / var(--span) * 100%);
  width: calc(70 / var(--span) * 100%);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-size: 15px;
  font-weight: 500;
}

.thermo__rated small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
}

[dir="rtl"] .thermo__mark small,
[dir="rtl"] .thermo__rated small {
  font-family: var(--font);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 10svh 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* each feature's rule lights up in green as it scrolls in */
.feature::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--led-green);
  box-shadow: 0 0 10px var(--led-green);
  transform-origin: left center;
  transform: scaleX(var(--lit, 0));
  transition: transform 1.2s var(--ease-out);
}

[dir="rtl"] .feature::before {
  transform-origin: right center;
}

.feature h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- steps ---------- */

.steps {
  position: relative;
  z-index: 4;
  padding: 12svh 0 14svh;
}

.steps__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}

.steps__head {
  position: sticky;
  top: calc(var(--nav-h) + 6svh);
}

.steps__list {
  --rail: 0;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* the rail: a thin line down the steps that fills with light as you scroll */
.steps__list::before,
.steps__list::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  inset-inline-start: 5px;
  width: 1px;
  background: var(--line-strong);
}

.steps__list::after {
  width: 2px;
  margin-inline-start: -0.5px;
  background: var(--led-green);
  box-shadow: 0 0 12px var(--led-green);
  transform-origin: top;
  transform: scaleY(var(--rail));
}

.step {
  position: relative;
  padding-inline-start: 52px;
  padding-bottom: 12svh;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: 9px;
  inset-inline-start: 0;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.step.is-on::before {
  background: var(--led-green);
  border-color: var(--led-green);
  box-shadow: 0 0 14px var(--led-green);
}

.step h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-3);
  transition: color 0.6s var(--ease-out);
}

.step.is-on h3 {
  color: var(--text);
}

[dir="rtl"] .step h3 {
  letter-spacing: 0;
  line-height: 1.3;
}

.step p {
  margin: 16px 0 0;
  max-width: 30em;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- FAQ ---------- */

.faq {
  position: relative;
  z-index: 4;
  padding: 10svh 0 18svh;
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: calc(var(--nav-h) + 6svh);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary:hover {
  color: var(--text);
}

.qa summary:focus-visible {
  outline: 2px solid var(--led-green);
  outline-offset: 4px;
}

/* plus that turns into a minus */
.qa summary i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.qa summary i::before,
.qa summary i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--text-2);
  transition: transform 0.45s var(--ease-out), background 0.3s;
}

.qa summary i::after {
  transform: rotate(90deg);
}

.qa[open] summary i::after {
  transform: rotate(0deg);
}

.qa.is-closing summary i::after {
  transform: rotate(90deg);
}

.qa[open] summary i::before,
.qa[open] summary i::after {
  background: var(--led-green);
}

.qa__a {
  overflow: hidden;
}

.qa__a p {
  margin: 0;
  padding: 0 40px 28px 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}

[dir="rtl"] .qa__a p {
  padding: 0 0 28px 40px;
}

/* ---------- home charging: smaller screens ---------- */

@media (max-width: 960px) {
  .calc__head,
  .heat__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 6svh;
  }
  .calc__grid,
  .steps__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }
  .calc__result,
  .steps__head,
  .faq__head {
    position: static;
  }
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .steps__head {
    margin-bottom: 6svh;
  }
  .step {
    padding-bottom: 7svh;
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* the scale is too narrow for labels in line: markers go above and below, ticks every 20° */
  .thermo {
    padding: 96px 0 110px;
  }
  .thermo__ticks span:nth-child(odd) {
    display: none;
  }
  .thermo__mark small {
    max-width: 9em;
    white-space: normal;
  }
  .thermo__rated {
    font-size: 13px;
  }
  .thermo__rated small {
    display: none;
  }
  .calc__time b {
    font-size: 48px;
  }
  .calc__pick .btn {
    width: 100%;
    justify-content: center;
  }
}

/* portrait: the charger owns the top of the screen during the night, the readouts sit below it */
@media (max-aspect-ratio: 9/10) {
  .night__inner {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto auto auto;
    padding-top: var(--nav-h);
    padding-bottom: 5svh;
  }
  /* the cable hangs down through the copy: fade it into the dark behind the text */
  .night__pin::before {
    content: "";
    position: absolute;
    inset: 38% 0 0 0;
    background: linear-gradient(to top, var(--bg) 0%, var(--bg) 52%, rgba(5, 7, 7, 0.8) 72%, rgba(5, 7, 7, 0));
    pointer-events: none;
  }
  .night__pin::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(130% 45% at 50% 112%, rgba(255, 168, 82, calc(0.16 * var(--dawn, 0))), transparent 70%);
    pointer-events: none;
  }
  .night__inner > * {
    position: relative;
    z-index: 1;
  }
  .night__clock {
    grid-row: 2;
    font-size: 22vw;
    margin-top: 0;
  }
  .night__example {
    grid-row: 3;
    margin-top: 4px;
    font-size: 12px;
  }
  .night__meter {
    grid-row: 4;
    margin-top: 2svh;
  }
  .night__beats {
    grid-row: 5;
    margin-top: 3svh;
    min-height: 8.5em;
  }
  .night__read dd b {
    font-size: 20px;
  }
  .night__beat .h3 {
    font-size: 24px;
  }
  .night__beat p {
    margin-top: 8px;
    font-size: 14px;
  }
}

/* =========================================================================
   Business page
   ========================================================================= */

/* ---------- scale: one charger to a full car park, pinned and scrubbed ---------- */

.scale {
  position: relative;
  height: 440svh;
}

.scale__pin {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 100svh;
  overflow: hidden;
}

/* a soft dark floor under the copy, so the row of chargers never fights the text */
.scale__pin::before {
  content: "";
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(to top, rgba(5, 7, 7, 0.92) 0%, rgba(5, 7, 7, 0.6) 45%, rgba(5, 7, 7, 0));
  opacity: var(--shade, 0);
  pointer-events: none;
}

.scale__inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: end;
  gap: 40px;
  padding-top: calc(var(--nav-h) + 4svh);
  padding-bottom: 9svh;
}

.scale__count {
  display: flex;
  align-items: baseline;
  gap: 18px;
  opacity: var(--count, 0);
}

.scale__count b {
  font-size: clamp(96px, 14vw, 240px);
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.scale__count span {
  font-size: 15px;
  color: var(--text-2);
}

.scale__beats {
  position: relative;
  min-height: 12em;
}

.scale__beat {
  position: absolute;
  inset: auto 0 0 0;
  opacity: 0;
}

.scale__beat p {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--text-2);
}

.scale__legend {
  display: flex;
  gap: 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-2);
}

.scale__legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scale__legend li::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 3px;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}

/* ---------- who ---------- */

.who {
  position: relative;
  z-index: 4;
  padding: 20svh 0 10svh;
}

.who__head {
  margin-bottom: 8svh;
}

.who__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.who__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
  padding: clamp(24px, 3.4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  cursor: default;
}

/* a line of light runs along the bottom rule of the active row */
.who__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--led-green);
  box-shadow: 0 0 10px var(--led-green);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out);
}

[dir="rtl"] .who__item::after {
  transform-origin: right center;
}

.who__item h3 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text-3);
  transition: color 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}

[dir="rtl"] .who__item h3 {
  letter-spacing: 0;
  line-height: 1.25;
}

.who__item p {
  margin: 0;
  max-width: 30em;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--text-3);
  transition: color 0.5s var(--ease-out);
}

.who__item.is-active h3 {
  color: var(--text);
  transform: translateX(10px);
}

[dir="rtl"] .who__item.is-active h3 {
  transform: translateX(-10px);
}

.who__item.is-active p {
  color: var(--text-2);
}

.who__item.is-active::after {
  transform: scaleX(1);
}

/* ---------- why ---------- */

.why {
  position: relative;
  z-index: 4;
  padding: 16svh 0 18svh;
}

.why__statement {
  max-width: 21em;
  font-size: clamp(30px, 3.6vw, 60px);
}

/* ---------- process: horizontal track ---------- */

.process {
  position: relative;
  z-index: 4;
  /* height is set from the track width in JS on wide screens */
}

.process__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9svh;
  overflow: hidden;
}

.process__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.process__track {
  --p: 0;
  position: relative;
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
  will-change: transform;
}

/* the rail: one line through every step, filling with light as the track moves */
.process__track::before,
.process__track::after {
  content: "";
  position: absolute;
  top: 5px;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line-strong);
}

.process__track::after {
  height: 2px;
  margin-top: -0.5px;
  background: var(--led-green);
  box-shadow: 0 0 12px var(--led-green);
  transform-origin: left center;
  transform: scaleX(var(--p));
}

[dir="rtl"] .process__track::after {
  transform-origin: right center;
}

.pstep {
  position: relative;
  width: clamp(300px, 28vw, 430px);
  padding-top: 44px;
}

.pstep__dot {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.pstep {
  display: flex;
  flex-direction: column;
}

.pstep__card {
  flex: 1;
  min-height: clamp(200px, 26svh, 260px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 22, 20, 0.5), rgba(10, 14, 13, 0.9));
  transition: border-color 0.6s var(--ease-out), background 0.6s var(--ease-out);
}

.pstep.is-on .pstep__dot {
  background: var(--led-green);
  border-color: var(--led-green);
  box-shadow: 0 0 12px var(--led-green);
}

.pstep.is-on .pstep__card {
  border-color: var(--line-strong);
}

.pstep h3 {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-3);
  transition: color 0.6s var(--ease-out);
}

.pstep.is-on h3 {
  color: var(--text);
}

[dir="rtl"] .pstep h3 {
  letter-spacing: 0;
  line-height: 1.3;
}

.pstep p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- kit ---------- */

.kit {
  position: relative;
  z-index: 4;
  padding: 18svh 0 12svh;
}

.kit__head {
  margin-bottom: 8svh;
}

.kit__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.kit__card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 2.2vw, 34px);
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.5s var(--ease-out), background 0.5s var(--ease-out);
}

.kit__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--led-green);
  box-shadow: 0 0 14px var(--led-green);
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-out);
}

@media (hover: hover) {
  .kit__card:hover {
    border-color: var(--line-strong);
    background: rgba(16, 22, 20, 0.6);
  }
  .kit__card:hover::after {
    transform: scaleX(1);
  }
}

.kit__card h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.kit__card p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- proof ---------- */

.proof {
  position: relative;
  z-index: 4;
  padding: 8svh 0 10svh;
}

.proof__label {
  display: block;
  margin-bottom: 28px;
}

.proof__logos {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}

.proof__logos li {
  position: relative;
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
}

/* every logo sits in the same box regardless of the file's own size or padding */
.proof__logos img {
  position: absolute;
  inset: 26% 18%;
  width: 64%;
  height: 48%;
  object-fit: contain;
  transform: scale(var(--s, 1)); /* files with a lot of built-in padding get a nudge */
  opacity: 0.5;
  transition: opacity 0.4s;
}

.proof__logos li:hover img {
  opacity: 0.9;
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  z-index: 4;
  padding: 14svh 0 18svh;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 40px;
  align-items: start;
}

.contact__links {
  display: grid;
  gap: 4px;
  margin-top: 32px;
}

.contact__links .btn {
  justify-self: start;
  margin-bottom: 20px;
}

.contact__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.contact__line b {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 500;
}

.contact__line:hover b {
  color: var(--led-green);
}

/* ---------- business: smaller screens ---------- */

@media (max-width: 960px) {
  .who__item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .who__item h3,
  .who__item p {
    color: var(--text);
  }
  .who__item p {
    color: var(--text-2);
  }
  .kit__grid {
    grid-template-columns: 1fr 1fr;
  }
  .proof__logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
  /* the horizontal track becomes a plain vertical list */
  .process {
    height: auto !important;
    padding: 14svh 0 8svh;
  }
  .process__pin {
    position: static;
    height: auto;
    gap: 6svh;
  }
  .process__track {
    flex-direction: column;
    gap: 20px;
    width: auto;
    transform: none !important;
  }
  /* the rail turns vertical, running down the inline-start edge */
  .process__track::before,
  .process__track::after {
    top: 6px;
    bottom: 6px;
    left: auto;
    right: auto;
    inset-inline-start: calc(var(--gutter) + 5px);
    width: 1px;
    height: auto;
  }
  .process__track::after {
    width: 2px;
    margin: 0 0 0 -0.5px;
    transform-origin: top center;
    transform: scaleY(var(--p));
  }
  [dir="rtl"] .process__track::after {
    margin: 0 -0.5px 0 0;
    transform-origin: top center;
  }
  .pstep {
    width: auto;
    padding-top: 0;
    padding-inline-start: 36px;
  }
  .pstep__dot {
    top: 30px;
  }
  .pstep__card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .kit__grid {
    grid-template-columns: 1fr;
  }
  .kit__card {
    min-height: 0;
  }
  .proof__logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof__logos li:last-child:nth-child(odd) {
    grid-column: span 2;
    aspect-ratio: 3 / 1;
  }
  .contact__links .btn {
    justify-self: stretch;
    justify-content: center;
  }
}

/* portrait: the row of chargers fills the top, the copy sits under it */
@media (max-aspect-ratio: 9/10) {
  .scale__inner {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    align-items: end;
    gap: 0;
    padding-bottom: 5svh;
  }
  .scale__pin::before {
    inset: 45% 0 0 0;
    background: linear-gradient(to top, var(--bg) 0%, var(--bg) 45%, rgba(5, 7, 7, 0.75) 70%, rgba(5, 7, 7, 0));
  }
  .scale__count {
    grid-row: 2;
  }
  .scale__count b {
    font-size: 24vw;
  }
  .scale__beats {
    grid-row: 3;
    margin-top: 3svh;
    min-height: 10.5em;
  }
  .scale__beat .h3 {
    font-size: 24px;
  }
  .scale__beat p {
    margin-top: 8px;
    font-size: 14px;
  }
}

/* =========================================================================
   Shop: product page
   ========================================================================= */

/* the Manta stays in view on the left (drawn on the fixed stage, glued to the viewer box) while the
   buy panel and the full specifications scroll on the right */
.pdp {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.pdp__viewer {
  position: sticky;
  top: 0;
  height: 100svh;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.pdp__viewer.is-dragging {
  cursor: grabbing;
}

.pdp__hint {
  position: absolute;
  left: 50%;
  bottom: 7svh;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 0.6s;
  pointer-events: none;
}

.pdp__hint svg {
  width: 22px;
  height: 11px;
}

.pdp__viewer.has-dragged .pdp__hint {
  opacity: 0;
}

.pdp__col {
  min-width: 0;
  max-width: 660px;
  padding: calc(var(--nav-h) + 6svh) var(--gutter) 12svh 0;
}

[dir="rtl"] .pdp__col {
  padding: calc(var(--nav-h) + 6svh) 0 12svh var(--gutter);
}

/* ---------- buy panel ---------- */

.buy {
  min-height: calc(100svh - var(--nav-h) - 6svh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 6svh;
}

.buy__title {
  margin: 0;
  font-size: clamp(72px, 8.4vw, 136px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

[dir="rtl"] .buy__title {
  letter-spacing: 0;
  line-height: 1.15;
}

.buy__sub {
  margin: 12px 0 0;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 300;
  color: var(--text-2);
}

.buy__lead {
  margin: 22px 0 0;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}

.buy__choose {
  margin-top: 34px;
}

.buy__label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-3);
}

/* version picker: two cards; the chosen one gets a crisp light outline */
.vpick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vpick button {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  text-align: start;
  transition: border-color 0.35s var(--ease-out), background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.vpick b {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: start;
}

.vpick span {
  font-size: 13px;
  color: var(--text-2);
}

.vpick button:hover {
  border-color: var(--text-2);
}

.vpick button[aria-checked="true"] {
  border-color: var(--text);
  background: rgba(238, 243, 241, 0.05);
  box-shadow: inset 0 0 0 1px var(--text);
}

.vpick button:focus-visible {
  outline: 2px solid var(--led-green);
  outline-offset: 3px;
}

.buy__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 30px;
}

.buy__price b {
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.buy__price b small {
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-2);
}

.buy__note {
  font-size: 13px;
  color: var(--text-3);
}

.buy__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 26px 0 0;
}

.buy__facts div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.buy__facts dt {
  font-size: 12px;
  color: var(--text-3);
}

.buy__facts dd {
  margin: 4px 0 0;
  font-size: 15px;
}

.buy__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.buy__add {
  min-width: 220px;
  justify-content: center;
}

.buy__added {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-2);
}

.buy__added[hidden] {
  display: none;
}

.buy__added a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.buy__tick {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--led-green);
  box-shadow: 0 0 12px rgba(39, 227, 111, 0.5);
}

.buy__tick::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #050707;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.buy__after {
  margin: 26px 0 0;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.buy__unsure {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-3);
}

.buy__unsure a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- specifications in the right column ---------- */

.pdp__specs {
  padding-top: 12svh;
  scroll-margin-top: var(--nav-h);
}

.pdp .spectable {
  margin-top: 5svh;
}

.pdp .spectable__group {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 36px 0;
}

.pdp .spectable__group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  transition: color 0.5s var(--ease-out);
}

/* the group the 3D view is showing gets a small light next to its title */
.pdp .spectable__group h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 10px var(--led);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s, transform 0.5s var(--ease-out), background 0.6s, box-shadow 0.6s;
}

.pdp .spectable__group.is-active h3 {
  color: var(--text);
}

.pdp .spectable__group.is-active h3::before {
  opacity: 1;
  transform: none;
}

.docs {
  margin-top: 8svh;
}

.docs h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}

.docs__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.docs__link:last-child {
  border-bottom: 1px solid var(--line);
}

.docs__link small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}

.docs__link:hover {
  color: var(--led-green);
}

/* ---------- sticky buy bar ---------- */

.buybar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 7, 0.84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-out);
}

.buybar.is-on {
  transform: none;
}

.buybar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.buybar__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buybar__price {
  font-size: 15px;
  font-weight: 500;
}

/* the cart count pops when something is added */
.nav__cart-count.is-bump {
  animation: bump 0.7s var(--ease-out);
}

@keyframes bump {
  30% {
    transform: scale(1.6);
  }
  to {
    transform: scale(1);
  }
}

/* ---------- shop: smaller screens ---------- */

@media (max-width: 960px), (max-aspect-ratio: 9/10) {
  .pdp {
    grid-template-columns: 1fr;
  }
  .pdp__viewer {
    position: relative;
    height: 58svh;
    margin-top: var(--nav-h);
  }
  .pdp__hint {
    bottom: 2svh;
  }
  /* the copy slides up over the stage, so it needs the page colour behind it */
  .pdp__col,
  [dir="rtl"] .pdp__col {
    max-width: none;
    padding: 0 var(--gutter) 10svh;
    background: var(--bg);
  }
  .buy {
    min-height: 0;
    padding: 4svh 0 0;
  }
  .buy__title {
    font-size: 64px;
  }
  .buy__add {
    flex: 1;
    min-width: 0;
  }
  .buy__ctas .btn {
    flex: 1;
    justify-content: center;
  }
  .pdp + .faq,
  .footer {
    background: var(--bg);
  }
}

@media (max-width: 420px) {
  .buybar__name {
    display: none;
  }
  .buybar__inner {
    justify-content: space-between;
  }
}

/* =========================================================================
   Cart, checkout, order confirmation
   ========================================================================= */

.flow {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 5svh) 0 16svh;
}

/* three steps on one rail of light */
.flowsteps {
  display: flex;
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.flowsteps li {
  position: relative;
  flex: 1;
  padding-top: 14px;
  color: var(--text-3);
}

.flowsteps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.flowsteps li.is-done {
  color: var(--text);
}

.flowsteps li.is-done::before {
  background: var(--led-green);
  box-shadow: 0 0 10px rgba(39, 227, 111, 0.6);
}

.flowsteps li + li::before {
  left: 3px;
}

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

.flowsteps a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flow__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 7svh 0 6svh;
}

.flow__title {
  font-size: clamp(56px, 7.4vw, 124px);
}

.flow__count {
  margin: 0;
  font-size: 18px;
  color: var(--text-2);
  white-space: nowrap;
}

.flow__lead {
  max-width: 28em;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}

.flow__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.flow__grid[hidden] {
  display: none;
}

/* ---------- cart lines ---------- */

.cartlines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cartline {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto minmax(120px, auto) auto;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.cartline:last-child {
  border-bottom: 1px solid var(--line);
}

.cartline__img,
.miniline__img {
  display: block;
  border-radius: 18px;
  background: radial-gradient(80% 80% at 50% 35%, #1b2421, #0b0f0e 75%);
  border: 1px solid var(--line);
}

.cartline__img img {
  display: block;
  width: 100%;
  height: auto;
  padding: 12%;
}

.cartline__name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cartline__sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-2);
}

.cartline__each {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-3);
}

.qty {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

.qty button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-2);
  transition: background 0.3s, color 0.3s;
}

.qty button:hover {
  background: rgba(238, 243, 241, 0.08);
  color: var(--text);
}

.qty svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.qty output {
  min-width: 30px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.cartline__total {
  font-size: 18px;
  font-weight: 500;
  text-align: end;
  white-space: nowrap;
}

.cartline__remove {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.3s;
}

.cartline__remove:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- summary card ---------- */

.sumcard {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: clamp(24px, 2.4vw, 36px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 22, 20, 0.9), rgba(10, 14, 13, 0.9));
}

.sumcard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.sumcard__head a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sumcard__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}

.sumcard__rows {
  margin: 18px 0 0;
}

.sumcard__rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.sumcard__rows > div[hidden] {
  display: none;
}

.sumcard__rows dt {
  color: var(--text-2);
}

.sumcard__rows dd {
  margin: 0;
  text-align: end;
}

.sumcard__muted {
  font-size: 13px;
  color: var(--text-3);
}

.sumcard__discount {
  color: var(--led-green);
}

.sumcard__rows .sumcard__total {
  padding-top: 20px;
  border-bottom: 0;
}

.sumcard__total dt {
  color: var(--text);
}

.sumcard__total dd {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sumcard__go {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

.sumcard__keep {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sumcard__note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

/* ---------- empty cart ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
  padding: 0 0 6svh;
  border-top: 1px solid var(--line);
}

.empty[hidden] {
  display: none;
}

.empty__title {
  margin: 32px 0 0;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.empty .lead {
  margin: 12px 0 30px;
  max-width: 26em;
}

/* ---------- checkout form ---------- */

.orderform__group {
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  min-width: 0;
  /* the separator is a shadow, not a border, so the legend never cuts through it */
  box-shadow: inset 0 1px 0 var(--line);
}

.orderform__group:first-child {
  box-shadow: none;
}

.orderform__group legend:not(.sr-only) {
  width: 100%;
  margin-bottom: 20px;
  padding: 30px 0 0;
  font-size: 17px;
  font-weight: 600;
}

.orderform__group:first-child legend {
  padding-top: 0;
}

.ff {
  margin-bottom: 18px;
}

.ff label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-2);
}

.ff input,
.ff select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(238, 243, 241, 0.02);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming into the field */
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.ff input::placeholder {
  color: var(--text-3);
}

.ff input:hover,
.ff select:hover {
  border-color: var(--text-3);
}

.ff input:focus,
.ff select:focus {
  outline: none;
  border-color: var(--text-2);
  background: rgba(238, 243, 241, 0.04);
  box-shadow: 0 0 0 4px rgba(39, 227, 111, 0.14);
}

.ff [aria-invalid="true"] {
  border-color: #ff8a80;
  box-shadow: 0 0 0 4px rgba(255, 138, 128, 0.14);
}

.ff select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 44px;
  cursor: pointer;
}

.ff select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ff select option {
  background: #0a0e0d;
  color: var(--text);
}

.ff__select {
  position: relative;
}

.ff__select[hidden] {
  display: none;
}

.ff__select::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 18px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border: solid var(--text-2);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}

.ff__other {
  margin-top: 10px;
}

.ff__select[hidden] + .ff__other {
  margin-top: 0;
}

.ff__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.ff__help {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-3);
}

.ff__code {
  display: flex;
  gap: 10px;
}

.ff__code input {
  flex: 1;
  min-width: 0;
}

.ff__code .btn {
  height: 54px;
  padding: 0 22px;
}

.ff__status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-3);
}

.ff__status[data-kind="ok"] {
  color: var(--led-green);
}

.ff__status[data-kind="error"] {
  color: #ff8a80;
}

.orderform__status {
  min-height: 1.5em;
  margin: 8px 0 14px;
  font-size: 14px;
  color: var(--text-2);
}

.orderform__status.is-error {
  color: #ff8a80;
}

.orderform__submit {
  width: 100%;
  height: 58px;
  justify-content: center;
  font-size: 16px;
}

.orderform__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- checkout summary lines ---------- */

.minilines {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.miniline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.miniline__img {
  position: relative;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 12px;
}

.miniline__img img {
  width: 100%;
  height: 100%;
  padding: 10%;
}

.miniline__img b {
  position: absolute;
  top: -7px;
  inset-inline-end: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

.miniline__name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.miniline__total {
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- thank you ---------- */

.thanks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}

.thanks__order {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 22, 20, 0.9), rgba(10, 14, 13, 0.9));
}

.thanks__order[hidden] {
  display: none;
}

.thanks__order div {
  padding: 18px 0;
}

.thanks__order div + div {
  border-top: 1px solid var(--line);
}

.thanks__order dt {
  font-size: 13px;
  color: var(--text-3);
}

.thanks__order dd {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.thanks__next {
  grid-column: 2;
}

.thanks__order[hidden] + .thanks__next {
  grid-column: 1 / -1;
  max-width: 720px;
}

.thanks__h {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}

.thanks__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.thanks__steps li {
  position: relative;
  padding: 18px 0 18px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
}

[dir="rtl"] .thanks__steps li {
  padding: 18px 30px 18px 0;
}

.thanks__steps li::before {
  content: "";
  position: absolute;
  top: 27px;
  inset-inline-start: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.thanks__steps li:first-child::before {
  background: var(--led-green);
  border-color: var(--led-green);
  box-shadow: 0 0 10px var(--led-green);
}

.thanks__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

/* ---------- flow: smaller screens ---------- */

@media (max-width: 960px) {
  .flow__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 5svh 0 4svh;
  }
  .flow__grid,
  .thanks {
    grid-template-columns: minmax(0, 1fr);
  }
  .thanks__next {
    grid-column: auto;
  }
  .sumcard {
    position: static;
  }
  /* checkout: summary first on phones, so people see what they're ordering */
  .orderform + .sumcard {
    order: -1;
  }
  .cartline {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    grid-template-areas:
      "img info remove"
      "img qty total";
    gap: 12px 18px;
    padding: 22px 0;
  }
  .cartline__img {
    grid-area: img;
    align-self: start;
  }
  .cartline__info {
    grid-area: info;
  }
  .qty {
    grid-area: qty;
    justify-self: start;
  }
  .cartline__total {
    grid-area: total;
  }
  .cartline__remove {
    grid-area: remove;
    align-self: start;
  }
  .cartline__name {
    font-size: 17px;
  }
  .cartline__each {
    display: none;
  }
}

@media (max-width: 560px) {
  .ff__row {
    grid-template-columns: 1fr;
  }
  .flowsteps {
    font-size: 12px;
  }
}

/* =========================================================================
   Document pages (privacy) and 404
   ========================================================================= */

.doc {
  position: relative;
  z-index: 4;
  padding: calc(var(--nav-h) + 8svh) 0 16svh;
}

.doc__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 9svh;
}

.doc__title {
  font-size: clamp(56px, 7.4vw, 124px);
}

.doc__meta p {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  text-align: end;
}

.doc__meta .doc__note {
  margin-top: 6px;
  color: var(--text-3);
}

.doc__note:empty {
  display: none;
}

.doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}

/* contents: sticky beside the text, the current section marked with a small light */
.doc__toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.doc__toc summary {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-3);
  list-style: none;
  cursor: default;
  pointer-events: none;
}

.doc__toc summary::-webkit-details-marker {
  display: none;
}

.doc__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-inline-start: 1px solid var(--line);
}

.doc__toc li a {
  position: relative;
  display: block;
  padding: 7px 0 7px 18px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.3s;
}

[dir="rtl"] .doc__toc li a {
  padding: 7px 18px 7px 0;
}

.doc__toc li.is-sub a {
  padding-inline-start: 32px;
  font-size: 13px;
}

.doc__toc li a:hover {
  color: var(--text);
}

.doc__toc li a.is-on {
  color: var(--text);
}

.doc__toc li a::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  inset-inline-start: -1px;
  width: 2px;
  border-radius: 2px;
  background: var(--led-green);
  box-shadow: 0 0 10px var(--led-green);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease-out);
}

.doc__toc li a.is-on::before {
  transform: none;
}

/* the policy text: a comfortable measure and quiet hierarchy */
.policy {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  text-align: left;
}

.policy h2 {
  margin: 72px 0 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.policy > h2:first-of-type {
  margin-top: 56px;
}

.policy h3 {
  margin: 40px 0 12px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.policy h4 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.policy p {
  margin: 0 0 16px;
}

.policy ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.policy li {
  margin-bottom: 8px;
}

.policy li::marker {
  color: var(--text-3);
}

.policy li p {
  margin: 0;
}

.policy strong {
  font-weight: 600;
  color: var(--text);
}

.policy a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy__credit {
  margin-top: 48px !important;
  font-size: 12px;
  color: var(--text-3);
}

@media (max-width: 960px) {
  .doc__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4svh;
  }
  .doc__meta p {
    text-align: start;
  }
  .doc__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* phones: the contents fold into one row that opens on tap */
  .doc__toc {
    position: static;
  }
  .doc__toc-box {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 18px;
  }
  .doc__toc summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 16px 0;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
    pointer-events: auto;
  }
  .doc__toc summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border: solid var(--text-2);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    transition: transform 0.3s;
  }
  .doc__toc-box[open] summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
  }
  .doc__toc ol {
    margin-bottom: 16px;
  }
}

/* ---------- 404 ---------- */

.nf {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 6svh) 0 10svh;
}

.nf__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nf__code {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  font-size: clamp(120px, 20vw, 300px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

/* the zero is the Manta's light line, flickering like a loose plug */
.nf__led {
  width: clamp(6px, 0.9vw, 12px);
  height: 0.62em;
  border-radius: 99px;
  background: linear-gradient(to top, #c9fbd9, var(--led-green));
  box-shadow: 0 0 22px 3px rgba(39, 227, 111, 0.5), 0 0 80px 12px rgba(39, 227, 111, 0.16);
  animation: nf-flicker 4.2s steps(1) infinite;
}

@keyframes nf-flicker {
  0%, 18%, 22%, 61%, 64%, 66%, 100% {
    opacity: 1;
  }
  19%, 21%, 62%, 65% {
    opacity: 0.12;
  }
}

.nf__title {
  margin-top: 6svh;
}

.nf__lead {
  margin: 20px auto 0;
  max-width: 28em;
}

.nf__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

@media (prefers-reduced-motion: reduce) {
  .nf__led {
    animation: none;
  }
}

/* ---------- footer: the last chapter ---------- */

.footer {
  --glow: 0;
  position: relative;
  z-index: 4;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* soft green light rising behind the wordmark, like the Manta's LED on a wall */
.footer__glow {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 90%;
  pointer-events: none;
  opacity: var(--glow);
}

.footer__glow i {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 100%, rgba(39, 227, 111, 0.16), rgba(39, 227, 111, 0.04) 55%, transparent 75%),
    radial-gradient(30% 30% at 50% 100%, rgba(155, 224, 210, 0.1), transparent 70%);
  animation: footer-breathe 5s var(--ease-io) infinite;
}

@keyframes footer-breathe {
  50% {
    opacity: 0.55;
  }
}

.footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-top: clamp(96px, 18vh, 200px);
  padding-bottom: clamp(56px, 10vh, 110px);
}

.footer__title {
  font-size: clamp(56px, 7.6vw, 150px);
  white-space: nowrap; /* "Ready when / you are." always reads as two lines */
}

.footer__cta-side .lead {
  max-width: 26em;
}

.footer__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.footer__btns .btn {
  will-change: transform;
}

/* the line of light: full width, charging from one end as the footer scrolls in */
.footer__charge {
  position: relative;
  height: 1px;
  background: var(--line);
}

.footer__charge i {
  position: absolute;
  inset: -1px 0;
  background: linear-gradient(90deg, rgba(39, 227, 111, 0.1), var(--led-green) 88%, #d6ffe4);
  box-shadow: 0 0 16px rgba(39, 227, 111, 0.55);
  transform-origin: left center;
  transform: scaleX(var(--charge, 0));
}

/* the bright head of the line, riding its leading edge */
.footer__charge i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 90px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 255, 228, 0.95), rgba(39, 227, 111, 0.45), transparent);
  filter: blur(1px);
  opacity: calc(1 - var(--charge, 0) * 0.85);
}

[dir="rtl"] .footer__charge i {
  background: linear-gradient(270deg, rgba(39, 227, 111, 0.1), var(--led-green) 88%, #d6ffe4);
  transform-origin: right center;
}

[dir="rtl"] .footer__charge i::after {
  right: auto;
  left: 0;
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 140px);
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(64px, 11vh, 130px);
}

/* ---- big navigation rows: title, a short descriptor, an arrow ---- */
.footer__nav {
  display: flex;
  flex-direction: column;
}

.footer__nav a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding: clamp(16px, 1.7vw, 24px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  overflow: hidden;
}

.footer__nav a:first-child {
  border-top: 1px solid var(--line);
}

/* hover: a faint wash of light sweeps in under the row */
.footer__nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(39, 227, 111, 0.07), transparent 70%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease-out);
}

.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--led-green);
  box-shadow: 0 0 10px var(--led-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-out);
}

[dir="rtl"] .footer__nav a::before {
  background: linear-gradient(270deg, rgba(39, 227, 111, 0.07), transparent 70%);
  transform-origin: right center;
}

[dir="rtl"] .footer__nav a::after {
  transform-origin: right center;
}

/* the title sits in a mask so it can rise into place */
.footer__row {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.footer__row b {
  display: block;
  font-size: clamp(28px, 3.3vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  transition: transform 0.6s var(--ease-out);
}

[dir="rtl"] .footer__row b {
  letter-spacing: 0;
  line-height: 1.35;
}

.footer__nav small {
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.4s;
}

.footer__arrow {
  flex: none;
  width: clamp(22px, 2vw, 30px);
  height: clamp(22px, 2vw, 30px);
  color: var(--text-3);
  transition: transform 0.6s var(--ease-out), color 0.4s;
}

[dir="rtl"] .footer__arrow {
  transform: scaleX(-1);
}

@media (hover: hover) {
  .footer__nav a:hover::before,
  .footer__nav a:hover::after {
    transform: scaleX(1);
  }
  .footer__nav a:hover .footer__row b {
    transform: translateX(14px);
  }
  [dir="rtl"] .footer__nav a:hover .footer__row b {
    transform: translateX(-14px);
  }
  .footer__nav a:hover small {
    color: var(--text-2);
  }
  .footer__nav a:hover .footer__arrow {
    color: var(--led-green);
    transform: rotate(-45deg);
  }
  [dir="rtl"] .footer__nav a:hover .footer__arrow {
    transform: scaleX(-1) rotate(-45deg);
  }
}

/* ---- talk to us ---- */
.footer__reach {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.footer__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-3);
}

/* local time in Cairo, with a small pulsing light */
.footer__clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
}

.footer__clock b {
  font-weight: 500;
  color: var(--text-2);
}

.footer__clock i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--led-green);
  box-shadow: 0 0 8px var(--led-green);
  animation: live 2.4s var(--ease-io) infinite;
}

.footer__email {
  align-self: flex-start;
  font-size: clamp(22px, 2.3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.3s, background-size 0.6s var(--ease-out);
}

[dir="rtl"] .footer__email {
  background-position: 100% 100%;
}

.footer__email:hover {
  color: var(--led-green);
  background-size: 100% 1px;
}

.footer__phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.footer__phone {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(238, 243, 241, 0.015);
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}

.footer__phone small {
  font-size: 12px;
  color: var(--text-3);
}

.footer__phone span {
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  text-align: start;
}

.footer__phone svg {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 12px;
  height: 12px;
  color: var(--text-3);
  transition: transform 0.5s var(--ease-out), color 0.3s;
}

.footer__phone:hover {
  border-color: rgba(39, 227, 111, 0.6);
  background: rgba(39, 227, 111, 0.05);
  transform: translateY(-2px);
}

.footer__phone:hover svg {
  color: var(--led-green);
  transform: translate(2px, -2px);
}

.footer__address {
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
}

.footer__social a {
  display: inline-flex;
  gap: 4px;
  font-size: 15px;
  color: var(--text);
  transition: color 0.3s;
}

.footer__social i {
  font-style: normal;
  color: var(--text-3);
  transition: transform 0.4s var(--ease-out), color 0.3s;
}

.footer__social a:hover,
.footer__social a:hover i {
  color: var(--led-green);
}

.footer__social a:hover i {
  transform: translate(2px, -2px);
}

/* ---- small print ---- */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}

.footer__eu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__eu img {
  width: 30px;
  height: auto;
}

.footer__legal,
.footer__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.footer__legal a,
.footer__end a {
  color: var(--text-2);
  transition: color 0.3s;
}

.footer__legal a:hover,
.footer__end a:hover {
  color: var(--led-green);
}

/* back to top: a ring that fills with how far down the page you are */
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}

.footer__ring svg:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.footer__ring circle {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.2;
}

.footer__ring .footer__ring-fill {
  stroke: var(--led-green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--page, 0) * 100);
  filter: drop-shadow(0 0 3px rgba(39, 227, 111, 0.7));
}

.footer__ring-arrow {
  width: 13px;
  height: 13px;
  transition: transform 0.5s var(--ease-out);
}

.footer__top:hover .footer__ring-arrow {
  transform: translateY(-3px);
}

/* the wordmark from the logo, full width, with light gliding across it like over brushed steel */
.footer__mark {
  padding: 0 var(--gutter);
  margin-bottom: -2.2vw;
}

.footer__mark span {
  --sweep: 50%;
  display: block;
  width: 100%;
  aspect-ratio: 565 / 92;
  background:
    linear-gradient(105deg, transparent 38%, rgba(190, 255, 214, 0.42) 50%, transparent 62%) var(--sweep) 0 / 260% 100% no-repeat,
    linear-gradient(to bottom, #13805a 0%, #0b4632 55%, #050707 100%);
  -webkit-mask: url("../img/brand/wordmark.svg") center / contain no-repeat;
  mask: url("../img/brand/wordmark.svg") center / contain no-repeat;
}

/* no pointer to follow on touch screens: the light drifts across by itself */
@media (hover: none) {
  .footer__mark span {
    animation: footer-sweep 7s var(--ease-io) infinite;
  }
}

@keyframes footer-sweep {
  0% {
    background-position: 130% 0, 0 0;
  }
  60%,
  100% {
    background-position: -30% 0, 0 0;
  }
}

@media (max-width: 960px) {
  .footer__cta {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 14svh;
    padding-bottom: 7svh;
  }
  .footer__main {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 560px) {
  .footer__title {
    font-size: 15vw;
  }
  .footer__btns .btn {
    flex: 1;
    justify-content: center;
  }
  /* rows: title over its descriptor, arrow on the side */
  .footer__nav a {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title arrow" "desc arrow";
    gap: 4px 16px;
    padding: 16px 0;
  }
  .footer__row {
    grid-area: title;
  }
  .footer__row b {
    font-size: 27px;
  }
  .footer__nav small {
    grid-area: desc;
  }
  .footer__arrow {
    grid-area: arrow;
  }
  .footer__email {
    font-size: 21px;
  }
  .footer__phone {
    padding: 15px;
  }
  .footer__phone span {
    font-size: 14px;
  }
  .footer__phone svg {
    top: 15px;
    inset-inline-end: 14px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer__legal > span:first-child {
    flex-basis: 100%;
  }
  .footer__end {
    width: 100%;
    justify-content: space-between;
  }
  .footer__mark {
    margin-bottom: -1.5vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer__glow i,
  .footer__mark span,
  .footer__clock i {
    animation: none;
  }
}

/* ---------- impact: pinned map ---------- */

.mapblock {
  position: relative;
  height: 340svh;
  margin-top: 10svh;
}

.mapblock__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
}

.mapblock__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: center;
  width: 100%;
}

.mapblock__count {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.mapblock__count b {
  font-size: clamp(96px, 12vw, 210px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.mapblock__count span {
  font-size: clamp(22px, 2vw, 32px);
  color: var(--text-3);
}

.mapblock__label {
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--text-2);
}

.mapblock__list {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--text-3);
}

.mapblock__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.45;
  transition: opacity 0.5s, color 0.5s;
}

.mapblock__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  transition: background 0.5s, box-shadow 0.5s;
}

.mapblock__list li.is-lit {
  opacity: 1;
  color: var(--text);
}

.mapblock__list li.is-lit::before {
  background: var(--led-green);
  box-shadow: 0 0 8px var(--led-green);
}

.mapblock__map {
  height: min(78svh, 760px);
  overflow: hidden;
  /* soft edges so the zoomed map fades out instead of being cut */
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 62%, transparent 100%);
}

.mapblock__map svg {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.map__regions path {
  fill: #0b100f;
  stroke: #26302d;
  stroke-width: var(--stroke, 1);
  stroke-linejoin: round;
  transition: fill 0.8s var(--ease-out), stroke 0.8s var(--ease-out);
}

.map__regions path.is-lit {
  fill: #0b2d21;
  stroke: #27e36f;
}

/* zoomed out: the Delta is too dense for every label — the list beside the map names them all */
svg.is-wide .map__label--near {
  opacity: 0 !important;
}

.map__dots circle {
  fill: #33403c;
  transition: fill 0.5s;
}

.map__dots circle.is-lit {
  fill: #27e36f;
  filter: drop-shadow(0 0 3px #27e36f);
}

.map__ring {
  fill: none;
  stroke: #27e36f;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.map__ring.is-lit {
  animation: map-pulse 2.4s var(--ease-out) infinite;
}

@keyframes map-pulse {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(4.5);
  }
}

.map__labels text {
  fill: var(--text);
  font-family: var(--font);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.6s;
  paint-order: stroke;
  stroke: #050707;
  stroke-width: 0.25em;
  stroke-linejoin: round;
}

[dir="rtl"] .map__labels text {
  font-family: "Alexandria", var(--font);
}

.map__labels text.is-lit {
  opacity: 1;
}

/* ---------- impact: energy ---------- */

.energy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-top: 6svh;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.energy__big {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.energy__big > b {
  font-size: clamp(96px, 14vw, 240px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.energy__big > span {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  color: var(--text-3);
  max-width: 13em;
}

.energy__big > span b {
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

.energy__live {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.energy__live span:last-child {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-3);
}

.energy__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--led-green);
  box-shadow: 0 0 10px var(--led-green);
  animation: live 1.6s ease-in-out infinite;
}

@keyframes live {
  50% {
    opacity: 0.35;
  }
}

.energy__equiv {
  margin: 18px 0 0;
  font-size: 17px;
  color: var(--text-2);
  max-width: 26em;
}

.energy__note {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--text-3);
}

@media (max-width: 900px), (max-aspect-ratio: 9/10) {
  .mapblock__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mapblock__map {
    order: -1;
    height: 50svh;
  }
  .mapblock__count b {
    font-size: 88px;
  }
  .mapblock__list {
    display: none;
  }
  .energy {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
