/* ═══════════════════════════════════════════════════════════════
   FLOWSTAX — "Signal from the Machine"
   Dark otherworldly design system
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Void + light */
  --void: #06070b;
  --void-2: #0a0c13;
  --ink: #e8e9f0;
  --ink-dim: #9a9db0;
  --ink-faint: #5c5f72;

  /* Aurora */
  --violet: #8b6cff;
  --cyan: #55f2dd;
  --magenta: #ff5ca8;
  --ember: #ffb37c;

  /* Surfaces */
  --line: rgba(232, 233, 240, 0.08);
  --line-bright: rgba(232, 233, 240, 0.16);
  --glass: rgba(232, 233, 240, 0.03);

  /* Type */
  --font-display: "Clash Display", "Helvetica Neue", sans-serif;
  --font-body: "General Sans", "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;

  --pad-x: clamp(20px, 5vw, 96px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: var(--void); }

/* ═══════════ WEBGL CANVAS + GRAIN ═══════════ */

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -100%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.6s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2%, -3%); }
  50% { transform: translate(-2%, 2%); }
  75% { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

main, .footer { position: relative; z-index: 2; }

/* ═══════════ PRELOADER ═══════════ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: 0.35em;
  margin-left: 0.35em; /* optical balance for tracking */
}
.preloader-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
}
.preloader-count {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
}

/* ═══════════ CURSOR ═══════════ */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(232, 233, 240, 0.35);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              border-color 0.35s, background-color 0.35s;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--violet);
  background: rgba(139, 108, 255, 0.08);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ═══════════ SCROLL PROGRESS ═══════════ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
}

/* ═══════════ NAV ═══════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: transform 0.5s var(--ease-out);
}
.nav.nav-hidden { transform: translateY(-110%); }
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(6, 7, 11, 0.85), rgba(6, 7, 11, 0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: linear-gradient(#000 60%, transparent);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  pointer-events: none;
}
.nav > * { position: relative; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo-mark {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--violet), var(--cyan), var(--magenta), var(--violet));
  box-shadow: 0 0 12px rgba(139, 108, 255, 0.8);
  animation: mark-spin 6s linear infinite;
}
@keyframes mark-spin { to { transform: rotate(360deg); } }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  position: relative;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: var(--glass);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  border-color: var(--violet);
  box-shadow: 0 0 24px rgba(139, 108, 255, 0.25);
}
.nav-cta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* ═══════════ SHARED TYPE ═══════════ */

.serif-i {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.grad-text {
  /* vertical padding extends the paint area so Safari doesn't clip
     descenders outside the line box (background-clip: text bug) */
  padding-top: 0.25em;
  padding-bottom: 0.5em;
  background: linear-gradient(100deg, var(--violet) 0%, var(--cyan) 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-eyebrow, .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.eyebrow-tick {
  display: inline-block;
  width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.section-head {
  padding: 0 var(--pad-x);
  margin-bottom: clamp(48px, 8vh, 96px);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.section-title .serif-i { font-size: 1.04em; }

/* ═══════════ HERO ═══════════ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad-x) 0;
}
.hero-inner {
  position: relative;
  max-width: 1080px;
}
.hero-eyebrow { margin-bottom: 28px; }

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 10.5vw, 148px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero-title-line {
  display: block;
}
.hero-title-word {
  display: inline-block;
  will-change: transform;
}
.hero-title-accent .serif-i {
  font-size: 1.06em;
  /* vertical padding extends the paint area so Safari doesn't clip
     descenders outside the line box (background-clip: text bug);
     negative margins cancel the padding's layout height — this span is
     inline-block, so padding alone pushes the hero copy below it down */
  padding-top: 0.25em;
  padding-bottom: 0.5em;
  margin-top: -0.25em;
  margin-bottom: -0.5em;
  background: linear-gradient(100deg, var(--violet), var(--cyan) 55%, var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 480px;
  margin-top: 36px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-dim);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 0.4s, border-color 0.4s, color 0.4s;
}
.btn-primary {
  color: var(--void);
  background: var(--ink);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--magenta), var(--ember), var(--violet));
  opacity: 0;
  transition: opacity 0.45s;
  animation: mark-spin 4s linear infinite;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 8px 40px rgba(139, 108, 255, 0.45); }
.btn-primary .btn-text { position: relative; }
.btn-primary:hover .btn-text { color: var(--void); }
.btn-orb {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--void);
  transition: transform 0.4s var(--ease-out);
}
.btn-primary:hover .btn-orb { transform: scale(1.4); }
.btn-xl { padding: 22px 48px; font-size: 16px; }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-bright);
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px rgba(85, 242, 221, 0.18);
}

/* Hero meta row */
.hero-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 0 40px;
  margin-top: auto;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-meta-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
}
.hero-meta-val {
  font-size: 13px;
  color: var(--ink-dim);
}
.scroll-line {
  position: relative;
  width: 1px; height: 48px;
  background: var(--line-bright);
  overflow: hidden;
  display: block;
}
.scroll-line span {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(var(--violet), var(--cyan));
  animation: scroll-drip 1.8s var(--ease-out) infinite;
}
@keyframes scroll-drip {
  0% { top: -50%; }
  100% { top: 110%; }
}

/* ═══════════ TICKER ═══════════ */

.ticker {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(6, 7, 11, 0.5);
  backdrop-filter: blur(4px);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ticker-set {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  white-space: nowrap;
}
.ticker-set span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.ticker-set i {
  font-style: normal;
  font-size: 10px;
  color: var(--violet);
}

/* ═══════════ SERVICES ═══════════ */

.services {
  position: relative;
  padding: clamp(100px, 16vh, 180px) 0;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  perspective: 1400px;
}
.svc-card { transform-style: preserve-3d; }
.svc-card {
  position: relative;
  background: var(--void);
  padding: 40px 32px 36px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.4s;
}
/* mouse-tracking spotlight (variables set from JS) */
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(139, 108, 255, 0.12),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover { background: var(--void-2); }

.svc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
}
.svc-icon {
  width: 44px; height: 44px;
  margin: 28px 0 20px;
  color: var(--ink-dim);
  transition: color 0.4s, transform 0.5s var(--ease-out);
}
.svc-icon svg { width: 100%; height: 100%; }
.svc-card:hover .svc-icon {
  color: var(--cyan);
  transform: translateY(-4px);
}
.svc-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.svc-desc {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-dim);
  flex-grow: 1;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.svc-tags span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: color 0.3s, border-color 0.3s;
}
.svc-card:hover .svc-tags span {
  color: var(--ink-dim);
  border-color: var(--line-bright);
}

/* ═══════════ STATS ═══════════ */

.stats {
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat {
  padding: 32px 0 0;
  border-top: 1px solid var(--line-bright);
}
.stat-val {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-suffix { color: var(--violet); }
.stat-key {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ═══════════ PROCESS ═══════════ */

.process {
  padding: clamp(100px, 16vh, 180px) 0;
}
.proc-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.proc-step {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 44px var(--pad-x);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.4s;
}
.proc-step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--violet), var(--cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
}
.proc-step:hover { background: var(--void-2); }
.proc-step:hover::before { transform: scaleY(1); }
.proc-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.proc-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 44px);
  letter-spacing: -0.01em;
}
.proc-name::after {
  content: "→";
  display: inline-block;
  margin-left: 0.4em;
  font-family: var(--font-body);
  color: var(--cyan);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.proc-step:hover .proc-name::after {
  opacity: 1;
  transform: translateX(0);
}
.proc-desc {
  max-width: 560px;
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-dim);
}
.proc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid rgba(85, 242, 221, 0.25);
  border-radius: 100px;
  white-space: nowrap;
}

/* ═══════════ MANIFESTO ═══════════ */

.manifesto {
  padding: clamp(120px, 20vh, 220px) var(--pad-x);
  max-width: 1100px;
  margin: 0 auto;
}
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.manifesto-text .mw {
  /* word spans injected by JS */
  opacity: 0.12;
  transition: opacity 0.3s linear;
}
.manifesto-sig {
  margin-top: 40px;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--ink-dim);
}

/* ═══════════ CTA ═══════════ */

.cta {
  position: relative;
  padding: clamp(120px, 20vh, 220px) var(--pad-x);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(139, 108, 255, 0.14), transparent 55%),
    radial-gradient(circle at 40% 60%, rgba(85, 242, 221, 0.07), transparent 50%);
  filter: blur(8px);
  animation: cta-breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
.cta-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: min(56vw, 680px);
  aspect-ratio: 1;
  margin: calc(min(56vw, 680px) / -2);
  border: 1px dashed rgba(139, 108, 255, 0.22);
  border-radius: 50%;
  animation: ring-spin 60s linear infinite;
  pointer-events: none;
}
.cta-ring::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.cta-ring-2 {
  width: min(78vw, 940px);
  margin: calc(min(78vw, 940px) / -2);
  border-color: rgba(85, 242, 221, 0.12);
  animation-duration: 90s;
  animation-direction: reverse;
}
.cta-ring-2::before { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.cta > .section-eyebrow, .cta > .cta-title, .cta > .cta-sub, .cta > .btn { position: relative; }
.cta-eyebrow { justify-content: center; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 24px;
}
.cta-sub {
  max-width: 440px;
  margin: 28px auto 48px;
  color: var(--ink-dim);
  font-size: 15px;
}

/* ═══════════ FOOTER ═══════════ */

.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
  background: linear-gradient(rgba(6, 7, 11, 0), rgba(10, 12, 19, 0.9));
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 0 var(--pad-x) 64px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-dim);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5cff8f;
  box-shadow: 0 0 10px #5cff8f;
  animation: pulse 2s ease-in-out infinite;
}

.footer-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 14.5vw, 260px);
  line-height: 0.8;
  text-align: center;
  letter-spacing: -0.02em;
  background: linear-gradient(rgba(232, 233, 240, 0.16), rgba(232, 233, 240, 0.015));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  transform: translateY(0.12em);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad-x) 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  flex-wrap: wrap;
}

/* ═══════════ REVEAL PRIMITIVES (JS-driven) ═══════════ */

.reveal-line { opacity: 0; }

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .proc-step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px var(--pad-x);
  }
  .proc-tag { justify-self: start; }
  .hero-meta { gap: 20px; }
  .hero-scroll-hint { display: none; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ═══════════ REDUCED MOTION ═══════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-line { opacity: 1; }
  .manifesto-text .mw { opacity: 1; }
}
