/* ============================================================
   fanZone — landing page
   Static. No build step. All tokens live in :root.
   Brand type: Zain (OFL) — Latin + Arabic.
   ============================================================ */

@font-face {
  font-family: "Zain";
  src: url("../fonts/zain-latin-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zain";
  src: url("../fonts/zain-latin-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zain";
  src: url("../fonts/zain-latin-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zain";
  src: url("../fonts/zain-latin-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zain Arabic";
  src: url("../fonts/zain-arabic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zain Arabic";
  src: url("../fonts/zain-arabic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0b0e;
  --ink-2: #111116;
  --ink-3: #17171d;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f5ef;
  --muted: #a6a69d;
  --lime: #d8f653;
  --violet: #8b5cf6;

  --font: "Zain", "Zain Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-ar: "Zain Arabic", "Zain", -apple-system, sans-serif;

  --pad: clamp(20px, 4.6vw, 64px);
  --maxw: 1320px;

  --display: clamp(2.6rem, 5.8vw, 5.5rem);
  --h2: clamp(1.95rem, 4.1vw, 3.5rem);
  --h3: clamp(1.25rem, 1.9vw, 1.7rem);
  --lead: clamp(1.02rem, 1.35vw, 1.28rem);
  --body: clamp(0.96rem, 1.05vw, 1.04rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: min(var(--maxw), 100% - var(--pad) * 2);
  margin-inline: auto;
}

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

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

.display {
  margin: 0;
  font-weight: 900;
  font-size: var(--display);
  line-height: 0.86;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.h2 {
  margin: 0;
  font-weight: 700;
  font-size: var(--h2);
  line-height: 0.98;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 54ch;
  font-weight: 300;
  font-size: var(--lead);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 27px;
  border-radius: 999px;
  border: 0;
  background: var(--lime);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.012em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 34px -16px rgba(216, 246, 83, 0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -18px rgba(216, 246, 83, 0.7);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.btn--sm {
  padding: 10px 19px;
  font-size: 0.85rem;
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background 0.3s ease, backdrop-filter 0.3s ease,
    border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-head.is-stuck {
  background: rgba(11, 11, 14, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}

/* The bar keeps one arrangement in both languages: the wordmark sits at
   the left edge and the rest of the links start from the right. Only the
   wordmark and the labels themselves change with the language. */
.site-head__inner {
  display: flex;
  align-items: center;
  direction: ltr;
  gap: clamp(20px, 4vw, 48px);
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand__mark {
  display: block;
  height: 21px;
  width: auto;
}

html[lang="ar"] .brand__mark--ar {
  height: 28px;
}


html[lang="ar"] .brand__mark--en,
html[lang="en"] .brand__mark--ar {
  display: none;
}

.nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  /* Physical, because the nav's own direction flips in Arabic while the
     bar itself must not move. */
  margin-left: auto;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  padding-bottom: 3px;
  background: linear-gradient(var(--text), var(--text)) left bottom / 0 1px
    no-repeat;
  transition: color 0.25s ease, background-size 0.3s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background-size: 100% 1px;
}

.site-head .btn {
  margin-inline-start: clamp(8px, 2vw, 24px);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-inline-start: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
}

.lang svg {
  flex: none;
  opacity: 0.8;
  pointer-events: none;
}

.lang__label {
  line-height: 1;
}

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

.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(108px, 13vh, 150px);
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20%;
  width: min(1400px, 130vw);
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(139, 92, 246, 0.16),
    rgba(216, 246, 83, 0.05) 45%,
    transparent 72%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  min-height: min(712px, 74svh);
}

.hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

.line > span {
  display: block;
  transform: translateY(112%);
  animation: mask-up 1.05s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 90ms);
}

@keyframes mask-up {
  to {
    transform: translateY(0);
  }
}

.hero__fly {
  margin: clamp(18px, 2.4vw, 30px) 0 0;
  font-weight: 300;
  font-size: clamp(1.45rem, 2.9vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--text);
  opacity: 0;
  animation: soft-in 0.9s var(--ease) 0.45s forwards;
}

.hero__lead {
  margin-top: clamp(20px, 2.6vw, 30px);
  max-width: 46ch;
  opacity: 0;
  animation: soft-in 0.9s var(--ease) 0.58s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 38px);
  opacity: 0;
  animation: soft-in 0.9s var(--ease) 0.7s forwards;
}

@keyframes soft-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* hero phone stage —
   the three phones are staged as one lit object rather than three
   floating screenshots: the cluster tilts toward the pointer, each
   phone sits at its own depth, and only the front one is in focus. */

.stage {
  position: relative;
  min-width: 0;
  height: clamp(430px, 41vw, 590px);
  perspective: 1100px;
  perspective-origin: 50% 46%;
  --px: 0;
  --py: 0;
}

.stage__glow {
  position: absolute;
  inset: -6% -12% -6%;
  background:
    radial-gradient(
      34% 30% at 66% 18%,
      rgba(216, 246, 83, 0.3),
      transparent 68%
    ),
    radial-gradient(
      56% 54% at 44% 58%,
      rgba(124, 88, 214, 0.32),
      transparent 72%
    ),
    radial-gradient(60% 52% at 50% 50%, rgba(255, 255, 255, 0.07), transparent 74%);
  filter: blur(46px);
  pointer-events: none;
}

/* The fan mirrors with the page, so the key light follows it. */
html[dir="rtl"] .stage__glow {
  transform: scaleX(-1);
}

.phone {
  position: absolute;
  margin: 0;
  width: clamp(140px, 15.8vw, 214px);
  transform-style: preserve-3d;
  transform: translate3d(
      calc(var(--px) * -12px * var(--depth)),
      calc(var(--py) * -8px * var(--depth)),
      0
    )
    rotateY(calc(var(--px) * 8deg * var(--depth) + var(--rotY, 0deg)))
    rotateX(calc(var(--py) * -5deg * var(--depth)))
    rotate(var(--rot, 0deg));
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.25, 1);
  will-change: transform;
}

.phone:hover {
  z-index: 4;
}

.phone--a {
  inset-inline-start: 0;
  top: 21%;
  width: clamp(130px, 14vw, 190px);
  --rot: -7deg;
  --rotY: 15deg;
  --depth: 0.55;
}

.phone--b {
  inset-inline-start: 27%;
  top: 8%;
  width: clamp(150px, 17vw, 232px);
  --rot: -1.5deg;
  --depth: 1;
  z-index: 3;
}

.phone--c {
  inset-inline-end: 0;
  top: 21%;
  width: clamp(130px, 14vw, 190px);
  --rot: 6deg;
  --rotY: -15deg;
  --depth: 0.4;
  z-index: 2;
}

/* A light traces the bezel: this is what keeps the stage alive, rather
   than a float loop or a hover nobody would guess. */
@property --edge {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.device::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--edge),
    rgba(216, 246, 83, 0) 0deg,
    rgba(216, 246, 83, 0) 46deg,
    rgba(216, 246, 83, 0.85) 70deg,
    #ffffff 77deg,
    rgba(216, 246, 83, 0.35) 86deg,
    rgba(216, 246, 83, 0) 118deg,
    rgba(216, 246, 83, 0) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 7px rgba(216, 246, 83, 0.45));
  animation: edge-run 7.5s linear infinite;
  animation-delay: var(--edge-delay, 0s);
  opacity: 0.55;
  pointer-events: none;
}

@keyframes edge-run {
  to {
    --edge: 360deg;
  }
}

.phone--a .phone__shell {
  --edge-delay: -2.6s;
}
.phone--b .phone__shell {
  --edge-delay: 0s;
}
.phone--c .phone__shell {
  --edge-delay: -5.2s;
}

.phone--b .device::before {
  opacity: 0.8;
}

@media (hover: hover) {
  .phone:hover .device::before {
    opacity: 1;
  }
}

/* The tour and feature phones carry the same light, out of phase. */
.tour__device {
  --edge-delay: -1.4s;
}

.tour__device::before,
.features__device::before {
  opacity: 0.75;
}

.features__device {
  --edge-delay: -4.2s;
}

/* The screen settles a beat after the shell, like a camera pulling focus. */
.hero .device__screen img {
  animation: focus-pull 1.9s var(--ease) var(--rise-delay, 0.3s) both;
}

@keyframes focus-pull {
  from {
    scale: 1.05;
  }
  to {
    scale: 1;
  }
}

/* Depth of field: the two back phones fall out of focus, the front
   one stays sharp. */
.phone--a .device {
  filter: blur(0.4px) brightness(1.05);
}

.phone--c .device {
  filter: blur(0.7px) brightness(1.2);
}

/* Mirror the wall so it leans off the left edge in Arabic. */
html[dir="rtl"] .phone--a {
  --rot: 7deg;
  --rotY: -15deg;
}

html[dir="rtl"] .phone--b {
  --rot: 1.5deg;
}

html[dir="rtl"] .phone--c {
  --rot: -6deg;
  --rotY: 15deg;
}

/* One fan-out on load: the phones settle into place and stop. */
.phone__shell {
  opacity: 0;
  translate: 0 6%;
  scale: 0.94;
  transform-origin: 50% 82%;
  animation: shell-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) var(--rise-delay, 0.3s)
    forwards;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.25, 1), opacity 0.6s ease,
    filter 0.6s ease;
}

@keyframes shell-in {
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

.phone--a .phone__shell {
  --rise-delay: 0.42s;
}
.phone--b .phone__shell {
  --rise-delay: 0.26s;
}
.phone--c .phone__shell {
  --rise-delay: 0.54s;
}

/* Hovering a phone brings it forward and drops the others back. */
@media (hover: hover) {
  .phone:hover .phone__shell {
    transform: translateY(-14px);
  }

  .stage:has(.phone:hover) .phone:not(:hover) .device {
    opacity: 0.5;
    filter: blur(2.2px) saturate(0.92);
  }
}

/* device component */

.device {
  position: relative;
  padding: 8px;
  border-radius: 38px;
  background: linear-gradient(158deg, #24242c, #101014 62%);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9),
    0 16px 34px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: opacity 0.7s ease, filter 0.7s ease;
}

.device::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.09),
    transparent 38%
  );
  pointer-events: none;
  z-index: 2;
}

.device__screen {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 658 / 1436;
  background: #000;
}

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

/* facts */

.facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 34px);
  margin-top: clamp(38px, 4.8vw, 64px);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: soft-in 1s var(--ease) 0.95s forwards;
}

.facts li {
  padding: clamp(20px, 2.4vw, 28px) 0 clamp(26px, 3.4vw, 40px);
}

.facts strong {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.facts span {
  display: block;
  margin-top: 5px;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 30ch;
}

/* ---------- section frame ---------- */

.section {
  position: relative;
  padding-block: clamp(84px, 11vw, 150px);
}

.section__head {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}

/* ---------- tour ---------- */

.tour {
  padding-top: clamp(70px, 8vw, 110px);
}

.tour__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.tour__copy > .lead {
  margin-top: clamp(22px, 2.6vw, 30px);
}

.chapters {
  list-style: none;
  margin: clamp(30px, 4vw, 52px) 0 0;
  padding: 0;
}

.chapter {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 58vh;
  padding-block: clamp(38px, 6vh, 76px) clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.chapter:first-child {
  min-height: 48vh;
}

.chapter__marker {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #5f5f69;
  transition: color 0.45s ease;
}

html[lang="en"] .chapter__marker {
  font-family: var(--font-ar);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.chapter h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.chapter p {
  margin: 14px 0 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: var(--body);
}

.chapter.is-current .chapter__marker {
  color: var(--lime);
}

.chapter__shot {
  display: none;
  width: min(220px, 56%);
  margin-top: 28px;
  padding: 6px;
  border-radius: 26px;
  background: #16161c;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.chapter__shot img {
  display: block;
  width: 100%;
  height: clamp(240px, 58vw, 300px);
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
}

.tour__stage {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100svh;
  padding-block: 74px;
}

.tour__device {
  width: clamp(210px, 24vw, 306px);
}

.shot,
.feature-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.55s ease, transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.tour[data-active="1"] .shot[data-screen="1"],
.tour[data-active="2"] .shot[data-screen="2"],
.tour[data-active="3"] .shot[data-screen="3"],
.tour[data-active="4"] .shot[data-screen="4"],
.features[data-active="1"] .feature-shot[data-shot="1"],
.features[data-active="2"] .feature-shot[data-shot="2"],
.features[data-active="3"] .feature-shot[data-shot="3"],
.features[data-active="4"] .feature-shot[data-shot="4"] {
  opacity: 1;
  transform: none;
}


/* ---------- features ---------- */

.features__body {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
  margin-top: clamp(40px, 6vw, 76px);
}

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

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(14px, 2.6vw, 36px);
  align-items: baseline;
  padding: clamp(22px, 2.8vw, 34px) 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.feature h3 {
  margin: 0;
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #e8e8e2;
  transition: color 0.3s ease;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  text-wrap: pretty;
}

.feature.is-current {
  border-top-color: rgba(216, 246, 83, 0.45);
}

.feature.is-current h3 {
  color: var(--lime);
}

.features__stage {
  position: sticky;
  top: 16vh;
  display: grid;
  place-items: center;
}

.features__device {
  width: clamp(190px, 19vw, 254px);
}

/* ---------- close ---------- */

.close {
  background: var(--lime);
  color: var(--ink);
  padding-block: clamp(72px, 9vw, 128px);
}

.close__inner {
  display: block;
}

.close__title {
  font-size: clamp(2.7rem, 6.6vw, 5.9rem);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr 0.9fr;
  }

  .phone--a {
    display: none;
  }

  .stage {
    height: clamp(400px, 50vw, 520px);
  }

  .phone--b {
    inset-inline-start: 16%;
    width: clamp(160px, 24vw, 234px);
  }

  .phone--c {
    width: clamp(140px, 20vw, 200px);
  }

  .features__body {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .site-head .btn {
    margin-inline-start: auto;
  }

  .hero {
    padding-top: 96px;
  }

  .hero__grid {
    display: block;
    min-height: 0;
  }

  .stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    height: auto;
    margin-top: 44px;
  }

  .stage .phone {
    position: relative;
    top: auto;
    inset-inline-start: auto;
    inset-inline-end: auto;
    animation: none;
  }

  .phone__shell {
    animation-duration: 0.9s;
  }

  .phone--b {
    width: 58%;
  }

  .phone--c {
    width: 36%;
    transform: rotate(5deg) translateY(14px);
    opacity: 0.94;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .facts li {
    padding-bottom: 22px;
  }

  .section__head {
    grid-template-columns: 1fr;
  }

  .tour__grid {
    display: block;
  }

  .tour__stage {
    display: none;
  }

  .chapter {
    min-height: 0;
    padding-block: clamp(26px, 6vw, 40px);
  }

  .chapter:first-child {
    min-height: 0;
  }

  .chapter__shot {
    display: block;
  }

  .features__body {
    grid-template-columns: 1fr;
  }

  .features__stage {
    display: none;
  }

}

@media (max-width: 620px) {
  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .facts {
    gap: 12px 20px;
  }

  .chapter__shot {
    width: 66%;
    margin-top: 22px;
  }

}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }

  .line > span,
  .hero__fly,
  .hero__lead,
  .hero__actions,
  .facts,
  .phone__shell {
    opacity: 1;
    transform: none;
  }

  .phone {
    animation: none;
  }
}

/* Small phones: the globe drops its label so the header stays one row. */
@media (max-width: 380px) {
  .site-head__inner {
    gap: 12px;
  }

  .lang {
    padding: 10px;
  }

  .lang__label {
    display: none;
  }

  .brand__mark--ar {
    height: 24px;
  }

  .site-head .btn--sm {
    padding: 9px 15px;
    font-size: 0.8rem;
  }
}

/* ============================================================
   Arabic typesetting
   Scoped to the document language so one page can carry both.
   ============================================================ */

html[lang="ar"] {
  font-size: 106.25%;
  --display: clamp(2.2rem, 5.1vw, 4.6rem);
  --h2: clamp(1.68rem, 3.5vw, 2.95rem);
  --lead: clamp(1.02rem, 1.3vw, 1.22rem);
}

html[lang="en"] {
  font-size: 100%;
  --display: clamp(2.6rem, 5.5vw, 5.2rem);
}

/* Hide the page for the split second between the saved-language
   check in <head> and the text swap in site.js. */
html[data-pending-lang] body {
  visibility: hidden;
}

html[lang="ar"] body {
  font-weight: 400;
  line-height: 1.8;
}

html[lang="ar"] .display {
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

/* Arabic ascenders and descenders need room inside the masked lines. */
html[lang="ar"] .line {
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

html[lang="ar"] .h2 {
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0;
}

html[lang="ar"] .close__title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.2;
}

html[lang="ar"] .lead {
  line-height: 1.8;
  max-width: 46ch;
}

html[lang="ar"] .hero__fly {
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: 0;
}

html[lang="ar"] .hero__lead {
  max-width: 40ch;
}

html[lang="ar"] .btn {
  letter-spacing: 0;
}

html[lang="ar"] .chapter h3 {
  line-height: 1.32;
  letter-spacing: 0;
}

html[lang="ar"] .chapter p {
  max-width: 36ch;
  line-height: 1.8;
}

html[lang="ar"] .feature h3 {
  line-height: 1.4;
  letter-spacing: 0;
}

html[lang="ar"] .feature p {
  line-height: 1.8;
}


/* The underline in the nav grows from the reading start edge. */
html[dir="rtl"] .nav a {
  background-position: right bottom;
}

/* The bar stays put, but the links inside it still read right to left. */
html[dir="rtl"] .nav {
  direction: rtl;
}
