/* ============================================================
   Beam Networks — beamnetworks.dev
   Dark cinematic build: deep navy, mint beam accent, real hardware.
   ============================================================ */

:root {
  --bg-0: #070b14;
  --bg-1: #0b1120;
  --bg-2: #101830;
  --bg-3: #16203c;
  --line: rgba(148, 178, 255, 0.11);
  --line-strong: rgba(148, 178, 255, 0.22);
  --text: #e9effb;
  --muted: #97a5c0;
  --mint: #3ddc97;
  --mint-bright: #62efb3;
  --mint-dim: rgba(61, 220, 151, 0.14);
  --blue: #5b8cff;
  --link: #a3bcff;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1160px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:visited { color: var(--link); }
a:hover { color: #c8d6ff; }
a:focus-visible {
  outline: 2px solid rgba(61, 220, 151, 0.7);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(61, 220, 151, 0.28); color: #fff; }

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

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint));
}

.section-head { margin-bottom: 2.4rem; }
.section-head h2 {
  margin: 0.7rem 0 0.6rem;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
  font-size: 1.02rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  max-width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--mint) 0%, #2bc47f 100%);
  color: #052015;
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.35), 0 8px 28px -8px rgba(61, 220, 151, 0.55);
}
.btn-primary:hover {
  color: #052015;
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.55), 0 12px 36px -8px rgba(61, 220, 151, 0.7);
}
.btn-ghost {
  background: rgba(148, 178, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(61, 220, 151, 0.6); color: var(--mint-bright); }

.mono { font-family: var(--font-mono); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7, 11, 20, 0.92); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 18px rgba(61, 220, 151, 0.08);
}
.brand-mark img { width: 26px; height: 26px; }
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.93rem;
}
.nav-links a {
  color: var(--muted);
  padding: 0.42rem 0.8rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(148, 178, 255, 0.08); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--mint-bright); }
.nav-cta {
  margin-left: 0.4rem;
  padding: 0.45rem 1.05rem !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint) 0%, #2bc47f 100%);
  color: #052015 !important;
  font-weight: 600;
  box-shadow: 0 4px 18px -4px rgba(61, 220, 151, 0.5);
}
.nav-cta:hover { background: linear-gradient(135deg, var(--mint-bright) 0%, #34d18a 100%); }
.nav-cta:active { transform: scale(0.96); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vh, 6rem) 0 3.4rem;
  overflow: hidden;
}
.hero::before {
  /* faint engineering grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  /* mint aurora */
  content: "";
  position: absolute;
  top: -280px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(61, 220, 151, 0.13) 0%, transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  margin: 1.1rem 0 1.2rem;
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  background: linear-gradient(92deg, var(--mint) 10%, #8fb0ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin: 0 0 2rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.13rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hero-tag {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: #ccd8ee;
}

/* hero visual */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px dashed rgba(61, 220, 151, 0.28);
  border-radius: calc(var(--radius) + 10px);
  transform: rotate(-1.4deg);
  pointer-events: none;
}
.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 30px 80px -24px rgba(0, 0, 0, 0.85),
    0 0 60px -18px rgba(61, 220, 151, 0.28);
}
.hero-photo img { width: 100%; aspect-ratio: 1.93 / 1; object-fit: cover; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(7, 11, 20, 0) 45%, rgba(7, 11, 20, 0.55) 100%);
}
.hero-badge {
  position: absolute;
  top: -22px;
  left: -22px;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.8), inset 0 0 26px rgba(61, 220, 151, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge img { width: 52px; height: 52px; }
.hero-tag {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: #ccd8ee;
}

/* beam sweep line under hero */
.beam-line {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(61, 220, 151, 0.55) 30%, rgba(91, 140, 255, 0.55) 70%, transparent);
  position: relative;
  overflow: visible;
}
.beam-line::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 140px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--mint-bright), transparent);
  filter: blur(3px);
  animation: sweep 7s linear infinite;
}
@keyframes sweep {
  0% { transform: translateX(-160px); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(1160px); opacity: 0; }
}

/* ---------- uptime strip ---------- */

.uptime {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 130% at 50% 0%, rgba(61, 220, 151, 0.07), transparent),
    var(--bg-1);
}
.uptime-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.45rem 0 1.3rem;
  text-align: center;
}
.uptime-inner .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.uptime-line {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.7rem;
}
.uptime-inner .big {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--mint-bright);
  text-shadow: 0 0 26px rgba(61, 220, 151, 0.45);
  letter-spacing: -0.02em;
}
.uptime-inner .sub { color: var(--muted); font-size: 0.98rem; }
.uptime-inner a {
  color: #b9ccff;
  font-size: 0.92rem;
  white-space: nowrap;
  margin-top: 0.45rem;
}
.uptime-inner a:hover { color: var(--mint-bright); }

/* ---------- sections ---------- */

.section { padding: clamp(3.5rem, 9vh, 5.5rem) 0; }

/* bento services */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  padding: 1.7rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 220, 151, 0.4);
  box-shadow: 0 22px 60px -20px rgba(0, 0, 0, 0.8), 0 0 40px -14px rgba(61, 220, 151, 0.22);
}
.tile h3 { margin: 0.35rem 0 0; font-size: 1.28rem; font-weight: 600; }
.tile p { margin: 0; color: var(--muted); font-size: 0.96rem; flex-grow: 1; }
.tile .tile-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.tile .tile-link::after { content: "→"; transition: transform 0.18s ease; }
.tile:hover .tile-link::after { transform: translateX(4px); }
.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint-dim);
  border: 1px solid rgba(61, 220, 151, 0.25);
  color: var(--mint-bright);
}
.tile-icon svg { width: 22px; height: 22px; }
.tile-wide { grid-column: span 7; }
.tile-narrow { grid-column: span 5; }
.tile-full { grid-column: span 12; }
.tile-photo { padding: 0; min-height: 300px; }
.tile-photo .photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.tile-photo .photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(80deg, rgba(7, 11, 20, 0.97) 0%, rgba(7, 11, 20, 0.88) 45%, rgba(7, 11, 20, 0.5) 100%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.15) 40%, rgba(7, 11, 20, 0.62) 100%);
}
.tile-photo .tile-body {
  position: relative;
  z-index: 1;
  padding: 1.9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.tile-photo .tile-body p { max-width: 34ch; }
.tile-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(151, 165, 192, 0.95);
}

/* built-in-public */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #0a0e19;
  box-shadow: 0 26px 70px -22px rgba(0, 0, 0, 0.9), 0 0 50px -20px rgba(91, 140, 255, 0.18);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.83rem;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 24, 48, 0.6);
}
.terminal-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: auto; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; }
.terminal-body { padding: 1.15rem 1.25rem 1.35rem; line-height: 1.95; }
.terminal-body .p { color: var(--mint-bright); }
.terminal-body .ok { color: var(--muted); }
.terminal-body .ok b { color: var(--mint); font-weight: 500; }
.terminal-body .cmt { color: rgba(151, 165, 192, 0.55); }
.terminal-caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  vertical-align: -2px;
  background: var(--mint);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.doc-links { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.doc-links li { border-bottom: 1px solid var(--line); }
.doc-links li:first-child { border-top: 1px solid var(--line); }
.doc-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.3rem;
  color: var(--text);
  font-size: 0.97rem;
  transition: padding-left 0.18s ease, color 0.18s ease;
}
.doc-links a:hover { padding-left: 0.7rem; color: var(--mint-bright); text-decoration: none; }
.doc-links .mono { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; }

/* CTA band */
.cta-band {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(61, 220, 151, 0.3);
  background:
    radial-gradient(ellipse 70% 160% at 15% 0%, rgba(61, 220, 151, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 140% at 90% 100%, rgba(91, 140, 255, 0.14), transparent 60%),
    var(--bg-2);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.9);
}
.cta-band h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; }
.cta-band p { margin: 0; color: var(--muted); max-width: 46ch; }
/* .content's heading rules must not reach into a CTA band nested there */
.content .cta-band h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* ---------- generic page hero + content ---------- */

.page-hero {
  position: relative;
  padding: clamp(3rem, 8vh, 5rem) 0 2.6rem;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 72%);
  pointer-events: none;
}
.page-hero h1 {
  position: relative;
  margin: 0.8rem 0 0.7rem;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
}
.page-hero .lede {
  position: relative;
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.content { padding: 0.6rem 0 3rem; }
.content h2 { font-size: 1.45rem; margin: 2.2rem 0 0.8rem; }
.content p { color: var(--muted); max-width: 68ch; }
.content p strong, .content li strong { color: var(--text); }
.content ul { padding-left: 1.2rem; color: var(--muted); }
.content li { margin: 0.5rem 0; }
.content .btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  padding: 1.6rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; font-size: 0.95rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.two-col .card ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.two-col .card li { font-size: 0.93rem; }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.1rem;
  margin-top: 1.8rem;
  align-items: start;
}
.social-grid { display: grid; gap: 0.7rem; }
.social-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.social-row:hover { border-color: rgba(61, 220, 151, 0.4); transform: translateY(-2px); }
.social-row .social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--mint-dim);
  border: 1px solid rgba(61, 220, 151, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-bright);
  flex-shrink: 0;
}
.social-row .social-icon svg { width: 19px; height: 19px; }
.social-row b { display: block; font-family: var(--font-display); font-size: 0.98rem; }
.social-row span { color: var(--muted); font-size: 0.85rem; }

/* editorial service rows (services page) */
.service-list { border-top: 1px solid var(--line); margin-top: 1.2rem; }
.service-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem 3.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.service-row .row-rail { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 0.4rem; }
.service-row .row-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--mint);
  letter-spacing: 0.1em;
}
.service-row .row-cat {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.service-row h2 { margin: 0 0 0.5rem; font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.15; }
.service-row .row-desc { margin: 0 0 1.15rem; color: var(--muted); max-width: 58ch; }
.service-items {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 3rem;
}
.service-items li {
  position: relative;
  break-inside: avoid;
  padding: 0.42rem 0 0.42rem 1.5rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.service-items li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgba(61, 220, 151, 0.65);
}
.service-items li strong { color: var(--text); }

/* ---------- footer ---------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 90% at 85% 120%, rgba(61, 220, 151, 0.06), transparent),
    var(--bg-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem 1.6rem;
  padding: 3rem 0 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.footer-brand img { width: 30px; height: 30px; }
.footer-meta { color: var(--muted); font-size: 0.9rem; max-width: 30ch; margin: 0.8rem 0 1.1rem; }
.socials { display: flex; gap: 0.55rem; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.socials a:hover { color: var(--mint-bright); border-color: rgba(61, 220, 151, 0.45); }
.socials svg { width: 16px; height: 16px; }
.footer-col h3 {
  margin: 0.25rem 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.42rem 0; }
.footer-col a { color: var(--muted); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--mint-bright); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}
.footer-bottom p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.footer-bottom a { color: var(--muted); font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--mint-bright); }

/* ---------- reveal animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .terminal-caret, .beam-line::after { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .hero-badge { width: 62px; height: 62px; top: -16px; left: -10px; }
  .hero-badge img { width: 42px; height: 42px; }
  .split { grid-template-columns: 1fr; }
  .tile-wide, .tile-narrow { grid-column: span 12; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 0.9rem 0; padding: 2rem 0; }
  .service-row .row-rail { flex-direction: row; align-items: baseline; gap: 0.8rem; padding-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav { justify-content: center; }
  .nav-links { justify-content: center; }
  .nav-cta { margin-left: 0; }
  .two-col { grid-template-columns: 1fr; }
  .service-items { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 2.6rem; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
}
