/* ============================================================
   BYTORA — style.css
   Custom software · Web solutions
   Palette + type from BYTORA_COLOR_FONT_PALETTE.md
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg-0: #050A24;   /* Midnight Navy */
  --bg-1: #0A1240;   /* Rich Navy */
  --bg-2: #0E1749;   /* Deep Blue */
  --blue: #145BFF;   /* Electric Blue */
  --cyan: #08C8F2;   /* Tech Cyan */
  --violet: #4B32F5; /* Digital Violet */
  --text: #F5F8FF;
  --text-2: #A8B3D1;
  --text-3: #6F7DA5;
  --line: #1B2854;
  --white: #FFFFFF;

  --grad-primary: linear-gradient(90deg, #145BFF 0%, #08C8F2 100%);
  --grad-premium: linear-gradient(90deg, #4B32F5 0%, #145BFF 100%);
  --grad-brand: linear-gradient(90deg, #4B32F5 0%, #145BFF 50%, #08C8F2 100%);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1360px;
  --radius: 20px;
  --nav-h: 72px;

  --z-canvas: 0;
  --z-content: 10;
  --z-nav: 50;
  --z-menu: 60;
  --z-transition: 90;
  --z-loader: 100;
  --z-cursor: 110;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--cyan); color: var(--bg-0); }

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

/* ---------- Type scale ---------- */
.display-xl {
  font-size: clamp(2.75rem, 8.5vw, 7.25rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.display-lg {
  font-size: clamp(2.25rem, 5.6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.display-md {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 56ch; }
.body-2 { color: var(--text-2); }
.muted { color: var(--text-3); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradShift 6s ease-in-out infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- Layout ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 100px); }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.2fr 0.8fr; align-items: end; }
  .section-head .lead { justify-self: end; }
  /* inline link in a head sits on the right, on the heading's baseline */
  .section-head .link-arrow { justify-self: end; align-self: end; margin-bottom: 8px; }
}
.section-head h2 { margin-top: 18px; }

.grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(27, 40, 84, 0.45) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

/* ---------- Grain + ambient ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 5; pointer-events: none;
  opacity: 0.055;
  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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}
.ambient {
  position: fixed; inset: 0; z-index: var(--z-canvas); pointer-events: none; overflow: hidden;
}
.ambient span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  will-change: transform;
}
.ambient .a1 { width: 60vw; height: 60vw; left: -20vw; top: -20vw; background: radial-gradient(circle, rgba(20,91,255,0.45), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.ambient .a2 { width: 50vw; height: 50vw; right: -18vw; top: 20vh; background: radial-gradient(circle, rgba(75,50,245,0.4), transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
.ambient .a3 { width: 40vw; height: 40vw; left: 30vw; bottom: -20vw; background: radial-gradient(circle, rgba(8,200,242,0.28), transparent 65%); animation: drift3 28s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw, 22vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-22vw, -14vh) scale(1.2); } }

/* ---------- Cursor ---------- */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: var(--z-cursor);
  border-radius: 50%; transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor { width: 8px; height: 8px; background: #fff; }
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid rgba(255,255,255,0.7);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), border-color .3s, background .3s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(255,255,255,0.12); border-color: transparent; }
.cursor-ring.is-text { width: 4px; height: 28px; border-radius: 2px; background: #fff; border-color: transparent; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--bg-0);
  display: grid; place-items: center;
  transition: transform 1s var(--ease-in-out), opacity .4s .6s;
}
.loader.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.loader__inner { text-align: center; }
.loader__squares { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.loader__squares i {
  width: 14px; height: 14px; border-radius: 3px;
  background: var(--grad-primary);
  animation: sq 1.1s var(--ease-in-out) infinite;
}
.loader__squares i:nth-child(2) { animation-delay: .12s; }
.loader__squares i:nth-child(3) { animation-delay: .24s; }
@keyframes sq { 0%, 100% { transform: translateY(0) scale(1); opacity: .5; } 50% { transform: translateY(-14px) scale(1.15); opacity: 1; } }
.loader__count {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 10vw, 7rem); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.loader__count small { font-size: 0.4em; color: var(--cyan); margin-left: 4px; font-weight: 500; }
.loader__label { margin-top: 12px; color: var(--text-3); }
.loader__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--line); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--grad-brand); transition: width .15s linear; }

/* ---------- Page veil (single continuous sweep) ---------- */
.page-veil {
  position: fixed; inset: 0; z-index: var(--z-transition); pointer-events: none;
  clip-path: inset(0 0 0 0);
}
.page-veil__sheet {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(20,91,255,0.35), transparent 60%),
    var(--bg-1);
  transform: translate3d(0, 100%, 0);
  will-change: transform;
}
.page-veil__sheet::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--grad-brand);
  box-shadow: 0 0 28px rgba(8,200,242,0.75), 0 0 60px rgba(20,91,255,0.5);
}
.page-veil__mark {
  position: absolute; left: 50%; top: 50%; width: 72px; height: auto;
  transform: translate3d(-50%, -50%, 0) scale(0.82); opacity: 0;
  filter: drop-shadow(0 12px 40px rgba(20,91,255,0.6));
  will-change: transform, opacity;
}
/* leaving the page: sheet rises from the bottom and covers */
.page-veil.is-leaving .page-veil__sheet { animation: veilCover .62s var(--ease-in-out) forwards; }
.page-veil.is-leaving .page-veil__mark { animation: veilMarkIn .62s var(--ease-out) forwards; }
/* arriving: the same sheet keeps travelling up and off */
.page-veil.is-arriving .page-veil__sheet { transform: translate3d(0, 0, 0); animation: veilUncover .82s var(--ease-in-out) forwards; }
.page-veil.is-arriving .page-veil__mark { opacity: 1; animation: veilMarkOut .5s var(--ease-out) forwards; }
@keyframes veilCover   { to { transform: translate3d(0, 0, 0); } }
@keyframes veilUncover { to { transform: translate3d(0, -100%, 0); } }
@keyframes veilMarkIn  { 0% { opacity: 0; transform: translate3d(-50%,-30%,0) scale(0.82); } 60% { opacity: 1; } 100% { opacity: 1; transform: translate3d(-50%,-50%,0) scale(1); } }
@keyframes veilMarkOut { to { opacity: 0; transform: translate3d(-50%,-70%,0) scale(1.08); } }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 12px 20px; border-radius: 0 0 12px 12px;
  background: var(--blue); color: #fff; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 20px; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; justify-content: center; padding-inline: 16px;
  transition: transform .5s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-140%); }
.nav__pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(10, 18, 64, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  width: min(100%, 980px);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled .nav__pill { background: rgba(5, 10, 36, 0.78); }
.nav__logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__logo img { height: 30px; width: auto; }
.nav__logo span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  position: relative; padding: 10px 16px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--text-2);
  transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav__links a.is-active {
  color: var(--text);
  background: rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 2px 12px rgba(0,0,0,0.25);
}
.nav__links a.is-active:hover { background: rgba(255,255,255,0.13); }
.nav__links a.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 14px; height: 2px; border-radius: 2px;
  background: var(--grad-primary); box-shadow: 0 0 10px rgba(8,200,242,0.8);
}
.nav__cta { margin-left: 6px; }
.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  place-items: center; position: relative;
}
.nav__burger i {
  position: absolute; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav__burger i:first-child { transform: translateY(-4px); }
.nav__burger i:last-child { transform: translateY(4px); }
.nav__burger.is-open i:first-child { transform: rotate(45deg); }
.nav__burger.is-open i:last-child { transform: rotate(-45deg); }
@media (max-width: 860px) {
  .nav__pill .nav__links, .nav__pill .nav__cta { display: none; }
  .nav__burger { display: grid; }
}
/* menu open: lift the bar above the overlay so the X is reachable,
   and cancel the scroll-hide that could have parked it off screen */
body.is-locked .nav { z-index: calc(var(--z-menu) + 1); }
body.is-locked .nav.is-hidden { transform: none; }
body.is-locked .nav__pill {
  background: transparent; border-color: transparent; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.nav__burger.is-open { background: rgba(255,255,255,0.07); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--bg-0);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.menu__links a {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 12vw, 5rem); line-height: 1.05; letter-spacing: -0.03em;
  padding: 6px 0;
  transform: translateY(40px); opacity: 0;
  transition: transform .7s var(--ease-out), opacity .5s;
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .32s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .39s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .46s; }
.menu__links a span { color: var(--text-3); font-family: var(--font-mono); font-size: .8rem; margin-right: 18px; vertical-align: super; letter-spacing: .1em; }
.menu__foot { margin-top: 48px; display: flex; gap: 32px; color: var(--text-3); font-size: .9rem; opacity: 0; transition: opacity .6s .6s; }
.menu.is-open .menu__foot { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em;
  overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease-out), box-shadow .3s, color .3s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 30px rgba(20,91,255,0.35); }
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-primary);
  transform: translateX(-100%); transition: transform .5s var(--ease-out);
}
.btn--primary:hover::before { transform: translateX(0); }
.btn--primary:hover { box-shadow: 0 12px 40px rgba(8,200,242,0.35); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.14); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn--lg { padding: 18px 32px; font-size: 1.05rem; }
.btn__label { display: inline-block; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text);
  position: relative;
}
.link-arrow::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="clip"] { transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-out), opacity .3s; }
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1) { transition-delay: 0s; }
.stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.stagger.is-in > *:nth-child(5) { transition-delay: .32s; }
.stagger.is-in > *:nth-child(6) { transition-delay: .40s; }
.stagger.is-in > *:nth-child(7) { transition-delay: .48s; }
.stagger.is-in > *:nth-child(8) { transition-delay: .56s; }

/* Split text (words) */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.split.is-in .w > span { transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
  z-index: var(--z-content);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero__mark {
  position: absolute; right: clamp(16px, 4vw, 96px); top: 46%; transform: translateY(-50%);
  width: clamp(240px, 30vw, 520px); z-index: 0; pointer-events: none;
  filter: drop-shadow(0 40px 80px rgba(20,91,255,0.35));
  animation: markFloat 9s ease-in-out infinite;
  opacity: .95;
}
@keyframes markFloat { 0%, 100% { transform: translateY(-50%) rotate(-2deg); } 50% { transform: translateY(-55%) rotate(2deg); } }
@media (max-width: 1100px) { .hero__mark { opacity: .28; right: -10vw; top: 36%; width: clamp(260px, 50vw, 420px); filter: blur(1px); } }
.hero__inner { position: relative; z-index: 2; }
.hero h1 { max-width: 11ch; }
@media (max-width: 1100px) { .hero h1 { max-width: 14ch; } }
.hero__top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
  font-size: .85rem; color: var(--text-2);
}
.hero__badge i {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-primary); position: relative;
}
.hero__badge i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--cyan); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.hero h1 em { font-style: normal; color: var(--text-3); }
.hero__row {
  display: grid; gap: 32px; margin-top: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) { .hero__row { grid-template-columns: 1fr auto; } }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 32px; }
.hero__meta div strong { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; }
.hero__meta div span { font-size: .8rem; color: var(--text-3); }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 24px; z-index: 2;
  display: flex; align-items: center; gap: 12px; color: var(--text-3); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .15em;
}

/* hero shell: centred, not bottom-aligned */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;   /* was flex-end */
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: clamp(72px, 9vw, 120px);
  overflow: hidden;
  z-index: var(--z-content);
}

/* the mark: smaller, quieter, slower */
.hero__mark {
  position: absolute; right: clamp(16px, 3vw, 72px); top: 50%; transform: translateY(-50%);
  width: clamp(230px, 27vw, 470px); z-index: 0; pointer-events: none;
  filter: drop-shadow(0 40px 90px rgba(20,91,255,0.30));
  animation: markFloat 14s ease-in-out infinite;
  opacity: .88;
}
@keyframes markFloat { 0%, 100% { transform: translateY(-50%) rotate(-1.2deg); } 50% { transform: translateY(-53%) rotate(1.2deg); } }
@media (max-width: 1100px) { .hero__mark { opacity: .22; right: -12vw; top: 38%; width: clamp(260px, 50vw, 420px); filter: blur(1px); } }

/* type: smaller display, tighter tracking, calmer lead */
.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.3rem, 5.6vw, 5rem);
  letter-spacing: -0.04em;       /* tighter tracking as the type grows */
  line-height: 1.0;
  text-wrap: balance;            /* even line lengths, same as the inner heroes */
}
/* closing phrase carries the brand gradient, matching about/services/contact */
.hero h1 .grad-words { font-style: normal; }
.hero h1 .grad-words .w > span {
  background: linear-gradient(96deg, var(--cyan), #3F7BFF 88%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (max-width: 1100px) { .hero h1 { max-width: 14ch; } }
.hero .lead { color: var(--text-2); max-width: 46ch; font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.6; }
.hero__top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.5vw, 40px); }

/* single-column row, quiet second action */
.hero__row {
  display: grid; gap: clamp(22px, 3vw, 34px);
  margin-top: clamp(24px, 3.5vw, 40px);
  grid-template-columns: 1fr;
  max-width: 54ch;
}
.hero__actions { display: flex; gap: clamp(16px, 2.5vw, 28px); flex-wrap: wrap; align-items: center; }
.hero__quiet { color: var(--text-2); font-weight: 500; }
.hero__quiet:hover { color: var(--text); }

.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--cyan), transparent); animation: scrollHint 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollHint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: 18px; position: relative; z-index: var(--z-content);
  background: rgba(10,18,64,0.35);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 500; color: var(--text-2);
  white-space: nowrap;
}
.marquee__track span::after { content: ''; width: 6px; height: 6px; background: var(--blue); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0% 0%, rgba(20,91,255,0.18), transparent 60%); opacity: 0; transition: opacity .5s; }
.stat:hover::before { opacity: 1; }
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 4.5vw, 4rem); letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  transform: translateY(var(--lift, 0px));
  filter: blur(var(--blur, 0px));
  will-change: transform, filter;
}
/* the unit arrives only once the number has settled */
.stat strong sup {
  font-size: .4em; color: var(--cyan); vertical-align: top; margin-left: 2px;
  display: inline-block; opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-spring);
}
.stat.is-counted strong sup { opacity: 1; transform: none; }
/* a thin rule sweeps across as the value counts */
.stat::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--grad-primary); transform: scaleX(0); transform-origin: left;
  transition: transform 1.9s var(--ease-out), opacity .6s .4s;
}
.stat.is-counting::after, .stat.is-counted::after { transform: scaleX(1); }
.stat.is-counted::after { opacity: .35; }
@media (prefers-reduced-motion: reduce) {
  .stat strong { filter: none !important; transform: none !important; }
  .stat strong sup { opacity: 1; transform: none; }
  .stat::after { transition: none; }
}
.stat > span { display: block; margin-top: 10px; color: var(--text-3); font-size: .9rem; }
@media (min-width: 800px) { .stat { border-bottom: 0; } .stat:last-child { border-right: 0; } }
@media (max-width: 799px) { .stat:nth-child(2n) { border-right: 0; } .stat:nth-last-child(-n+2) { border-bottom: 0; } }

/* ---------- Cards (spotlight) ---------- */
.card {
  position: relative; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(14,23,73,0.6), rgba(10,18,64,0.35));
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), border-color .4s;
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(20,91,255,0.22), transparent 45%);
  transition: opacity .4s;
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 1; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(8,200,242,0.7), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { transform: translateY(-4px); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(20,91,255,0.12); border: 1px solid rgba(20,91,255,0.25); color: var(--cyan);
  margin-bottom: 24px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-2); font-size: .97rem; }
.card__num { position: absolute; top: 24px; right: 28px; font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); letter-spacing: .12em; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.card__tags span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-3); }

.services-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } .services-grid .card--wide { grid-column: span 2; } }

/* ---------- Figure trio (Why custom) ---------- */
.lede { max-width: 26ch; }
.lede em { font-style: normal; color: var(--text-3); }
@media (min-width: 900px) { .lede { max-width: 30ch; } }

.figs {
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin-top: clamp(40px, 6vw, 72px);
  margin-bottom: clamp(48px, 7vw, 88px);
}
@media (min-width: 820px) { .figs { grid-template-columns: repeat(3, 1fr); } }

.fig {
  position: relative;
  padding: clamp(24px, 3vw, 36px) clamp(0px, 3vw, 40px) clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}
@media (min-width: 820px) {
  .fig { border-top: 0; border-left: 1px solid var(--line); }
  .fig:first-child { border-left: 0; padding-left: 0; }
  .fig:last-child { padding-right: 0; }
}
/* the divider lights up under the cursor */
@media (min-width: 820px) {
  .fig::before {
    content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
    opacity: 0; transition: opacity .5s var(--ease-out);
  }
  .fig:first-child::before { display: none; }
  .fig:hover::before { opacity: .5; }
}
.fig__label { display: block; color: var(--text-3); letter-spacing: .18em; transition: color .4s; }
.fig:hover .fig__label { color: var(--cyan); }
.fig h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.fig p { color: var(--text-2); font-size: .95rem; max-width: 40ch; }

.fig__art {
  height: clamp(180px, 20vw, 226px);
  display: grid; place-items: center;
  margin: clamp(20px, 3vw, 36px) 0 clamp(24px, 3vw, 36px);
  perspective: 820px;
}
.fig__art svg {
  width: 100%; max-width: 272px; height: auto; overflow: visible;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---- strokes ---- */
.fig__art .ln {
  fill: none; stroke: url(#fg1b); stroke-width: 1.15; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: stroke-width .45s var(--ease-out), opacity .45s;
}
.fig__art[data-fig="2"] .ln { stroke: url(#fg2b); }
.fig__art[data-fig="3"] .ln { stroke: url(#fg3b); }
.fig__art .ln.dim { opacity: .45; }
.fig__art .ln.hi { stroke: url(#fg1a); stroke-width: 1.6; }
.fig__art[data-fig="2"] .ln.hi { stroke: url(#fg2a); }
.fig__art[data-fig="3"] .ln.hi { stroke: url(#fg3a); }
.fig:hover .fig__art .ln { stroke-width: 1.5; }
.fig:hover .fig__art .ln.hi { stroke-width: 2.1; filter: url(#fgl1); }
.fig:hover .fig__art[data-fig="2"] .ln.hi { filter: url(#fgl2); }
.fig:hover .fig__art[data-fig="3"] .ln.hi { filter: url(#fgl3); }

/* ---- backdrop dot grid + floor glow ---- */
.fgrid circle { fill: rgba(168,179,209,.16); transition: fill .5s; }
.fig:hover .fgrid circle { fill: rgba(8,200,242,.26); }
.fgrid { opacity: 0; transition: opacity .6s var(--ease-out); }
.fig.is-in .fgrid { opacity: 1; }
.fglow { opacity: 0; transition: opacity .6s var(--ease-out); }
.fig.is-in .fglow { opacity: .9; }
.fig:hover .fglow { opacity: 1; }

/* ---- pulsing nodes ---- */
.node { fill: var(--cyan); opacity: 0; }
.fig.is-in .node { animation: nodeIn .5s var(--ease-out) .7s forwards, nodePulse 2.6s ease-in-out 1.2s infinite; }
.fig.is-in .node.n2 { animation-delay: .82s, 1.5s; }
.fig.is-in .node.n3 { animation-delay: .94s, 1.8s; }
@keyframes nodeIn { to { opacity: 1; } }
@keyframes nodePulse { 50% { opacity: .35; r: 2.2px; } }

/* ---- the connecting scan line keeps travelling ---- */
.scan {
  fill: none; stroke: var(--cyan); stroke-width: 1.4; opacity: 0;
  stroke-dasharray: .12 .88; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.fig.is-in .scan { opacity: .55; animation: scanRun 3.4s linear 1s infinite; }
.fig:hover .scan { opacity: .95; animation-duration: 1.6s; }
@keyframes scanRun { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---- layers: parallax depth + hover spread, driven from JS ---- */
.lyr {
  transform: translate3d(var(--tx, 0px), calc(var(--ty, 0px) - var(--spread, 0) * var(--sp, 0px) + var(--pop, 0px)), 0);
  transition: transform .75s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.fig__art[data-fig="3"] .slat {
  transform: translate3d(var(--tx, 0px), calc(var(--ty, 0px) + var(--wave, 0px) + var(--pop, 0px)), 0);
}

/* ---- the slice under the cursor is selected ---- */
.lyr.is-active { --pop: -9px; }
.fig__art[data-fig="3"] .slat.is-active { --pop: -14px; }
.lyr.is-active .ln { stroke: url(#fg1a); stroke-width: 2.3; opacity: 1; filter: url(#fgl1); }
.fig__art[data-fig="2"] .lyr.is-active .ln { stroke: url(#fg2a); filter: url(#fgl2); }
.fig__art[data-fig="3"] .lyr.is-active .ln { stroke: url(#fg3a); filter: url(#fgl3); }
/* everything else steps back so the selection reads instantly */
.fig:hover .lyr:not(.is-active) .ln { opacity: .34; }
.fig:hover .lyr:not(.is-active) .ln.hi { opacity: .5; }
.lyr .ln { transition: stroke-width .3s var(--ease-out), opacity .3s var(--ease-out), stroke .3s; }
.lyr.is-active .node { opacity: 1; animation: none; r: 4; }

/* ---- strokes draw themselves in ---- */
.fig__art path[data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fig.is-in .fig__art path[data-draw] {
  animation: figDraw 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes figDraw { to { stroke-dashoffset: 0; } }

/* ---- idle breathing so it never reads as a static image ---- */
.fig.is-in .fig__art svg { animation: figFloat 9s ease-in-out infinite; }
.fig:nth-child(2).is-in .fig__art svg { animation-delay: -3s; }
.fig:nth-child(3).is-in .fig__art svg { animation-delay: -6s; }
.fig:hover .fig__art svg { animation-play-state: paused; }
@keyframes figFloat { 50% { translate: 0 -7px; } }

@media (prefers-reduced-motion: reduce) {
  .fig__art path[data-draw] { stroke-dashoffset: 0 !important; animation: none !important; }
  .fig.is-in .fig__art svg, .fig.is-in .node, .fig.is-in .scan { animation: none !important; }
  .fig.is-in .node { opacity: 1; }
  .lyr, .slat { transform: none !important; }
}

/* ---------- Process (sticky stack) ---------- */
.process { position: relative; }
.process__list { display: grid; gap: 20px; }
.step {
  position: sticky; top: calc(var(--nav-h) + 40px);
  display: grid; grid-template-columns: 1fr; gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  box-shadow: 0 -20px 60px rgba(5,10,36,0.6);
  transform-origin: top center;
}
@media (min-width: 900px) { .step { grid-template-columns: 120px 1fr 1fr; } }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -0.05em; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.step p { color: var(--text-2); max-width: 46ch; }
.step__meta { display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.step__meta li { display: flex; gap: 12px; align-items: center; color: var(--text-2); font-size: .95rem; }
.step__meta li::before { content: ''; width: 6px; height: 6px; background: var(--cyan); flex: none; }
.step:nth-child(2) { background: linear-gradient(135deg, var(--bg-2), var(--bg-1)); }
.step:nth-child(3) { background: linear-gradient(135deg, #10205f, var(--bg-2)); }
.step:nth-child(4) { background: linear-gradient(135deg, #142777, #10205f); }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* tiles must never be transparent on their own: the 1px grid background would flash through */
.industries > * { opacity: 1 !important; transform: none !important; }
@media (min-width: 700px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .industries { grid-template-columns: repeat(4, 1fr); } }
.ind {
  background: var(--bg-0); padding: 28px 24px; min-height: 150px; cursor: default;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  position: relative; overflow: hidden; transition: background .4s;
}
.ind::after { content: ''; position: absolute; inset: auto -20% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: var(--blue); filter: blur(50px); opacity: 0; transition: opacity .5s, transform .6s var(--ease-out); transform: scale(.6); }
.ind:hover { background: var(--bg-1); }
.ind:hover::after { opacity: .5; transform: scale(1); }
.ind svg { width: 26px; height: 26px; color: var(--cyan); position: relative; z-index: 1; }
.ind span { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; position: relative; z-index: 1; }
.ind small { display: block; color: var(--text-3); font-size: .8rem; margin-top: 4px; font-family: var(--font-body); font-weight: 400; }

/* ---------- Testimonials ---------- */
.testi { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .testi { grid-template-columns: repeat(3, 1fr); } }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.quote p { font-size: 1.08rem; line-height: 1.55; color: var(--text); }
.quote p::before { content: '“'; font-family: var(--font-display); font-size: 3rem; line-height: 0; color: var(--blue); vertical-align: -0.4em; margin-right: 4px; }
.quote footer { display: flex; align-items: center; gap: 14px; }
.quote footer i { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-style: normal; font-size: .9rem; }
.quote footer strong { display: block; font-size: .95rem; }
.quote footer span { color: var(--text-3); font-size: .82rem; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; border-radius: 32px; overflow: hidden;
  padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 96px);
  background: var(--bg-1); border: 1px solid var(--line);
  text-align: center; isolation: isolate;
}
.cta::before { content: ''; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 60%, rgba(20,91,255,0.35) 75%, rgba(8,200,242,0.4) 85%, transparent 100%); animation: spin 14s linear infinite; }
.cta::after { content: ''; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; background: radial-gradient(ellipse at 50% 120%, rgba(20,91,255,0.35), var(--bg-1) 60%); }
@keyframes spin { to { transform: rotate(360deg); } }
.cta h2 { max-width: 16ch; margin-inline: auto; }

/* CTA scroll zoom: native scroll-driven where supported, JS fallback elsewhere */
.cta {
  transform-origin: 50% 60%;
  will-change: transform, opacity;
  transition: none;
}
@supports (animation-timeline: view()) {
  .cta {
    animation: ctaZoom linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 48%;
  }
}
@keyframes ctaZoom {
  from { transform: translateY(60px) scale(0.7); opacity: 0.45; border-radius: 72px; }
  to   { transform: translateY(0) scale(1);      opacity: 1;    border-radius: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta { animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* Testimonial cards: same scroll zoom, lightly staggered per column */
.testi .card {
  transform-origin: 50% 70%;
  will-change: transform, opacity;
  transition: none;
}
@supports (animation-timeline: view()) {
  .testi .card {
    animation: cardZoom linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 42%;
  }
  .testi .card:nth-child(2) { animation-range: entry 0% cover 50%; }
  .testi .card:nth-child(3) { animation-range: entry 0% cover 58%; }
}
@keyframes cardZoom {
  from { transform: translateY(28px) scale(0.93); opacity: 0.6; border-radius: 28px; }
  to   { transform: translateY(0) scale(1);       opacity: 1;   border-radius: var(--radius); }
}
@media (prefers-reduced-motion: reduce) {
  .testi .card { animation: none !important; transform: none !important; opacity: 1 !important; }
}
.cta .lead { margin: 24px auto 40px; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: var(--z-content); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); overflow: hidden; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand p { color: var(--text-2); max-width: 32ch; margin-top: 16px; }
.footer h4 { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--text-2); transition: color .25s; }
.footer li a:hover { color: var(--cyan); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .82rem; }
.footer__big {
  font-family: var(--font-display); font-weight: 700; text-align: center;
  font-size: clamp(5rem, 22vw, 22rem); line-height: .8; letter-spacing: -0.05em;
  margin-top: 24px; margin-bottom: -0.12em;
  background: linear-gradient(to bottom, rgba(245,248,255,0.18), rgba(245,248,255,0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; pointer-events: none;
}
.footer__status { display: inline-flex; align-items: center; gap: 8px; }
.footer__status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(80px, 12vw, 160px)); padding-bottom: clamp(48px, 7vw, 96px); z-index: var(--z-content); overflow: hidden; }
.page-hero h1 { margin-top: 20px; max-width: 12ch; }
.page-hero .lead { margin-top: 28px; }
.page-hero__num { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 40px); font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 22vw, 20rem); line-height: 1; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(168,179,209,0.15); pointer-events: none; user-select: none; }


/* ---------- About hero: minimal split + 3D object ---------- */
.page-hero--about { padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 120px)); padding-bottom: clamp(56px, 8vw, 110px); }
.page-hero__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.page-hero--about h1 {
  margin-top: 20px; max-width: 14ch;
  font-size: clamp(2.3rem, 5.1vw, 4.5rem);
  letter-spacing: -0.042em; line-height: 0.98;
  text-wrap: balance;
}
/* the closing phrase carries the brand gradient, per word */
.page-hero--about h1 .grad-words { font-style: normal; }
.page-hero--about h1 .grad-words .w > span {
  background: linear-gradient(96deg, var(--cyan), #3F7BFF 88%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.page-hero--about .lead {
  margin-top: 22px; max-width: 40ch; color: var(--text-2);
  font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.62;
  text-wrap: pretty;
}
/* grounding line: mono facts, hairline separated */
.hero-meta {
  margin-top: 34px; padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 30rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
}
.hero-meta li { display: flex; align-items: center; gap: 14px; }
.hero-meta li + li::before {
  content: ''; width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-3); opacity: .6;
}

/* entrance, staggered by role */
.page-hero--about [data-hero] { opacity: 0; transform: translateY(14px); }
.page-hero--about.is-live [data-hero] {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.page-hero--about.is-live [data-hero="1"] { transition-delay: .04s; }
.page-hero--about.is-live [data-hero="2"] { transition-delay: .30s; }
.page-hero--about.is-live [data-hero="3"] { transition-delay: .18s; transition-duration: 1.1s; }
.page-hero--about.is-live [data-hero="4"] { transition-delay: .46s; }

/* the object */
.hero3d {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 520px);
  margin-inline: auto;
  display: grid; place-items: center;
  touch-action: pan-y;
}
.hero3d__canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.hero3d__canvas:active { cursor: grabbing; }
.hero3d__glow {
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,91,255,.34), rgba(8,200,242,.10) 45%, transparent 70%);
  filter: blur(34px);
  z-index: -1;
  animation: heroGlow 7s ease-in-out infinite;
}
@keyframes heroGlow { 50% { transform: scale(1.12); opacity: .82; } }
@media (max-width: 899px) {
  .hero3d { width: min(88%, 380px); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero--about [data-hero] { opacity: 1 !important; transform: none !important; }
  .hero3d__glow { animation: none; }
}

/* ---------- Services page: accordion list ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  border-bottom: 1px solid var(--line); position: relative;
}
.svc__head {
  width: 100%; display: grid; grid-template-columns: 60px 1fr 44px; align-items: center; gap: 16px;
  padding: clamp(24px, 3.5vw, 40px) 0; text-align: left;
  transition: padding .4s var(--ease-out);
}
@media (min-width: 900px) { .svc__head { grid-template-columns: 90px 1fr 1fr 44px; } }
.svc__idx { font-family: var(--font-mono); color: var(--text-3); font-size: .8rem; letter-spacing: .1em; }
.svc__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 3vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.1; transition: transform .5s var(--ease-out), color .3s; }
.svc__short { color: var(--text-3); font-size: .95rem; display: none; }
@media (min-width: 900px) { .svc__short { display: block; } }
.svc__plus { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: background .3s, border-color .3s, transform .5s var(--ease-out); }
.svc__plus::before, .svc__plus::after { content: ''; position: absolute; background: var(--text); width: 14px; height: 1.5px; transition: transform .4s var(--ease-out); }
.svc__plus::after { transform: rotate(90deg); }
.svc:hover .svc__title { transform: translateX(10px); }
.svc:hover .svc__plus { border-color: var(--cyan); background: rgba(8,200,242,0.1); }
.svc.is-open .svc__plus { transform: rotate(180deg); background: var(--blue); border-color: var(--blue); }
.svc.is-open .svc__plus::after { transform: rotate(0); }
.svc.is-open .svc__title { color: var(--cyan); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.svc.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body > div { overflow: hidden; }
.svc__content { display: grid; gap: 32px; padding-bottom: clamp(32px, 4vw, 56px); grid-template-columns: 1fr; opacity: 0; transform: translateY(12px); transition: opacity .5s .15s, transform .6s .15s var(--ease-out); }
.svc.is-open .svc__content { opacity: 1; transform: none; }
@media (min-width: 900px) { .svc__content { grid-template-columns: 90px 1.2fr .8fr; } .svc__content > :first-child { grid-column: 2; } }
.svc__content p { color: var(--text-2); max-width: 56ch; }
.svc__content ul { display: grid; gap: 10px; margin-top: 20px; }
.svc__content ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: .95rem; }
.svc__content ul li::before { content: ''; width: 14px; height: 14px; border-radius: 4px; background: var(--grad-primary); flex: none; margin-top: 4px; }
.svc__stack { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.svc__stack span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; padding: 8px 12px; border-radius: 8px; background: var(--bg-1); border: 1px solid var(--line); color: var(--text-2); }
.svc__stack h4 { grid-column: 1 / -1; width: 100%; font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }

/* Engagement models */
.models { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .models { grid-template-columns: repeat(3, 1fr); } }
.model { display: flex; flex-direction: column; gap: 20px; }
.model.is-featured { background: linear-gradient(180deg, rgba(20,91,255,0.18), rgba(10,18,64,0.4)); border-color: rgba(20,91,255,0.5); }
.model__badge { align-self: flex-start; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: var(--blue); color: #fff; }
.model h3 { font-size: 1.5rem; }
.model ul { display: grid; gap: 10px; flex: 1; }
.model ul li { display: flex; gap: 10px; color: var(--text-2); font-size: .95rem; }
.model ul li svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 3px; }
.model__price { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-2); }
.model__price strong { font-size: 1.6rem; color: var(--text); letter-spacing: -0.02em; }

/* ---------- About page ---------- */
.manifesto { max-width: 1000px; }
.manifesto p {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.9rem); line-height: 1.25; letter-spacing: -0.02em;
}
.manifesto .w { color: rgba(245,248,255,0.18); transition: color .4s; }
.manifesto .w.is-lit { color: var(--text); }
.manifesto .hi .w.is-lit { color: var(--cyan); }

.about-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.about-grid h2 { margin-top: 18px; }
.about-grid .lead { margin-top: 24px; }
.about-grid .body-2 { margin-top: 20px; max-width: 56ch; }

.values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value { background: var(--bg-0); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; grid-template-columns: 56px 1fr; align-items: start; transition: background .4s; }
.value:hover { background: var(--bg-1); }
.value b { font-family: var(--font-mono); font-weight: 500; font-size: .75rem; letter-spacing: .1em; color: var(--cyan); padding-top: 6px; }
.value h3 { font-size: 1.35rem; margin-bottom: 8px; }
.value p { color: var(--text-2); font-size: .95rem; max-width: 60ch; }

.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--cyan), var(--violet)); }
.tl { position: relative; padding-bottom: 40px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ''; position: absolute; left: -32px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg-0); border: 2px solid var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.tl time { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: var(--cyan); }
.tl h3 { font-size: 1.3rem; margin: 8px 0; }
.tl p { color: var(--text-2); max-width: 48ch; }

.founder { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .founder { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.founder__visual {
  aspect-ratio: 4/5; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-0));
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.founder__visual img { width: 60%; filter: drop-shadow(0 30px 60px rgba(20,91,255,0.5)); animation: markFloat2 8s ease-in-out infinite; }
@keyframes markFloat2 { 50% { transform: translateY(-14px); } }
.founder__visual::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(168,179,209,0.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); }
.founder__tag { position: absolute; left: 20px; bottom: 20px; padding: 10px 14px; border-radius: 12px; background: rgba(5,10,36,0.7); border: 1px solid var(--line); backdrop-filter: blur(10px); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--text-2); }
.founder blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; }
.founder cite { display: block; margin-top: 24px; font-style: normal; color: var(--text-3); font-size: .9rem; }
.founder cite strong { color: var(--text); display: block; font-size: 1rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; } }
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 22px 18px 10px; border-radius: 14px;
  background: rgba(10,18,64,0.5); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 1rem; outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field label {
  position: absolute; left: 18px; top: 17px; color: var(--text-3); font-size: .95rem; pointer-events: none;
  transition: transform .3s var(--ease-out), font-size .3s, color .3s;
  transform-origin: left top;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); background: rgba(10,18,64,0.8); box-shadow: 0 0 0 4px rgba(20,91,255,0.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:valid + label, .field select:focus + label {
  transform: translateY(-10px); font-size: .72rem; color: var(--cyan); letter-spacing: .06em;
}
.field select { padding-top: 22px; cursor: pointer; }
.field select option { background: var(--bg-1); }
.field.has-select::after { content: ''; position: absolute; right: 18px; top: 26px; width: 8px; height: 8px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); pointer-events: none; }
.field .error { display: none; font-size: .78rem; color: #ff7b7b; margin-top: 6px; padding-left: 4px; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #ff5c5c; }
.field.is-invalid .error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips__label { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-2); font-size: .9rem;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease-out);
}
.chip:hover span { border-color: rgba(255,255,255,0.3); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.chip input:active + span { transform: scale(.96); }

.form__submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__note { font-size: .82rem; color: var(--text-3); }
.form__success {
  display: none; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius);
  border: 1px solid rgba(8,200,242,0.4); background: rgba(8,200,242,0.06); text-align: center;
}
.form__success.is-visible { display: block; animation: popIn .6s var(--ease-spring); }
.form__success i { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-primary); display: grid; place-items: center; margin: 0 auto 20px; }
.form__success i svg { width: 28px; height: 28px; color: #fff; }
.form__success h3 { font-size: 1.6rem; margin-bottom: 8px; }
.form__success p { color: var(--text-2); }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(10px); } }
.form.is-sent { display: none; }

.contact-aside { display: grid; gap: 16px; align-content: start; }
.info-card { display: grid; gap: 6px; }
.info-card h4 { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.info-card a, .info-card p { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
.info-card a { transition: color .25s; }
.info-card a:hover { color: var(--cyan); }
.info-card small { color: var(--text-3); font-size: .85rem; }
.clock { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.6rem !important; color: var(--cyan); }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__h { margin: 0; font: inherit; font-weight: inherit; }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; text-align: left; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; transition: color .25s; }
.faq__q:hover { color: var(--cyan); }
.faq__q svg { width: 20px; height: 20px; flex: none; transition: transform .4s var(--ease-out); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--text-2); padding-bottom: 22px; max-width: 60ch; }

/* ---------- Ticker line under hero on inner pages ---------- */
.rule { height: 1px; background: var(--line); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; scroll-behavior: auto !important; }
  [data-reveal], .stagger > *, .split .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .grain, .cursor, .cursor-ring, .hero__canvas, .page-veil { display: none !important; }
  .loader { display: none !important; }
  .manifesto .w { color: var(--text) !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav__pill { background: var(--bg-1); backdrop-filter: none; }
}

/* hero entrance: short, critically damped, staggered by role */
[data-hero] { opacity: 0; transform: translateY(14px); }
.hero.is-live [data-hero] {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.hero.is-live [data-hero="1"] { transition-delay: .04s; }
.hero.is-live [data-hero="2"] { transition-delay: .30s; }
.hero.is-live [data-hero="3"] { transition-delay: .40s; }
.hero.is-live .hero__scroll { animation: heroScrollIn .8s var(--ease-out) .7s both; }
@keyframes heroScrollIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  [data-hero] { opacity: 1 !important; transform: none !important; }
  .hero.is-live .hero__scroll { animation: none; }
}

/* ---------- Services hero: shares the about hero's type, own 3D lattice ---------- */
.page-hero--svc { padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 120px)); padding-bottom: clamp(56px, 8vw, 110px); }
.page-hero--svc h1 {
  margin-top: 20px; max-width: 14ch;
  font-size: clamp(2.3rem, 5.1vw, 4.5rem);
  letter-spacing: -0.042em; line-height: 0.98;
  text-wrap: balance;
}
.page-hero--svc h1 .grad-words { font-style: normal; }
.page-hero--svc h1 .grad-words .w > span {
  background: linear-gradient(96deg, var(--cyan), #3F7BFF 88%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.page-hero--svc .lead {
  margin-top: 22px; max-width: 40ch; color: var(--text-2);
  font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.62;
  text-wrap: pretty;
}
.page-hero--svc [data-hero] { opacity: 0; transform: translateY(14px); }
.page-hero--svc.is-live [data-hero] {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.page-hero--svc.is-live [data-hero="1"] { transition-delay: .04s; }
.page-hero--svc.is-live [data-hero="2"] { transition-delay: .30s; }
.page-hero--svc.is-live [data-hero="3"] { transition-delay: .18s; transition-duration: 1.1s; }
.page-hero--svc.is-live [data-hero="4"] { transition-delay: .46s; }
/* the ghost numeral drops behind the lattice */
.page-hero--svc .page-hero__num {
  top: calc(var(--nav-h) + 10px);
  font-size: clamp(6rem, 19vw, 16rem);
  -webkit-text-stroke: 1px rgba(168,179,209,0.09);
}
.hero3d--lattice { width: min(100%, 540px); }
.hero3d--lattice .hero3d__glow {
  inset: 22%;
  background: radial-gradient(circle, rgba(8,200,242,.30), rgba(75,50,245,.12) 48%, transparent 72%);
}
.lattice__canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.lattice__canvas:active { cursor: grabbing; }
@media (max-width: 899px) { .hero3d--lattice { width: min(92%, 400px); } }
@media (prefers-reduced-motion: reduce) {
  .page-hero--svc [data-hero] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Contact hero: same type system, inbound-signal 3D ---------- */
.page-hero--contact { padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 120px)); padding-bottom: clamp(56px, 8vw, 110px); }
.page-hero--contact h1 {
  margin-top: 20px; max-width: 14ch;
  font-size: clamp(2.3rem, 5.1vw, 4.5rem);
  letter-spacing: -0.042em; line-height: 0.98;
  text-wrap: balance;
}
.page-hero--contact h1 .grad-words { font-style: normal; }
.page-hero--contact h1 .grad-words .w > span {
  background: linear-gradient(96deg, var(--cyan), #3F7BFF 88%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.page-hero--contact .lead {
  margin-top: 22px; max-width: 40ch; color: var(--text-2);
  font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.62;
  text-wrap: pretty;
}
.page-hero--contact [data-hero] { opacity: 0; transform: translateY(14px); }
.page-hero--contact.is-live [data-hero] {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.page-hero--contact.is-live [data-hero="1"] { transition-delay: .04s; }
.page-hero--contact.is-live [data-hero="2"] { transition-delay: .30s; }
.page-hero--contact.is-live [data-hero="3"] { transition-delay: .18s; transition-duration: 1.1s; }
.page-hero--contact.is-live [data-hero="4"] { transition-delay: .46s; }
.page-hero--contact .page-hero__num {
  top: calc(var(--nav-h) + 10px);
  font-size: clamp(6rem, 19vw, 16rem);
  -webkit-text-stroke: 1px rgba(168,179,209,0.09);
}
.hero3d--signal { width: min(100%, 520px); }
.hero3d--signal .hero3d__glow {
  inset: 26%;
  background: radial-gradient(circle, rgba(8,200,242,.34), rgba(20,91,255,.12) 46%, transparent 72%);
}
.signal__canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.signal__canvas:active { cursor: grabbing; }
@media (max-width: 899px) { .hero3d--signal { width: min(90%, 380px); } }
@media (prefers-reduced-motion: reduce) {
  .page-hero--contact [data-hero] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Contact form: send failure state ---------- */
.form__error {
  display: none;
  font-size: .85rem; line-height: 1.5;
  color: #FF6B6B;
}
.form__error.is-visible { display: block; }
.form__note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }


/* ============================================================
   MOBILE ONLY — everything below applies at 860px and under.
   Desktop rendering is untouched: the browser never reads this
   block above 860px.
   ============================================================ */
@media (max-width: 860px) {

  /* --- vertical rhythm: sections were tuned for a tall desktop viewport --- */
  .section { padding-block: 64px; }
  .section--tight { padding-block: 48px; }
  .container { padding-inline: 20px; }

  /* --- process: keep the sticky stack, but sized for a phone. Cards get
         shorter and stick higher so each one fully clears the next. --- */
  .process__list { gap: 14px; }
  .step {
    top: calc(var(--nav-h) + 12px);
    padding: 24px 22px;
    gap: 16px;
    border-radius: 20px;
  }
  .step__num { font-size: 2.6rem; }
  .step h3 { font-size: 1.35rem; margin-bottom: 8px; }
  .step p { font-size: .95rem; line-height: 1.55; }
  .step__meta { gap: 8px; }
  .step__meta li { font-size: .88rem; }

  /* --- legibility: nothing below 12px on a phone --- */
  .eyebrow { font-size: .78rem; letter-spacing: .13em; }
  .card__tags span, .svc__stack span { font-size: .75rem; }
  .mono, .hero-meta, .card__num, .model__badge, .chips__label,
  .footer__status, .footer__bottom { font-size: .75rem; }
  .lead, .page-hero--about .lead, .page-hero--svc .lead, .page-hero--contact .lead {
    font-size: 1rem; line-height: 1.6;
  }
  .body-2, .card p { font-size: .95rem; }

  /* --- tap targets: 44px minimum, per iOS and Android guidance --- */
  .footer ul a, .menu__foot a { display: inline-block; padding-block: 11px; }
  .link-arrow { padding-block: 9px; }
  .nav__logo { padding-block: 7px; }
  .chip span { padding: 12px 16px; }
  .form input, .form select, .form textarea { min-height: 48px; }
  .btn--lg { min-height: 52px; }

  /* --- hero: give the headline the full width, drop the watermark weight --- */
  .hero { min-height: auto; padding-block: 112px 72px; }
  .hero h1 { max-width: none; font-size: clamp(2.1rem, 9.4vw, 3rem); }
  .hero .lead { max-width: none; }
  .hero__mark { opacity: .14; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }

  /* --- inner heroes: copy first, object under it, neither cramped --- */
  .page-hero--about h1, .page-hero--svc h1, .page-hero--contact h1 { max-width: none; }
  .page-hero__grid { gap: 28px; }
  .page-hero__num { font-size: clamp(5rem, 30vw, 9rem); top: calc(var(--nav-h) + 4px); }

  /* --- grids that stay two-up read better as one column on a phone --- */
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { gap: 36px; }
  .footer__big { font-size: 22vw; }

  /* --- cards: tighter padding buys back horizontal room --- */
  .card { padding: 22px; }
  .info-card { padding: 20px; }
}

/* Small phones: one more step down */
@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .industries { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(1.95rem, 9.6vw, 2.6rem); }
}

