/* =========================================================
   viadev.net — orbital terminal
   ========================================================= */

:root {
  --bg: #030605;
  --bg-2: #07100b;
  --panel: rgba(7, 15, 10, 0.88);
  --panel-solid: #08120c;

  --lime: #b4ff39;
  --lime-hi: #e2ff9a;
  --lime-mid: #7fd41c;
  --lime-deep: #3f7a0e;
  --lime-dark: #16300a;
  --mint: #3dffb0;
  --red: #ff5d5d;
  --red-hi: #ff9a8a;

  --text: #f0fbe8;
  --text-2: #d4e7ca;   /* body copy */
  --muted: #b3c9a8;    /* secondary */
  --faint: #86a07b;    /* tiny meta only */

  --line: rgba(180, 255, 57, 0.16);
  --line-2: rgba(180, 255, 57, 0.38);
  --glow: rgba(180, 255, 57, 0.35);

  --f-pixel: "Pixelify Sans", "Silkscreen", monospace;
  --f-label: "Silkscreen", "Pixelify Sans", monospace;
  --f-body: "Chakra Petch", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --nav-h: 84px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--lime); color: #061003; }
:focus-visible { outline: 2px dashed var(--lime); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- pixel clip shapes ---------- */
.px,
.px-frame::before,
.px-frame::after {
  --s2: calc(var(--s) * 2);
  clip-path: polygon(
    0 var(--s2), var(--s) var(--s2), var(--s) var(--s), var(--s2) var(--s), var(--s2) 0,
    calc(100% - var(--s2)) 0, calc(100% - var(--s2)) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) var(--s2), 100% var(--s2),
    100% calc(100% - var(--s2)), calc(100% - var(--s)) calc(100% - var(--s2)), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s2)) calc(100% - var(--s)), calc(100% - var(--s2)) 100%,
    var(--s2) 100%, var(--s2) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) calc(100% - var(--s2)), 0 calc(100% - var(--s2))
  );
}
.px { --s: 6px; }
.px-frame {
  --s: 6px;
  --frame: var(--line-2);
  --fill: var(--panel);
  position: relative;
  isolation: isolate;
}
.px-frame::before,
.px-frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.px-frame::before { inset: 0; background: var(--frame); transition: background .3s; }
.px-frame::after  { inset: 2px; background: var(--fill); transition: background .3s; }

/* ---------- background layers ---------- */
.space {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -3;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.fx-scan {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  /* black lines: normal blending gives exactly what `multiply` did, without
     re-blending the whole viewport over the animated canvas every frame */
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
  opacity: .28;
}

/* infinite decorative loops stop while their block is off-screen (class set from JS) */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
.fx-vignette {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.75) 100%);
}

/* ---------- buttons ---------- */
.btn {
  --s: 5px;
  --frame: var(--lime);
  --fill: var(--lime);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 3.6rem;
  padding: 0 1.7rem;
  font-family: var(--f-label);
  font-size: 1.02rem;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .2s var(--ease), color .2s;
}
.btn::before, .btn::after {
  --s2: calc(var(--s) * 2);
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  clip-path: polygon(
    0 var(--s2), var(--s) var(--s2), var(--s) var(--s), var(--s2) var(--s), var(--s2) 0,
    calc(100% - var(--s2)) 0, calc(100% - var(--s2)) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) var(--s2), 100% var(--s2),
    100% calc(100% - var(--s2)), calc(100% - var(--s)) calc(100% - var(--s2)), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s2)) calc(100% - var(--s)), calc(100% - var(--s2)) 100%,
    var(--s2) 100%, var(--s2) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) calc(100% - var(--s2)), 0 calc(100% - var(--s2))
  );
  transition: background .25s, transform .25s var(--ease);
}
.btn::before { inset: 0; background: var(--frame); }
.btn::after  { inset: 2px; background: var(--fill); }
.btn__ico { width: 1.25em; height: 1.25em; fill: currentColor; shape-rendering: crispEdges; }
.btn__ico--tg { width: 24px; height: 24px; } /* 24×24 grid → 1 cell = 1px, crisp at any DPR */

.btn--primary { color: #071204; }
.btn--primary:hover { --fill: var(--lime-hi); --frame: var(--lime-hi); transform: translateY(-3px); }
.btn--primary:hover::before { transform: translate(5px, 5px); background: var(--lime-deep); }
.btn--ghost { --frame: var(--line-2); --fill: rgba(5, 12, 7, .85); color: var(--lime); }
.btn--ghost:hover { --frame: var(--lime); --fill: rgba(40, 80, 12, .55); transform: translateY(-3px); color: var(--lime-hi); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.9rem; padding: 0 1.2rem; font-size: .9rem; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem;
  padding-inline: var(--gutter);
  transition: background .3s, border-color .3s, height .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(3, 6, 5, .78);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom-color: var(--line);
  --nav-h: 70px;
}
.nav__logo {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--f-pixel); font-weight: 700; font-size: 1.5rem; letter-spacing: .01em;
  margin-right: auto;
}
.nav__logo em { font-style: normal; color: var(--lime); }
.nav__mark {
  flex: none;
  width: 38px; height: 38px; fill: var(--lime); padding: 4px;
  background: var(--lime-dark); shape-rendering: crispEdges;
  box-shadow: 0 0 0 2px var(--lime-deep), 0 0 22px var(--glow);
  transition: transform .4s steps(4);
}
.nav__logo:hover .nav__mark { transform: rotate(90deg); }
.nav__links { display: flex; gap: .4rem; }
.nav__links a {
  position: relative;
  font-family: var(--f-label); font-size: .95rem;
  padding: .6rem .9rem;
  color: var(--text-2);
  transition: color .2s;
}
.nav__links a span { font-size: .7rem; color: var(--lime-mid); margin-right: .4rem; vertical-align: .2em; }
.nav__links a::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 3px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 3px, transparent 3px 6px);
  transform: scaleX(0); transform-origin: left; transition: transform .35s steps(6);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--lime-hi); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__burger { display: none; width: 52px; height: 52px; position: relative; }
.nav__burger span {
  position: absolute; left: 12px; width: 28px; height: 4px; background: var(--lime);
  transition: transform .3s steps(3), opacity .2s;
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 24px; width: 18px; }
.nav__burger span:nth-child(3) { top: 33px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 6rem;
}
.hero::before { /* pixel dot grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(180,255,57,.13) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 70% at 30% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 30% 45%, #000 20%, transparent 75%);
}
.hero__text { min-width: 0; container-type: inline-size; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem;
  font-family: var(--f-label); font-size: .92rem; color: var(--lime);
  padding: .5rem .9rem;
  background: rgba(180,255,57,.07);
  border: 1px solid var(--line);
  margin-bottom: 1.8rem;
}
.eyebrow span { white-space: nowrap; }
.eyebrow .sep { color: var(--lime-deep); }
.pulse { width: 10px; height: 10px; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 1.2s steps(2) infinite; }
@keyframes pulse { 50% { opacity: .15; } }

.hero__hello { font-family: var(--f-mono); font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text-2); margin-bottom: .4rem; }
.hero__name {
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 6.6rem);
  font-size: min(6.6rem, 15.2cqi); /* ~6.3em wide incl. shadow → always fits the column */
  line-height: .95;
  letter-spacing: .01em;
  color: var(--lime);
  white-space: nowrap;
  text-shadow:
    0 0 28px rgba(180,255,57,.35),
    4px 4px 0 var(--lime-deep),
    8px 8px 0 var(--lime-dark);
  margin-bottom: 1.4rem;
}
.hero__role {
  font-family: var(--f-pixel); font-weight: 500;
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  line-height: 1.25;
  min-height: 1.3em;
  margin-bottom: 1.4rem;
}
.typer { color: var(--lime-hi); background: linear-gradient(transparent 62%, rgba(180,255,57,.18) 62%); }
.caret {
  display: inline-block; width: .55em; height: .95em; margin-left: .12em;
  background: var(--lime); vertical-align: -.12em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { max-width: 38rem; color: var(--text-2); font-size: clamp(1.12rem, 1.4vw, 1.26rem); margin-bottom: 2.2rem; }
.hero__lead b, .about__p b { color: var(--lime-hi); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero__meta { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 1rem 3rem; border-top: 1px dashed var(--line-2); padding-top: 1.3rem; }
.hero__meta li { display: grid; padding-left: 1rem; border-left: 3px solid var(--lime-deep); }
.hero__meta small { font-family: var(--f-label); font-size: .8rem; color: var(--muted); letter-spacing: .06em; }
.hero__meta b { font-weight: 600; font-size: 1.02rem; }
.hero__meta .ok { color: var(--lime); }
.hero__meta .ok::before { content: "■ "; animation: blink 1.6s steps(1) infinite; }

/* glitch */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  text-shadow: none;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}
.glitch::before { color: var(--mint); animation: glitchA 5s steps(1) infinite 2.5s; }
.glitch::after  { color: var(--lime-hi); animation: glitchB 5s steps(1) infinite 2.5s; }
@keyframes glitchA {
  0%, 89%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  90% { clip-path: inset(12% 0 60% 0); transform: translate(-6px, 0); }
  92% { clip-path: inset(55% 0 20% 0); transform: translate(8px, 0); }
  94% { clip-path: inset(30% 0 45% 0); transform: translate(-4px, 0); }
  96% { clip-path: inset(75% 0 4% 0);  transform: translate(5px, 0); }
}
@keyframes glitchB {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  91% { clip-path: inset(40% 0 38% 0); transform: translate(7px, 0); }
  93% { clip-path: inset(5% 0 80% 0);  transform: translate(-7px, 0); }
  95% { clip-path: inset(62% 0 12% 0); transform: translate(3px, 0); }
}

/* avatar */
.hero__visual { display: flex; justify-content: center; }
.avatar { position: relative; width: min(100%, 480px); aspect-ratio: 1; }
.avatar__orbit {
  position: absolute; inset: -3%; width: 106%; height: 106%;
  fill: none; stroke: var(--lime); stroke-width: .7;
  stroke-dasharray: 2 4; opacity: .55;
  animation: spin 60s linear infinite;
}
.avatar__orbit .o2 { stroke-dasharray: 1 7; opacity: .7; stroke: var(--mint); }
.avatar__sat {
  position: absolute; inset: -3%;
  animation: spin 16s linear infinite;
  pointer-events: none;
}
.avatar__sat svg {
  position: absolute; top: -12px; left: 50%; width: 48px; height: 24px; margin-left: -24px;
  fill: var(--lime); shape-rendering: crispEdges;
  filter: drop-shadow(0 0 8px var(--lime));
}
@keyframes spin { to { transform: rotate(360deg); } }

/* planet (replaces the photo) */
.avatar__planet {
  position: absolute; inset: 13%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(180,255,57,.18),
    0 0 60px rgba(180,255,57,.22),
    inset -18px -22px 60px rgba(0,0,0,.55);
}
.avatar__planet::after { /* scanlines + rim light */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.2) 0 2px, transparent 2px 4px),
    radial-gradient(circle at 34% 30%, transparent 58%, rgba(61,255,176,.16) 70%, transparent 72%);
}
.avatar__canvas {
  width: 100%; height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.avatar__sweep {
  position: absolute; left: 0; right: 0; top: 0; height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(180,255,57,.2), transparent);
  animation: sweep 4.5s var(--ease) infinite;
  pointer-events: none;
}
@keyframes sweep { 0% { transform: translateY(-40%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(560%); opacity: 0; } }

/* age as system uptime */
.uptime {
  --s: 5px;
  --frame: var(--lime-deep);
  --fill: rgba(3, 6, 5, .92);
  position: absolute; z-index: 3; left: -4%; bottom: 3%;
  padding: .85rem 1.1rem .9rem;
  font-family: var(--f-label);
  line-height: 1;
}
.uptime__label {
  display: flex; align-items: center; gap: .6rem;
  font-size: .72rem; color: var(--muted); letter-spacing: .08em;
  margin-bottom: .55rem;
}
.uptime__label span:first-child { color: var(--lime); }
.uptime__label span:first-child::before { content: "▲ "; color: var(--mint); animation: blink 1.6s steps(1) infinite; }
.uptime__since { color: var(--faint); }
.uptime__years { display: flex; align-items: baseline; gap: .45rem; margin-bottom: .45rem; }
.uptime__years b {
  font-family: var(--f-pixel); font-weight: 700; font-size: 2.6rem; line-height: .9;
  color: var(--lime); text-shadow: 0 0 18px rgba(180,255,57,.4), 3px 3px 0 var(--lime-dark);
}
.uptime__years small { font-size: .8rem; color: var(--text-2); }
.uptime__clock {
  font-family: var(--f-mono); font-size: .86rem; color: var(--lime-hi);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.avatar__tag {
  position: absolute; z-index: 2;
  font-family: var(--f-label); font-size: .78rem; line-height: 1;
  padding: .55rem .7rem;
  background: var(--bg); color: var(--lime);
  border: 1px solid var(--line-2);
  white-space: nowrap;
}
.avatar__tag.t1 { top: 4%; left: -2%; }
.avatar__tag.t2 { top: 12%; right: -1%; display: flex; align-items: center; gap: .45rem; }
.avatar__tag.t3 { bottom: 10%; right: -2%; display: flex; align-items: center; gap: .5rem; }
.rec { width: 9px; height: 9px; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: pulse 1s steps(2) infinite; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars b { width: 4px; background: var(--lime); }
.bars b:nth-child(1) { height: 3px; } .bars b:nth-child(2) { height: 5px; } .bars b:nth-child(3) { height: 7px; }
.bars b:nth-child(4) { height: 10px; } .bars b:nth-child(5) { height: 12px; animation: blink 1.4s steps(1) infinite; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .4rem;
  font-family: var(--f-label); font-size: .78rem; color: var(--muted); letter-spacing: .15em;
}
.scroll-hint svg { width: 20px; height: 20px; fill: var(--lime); shape-rendering: crispEdges; animation: bob 1.4s steps(3) infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* intro (after boot) */
.js [data-intro] { opacity: 0; }
.js.is-ready [data-intro] {
  animation: wipe .9s steps(12) both;
  animation-delay: calc(var(--i, 0) * 120ms);
}
@keyframes wipe {
  0%   { opacity: 1; clip-path: inset(-40px 100% -40px -40px); }
  100% { opacity: 1; clip-path: inset(-40px -40px -40px -40px); }
}
.js.is-ready .hero__visual[data-intro] { animation-name: wipeUp; animation-duration: 1.1s; }
@keyframes wipeUp {
  0%   { opacity: 1; clip-path: inset(100% 0 0 0); }
  100% { opacity: 1; clip-path: inset(-10% -10% -10% -10%); }
}

/* ---------- TICKER BANDS ---------- */
.bands { position: relative; height: 250px; margin: -2rem 0 2rem; }
.band {
  position: absolute; left: -6%; width: 112%; top: 50%;
  overflow: hidden;
  font-family: var(--f-label);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  white-space: nowrap;
}
.band--a {
  background: var(--lime); color: #071204;
  transform: translateY(-50%) rotate(-3deg);
  box-shadow: 0 0 40px rgba(180,255,57,.25), 0 10px 0 var(--lime-deep);
}
.band--b {
  background: var(--bg-2); color: var(--lime);
  border-block: 2px solid var(--line-2);
  transform: translateY(-50%) rotate(2.4deg);
}
.band__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.band--b .band__track { animation-direction: reverse; animation-duration: 46s; }
.band__track span { padding: 1rem 1.4rem; display: inline-flex; align-items: center; gap: 2.8rem; }
.band__track span::after { content: ""; width: 12px; height: 12px; background: currentColor; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); }
.section__head { margin-bottom: clamp(2.4rem, 5vw, 4rem); max-width: 48rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.kicker { font-family: var(--f-label); font-size: 1rem; color: var(--text-2); margin-bottom: 1rem; }
.kicker span { color: var(--lime); }
.h2 {
  font-family: var(--f-pixel); font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: .005em;
  margin-bottom: 1.2rem;
  text-shadow: 3px 3px 0 var(--lime-dark);
}
.h2--xl { font-size: clamp(2.7rem, 7.2vw, 6.2rem); }
.h2 em { font-style: normal; color: var(--lime); text-shadow: 0 0 30px rgba(180,255,57,.4), 4px 4px 0 var(--lime-dark); }
.cur { color: var(--lime); animation: blink 1s steps(1) infinite; }
.section__sub { color: var(--text-2); font-size: clamp(1.12rem, 1.5vw, 1.28rem); max-width: 40rem; }
.section__head--center .section__sub { margin-inline: auto; }

.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- SERVICES ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.card {
  --s: 8px;
  --mx: 50%; --my: 0%;
  display: flex; flex-direction: column;
  padding: 2rem 2rem 2.2rem;
  min-height: 100%;
  overflow: hidden;
}
.card::after {
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(180,255,57,.11), transparent 60%),
    var(--fill);
}
.js .card[data-reveal].is-in { transition: opacity .8s var(--ease), transform .45s var(--ease); transition-delay: 0s; }
.card:hover { --frame: var(--lime); }
.card:hover, .js .card.is-in:hover { transform: translateY(-6px); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.6rem; }
.card__idx { font-family: var(--f-label); font-size: .85rem; color: var(--muted); }
.card:hover .card__idx { color: var(--lime); }
.card__title {
  font-family: var(--f-pixel); font-weight: 600;
  font-size: clamp(1.7rem, 2.3vw, 2.05rem); line-height: 1.1;
  margin-bottom: .9rem;
  color: var(--text);
}
.card:hover .card__title { color: var(--lime-hi); }
.card__text { color: var(--text-2); font-size: 1.08rem; margin-bottom: 1.6rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.tags li {
  font-family: var(--f-mono); font-size: .78rem;
  padding: .45rem .7rem;
  color: var(--lime-hi);
  background: rgba(180,255,57,.08);
  border: 1px solid var(--line-2);
}
.card__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--lime);
  box-shadow: 0 0 16px 2px var(--lime);
  opacity: 0;
  pointer-events: none;
}
.card:hover .card__scan { animation: cardScan 1.1s var(--ease); }
@keyframes cardScan { 0% { opacity: 0; top: 0; } 10% { opacity: .9; } 100% { opacity: 0; top: 100%; } }

.card--cta { --frame: var(--lime-deep); --fill: rgba(22, 48, 10, .6); }
.card--cta .card__text { max-width: 36rem; }
.card--cta .card__title { color: var(--lime); }
.card__go {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--f-label); color: var(--lime); font-size: 1rem;
}
.card__go svg, .channel__go svg { width: 18px; height: 18px; fill: currentColor; shape-rendering: crispEdges; transition: transform .3s steps(3); }
.card--cta:hover .card__go svg, .channel:hover .channel__go svg { transform: translateX(8px); }

/* pixel icons */
.pxicon { width: 76px; height: 76px; filter: drop-shadow(0 0 10px rgba(180,255,57,.45)); }
.pxicon--lg { width: 96px; height: 96px; }
.pxicon svg { width: 100%; height: 100%; overflow: visible; shape-rendering: crispEdges; }
.pxicon rect { fill: var(--lime); }
.pxicon rect.d { fill-opacity: .2; }
.pxicon rect.b { fill: var(--lime-hi); animation: blink 1.3s steps(1) infinite; animation-delay: var(--bd, 0s); }
.js .pxicon rect {
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box; transform-origin: center;
  transition: opacity .15s steps(2), transform .25s steps(3);
  transition-delay: var(--d, 0ms);
}
.js .is-in .pxicon rect, .js .pxicon.is-in rect { opacity: 1; transform: none; }
.card:hover .pxicon, .channel:hover .pxicon { animation: jitter .35s steps(2) 2; }
@keyframes jitter {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3px, 1px); }
  50% { transform: translate(2px, -2px); } 75% { transform: translate(-1px, 2px); } 100% { transform: none; }
}

/* full-width CTA row closing the 3×3 grid */
.card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "top title go" "top text go";
  column-gap: 2.4rem;
  align-items: center;
  min-height: 0;
}
.card--wide .card__top { grid-area: top; flex-direction: column; align-items: center; gap: .6rem; margin: 0; }
.card--wide .card__title { grid-area: title; margin-bottom: .4rem; align-self: end; }
.card--wide .card__text { grid-area: text; margin: 0; align-self: start; }
.card--wide .card__go { grid-area: go; margin: 0; }

/* ---------- LAB ---------- */
.lab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; align-items: stretch; }
.showcase {
  --s: 10px;
  --frame: var(--lime-deep);
  --fill: rgba(5, 12, 7, .9);
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 2.2rem 2.2rem 2.4rem;
}
.showcase:hover { --frame: var(--lime); }
.showcase__head { display: flex; align-items: center; gap: 1.4rem; }
.showcase__tag { font-family: var(--f-label); font-size: .8rem; color: var(--lime); margin-bottom: .35rem; }
.showcase__title {
  font-family: var(--f-pixel); font-weight: 700;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.08;
  color: var(--text); text-shadow: 3px 3px 0 var(--lime-dark);
}
.showcase__text { color: var(--text-2); font-size: 1.1rem; }
.showcase__text b { color: var(--lime-hi); font-weight: 600; }
.showcase .tags { margin-top: auto; }

/* card footer: tags + "More info" */
.showcase__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.4rem; }
.showcase__foot .tags { margin-top: 0; flex: 1 1 16rem; }
.showcase__more { flex: none; }
.showcase__more .btn__ico { width: 1em; height: 1em; transition: transform .3s steps(3); }
.showcase__more:hover .btn__ico { transform: translateX(5px); }

/* NeoBridge: home server → 2 uplinks → 2 cloud nodes → www */
.route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .9rem 1rem;
  align-items: center;
  padding: 1.3rem 1.3rem 1.1rem;
  background: rgba(3, 8, 5, .9);
  border: 1px dashed var(--line-2);
  font-family: var(--f-mono); font-size: .76rem;
}
.route__node {
  width: min-content; /* "home server" → two lines in the side column */
  font-family: var(--f-label); font-size: .78rem; line-height: 1.25; text-align: center;
  padding: .8rem .7rem;
  color: #071204; background: var(--lime);
  box-shadow: 4px 4px 0 var(--lime-deep);
  text-transform: uppercase;
}
.route__paths { display: grid; gap: .7rem; }
.route__cap { font-family: var(--f-label); font-size: .64rem; color: var(--faint); letter-spacing: .06em; margin-bottom: -.25rem; }
.route__cap:not(:first-child) { margin-top: .35rem; }
.route__path { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.route__line {
  flex: 1; min-width: 1.5rem; height: 4px;
  background: repeating-linear-gradient(90deg, var(--lime-deep) 0 6px, transparent 6px 12px);
  transition: background .2s steps(2);
}
.route__path b { font-weight: 400; color: var(--text-2); min-width: 4.4em; }
.route__st { font-style: normal; min-width: 7.2em; text-align: center; padding: .25rem .4rem; border: 1px solid currentColor; line-height: 1; }
.route__path[data-state="ready"] .route__st::before { content: "STANDBY"; }
.route__path[data-state="active"] { color: var(--lime); }
.route__path[data-state="active"] b { color: var(--lime-hi); }
.route__path[data-state="active"] .route__line {
  background: repeating-linear-gradient(90deg, var(--lime) 0 6px, transparent 6px 12px);
  background-size: 24px 100%;
  box-shadow: 0 0 12px rgba(180,255,57,.35);
  animation: flow .6s steps(4) infinite;
}
.route__path[data-state="active"] .route__st { color: #071204; background: var(--lime); border-color: var(--lime); }
.route__path[data-state="active"] .route__st::before { content: "ACTIVE"; }
.route__path[data-state="down"] { color: var(--red-hi); }
.route__path[data-state="down"] b { color: var(--red-hi); }
.route__path[data-state="down"] .route__line { background: repeating-linear-gradient(90deg, rgba(255,93,93,.45) 0 3px, transparent 3px 12px); }
.route__path[data-state="down"] .route__st::before { content: "DOWN"; }
@keyframes flow { to { background-position: 24px 0; } }
.route__log { grid-column: 1 / -1; color: var(--text-2); border-top: 1px dashed var(--line); padding-top: .8rem; min-height: 2.6em; }
.route__log .err { color: var(--red-hi); }

/* mini app windows (WebSaver / NeoBackup) */
.mock { border: 1px solid var(--line-2); background: rgba(3, 8, 5, .9); font-family: var(--f-mono); font-size: .76rem; }
.mock__bar, .kiosk__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem 1rem;
  border-bottom: 1px dashed var(--line-2);
  font-family: var(--f-label); font-size: .74rem; color: var(--muted);
}
.mock__dim { color: var(--faint); }
.mock__body { padding: .9rem 1rem 1rem; }
.mock__query { color: var(--lime-hi); padding: .55rem .7rem; border: 1px solid var(--lime-deep); background: #08110a; margin-bottom: .8rem; white-space: nowrap; overflow: hidden; }
.mock__caret { display: inline-block; width: .55em; height: 1em; margin-left: .1em; vertical-align: -.15em; background: var(--lime); animation: blink 1s steps(1) infinite; }
.mock__rows { display: grid; gap: .45rem; }
.mock__rows li { display: flex; align-items: center; gap: .7rem; color: var(--text-2); min-width: 0; }
.mock__rows li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__rows--jobs { padding: .9rem 1rem 1rem; gap: .6rem; }
.mock__foot { display: flex; justify-content: space-between; gap: 1rem; white-space: nowrap; padding: .6rem 1rem; border-top: 1px dashed var(--line-2); color: var(--faint); font-size: .7rem; }
.mock__foot span:last-child { color: var(--lime); }
.mock__rows--jobs li > span { flex: 1; }
.mock__rows--jobs small { color: var(--faint); font-size: .7rem; }
.mock__rows--jobs b { font-weight: 400; min-width: 4.6em; text-align: right; }
.mock__rows--jobs .ok { color: var(--lime); }
.mock__rows--jobs .run { display: inline-block; height: 8px; border: 1px solid var(--lime-deep); position: relative; overflow: hidden; }
.mock__bar-run {
  position: absolute; inset: 1px auto 1px 1px; width: 40%;
  background: repeating-linear-gradient(90deg, var(--lime) 0 4px, transparent 4px 6px);
  animation: backupRun 3.2s steps(12) infinite;
}
@keyframes backupRun { 0% { width: 0; } 90%, 100% { width: calc(100% - 2px); } }
.k { flex: none; min-width: 4.4em; text-align: center; font-style: normal; font-size: .66rem; line-height: 1; padding: .3rem .35rem; border: 1px solid currentColor; }
.k--page { color: var(--lime); }
.k--video { color: var(--mint); }
.k--ai { color: var(--lime-hi); background: rgba(180,255,57,.1); }

/* kiosk dashboard */
.kiosk { border: 1px solid var(--line-2); background: rgba(3, 8, 5, .9); }
.kiosk__clock { font-family: var(--f-mono); color: var(--lime-hi); font-variant-numeric: tabular-nums; }
.kiosk__live {
  display: inline-flex; align-items: center; gap: .45rem; margin-left: auto;
  font-family: var(--f-mono); font-size: .68rem; line-height: 1;
  padding: .3rem .5rem; border: 1px solid currentColor;
  color: var(--faint);
  white-space: nowrap;
}
.kiosk__live i { width: 7px; height: 7px; background: currentColor; }
.kiosk__live[data-state="live"] { color: var(--mint); }
.kiosk__live[data-state="live"] i { box-shadow: 0 0 8px var(--mint); animation: pulse 1s steps(2) infinite; }
.kiosk__live[data-state="stale"] { color: #ffc15d; }
.kiosk__live[data-state="demo"] { color: var(--muted); }
.kiosk__live[data-state="sync"] i { animation: blink .6s steps(1) infinite; }
.kiosk__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line); }
.tile { display: grid; gap: .15rem; padding: .95rem 1rem 1rem; background: #050b07; min-width: 0; }
.tile small { font-family: var(--f-label); font-size: .7rem; color: var(--faint); }
.tile b { font-family: var(--f-pixel); font-weight: 600; font-size: 1.7rem; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile span { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.tile.is-on { background: rgba(40, 80, 12, .45); }
.tile.is-on b, .tile.is-on span { color: var(--lime-hi); }
.tile.is-on small::before { content: "■ "; color: var(--lime); animation: blink 1.6s steps(1) infinite; }
.tile.is-upd b { animation: tileUpd .9s steps(3); }
@keyframes tileUpd { 0% { color: var(--mint); text-shadow: 0 0 12px var(--mint); } 100% { text-shadow: none; } }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about__p { font-size: clamp(1.12rem, 1.5vw, 1.26rem); color: var(--text-2); margin-bottom: 1.3rem; max-width: 38rem; }
.about__p b { color: var(--text); font-weight: 600; }
.principles { display: grid; gap: 1.1rem; margin-top: 2.2rem; }
.principles li { display: flex; gap: 1rem; align-items: flex-start; }
.principles i {
  flex: none; width: 16px; height: 16px; margin-top: .4rem;
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--lime-deep);
}
.principles b { display: block; font-family: var(--f-pixel); font-weight: 600; font-size: 1.35rem; color: var(--text); }
.principles span { color: var(--text-2); }

/* terminal */
.term {
  --s: 8px;
  --frame: var(--line-2);
  --fill: rgba(3, 8, 5, .94);
  display: flex; flex-direction: column;
  font-family: var(--f-mono);
  font-size: .84rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  position: sticky; top: calc(var(--nav-h) + 1rem);
}
.term:focus-within { --frame: var(--lime); }
.term__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.3rem .9rem;
  border-bottom: 1px dashed var(--line-2);
  font-family: var(--f-label); font-size: .78rem; color: var(--text-2);
}
.term__dots { display: flex; gap: 6px; }
.term__dots i { width: 11px; height: 11px; background: var(--lime-deep); }
.term__dots i:first-child { background: var(--lime); }
.term__title { flex: 1; text-align: center; }
.term__state { color: var(--lime); }
.term__body {
  height: clamp(380px, 52vh, 520px);
  overflow-y: auto;
  padding: 1.1rem 1.3rem 1rem;
  scrollbar-width: thin; scrollbar-color: var(--lime-deep) transparent;
  cursor: text;
}
.term__out > div { white-space: pre-wrap; word-break: break-word; }
.term__line { display: flex; gap: .7rem; align-items: baseline; }
.term__ps, .t-ps { color: var(--lime); white-space: nowrap; }
.term__in {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  color: var(--text); font: inherit;
  caret-color: var(--lime);
  font-size: 16px; /* prevent iOS zoom */
  line-height: 1.4;
  padding: 0;
}
.t-dim { color: var(--faint); }
.t-mut { color: var(--muted); }
.t-hi { color: var(--lime-hi); }
.t-lime { color: var(--lime); }
.t-err { color: #ff7a6b; }
.t-mint { color: var(--mint); }
.term a { color: var(--lime); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.neo { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: .4rem 0 .8rem; }
.neo__logo { color: var(--lime); line-height: 1.15; white-space: pre; text-shadow: 0 0 10px rgba(180,255,57,.5); }
.neo__info { white-space: pre-wrap; min-width: 0; }
.neo__cols { display: flex; gap: 0; margin-top: .4rem; }
.neo__cols i { width: 22px; height: 14px; }
.term__chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: .9rem 1.3rem 1.2rem;
  border-top: 1px dashed var(--line);
}
.term__chips button {
  font-family: var(--f-mono); font-size: .76rem;
  padding: .55rem .8rem;
  color: var(--lime);
  border: 1px solid var(--line-2);
  background: rgba(180,255,57,.05);
  transition: background .2s, color .2s;
}
.term__chips button::before { content: "$ "; color: var(--faint); }
.term__chips button:hover { background: var(--lime); color: #071204; }
.term__chips button:hover::before { color: #071204; }

/* ---------- PROTOCOL ---------- */
.steps {
  --line-y: 3.1rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  counter-reset: step;
}
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: var(--line-y); height: 4px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px);
}
.steps__packet {
  position: absolute; top: calc(var(--line-y) - 5px); left: 0;
  width: 14px; height: 14px; background: var(--lime);
  box-shadow: 0 0 16px var(--lime), -14px 0 0 rgba(180,255,57,.45), -28px 0 0 rgba(180,255,57,.2);
  animation: packet 6s steps(60) infinite;
}
@keyframes packet { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 96% { opacity: 1; } 100% { left: calc(100% - 14px); opacity: 0; } }
.step { position: relative; padding-top: 5.2rem; }
.step__node {
  position: absolute; top: calc(var(--line-y) - 11px); left: 0;
  width: 26px; height: 26px;
  background: var(--bg); border: 4px solid var(--lime);
  box-shadow: 0 0 18px rgba(180,255,57,.4);
}
.step:hover .step__node { background: var(--lime); }
.step__num {
  position: absolute; top: 0; left: 0;
  font-family: var(--f-pixel); font-weight: 700; font-size: 2.1rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--lime-mid);
  transform: translate(46px, 1.55rem);
}
.step__title { font-family: var(--f-pixel); font-weight: 600; font-size: 1.85rem; color: var(--lime); margin-bottom: .6rem; }
.step p { color: var(--text-2); }

/* ---------- CONTACT ---------- */
.contact { padding-bottom: clamp(5rem, 10vw, 9rem); }
.contact::before {
  content: ""; position: absolute; inset: 10% 10% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(180,255,57,.10), transparent 70%);
}
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: 1060px; margin-inline: auto; }
.channel {
  --s: 10px;
  display: flex; align-items: center; gap: 1.8rem;
  padding: 2.2rem 2.2rem;
  transition: transform .4s var(--ease);
}
.channel:hover { --frame: var(--lime); }
.channel:hover, .js .channel.is-in:hover { transform: translateY(-6px); }
.channel__body { display: grid; gap: .3rem; min-width: 0; }
.channel small { font-family: var(--f-label); font-size: .85rem; color: var(--text-2); }
.channel strong {
  font-family: var(--f-pixel); font-weight: 600;
  font-size: clamp(1.6rem, 3.1vw, 2.35rem); line-height: 1.15;
  color: var(--text);
  overflow-wrap: anywhere;
}
.channel:hover strong { color: var(--lime-hi); }
.channel__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-top: .4rem; }
.channel__go { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-label); color: var(--lime); font-size: .95rem; margin-top: .4rem; }
.channel__actions .channel__go { margin-top: 0; }
.channel__copy {
  font-family: var(--f-label); font-size: .85rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line-2); color: var(--lime);
  transition: background .2s, color .2s;
}
.channel__copy:hover { background: var(--lime); color: #071204; }

/* ---------- REQUEST FORM ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
  max-width: 1180px;
  margin-inline: auto;
}
.contact__grid > * { min-width: 0; }
.contact__grid .channels {
  grid-template-columns: 1fr;
  max-width: none;
  margin: 0;
  position: sticky; top: calc(var(--nav-h) + 1rem);
}
.contact__grid .channel { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: 2rem; }
.contact__grid .channel strong { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.channels__label { font-family: var(--f-label); font-size: .9rem; color: var(--muted); margin: .3rem 0 -.3rem; }

.lead {
  --s: 10px;
  --frame: var(--line-2);
  --fill: #040906;
  display: flex; flex-direction: column;
  min-height: 100%;
}
.lead:focus-within { --frame: var(--lime-mid); }
.lead.is-sent  { --frame: var(--lime); }
.lead.is-error { --frame: var(--red); }
.lead__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem 1.5rem .95rem;
  border-bottom: 1px dashed var(--line-2);
  font-family: var(--f-label); font-size: .8rem; color: var(--text-2);
}
.lead__file { flex: 1; }
.lead__state {
  padding: .3rem .6rem;
  border: 1px solid currentColor;
  color: var(--muted);
  line-height: 1;
}
.lead__state[data-state="sending"] { color: var(--lime); animation: blink .6s steps(1) infinite; }
.lead__state[data-state="sent"]    { color: #071204; background: var(--lime); border-color: var(--lime); }
.lead__state[data-state="error"]   { color: var(--red-hi); }

.lead__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.7rem; padding: 1.9rem 2rem 2.1rem; transition: opacity .3s; }

.field__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.field label { font-family: var(--f-pixel); font-weight: 600; font-size: 1.4rem; color: var(--text); }
.field label span { font-family: var(--f-label); font-size: .8rem; color: var(--lime); margin-right: .45rem; vertical-align: .18em; }
.field__flag { font-family: var(--f-mono); font-size: .76rem; color: var(--faint); white-space: pre; }
.field__flag::before { content: "[ -- ]"; }
.field.is-valid .field__flag { color: var(--lime); }
.field.is-valid .field__flag::before { content: "[ OK ]"; }
.field.is-invalid .field__flag { color: var(--red-hi); }
.field.is-invalid .field__flag::before { content: "[ERR ]"; }

.field__box {
  --s: 5px;
  --frame: var(--lime-deep);
  --fill: #08110a; /* must be opaque: the frame layer sits right under it */
  display: flex; align-items: center;
}
.field__box:focus-within { --frame: var(--lime); --fill: #0c1a0c; }
.field.is-invalid .field__box { --frame: var(--red); --fill: #170b0a; }
.field.is-shake .field__box { animation: shake .45s steps(5); }
@keyframes shake {
  0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
}
.field__box input,
.field__box textarea {
  flex: 1; min-width: 0;
  width: 100%; /* drop the built-in ~20ch intrinsic width of inputs */
  background: none; border: 0; outline: 0;
  color: var(--text);
  font: 500 1.14rem/1.5 var(--f-body);
  padding: 1.05rem 1.2rem;
  caret-color: var(--lime);
}
.field__box textarea { min-height: 11rem; resize: vertical; display: block; }
.field__box :focus-visible { outline: none; }
.field__box ::placeholder { color: var(--faint); opacity: 1; }
.field__box input:read-only, .field__box textarea:read-only { color: var(--text-2); }
.field__type {
  margin-right: .8rem;
  font-family: var(--f-label); font-size: .75rem; line-height: 1;
  padding: .45rem .6rem;
  background: var(--lime); color: #071204;
  box-shadow: 3px 3px 0 var(--lime-deep);
  white-space: nowrap;
}
.field__type:empty { display: none; }
.field__type.is-pop { animation: pop .35s steps(4); }
@keyframes pop { 0% { transform: scale(.3); } 60% { transform: scale(1.25); } 100% { transform: none; } }

.topics { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.topics button {
  font-family: var(--f-mono); font-size: .78rem;
  padding: .5rem .75rem;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  background: rgba(180, 255, 57, .04);
  transition: background .2s, color .2s, border-color .2s;
}
.topics button::before { content: "+ "; color: var(--lime-mid); }
.topics button:hover { border-color: var(--lime); color: var(--lime-hi); }
.topics button.is-on { background: var(--lime); border-color: var(--lime); color: #071204; }
.topics button.is-on::before { content: "✓ "; color: #071204; }
.topics button:disabled { opacity: .5; cursor: default; }

.field__hint { font-size: .95rem; color: var(--muted); margin-top: .55rem; }
.field__err {
  display: flex; align-items: flex-start; gap: .55rem;
  margin-top: .55rem;
  font-family: var(--f-mono); font-size: .8rem; color: var(--red-hi);
  animation: wipe .35s steps(6) both;
}
.field__err::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; background: var(--red); box-shadow: 0 0 8px var(--red); }
.field__err:empty { display: none; }
.field.is-invalid .field__hint { display: none; }
.field__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.field__foot .field__err { flex: 1; }
.field__count { margin: .55rem 0 0 auto; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.field__count.is-near b { color: var(--red-hi); }

.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.lead__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 1.6rem; }
.lead__submit { min-height: 4.1rem; padding: 0 2.1rem; font-size: 1.08rem; }
.lead__submit > * { position: relative; z-index: 1; }
.lead__submit .lead__progress {
  position: absolute; z-index: 0;
  left: 2px; top: 2px; bottom: 2px;
  width: calc((100% - 4px) * var(--p, 0));
  background: repeating-linear-gradient(90deg, rgba(7, 18, 4, .3) 0 8px, transparent 8px 12px);
  transition: width .3s steps(4);
}
.lead__submit:disabled { cursor: progress; }
.lead.is-sending .lead__submit { --fill: var(--lime-hi); transform: none; }
.lead.is-sending .lead__submit::before { transform: none; background: var(--lime); }
.lead.is-sending .lead__submit .btn__ico { animation: fly .5s steps(2) infinite; }
@keyframes fly { 50% { transform: translate(3px, -3px); } }
.lead__note { color: var(--muted); font-size: .95rem; line-height: 1.45; }

.lead__log { font-family: var(--f-mono); font-size: .8rem; line-height: 1.9; color: var(--text-2); margin-top: -.4rem; }
.lead__log:empty { display: none; }
.lead__log > div { animation: wipe .3s steps(6) both; }
.lead__log .dim { color: var(--faint); }
.lead__log .ok  { color: var(--lime); }
.lead__log .err { color: var(--red-hi); }
.lead.is-sending .field { opacity: .5; transition: opacity .3s; }

.lead__result {
  position: absolute; left: 2px; right: 2px; bottom: 2px; top: 3.6rem;
  display: grid; place-items: center;
  padding: 2rem 1.6rem;
  text-align: center;
}
.lead__result[hidden] { display: none; }
.lead__result-inner { display: grid; justify-items: center; gap: .9rem; max-width: 32rem; min-width: 0; width: 100%; }
.lead__result.is-on .lead__result-inner > :not(.lead__icon) { animation: wipe .6s steps(8) both; }
.lead__result.is-on .lead__result-inner > :nth-child(2) { animation-delay: .35s; }
.lead__result.is-on .lead__result-inner > :nth-child(3) { animation-delay: .5s; }
.lead__result.is-on .lead__result-inner > :nth-child(4) { animation-delay: .65s; }
.lead__result.is-on .lead__result-inner > :nth-child(5) { animation-delay: .8s; }
.pxicon--xl { width: 132px; height: 132px; margin-bottom: .6rem; }
.lead__icon { position: relative; }
.lead__icon::before, .lead__icon::after {
  content: ""; position: absolute; inset: -14px;
  border: 3px solid var(--lime);
  opacity: 0;
  pointer-events: none;
}
.lead__result.is-on .lead__icon::before { animation: ring 1.1s steps(6) .25s; }
.lead__result.is-on .lead__icon::after  { animation: ring 1.1s steps(6) .55s; }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.lead__kicker { font-family: var(--f-label); font-size: .9rem; color: var(--lime); }
.lead__title { font-family: var(--f-pixel); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.05; color: var(--text); text-shadow: 3px 3px 0 var(--lime-dark); }
.lead__text { color: var(--text-2); font-size: 1.14rem; }
.lead__text b { color: var(--lime-hi); font-weight: 600; overflow-wrap: anywhere; }
.lead__result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: .8rem; }

.lead__result.is-error .pxicon rect { fill: var(--red); }
.lead__result.is-error .pxicon { filter: drop-shadow(0 0 12px rgba(255, 93, 93, .55)); }
.lead__result.is-error .lead__icon::before, .lead__result.is-error .lead__icon::after { border-color: var(--red); }
.lead__result.is-error .lead__kicker { color: var(--red-hi); }
.lead__result.is-error .lead__title { text-shadow: 3px 3px 0 #4a1010; }

.lead__fx { --s: 8px; position: absolute; left: 2px; top: 2px; z-index: 5; pointer-events: none; width: 0; height: 0; }

/* whole-form glitch on error */
.lead.is-glitch { animation: formGlitch .55s steps(1); }
.lead.is-glitch::after {
  background:
    linear-gradient(transparent 0 30%, rgba(255, 93, 93, .16) 30% 36%, transparent 36% 62%, rgba(255, 93, 93, .12) 62% 66%, transparent 66%),
    var(--fill);
}
@keyframes formGlitch {
  0%   { transform: translate(0, 0); filter: none; }
  15%  { transform: translate(-10px, 2px); filter: drop-shadow(6px 0 0 rgba(255, 93, 93, .6)) drop-shadow(-6px 0 0 rgba(61, 255, 176, .4)); }
  30%  { transform: translate(9px, -2px); }
  45%  { transform: translate(-6px, 1px); filter: drop-shadow(-5px 0 0 rgba(255, 93, 93, .6)); }
  60%  { transform: translate(5px, 0); filter: none; }
  75%  { transform: translate(-2px, 0); }
  100% { transform: none; filter: none; }
}

.burst { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 85; pointer-events: none; }

/* ---------- FOOTER ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: 0 0 2rem; overflow: hidden; }
.footer__big {
  font-family: var(--f-pixel); font-weight: 700;
  font-size: clamp(3.6rem, 16vw, 15rem);
  line-height: .9;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(180,255,57,.28);
  padding: 2.4rem 0 1.4rem;
  white-space: nowrap;
  user-select: none;
  background: linear-gradient(90deg, transparent, rgba(180,255,57,.5), transparent) no-repeat;
  background-size: 30% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: shine 6s linear infinite;
}
@keyframes shine { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer__links a { font-family: var(--f-label); font-size: .85rem; color: var(--text-2); transition: color .2s; }
.footer__links a:hover { color: var(--lime); }

/* ---------- BOOT ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: clamp(.78rem, 1.6vw, .95rem);
  color: var(--muted);
}
.js .boot { display: grid; }
html:not(.js) .boot { display: none; }
.boot__dissolve { position: absolute; inset: 0; width: 100%; height: 100%; }
.boot__inner { position: relative; width: min(640px, calc(100% - 2 * var(--gutter))); }
.boot__log div { white-space: pre-wrap; line-height: 1.9; }
.boot__log .ok { color: var(--lime); }
.boot__log .hi { color: var(--lime-hi); font-family: var(--f-pixel); font-size: 1.6em; line-height: 1.4; margin-top: .6rem; }
.boot__bar { margin-top: 1.4rem; height: 14px; border: 2px solid var(--lime-deep); padding: 2px; }
.boot__bar span {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, var(--lime) 0 8px, transparent 8px 11px);
  transition: width .2s steps(4);
}
.boot__skip { position: absolute; bottom: 1.6rem; left: 0; right: 0; text-align: center; font-family: var(--f-label); font-size: .72rem; color: var(--faint); }
.boot.is-dissolving .boot__inner, .boot.is-dissolving .boot__skip { opacity: 0; }
.boot.is-dissolving { background: transparent; }
html.is-booting { overflow: hidden; }

/* ---------- toast + trail ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 95;
  transform: translate(-50%, calc(100% + 3rem));
  visibility: hidden;
  font-family: var(--f-label); font-size: .9rem;
  padding: .9rem 1.3rem;
  background: var(--lime); color: #071204;
  box-shadow: 5px 5px 0 var(--lime-deep);
  transition: transform .35s steps(5);
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.trail {
  position: fixed; z-index: 90; pointer-events: none;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: trail .7s steps(5) forwards;
}
@keyframes trail { to { opacity: 0; transform: scale(.25) translateY(8px); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__grid .channels { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels__label { grid-column: 1 / -1; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 9 cards in 2 columns → the CTA fills the last free cell as a regular card */
  .card--wide { grid-column: auto; display: flex; align-items: stretch; min-height: 100%; }
  .card--wide .card__top { flex-direction: row; align-items: flex-start; margin-bottom: 1.6rem; }
  .card--wide .card__title { margin-bottom: .9rem; align-self: auto; }
  .card--wide .card__text { margin-bottom: 1.6rem; align-self: auto; }
  .card--wide .card__go { margin-top: auto; }
  .lab { grid-template-columns: 1fr; }
  .nav__links a span { display: none; }
  .nav__links a { padding-inline: .65rem; }
  .nav__links a::after { left: .65rem; right: .65rem; }
}

@media (max-width: 920px) {
  :root { --nav-h: 72px; }
  .nav { gap: 1rem; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: .4rem;
    padding: var(--nav-h) var(--gutter) 2rem;
    background: var(--bg);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .5s steps(8);
  }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); }
  .nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-bottom-color: transparent; }
  .nav__links a { font-size: 1.9rem; padding: .9rem 0; color: var(--text); border-bottom: 1px dashed var(--line); }
  .nav__links a span { display: inline; font-size: .9rem; }
  .nav__links a::after { display: none; }
  html.menu-open { overflow: hidden; }

  .hero { padding: calc(var(--nav-h) + 1.5rem) 0 3rem; align-items: flex-start; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero__visual { order: -1; }
  .avatar { width: min(78vw, 360px); }
  .hero__text { text-align: left; }
  .scroll-hint { display: none; }

  .about { grid-template-columns: 1fr; }
  .term { position: relative; top: 0; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .steps::before, .steps__packet { display: none; }
  .step { padding-top: 4.2rem; }
  .step__node { top: .35rem; }
  .step__num { transform: translate(46px, 0); }
}

@media (max-width: 640px) {
  html { font-size: 106.25%; } /* 17px */
  .nav__logo { font-size: 1.3rem; }
  .nav__mark { width: 34px; height: 34px; }
  .eyebrow { font-size: .78rem; margin-bottom: 1.3rem; }
  .hero__name { font-size: min(4rem, 15.2cqi); text-shadow: 0 0 22px rgba(180,255,57,.35), 3px 3px 0 var(--lime-deep), 6px 6px 0 var(--lime-dark); }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; min-height: 4rem; font-size: 1.05rem; }
  .hero__meta { grid-template-columns: 1fr; gap: .9rem; }
  .hero__meta li { border: 0; margin: 0; padding: 0; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: .6rem; }
  .avatar__tag { font-size: .66rem; padding: .45rem .55rem; }
  .avatar__tag.t1 { left: 0; top: 2%; }
  .avatar__tag.t2 { right: 0; }
  .avatar__tag.t3 { right: 0; bottom: 22%; }
  .uptime { left: 0; bottom: 0; padding: .7rem .85rem .75rem; }
  .uptime__years b { font-size: 2.1rem; }
  .uptime__clock { font-size: .76rem; }
  .uptime__since { display: none; }

  .bands { height: 170px; margin: 0 0 1rem; }
  .band__track span { padding: .8rem 1rem; gap: 2rem; }

  .services { grid-template-columns: 1fr; gap: 1.1rem; }
  .card { padding: 1.7rem 1.5rem 1.9rem; }
  .showcase { padding: 1.7rem 1.4rem 1.9rem; gap: 1.3rem; }
  .showcase__head { gap: 1rem; }
  .route { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
  .route__node { justify-self: start; width: auto; }
  .route__st { min-width: 6.4em; }
  .showcase__more { width: 100%; }
  .kiosk__clock { display: none; }
  .tile b { font-size: 1.45rem; }
  .pxicon { width: 64px; height: 64px; }

  .term { font-size: .76rem; }
  .term__body { height: 440px; padding: 1rem; }
  .term__bar, .term__chips { padding-inline: 1rem; }
  .term__line { flex-wrap: wrap; gap: .3rem .6rem; }

  .steps { grid-template-columns: 1fr; row-gap: 2.4rem; }
  .steps::before {
    display: block; left: 11px; right: auto; top: 0; bottom: 0; width: 4px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 16px);
  }
  .step { padding: 0 0 0 3.6rem; }
  .step__node { top: .3rem; left: 0; }
  .step__num { position: static; display: block; transform: none; font-size: 1.6rem; margin-bottom: .4rem; }

  .channels, .contact__grid .channels { grid-template-columns: 1fr; }
  .contact__grid .channel { padding: 1.8rem 1.6rem; }
  .lead__bar { padding-inline: 1.1rem; }
  .lead__body { padding: 1.5rem 1.2rem 1.7rem; gap: 1.5rem; }
  .field label { font-size: 1.25rem; }
  .field__box input, .field__box textarea { font-size: 16px; padding: 1rem; }
  .lead__actions { flex-direction: column; align-items: stretch; }
  .lead__submit { width: 100%; padding-inline: 1.2rem; white-space: normal; text-align: center; line-height: 1.3; }
  .lead__bar { gap: .7rem; font-size: .72rem; }
  .lead__file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lead__note br { display: none; }
  .pxicon--xl { width: 104px; height: 104px; }
  .channel { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: 1.8rem 1.6rem; }
  .pxicon--lg { width: 76px; height: 76px; }

  .footer__row { flex-direction: column; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .glitch::before, .glitch::after, .avatar__sweep, .steps__packet { display: none; }
}
