/* =========================================================
   Pogotowie Komputerowe Warszawa — AETHER TECH design system
   Dark premium · one accent · cinematic depth
   ========================================================= */
:root {
  --bg: #05070b;
  --bg-elev: #0c1018;
  --bg-soft: #121826;
  --ink: #f4f7fb;
  --ink-dim: rgba(244, 247, 251, 0.68);
  --muted: rgba(244, 247, 251, 0.48);
  --line: rgba(244, 247, 251, 0.1);
  --accent: #5ce1e6;
  --accent-2: #7aa7ff;
  --accent-dim: rgba(92, 225, 230, 0.16);
  --accent-glow: rgba(92, 225, 230, 0.45);
  --danger: #ffb4a2;
  --radius: 22px;
  --max: 1240px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Sora", "Manrope", sans-serif;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(92, 225, 230, 0.08), transparent 55%),
    radial-gradient(800px 420px at 0% 30%, rgba(122, 167, 255, 0.07), transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #041016;
  padding: .75rem 1rem;
  z-index: 1000;
  font-weight: 800;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, rgba(92, 225, 230, 0.14), transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .35s ease;
  mix-blend-mode: screen;
}
body.has-pointer .cursor-glow.is-on { opacity: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px) saturate(1.15);
  background: rgba(5, 7, 11, 0.55);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 7, 11, 0.82);
  border-bottom-color: var(--line);
}
.site-header--slim .header-inner { min-height: var(--header-h); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.brand img {
  width: 42px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}
.brand span { font-size: .8rem; line-height: 1.15; max-width: 10.5rem; opacity: .92; }
.brand strong { display: block; font-size: .95rem; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  padding: .45rem .55rem;
  cursor: pointer;
  order: 3;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem .7rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color .2s var(--ease);
  opacity: .88;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); opacity: 1; }
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a {
  display: inline-flex;
  align-items: center;
  padding: .55rem 0;
}
.site-nav .submenu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 260px;
  padding: .35rem;
  margin: 0;
  background: rgba(12, 16, 24, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 80;
  backdrop-filter: blur(16px);
}
/* Bridge: keep hover alive while moving into submenu */
.site-nav .submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 20px;
}
.site-nav .has-sub:hover .submenu,
.site-nav .has-sub:focus-within .submenu { display: grid; gap: .1rem; }
.site-nav .submenu a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 10px;
  font-size: .88rem;
}
.site-nav .submenu a:hover { background: var(--accent-dim); color: #fff; }
.nav-mobile-only { display: none; }

.header-cta {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.phone-link {
  font-weight: 750;
  text-decoration: none;
  color: var(--ink-dim);
  white-space: nowrap;
  letter-spacing: -0.02em;
  font-size: .9rem;
}
.phone-link:hover { color: var(--accent); }
.btn-header {
  padding: .62rem 1.05rem;
  font-size: .88rem;
}

/* Buttons */
.btn {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .88rem 1.35rem;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .2s ease, border-color .2s ease, color .2s ease;
  font-family: inherit;
  font-size: .95rem;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 60px at var(--mx) var(--my), rgba(255,255,255,.28), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8af0f3 45%, var(--accent-2));
  color: #041016;
  box-shadow: 0 0 0 1px rgba(92, 225, 230, 0.25), 0 12px 40px rgba(92, 225, 230, 0.28);
}
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus-visible {
  color: #041016;
}
.btn-primary:hover { color: #041016; box-shadow: 0 0 0 1px rgba(92, 225, 230, 0.4), 0 16px 48px rgba(92, 225, 230, 0.38); }
.btn-secondary {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.22);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-ghost,
.btn-ghost-light {
  background: rgba(255,255,255,.92);
  color: #041016;
  border-color: transparent;
}
.btn-ghost:hover,
.btn-ghost-light:hover { background: #fff; color: #041016; }
.btn-xl { padding: 1.05rem 1.55rem; font-size: 1.05rem; }
.btn-magnetic { will-change: transform; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 1rem) 0 3rem;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.08);
  animation: hero-drift 18s var(--ease) infinite alternate;
}
.hero-mesh {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(92, 225, 230, 0.22), transparent 70%),
    radial-gradient(35% 40% at 78% 55%, rgba(122, 167, 255, 0.18), transparent 70%),
    radial-gradient(30% 30% at 55% 15%, rgba(255,255,255,0.08), transparent 70%);
  filter: blur(8px);
  animation: mesh-shift 12s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(5, 7, 11, 0.88) 0%, rgba(5, 7, 11, 0.55) 46%, rgba(5, 7, 11, 0.25) 100%),
    linear-gradient(0deg, rgba(5, 7, 11, 0.85) 0%, transparent 50%);
}
.hero-gridlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  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: 72px 72px;
  mask-image: radial-gradient(ellipse at 30% 60%, #000 20%, transparent 70%);
  pointer-events: none;
  opacity: .55;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding-bottom: 1rem;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.brand-mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
  color: #fff;
  text-wrap: balance;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise-in .9s var(--ease) forwards;
}
.hero-title .line:nth-child(2) span { animation-delay: .12s; }
.hero-title .line:nth-child(3) span { animation-delay: .22s; }
.hero-title .accent-word {
  background: linear-gradient(120deg, #fff 20%, var(--accent) 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--ink-dim);
  opacity: 0;
  animation: fade-up .8s var(--ease) .35s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up .8s var(--ease) .5s forwards;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
  color: var(--muted);
  font-size: .95rem;
  opacity: 0;
  animation: fade-up .8s var(--ease) .65s forwards;
}
.hero-orb {
  position: absolute;
  right: 8%;
  top: 22%;
  width: min(38vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(92, 225, 230, 0.25);
  box-shadow:
    inset 0 0 60px rgba(92, 225, 230, 0.12),
    0 0 80px rgba(92, 225, 230, 0.12);
  z-index: 1;
  pointer-events: none;
  animation: orb-spin 28s linear infinite;
}
.hero-orb::before,
.hero-orb::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.15);
}
.hero-orb::after { inset: 26%; border-style: solid; border-color: rgba(122, 167, 255, 0.25); }

@keyframes hero-drift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, 1%, 0); }
}
@keyframes mesh-shift {
  from { transform: translate3d(-2%, -1%, 0) rotate(0deg); }
  to { transform: translate3d(2%, 2%, 0) rotate(4deg); }
}
@keyframes rise-in {
  to { transform: translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-dim); }
  50% { box-shadow: 0 0 0 10px rgba(92, 225, 230, 0.05); }
}
@keyframes orb-spin {
  to { transform: rotate(360deg); }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .4s; }
.reveal-stagger.is-in > * {
  opacity: 1;
  transform: none;
}

/* Sections / scenes */
.section,
.scene {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.scene-intro { margin-bottom: 2rem; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.display-xl {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 1rem;
  color: #fff;
  max-width: 16ch;
}
.display-lg {
  font-family: var(--display);
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 .9rem;
  color: #fff;
}
.lede {
  margin: 0;
  color: var(--ink-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 40rem;
}

/* ===== DIAG MAP (awarie) ===== */
.scene-diag {
  background:
    radial-gradient(700px 380px at 50% 40%, rgba(92, 225, 230, 0.07), transparent 70%);
}
.diag-map {
  position: relative;
  min-height: 640px;
  margin-top: 1rem;
  display: grid;
  place-items: center;
}
.diag-core {
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  z-index: 1;
}
.diag-core-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 225, 230, 0.28), transparent 68%);
  filter: blur(18px);
  animation: mesh-shift 10s ease-in-out infinite alternate;
}
.diag-device {
  position: relative;
  width: 58%;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), filter .4s ease;
}
.diag-map[data-active] .diag-device {
  filter: drop-shadow(0 0 28px rgba(92, 225, 230, 0.35));
}
.diag-device-screen {
  aspect-ratio: 16/10;
  border-radius: 10px 10px 4px 4px;
  border: 1px solid rgba(92, 225, 230, 0.35);
  background:
    linear-gradient(160deg, rgba(12, 18, 28, 0.95), rgba(5, 8, 14, 0.98));
  box-shadow:
    inset 0 0 40px rgba(92, 225, 230, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.diag-device-screen strong {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--accent);
  z-index: 2;
}
.diag-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  top: 0;
  animation: diag-scan 2.8s linear infinite;
  opacity: .7;
}
.diag-hud-line {
  position: absolute;
  left: 12%;
  width: 28%;
  height: 1px;
  background: rgba(255,255,255,.2);
  top: 28%;
}
.diag-hud-line--2 { left: auto; right: 12%; top: 68%; width: 34%; }
.diag-device-base {
  height: 10px;
  margin: 0 auto;
  width: 70%;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #1a2230, #0d121a);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 0;
}
.diag-rings {
  position: absolute;
  inset: 0;
  color: rgba(92, 225, 230, 0.28);
  animation: orb-spin 40s linear infinite;
  pointer-events: none;
}
.diag-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.diag-node {
  pointer-events: auto;
  position: absolute;
  width: min(240px, 34vw);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  background: transparent;
  transition: border-color .3s ease, background .3s ease, transform .35s var(--ease), box-shadow .3s ease;
  border-radius: 4px;
}
.diag-node::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  opacity: .55;
  transition: opacity .3s ease, box-shadow .3s ease;
}
.diag-node:nth-child(1) { top: 4%; left: 2%; }
.diag-node:nth-child(1)::before { right: -1.2rem; top: 1.2rem; }
.diag-node:nth-child(2) { top: 4%; right: 2%; text-align: right; }
.diag-node:nth-child(2)::before { left: -1.2rem; top: 1.2rem; }
.diag-node:nth-child(3) { top: 38%; left: 0; }
.diag-node:nth-child(3)::before { right: -1.2rem; top: 1.2rem; }
.diag-node:nth-child(4) { top: 38%; right: 0; text-align: right; }
.diag-node:nth-child(4)::before { left: -1.2rem; top: 1.2rem; }
.diag-node:nth-child(5) { bottom: 2%; left: 8%; }
.diag-node:nth-child(5)::before { right: -1.2rem; top: 1.2rem; }
.diag-node:nth-child(6) { bottom: 2%; right: 8%; text-align: right; }
.diag-node:nth-child(6)::before { left: -1.2rem; top: 1.2rem; }
.diag-node-index {
  display: block;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: .35rem;
}
.diag-node-title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: .35rem;
}
.diag-node-desc {
  display: block;
  font-size: .9rem;
  color: var(--ink-dim);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s var(--ease), opacity .3s ease, margin .3s ease;
}
.diag-node.is-active,
.diag-node:hover,
.diag-node:focus-visible {
  background: rgba(92, 225, 230, 0.06);
  border-color: rgba(92, 225, 230, 0.28);
  box-shadow: 0 0 40px rgba(92, 225, 230, 0.08);
  transform: translateY(-2px);
}
.diag-node.is-active::before,
.diag-node:hover::before,
.diag-node:focus-visible::before {
  opacity: 1;
  box-shadow: 0 0 0 6px rgba(92, 225, 230, 0.18), 0 0 20px var(--accent-glow);
}
.diag-node.is-active .diag-node-desc,
.diag-node:hover .diag-node-desc,
.diag-node:focus-visible .diag-node-desc {
  max-height: 8rem;
  opacity: 1;
  margin-top: .35rem;
}
@keyframes diag-scan {
  from { top: 8%; }
  to { top: 88%; }
}

/* ===== SCROLL PROCESS ===== */
.scene-process {
  padding: 0;
  --process-huds: "INCOMING CALL · 24H", "HARDWARE / OS SCAN", "REPAIR IN PROGRESS", "HANDOFF · WARSZAWA";
}
.process-track {
  height: 320vh;
  position: relative;
}
.process-sticky-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 1rem) 0 2rem;
  background:
    radial-gradient(800px 400px at 80% 30%, rgba(122, 167, 255, 0.08), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.process-stage-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.process-num-xl {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: .85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(92, 225, 230, 0.55);
}
.process-progress {
  height: 2px;
  background: rgba(255,255,255,.08);
  margin: 0 0 1.2rem;
  max-width: 16rem;
  overflow: hidden;
}
.process-progress span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--accent-glow);
  transition: width .35s var(--ease);
}
.process-nav {
  list-style: none;
  margin: 1.4rem 0 1.2rem;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.process-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 0.02em;
  text-align: left;
  padding: .45rem 0;
  cursor: pointer;
  border-left: 2px solid transparent;
  padding-left: .75rem;
  transition: color .25s ease, border-color .25s ease;
  width: 100%;
}
.process-nav button.is-active,
.process-nav button:hover,
.process-nav button:focus-visible {
  color: #fff;
  border-left-color: var(--accent);
}
.process-panels { min-height: 7.5rem; }
.process-panel h3 {
  margin: 0 0 .45rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.process-panel p { margin: 0; color: var(--ink-dim); max-width: 34rem; }
.process-cta { margin-top: 1.5rem; }
.process-visual-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 420px;
  isolation: isolate;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s var(--ease), filter .4s ease;
}
.process-visual-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.process-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(5,7,11,.15), rgba(5,7,11,.55)),
    linear-gradient(0deg, rgba(92, 225, 230, 0.08), transparent 40%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.process-hud {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
}
.process-hud-line {
  display: block;
  height: 1px;
  width: 42%;
  margin-top: .65rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: mesh-shift 4s ease-in-out infinite alternate;
}
.process-hud-line--delay { width: 64%; opacity: .5; animation-delay: .6s; }

/* ===== DIAG CONSOLE ===== */
.scene-console {
  background:
    radial-gradient(600px 300px at 90% 20%, rgba(92, 225, 230, 0.06), transparent 60%);
}
.console-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.console-steps {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.console-steps li {
  padding-left: 1rem;
  border-left: 2px solid rgba(92, 225, 230, 0.35);
  color: var(--ink-dim);
}
.console-steps strong { color: #fff; display: block; margin-bottom: .2rem; font-family: var(--display); }
.diag-console {
  border: 1px solid rgba(92, 225, 230, 0.22);
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.95), rgba(5, 8, 14, 0.98));
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 30px 80px rgba(0,0,0,.4);
  font-variant-numeric: tabular-nums;
}
.diag-console-top {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.diag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.diag-dot:nth-child(1) { background: #ff7b72; }
.diag-dot:nth-child(2) { background: #d4a72c; }
.diag-dot:nth-child(3) { background: #3fb950; }
.diag-console-title {
  margin-left: .5rem;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--muted);
}
.diag-console-body { padding: 1.15rem 1.2rem 1.3rem; display: grid; gap: .85rem; }
.diag-meter {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: .75rem;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  font-family: var(--display);
  letter-spacing: .04em;
}
.diag-meter b { color: var(--accent); font-size: .85rem; min-width: 3rem; text-align: right; }
.diag-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.diag-bar i {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px var(--accent-glow);
  transform-origin: left;
  animation: bar-grow 1.4s var(--ease) both;
}
.diag-bar--ok i { background: linear-gradient(90deg, #3fb950, var(--accent)); }
.diag-bar--warn i { background: linear-gradient(90deg, #d4a72c, var(--accent)); }
.diag-terminal {
  margin: .4rem 0 0;
  padding: 1rem;
  border-radius: 4px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(244,247,251,.78);
  font-size: .82rem;
  line-height: 1.7;
  overflow: hidden;
}
.diag-terminal .t-ok { color: var(--accent); }
.diag-terminal .t-run { color: var(--accent-2); animation: pulse-dot 1.6s ease-in-out infinite; }
.diag-terminal .t-muted { color: var(--muted); }
@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ===== REMOTE SPLIT ===== */
.scene-remote { padding: 0; }
.remote-split {
  display: grid;
  grid-template-columns: 1.15fr auto 0.95fr;
  min-height: 78vh;
  align-items: stretch;
}
.remote-pane {
  position: relative;
  display: grid;
  align-content: center;
}
.remote-pane--user {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 4vw, 4rem);
  background:
    radial-gradient(500px 280px at 20% 30%, rgba(92, 225, 230, 0.08), transparent 70%),
    var(--bg);
}
.remote-pane-inner { max-width: 34rem; position: relative; z-index: 2; }
.remote-pane-inner p { color: var(--ink-dim); }
.remote-photo {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(52%, 380px);
  height: 46%;
  opacity: .35;
  mask-image: linear-gradient(135deg, transparent 10%, #000 55%);
  pointer-events: none;
}
.remote-photo img { width: 100%; height: 100%; object-fit: cover; }
.remote-link {
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  position: relative;
  justify-self: center;
}
.remote-link span {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  animation: remote-pulse 2.8s var(--ease) infinite;
}
.remote-pane--tech {
  background:
    linear-gradient(160deg, rgba(12, 18, 28, 0.95), rgba(5, 8, 14, 1)),
    var(--bg-elev);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  place-items: center;
}
.remote-ui {
  width: min(100%, 380px);
  border: 1px solid rgba(92, 225, 230, 0.22);
  border-radius: 6px;
  padding: 1.25rem;
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 0 40px rgba(92, 225, 230, 0.05);
}
.remote-ui-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.remote-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.remote-ui-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}
.remote-ui-card {
  padding: .85rem .8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--muted);
  font-family: var(--display);
  display: grid;
  gap: .35rem;
}
.remote-ui-card span {
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.remote-ui-card .accent { color: var(--accent); }
.remote-wave {
  margin-top: 1.2rem;
  height: 48px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(92,225,230,.15) 8px, rgba(92,225,230,.15) 9px),
    linear-gradient(180deg, transparent 40%, rgba(92,225,230,.25) 50%, transparent 60%);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  animation: mesh-shift 3s ease-in-out infinite alternate;
}
@keyframes remote-pulse {
  0% { top: 15%; opacity: .3; }
  50% { opacity: 1; }
  100% { top: 78%; opacity: .3; }
}

/* ===== FIRMS ===== */
.scene-firms {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  isolation: isolate;
}
.firms-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(92,225,230,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92,225,230,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  animation: mesh-shift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.firms-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  position: relative;
  z-index: 1;
}
.firms-mega .display-xl { max-width: 10ch; }
.firms-metrics { display: grid; gap: 0; }
.firm-metric {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.firm-metric:last-child { border-bottom: 1px solid var(--line); }
.firm-metric-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--display);
  margin-bottom: .45rem;
}
.firm-metric strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  margin-bottom: .4rem;
}
.firm-metric p { margin: 0; color: var(--ink-dim); }
.firm-metric--accent strong a {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== EDITORIAL ===== */
.scene-editorial { padding-bottom: clamp(3rem, 6vw, 5rem); }
.editorial-head { margin-bottom: 2.5rem; }
.editorial-stack {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.editorial-frame {
  position: relative;
  min-height: clamp(280px, 42vw, 520px);
  overflow: hidden;
  border-radius: 2px;
}
.editorial-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.editorial-frame:hover img { transform: scale(1.04); }
.editorial-frame--offset {
  width: min(92%, 100%);
  margin-left: auto;
}
.editorial-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.4rem;
  background: linear-gradient(0deg, rgba(5,7,11,.92), transparent);
}
.editorial-meta span {
  display: block;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
.editorial-meta p { margin: 0; color: var(--ink-dim); max-width: 36rem; }
.editorial-meta a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* ===== FAQ calm ===== */
.scene-faq {
  background: rgba(255,255,255,.015);
}
.faq-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}
.faq details {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 0;
  overflow: hidden;
}
.faq details[open] { border-color: rgba(92, 225, 230, 0.35); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 0;
  font-weight: 750;
  font-family: var(--display);
  position: relative;
  letter-spacing: -0.01em;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.25rem;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer {
  padding: 0 0 1.15rem;
  color: var(--ink-dim);
}

/* ===== CONTACT FINALE ===== */
.scene-contact {
  background:
    radial-gradient(700px 360px at 70% 0%, rgba(92, 225, 230, 0.1), transparent 65%);
}
.contact-finale {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-dl { margin: 1.5rem 0; }
.contact-dl dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-top: 1rem;
  font-weight: 700;
}
.contact-dl dd { margin: .3rem 0 0; font-weight: 750; font-size: 1.08rem; }
.contact-dl a { text-decoration: none; color: inherit; }
.contact-dl a:hover { color: var(--accent); }
.contact-districts { font-size: .9rem; max-width: 40rem; }
.contact-finale-cta {
  position: sticky;
  top: calc(var(--header-h) + 1.2rem);
  padding: 1.8rem 1.5rem;
  border: 1px solid rgba(92, 225, 230, 0.22);
  background:
    radial-gradient(400px 200px at 30% 0%, rgba(92, 225, 230, 0.16), transparent 70%),
    rgba(8, 12, 20, 0.85);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  backdrop-filter: blur(12px);
}
.contact-cta-kicker {
  margin: 0;
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.note {
  background: rgba(255, 180, 162, 0.1);
  border: 1px solid rgba(255, 180, 162, 0.35);
  color: var(--danger);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.contact-card,
.form-card,
.contact-cta-panel {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-top: 1rem;
  font-weight: 700;
}
.contact-card dd { margin: .3rem 0 0; font-weight: 750; font-size: 1.05rem; }
.contact-card a:not(.btn) { text-decoration: none; color: inherit; }
.contact-card a:not(.btn):hover { color: var(--accent); }
.contact-card a.btn.btn-primary,
.contact-card a.btn.btn-primary:hover,
.contact-card a.btn.btn-primary:focus-visible {
  color: #041016 !important;
}
.contact-card a.btn.btn-secondary,
.contact-card a.btn.btn-secondary:hover {
  color: #fff;
}
.contact-cta-panel {
  background:
    radial-gradient(400px 200px at 30% 0%, rgba(92, 225, 230, 0.16), transparent 70%),
    rgba(12, 16, 24, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .85rem;
}
.contact-spotlight {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; gap: .4rem; }
label { font-weight: 700; font-size: .92rem; color: var(--ink-dim); }
input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 1rem 1.05rem;
  font: inherit;
  background: rgba(0,0,0,.28);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:hover,
textarea:hover,
select:hover { border-color: rgba(255,255,255,.22); }
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(92, 225, 230, 0.55);
  box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.14), 0 0 24px rgba(92, 225, 230, 0.12);
  background: rgba(0,0,0,.4);
}
textarea { min-height: 160px; resize: vertical; }
.form-hint { color: var(--muted); font-size: .85rem; }
.form-status {
  display: none;
  margin-top: .75rem;
  padding: .75rem 1rem;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 650;
}
.form-status.is-visible { display: block; }
.form-status.is-error { background: rgba(255,180,162,.12); color: var(--danger); }

/* Contact page premium */
.page-contact-scene {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.contact-page-solo {
  max-width: 44rem;
}
.contact-card--wide {
  max-width: none;
}
.contact-page-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.form-card--premium {
  border-color: rgba(92, 225, 230, 0.2);
  background:
    radial-gradient(420px 220px at 10% 0%, rgba(92, 225, 230, 0.1), transparent 65%),
    rgba(8, 12, 20, 0.9);
}
.form-card--premium h2 {
  margin: 0 0 .35rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

/* Inner pages */
.breadcrumbs {
  padding: 1rem 0 0;
  font-size: .9rem;
  color: var(--muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: .35rem;
  color: rgba(255,255,255,.25);
}
.breadcrumbs a { text-decoration: none; color: var(--ink-dim); }
.page-hero { padding: 1.8rem 0 2rem; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  letter-spacing: -0.045em;
  margin: 0 0 .85rem;
  line-height: 1.02;
}
.page-hero .lead {
  margin: 0;
  max-width: 44rem;
  color: var(--ink-dim);
  font-size: 1.1rem;
}
.prose { max-width: 48rem; }
.prose h2 {
  font-family: var(--display);
  margin-top: 2rem;
  margin-bottom: .75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  font-size: 1.15rem;
  font-family: var(--display);
}
.prose p,
.prose ul { color: var(--ink-dim); }
.prose ul { padding-left: 1.2rem; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  background: rgba(255,255,255,.04);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0 0 .75rem;
}
.section-head p { margin: 0; color: var(--ink-dim); }
.grid-3, .grid-2, .case-grid, .split, .steps, .feature, .media-slot, .step {
  /* legacy helpers for inner pages */
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.feature {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
}
.feature h3 { margin: 0 0 .45rem; font-family: var(--display); }
.feature p { margin: 0; color: var(--ink-dim); }
.media-slot {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 240px;
}
.media-slot img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
}
.case-visual {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
}
.case-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.case-visual:hover img { transform: scale(1.04); }
.case-visual-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.3rem 1.25rem;
  background: linear-gradient(0deg, rgba(5,7,11,.9), transparent);
}
.case-visual-caption h3 {
  margin: 0 0 .25rem;
  font-family: var(--display);
  font-size: 1.2rem;
}
.case-visual-caption p { margin: 0; color: var(--ink-dim); }
.case-visual-caption a { color: var(--accent); text-decoration: none; font-weight: 700; }

.case-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem;
  min-height: 160px;
  background: rgba(255,255,255,.02);
}

/* Sticky CTA */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: .65rem .85rem calc(.65rem + env(safe-area-inset-bottom));
  background: rgba(5, 7, 11, 0.92);
  gap: .55rem;
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; }
.sticky-cta .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.22);
}

@media (max-width: 1100px) {
  .diag-map { min-height: 0; display: block; }
  .diag-core {
    width: min(220px, 55vw);
    margin: 0 auto 1.5rem;
  }
  .diag-nodes {
    position: static;
    display: grid;
    gap: .55rem;
  }
  .diag-node {
    position: static;
    width: auto;
    text-align: left !important;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.02);
  }
  .diag-node::before { display: none; }
  .diag-node-desc {
    max-height: none;
    opacity: .85;
    margin-top: .35rem;
  }
  .diag-node.is-active {
    border-color: rgba(92, 225, 230, 0.4);
    background: rgba(92, 225, 230, 0.07);
  }
}

@media (max-width: 980px) {
  .process-stage-grid,
  .console-layout,
  .remote-split,
  .firms-layout,
  .faq-shell,
  .contact-finale,
  .contact-spotlight,
  .contact-page-grid,
  .footer-grid,
  .split,
  .grid-3,
  .grid-2,
  .case-grid { grid-template-columns: 1fr; }
  .process-track { height: auto; }
  .process-sticky-stage {
    position: relative;
    min-height: 0;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
  }
  .process-visual-frame { transform: none; min-height: 280px; }
  .process-visual-frame img { min-height: 280px; }
  .remote-split { min-height: 0; }
  .remote-link {
    width: auto;
    height: 2px;
    margin: 0 1.5rem;
  }
  .remote-link span {
    left: 15%;
    top: 50%;
    margin-left: 0;
    margin-top: -6px;
    animation-name: remote-pulse-x;
  }
  .remote-photo { display: none; }
  .remote-pane--user,
  .remote-pane--tech { padding: clamp(2.2rem, 6vw, 3.5rem) 1.2rem; }
  .hero-orb { opacity: .35; width: 55vw; right: -8%; top: 12%; }
  .hero-title { max-width: 12ch; }
  .editorial-frame--offset { width: 100%; margin-left: 0; }
  .contact-finale-cta { position: static; }
}
@keyframes remote-pulse-x {
  0% { left: 12%; opacity: .3; }
  50% { opacity: 1; }
  100% { left: 82%; opacity: .3; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .header-cta-desktop { display: none; }
  .nav-mobile-only { display: list-item; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(5, 7, 11, 0.98);
    border-bottom: 0;
    padding: 1.25rem 1.1rem 2rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s var(--ease), opacity .32s var(--ease);
    overflow-y: auto;
    z-index: 55;
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .site-nav a { font-size: 1.15rem; padding: .55rem 0; color: #fff; }
  .site-nav .submenu {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: .15rem 0 .35rem .2rem;
  }
  .site-nav .submenu a { font-size: 1rem; color: var(--ink-dim); }
  .sticky-cta { display: flex; }
  body { padding-bottom: 4.5rem; }
  .brand span { max-width: 8.5rem; font-size: .74rem; }
  .brand strong { font-size: .86rem; }
  .btn-header { padding: .55rem .9rem; font-size: .82rem; }
  .hero { align-items: center; min-height: 92vh; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5,7,11,.45) 0%, rgba(5,7,11,.72) 40%, rgba(5,7,11,.92) 100%);
  }
  .hero-actions .btn-ghost { display: none; }
  .process-num-xl { font-size: clamp(3.6rem, 18vw, 5.5rem); }
  .diag-console { margin-top: 1.5rem; }
  .diag-meter { grid-template-columns: 1fr; gap: .35rem; }
}

@media (max-width: 430px) {
  .container { width: min(100% - 1.35rem, var(--max)); }
  .hero-title { font-size: clamp(2.45rem, 12vw, 3.4rem); }
  .display-xl { font-size: clamp(2.1rem, 10vw, 3rem); }
  .sticky-cta .btn { font-size: .88rem; padding: .8rem .7rem; }
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  background: #03050a;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 3.4rem 0 2.2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.75rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 .85rem;
  font-family: var(--display);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .48rem; }
.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}

/* Cookie notice */
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  max-width: 720px;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 24, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.cookie-bar[hidden] { display: none !important; }
.cookie-bar p {
  margin: 0;
  color: var(--ink-dim);
  font-size: .92rem;
  flex: 1;
  min-width: 12rem;
}
@media (max-width: 860px) {
  .cookie-bar { bottom: calc(4.8rem + env(safe-area-inset-bottom)); }
}

.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-stagger > *,
  .hero .lead,
  .hero-actions,
  .hero-meta,
  .hero-title .line span {
    opacity: 1 !important;
    transform: none !important;
  }
  .cursor-glow { display: none !important; }
  .process-track { height: auto; }
  .process-sticky-stage { position: relative; min-height: 0; }
  .process-visual-frame { transform: none; }
}
