/* ============================================================
   josephaleto.io — "The Operator's Console"
   Single-accent system: near-black canvas, one amber signal,
   green reserved for live status only. Neutral hairlines, no
   gradient blobs, no HUD cosplay. Type does the work.
   Display: Space Grotesk · Body: Inter · Mono: JetBrains Mono
   z-index scale: content 1-10 · nav 100 · skip 200 · cursor 300 · toast 400
   ============================================================ */

:root {
  --bg-0: #04070a;
  --bg-1: #0a0f15;
  --bg-2: #0e151d;

  --line: rgba(234, 242, 249, 0.08);
  --line-strong: rgba(234, 242, 249, 0.16);

  --text: #eef3f8;
  --muted: #9fb0bf;
  --dim: #6b7c8a;

  /* Single signature accent. --signal/--cyan kept as aliases so the
     terminal's accent easter eggs keep working without a second hue. */
  --accent: #ff9e2c;
  --accent-soft: #ffc279;
  --accent-press: #e8861a;
  --signal: #ff9e2c;
  --cyan: #ff9e2c;
  --cyan-bright: #ffc279;

  /* Live / status only — never decorative. */
  --ok: #43d6a0;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 64px;

  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

section[id], div[id] { scroll-margin-top: calc(var(--nav-h) + 18px); }

::selection { background: rgba(255, 158, 44, 0.26); color: #fff; }
::-moz-selection { background: rgba(255, 158, 44, 0.26); color: #fff; }

body {
  background:
    radial-gradient(ellipse 110% 50% at 50% -12%, rgba(255, 158, 44, 0.05), transparent 60%),
    var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint neutral blueprint grid — depth without color noise. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(234, 242, 249, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 242, 249, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 95% 70% at 50% 22%, black 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 95% 70% at 50% 22%, black 25%, transparent 80%);
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.center { justify-content: center; text-align: center; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }

p { text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-soft); }
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  color: var(--accent-soft);
  background: rgba(255, 158, 44, 0.09);
  padding: 0.1em 0.45em; border-radius: 4px; font-size: 0.9em;
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 200;
  background: var(--accent); color: #000; padding: 10px 18px;
  border-radius: 6px; font-family: var(--font-mono); font-size: 0.85rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: #000; }

/* ---------- HUD nav ---------- */
.hud-nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(4, 7, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.35s ease;
}
.hud-nav.nav-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 158, 44, 0.55);
}
.brand-text { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
.brand-dim { color: var(--dim); font-weight: 400; }

.hud-nav nav { display: flex; gap: 22px; margin-left: auto; }
.hud-nav nav a {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--muted); text-transform: uppercase;
}
.hud-nav nav a:hover { color: var(--accent); }

.nav-cta {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  color: #000; background: var(--accent);
  padding: 9px 18px; border-radius: 999px; font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { color: #000; background: var(--accent-soft); transform: translateY(-1px); }

@media (max-width: 760px) {
  .hud-nav nav { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  will-change: transform;
}
.btn-lg { font-size: clamp(1rem, 2.4vw, 1.3rem); padding: 18px 34px; }
.btn-signal { background: var(--accent); color: #000; }
.btn-signal:hover { color: #000; background: var(--accent-soft); }
.btn-ghost {
  color: var(--text); border: 1px solid var(--line-strong);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }

/* ---------- Status chip / pulse ---------- */
.status-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(234, 242, 249, 0.02);
  padding: 8px 16px; border-radius: 999px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 2.2s ease-in-out infinite;
  flex: none;
}
.pulse-dot.ok { background: var(--ok); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 6vw, 80px) 80px;
  overflow: hidden;
}

.hero-canvas-wrap { position: absolute; inset: 0; z-index: -2; }
#agentGraph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback {
  position: absolute; inset: 0; opacity: 0;
  background:
    radial-gradient(circle 2px at 22% 32%, rgba(159, 176, 191, 0.55), transparent 3px),
    radial-gradient(circle 2px at 68% 22%, rgba(159, 176, 191, 0.45), transparent 3px),
    radial-gradient(circle 3px at 84% 58%, rgba(255, 158, 44, 0.75), transparent 4px),
    radial-gradient(circle 2px at 40% 74%, rgba(159, 176, 191, 0.4), transparent 3px);
  transition: opacity 0.6s ease;
}
.hero-fallback.show { opacity: 1; }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(4, 7, 10, 0.5), transparent 28%, transparent 64%, var(--bg-0) 99%),
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 52%, rgba(4, 7, 10, 0.82));
}

.hero-content { position: relative; max-width: 940px; }
/* Localized scrim so hero copy keeps contrast over the live graph
   without hiding it. */
.hero-content::before {
  content: "";
  position: absolute; inset: -48px -120px -48px -72px;
  z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 78% 92% at 26% 50%,
    rgba(4, 7, 10, 0.92), rgba(4, 7, 10, 0.6) 42%, rgba(4, 7, 10, 0) 75%);
}

.hero-title {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 26px 0 24px;
}
.hero-title em {
  font-style: normal; color: var(--accent);
}

.hero-sub {
  max-width: 600px; color: #c8d6e2;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  line-height: 1.6;
}
.hero-sub strong { color: #fff; font-weight: 600; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  list-style: none; margin-top: 38px;
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted);
}
.hero-meta a { color: var(--accent-soft); }

.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim);
}
.scroll-cue-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cueDrop 2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Sections (shared) ---------- */
section { position: relative; }

.section-head {
  max-width: 860px;
  padding: 0 clamp(20px, 6vw, 80px);
  margin: 0 auto 56px;
  text-align: center;
}
.kicker {
  color: var(--accent); font-size: 0.76rem; letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2, .contact-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -0.02em;
}
.section-sub { color: var(--muted); margin-top: 18px; }
.section-sub strong { color: var(--text); }

/* ---------- THE OPERATOR (origin) ---------- */
.origin { padding: 120px 0; }
.origin-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1060px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
@media (max-width: 900px) { .origin-inner { grid-template-columns: 1fr; max-width: 640px; } }

.origin-story h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
  margin: 14px 0 24px;
}
.origin-story p { color: var(--muted); margin-bottom: 18px; max-width: 54ch; }
.origin-story strong { color: var(--text); }

.origin-rules {
  position: relative; overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.origin-rules::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--accent), transparent 95%);
  opacity: 0.6;
}
.origin-rules::after {
  content: "\2660"; position: absolute; right: -14px; bottom: -40px;
  font-size: 10rem; line-height: 1;
  color: rgba(234, 242, 249, 0.03);
  pointer-events: none;
}
.rules-title {
  color: var(--accent); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 18px;
}
.rules-list { list-style: none; }
.rules-list li {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  align-items: baseline;
  padding: 11px 0; font-size: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.rules-list li:first-child { border-top: 0; }
.rules-list li span:last-child { color: var(--text); text-align: right; }
.rules-list li:last-child span:last-child { color: var(--accent-soft); }
.rule-arrow { color: var(--accent); }

/* ---------- CONSOLE ---------- */
.console { padding: 110px 0 90px; }
.terminal-shell {
  max-width: 940px; margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 40px);
}
.terminal-chrome {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 12px 18px;
}
.traffic { display: flex; gap: 7px; }
.traffic span { width: 11px; height: 11px; border-radius: 50%; background: #2a3744; }
.traffic span:nth-child(1) { background: #ff5f56; }
.traffic span:nth-child(2) { background: #ffbd2e; }
.traffic span:nth-child(3) { background: #27c93f; }
.terminal-host { color: var(--muted); font-size: 0.8rem; }
.terminal-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  color: var(--ok); font-size: 0.7rem; letter-spacing: 0.18em;
}

#terminal {
  background: #05080c;
  border: 1px solid var(--line-strong);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  height: 420px; overflow-y: auto;
  padding: 18px 20px;
  font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.65;
}
#terminal::-webkit-scrollbar { width: 8px; }
#terminal::-webkit-scrollbar-thumb {
  background: rgba(255, 158, 44, 0.5);
  border-radius: 6px;
}
#terminal::-webkit-scrollbar-track { background: var(--bg-0); }

#terminal-content div, #terminal-content pre { margin-bottom: 2px; }
#terminal-content pre {
  white-space: pre-wrap; overflow-x: auto;
  color: var(--ok); font-family: inherit; font-size: inherit;
}
#terminal-content a { color: var(--accent-soft); }
#terminal-content img { max-width: 100%; border-radius: 6px; margin-top: 8px; }

.terminal-suggestion {
  color: rgba(159, 176, 191, 0.5); font-size: 0.82rem; padding: 2px 0;
}

.terminal-input-row { position: relative; display: flex; align-items: baseline; gap: 8px; }
#terminal-prompt { color: var(--ok); white-space: nowrap; }
#typedText { color: #dbe8f2; }
.blinking-cursor { color: var(--accent); animation: blink 1.05s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
#terminal-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; border: none; background: none; z-index: 5;
  font-size: 16px; /* prevents iOS zoom */
}

.terminal-fade { transition: opacity 0.45s ease; opacity: 0; }

.console-footnote {
  max-width: 940px; margin: 14px auto 0;
  padding: 0 clamp(14px, 4vw, 40px);
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--dim);
}
#apiLatency { color: var(--ok); }

/* ---------- BUILD ---------- */
.build { padding: 110px 0; }
.build-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
@media (max-width: 980px) { .build-grid { grid-template-columns: 1fr; max-width: 600px; } }

.build-card, .work-card, .cluster {
  position: relative; overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}
.build-card::before, .work-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--accent), transparent 95%);
  opacity: 0; transition: opacity 0.3s ease;
}
.build-card:hover, .work-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.build-card:hover::before, .work-card:hover::before { opacity: 0.7; }

.build-card h3 { font-size: 1.22rem; margin-bottom: 14px; display: flex; align-items: baseline; gap: 12px; }
.card-index { color: var(--accent); font-size: 0.8rem; }
.build-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.build-card ul { list-style: none; }
.build-card li {
  font-size: 0.78rem; color: var(--text);
  padding: 7px 0 7px 18px; position: relative;
  border-top: 1px solid var(--line);
}
.build-card li::before { content: "\25B8"; position: absolute; left: 0; color: var(--accent); }

/* ---------- EXPERIENCE ---------- */
.experience { padding: 110px 0; }
.timeline {
  position: relative; max-width: 840px; margin: 0 auto;
  padding: 10px clamp(20px, 5vw, 60px) 10px calc(clamp(20px, 5vw, 60px) + 34px);
}
.timeline-spine {
  position: absolute; top: 0; bottom: 0; left: clamp(20px, 5vw, 60px);
  width: 2px; height: 100%;
}
.timeline-spine line {
  stroke: var(--accent); stroke-width: 2; opacity: 0.6;
}

.t-item { position: relative; margin-bottom: 60px; }
.t-item::before {
  content: ""; position: absolute; left: -41px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-0); border: 2px solid var(--accent);
}
.t-date { color: var(--accent); font-size: 0.74rem; letter-spacing: 0.14em; margin-bottom: 8px; }
.t-item h3 { font-size: 1.28rem; margin-bottom: 4px; }
.t-where { font-size: 0.85rem; margin-bottom: 14px; }
.t-item ul { list-style: none; }
.t-item li {
  color: var(--muted); font-size: 0.94rem;
  padding: 6px 0 6px 18px; position: relative;
}
.t-item li::before { content: "\25B8"; position: absolute; left: 0; color: var(--accent); }

.cert-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-block;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(234, 242, 249, 0.02);
  color: var(--text);
  font-size: 0.78rem; padding: 7px 16px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

/* ---------- WORK ---------- */
.work { padding: 110px 0; }
.work-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 1060px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; max-width: 600px; } }

.work-metric { color: var(--accent); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.work-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.work-card p { color: var(--muted); font-size: 0.94rem; }
.work-links { margin-top: 16px; font-size: 0.8rem; }

/* ---------- SKILLS ---------- */
.skills { padding: 110px 0; }
.skill-clusters {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 1060px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
@media (max-width: 860px) { .skill-clusters { grid-template-columns: 1fr; max-width: 600px; } }
.cluster h3 {
  color: var(--accent); font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 18px; font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips .chip { font-family: var(--font-body); color: var(--text); }
.chips .chip:hover { border-color: var(--accent); color: var(--accent-soft); }

/* ---------- CONTACT ---------- */
.contact {
  padding: 140px clamp(20px, 6vw, 80px) 120px;
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(255, 158, 44, 0.06), transparent 70%);
}
.contact-title { margin: 28px 0 36px; }
.contact-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px;
  list-style: none; margin-top: 44px;
  font-size: 0.85rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px clamp(20px, 6vw, 80px);
  text-align: center; font-size: 0.82rem;
}
.site-footer p { margin: 4px 0; }
.counter-number { color: var(--accent-soft); }

/* ---------- Live telemetry ticker ---------- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 21, 0.7);
  padding: 12px 0;
}
.ticker-track {
  display: inline-flex; gap: 48px;
  white-space: nowrap;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  animation: tickerScroll 36s linear infinite;
  will-change: transform;
}
.tick { display: inline-flex; align-items: center; gap: 10px; }
.tick-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px var(--ok);
}
.tick.amber { color: var(--accent); }
.tick-pending { display: none; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; white-space: normal; padding: 0 20px; }
}

/* ---------- Self-shipping pipeline ---------- */
.pipeline { padding: 110px 0 90px; }
.pipe-wrap {
  max-width: 1060px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 50px);
}
.pipe-svg { width: 100%; height: auto; overflow: visible; }
.pipe-base {
  stroke: var(--line-strong); stroke-width: 2; fill: none;
}
.pipe-pulse {
  stroke: var(--accent); stroke-width: 2.5; fill: none;
  stroke-dasharray: 860; stroke-dashoffset: 860;
}
.pipe-stage circle {
  fill: var(--bg-1); stroke: var(--line-strong); stroke-width: 2;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.pipe-stage text {
  fill: var(--text); font-family: var(--font-mono); font-size: 17px;
  text-anchor: middle; letter-spacing: 0.06em;
}
.pipe-stage .pipe-sub { fill: var(--muted); font-size: 13px; }
.pipe-stage.lit circle {
  fill: rgba(255, 158, 44, 0.18); stroke: var(--accent);
}
.pipe-stage:last-child.lit circle {
  fill: rgba(67, 214, 160, 0.2); stroke: var(--ok);
}
@media (max-width: 640px) {
  .pipe-stage text { font-size: 24px; }
  .pipe-stage .pipe-sub { font-size: 18px; }
}

/* ---------- Contact extras ---------- */
.contact-pitch {
  max-width: 580px; margin: -14px auto 22px;
  color: var(--text); font-size: 1.04rem; line-height: 1.6;
}
.contact-roles {
  margin-top: 4px; margin-bottom: 8px;
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.copy-email { cursor: pointer; font-size: 0.85rem; }

.toast {
  position: fixed; bottom: 28px; left: 50%; z-index: 400;
  transform: translate(-50%, 80px);
  background: var(--bg-2); color: var(--ok);
  border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 10px 22px;
  font-size: 0.8rem; letter-spacing: 0.08em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Footer colophon ---------- */
.colophon {
  max-width: 640px; margin: 10px auto !important;
  color: var(--muted); font-size: 0.82rem;
}
.colophon strong { color: var(--accent-soft); font-weight: 600; }

/* ---------- Hero agent-node labels ---------- */
.hero-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.graph-label {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  transform: translate(-50%, -180%);
  opacity: 0.8;
}

/* ---------- Custom cursor ---------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease, background 0.2s ease;
  mix-blend-mode: screen;
}
body.has-cursor .cursor-dot { opacity: 0.8; }
.cursor-dot.on-link { width: 30px; height: 30px; background: rgba(255, 158, 44, 0.22); }

@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* ---------- Split text scaffolding ---------- */
[data-split] .split-line { display: block; overflow: hidden; }
[data-split] .split-word { display: inline-block; will-change: transform; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .scroll-cue-line, .pulse-dot, .blinking-cursor { animation: none !important; }
}

/* JS-disabled / pre-JS state: everything visible by default.
   Motion script adds choreography and handles initial states itself. */
