/* =========================================================
   METRIKA — Design System
   Dark technical editorial — original design, not a clone.
   ========================================================= */

:root {
  /* Palette */
  --bg:           #06080f;
  --bg-2:         #0a0e1c;
  --surface:      #0d1224;
  --surface-2:    #131938;
  --border:       #1d2649;
  --border-2:     #2b3768;
  --text:         #e7ebf5;
  --text-2:       #b6c0d8;
  --muted:        #7c87a3;
  --muted-2:      #4d5775;
  --accent:       #1cb0ec;       /* brand cyan from logo tagline */
  --accent-2:     #5ec9f2;       /* lighter cyan for highlights */
  --accent-soft:  rgba(28,176,236,.12);
  --accent-ring:  rgba(28,176,236,.34);
  --cyan:         #25d4ff;
  --brand-navy:   #0b1f3a;       /* dark version of the wordmark */
  --green:        #1fd690;
  --amber:        #ffb648;
  --danger:       #ff5a5a;

  /* Type */
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radius / shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -20px rgba(0,0,0,.6);
  --shadow-glow: 0 0 0 1px var(--accent-ring), 0 30px 60px -30px rgba(28,176,236,.45);

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 76px;
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Language visibility (controlled by body class .is-it / .is-en) */
body.is-it .lang-en { display: none !important; }
body.is-en .lang-it { display: none !important; }

/* ---------- Typography ---------- */
.eyebrow, .mono {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; vertical-align: middle;
  box-shadow: 0 0 12px var(--accent);
}
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(40px, 6vw, 88px); line-height: 1.02; margin: 0; font-weight: 500; letter-spacing: -.03em; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; margin: 0; letter-spacing: -.022em; }
h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; margin: 0; }
h4 { font-size: 17px; line-height: 1.3; margin: 0; font-weight: 600; }
p  { margin: 0; color: var(--text-2); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--muted); }
.accent { color: var(--accent-2); }
.grad-text {
  background: linear-gradient(180deg, #fff 0%, #b6c0d8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(72px, 9vw, 140px); position: relative; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 780px; margin-bottom: clamp(40px, 5vw, 72px); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-3.keep-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Divider rule */
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--f-body); font-weight: 500; font-size: 14.5px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  transition: all .2s ease;
  text-decoration: none;
}
.btn:hover { border-color: var(--accent); color: #fff; background: var(--surface-2); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent-ring), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { background: transparent; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover { border-color: var(--border-2); }
.card.link { cursor: pointer; }
.card.link:hover { transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card .icon-tile {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.card .icon-tile svg { width: 22px; height: 22px; stroke: var(--accent-2); fill: none; stroke-width: 1.6; }
.card .arrow-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2);
}
.card.link:hover .arrow-cta .arr { transform: translateX(4px); }
.arrow-cta .arr { transition: transform .2s ease; display: inline-block; }

/* Number tile on a card (large index) */
.card .nb {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em;
  color: var(--muted-2);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,8,15,.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff;
}
.brand-logo {
  height: 40px; width: auto; display: block;
}
.brand-logo--foot { height: 52px; }
@media (max-width: 600px) {
  .brand-logo { height: 30px; }
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-link {
  position: relative;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text-2);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover, .nav-link.is-active { color: #fff; background: rgba(255,255,255,.04); }
.nav-link.has-menu::after {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px;
  background: var(--surface); font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted);
  padding: 5px 10px; border-radius: 999px;
  transition: all .2s ease;
}
.lang-toggle button.is-active { background: var(--accent); color: #fff; }

/* Dropdown */
.nav-link-wrap { position: relative; }
.menu-pop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.nav-link-wrap:hover .menu-pop,
.nav-link-wrap:focus-within .menu-pop {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.menu-pop a {
  display: flex; gap: 12px; padding: 12px;
  border-radius: var(--r-md);
  align-items: flex-start;
  transition: background .15s ease;
}
.menu-pop a:hover { background: var(--surface-2); }
.menu-pop .dot-i { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--accent); flex: none; }
.menu-pop .mp-t { color: #fff; font-weight: 500; font-size: 14px; }
.menu-pop .mp-d { color: var(--muted); font-size: 12.5px; }

/* Mobile nav burger */
.burger { display: none; }
@media (max-width: 1000px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: 12px;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-link.has-menu::after { display: none; }
  .menu-pop { position: static; transform: none; opacity: 1; pointer-events: auto; box-shadow: none; border: 0; padding: 4px 0 4px 20px; min-width: auto; }
  .nav-link-wrap > .nav-link { pointer-events: none; }
  .burger { display: inline-flex; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); align-items: center; justify-content: center; }
  .burger span { width: 16px; height: 1.5px; background: var(--text); position: relative; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text); }
  .burger span::before { top: -5px; }
  .burger span::after  { top: 5px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 600px at 75% -10%, rgba(28,176,236,.18), transparent 60%),
    radial-gradient(800px 400px at 10% 30%, rgba(37,212,255,.08), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 600px at 50% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(900px 600px at 50% 35%, #000 30%, transparent 80%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 .accent-word { color: var(--accent-2); }
.hero .lead { margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-stats .v { font-family: var(--f-display); font-size: clamp(28px, 3vw, 38px); color: #fff; letter-spacing: -.02em; }
.hero-stats .l { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Network animation card */
.net-card {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-2);
  background:
    radial-gradient(circle at 50% 50%, rgba(28,176,236,.10), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.net-card .topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  background: rgba(6,8,15,.55);
  backdrop-filter: blur(4px);
}
.net-card .topbar .live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 8px; box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.net-card svg.net { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-card .legend {
  position: absolute; bottom: 14px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
}

/* Network animation styles */
.net .node { fill: var(--bg-2); stroke: var(--accent); stroke-width: 1.2; }
.net .node-core { fill: var(--accent); stroke: #fff; stroke-width: 1.2; filter: drop-shadow(0 0 10px var(--accent)); }
.net .link { stroke: var(--border-2); stroke-width: 1; fill: none; }
.net .link-active { stroke: var(--accent-2); stroke-width: 1.3; }
.net .pkt { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.net .ring {
  fill: none; stroke: var(--accent); stroke-width: 1; opacity: .25;
  transform-origin: center; transform-box: fill-box;
}
.net text { font-family: var(--f-mono); fill: var(--muted); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }

@keyframes nodePulse {
  0%, 100% { r: 5; }
  50% { r: 7; }
}
.net .node-core { animation: nodePulse 2.2s ease-in-out infinite; }

@keyframes ringExpand {
  0% { r: 10; opacity: .55; }
  100% { r: 80; opacity: 0; }
}
.net .ring { animation: ringExpand 3.2s ease-out infinite; }
.net .ring-2 { animation-delay: 1.6s; }

/* ---------- Logo wall ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.logo-wall .lw {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  aspect-ratio: 2.2 / 1;
  display: grid; place-items: center;
  position: relative;
  transition: background .2s ease;
}
.logo-wall .lw:hover { background: var(--surface); }
.logo-wall .lw .ph {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
}
.logo-wall .lw .name {
  font-family: var(--f-display); color: var(--text-2); font-size: 18px; letter-spacing: .03em;
}
@media (max-width: 900px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Bullet list ---------- */
.bullet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.bullet-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; color: var(--text-2);
}
.bullet-list li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 5px;
  border: 1px solid var(--accent); border-radius: 4px;
  background:
    linear-gradient(45deg, transparent 46%, var(--accent) 47% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--accent) 47% 53%, transparent 54%);
  background-size: 8px 8px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Tag / chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-2); background: var(--surface);
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
}
.chip-accent { border-color: var(--accent-ring); color: var(--accent-2); background: var(--accent-soft); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(28,176,236,.04));
}
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.foot-col a { display: block; padding: 6px 0; color: var(--text-2); font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); font-family: var(--f-mono); letter-spacing: .1em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Page heads (inner pages) ---------- */
.page-hero {
  padding-top: clamp(80px, 9vw, 120px);
  padding-bottom: clamp(60px, 7vw, 100px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 380px at 30% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(700px 380px at 30% 50%, #000 30%, transparent 80%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(800px 400px at 80% 0%, rgba(28,176,236,.16), transparent 60%);
}
.page-hero .crumbs {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.page-hero .crumbs a { color: var(--muted); }
.page-hero .crumbs a:hover { color: var(--text-2); }
.page-hero .crumbs .sep { margin: 0 10px; color: var(--muted-2); }

/* Image placeholder (striped) */
.ph-img {
  border: 1px dashed var(--border-2);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(28,176,236,.06) 0 8px, transparent 8px 16px),
    var(--surface);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 28px;
  min-height: 220px;
  text-align: center;
}

/* ----- Hero viz card (used on BU page heros) ----- */
.viz-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 300px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-2);
  background:
    radial-gradient(circle at 50% 30%, rgba(28,176,236,.10), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.viz-card .topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  background: rgba(6,8,15,.55);
  backdrop-filter: blur(4px);
}
.viz-card .topbar .live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 8px; box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.viz-card .legend {
  position: absolute; bottom: 14px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
}
.viz-card svg.viz { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz text { font-family: var(--f-mono); fill: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.viz .accent-fill { fill: var(--accent); }
.viz .accent-stroke { stroke: var(--accent); fill: none; }
.viz .pkt { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }

@keyframes shieldPulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .75; transform: scale(1.04); }
}
.viz .shield-ring { animation: shieldPulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

@keyframes traceFlow {
  to { stroke-dashoffset: -40; }
}
.viz .trace { stroke-dasharray: 4 4; animation: traceFlow 2s linear infinite; }
@keyframes ledBlink {
  0%, 60% { opacity: 1; }
  70%, 100% { opacity: 0.25; }
}
.viz .led { animation: ledBlink 1.4s ease-in-out infinite; }
.viz .led-2 { animation-delay: .4s; }
.viz .led-3 { animation-delay: .8s; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-strip .s {
  padding: 28px; border-right: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.stat-strip .s:last-child { border-right: 0; }
.stat-strip .v { font-family: var(--f-display); font-size: clamp(32px, 3vw, 44px); color: #fff; letter-spacing: -.02em; }
.stat-strip .l { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } .stat-strip .s:nth-child(2) { border-right: 0; } }

/* ---------- Tech tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  border: 1px solid var(--border); background: var(--surface);
  padding: 8px 12px; border-radius: 8px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--text-2);
}
.tag:hover { border-color: var(--accent-ring); color: #fff; }

/* ---------- Capability blocks (Embedded etc.) ---------- */
.cap-row {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.cap-row:last-child { border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { .cap-row { grid-template-columns: 1fr; gap: 16px; } }
.cap-row h3 { font-size: 24px; }
.cap-row .col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 700px) { .cap-row .col-2 { grid-template-columns: 1fr; } }

/* ---------- Product hero blocks ---------- */
.product-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1000px) { .product-hero { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Contact ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border-2);
  color: var(--text); font-family: var(--f-body); font-size: 15px;
  outline: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Misc utils ---------- */
.center { text-align: center; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mono-sm { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); }

/* ---------- Tweaks panel (minimal) ---------- */
#tweaks-panel {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); padding: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  min-width: 240px;
  display: none;
}
#tweaks-panel.is-open { display: block; }
#tweaks-panel h6 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
#tweaks-panel .close { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 18px; }
#tweaks-panel .tw-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
#tweaks-panel .tw-row .lbl { font-size: 13px; color: var(--text-2); }
.tw-switch { position: relative; width: 42px; height: 24px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2); flex: none; transition: background .2s ease, border-color .2s ease; }
.tw-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s ease, background .2s ease; }
.tw-switch[aria-checked="true"] { background: var(--accent-soft); border-color: var(--accent-ring); }
.tw-switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--accent); }

/* =========================================================
   MOTION SYSTEM v2 — reveals, sheen, typing, illustration bands
   ========================================================= */

/* ----- Reveal directional + scale variants ----- */
.reveal-l, .reveal-r, .reveal-scale {
  opacity: 0;
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal-l { transform: translateX(-30px); }
.reveal-r { transform: translateX(30px); }
.reveal-scale { transform: scale(.965); }
.reveal-l.in, .reveal-r.in, .reveal-scale.in { opacity: 1; transform: none; }

/* ----- Staggered children (set --i in JS) ----- */
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ----- Animated gradient sheen on hero headings ----- */
@keyframes textSheen { 0% { background-position: 120% 50%; } 100% { background-position: -20% 50%; } }
.grad-anim {
  background: linear-gradient(100deg, #ffffff 0%, #c2cce0 30%, #7fd6f6 48%, #c2cce0 66%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: textSheen 9s ease-in-out infinite;
}

/* ----- Typed console line ----- */
.typed-line {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--accent-2); display: inline-flex; align-items: center;
  white-space: nowrap;
}
.typed-line .caret {
  display: inline-block; width: 7px; height: 1.05em; margin-left: 2px;
  background: var(--accent-2); vertical-align: -2px;
  animation: caretBlink 1.05s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* ----- Full-width illustration band (reuses .viz token styles) ----- */
.viz-band {
  position: relative; width: 100%;
  border: 1px solid var(--border-2); border-radius: var(--r-xl);
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(28,176,236,.10), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  overflow: hidden; box-shadow: var(--shadow-1);
}
.viz-band .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  background: rgba(6,8,15,.45);
}
.viz-band .bar .live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 8px; box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.viz-band svg.viz { position: static; display: block; width: 100%; height: auto; }

/* gentle float for whole bands on scroll handled via data-parallax */
@keyframes dashTrace { to { stroke-dashoffset: -32; } }
.viz .flow { stroke-dasharray: 5 7; animation: dashTrace 1.8s linear infinite; }
.viz .nodepulse { animation: pulse 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

/* ----- Motion off (Tweaks toggle / reduced motion) ----- */
body.motion-off .grad-anim { animation: none; }
body.motion-off .typed-line .caret { animation: none; }
body.motion-off .viz .flow,
body.motion-off .viz .trace,
body.motion-off .viz .led,
body.motion-off .viz .shield-ring,
body.motion-off .viz .nodepulse,
body.motion-off .net-card .node-core,
body.motion-off .net-card .ring { animation: none !important; }
body.motion-off .reveal,
body.motion-off .reveal-l,
body.motion-off .reveal-r,
body.motion-off .reveal-scale { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .grad-anim { animation: none; }
  .typed-line .caret { animation: none; }
  .reveal, .reveal-l, .reveal-r, .reveal-scale { transition: opacity .4s ease; transform: none; }
}
