/* ============================================================
   EXVORA — Design System
   Dark, premium, high-tech. Palette derived from the logo.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ── Brand palette (from logo) ─────────────────────────── */
  --navy: #08364f;
  /* logo wordmark navy   */
  --azure: #0f95da;
  /* brand blue, brightened for dark */
  --azure-2: #0175c3;
  /* logo blue            */
  --cyan: #34c6d6;
  /* bridging teal        */
  --green: #7cc63f;
  /* energy green, brightened */
  --green-2: #4f8f1f;
  /* logo green           */
  --leaf: #2f8f4e;

  /* ── Ink / surfaces (deep navy, low chroma) ────────────── */
  --ink-980: #030e16;
  --ink-950: #04131d;
  --ink-900: #061b28;
  --ink-850: #082234;
  --ink-800: #0a2a3f;
  --ink-700: #0e3a55;
  --line: #ffffff16;
  --line-2: #ffffff0a;
  --line-3: #ffffff2e;

  /* ── Text ──────────────────────────────────────────────── */
  --fg: #eef6fc;
  --fg-soft: #aec6d8;
  --fg-mut: #7196ab;

  /* ── Gradients ─────────────────────────────────────────── */
  --grad-energy: linear-gradient(115deg, var(--azure) 0%, #2aa3b8 48%, var(--green) 100%);
  --grad-text: linear-gradient(100deg,
      #5fc8f5 0%,
      #45c9c2 25%,
      #9bd84f 50%,
      #45c9c2 75%,
      #5fc8f5 100%);
  --grad-deep: radial-gradient(1200px 800px at 70% -10%, #0d4b6e 0%, var(--ink-900) 55%, var(--ink-950) 100%);
  --grad-surface: linear-gradient(180deg, #ffffff0a, #ffffff03);
  --grad-line: linear-gradient(120deg, var(--azure), var(--cyan) 50%, var(--green));

  /* ── Shape ─────────────────────────────────────────────── */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow: 0 30px 80px -28px #00000099, 0 8px 24px -16px #00000080;
  --shadow-sm: 0 14px 36px -16px #0000007a;
  --glow: 0 0 0 1px #ffffff12, 0 20px 60px -20px #0b6fa340;
  --hairline: inset 0 1px 0 #ffffff1c;

  --container: 1200px;
  --nav-h: 76px;

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--f-body);
  background: var(--ink-950);
  color: var(--fg);
  color-scheme: dark;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* faint global grain to kill flatness */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--azure);
  color: #fff;
}

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

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
  position: relative;
}

.section {
  padding: clamp(72px, 11vw, 140px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  border-block: 1px solid var(--line);
}

main {
  position: relative;
  z-index: 2;
}

/* ── Typography ──────────────────────────────────────────── */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
}

.h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 600;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--fg-soft);
  line-height: 1.6;
  max-width: 60ch;
}

p {
  text-wrap: pretty;
}

.grad-text {
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: grad-text-shift 6s linear infinite;
}

@keyframes grad-text-shift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::before {
  background: var(--green);
  width: 18px;
}

.kicker {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-mut);
}

.sec-head {
  max-width: 740px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.sec-head .h2 {
  margin-top: 16px;
}

.sec-head p {
  color: var(--fg-soft);
  margin-top: 18px;
  font-size: 1.08rem;
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.sec-head--center .eyebrow {
  justify-content: center;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: .25s cubic-bezier(.2, .7, .3, 1);
  white-space: nowrap;
  position: relative;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform .25s;
}

.btn--primary {
  background: var(--grad-energy);
  color: #fff;
  box-shadow: 0 10px 30px -8px #0b8fb060, var(--hairline);
}

.btn--primary:hover {
  box-shadow: 0 18px 50px -10px #0b8fb0aa, var(--hairline);
  transform: translateY(-2px);
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  background: #ffffff0a;
  color: var(--fg);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: #ffffff16;
  border-color: var(--line-3);
  transform: translateY(-2px);
}

.btn--ghost:hover svg {
  transform: translateX(4px);
}

.btn--lg {
  padding: 17px 32px;
  font-size: 1.05rem;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: #051824d9;
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand__emblem {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 12px #0b6fa340);
  background: radial-gradient(circle at 57% 50%, #fff 50%, transparent 38%);
  border-radius: 50%;
}

.brand__word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: .01em;
  color: #fff;
}

.brand__sub {
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .42em;
  color: var(--azure);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: .95rem;
  color: var(--fg-soft);
  transition: .2s;
}

.nav__link:hover {
  color: #fff;
  background: #ffffff0c;
}

.nav__link.is-active {
  color: #fff;
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-line);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff0c;
  border: 1px solid var(--line);
  color: #fff;
  align-items: center;
  justify-content: center;
}

.nav__toggle svg {
  width: 22px;
  height: 22px;
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: #051824f7;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 28px;
  display: none;
  flex-direction: column;
}

.drawer.is-open {
  display: flex;
}

.drawer a {
  padding: 14px 28px;
  font-size: 1.1rem;
  font-family: var(--f-display);
  color: var(--fg-soft);
}

.drawer a:hover {
  color: #fff;
}

.drawer .btn {
  margin: 14px 28px 0;
  justify-content: center;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--grad-deep);
}

#energyCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: .9;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 60% 10%, #000 30%, transparent 75%);
}

.hero__glow {
  position: absolute;
  z-index: 1;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  right: -10%;
  top: -18%;
  background: radial-gradient(circle, #0b8fb055, transparent 62%);
  filter: blur(20px);
  will-change: transform;
}

.hero__glow--green {
  left: -16%;
  bottom: -22%;
  top: auto;
  right: auto;
  background: radial-gradient(circle, #5fa83033, transparent 62%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  padding-block: 8vh;
  width: 100%;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  background: #ffffff0a;
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .02em;
  color: var(--fg-soft);
  backdrop-filter: blur(8px);
  margin-bottom: 30px;
  white-space: nowrap;
}

.hero__chip b {
  color: var(--green);
  font-weight: 600;
}

.hero__chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px #6fb22a30;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px #6fb22a30;
  }

  50% {
    box-shadow: 0 0 0 7px #6fb22a10;
  }
}

.hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 17ch;
}

.hero__sub {
  margin-top: 28px;
  max-width: 58ch;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  color: var(--fg-soft);
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__stats {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: 32px;
  max-width: 760px;
}

.hero__stat .n {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}

.hero__stat .n .u {
  color: var(--cyan);
  font-size: .7em;
}

.hero__stat .l {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-mut);
  margin-top: 10px;
  max-width: 22ch;
}

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--fg-mut);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll span {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--azure), transparent);
  animation: scrolldn 2s infinite;
}

@keyframes scrolldn {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@media (max-width: 600px) {
  .hero__scroll {
    display: none;
  }
}

/* ── Marquee (logos / partners) ──────────────────────────── */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scrollx 42s linear infinite;
  align-items: center;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes scrollx {
  to {
    transform: translateX(-50%);
  }
}

/* ── Logo / institution wall ─────────────────────────────── */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.logo-cell {
  background: var(--ink-950);
  min-height: 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 26px 18px;
  transition: background .3s, transform .3s;
  text-align: center;
}

.logo-cell:hover {
  background: #0a2236;
}

/* Official wordmarks shown in full brand colour. */
.logo-cell__img {
  width: auto;
  max-width: 90%;
  height: 80px;
  object-fit: contain;
  transition: transform .3s;
}

.logo-cell:hover .logo-cell__img {
  transform: scale(1.05);
}

/* Wide wordmarks kept smaller so they don't dominate the wall. */
.logo-cell__img[alt="Aramco"],
.logo-cell__img[alt="SABIC"],
.logo-cell__img[alt="stc"] {
  height: 52px;
}

/* Dark / low-contrast marks get a white plate so they read on the dark wall. */
.logo-cell__img[alt="Ceer"],
.logo-cell__img[alt="Red Sea Global"] {
  height: 92px;
  box-sizing: border-box;
  padding: 12px 18px;
  background: #fff;
  border-radius: 12px;
}

.logo-cell__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: .01em;
  color: #cfe3f0;
  transition: color .3s;
}

.logo-cell:hover .logo-cell__name {
  color: #fff;
}

.logo-cell__sector {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mut);
}

/* Marquee variant (logoTrack) — auto-scrolling logo slider */
.marquee__track {
  padding-block: 10px;
}

.logo-cell__img--track {
  height: 46px;
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: .6;
  filter: grayscale(1);
  transition: opacity .3s, filter .3s, transform .3s;
}

.logo-cell__img--track:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.05);
}

/* Wide wordmarks kept smaller so they don't dominate the row. */
.logo-cell__img--track[alt="Aramco"],
.logo-cell__img--track[alt="SABIC"],
.logo-cell__img--track[alt="stc"] {
  height: 30px;
}

/* Dark / low-contrast marks get a white plate so they read on the dark row. */
.logo-cell__img--track[alt="Ceer"],
.logo-cell__img--track[alt="Red Sea Global"] {
  height: 58px;
  box-sizing: border-box;
  padding: 9px 14px;
  background: #fff;
  border-radius: 10px;
}

.wall-note {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--fg-mut);
  letter-spacing: .03em;
  margin-top: 22px;
  max-width: 76ch;
}

/* ── Cards / grids ───────────────────────────────────────── */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: .3s cubic-bezier(.2, .7, .3, 1);
  overflow: hidden;
  box-shadow: var(--hairline);
}

.card--hover:hover {
  transform: translateY(-5px);
  border-color: #2aa3b866;
  box-shadow: var(--shadow), var(--hairline);
}

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f95da28, #6fb22a22);
  border: 1px solid var(--line);
  color: var(--azure);
  margin-bottom: 22px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--fg-soft);
  font-size: .98rem;
}

.card__num {
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--fg-mut);
  letter-spacing: .1em;
}

/* spotlight — set --mx/--my via JS on pointermove */
.spot {
  position: relative;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), #2aa3b81f, transparent 60%);
}

.spot:hover::before {
  opacity: 1;
}

.spot>* {
  position: relative;
  z-index: 1;
}

/* ── Pillar card (product suite) ─────────────────────────── */
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--grad-surface);
  box-shadow: var(--hairline);
  transition: .3s cubic-bezier(.2, .7, .3, 1);
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: #2aa3b866;
  box-shadow: var(--shadow), var(--hairline);
}

.pillar__media {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.pillar__media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pillar__body {
  padding: 26px 28px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pillar__num {
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--cyan);
  letter-spacing: .12em;
}

.pillar h3 {
  margin: 10px 0 8px;
  font-size: 1.22rem;
}

.pillar p {
  color: var(--fg-soft);
  font-size: .96rem;
}

.pillar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

/* legacy product card (kept for compatibility) */
.pcard {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.pcard__media {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.pcard__body {
  padding: 26px 28px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.tag {
  font-family: var(--f-mono);
  font-size: .72rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ffffff08;
  border: 1px solid var(--line);
  color: var(--fg-soft);
}

/* ── Custom media art (replaces gray imgslot) ────────────── */
.media-art {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a3550, #051a28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.imgslot {
  /* kept as graceful fallback */
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, #ffffff06 0 12px, transparent 12px 24px), linear-gradient(135deg, #0c3650, #061b28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--fg-mut);
}

.imgslot span {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
}

.imgslot svg {
  width: 26px;
  height: 26px;
  opacity: .5;
}

/* labelled premium frame (swap for real photos later) */
.frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.frame__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: #04131dcc;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(6px);
}

/* ── Stat / metric ───────────────────────────────────────── */
.metric {
  padding: 32px 0;
}

.metric .n {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.02em;
}

.metric .u {
  font-size: .55em;
  color: var(--azure);
  margin-left: 4px;
}

.metric .l {
  color: var(--fg-soft);
  margin-top: 14px;
  font-size: 1rem;
}

.metric .src {
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--fg-mut);
  margin-top: 6px;
  letter-spacing: .04em;
}

/* stat card (boxed, for By-the-numbers band) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--grad-surface);
  box-shadow: var(--hairline);
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  transition: .3s cubic-bezier(.2, .7, .3, 1);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: #2aa3b855;
}

.stat-card .n {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.02em;
}

.stat-card .n .u {
  font-size: .5em;
  color: var(--cyan);
  margin-left: 3px;
}

.stat-card .l {
  color: var(--fg-soft);
  margin-top: 14px;
  font-size: .95rem;
  flex: 1;
}

.stat-card .src {
  font-family: var(--f-mono);
  font-size: .66rem;
  color: var(--fg-mut);
  margin-top: 16px;
  letter-spacing: .04em;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stat-foot {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--fg-mut);
  margin-top: 26px;
  max-width: 78ch;
  letter-spacing: .02em;
}

/* ── Divider / misc ──────────────────────────────────────── */
.hr {
  height: 1px;
  background: var(--line);
  border: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* gradient hairline accent above sections */
.accent-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .5;
}

/* ── CTA band ────────────────────────────────────────────── */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(48px, 7vw, 84px);
  background: var(--grad-deep);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--hairline);
}

.cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 80% 120%, #6fb22a30, transparent 60%), radial-gradient(700px 400px at 10% -20%, #0f95da40, transparent 60%);
}

.cta>* {
  position: relative;
  z-index: 2;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  padding: 72px 0 0;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer__about {
  color: var(--fg-soft);
  font-size: .96rem;
  margin: 18px 0 22px;
  max-width: 40ch;
}

.footer__head {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-mut);
  margin-bottom: 18px;
}

.footer__col a {
  display: block;
  color: var(--fg-soft);
  padding: 7px 0;
  font-size: .96rem;
  transition: .2s;
}

.footer__col a:hover {
  color: #fff;
}

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

.sbtn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff08;
  border: 1px solid var(--line);
  color: var(--fg-soft);
  transition: .2s;
}

.sbtn:hover {
  color: #fff;
  background: var(--grad-energy);
  border-color: transparent;
  transform: translateY(-2px);
}

.sbtn svg {
  width: 18px;
  height: 18px;
}

.footer__contactItem {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 7px 0;
  color: var(--fg-soft);
  font-size: .94rem;
}

.footer__contactItem svg {
  width: 17px;
  height: 17px;
  color: var(--azure);
  flex: none;
  margin-top: 3px;
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.footer__bottomInner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p {
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--fg-mut);
  letter-spacing: .03em;
}

/* ── Scroll reveal ───────────────────────────────────────── */
/* Transform-only so content is NEVER hidden (opacity stays 1) — robust against
   throttled/hidden render contexts where opacity transitions can freeze.
   JS adds .anim-ready (only while visible) to enable the slide. */
.reveal {
  opacity: 1;
}

html.anim-ready .reveal {
  transform: translateY(26px);
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
  will-change: transform;
}

html.anim-ready .reveal.in {
  transform: none;
}

html.anim-ready .reveal[data-d="1"] {
  transition-delay: .07s;
}

html.anim-ready .reveal[data-d="2"] {
  transition-delay: .14s;
}

html.anim-ready .reveal[data-d="3"] {
  transition-delay: .21s;
}

html.anim-ready .reveal[data-d="4"] {
  transition-delay: .28s;
}

html.anim-ready .reveal[data-d="5"] {
  transition-delay: .35s;
}

/* Note: animations intentionally always play (no prefers-reduced-motion gate),
   so they render consistently across browsers — including Chrome on Linux, which
   honors the desktop "reduce motion" setting that Firefox ignores. */

/* ── Page header (subpages) ──────────────────────────────── */
.phead {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 60px;
  overflow: hidden;
  background: var(--grad-deep);
  border-bottom: 1px solid var(--line);
}

.phead__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(100% 100% at 70% 0%, #000 20%, transparent 80%);
}

.phead__glow {
  position: absolute;
  width: 50vw;
  max-width: 620px;
  height: 50vw;
  max-height: 620px;
  right: -8%;
  top: -30%;
  background: radial-gradient(circle, #0b8fb044, transparent 62%);
  filter: blur(18px);
}

.phead .container {
  position: relative;
  z-index: 2;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {

  .nav__links,
  .nav__right .btn {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

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

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

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__stats {
    gap: 28px 40px;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 20px;
  }

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

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

  .card {
    padding: 24px;
  }

  /* Chip wraps instead of overflowing on narrow screens. */
  .hero__chip {
    white-space: normal;
    align-items: flex-start;
    max-width: 100%;
    font-size: .72rem;
    padding: 8px 14px 8px 12px;
    line-height: 1.45;
  }

  .hero__chip .dot {
    flex: none;
    margin-top: 4px;
  }
}