@font-face {
  font-family: "Noto Sans";
  src: url("/assets/NotoSans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("/assets/NotoKufiArabic.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

/* The app's dark palette (packages/design-tokens): Apex orange, sun gold, the glass of its sheets. */
:root {
  color-scheme: dark;
  --black: #000;
  --apex: #ff5a1f;
  --on-apex: #1a0a03;
  --sun: #f5b400;
  --snow: #f2f3f5;
  --ash: #a3a9b3;
  --dim: #6b7280;
  --glass: rgb(18 21 26 / 0.74);
  --hairline: rgb(255 255 255 / 0.1);
  --gutter: max(
    clamp(16px, 4vw, 56px),
    calc(16px + env(safe-area-inset-left, 0px)),
    calc(16px + env(safe-area-inset-right, 0px))
  );
  --font: "Noto Sans", system-ui, sans-serif;
  --display-leading: 1.02;
  --display-tracking: -0.035em;
}
html[dir="rtl"] {
  --font: "Noto Kufi Arabic", "Noto Sans", sans-serif;
  /* Kufi is tall and joined: more leading, never tracking (it breaks the joins). */
  --display-leading: 1.28;
  --display-tracking: 0;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--black);
}
@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
html.motion-reduced,
html.motion-reduced body {
  scroll-behavior: auto !important;
}
html.motion-reduced *,
html.motion-reduced *::before,
html.motion-reduced *::after {
  animation: none !important;
  transition: none !important;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--snow);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body {
  line-height: 1.85;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: var(--display-leading);
  letter-spacing: var(--display-tracking);
  text-wrap: balance;
}
p {
  text-wrap: pretty;
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}
.container {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--snow);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}
.lead {
  max-width: 34em;
  color: var(--ash);
  font-size: clamp(17px, 1.4vw, 20px);
}
.note {
  color: var(--dim);
  font-size: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--apex);
  color: var(--on-apex);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s;
}
.button:hover {
  background: #ff7440;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--snow);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.3);
  text-underline-offset: 6px;
}
.text-link:hover {
  text-decoration-color: var(--apex);
}

/* ---- header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: calc(14px + env(safe-area-inset-top, 0px)) 14px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgb(0 0 0 / 0.62);
  border-color: var(--hairline);
  backdrop-filter: blur(18px) saturate(1.4);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  font-family: "Noto Sans", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand-dot {
  color: var(--apex);
}
.navigation {
  display: flex;
  gap: 28px;
  margin-inline: auto;
}
.navigation a {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  color: var(--ash);
  font-size: 15px;
  text-decoration: none;
}
.navigation a:hover {
  color: var(--snow);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding-inline: 12px 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ash);
}
.language-switch select {
  height: 100%;
  min-width: 48px;
  border: 0;
  background: transparent;
  color: var(--snow);
  font: inherit;
  font-size: 15px;
}
.language-switch option {
  background: #12151a;
}
.menu-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--snow);
}

/* ---- the drive (static first: no JavaScript or reduced motion) ---- */
.drive {
  position: relative;
}
.drive-anchor {
  position: absolute;
  top: max(92svh, 560px); /* static page: the chapters under the map */
}
.drive-view {
  position: relative;
  height: 92svh;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(
    120% 70% at 50% -10%,
    rgb(245 180 0 / 0.14),
    transparent 60%
  );
}
.drive-canvas,
.drive-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.drive-canvas {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.drive-layer {
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 0.4s;
}
.drive.is-ready .drive-canvas,
.drive.is-ready .drive-layer {
  opacity: 1;
}
.drive-car {
  position: absolute;
  left: 0;
  top: 0;
  background-repeat: no-repeat;
  will-change: transform;
}
.map-pin {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--snow);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  translate: -50% calc(-100% - 14px);
  opacity: 0;
  will-change: transform, opacity;
}
.map-pin .icon {
  width: 16px;
  height: 16px;
  color: var(--sun);
}
.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--snow);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.5);
}
.map-pin.is-town {
  border: 0;
  background: none;
  backdrop-filter: none;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 1px 10px #000;
}
.map-pin.is-town::after {
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--apex);
  box-shadow:
    0 0 0 3px #000,
    0 0 0 5px var(--apex);
}
.map-pin.is-end::after {
  background: var(--sun);
  box-shadow:
    0 0 0 3px #000,
    0 0 0 5px var(--sun);
}
.hero-copy {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: clamp(96px, 15vh, 150px);
  z-index: 2;
  max-width: min(860px, 56vw);
}
.hero-copy {
  text-shadow: 0 1px 14px #000;
}
.hero-copy h1 {
  font-size: clamp(46px, 6.6vw, 104px);
}
html[dir="rtl"] .hero-copy h1 {
  font-size: clamp(38px, 5.2vw, 80px);
}
.hero-copy h1 span {
  display: block;
}
.hero-copy .lead {
  margin-top: 22px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 28px;
}
.hero-copy .note {
  margin-top: 18px;
}
.scroll-hint,
.drive-hud {
  display: none;
}
.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  width: min(1240px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-block: 64px 96px;
}
.chapter h2 {
  font-size: clamp(26px, 2.6vw, 38px);
}
.chapter > p:not(.chapter-kind) {
  margin-top: 12px;
  color: var(--ash);
}
.chapter ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.chapter li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
}
.chapter li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--apex);
  translate: 0 -2px;
}
.chapter-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--apex);
  font-size: 15px;
  font-weight: 700;
}
.chapter-arrive h2 {
  color: var(--snow);
}
.chapter-arrive .cities {
  color: var(--sun);
}

/* ---- the drive, scrubbed by scroll ---- */
html.motion .drive {
  height: 720vh;
}
html.motion .drive-anchor {
  top: calc(var(--at) * (100% - 100vh));
}
html.motion .drive-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
html.motion .drive-view {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
}
html.motion .scroll-hint {
  position: absolute;
  inset-inline: 0;
  bottom: 28px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--ash);
  font-size: 14px;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(transparent, var(--snow));
}
html.motion .drive-hud {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 2;
  display: grid;
  gap: 6px;
  width: min(560px, 100% - 32px);
  padding: 12px 18px 14px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.3);
  translate: -50% 0;
  opacity: 0;
}
.hud-label,
.hud-note {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.4;
}
.hud-note {
  justify-self: end;
}
.drive-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}
.progress-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.12);
}
.progress-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: calc(var(--s, 0) * 100%);
  border-radius: inherit;
  background: var(--apex);
  box-shadow: 0 0 12px rgb(255 90 31 / 0.6);
}
html.motion .chapters {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
html.motion .chapter {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: 50%;
  width: min(430px, 100% - 2 * var(--gutter));
  padding: 26px 28px 28px;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
  opacity: 0;
  translate: 0 calc(-50% + (1 - var(--k, 0)) * 28px);
  pointer-events: auto;
}
html.motion .chapter-arrive {
  inset-inline: 0;
  top: clamp(96px, 16vh, 150px);
  width: auto;
  padding: 0 var(--gutter);
  border: 0;
  background: none;
  backdrop-filter: none;
  text-align: center;
  translate: 0 calc((1 - var(--k, 0)) * 28px);
}
html.motion .chapter-arrive h2 {
  font-size: clamp(40px, 6.4vw, 92px);
}
html.motion .chapter-arrive .cities {
  margin-top: 10px;
  font-size: clamp(16px, 1.6vw, 22px);
}

/* ---- the garage ---- */
.garage {
  position: relative;
  padding-block: 96px;
}
.garage-stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 32px;
  width: min(1240px, 100% - 2 * var(--gutter));
  margin: 0 auto;
}
.garage-copy h2 {
  font-size: clamp(36px, 4.6vw, 64px);
}
.garage-copy .lead {
  margin-top: 18px;
}
.garage-points {
  display: grid;
  gap: 4px;
  margin: 30px 0 22px;
  padding: 0;
  list-style: none;
}
.garage-points li {
  padding: 12px 0;
  padding-inline-start: 22px;
  border-inline-start: 2px solid var(--hairline);
  color: var(--dim);
  font-size: 18px;
  font-weight: 600;
  transition:
    color 0.4s,
    border-color 0.4s;
}
.garage-points li.is-active {
  border-color: var(--apex);
  color: var(--snow);
}
.turntable {
  position: relative;
  width: min(580px, 100%, 74vh);
  aspect-ratio: 1;
  justify-self: center;
  translate: 0 7%; /* the car's body sits above its ground point: centre what the eye sees */
}
.turntable-floor {
  position: absolute;
  inset: 36% 2%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(255 90 31 / 0.22),
    rgb(255 90 31 / 0.06) 60%,
    transparent
  );
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.turntable-floor::after {
  content: "";
  position: absolute;
  inset: 18% 12%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.turntable-car {
  position: absolute;
  inset: 0;
  background: url("/assets/car/suv-turn.webp") no-repeat 0 0 / 800% 500%;
}
html.motion .garage {
  height: 300vh;
  padding: 0;
}
html.motion .garage-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

/* ---- made for here ---- */
.here {
  overflow: hidden;
  padding-block: 120px;
}
.scripts {
  display: flex;
  gap: 0.5em;
  margin-bottom: 72px;
  color: #171a20;
  font-family: "Noto Kufi Arabic", "Noto Sans", sans-serif;
  font-size: clamp(88px, 17vw, 260px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
.scripts span[lang="en"] {
  font-family: "Noto Sans", sans-serif;
  letter-spacing: -0.04em;
}
.here-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}
.here-grid h2,
.roadmap h2,
.faq h2,
.closing h2 {
  font-size: clamp(34px, 4.4vw, 60px);
}
.here-grid .lead {
  margin-top: 20px;
}
.principles {
  display: grid;
}
.principles article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding-block: 22px;
  border-top: 1px solid var(--hairline);
}
.principles article:last-child {
  border-bottom: 1px solid var(--hairline);
}
.principles .icon {
  grid-row: span 2;
  margin-top: 4px;
  color: var(--apex);
}
.principles h3 {
  font-size: 20px;
  letter-spacing: 0;
}
.principles p {
  color: var(--ash);
}

/* ---- roadmap: a sequence, so numbered ---- */
.roadmap {
  padding-block: 120px;
  border-top: 1px solid var(--hairline);
}
.roadmap .lead {
  margin-top: 18px;
}
.stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}
.stages::before {
  content: "";
  position: absolute;
  inset-inline: 22px 0;
  top: 21px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgb(255 255 255 / 0.22) 0 14px,
    transparent 14px 26px
  );
}
.stage-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border: 2px solid var(--snow);
  border-radius: 50%;
  background: var(--black);
  font-family: "Noto Sans", sans-serif;
  font-weight: 800;
}
.stages li:first-child .stage-marker {
  border-color: var(--apex);
  background: var(--apex);
  color: var(--on-apex);
}
.stage-name {
  color: var(--apex);
  font-size: 14px;
  font-weight: 700;
}
.stages h3 {
  margin-block: 6px 8px;
  font-size: 22px;
  letter-spacing: 0;
}
.stages p:not(.stage-name) {
  color: var(--ash);
}

/* ---- faq ---- */
.faq {
  padding-block: 120px;
  border-top: 1px solid var(--hairline);
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 48px;
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq details:first-child {
  border-top: 1px solid var(--hairline);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--apex);
  font-family: "Noto Sans", sans-serif;
  font-size: 24px;
  line-height: 1;
  transition: rotate 0.25s;
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details p {
  max-width: 36em;
  padding-bottom: 22px;
  color: var(--ash);
}

/* ---- closing ---- */
.closing {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92svh;
  overflow: hidden;
  padding-block: 120px 96px;
}
.closing-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(#000, transparent 40%),
    linear-gradient(transparent 30%, #000 92%);
}
.closing-inner {
  position: relative;
  z-index: 2;
}
.closing h2 span {
  display: block;
}
.closing .lead {
  margin-block: 18px 30px;
  color: var(--snow);
}

/* ---- footer ---- */
.site-footer {
  padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 40px;
}
.footer-inner > p {
  color: var(--ash);
}
.footer-small {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--dim);
  font-size: 14px;
}

/* ---- scroll-linked extras where the browser drives them (no script) ---- */
@supports (animation-timeline: view()) {
  html.motion .scripts {
    animation: drift linear both;
    animation-timeline: view();
  }
  html.motion .closing-photo {
    animation: settle linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 60%;
  }
}
@keyframes drift {
  from {
    translate: 6% 0;
  }
  to {
    translate: -34% 0;
  }
}
@keyframes settle {
  from {
    scale: 1.22;
  }
  to {
    scale: 1;
  }
}

/* ---- small screens ---- */
@media (max-width: 900px) {
  .site-header {
    gap: 12px;
  }
  .navigation {
    position: absolute;
    inset: 100% 12px auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--hairline);
    border-radius: 20px;
    background: rgb(12 14 18 / 0.96);
  }
  .navigation.is-open {
    display: flex;
  }
  .navigation a {
    padding: 14px 16px;
    font-size: 17px;
  }
  .header-actions {
    margin-inline-start: auto;
  }
  .menu-toggle {
    display: grid;
  }
  .garage-stage,
  .here-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .stages {
    grid-template-columns: 1fr;
  }
  .stages::before {
    inset-inline-start: 21px;
    inset-inline-end: auto;
    top: 22px;
    bottom: 22px;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(
      rgb(255 255 255 / 0.22) 0 14px,
      transparent 14px 26px
    );
  }
  .stages li {
    padding-inline-start: 64px;
  }
  .stage-marker {
    position: absolute;
    inset-inline-start: 0;
  }
  html.motion .garage-stage {
    align-content: center;
    gap: 8px;
  }
  html.motion .garage-copy .lead,
  html.motion .garage-copy .note {
    display: none;
  }
  html.motion .turntable {
    width: min(440px, 100%);
    margin-block: -12% -10%;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .hero-copy {
    max-width: calc(100% - 2 * var(--gutter));
  }
  html.motion .chapter {
    top: 76px;
    padding: 18px 20px;
    translate: 0 calc((1 - var(--k, 0)) * 20px);
  }
  html.motion .chapter h2 {
    font-size: 24px;
  }
  html.motion .chapter > p:not(.chapter-kind) {
    font-size: 15px;
  }
  html.motion .chapter ul {
    display: none;
  }
  html.motion .drive-hud {
    bottom: 12px;
  }
  .garage-points li {
    font-size: 16px;
  }
}
