/* ============================================================
   PELCOM — design system
   Dark engineering aesthetic. Space Grotesk / Inter / JetBrains Mono.
   ============================================================ */

:root {
  --bg-0: #060709;
  --bg-1: #0a0c0f;
  --bg-2: #0e1116;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text-hi: #f2f4f7;
  --text-mid: #9ba3af;
  --text-low: #7c8490;
  --accent: #4d7cff;
  --accent-soft: rgba(77, 124, 255, 0.14);
  --accent-line: rgba(77, 124, 255, 0.38);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, dt { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 320;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 4px; font-size: 0.85rem; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 260;
  background: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader__mark { color: var(--text-hi); }
.preloader__mark .pl-dot { fill: var(--accent); animation: plPulse 1.2s ease-in-out infinite; }
@keyframes plPulse { 50% { opacity: 0.3; } }
.preloader__count {
  font-family: var(--font-mono); font-size: 2rem; font-weight: 500;
  color: var(--text-hi); letter-spacing: 0.05em; font-variant-numeric: tabular-nums;
}
.preloader__pct { color: var(--text-low); font-size: 1.1rem; margin-left: 2px; }
.preloader__bar {
  width: 180px; height: 1px; background: var(--line);
  position: relative; overflow: hidden;
}
.preloader__bar span {
  position: absolute; inset: 0; background: var(--accent);
  transform-origin: left; transform: scaleX(0); display: block;
  transition: transform 0.3s var(--ease-out);
}
.preloader__label {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.22em;
  color: var(--text-low);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 9, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 72px;
  display: flex; align-items: center; gap: 40px;
}
.nav__logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text-hi); }
.logo-mark { display: block; flex: none; }
.logo-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.16em;
}
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a {
  font-size: 0.875rem; color: var(--text-mid); font-weight: 500;
  letter-spacing: 0.01em; transition: color 0.25s;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--text-hi); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 500; font-size: 0.9rem;
  padding: 12px 26px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.28s var(--ease-out);
  letter-spacing: 0.01em; white-space: nowrap;
}
.btn--solid {
  background: #2b5ce6; color: #fff;
  box-shadow: 0 0 0 0 rgba(43, 92, 230, 0);
  position: relative; overflow: hidden;
}
/* shine sweep on hover */
.btn--solid::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: -80%; width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease-out);
  pointer-events: none;
}
.btn--solid:hover::after { left: 130%; }
.btn--solid:hover {
  background: #3667ef; transform: translateY(-1px);
  box-shadow: 0 8px 28px -6px rgba(43, 92, 230, 0.5);
}
.btn--solid:active { transform: translateY(0); }
.btn--ghost {
  border-color: var(--line); color: var(--text-hi);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn--full { width: 100%; }

.nav__burger {
  display: none; background: none; border: 0; padding: 14px 10px;
  flex-direction: column; gap: 6px; cursor: pointer; margin-left: auto;
}
.nav__burger span {
  width: 24px; height: 1.6px; background: var(--text-hi);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  display: block;
}
.nav__burger.open span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

/* mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 7, 9, 0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.mmenu.open { opacity: 1; visibility: visible; }
.mmenu__links { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mmenu.open .mmenu__links > * { animation: mmItemIn 0.45s var(--ease-out) both; }
.mmenu.open .mmenu__links > *:nth-child(1) { animation-delay: 0.08s; }
.mmenu.open .mmenu__links > *:nth-child(2) { animation-delay: 0.14s; }
.mmenu.open .mmenu__links > *:nth-child(3) { animation-delay: 0.20s; }
.mmenu.open .mmenu__links > *:nth-child(4) { animation-delay: 0.26s; }
.mmenu.open .mmenu__links > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes mmItemIn { from { opacity: 0; transform: translateY(14px); } }
.mmenu__links a:not(.btn) {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 500;
  color: var(--text-hi);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; height: 100vh; height: 100svh;
  min-height: 600px; background: var(--bg-0); overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(1.07);
  transition: transform 8.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero.playing .hero__video { transform: scale(1); }
.hero__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: none;
}

/* ============================================================
   ACT — full-bleed autoplay video chapters
   ============================================================ */
.act {
  position: relative; height: 100vh; height: 100svh;
  min-height: 560px; background: var(--bg-0); overflow: hidden;
}
.act__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(1.07);
  transition: transform 8.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.act.playing .act__video { transform: scale(1); }
.act__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: none;
}
.act__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 7, 9, 0.86) 0%, rgba(6, 7, 9, 0.32) 34%, transparent 56%),
    linear-gradient(to bottom, rgba(6, 7, 9, 0.5) 0%, transparent 18%);
}
.act__content {
  position: absolute; left: 0; right: 0;
  bottom: clamp(52px, 10vh, 110px);
}
.act__content .cap-num { letter-spacing: 0.24em; }
.act__title {
  font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.025em;
  margin-bottom: 14px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.act__sub {
  color: #d7dde5; max-width: 540px; font-size: 1rem; line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 18px rgba(0, 0, 0, 0.9);
}
.act__actions {
  margin-top: 26px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.act__mono {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.22em; color: var(--text-mid);
}
.act__hud {
  position: absolute; right: clamp(20px, 4vw, 48px);
  bottom: clamp(18px, 3.4vh, 34px);
  font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.18em; color: var(--text-low);
}
/* edge blend + text legibility */
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(6, 7, 9, 0.55) 100%),
    linear-gradient(to bottom, rgba(6, 7, 9, 0.55) 0%, transparent 22%, transparent 78%, rgba(6, 7, 9, 0.7) 100%);
}

/* hero stages */
.hero__stage { position: absolute; pointer-events: none; }
.hero__stage--intro {
  inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 24px 7vh; gap: 22px;
  background: radial-gradient(ellipse 56% 48% at 50% 46%, rgba(6, 7, 9, 0.68), transparent 74%);
}
.hero__stage--intro .btn, .hero__stage--final .btn { pointer-events: auto; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.26em; color: #9db8ff;
  background: rgba(6, 7, 9, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 18px 8px; border-radius: 4px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero__title {
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
.hero__sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem); color: #d7dde5;
  line-height: 1.7; max-width: 560px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 24px rgba(0, 0, 0, 0.9);
}
.hero__actions { margin-top: 10px; }

/* captions */
.hero__caption {
  top: 50%; transform: translateY(-50%);
  max-width: 340px; opacity: 0;
}
.hero__caption--left { left: clamp(24px, 7vw, 110px); }
.hero__caption--right { right: clamp(24px, 7vw, 110px); text-align: right; }
.cap-num {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent);
  letter-spacing: 0.2em; display: block; margin-bottom: 14px;
}
.cap-num::after {
  content: ''; display: block; width: 42px; height: 1px;
  background: var(--accent-line); margin-top: 10px;
}
.hero__caption--right .cap-num::after { margin-left: auto; }
.cap-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 4px 28px rgba(0, 0, 0, 0.8);
}
.cap-sub {
  margin-top: 12px; font-size: 0.92rem; color: #c9d0d9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 18px rgba(0, 0, 0, 0.9);
}

/* act title stages (centered, acts II & III) */
.hero__stage--act {
  inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 24px; gap: 6px; opacity: 0;
  background: radial-gradient(ellipse 52% 40% at 50% 50%, rgba(6, 7, 9, 0.5), transparent 74%);
}
.hero__stage--act .cap-sub { max-width: 460px; }
.hero__stage--act .cap-sub--mono {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.24em; color: var(--text-mid);
}
.hero__stage--act .hero__actions { margin-top: 26px; pointer-events: auto; }

/* finale */
.hero__stage--final {
  left: 0; right: 0; bottom: clamp(56px, 12vh, 120px);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 24px; opacity: 0;
}
.cap-num--c::after { margin: 10px auto 0; }
.cap-title--big { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; }
.hero__stage--final .cap-sub {
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.22em; color: var(--text-mid); margin-top: 16px;
}

/* HUD */
.hero__hud {
  position: absolute; left: 0; right: 0;
  bottom: clamp(18px, 3.4vh, 34px);
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.18em; color: var(--text-low);
}
.hero__hud em {
  font-style: normal; color: var(--text-mid);
  font-variant-numeric: tabular-nums;
}

/* scroll cue */
.hero__cue {
  position: absolute; bottom: clamp(48px, 8vh, 80px); left: 50%;
  transform: translateX(-50%);
}
.cue-line {
  display: block; width: 2px; height: 60px; border-radius: 1px;
  background: linear-gradient(to bottom, transparent, rgba(242, 244, 247, 0.55));
  position: relative; overflow: hidden;
}
.cue-line::after {
  content: ''; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--accent);
  animation: cueDrop 2s cubic-bezier(0.4, 0, 0.8, 1) infinite;
}
@keyframes cueDrop { 60%, 100% { top: 110%; } }

/* ============================================================
   TICKER — services strip
   ============================================================ */
.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-1);
  overflow: hidden; padding: 14px 0;
}
.ticker__track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: tickerMove 36s linear infinite;
}
.ticker__track span {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.22em; color: var(--text-low); white-space: nowrap;
}
.ticker__track i {
  width: 5px; height: 5px; background: var(--accent-line);
  transform: rotate(45deg); flex: none;
}
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* ============================================================
   CASCADE TITLES — unmasked spans, GSAP drives all motion.
   No overflow clipping (descenders stay intact); without JS the
   text simply stays visible.
   ============================================================ */
.w { display: inline-block; white-space: nowrap; }
.wi, .ch { display: inline-block; }
html.reduced .wi, html.reduced .ch {
  transform: none !important; opacity: 1 !important;
}

/* terminal typewriter for section labels */
.sec-label .tt { white-space: pre; }
.sec-label.typing .tt::after {
  content: ''; display: inline-block; width: 7px; height: 0.95em;
  background: var(--accent); margin-left: 4px; vertical-align: text-bottom;
  animation: ttBlink 0.85s steps(1) infinite;
}
@keyframes ttBlink { 50% { opacity: 0; } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 124px) 0;
  background: var(--bg-0);
  overflow: hidden;
}
.section--tight { padding: clamp(60px, 7vw, 100px) 0; }
.section .container { position: relative; }

/* oversized ghost section numeral — composes the negative space */
.sec-ghost {
  position: absolute; top: -0.12em; right: 0; z-index: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(120px, 17vw, 240px); line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none; user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .sec-ghost { color: rgba(255, 255, 255, 0.035); }
}
.section--alt {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(77, 124, 255, 0.05), transparent 70%),
    var(--bg-1);
}
.section--alt::before, .section--alt::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line-soft);
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

.sec-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-label {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.24em; color: var(--accent); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.sec-label span { color: var(--text-low); }
.sec-label::after {
  content: ''; flex: 0 0 48px; height: 1px; background: var(--accent-line);
}
.sec-title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -0.025em;
}
.sec-sub {
  margin-top: 22px; color: var(--text-mid); max-width: 560px;
  font-size: 1.02rem; line-height: 1.7;
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.pillar {
  background: var(--bg-0);
  padding: clamp(28px, 3.4vw, 44px);
  position: relative;
  transition: background 0.35s var(--ease-out);
  display: flex; flex-direction: column;
  min-height: 320px;
}
.pillar::before, .pillar::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 0 solid var(--accent); opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.pillar::before { top: -1px; left: -1px; border-top-width: 1.6px; border-left-width: 1.6px; }
.pillar::after { bottom: -1px; right: -1px; border-bottom-width: 1.6px; border-right-width: 1.6px; }
.pillar:hover { background: var(--bg-2); }
.pillar:hover::before, .pillar:hover::after { opacity: 1; }
.pillar__icon {
  color: var(--text-mid); margin-bottom: 26px;
  transition: color 0.3s;
}
.pillar:hover .pillar__icon { color: var(--text-hi); }
/* icons draw themselves in as the card reveals */
html.js .pillar__icon [stroke] { stroke-dasharray: 100; stroke-dashoffset: 100; }
html.js .pillar.in .pillar__icon [stroke] {
  animation: iconDraw 1.2s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
html.js .pillar__icon circle[fill] { opacity: 0; }
html.js .pillar.in .pillar__icon circle[fill] {
  opacity: 1; transition: opacity 0.4s 1.1s;
}
@keyframes iconDraw { to { stroke-dashoffset: 0; } }
/* cursor-tracking glow (JS sets --mx/--my) */
.pillar { --mx: 50%; --my: 50%; }
.pillar:hover {
  background-image: radial-gradient(300px circle at var(--mx) var(--my), rgba(77, 124, 255, 0.08), transparent 65%);
}
.pillar__title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.pillar__desc { color: var(--text-mid); font-size: 0.92rem; line-height: 1.65; margin-bottom: 24px; }
.pillar__list { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.pillar__list li {
  font-size: 0.875rem; color: var(--text-mid);
  display: flex; align-items: baseline; gap: 10px;
}
.pillar__list li::before {
  content: ''; flex: none; width: 5px; height: 5px;
  background: var(--accent-line); transform: rotate(45deg) translateY(-1px);
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
}
.stat {
  padding: clamp(32px, 4vw, 52px) clamp(8px, 2vw, 32px) 0;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.2rem, 8vw, 6.2rem); letter-spacing: -0.03em;
  display: block; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num .count { font-style: normal; }
.stat__sep { color: var(--accent); }
.stat__label {
  display: block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-low);
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 40px);
  position: relative;
}
.steps__line {
  position: absolute; top: 7px; left: 0; right: 0;
  height: 1px; background: linear-gradient(to right, var(--accent-line), var(--line));
  transform: scaleX(0); transform-origin: left;
}
.step { position: relative; padding-top: 34px; }
.step::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-0); border: 1.6px solid var(--accent-line);
  transition: background 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
/* dots ignite as the process line reaches them */
.step.lit::before {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 14px rgba(77, 124, 255, 0.55);
}
.step__num {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.2em; color: var(--accent);
  display: block; margin-bottom: 12px;
}
.step__title { font-size: 1.12rem; font-weight: 500; margin-bottom: 10px; }
.step__desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}
.contact__rows { margin-top: clamp(36px, 5vw, 56px); display: flex; flex-direction: column; }
.c-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.c-row:first-child { border-top: 1px solid var(--line-soft); }
.c-row dt {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.2em; color: var(--text-low);
}
.c-row dd { font-size: 1.02rem; color: var(--text-hi); }
.c-row dd a { border-bottom: 1px solid transparent; transition: border-color 0.25s, color 0.25s; }
.c-row dd a:hover { color: var(--accent); border-bottom-color: var(--accent-line); }

.contact__form {
  background: var(--bg-0); border: 1px solid var(--line-soft);
  padding: clamp(28px, 3.6vw, 44px);
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
}
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-hi); font-family: var(--font-body); font-size: 1rem;
  padding: 22px 0 10px; transition: border-color 0.3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--accent);
}
.field label {
  position: absolute; left: 0; top: 22px;
  color: var(--text-low); font-size: 1rem; pointer-events: none;
  transition: all 0.25s var(--ease-out);
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0; font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  font-family: var(--font-mono);
}
.contact__form .btn { margin-top: 6px; }

.form-success {
  position: absolute; inset: 0; background: var(--bg-0);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: 24px;
}
.form-success[hidden] { display: none; }
.form-success p { color: var(--text-mid); font-size: 0.98rem; }
.fs-circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: fsDraw 0.7s var(--ease-out) forwards; }
.fs-check { stroke-dasharray: 36; stroke-dashoffset: 36; animation: fsDraw 0.45s 0.5s var(--ease-out) forwards; }
@keyframes fsDraw { to { stroke-dashoffset: 0; } }

/* ============================================================
   CAS — flagship software showcase
   ============================================================ */
.cas {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.cas__points { display: flex; flex-direction: column; gap: 26px; }
.cas__points li {
  font-size: 0.92rem; color: var(--text-mid); line-height: 1.65;
  padding-left: 22px; position: relative;
}
.cas__points li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; background: var(--accent);
  transform: rotate(45deg);
}
.cas__points strong {
  display: block; color: var(--text-hi); font-weight: 600;
  font-size: 1.02rem; margin-bottom: 5px;
}
.cas__equip {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.2em; color: var(--text-low);
  display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline;
}
.cas__equip span { color: var(--text-mid); }

/* --- the living dashboard --- */
.dash {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(77, 124, 255, 0.04);
}
.dash__bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.dash__dots { display: flex; gap: 6px; }
.dash__dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.dash__title {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.18em; color: var(--text-low);
}
.dash__live {
  margin-left: auto; display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.16em; color: #58d68d;
}
.dash__live i {
  width: 6px; height: 6px; border-radius: 50%; background: #58d68d;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 50% { opacity: 0.25; } }
.dash__kpis {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 20px 18px 6px;
}
.dash__kpi { border-left: 1px solid var(--line-soft); padding-left: 16px; }
.dash__kpi:first-child { border-left: 0; padding-left: 0; }
.dash__kpi-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-variant-numeric: tabular-nums; display: block;
}
.dash__kpi-num--good { color: #58d68d; }
.dash__kpi-label {
  font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.18em; color: var(--text-low);
  display: block; margin-top: 4px;
}
.dash__chart { position: relative; padding: 14px 18px 4px; }
.dash__chart svg { width: 100%; height: 110px; display: block; }
.dash__chart svg {
  background-image: repeating-linear-gradient(to top, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 27px);
}
.dash__line { filter: drop-shadow(0 0 7px rgba(77, 124, 255, 0.65)); }
html.js .dash__line { stroke-dasharray: 100; stroke-dashoffset: 100; }
html.js .dash__area { opacity: 0; }
html.js .dash.in .dash__line {
  animation: chartDraw 1.8s 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
html.js .dash.in .dash__area {
  opacity: 1; transition: opacity 1s 1.4s;
}
@keyframes chartDraw { to { stroke-dashoffset: 0; } }
.dash__chart-label {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.16em; color: var(--text-low);
}
.dash__bars {
  display: flex; gap: 8px; align-items: flex-end;
  height: 56px; padding: 6px 18px 14px;
}
.dash__bars i {
  flex: 1; height: var(--h); border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, rgba(77, 124, 255, 0.16), rgba(99, 179, 255, 0.7));
  box-shadow: inset 0 1px 0 rgba(160, 205, 255, 0.5);
  transform: scaleY(0); transform-origin: bottom;
}
html.js .dash.in .dash__bars i {
  animation: barGrow 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
html.js .dash.in .dash__bars i:nth-child(1) { animation-delay: 0.5s; }
html.js .dash.in .dash__bars i:nth-child(2) { animation-delay: 0.58s; }
html.js .dash.in .dash__bars i:nth-child(3) { animation-delay: 0.66s; }
html.js .dash.in .dash__bars i:nth-child(4) { animation-delay: 0.74s; }
html.js .dash.in .dash__bars i:nth-child(5) { animation-delay: 0.82s; }
html.js .dash.in .dash__bars i:nth-child(6) { animation-delay: 0.9s; }
html.js .dash.in .dash__bars i:nth-child(7) { animation-delay: 0.98s; }
@keyframes barGrow { to { transform: scaleY(1); } }
.dash__log {
  border-top: 1px solid var(--line-soft);
  padding: 10px 18px 12px;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.08em; color: var(--text-low);
  height: 64px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.dash__log div { animation: logIn 0.3s ease-out; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__log b { color: #58d68d; font-weight: 400; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }

/* ============================================================
   TIMELINE — three decades
   ============================================================ */
.tline {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 40px);
}
.tline__rail {
  position: absolute; top: 7px; left: 0; right: 0; height: 1px;
  background: var(--line-soft);
}
.tline__fill {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--accent), var(--accent-line));
  transform: scaleX(0); transform-origin: left; display: block;
}
.tline__item { position: relative; padding-top: 34px; }
.tline__item::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-1); border: 1.6px solid var(--accent-line);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.tline__item.lit::before {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 14px rgba(77, 124, 255, 0.55);
}
.tline__year {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.2em; color: var(--accent);
  display: block; margin-bottom: 12px;
}
.tline__title { font-size: 1.12rem; font-weight: 500; margin-bottom: 10px; }
.tline__desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; }

@media (max-width: 960px) {
  .cas { grid-template-columns: 1fr; }
  .tline { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .tline__rail { display: none; }
  .tline__item.lit::before { background: var(--accent); }
}

/* film chapter progress — stories-style segments under the nav */
.fprog {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 90px; z-index: 5;
  display: flex; gap: 8px; width: min(300px, 56vw);
}
.fprog__seg {
  flex: 1; height: 2px; background: rgba(255, 255, 255, 0.16);
  overflow: hidden; border-radius: 1px;
}
.fprog__seg i {
  display: block; height: 100%;
  background: linear-gradient(to right, var(--accent), #7da3ff);
  transform: scaleX(0); transform-origin: left;
}

/* ============================================================
   AWARD KIT — grain, progress, cursor, particles, kinetic type
   ============================================================ */
/* film grain over everything */
.grain {
  position: fixed; inset: -120px; z-index: 240; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="140" height="140" filter="url(%23n)" opacity="0.55"/></svg>');
  opacity: 0.045;
  animation: grainShift 0.7s steps(2) infinite;
}
@keyframes grainShift {
  25% { transform: translate(26px, -18px); }
  50% { transform: translate(-20px, 24px); }
  75% { transform: translate(18px, 14px); }
}

/* scroll progress hairline */
.sprog {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300;
  background: linear-gradient(to right, var(--accent), #7da3ff);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* custom cursor (pointer:fine only — JS adds html.has-cur) */
.cur {
  position: fixed; top: 0; left: 0; z-index: 400;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  pointer-events: none; opacity: 0;
  margin: -4px 0 0 -4px;
}
.cur--ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              margin 0.25s var(--ease-out), opacity 0.3s;
}
.cur--ring.is-link {
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-color: rgba(255, 255, 255, 0.95);
}
html.has-cur, html.has-cur body, html.has-cur a, html.has-cur button,
html.has-cur input, html.has-cur textarea, html.has-cur label {
  cursor: none !important;
}

/* particle network layer inside sections */
.net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; opacity: 0.62;
  z-index: 0;
}
.section .container { z-index: 1; }

/* kinetic strip — scroll-velocity reactive outline type */
.kinetic {
  position: relative;
  overflow: hidden; padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-0);
}
.kinetic__row {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 56px);
  width: max-content; will-change: transform;
}
.kinetic__row span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 11vw, 150px); line-height: 1;
  letter-spacing: 0.02em; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}
.kinetic__row i {
  font-style: normal; color: var(--accent);
  font-size: clamp(20px, 3vw, 40px);
}
@supports not (-webkit-text-stroke: 1px black) {
  .kinetic__row span { color: rgba(255, 255, 255, 0.07); }
}

/* giant footer wordmark */
.footer__giant {
  overflow: hidden; text-align: center;
  padding: clamp(20px, 4vw, 48px) 0 0;
  line-height: 0.82; user-select: none;
}
.footer__giant span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(90px, 16.5vw, 270px);
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  transition: -webkit-text-stroke-color 0.5s, color 0.6s;
  display: inline-block; transform: translateY(0.08em);
}
.footer__giant:hover span {
  color: rgba(77, 124, 255, 0.1);
  -webkit-text-stroke-color: rgba(125, 163, 255, 0.45);
}
@supports not (-webkit-text-stroke: 1px black) {
  .footer__giant span { color: rgba(255, 255, 255, 0.06); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0;
  background: var(--bg-0);
}
.footer__inner {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.footer__addr { color: var(--text-mid); font-size: 0.85rem; margin-left: auto; }
.footer__copy { color: var(--text-low); font-size: 0.8rem; }

/* ============================================================
   REVEAL (JS adds .in)
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
/* section titles: typographic wipe reveal.
   The wipe runs as a keyframe animation on .in — a clipped rest state would
   make IntersectionObserver report zero intersection and never fire. */
html.js .reveal--title { transform: translateY(14px); }
html.js .reveal--title.in {
  animation: titleWipe 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes titleWipe {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
html.reduced .reveal { opacity: 1 !important; transform: none !important; }

/* ============================================================
   REDUCED MOTION + fallbacks
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video, .act__video, .hero__cue, .hero__hud, .act__hud { display: none; }
  .hero__fallback, .act__fallback { display: block; }
  .hero__video, .act__video { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; clip-path: none !important; filter: none !important; }
  .cue-line::after, .pl-dot { animation: none; }
  .fs-circle, .fs-check { animation: none; stroke-dashoffset: 0; }
  .steps__line { transform: scaleX(1); }
  .ticker__track { animation: none; }
  .grain { animation: none; opacity: 0.03; }
  .cur, .cur--ring { display: none; }
  .kinetic { display: none; }
  .fprog { display: none; }
  .hero__stage--act { display: none; }
  .dash__line { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
  .dash__area { opacity: 1 !important; }
  .dash__bars i { transform: scaleY(1) !important; animation: none !important; }
  .dash__live i { animation: none; }
  .tline__fill { transform: scaleX(1); }
  .tline__item::before { background: var(--accent); }
  .pillar__icon [stroke] { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
  .pillar__icon circle[fill] { opacity: 1 !important; }
  .step::before { background: var(--accent); }
  *, *::before, *::after { animation-duration: 0.001s !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; border-top: 0; }
  .stat { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; }
  .stat:first-child { border-top: 0; padding-top: 0; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { height: 64px; }
  .br-d { display: none; }
  .hero__stage--intro {
    background: radial-gradient(ellipse 100% 54% at 50% 50%, rgba(6, 7, 9, 0.72), transparent 80%);
  }
  .eyebrow { font-size: 0.58rem; letter-spacing: 0.18em; }
  .hero__shade {
    background:
      rgba(6, 7, 9, 0.18),
      radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(6, 7, 9, 0.6) 100%),
      linear-gradient(to bottom, rgba(6, 7, 9, 0.6) 0%, transparent 22%, transparent 78%, rgba(6, 7, 9, 0.75) 100%);
  }
  .hero__caption { max-width: 250px; }
  .hero__caption--left { left: 20px; }
  .hero__caption--right { right: 20px; }
  .hud__r { display: none; }
  .c-row { grid-template-columns: 1fr; gap: 6px; }
  .footer__giant span { font-size: clamp(56px, 21vw, 90px); letter-spacing: 0.02em; }
}
