/* Self-hosted variable fonts (SIL Open Font License) — latin subset.
   Preloaded in each page <head>, so text renders in the brand fonts from the first paint. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); }

/* ==========================================================================
   Gradisoft Solutions — "Circuit" design system
   Shared by every page. No framework dependency (Bootstrap Icons only).
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1e;
  --bg-3: #0f1630;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9ecf4;
  --muted: #8d95aa;
  --gold: #f0b54a;
  --gold-2: #c8912b;
  --gold-soft: rgba(240, 181, 74, 0.12);
  --gold-glow: rgba(240, 181, 74, 0.45);
  --blue: #5c93d2;
  --blue-soft: rgba(92, 147, 210, 0.14);
  --danger: #ff6b6b;
  --ok: #3ddc97;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 76px;
  --container: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

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

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

body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint engineering grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(92, 147, 210, 0.12), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--bg);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25));
}

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

/* the hidden attribute must win over component display rules */
[hidden] { display: none !important; }

a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: #ffd385; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: #fff;
  line-height: 1.12;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

::selection { background: var(--gold); color: #000; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

main { position: relative; z-index: 1; overflow-x: clip; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.display {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
}
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 640px; }
.gold { color: var(--gold); }
.grad-text {
  background: linear-gradient(100deg, #fff 10%, var(--gold) 60%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  color: #120c00;
  background: linear-gradient(180deg, #ffcf75, var(--gold) 55%, var(--gold-2));
  border: 1px solid rgba(255, 220, 150, .6);
  box-shadow: 0 10px 30px -10px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,.4);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
  overflow: hidden;
}
.btn:hover { color: #000; transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,.5); }
.btn::after { /* sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-2);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { color: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600;
}
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1320px;
}
body.scrolled .site-header,
body:not(.home) .site-header {
  background: rgba(5, 7, 13, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.logo-slot {
  display: block;
  width: 150px;
  aspect-ratio: 2100 / 360;
  flex-shrink: 0;
}
.logo-slot img { width: 100%; height: auto; }

/* The flying logo (home page only) */
.fly-logo {
  position: fixed;
  top: 0; left: 0;
  z-index: 1001;
  transform-origin: 0 0;
  will-change: transform;
  filter: drop-shadow(0 0 30px rgba(240,181,74,.25));
  visibility: hidden; /* shown once measured by JS */
}
.fly-logo img { width: 100%; height: auto; }
.fly-logo.ready { visibility: visible; }
body.nav-open .fly-logo:not(.docked) { opacity: 0; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(233, 236, 244, .75);
  border-radius: 8px;
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active::after, .nav a:hover::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); border-radius: 2px;
}
.nav .nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-2); color: #fff;
  width: 44px; height: 44px; border-radius: 12px; font-size: 22px; cursor: pointer;
  position: relative; z-index: 1003;
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: fixed; inset: 0; z-index: 1002;
    flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(5, 7, 13, .97);
    backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav ul { flex-direction: column; align-items: center; gap: 6px; }
  .nav a { font-size: 22px; padding: 10px 20px; }
  .nav .nav-cta { margin: 0; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; --gutter: 16px; }
  .logo-slot { width: 122px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section-tight { padding: 70px 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s, transform .3s var(--ease);
}
/* cursor spotlight (set --mx/--my from JS) */
.card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -100%), rgba(240,181,74,.13), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: rgba(240,181,74,.35); }
.card:hover::before { opacity: 1; }

/* PCB corner ticks */
.card .ticks::before, .card .ticks::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold); opacity: .45;
}
.card .ticks::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.card .ticks::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.tilt { transform-style: preserve-3d; will-change: transform; }

.icon-chip {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 24px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(240,181,74,.25);
  margin-bottom: 22px;
  position: relative;
}
.icon-chip::after { /* chip pins */
  content: ""; position: absolute; inset: -6px;
  background:
    linear-gradient(var(--gold), var(--gold)) 30% 0 / 2px 5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 70% 0 / 2px 5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 30% 100% / 2px 5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 70% 100% / 2px 5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 30% / 5px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 70% / 5px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 30% / 5px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 70% / 5px 2px no-repeat;
  opacity: .5;
}
.card h3 { font-size: 1.25rem; margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(240,181,74,.22);
  padding: 5px 10px; border-radius: 999px;
}
.tag.blue { color: #9cc3f0; background: var(--blue-soft); border-color: rgba(92,147,210,.3); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.check-list i { color: var(--gold); margin-top: 2px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Circuit layer (scroll-grown traces) ---------- */
.circuit-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.circuit-layer .trace {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .55;
}
.circuit-layer .trace.glow { stroke-width: 6; opacity: .12; filter: blur(3px); }
.circuit-layer .trace.dim { stroke: var(--blue); opacity: .3; }
.circuit-layer .pulse {
  fill: none; stroke: #fff3d6; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 10 340;
  opacity: 0;
  animation: pulse-run 3.2s linear infinite;
  animation-play-state: paused;
}
.circuit-layer .pulse.live { opacity: .85; animation-play-state: running; }
@keyframes pulse-run { to { stroke-dashoffset: -350; } }
.circuit-layer .pad {
  fill: var(--bg);
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: .35;
  transition: opacity .5s, fill .5s;
}
.circuit-layer .pad.lit { opacity: 1; fill: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); }
.circuit-layer .chip { fill: rgba(5,7,13,.9); stroke: var(--line-2); stroke-width: 1; transition: stroke .5s; }
.circuit-layer .chip.lit { stroke: var(--gold); }
.circuit-layer .spark { fill: #fff6df; filter: drop-shadow(0 0 6px var(--gold)) drop-shadow(0 0 14px var(--gold)); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 20px) 0 90px;
  background: radial-gradient(ellipse 60% 45% at 50% 42%, rgba(240,181,74,.10), transparent 70%);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0;
  /* dissolve the 3D floor into the page instead of ending on a hard edge */
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-logo-anchor {
  width: min(78vw, 760px);
  aspect-ratio: 2100 / 360;
  margin-bottom: clamp(26px, 4vw, 44px);
}
.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
  max-width: 760px;
  margin: 0 auto 10px;
}
.hero .typed-line {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  min-height: 1.8em;
  margin-bottom: 34px;
}
.hero .typed-line .typed { color: var(--gold); }
.hero .typed-line .caret {
  display: inline-block; width: .6ch; height: 1.1em; vertical-align: -0.15em;
  background: var(--gold); margin-left: 2px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue .wire {
  width: 2px; height: 44px; border-radius: 2px;
  background: linear-gradient(var(--gold), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .wire::after {
  content: ""; position: absolute; left: 0; top: -14px; width: 2px; height: 14px; background: #fff;
  box-shadow: 0 0 8px var(--gold); animation: wire-drop 1.8s var(--ease) infinite;
}
@keyframes wire-drop { to { top: 48px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 clamp(50px, 7vw, 90px);
  overflow: hidden;
}
.page-hero .crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; margin-bottom: 18px; }
.page-hero .crumbs a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.page-hero.with-canvas { min-height: 78vh; display: flex; align-items: center; }
.page-hero .page-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.page-hero .container { z-index: 2; }

/* ---------- Stats ---------- */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(10, 15, 30, .6);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.stats-band.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 34px 26px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat .num small { color: var(--gold); font-size: .55em; margin-left: 2px; }
.stat .label { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.stat .led {
  position: absolute; top: 18px; right: 18px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: led 2.4s ease-in-out infinite;
}
@keyframes led { 50% { opacity: .35; } }
@media (max-width: 900px) {
  .stats-band, .stats-band.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stats-band, .stats-band.cols-3 { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
}

/* ---------- Process circuit ---------- */
.process-board { position: relative; }
.process-track {
  position: absolute; left: 6%; right: 6%; top: 38px; height: 2px;
  background: var(--line-2);
}
.process-track .fill {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 12px var(--gold-glow);
  transition: transform 2.4s var(--ease);
}
.process-board.on .process-track .fill { transform: scaleX(1); }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.p-step { text-align: center; }
.p-node {
  width: 78px; height: 78px; margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  font-size: 28px; color: var(--muted);
  position: relative;
  transition: color .5s, border-color .5s, box-shadow .5s, background .5s;
  transition-delay: calc(var(--i) * .45s);
}
.p-node .n {
  position: absolute; top: -10px; right: -10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px;
  transition: inherit;
}
.process-board.on .p-node {
  color: var(--gold); border-color: var(--gold); background: #120f08;
  box-shadow: 0 0 0 6px var(--gold-soft), 0 0 30px -4px var(--gold-glow);
}
.process-board.on .p-node .n { color: var(--gold); border-color: var(--gold); }
.p-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.p-step p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 860px) {
  .process-track { left: 38px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process-track .fill { transform-origin: 50% 0; transform: scaleY(0); }
  .process-board.on .process-track .fill { transform: scaleY(1); }
  .process-steps { grid-template-columns: 1fr; gap: 26px; }
  .p-step { display: grid; grid-template-columns: 78px 1fr; gap: 20px; text-align: left; align-items: center; }
  .p-node { margin: 0; }
}

/* ---------- Live windows ---------- */
.live-window {
  position: relative;
  border-radius: 16px;
  background: #0b0f1c;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .3s, box-shadow .3s;
}
.live-window:hover { border-color: rgba(240,181,74,.45); box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), 0 0 50px -20px var(--gold-glow); }
.lw-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,.035);
  border-bottom: 1px solid var(--line);
}
.lw-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a3f4f; }
.lw-dot:nth-child(1) { background: #ff5f57; }
.lw-dot:nth-child(2) { background: #febc2e; }
.lw-dot:nth-child(3) { background: #28c840; }
.lw-url {
  flex: 1; min-width: 0;
  margin: 0 6px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lw-url i { color: var(--ok); font-size: 11px; }
.lw-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ok);
}
.lw-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: led 1.6s infinite; }
.lw-btn {
  background: none; border: 1px solid var(--line-2); color: var(--text);
  width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center;
  cursor: pointer; font-size: 14px; transition: border-color .2s, color .2s;
}
.lw-btn:hover, .lw-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

.lw-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}
.lw-stage {
  position: absolute; inset: 0;
  transform-origin: 0 0;
}
.lw-viewport iframe {
  position: absolute; top: 0; left: 0;
  width: 1280px; height: 800px;
  border: 0;
  transform-origin: 0 0;
  transform: scale(var(--s, .5));
  pointer-events: none;
  background: #fff;
}
.live-window.interactive iframe { pointer-events: auto; }
.live-window.touring .lw-stage { animation: tour 26s ease-in-out infinite; }
.live-window.touring:hover .lw-stage { animation-play-state: paused; }
.live-window.interactive .lw-stage { animation: none !important; transform: none; }
@keyframes tour {
  0%, 6%   { transform: translate(0, 0) scale(1); }
  20%      { transform: translate(0, 0) scale(1.32); }
  38%      { transform: translate(-32%, -6%) scale(1.32); }
  56%      { transform: translate(-18%, -32%) scale(1.32); }
  74%      { transform: translate(0, -24%) scale(1.32); }
  90%, 100%{ transform: translate(0, 0) scale(1); }
}
.lw-cover {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, transparent 50%, rgba(5,7,13,.75));
  opacity: 0; transition: opacity .3s;
  cursor: pointer;
  border: 0; width: 100%; text-align: left; color: #fff; font: inherit;
}
.live-window:hover .lw-cover, .lw-cover:focus-visible { opacity: 1; }
.live-window.interactive .lw-cover { display: none; }
.lw-cover .hint { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.lw-loading {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: #0b0f1c;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .12em;
  transition: opacity .6s;
}
.lw-loading::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 40%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
  animation: scan 1.4s ease-in-out infinite;
}
@keyframes scan { 0% { left: -40%; } 100% { left: 100%; } }
.live-window.loaded .lw-loading { opacity: 0; pointer-events: none; }

.live-window.offline .lw-viewport {
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(92,147,210,.12), transparent 70%), #0b0f1c;
}
.live-window.offline .lw-viewport img { max-width: 60%; max-height: 40%; object-fit: contain; }
.lw-meta { padding: 20px 4px 0; }
.lw-meta h3 { font-size: 1.35rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lw-meta p { color: var(--muted); margin: 0 0 12px; }

.work-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.work-feature.flip { grid-template-columns: 1fr 1.4fr; }
.work-feature.flip .wf-window { order: 2; }
.work-feature + .work-feature { margin-top: clamp(70px, 9vw, 120px); }
@media (max-width: 900px) {
  .work-feature, .work-feature.flip { grid-template-columns: 1fr; }
  .work-feature.flip .wf-window { order: 0; }
}

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .amount {
  font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: #fff; line-height: 1;
  margin: 18px 0 4px;
}
.price-card .amount small { font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.price-card .sub { color: var(--muted); font-size: .85rem; margin-bottom: 18px; min-height: 1.4em; }
.price-card .check-list { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.price-card.featured { border-color: rgba(240,181,74,.4); background: linear-gradient(180deg, rgba(240,181,74,.08), rgba(255,255,255,.015)); }
.disclaimer {
  display: flex; gap: 10px; justify-content: center; align-items: flex-start;
  max-width: 680px; margin: 34px auto 26px; color: var(--muted); font-size: .85rem; text-align: left;
}

/* ---------- GradiForge ---------- */
.forge-wordmark { font-family: var(--font-head); font-weight: 700; letter-spacing: .02em; }
.forge-wordmark .g { background: linear-gradient(135deg, #f1f4f7, #5c93d2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.forge-wordmark .f { background: linear-gradient(135deg, #e9c072, #7e5c2f); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid rgba(240,181,74,.3);
  border-radius: 28px;
  padding: clamp(44px, 7vw, 80px) clamp(24px, 6vw, 70px);
  background:
    radial-gradient(ellipse 60% 120% at 0% 0%, rgba(240,181,74,.16), transparent 60%),
    radial-gradient(ellipse 60% 120% at 100% 100%, rgba(92,147,210,.18), transparent 60%),
    var(--bg-2);
  text-align: center;
}
.cta-band::before { /* trace pattern */
  content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.5%, var(--gold) 49.5%, var(--gold) 50.5%, transparent 50.5%) 0 0 / 120px 100%,
    linear-gradient(transparent 49%, rgba(92,147,210,.6) 49%, rgba(92,147,210,.6) 51%, transparent 51%) 0 0 / 100% 90px;
  mask-image: radial-gradient(ellipse at center, transparent 35%, #000 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 35%, #000 90%);
}
.cta-band > * { position: relative; }
.cta-band .lead { margin: 0 auto 30px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 26px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-item {
  display: flex; gap: 16px; align-items: center;
  padding: 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text);
  transition: border-color .25s, transform .25s var(--ease);
}
.info-item + .info-item { margin-top: 14px; }
.info-item:hover { border-color: rgba(240,181,74,.4); transform: translateX(4px); color: var(--text); }
.info-item i { font-size: 20px; color: var(--gold); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-soft); flex-shrink: 0; }
.info-item h3 { font-size: .95rem; margin: 0 0 2px; }
.info-item p { margin: 0; color: var(--muted); font-size: .92rem; }

.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.field { position: relative; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.form-msg { display: none; padding: 12px 16px; border-radius: 10px; font-size: .92rem; }
.form-msg.loading { display: none; color: var(--muted); border: 1px dashed var(--line-2); }
.form-msg.error { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.4); color: #ffb3b3; }
.form-msg.sent { background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.4); color: #9ff0c9; }
.form-msg.show { display: block; }

/* ---------- Timeline (achievements) ---------- */
.timeline { position: relative; padding-left: 46px; }
.timeline::before {
  content: ""; position: absolute; left: 14px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--gold), rgba(240,181,74,.1));
}
.t-item { position: relative; padding-bottom: 38px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ""; position: absolute; left: -39px; top: 6px; width: 16px; height: 16px;
  border-radius: 4px; background: var(--bg); border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px var(--gold-soft);
  transition: background .4s;
}
.t-item.in::before { background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft), 0 0 18px var(--gold); }
.t-item .when { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.t-item h3 { font-size: 1.25rem; margin: 6px 0; }
.t-item p { color: var(--muted); margin: 0; max-width: 620px; }

.net-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.net-label {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em;
  color: #fff; white-space: nowrap;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(5,7,13,.75); border: 1px solid rgba(240,181,74,.45);
  transform: translate(-50%, -150%);
  transition: opacity .3s;
  pointer-events: auto;
}
.net-label:hover { color: var(--gold); }
.page-hero:not(.has-3d) .net-label { opacity: 0; pointer-events: none; }
/* let drags reach the canvas through the empty parts of the hero */
.page-hero.with-canvas .container { pointer-events: none; }
.page-hero.with-canvas .container * { pointer-events: auto; }
.page-hero.net-behind .page-canvas { opacity: .4; }
.page-hero.net-behind .net-labels { display: none; }

.logo-tile {
  display: grid; place-items: center;
  min-height: 120px; padding: 22px;
  background: linear-gradient(180deg, rgba(10,15,30,.9), rgba(5,7,13,.9));
}
.logo-tile img { max-height: 54px; max-width: 85%; width: auto; object-fit: contain; filter: brightness(1.05); transition: transform .4s var(--ease); }
.logo-tile img.emblem { max-height: 96px; }
.logo-tile:hover img { transform: scale(1.06); }
.logo-tile.next { color: var(--muted); font-family: var(--font-head); font-weight: 600; border-style: dashed; }
.logo-tile.next:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,15,30,.4), rgba(5,7,13,1));
  padding: 70px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 150px; height: auto; margin-bottom: 18px; opacity: .9; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 320px; }
.site-footer .f-h { font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--muted); font-size: .94rem; }
.site-footer ul a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line-2); color: var(--text);
}
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  color: var(--muted); font-size: .85rem;
}

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed; z-index: 1100; left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin: 0 auto;
  display: none; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 14px;
  background: rgba(10,15,30,.92); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  font-size: .9rem; color: var(--text);
}
.cookie-bar.show { display: flex; }
.cookie-bar .actions { display: flex; gap: 10px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--gold); font-size: 22px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold); color: #fff; }

/* ---------- Detail rows (process page) ---------- */
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; padding: clamp(50px, 7vw, 90px) 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row.flip .detail-media { order: -1; }
.detail-row .step-no { font-family: var(--font-mono); color: var(--gold); font-size: 13px; letter-spacing: .2em; }
.detail-media {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2);
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; filter: saturate(.85) contrast(1.05); }
.detail-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,7,13,.6)), linear-gradient(90deg, rgba(240,181,74,.08), transparent);
}
@media (max-width: 860px) {
  .detail-row { grid-template-columns: 1fr; }
  .detail-row.flip .detail-media { order: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ==========================================================================
   v2 additions
   ========================================================================== */

/* ---------- Home: floating section dock ---------- */
.dock {
  position: fixed; z-index: 950; left: 50%; bottom: 22px;
  transform: translate(-50%, 140%);
  transition: transform .5s var(--ease), bottom .3s;
}
.dock.show { transform: translate(-50%, 0); }
body.cookie-open .dock { bottom: 112px; }
.dock ul {
  list-style: none; margin: 0; padding: 6px;
  display: flex; gap: 2px;
  background: rgba(10, 15, 30, .82);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(240,181,74,.06) inset;
}
.dock a {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  color: var(--muted); white-space: nowrap;
}
.dock a i { font-size: 14px; }
.dock a:hover { color: #fff; background: var(--surface-2); }
.dock a.active { color: #120c00; background: linear-gradient(180deg, #ffcf75, var(--gold)); }
.dock-toggle { display: none; }
@media (max-width: 1000px) {
  .dock { left: auto; right: 16px; bottom: 16px; transform: translateY(160%); }
  .dock.show { transform: none; }
  body.cookie-open .dock { bottom: 150px; }
  .dock-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer;
    font-family: var(--font-head); font-weight: 600; font-size: 14px;
    color: #120c00; background: linear-gradient(180deg, #ffcf75, var(--gold) 55%, var(--gold-2));
    border: 1px solid rgba(255,220,150,.6); box-shadow: 0 12px 30px -10px var(--gold-glow);
  }
  .dock ul {
    position: absolute; right: 0; bottom: 58px; width: min(300px, calc(100vw - 32px));
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px; border-radius: 18px;
    opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: bottom right;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .dock.open ul { opacity: 1; visibility: visible; transform: none; }
  .dock a { padding: 11px 12px; border-radius: 12px; font-size: 14px; }
  /* the back-to-top button would collide with the dock on the home page */
  body.home .to-top { display: none; }
}

/* ---------- Live windows: phone view, Done button, touch ---------- */
.live-window[data-device="phone"] { max-width: 340px; margin-left: auto; margin-right: auto; }
/* small screens start in phone view before any JS runs — no layout shift */
@media (max-width: 640px) {
  .live-window:not([data-device="desktop"]) { max-width: 340px; margin-left: auto; margin-right: auto; }
  .live-window:not([data-device="desktop"]) .lw-viewport { aspect-ratio: 390 / 844; }
  .live-window:not([data-device="desktop"]) iframe { width: 390px; height: 844px; }
}
.live-window[data-device="phone"] .lw-viewport { aspect-ratio: 390 / 844; }
.live-window[data-device="phone"] iframe { width: 390px; height: 844px; }
.live-window[data-device="phone"] .lw-url { font-size: 11px; }
.lw-exit {
  display: none; position: absolute; z-index: 4; top: 10px; right: 10px;
  align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  font: 600 12px var(--font-head); color: #120c00;
  background: var(--gold); border: 0; box-shadow: 0 8px 20px -6px rgba(0,0,0,.6);
}
.live-window.interactive .lw-exit { display: inline-flex; }
@media (hover: none) {
  .lw-cover { opacity: 1; background: linear-gradient(180deg, transparent 65%, rgba(5,7,13,.7)); }
}
@media (max-width: 520px) {
  .lw-bar { gap: 6px; padding: 8px; }
  .lw-dot { width: 8px; height: 8px; }
  .lw-live { display: none; }
  .lw-url { margin: 0 2px; padding: 4px 8px; }
}

/* ---------- Touch: tilt is driven by scroll in site.js ---------- */
@media (hover: none) {
  .tilt, .live-window { transition: transform .15s linear; }
}

/* ---------- Mobile polish ---------- */
@media (max-width: 600px) {
  .card { padding: 24px 20px; }
  .btn { padding: 13px 22px; }
  .hero-ctas .btn { width: 100%; justify-content: center; max-width: 320px; }
  .stat { padding: 26px 22px; }
  .cta-band { border-radius: 22px; }
  .cta-band .actions .btn { width: 100%; justify-content: center; }
  .work-feature + .work-feature { margin-top: 64px; }
  .footer-bottom { flex-direction: column; }
  .scroll-cue { display: none; }
}
@media (max-width: 380px) {
  .display { font-size: 2rem; }
  .h2 { font-size: 1.65rem; }
}

/* ---------- Services page ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; padding: clamp(46px, 7vw, 90px) 0; border-bottom: 1px solid var(--line); }
.svc-row:last-of-type { border-bottom: 0; }
.svc-row.flip .svc-visual { order: -1; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; } .svc-row.flip .svc-visual { order: 0; } }
.svc-visual {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  border: 1px solid var(--line-2); overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, rgba(240,181,74,.10), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(92,147,210,.14), transparent 60%), var(--bg-2);
  display: grid; place-items: center; padding: 26px;
}
/* website: a page assembling itself */
.v-site { width: 86%; border-radius: 12px; background: #0d1326; border: 1px solid var(--line-2); overflow: hidden; }
.v-site .bar { height: 22px; background: rgba(255,255,255,.05); display: flex; gap: 5px; align-items: center; padding: 0 9px; }
.v-site .bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3f4f; }
.v-site .body { padding: 14px; display: grid; gap: 9px; }
.v-site .blk { height: 14px; border-radius: 4px; background: rgba(255,255,255,.07); transform-origin: left; animation: build 4.5s var(--ease) infinite; animation-delay: calc(var(--i) * .25s); }
.v-site .blk.big { height: 54px; background: linear-gradient(110deg, rgba(240,181,74,.35), rgba(92,147,210,.3)); }
.v-site .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v-site .row .blk { height: 40px; }
@keyframes build { 0% { transform: scaleX(0); opacity: 0; } 18%, 82% { transform: none; opacity: 1; } 100% { opacity: 0; } }
/* software: terminal */
.v-term { width: 88%; border-radius: 12px; background: #070a14; border: 1px solid var(--line-2); padding: 16px 18px; font: 12.5px/1.9 var(--font-mono); color: var(--muted); }
.v-term .ln { white-space: nowrap; overflow: hidden; width: 0; animation: type 6s steps(40) infinite; animation-delay: calc(var(--i) * .7s); }
.v-term .k { color: var(--gold); } .v-term .s { color: #9ff0c9; } .v-term .c { color: #9cc3f0; }
@keyframes type { 0% { width: 0; } 20%, 85% { width: 100%; } 100% { width: 100%; opacity: 0; } }
/* analytics: growing bars */
.v-chart { width: 86%; height: 70%; display: flex; align-items: flex-end; gap: 4%; border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); padding: 0 4% 0; position: relative; }
.v-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--gold), rgba(240,181,74,.15)); transform-origin: bottom; animation: grow 4s var(--ease) infinite alternate; animation-delay: calc(var(--i) * .15s); }
.v-chart span:nth-child(even) { background: linear-gradient(180deg, var(--blue), rgba(92,147,210,.15)); }
@keyframes grow { from { transform: scaleY(.15); } to { transform: none; } }
/* automation: nodes with moving packets */
.v-flow { width: 90%; display: flex; align-items: center; justify-content: space-between; position: relative; }
.v-flow .node { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: var(--gold); background: #120f08; border: 1px solid var(--gold); box-shadow: 0 0 0 6px var(--gold-soft); position: relative; z-index: 1; }
.v-flow .wire { position: absolute; left: 32px; right: 32px; top: 50%; height: 2px; background: var(--line-2); overflow: hidden; }
.v-flow .wire::after { content: ""; position: absolute; top: 0; left: -20%; width: 20%; height: 2px; background: #fff; box-shadow: 0 0 10px var(--gold); animation: flow 1.8s linear infinite; }
@keyframes flow { to { left: 100%; } }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 22px 0 28px; }
@media (max-width: 520px) { .svc-list { grid-template-columns: 1fr; } }

/* ---------- Pricing page ---------- */
.factor { display: flex; gap: 16px; align-items: flex-start; }
.factor .icon-chip { margin: 0; flex-shrink: 0; width: 46px; height: 46px; font-size: 20px; }
.factor h3 { font-size: 1.05rem; margin-bottom: 4px; }
.factor p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- Logo wall: odd tile spans the row ---------- */
.logo-tile.span-2 { grid-column: 1 / -1; }
.process-steps.three { grid-template-columns: repeat(3, 1fr); }
.process-steps.three ~ .process-track, .process-board:has(.three) .process-track { left: 16%; right: 16%; }
@media (max-width: 860px) {
  .process-steps.three { grid-template-columns: 1fr; }
  .process-board:has(.three) .process-track { left: 38px; right: auto; }
}

/* 3D scenes load after the page; fade them in instead of popping */
.hero-canvas, .page-canvas { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero.has-3d .hero-canvas, .page-hero.has-3d .page-canvas { opacity: 1; }

/* Above the fold, reveal with a pure CSS animation that starts on first paint
   (no waiting for JS) so the headline counts as painted immediately (LCP). */
.page-hero [data-reveal], .studio-hero [data-reveal] {
  opacity: 1; transform: none; transition: none;
  animation: hero-in .9s var(--ease) both; animation-delay: var(--d, 0s);
}
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Form validation ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-err, .card .field-err { margin: 8px 0 0; font-size: .86rem; line-height: 1.5; color: #ffb3b3; }
.field-err::before { content: "\F333"; font-family: bootstrap-icons; font-size: .9em; margin-right: 6px; vertical-align: -1px; }
.field-err .fix {
  display: inline-block; margin: 4px 0 0 4px;
  font: 600 .82rem var(--font-head); color: #120c00; background: var(--gold);
  border: 0; border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: rgba(255,107,107,.7); box-shadow: 0 0 0 4px rgba(255,107,107,.12); }
