/* Nexim AI presentation
   Brand source: https://neximai.sa
   Navy cinematic layer + light-theme accents from the official site. */

:root {
  --primary: #2d64ff;
  --secondary: #00d1ff;
  --accent: #4a3aff;
  --teal: #4dc7c4;
  --background: #10183a;
  --background-deep: #070b1c;
  --surface: rgba(255, 255, 255, 0.045);
  --text: #f4f7fb;
  --muted: #c5d4ea;
  --mist: #a2c0e6;
  --line: rgba(162, 192, 230, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
  --gradient: linear-gradient(135deg, #4a3aff 0%, #2d64ff 48%, #00d1ff 100%);
  --font-ar: "IBM Plex Sans Arabic", "SF Arabic", "Geeza Pro", Tahoma, sans-serif;
  --font-en: Inter, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --chrome-top: 4.4rem;
  --chrome-bottom: 1.15rem;
  --shadow: 0 18px 40px rgba(4, 8, 24, 0.28);
}

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

html,
body {
  margin: 0;
  height: 100%;
  background: var(--background-deep);
  color: var(--text);
  font-family: var(--font-ar);
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:lang(en) { font-family: var(--font-en); }

button,
input { font-family: inherit; }

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.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;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.gradient-text {
  background-image: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Chrome */

.chrome {
  position: fixed;
  z-index: 20;
  top: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.85rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) 0.4rem max(1.25rem, env(safe-area-inset-left));
  pointer-events: none;
}

.chrome > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand img { width: 34px; height: 34px; }

.chrome-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.counter {
  margin: 0;
  min-width: 4.6rem;
  text-align: center;
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}

#counterNum {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.icon-btn,
.nav-arrow {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 24, 58, 0.72);
  color: var(--text);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.icon-btn:hover,
.nav-arrow:hover {
  border-color: rgba(0, 209, 255, 0.55);
  background: rgba(45, 100, 255, 0.18);
}

.icon-exit { display: none; }
.is-fullscreen .icon-enter { display: none; }
.is-fullscreen .icon-exit { display: block; }

.arrows { position: fixed; inset: 0; z-index: 20; pointer-events: none; }

.nav-arrow {
  position: fixed;
  top: 50%;
  z-index: 21;
  pointer-events: auto;
  transform: translateY(-50%);
}

.nav-prev { left: max(1rem, env(safe-area-inset-left)); }
.nav-next { right: max(1rem, env(safe-area-inset-right)); }

.nav-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.progress-track {
  position: fixed;
  z-index: 22;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  direction: ltr;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  height: 100%;
  width: 10%;
  background: var(--gradient);
  transition: width 0.45s var(--ease);
}

/* Slides */

.deck { position: fixed; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(ellipse 50% 42% at 85% 12%, rgba(45, 100, 255, 0.2), transparent 62%),
    radial-gradient(ellipse 36% 32% at 8% 88%, rgba(77, 199, 196, 0.1), transparent 70%),
    linear-gradient(180deg, #16224c 0%, var(--background) 46%, #0b1028 100%);
  transition: opacity 0.45s var(--ease), visibility 0.45s linear;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(162, 192, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(162, 192, 230, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 12%, transparent 72%);
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: auto;
  padding:
    calc(var(--chrome-top) + 0.35rem)
    clamp(4.6rem, 6.2vw, 6.4rem)
    calc(var(--chrome-bottom) + 0.8rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(162, 192, 230, 0.35) transparent;
}

.slide-frame {
  width: min(1120px, 100%);
  min-height: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.85rem, 2vh, 1.45rem);
}

.slide-head,
.impact-hero {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

.kicker:lang(en) {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.slide-title {
  font-size: clamp(1.85rem, 3.5vw, 3.15rem);
  line-height: 1.25;
  font-weight: 700;
}

.display {
  font-size: clamp(3.4rem, 7.4vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.display-sm { font-size: clamp(2.1rem, 4.6vw, 4.1rem); }

.tagline {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #e7eef8;
}

.lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.85;
}

.en-line {
  width: fit-content;
  max-width: 100%;
  color: var(--mist);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.en-line strong { color: var(--text); font-weight: 650; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(45, 100, 255, 0.32);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(45, 100, 255, 0.4);
}

.card,
.node,
.vm-card,
.impact,
.stage {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-radius: var(--radius);
}

.card { padding: 1rem 1.05rem 1.05rem; overflow: hidden; }

.card::before,
.vm-card::before,
.impact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0), transparent);
  transition: background 0.35s var(--ease);
}

.card:hover::before,
.sector:focus-visible::before { background: var(--gradient); }

.card h2,
.node h2,
.step h2,
.value-card h2,
.diff h2,
.impact h2,
.stage h2 {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.card p,
.node p,
.step p,
.impact p,
.stage p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

.icon-wrap {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #9fd8ff;
  background: rgba(45, 100, 255, 0.14);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.num,
.step-no {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--secondary);
}

/* Cover */

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3.5rem);
}

.cover-copy { display: grid; justify-items: start; gap: 0.9rem; }

.hero-visual {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(210px, 52%);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(7, 11, 28, 0.45));
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(162, 192, 230, 0.18);
}

.ring-a { inset: 8%; border-style: dashed; animation: spin 46s linear infinite; }
.ring-b { inset: 20%; border-color: rgba(0, 209, 255, 0.28); animation: spin 68s linear infinite reverse; }
.ring-c { inset: 33%; background: radial-gradient(circle, rgba(45, 100, 255, 0.18), transparent 68%); }

.px {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #8ec8ff;
  opacity: 0.75;
  animation: float 6.5s ease-in-out infinite;
}

.px-1 { top: 18%; left: 68%; }
.px-2 { top: 28%; left: 78%; width: 5px; height: 5px; animation-delay: 0.4s; background: #c4ddff; }
.px-3 { top: 16%; left: 80%; width: 9px; height: 9px; animation-delay: 0.8s; }
.px-4 { top: 34%; left: 84%; width: 4px; height: 4px; animation-delay: 0.2s; }
.px-5 { top: 40%; left: 74%; animation-delay: 1s; background: var(--teal); }
.px-6 { top: 24%; left: 88%; width: 4px; height: 4px; animation-delay: 1.3s; }

/* Who we are */

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
}

.copy { display: grid; gap: 0.75rem; justify-items: start; }

.stages {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  position: relative;
}

.stages::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(1rem + 1.35rem - 1px);
  top: 1.6rem;
  bottom: 1.6rem;
  width: 2px;
  background: linear-gradient(var(--secondary), rgba(45, 100, 255, 0.05));
  transform: scaleY(0);
  transform-origin: top;
}

.slide.is-active .stages::before { animation: draw-y 1.1s var(--ease) 0.25s forwards; }

.stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1rem;
}

.stage-mark {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--gradient);
  position: relative;
  z-index: 1;
}

/* Vision */

.vm {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.85rem;
}

.vm-card { padding: 1.15rem 1.2rem 1.25rem; display: grid; gap: 0.7rem; }
.vm-card blockquote { font-size: clamp(1.02rem, 1.45vw, 1.28rem); font-weight: 500; line-height: 1.85; }
.vm-card:first-child { background: linear-gradient(165deg, rgba(45, 100, 255, 0.16), rgba(255, 255, 255, 0.03) 58%); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.value-card { display: grid; gap: 0.45rem; justify-items: center; text-align: center; }
.value-card h2 { margin-top: 0.15rem; }

/* Services + sectors */

.services,
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.service-card h2,
.sector h2,
.diff h2 { margin-bottom: 0.25rem; }

.service-card,
.sector,
.diff { transition: transform 0.35s var(--ease), border-color 0.35s var(--ease); }

.service-card:hover,
.diff:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 209, 255, 0.4);
}

.service-card:hover .icon-wrap,
.sector:hover .icon-wrap,
.sector:focus-visible .icon-wrap,
.diff:hover .icon-wrap {
  background: var(--gradient);
  color: #fff;
}

.sector {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  align-content: start;
  min-height: 9.2rem;
  text-align: center;
  cursor: default;
}
.sector .shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(0, 209, 255, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(74, 58, 255, 0.22), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.sector:hover,
.sector:focus-visible {
  transform: translateY(-4px) scale(1.018);
  border-color: rgba(0, 209, 255, 0.45);
}
.sector:hover .shade,
.sector:focus-visible .shade { opacity: 1; }
.sector > :not(.shade) { position: relative; z-index: 1; }
.sector p { color: rgba(197, 212, 234, 0.72); transition: color 0.3s var(--ease); }
.sector:hover p,
.sector:focus-visible p { color: #fff; }

/* AI orbit */

.ai-split { grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1.18fr); }

.orbit {
  position: relative;
  width: min(540px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit-svg {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  fill: none;
  stroke: rgba(162, 192, 230, 0.22);
  stroke-width: 0.4;
}

.orbit-svg circle:last-child { stroke: rgba(0, 209, 255, 0.35); stroke-dasharray: 2 2; }

.orbit-core {
  position: absolute;
  top: 36%;
  left: 36%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: radial-gradient(circle at 40% 35%, #31498e, #121a3e 72%);
  border: 1px solid rgba(0, 209, 255, 0.4);
  box-shadow: 0 0 36px rgba(45, 100, 255, 0.28);
  z-index: 2;
}

.orbit-core strong {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.orbit-core span { color: var(--mist); font-size: 0.72rem; }

.node {
  position: absolute;
  width: 36%;
  padding: 0.6rem 0.7rem 0.65rem;
  z-index: 2;
}

.node h2 { font-size: 0.86rem; }
.node p { font-size: 0.75rem; line-height: 1.55; }

.node-1 { top: 0; left: 32%; }
.node-2 { top: 16%; left: 64%; }
.node-3 { top: 58%; left: 64%; }
.node-4 { bottom: 0; left: 32%; }
.node-5 { top: 58%; left: 0; }
.node-6 { top: 16%; left: 0; }

/* Journey */

.journey-wrap { position: relative; padding-top: 0.2rem; }

.journey {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  position: relative;
}

.journey-line {
  position: absolute;
  top: 1.35rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(162, 192, 230, 0.16);
  direction: rtl;
}

.journey-line span {
  display: block;
  height: 100%;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right center;
}

.slide.is-active .journey-line span { animation: draw-x 1.35s var(--ease) 0.2s forwards; }

.step { text-align: center; }
.step-no {
  width: 2.7rem;
  height: 2.7rem;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 209, 255, 0.45);
  background: #121a3f;
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
}
.step h2 { margin-bottom: 0.3rem; }

/* Why */

.why-split { align-items: stretch; }
.diffs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.diff { display: grid; gap: 0.35rem; }

.equation {
  align-self: center;
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 1.4rem 1.2rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 60% at 0% 100%, rgba(0, 209, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.eq-item,
.eq-op,
.eq-result { font-weight: 650; letter-spacing: -0.03em; }
.eq-item { font-size: clamp(1.25rem, 2vw, 1.8rem); }
.eq-op { color: var(--secondary); font-size: 1.15rem; line-height: 1; }
.eq-rule { height: 2px; margin: 0.35rem 0 0.2rem; background: var(--gradient); border-radius: 2px; }
.eq-result { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; }

/* Impact */

.slide-impact {
  background:
    radial-gradient(ellipse 55% 40% at 70% 18%, rgba(74, 58, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 36% at 12% 80%, rgba(0, 209, 255, 0.12), transparent 68%),
    linear-gradient(180deg, #182654 0%, #10183a 50%, #0a0f24 100%);
}

.impact-hero { display: grid; gap: 0.35rem; }
.impact-statement {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1.05;
  font-weight: 700;
}

.impacts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; }
.impact {
  padding: 0.9rem 0.85rem 1rem;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  align-content: start;
  text-align: center;
}
.impact h2 { font-size: 1.05rem; }

.closing-quote {
  position: relative;
  align-self: start;
  width: fit-content;
  max-width: 100%;
  padding-inline-start: 1rem;
  color: var(--text);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.8;
}

.closing-quote::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 3px;
  border-radius: 3px;
  background: var(--gradient);
}

/* Close */

.slide-close .slide-frame { align-items: center; text-align: center; }
.close-logo { width: 84px; height: 84px; }
.close-ar { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 650; }
.questions {
  list-style: none;
  padding: 0;
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.4rem;
  text-align: start;
}
.questions li { color: var(--muted); }
.questions li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-end: 0.45rem;
  border-radius: 2px;
  background: var(--secondary);
  vertical-align: middle;
}

.close-bottom {
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: start;
}

.contacts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  width: max-content;
  max-width: 100%;
}

.contacts li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contacts a { color: var(--text); text-decoration: none; }
.contacts a:hover { color: var(--secondary); }
.contacts .icon { width: 1rem; height: 1rem; color: var(--secondary); }

.placeholder {
  color: var(--mist);
  border-bottom: 1px dashed rgba(162, 192, 230, 0.5);
  letter-spacing: 0.04em;
  justify-self: start;
}

.qr-card {
  margin: 0;
  background: #fff;
  color: var(--background);
  border-radius: 16px;
  padding: 0.55rem 0.55rem 0.4rem;
  width: 132px;
  flex: none;
}

.qr-card img { width: 100%; height: auto; }
.qr-card figcaption {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 650;
  text-align: center;
  letter-spacing: -0.02em;
}

.tagline-end { color: var(--mist); font-size: 1rem; }
.fineprint { color: rgba(197, 212, 234, 0.62); font-size: 0.78rem; }

.noscript {
  position: fixed;
  inset: auto 1rem 1.2rem 1rem;
  z-index: 30;
  padding: 0.8rem 1rem;
  background: #fff;
  color: #10183a;
  border-radius: 12px;
}

/* Motion */

.slide.is-active .reveal {
  animation: rise 0.72s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 40ms);
}

@keyframes rise {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes draw-x { to { transform: scaleX(1); } }
@keyframes draw-y { to { transform: scaleY(1); } }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes float {
  0%, 100% { translate: 0 0; opacity: 0.45; }
  50% { translate: 0 -10px; opacity: 0.95; }
}

/* Responsive */

@media (max-width: 1100px) {
  .cover-grid,
  .layout-split,
  .ai-split,
  .why-split,
  .vm { grid-template-columns: 1fr; }
  .services,
  .sectors { grid-template-columns: 1fr 1fr; }
  .impacts { grid-template-columns: repeat(3, 1fr); }
  .hero-visual { width: min(280px, 70vw); }
  .orbit {
    width: 100%;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .orbit-svg { display: none; }
  .orbit-core,
  .node {
    position: static;
    width: auto;
    height: auto;
  }
  .orbit-core { grid-column: 1 / -1; padding: 1rem; }
  .equation { order: -1; }
}

@media (max-width: 860px) {
  :root {
    --chrome-top: 3.7rem;
    --chrome-bottom: 4.4rem;
  }
  .slide-inner {
    padding-inline: 1.15rem;
    padding-bottom: calc(var(--chrome-bottom) + 0.4rem);
  }
  .nav-arrow {
    top: auto;
    bottom: max(0.7rem, env(safe-area-inset-bottom));
    transform: none;
  }
  .journey { grid-template-columns: 1fr; gap: 0.85rem; }
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.8rem;
    text-align: start;
    align-items: center;
  }
  .step-no { grid-row: 1 / span 2; margin: 0; }
  .step h2,
  .step p { grid-column: 2; }
  .journey-line {
    top: 0.4rem;
    bottom: 0.4rem;
    right: 1.3rem;
    left: auto;
    width: 2px;
    height: auto;
  }
  .journey-line span {
    transform: scaleY(0);
    transform-origin: top center;
  }
  .slide.is-active .journey-line span { animation-name: draw-y; }
  .values,
  .questions,
  .diffs { grid-template-columns: 1fr; }
  .close-bottom { flex-direction: column; align-items: stretch; }
  .qr-card { align-self: center; }
  .brand span { display: none; }
}

@media (max-width: 680px) {
  .services,
  .sectors,
  .impacts { grid-template-columns: 1fr; }
  .display { font-size: clamp(2.7rem, 16vw, 4rem); }
  .impact-statement { font-size: clamp(2.5rem, 14vw, 3.6rem); }
  .sector { min-height: 0; }
  .contacts li { font-size: 0.84rem; }
}

@media (max-height: 760px) and (min-width: 861px) {
  .slide-title { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
  .lede { font-size: 0.95rem; }
  .card { padding: 0.75rem 0.85rem; }
  .sector { min-height: 0; }
  .display { font-size: clamp(3rem, 6vw, 4.8rem); }
  .impact-statement { font-size: clamp(2.6rem, 5vw, 4rem); }
  .hero-visual { width: min(300px, 34vh); }
  .orbit { width: min(460px, 52vh); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1 !important; translate: none !important; }
  .journey-line span,
  .stages::before { transform: none !important; }
}
