/* ============================================================
   NUscale Tech Ltd — editorial dark theme v3
   Design language studied from rendered reference:
   ultra-heavy uppercase display type, sharp geometry, hairline
   borders, asymmetric editorial grid, square accent markers.
   Palette from brand logo: azure circuit-blue on near-black.
   ============================================================ */

:root {
  --bg: #0e0f11;
  --panel: #141519;
  --panel-2: #17181d;
  --ink: #eceef1;
  --muted: #8f959e;
  --dim: #3c4048;
  --line: rgba(236, 238, 241, 0.09);
  --accent: #3b9dff;
  --accent-soft: rgba(59, 157, 255, 0.13);
  --accent-line: rgba(59, 157, 255, 0.38);
  --font-display: "Archivo Black", "Space Grotesk", sans-serif;
  --font-second: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --r: 6px;
  --r-btn: 4px;
  --container: 1360px;
  --pad-x: 48px;
  --rail: 300px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #06101c; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
[hidden] { display: none !important; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============ type system ============ */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(38px, 5vw, 74px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin-bottom: 30px;
}
.h2-right { text-align: right; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-second);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  padding: 9px 14px;
  margin-bottom: 40px;
  width: fit-content;
  height: fit-content;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  display: inline-block;
}

.section { padding: 170px 0; position: relative; }
.section-intro { max-width: 480px; color: var(--muted); font-size: 16px; margin-bottom: 72px; }

/* editorial two-column: tag in left rail, content right */
@media (min-width: 1100px) {
  .ed .container {
    display: grid;
    grid-template-columns: var(--rail) 1fr;
    align-items: start;
  }
  .ed .container > .eyebrow { grid-column: 1; position: sticky; top: 120px; }
  .ed .container > *:not(.eyebrow) { grid-column: 2; }
}

.split-chars .char { display: inline-block; will-change: transform, opacity; }
.split-chars .word { display: inline-block; white-space: nowrap; }
.link-accent { color: var(--accent); border-bottom: 1px solid currentColor; }

/* square list marker */
.sq-list li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-second);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.sq-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 9px; height: 9px;
  background: var(--accent);
}

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-second);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 24px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
  white-space: nowrap;
  position: relative;
}
.btn::after { content: "→"; font-size: 14px; transition: transform 0.3s var(--ease-out); }
.btn:hover::after { transform: translateX(4px); }

.btn-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}
.btn-accent:hover { background: var(--accent); color: #06101c; }

.btn-line, .btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-line:hover, .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 17px 30px; }
.btn-sm { padding: 11px 18px; font-size: 12px; }

/* ============ nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, padding 0.4s, border-color 0.4s, transform 0.45s var(--ease-out);
}
.nav.scrolled {
  background: rgba(14, 15, 17, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom-color: var(--line);
}
.nav.hidden { transform: translateY(-110%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-logo { height: 34px; width: auto; }
.nav-wordmark {
  font-family: var(--font-second);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-wordmark em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-family: var(--font-second);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-links a::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::before { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(14, 15, 17, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
}
.mobile-menu nav a.btn { font-size: 13px; margin-top: 14px; }

/* ============ hero ============ */
.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  filter: brightness(0.78) contrast(1.08);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,15,17,0.5) 0%, rgba(14,15,17,0.12) 45%, rgba(14,15,17,0.94) 100%),
    linear-gradient(100deg, rgba(14,15,17,0.66) 30%, transparent 60%);
}
.hero-media.empty {
  background:
    radial-gradient(ellipse 80% 70% at 70% 25%, rgba(59, 157, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 60% at 15% 85%, rgba(14, 62, 123, 0.35), transparent 65%),
    var(--bg);
}
.hero-media.empty::after { background: linear-gradient(180deg, transparent 55%, rgba(14,15,17,0.9) 100%); }
.hero-glow { display: none; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.75; }

.hero-inner {
  position: relative;
  width: 100%;
  padding-top: 140px;
  padding-bottom: 72px;
}
.hero .eyebrow { margin-bottom: 28px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(52px, 9.6vw, 148px);
  line-height: 0.92;
  letter-spacing: 0.002em;
  color: var(--accent);
  margin: 0 0 44px -4px;
  max-width: 12ch;
}
.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 440px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-status {
  margin-top: 34px;
  font-family: var(--font-second);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 157, 255, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(59, 157, 255, 0); }
}

/* ============ hero shape filter (duotone wedge, scroll + mouse driven) ============ */
.hero-shape {
  position: absolute;
  inset: -12% -20%;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(59, 157, 255, 0.34) 34%,
    rgba(59, 157, 255, 0.34) 55%,
    transparent 55%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
}

/* ============ scrollytelling band (pinned sequence) ============ */
.band {
  position: relative;
  border-block: 1px solid var(--line);
  background: #0a0b0d;
}
.band-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 1;
}
/* scroll runway for the rect + typewriter choreography (desktop, JS adds .band-anim) */
.band-track { height: 0; }
.band-anim .band-track { height: 150vh; }
/* the services section lives INSIDE the band and scrolls OVER the stuck stage */
.band .services {
  position: relative;
  z-index: 2;
}
.band .service-panel {
  background: rgba(15, 16, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.band .section-intro { color: var(--ink); opacity: 0.85; }
.band-media { position: absolute; inset: 0; }
.band-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* stage 1: black & white — the growing rect colorizes it */
  filter: grayscale(1) brightness(0.52) contrast(1.15);
}
.band-media.empty {
  background:
    radial-gradient(ellipse 70% 90% at 20% 100%, rgba(120, 120, 120, 0.25), transparent 60%),
    #0a0b0d;
}
.band-rect {
  position: absolute;
  inset: 0;
  background: #2f7fd4;
  mix-blend-mode: color;
  pointer-events: none;
  will-change: transform;
  /* default = fully grown (no-JS / reduced-motion end state); JS animates from small angled */
}
.band-rect::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(59, 157, 255, 0.5);
}
.band-inner { position: relative; }
.band-kicker {
  font-family: var(--font-second);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.band-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(32px, 4.8vw, 78px);
  line-height: 1.02;
  max-width: 16ch;
}
.band-title .tw-char { display: inline-block; }
.band-title .word { display: inline-block; white-space: nowrap; }
.band-caret {
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: -0.05em;
  animation: caret-blink 0.85s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ============ cube ellipse ============ */
.cube-stage { position: relative; }
.cube-ellipse {
  position: absolute;
  top: 50%; left: 50%;
  width: 620px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}

/* ============ logo band ============ */
.logo-band {
  border-block: 1px solid var(--line);
  background: #101114;
  padding: 30px 0;
  overflow: hidden;
}
.partners-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.partners-track:hover { animation-play-state: paused; }
.partners-group { display: flex; align-items: center; gap: 96px; padding-right: 96px; flex-shrink: 0; }
.partners-group img {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity 0.3s;
}
.partners-group img:hover { opacity: 0.95; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ about ============ */
.about-grid { display: block; }
.about-lead {
  font-family: var(--font-second);
  font-weight: 500;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.42;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 40ch;
  margin-bottom: 90px;
}
.about-lead .w { opacity: 0.28; display: inline-block; }
.about .h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-chip { border-top: 1px solid var(--line); padding-top: 22px; }
.stat-chip strong {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 400;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat-chip strong::after { content: "+"; }
.stat-chip span {
  font-family: var(--font-second);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 12px;
}

/* ============ why (column parallax gallery) ============ */
.why { background: #101114; border-block: 1px solid var(--line); overflow: hidden; }
.why .container { padding-bottom: 60px; }
.why-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 72px;
  align-items: start;
}
.why-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  will-change: transform;
}
@media (min-width: 992px) {
  .why-col:nth-child(even) { margin-top: 90px; }
}
.why-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 40px 28px 44px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s, background 0.35s;
}
.why-card:hover { border-color: var(--accent-line); background: var(--panel-2); }

.why-tile {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.35s;
}
.why-tile:hover { border-color: var(--accent-line); }
.why-tile-img { aspect-ratio: 4 / 3; }
.why-tile-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.08);
  transition: filter 0.5s, transform 0.7s var(--ease-out);
}
.why-tile-img:hover img { filter: brightness(0.85); transform: scale(1.05); }
.why-tile-img.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59, 157, 255, 0.12), transparent 60%),
    var(--panel);
}
.why-tile-img.empty::after {
  content: "✦";
  font-size: 34px;
  color: var(--accent-line);
}
.why-tile-glyph {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-tile-glyph span {
  font-size: 56px;
  color: var(--accent);
  text-shadow: 0 0 34px rgba(59, 157, 255, 0.5);
  animation: glyph-spin 9s linear infinite;
  display: inline-block;
}
@keyframes glyph-spin { to { transform: rotate(360deg); } }
.why-tile-stat {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}
.why-tile-stat strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 60px;
  line-height: 1;
  color: var(--accent);
}
.why-tile-stat span {
  font-family: var(--font-second);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.why-num {
  font-family: var(--font-second);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: auto;
}
.why-num::before { content: "✦"; font-size: 17px; }
.why-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 48px 0 14px;
}
.why-card p { font-size: 14.5px; color: var(--muted); }

/* ============ work (tabbed stage) ============ */
.work .h2 { margin-bottom: 22px; }
.work-intro { margin-left: auto; text-align: right; margin-bottom: 72px; }
.work-stage {
  display: grid;
  grid-template-columns: 160px 1fr 300px;
  gap: 48px;
  align-items: start;
}
.work-rail {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.work-index {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.work-index em { font-style: normal; color: var(--dim); font-size: 30px; }
.work-arrows { display: flex; gap: 12px; }
.work-arrow {
  width: 58px; height: 58px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, color 0.3s, transform 0.15s;
}
.work-arrow:hover { border-color: var(--accent); color: var(--accent); }
.work-arrow:active { transform: scale(0.92); }

.work-main { min-width: 0; }
.work-frame {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59, 157, 255, 0.1), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  margin-bottom: 34px;
}
.work-frame svg { width: 100%; max-width: 520px; height: auto; }
.work-frame { position: relative; overflow: hidden; }
.work-frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.72) contrast(1.08);
  transition: transform 0.7s var(--ease-out), filter 0.4s;
}
.work-frame:hover img { transform: scale(1.04); filter: brightness(0.85) contrast(1.05); }
.work-frame:has(img) svg { display: none; }
.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.work-meta h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 38px);
}
.work-tags { display: flex; gap: 26px; }
.work-tags span {
  font-family: var(--font-second);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.work-tags span::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
}
.work-desc { color: var(--muted); font-size: 16px; max-width: 620px; margin-bottom: 28px; }

.work-nav-col { position: sticky; top: 140px; }
.work-nav-label {
  display: block;
  font-family: var(--font-second);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: right;
  margin-bottom: 18px;
}
.work-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: worknav;
}
.work-nav li {
  counter-increment: worknav;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 17px;
  white-space: nowrap;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 15px 18px;
  border-right: 2px solid transparent;
}
.work-nav li::before {
  content: counter(worknav, decimal-leading-zero);
  font-family: var(--font-second);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--dim);
  transition: color 0.3s;
}
.work-nav li:hover { color: var(--ink); background: var(--panel); }
.work-nav li.active {
  color: var(--ink);
  background: var(--accent-soft);
  border-right-color: var(--accent);
}
.work-nav li.active::before { color: var(--accent); }

/* ============ impact / cube ============ */
.impact { background: #101114; border-block: 1px solid var(--line); overflow: hidden; }
.impact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.impact-copy .h2 { max-width: 10ch; }
.impact-copy p { color: var(--muted); max-width: 400px; margin-bottom: 40px; font-size: 16px; }

.cube-stage { perspective: 1200px; display: flex; justify-content: center; min-height: 460px; align-items: center; }
.cube-scene { transform-style: preserve-3d; }
.cube { position: relative; transform-style: preserve-3d; width: 330px; height: 330px; }
.cube-face {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  background: rgba(16, 17, 20, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  backface-visibility: hidden;
}
.cube-face strong {
  font-family: var(--font-display);
  font-size: 82px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 44px rgba(59, 157, 255, 0.4);
}
.cube-face span {
  font-family: var(--font-second);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.impact-stats-mobile { display: none; }

/* ============ services ============ */
.service-list { display: flex; flex-direction: column; gap: 20px; }
.service-panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: clamp(40px, 5vw, 84px) clamp(28px, 4.5vw, 72px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-areas: "idx idx" "name caps" "desc caps";
  column-gap: 64px;
  transition: border-color 0.35s;
}
.service-panel:hover { border-color: var(--accent-line); }
.service-index {
  grid-area: idx;
  font-family: var(--font-second);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-index::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.service-name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.04;
  margin-bottom: 22px;
  max-width: 14ch;
}
.service-desc { grid-area: desc; color: var(--muted); font-size: 15.5px; max-width: 420px; }
.service-caps {
  grid-area: caps;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.service-caps li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-second);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.service-caps li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 9px; height: 9px;
  background: var(--accent);
}

/* ============ process ============ */
.process { background: #101114; border-block: 1px solid var(--line); }
.process-rows { border-top: 1px solid var(--line); margin-top: 64px; }
.process-row {
  display: grid;
  grid-template-columns: 150px 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 46px 8px;
  transition: background 0.3s, padding 0.3s var(--ease-out);
}
.process-row:hover { background: var(--panel); padding-left: 28px; }
.process-num {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-line);
}
.process-row:hover .process-num { -webkit-text-stroke-color: var(--accent); }
.process-row h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 34px);
}
.process-row p { color: var(--muted); font-size: 15px; max-width: 460px; }

/* ============ team ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
  max-width: 1180px;
}
.team-avatar-network {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(59, 157, 255, 0.18), transparent 65%),
    linear-gradient(160deg, #131b28, #101114 70%);
}
.network-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  max-width: 240px;
}
.network-cluster span {
  width: 62px; height: 62px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-second);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(59, 157, 255, 0.08);
}
.network-cluster span:nth-child(even) { transform: translateY(14px); }
.team-network small {
  display: block;
  padding: 12px 8px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.team-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 18px 18px 26px;
  transition: border-color 0.35s;
}
.team-card:hover { border-color: var(--accent-line); }
@media (min-width: 992px) {
  .team-card:nth-child(even) { margin-top: 48px; }
}
.team-avatar {
  aspect-ratio: 4 / 4.6;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 22px;
  background: linear-gradient(160deg, #182131, #101114 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.5s;
}
.team-card:hover .team-avatar img { filter: grayscale(0) contrast(1) brightness(1); }
.team-avatar span {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--dim);
}
.team-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 19px;
  padding: 0 8px;
}
.team-card p {
  font-family: var(--font-second);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 8px;
  padding: 0 8px;
}

/* ============ engagement ============ */
.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
  align-items: stretch;
}
.engage-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 46px 34px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.35s;
}
.engage-card:hover { border-color: var(--accent-line); }
.engage-featured {
  border-color: var(--accent-line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(59, 157, 255, 0.1), transparent 55%),
    var(--panel);
}
.engage-badge {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--accent);
  color: #06101c;
  font-family: var(--font-second);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
}
.engage-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 22px;
}
.engage-tag {
  font-family: var(--font-second);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.engage-card > p:not(.engage-tag) { color: var(--muted); font-size: 15px; }
.engage-card ul { display: flex; flex-direction: column; gap: 14px; flex: 1; margin-top: 8px; }
.engage-card li {
  padding-left: 24px;
  position: relative;
  font-size: 14.5px;
}
.engage-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  background: var(--accent);
}
.engage-card .btn { align-self: stretch; justify-content: center; margin-top: 14px; }

/* ============ recommendations ============ */
.recs { background: #101114; border-block: 1px solid var(--line); }
.recs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.rec-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  cursor: grab;
  transition: border-color 0.3s;
}
.rec-card:hover { border-color: var(--accent-line); }
.rec-card.dragging { opacity: 0.5; cursor: grabbing; border-color: var(--accent); }
.rec-card blockquote { font-size: 15.5px; line-height: 1.65; color: var(--ink); flex: 1; }
.rec-card blockquote::before {
  content: "";
  display: block;
  width: 22px; height: 3px;
  background: var(--accent);
  margin-bottom: 18px;
}
.rec-card figcaption { display: flex; flex-direction: column; gap: 3px; }
.rec-card figcaption strong {
  font-family: var(--font-second);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rec-card figcaption span { font-size: 12.5px; color: var(--muted); }
.partners-label {
  margin-top: 90px;
  text-align: center;
  font-family: var(--font-second);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ faq ============ */
.faq-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.faq-head { position: sticky; top: 130px; }
.faq-head p { color: var(--muted); font-size: 15.5px; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-second);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  text-align: left;
  padding: 26px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #06101c;
}
.faq-a { height: 0; overflow: hidden; }
.faq-a p { color: var(--muted); padding: 0 44px 26px 4px; font-size: 15.5px; }

/* ============ contact ============ */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  bottom: -30%; right: -10%;
  width: 700px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(59, 157, 255, 0.08), transparent 65%);
  pointer-events: none;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}
.contact-copy > p { color: var(--muted); max-width: 400px; font-size: 16px; }
.contact-direct { margin-top: 44px; display: flex; flex-direction: column; gap: 16px; }
.contact-line {
  font-family: var(--font-second);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.25s;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.contact-line::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
a.contact-line:hover { color: var(--accent); }
span.contact-line { color: var(--muted); font-size: 14px; }

.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 46px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-second);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 14px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 157, 255, 0.13);
}
.hidden-field { display: none; }
.form-submit { margin-top: 4px; justify-content: center; }
.form-note { font-size: 14px; color: var(--muted); min-height: 20px; }
.form-note.ok { color: #5fd68a; }
.form-note.err { color: #ff7a7a; }
.h-captcha { min-height: 78px; }

/* ============ footer ============ */
.footer {
  border-top: 1px solid var(--line);
  background: #101114;
  padding: 100px 0 36px;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.6fr;
  gap: 64px;
  margin-bottom: 90px;
}
.footer-logo { height: 42px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 380px; }
.footer-news h4, .footer-links h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-news p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.news-form-row { display: flex; gap: 12px; margin-bottom: 14px; }
.news-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 13px 16px;
  transition: border-color 0.25s;
  min-width: 0;
}
.news-form input:focus { outline: none; border-color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 13px; }
.footer-links a {
  font-family: var(--font-second);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s;
  width: fit-content;
}
.footer-links a:hover { color: var(--accent); }

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 13.5vw, 200px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 238, 241, 0.14);
  user-select: none;
  margin-bottom: 64px;
}
.footer-wordmark span { display: inline-block; transition: color 0.3s, -webkit-text-stroke-color 0.3s; }
.footer-wordmark span:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ============ preloader ============ */
.preloader { display: none; }
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.js .preloader.done { display: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader-logo { height: 70px; opacity: 0; }
.preloader-word {
  font-family: var(--font-second);
  font-size: 22px;
  font-weight: 700;
  opacity: 0;
}
.preloader-word em { font-style: normal; color: var(--accent); }
.preloader-count {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.2em;
}

/* ============ grain ============ */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 300;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ============ custom cursor ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 400;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(59, 157, 255, 0.55);
  border-radius: 50%;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.cursor-ring.hovering {
  width: 62px; height: 62px;
  border-color: rgba(59, 157, 255, 0.9);
  background: rgba(59, 157, 255, 0.07);
}
.cursor-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-second);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #06101c;
  opacity: 0;
  transition: opacity 0.2s;
  line-height: 1.25;
  padding: 6px;
}
.cursor-ring.labeled {
  width: 92px; height: 92px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor-ring.labeled span { opacity: 1; }
.work-frame { cursor: pointer; }
@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
  .cursor-dot, .cursor-ring { display: block; }
}

.cursor-particle {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--accent);
  pointer-events: none;
  z-index: 200;
}

/* ============ reveal base state ============ */
.js .reveal { opacity: 0; transform: translateY(36px); }
.js .split-chars { visibility: hidden; }
.js .split-chars.split-ready { visibility: visible; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; }
  .why-cols { grid-template-columns: repeat(2, 1fr); }
  .recs-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-inner { grid-template-columns: 1fr; }
  .cube-stage { display: none; }
  /* stats already appear in the About section; keep them out of Impact on mobile to avoid duplication */
  .impact-stats-mobile { display: none; }
  .work-stage { grid-template-columns: 1fr; gap: 26px; }
  /* on mobile the tappable pills below are the navigation; the index + arrows rail is redundant */
  .work-rail { display: none; }
  .work-nav-col { position: static; order: -1; }
  .work-nav-label { text-align: left; }
  .work-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .work-nav li {
    justify-content: flex-start;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 9px 16px 9px 14px;
    font-size: 14px;
  }
  .work-nav li.active { border-color: var(--accent-line); background: var(--accent-soft); }
}

@media (max-width: 991px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 104px 0; }
  .hero-title { max-width: none; }
  .about-lead { max-width: none; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 32px; }
  .faq-inner, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .faq-head { position: static; }
  .service-panel {
    grid-template-columns: 1fr;
    grid-template-areas: "idx" "name" "desc" "caps";
  }
  .service-caps { margin-top: 34px; gap: 14px; }
  .process-row { grid-template-columns: 90px 1fr; }
  .process-row p { grid-column: 2; }
  .engage-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .team-card:nth-child(even) { margin-top: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 44px; }
  .recs-grid { grid-template-columns: 1fr; max-width: 520px; }
  .rec-card { cursor: default; }
  .partners-group { gap: 52px; padding-right: 52px; }
  .partners-group img { height: 32px; max-width: 130px; }
  .cube-ellipse { display: none; }
}

@media (max-width: 600px) {
  :root { --pad-x: 20px; }
  body { font-size: 16px; }
  .hero-inner { padding-top: 120px; padding-bottom: 56px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-row { flex-direction: column; align-items: stretch; }
  .hero-sub { color: var(--ink); font-size: 16px; line-height: 1.6; max-width: none; }
  .why-cols, .about-stats { grid-template-columns: 1fr; }
  .why-card { min-height: 0; }
  .why-card h3 { margin-top: 30px; }
  .why-tile-img { aspect-ratio: 16 / 9; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .news-form-row { flex-direction: column; }
  .process-row { grid-template-columns: 1fr; gap: 12px; padding: 34px 4px; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .split-chars { visibility: visible; }
  .partners-track { animation-duration: 140s; }
  .grain { animation: none; }
  * { scroll-behavior: auto !important; }
}
