/* Self-hosted fonts (no external requests) */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/jost-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jost-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jost-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jost-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
}

/* ============================================================
   MUSTACH NETWORKS — site styles
   Palette: deep-space navy base, signal cyan + telemetry amber
   Type: Archivo (display) / IBM Plex Sans (body) / IBM Plex Mono (telemetry)
   ============================================================ */

:root {
  --ink: #060912;          /* page background */
  --surface: #0c1322;      /* raised panels */
  --surface-2: #111b30;    /* hover / deeper panels */
  --line: rgba(143, 168, 214, 0.14);
  --text: #e9eef8;
  --muted: #97a3bc;
  --signal: #2f6bff;       /* fiber light */
  --signal-soft: rgba(47, 107, 255, 0.14);
  --amber: #6f8cff;        /* NOC telemetry readouts */
  --radius: 8px;
  --nav-h: 72px;
  --font-display: "Jost", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120,150,210,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,210,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 60% at 50% 35%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 35%, #000 30%, transparent 100%);
}
main, footer, .nav { position: relative; z-index: 1; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--signal); color: var(--ink); }

.wrap { width: min(1160px, 92vw); margin-inline: auto; }

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.16;
  text-wrap: balance;
}
h1 { text-transform: uppercase; font-weight: 300; letter-spacing: 0.13em; }
h2 { text-transform: uppercase; font-weight: 300; letter-spacing: 0.1em; }
h3 { letter-spacing: 0.02em; }

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--signal);
  opacity: 0.7;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  background: rgba(7, 11, 22, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  background: rgba(7, 11, 22, 0.85);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1rem;
  white-space: nowrap;
}
.brand .mark {
  width: 34px; height: 34px; flex: none;
  object-fit: contain;
  border-radius: 6px;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--muted);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink) !important;
  background: var(--signal);
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  box-shadow: 0 0 24px rgba(47, 107, 255, 0.5);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px; height: 42px;
  cursor: pointer;
  color: var(--text);
}

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  overflow: hidden;
}
#net-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
}
.hero::after {
  /* vignette so text stays readable over the canvas */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 70% at 28% 50%, rgba(7,11,22,0.82), transparent 70%),
    linear-gradient(to bottom, rgba(7,11,22,0.25), rgba(7,11,22,0.9));
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero h1 {
  text-transform: uppercase;
  max-width: 13ch;
}
.hero h1 .alt, .page-hero h1 .alt {
  background: linear-gradient(92deg, var(--signal), #8aa6ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { margin-top: 1.4rem; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.6rem;
  background: rgba(13, 20, 38, 0.6);
}
.hero-status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #51e394;
  box-shadow: 0 0 10px #51e394;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(47, 107, 255, 0.45);
}
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(13,20,38,0.4); }
.btn-ghost:hover { border-color: var(--signal); transform: translateY(-2px); }

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(var(--signal), transparent);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 6rem) 0 4.5rem;
  overflow: hidden;
}
.page-hero #net-canvas { opacity: 0.45; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(7,11,22,0.5), var(--ink) 92%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { text-transform: uppercase; max-width: 18ch; }
.page-hero .lead { margin-top: 1.3rem; }

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

section.block { padding: 5.5rem 0; position: relative; }
section.block.tint { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 700px; margin-bottom: 3.2rem; }
.section-head p { margin-top: 1rem; color: var(--muted); }

/* services grid */
.grid {
  display: grid;
  gap: 1.4rem;
}
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card, .stat {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  background: linear-gradient(45deg, transparent 50%, var(--signal) 50%);
  opacity: 0.5;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.card:hover { transform: translateY(-5px); background: var(--surface-2); border-color: rgba(47,107,255,0.45); }
.card:hover::before { opacity: 1; }

.card .icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--signal-soft);
  color: var(--signal);
  margin-bottom: 1.2rem;
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--signal);
}
.card .more .arrow { transition: transform 0.25s ease; }
.card:hover .more .arrow { transform: translateX(4px); }
a.card { display: block; color: inherit; }

/* feature rows (interior pages) */
.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: 3.2rem 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.feature .kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.8rem;
}
.feature p { color: var(--muted); }
.feature p + p { margin-top: 1rem; }

/* ---------- telemetry / stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent 60%);
  opacity: 0.8;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  background: linear-gradient(45deg, transparent 50%, var(--amber) 50%);
  opacity: 0.45;
}
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  gap: 0.08em;
}
.stat .value .unit { font-size: 0.45em; color: var(--signal); }
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0.7rem 0 0.5rem;
}
.stat p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* ---------- about ---------- */

.about-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.founder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.founder .avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ink);
  background: linear-gradient(135deg, var(--signal), #6f8cff);
  margin-bottom: 1.2rem;
}
.founder .name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.founder .role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-top: 0.3rem;
}
.founder .since {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.prose p { color: var(--muted); }
.prose p + p { margin-top: 1.2rem; }
.prose strong { color: var(--text); }
.pull {
  margin: 1.8rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--signal);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.4;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 50% 110%, rgba(47,107,255,0.2), transparent 70%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; }
.cta-band h2 { text-transform: uppercase; }
.cta-band p {
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-top: 1rem;
  text-transform: uppercase;
}
.cta-band .btn { margin-top: 2.2rem; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.contact-info .item {
  display: flex;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--signal-soft);
  color: var(--signal);
}
.contact-info .item h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-info .item p, .contact-info .item a { color: var(--muted); font-size: 0.95rem; }
.contact-info .item a:hover { color: var(--signal); }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}
.form .btn { width: 100%; justify-content: center; }
.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); text-align: center; }

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

footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2.5rem;
  background: var(--surface);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.foot-grid .tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 0.8rem;
}
.foot-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 0.55rem; }
.foot-grid li a { color: var(--text); font-size: 0.93rem; opacity: 0.85; transition: color 0.2s ease; }
.foot-grid li a:hover { color: var(--signal); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* hero entrance */
.rise { opacity: 0; transform: translateY(30px); animation: rise 0.9s cubic-bezier(0.16,1,0.3,1) forwards; }
.rise.d1 { animation-delay: 0.15s; }
.rise.d2 { animation-delay: 0.3s; }
.rise.d3 { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

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

@media (max-width: 980px) {
  .grid.cols-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .about-split, .contact-grid { grid-template-columns: 1fr; }
  .founder { position: static; }
  .feature { grid-template-columns: 1fr; gap: 1.2rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(7, 11, 22, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4vw 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.8rem 0; font-size: 1.05rem; }
  .nav-links .nav-cta { display: inline-block; margin-top: 0.8rem; text-align: center; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2, .stats { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section.block { padding: 4rem 0; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rise { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .scroll-hint::after, .hero-status .dot { animation: none; }
  #net-canvas { display: none; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ============================================================
   V2 — trendy upgrades: progress bar, split-text, media/photos,
   tilt cards, magnetic buttons, marquee, parallax
   ============================================================ */

/* scroll progress bar */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--signal), #6f8cff, #9db4ff);
  box-shadow: 0 0 12px rgba(47, 107, 255, 0.5);
}

/* split-text word reveal */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.split.go .w > span { transform: translateY(0); }

/* magnetic buttons + shine sweep */
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn .shine {
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.6s ease;
}
.btn:hover .shine { left: 130%; }
.btn-ghost .shine { background: linear-gradient(105deg, transparent, rgba(47,107,255,0.28), transparent); }

/* marquee ticker */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 1.05rem 0;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span { display: flex; align-items: center; gap: 3rem; }
.marquee-track .sep { color: var(--signal); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* photo figures — duotone wash, zoom, scroll clip reveal, parallax */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  clip-path: inset(8% 6% 8% 6% round var(--radius));
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.media.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.12);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: saturate(0.82);
  will-change: transform;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(7,11,22,0.38), transparent 55%, rgba(47,107,255,0.10));
  mix-blend-mode: multiply;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.media:hover img { transform: scale(1.04); filter: saturate(1); }
.media:hover::after { opacity: 0.35; }
.media .tag {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(7, 11, 22, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.media.ratio-wide { aspect-ratio: 16 / 9; }
.media.ratio-photo { aspect-ratio: 4 / 3; }
.media.ratio-tall { aspect-ratio: 3 / 4; }
.media.ratio-portrait { aspect-ratio: 2 / 3; }

/* feature rows with images */
.feature .media { margin-top: 1.6rem; }
.feature-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; padding: 3.2rem 0; border-top: 1px solid var(--line); }
.feature-media:first-of-type { border-top: 0; padding-top: 0; }
.feature-media.flip > .media { order: 2; }
.feature-media .kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.8rem;
}
.feature-media h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 1rem; }
.feature-media p { color: var(--muted); }
.feature-media p + p { margin-top: 1rem; }

/* photo service cards (home) */
.photo-card { padding: 0; display: flex; flex-direction: column; }
.photo-card .media {
  border: 0;
  border-radius: 0;
  clip-path: none;
  aspect-ratio: 16 / 10;
}
.photo-card .body { padding: 1.6rem 1.6rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.photo-card h3 { margin-bottom: 0.5rem; }
.photo-card p { flex: 1; }

/* 3D tilt + cursor glow */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}
.tilt .glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(47,107,255,0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.tilt:hover .glow { opacity: 1; }
.tilt > *:not(.glow) { position: relative; z-index: 2; }

/* hero photo backdrop (interior pages) */
.page-hero .backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero .backdrop img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.7);
  will-change: transform;
}
.page-hero #net-canvas { z-index: 1; opacity: 0.35; }

/* cta band photo backdrop */
.cta-band .backdrop {
  position: absolute; inset: 0; z-index: 0;
}
.cta-band .backdrop img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.6);
  will-change: transform;
}
.cta-band .wrap { z-index: 2; }

/* founder portrait */
.founder .portrait {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.3rem;
  aspect-ratio: 3 / 4;
}
.founder .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

@media (max-width: 980px) {
  .feature-media { grid-template-columns: 1fr; }
  .feature-media.flip > .media { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .progress { display: none; }
  .marquee-track { animation: none; }
  .split .w > span { transform: none !important; transition: none !important; }
  .media { clip-path: none !important; }
  .media img { transform: none !important; }
  .tilt { transform: none !important; }
  .btn .shine { display: none; }
}

/* v3: portrait must show the full head — no zoom/crop tricks */
.founder .portrait .media img { transform: none; object-position: center top; }
.founder .portrait .media:hover img { transform: none; }

/* v3: marquee quieter (simpler) */
.marquee { background: transparent; border-block-color: rgba(143,168,214,0.09); }

/* v3: nav uses display font lightly */
.nav-links a { font-family: var(--font-body); font-weight: 500; }
