/* =====================================================
   Brand Design Tokens — Ignazio De Santis
   Palette: Ink / Charcoal / Red-Orange / White
   ===================================================== */
:root {
  /* ── Base surfaces ── */
  --bg:        #09090b;
  --bg-2:      #0d0d0f;
  --bg-3:      #111114;
  --surface:   #161618;
  --surface-2: #1c1c1f;

  /* ── Borders ── */
  --border:        rgba(232, 70, 55, 0.12);
  --border-hover:  rgba(232, 70, 55, 0.28);
  --border-strong: rgba(232, 70, 55, 0.50);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* ── Text ── */
  --text:   #f2f2f2;
  --text-2: #8a8a8a;
  --text-3: #454545;

  /* ── Primary Accent: Red-Orange ── */
  --cobalt:        #C0392B;
  --cobalt-bright: #E84637;
  --cobalt-dim:    rgba(232, 70, 55, 0.09);
  --cobalt-glow:   rgba(232, 70, 55, 0.22);

  /* ── Warm secondary: Ember (use sparingly) ── */
  --copper:      #C4783A;
  --copper-dim:  rgba(196, 120, 58, 0.10);
  --copper-glow: rgba(196, 120, 58, 0.22);

  /* ── Status ── */
  --green:  #22c55e;
  --amber:  #f59e0b;
  --red:    #ef4444;

  /* ── Typography ── */
  --display: 'DM Serif Display', Georgia, serif;
  --sans:    'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'JetBrains Mono', 'Courier New', monospace;

  /* ── Layout ── */
  --nav-h:     68px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-w:     1280px;

  /* ── Motion ── */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
}

/* =====================================================
   Reset
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  /* Satoshi: kerning + standard ligatures + contextual alternates + ss03
     (distinctive l / single-story alternates). Activates the typeface's
     actual character instead of leaving it at browser defaults. */
  font-feature-settings: "kern", "liga", "calt", "ss03";
  /* Tabular figures + slashed zero everywhere by default. Fits the
     engineering-instrument aesthetic (numbers don't wiggle in counters,
     0 vs O is distinguishable in mono contexts). Body prose has almost
     no digits so the global setting is harmless there. */
  font-variant-numeric: tabular-nums slashed-zero;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: none; font-family: inherit; }
em { font-style: normal; }
img { display: block; max-width: 100%; }

/* =====================================================
   Film Grain
   ===================================================== */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 9000;
  animation: grain-shift 10s steps(1) infinite;
}
@keyframes grain-shift {
  0%  { transform: translate(0,    0);    }
  10% { transform: translate(-3%, -6%);  }
  20% { transform: translate(4%,   3%);  }
  30% { transform: translate(-6%,  8%);  }
  40% { transform: translate(8%,  -4%);  }
  50% { transform: translate(-4%,  6%);  }
  60% { transform: translate(6%,  -8%);  }
  70% { transform: translate(-8%,  2%);  }
  80% { transform: translate(3%,  -3%);  }
  90% { transform: translate(-2%,  8%);  }
  100%{ transform: translate(5%,  -5%);  }
}

/* =====================================================
   Progress Bar
   ===================================================== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cobalt), var(--cobalt-bright));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* =====================================================
   Custom Cursor
   ===================================================== */
.cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--cobalt-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, opacity 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(232, 70, 55, 0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              opacity 0.2s, border-color 0.2s, background 0.35s;
  display: flex; align-items: center; justify-content: center;
}
.cursor-ring.expanded {
  width: 64px; height: 64px;
  border-color: rgba(232, 70, 55, 0.45);
  background: var(--cobalt-dim);
}
.cursor-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cobalt-bright);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
}
.cursor-ring.expanded .cursor-label { opacity: 1; }

/* =====================================================
   Navigation
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.88;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 1; }

.nav-links-wrap {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-pill {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: 0; width: 0;
  height: 32px;
  background: var(--cobalt-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: left 0.35s var(--ease), width 0.35s var(--ease), opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: 8px;
  transition: color 0.25s;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-right { flex-shrink: 0; }

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  color: var(--cobalt-bright);
  background: var(--cobalt-dim);
  transition: all 0.25s var(--ease);
  display: inline-flex; align-items: center;
}
.btn-sm:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
  box-shadow: 0 4px 20px var(--cobalt-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(2px, 2px);
}
.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(2px, -2px);
}
.nav-mobile {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(9, 9, 11, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(24px);
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 24px;
}
.nav-mobile a {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text); }
.nav-mobile.open {
  max-height: 320px;
  padding: 8px 24px 28px;
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 70% 40%, rgba(232,70,55,0.035) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}

.hero-bg-num {
  position: absolute;
  right: -0.05em;
  bottom: 60px;
  font-family: var(--display);
  font-size: clamp(200px, 28vw, 420px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,70,55,0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-grid {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: calc(var(--nav-h) + 96px) 40px 72px;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Left ── */
.hero-left { display: flex; flex-direction: column; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.12em;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-in 0.6s var(--ease) 0.1s forwards;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 7px 14px 7px 10px;
  background: rgba(255,255,255,0.02);
  width: fit-content;
  text-transform: uppercase;
}
.hero-eyebrow-text { color: var(--text-2); }
.hero-eyebrow-loc {
  margin-left: 4px;
  color: var(--text-3);
  border-left: 1px solid var(--border-subtle);
  padding-left: 10px;
}
.hero-status-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  animation: pulse-green 2.5s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 6px var(--green); }
  50% { box-shadow: 0 0 14px var(--green), 0 0 4px var(--green); }
}

.hero-name {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  overflow: visible;
}
.hero-line {
  display: block;
  font-family: var(--display);
  font-size: clamp(52px, 6.5vw, 92px);
  font-weight: 400;
  color: var(--text);
  clip-path: inset(-20px 100% -20px 0);
  animation: wipe-in 1s var(--ease) forwards;
}
.hero-line-dim {
  color: var(--text-2);
  animation-delay: 0.22s;
}
@keyframes wipe-in {
  to { clip-path: inset(-20px 0% -20px 0); }
}

.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--cobalt-bright);
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-in 0.5s var(--ease) 0.55s forwards;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.75;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  clip-path: inset(-20px 100% -20px 0);
  animation: wipe-in 0.9s var(--ease) 0.42s forwards;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-in 0.6s var(--ease) 0.75s forwards;
}

@keyframes fade-in { to { opacity: 1; } }

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Hero meta bar ── */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fade-in 0.6s var(--ease) 0.95s forwards;
}
.hero-avail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}
.hero-avail::after {
  content: '|';
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cobalt-bright);
  animation: caret-blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-avail-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.hero-divider-v {
  width: 1px; height: 12px;
  background: var(--border-subtle);
  flex-shrink: 0;
}
.hero-email-hint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.hero-email-hint:hover { color: var(--cobalt-bright); }

/* ── Scroll hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-in 0.6s var(--ease) 1.4s forwards;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--cobalt-bright), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.1); }
}
.hero-scroll-hint span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ── Blueprint / Right ── */
.hero-right {
  position: relative;
  opacity: 0;
  animation: fade-in 0.7s var(--ease) 0.55s forwards;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 300px;
}

/* ─────────────────────────────────────────────────────────
   Production Console — replaces the bare canvas hero element.
   Three stacked panes (log tail / architecture / telemetry)
   wrapped in a subtle window-chrome frame with a status bar.

   Each pane is a logical layer of an engineering monitoring
   screen: the tail tells you what just happened, the canvas
   shows the system, the telemetry tells you it's healthy.
   They share an accent palette and a 'live · ignazio@prod-rag'
   header so the whole thing reads as one running system.
   ───────────────────────────────────────────────────────── */
.console {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 920px;
  background: linear-gradient(180deg, #0c0c0e 0%, #08080a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
  /* Soft outer shadow so the console "lifts" off the hero
     background — same focal pull trick the canvas had with
     the corner vignette, but now applied to the whole frame. */
  box-shadow:
    0 24px 64px -24px rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.02) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset;
}

/* Console title bar — looks like a real terminal/IDE header.
   Live status dot pulses, host slug is muted, trace ID
   updates each time a new query fires through the canvas. */
.console-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cb-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}
.cb-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: cb-pulse 2.2s ease-in-out infinite;
}
@keyframes cb-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
.cb-status-text {
  letter-spacing: 0.2em;
}
.cb-host {
  color: var(--text-2);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-size: 10px;
}
.cb-trace {
  margin-left: auto;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: lowercase;
  font-size: 9.5px;
}
#cb-trace-id {
  color: var(--text-2);
  font-feature-settings: "tnum";
}

/* Pane base — each of the 3 panes shares this scaffold:
   a tiny LABEL strip across the top and a body below.
   Borders between panes are 1px subtle, no rounded corners
   inside the frame. */
.console-pane {
  position: relative;
  border-top: 1px solid var(--border-subtle);
}
.console-pane:first-of-type { border-top: none; }
.cp-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px 6px;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-subtle);
}
.cp-label-text {
  color: var(--text-2);
}
.cp-label-meta {
  color: var(--text-3);
  font-size: 8px;
  letter-spacing: 0.18em;
}

/* ── Log tail pane ──────────────────────────────────────
   New lines append at the bottom, oldest fade. Mimics the
   rhythm of a real `tail -f`: top lines slightly older
   (lower opacity), bottom line freshest. */
.console-pane-tail {
  background: linear-gradient(180deg, rgba(255,255,255,0.008) 0%, transparent 100%);
}
.log-tail {
  list-style: none;
  margin: 0;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  min-height: 110px;
  max-height: 110px;
  overflow: hidden;
  /* fade out at the top edge so older lines look like they're
     scrolling off into the past */
  mask-image: linear-gradient(180deg, transparent 0, #000 16px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px);
}
.log-tail li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* per-line fade-in animation */
  animation: log-fadein 0.4s ease-out both;
}
@keyframes log-fadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.log-tail li.lt-old {
  opacity: 0.42;
}
.log-tail li.lt-older {
  opacity: 0.22;
}
.log-tail li.lt-oldest {
  opacity: 0.12;
}
.lt-time {
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.lt-arrow {
  color: var(--cobalt-bright);
  flex-shrink: 0;
}
.lt-stage {
  color: var(--text);
  letter-spacing: 0.04em;
}
.lt-detail {
  color: var(--text-3);
  font-size: 10.5px;
}
.lt-latency {
  margin-left: auto;
  color: var(--text-2);
  font-feature-settings: "tnum";
  font-size: 10.5px;
  flex-shrink: 0;
  padding-left: 8px;
}
.lt-latency-slow { color: var(--copper); }
.lt-event {
  color: var(--text);
}
.lt-event .lt-stage { color: var(--cobalt-bright); }
.lt-200 .lt-latency { color: var(--green); }

/* ── Architecture pane ───────────────────────────────────
   Hosts the existing pipeline canvas. The canvas keeps its
   internal coordinate system (900×320) but its CSS scaling
   makes it fit comfortably inside the pane. */
.console-pane-arch {
  background: rgba(0, 0, 0, 0.18);
}
.console-pane-arch .blueprint-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  opacity: 0.96;
}

/* ── Telemetry strip ─────────────────────────────────────
   Horizontal row of metric cells separated by hairline
   dividers. Each cell: label · sparkline · value.
   Mirrors the How I Work Monitor artifact, but inline. */
.console-pane-metrics {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.01) 100%);
}
.metrics-strip {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: center;
  padding: 12px 0;
}
.metric-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
  min-width: 0;
}
.metric-sep {
  width: 1px;
  height: 22px;
  background: var(--border-subtle);
  justify-self: center;
}
.m-name {
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 9px;
  flex-shrink: 0;
}
.m-spark {
  flex: 1;
  width: 100%;
  height: 12px;
  color: var(--cobalt-bright);
  opacity: 0.78;
  overflow: visible;
  min-width: 0;
}
.metric-cell-warn .m-spark {
  color: var(--copper);
}
.metric-cell-warn .m-num {
  color: var(--copper);
}
.m-val {
  color: var(--text);
  font-feature-settings: "tnum";
  font-size: 11px;
  flex-shrink: 0;
  white-space: nowrap;
}
.m-unit {
  color: var(--text-3);
  font-size: 9.5px;
  margin-left: 1px;
}

/* ── Responsive ──────────────────────────────────────────
   Below 1100px the metrics strip thins to 2 rows. Below
   720px the console becomes more compact (smaller paddings,
   tighter log lines). */
@media (max-width: 1100px) {
  .metrics-strip {
    grid-template-columns: 1fr 1px 1fr;
    grid-template-rows: 1fr 1px 1fr;
    row-gap: 10px;
  }
  .metric-sep:nth-of-type(2n) {
    grid-column: 1 / -1;
    width: 100%;
    height: 1px;
  }
}
@media (max-width: 720px) {
  .console { border-radius: 8px; }
  .console-bar { padding: 8px 12px; gap: 10px; }
  .cb-host { display: none; }
  .log-tail { padding: 8px 12px 10px; min-height: 96px; max-height: 96px; font-size: 10px; }
  .lt-detail { display: none; }
  .cp-label { padding: 6px 12px 5px; }
  .metric-cell { padding: 0 12px; gap: 8px; font-size: 10px; }
}

.blueprint-canvas {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  opacity: 0.96;
}

/* ── Hero Strip ── */
.hero-strip {
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(8px);
}
.hero-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: stretch;
}
.strip-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 24px 0;
  flex: 1;
  align-items: center;
}
.strip-n {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.03em;
}
.strip-l {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-align: center;
}
.strip-div {
  width: 1px;
  background: var(--border-subtle);
  align-self: stretch;
  margin: 18px 0;
}

/* =====================================================
   Shared Section Styles
   ===================================================== */
.section { padding: 120px 0; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-header { margin-bottom: 56px; }

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(232, 70, 55, 0.50);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  font-family: var(--display);
}
.section-title em {
  color: var(--copper);
}

.body-text {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 540px;
  letter-spacing: -0.01em;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--cobalt);
  color: #fff;
  border: 1px solid rgba(232, 70, 55, 0.3);
}
.btn-primary:hover {
  background: var(--cobalt-bright);
  border-color: var(--cobalt-bright);
  box-shadow: 0 6px 28px var(--cobalt-glow), 0 2px 8px rgba(232, 70, 55, 0.15);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--cobalt-dim);
  color: var(--text);
}
.btn-large { padding: 15px 32px; font-size: 15px; }

/* =====================================================
   About
   ===================================================== */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: start;
}

.about-copy { display: flex; flex-direction: column; gap: 20px; }

/* ── Arc Timeline ── */
.about-arc {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.arc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.arc-item:last-child { border-bottom: none; }
.arc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
  border: 1px solid var(--text-3);
}
.arc-dot-active {
  background: var(--cobalt-bright);
  border-color: var(--cobalt-bright);
  box-shadow: 0 0 8px var(--cobalt-glow);
}
.arc-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  flex: 1;
}
.arc-current .arc-label { color: var(--text); }
.arc-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.arc-current .arc-meta { color: var(--cobalt-bright); }

/* ── Portrait ── */
.about-portrait {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.8s var(--ease);
}
.portrait-frame:hover .portrait-img {
  transform: scale(1.03);
}

.portrait-fallback .portrait-img { display: none; }
.portrait-fallback-inner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-3) 100%);
}
.portrait-fallback .portrait-fallback-inner { display: flex; }

.portrait-frame::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.65), transparent);
  pointer-events: none;
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}
.caption-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.caption-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.caption-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}

/* =====================================================
   Process
   ===================================================== */
.process { background: var(--bg); }

.process-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}
/* The legacy .process-steps / .step-* rules from earlier iterations
   were removed when the section was rebuilt as a phase stack with
   artifact previews — see the .process-stack / .phase-* block below. */

/* =====================================================
   Experience
   ===================================================== */
.work { background: var(--bg-2); }

.xp-list { display: flex; flex-direction: column; }
.xp-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
}
.xp-item:last-child { border-bottom: none; }

.xp-meta { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; flex-shrink: 0; }
.xp-period { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.04em; }
.xp-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--text-3);
  border: 1px solid var(--border);
  width: fit-content;
}
.xp-badge-live {
  background: var(--cobalt-dim);
  color: var(--cobalt-bright);
  border-color: var(--border-hover);
}

.xp-content { display: flex; flex-direction: column; gap: 12px; }
.xp-top { display: flex; align-items: flex-start; justify-content: space-between; }
.xp-role {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.xp-company { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 4px; letter-spacing: 0.03em; }
.xp-arrow { font-size: 18px; color: var(--text-3); transition: color 0.25s, transform 0.25s var(--ease); margin-top: 2px; }
.xp-item:hover .xp-arrow { color: var(--cobalt-bright); transform: translateX(4px); }
.xp-desc { font-size: 14px; color: var(--text-2); line-height: 1.75; max-width: 600px; letter-spacing: -0.01em; }
.xp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.xp-tags span {
  padding: 3px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}

/* =====================================================
   Stack
   ===================================================== */
.stack { background: var(--bg); }

.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.stack-tags-col { display: flex; flex-direction: column; gap: 28px; }
.tag-group { display: flex; flex-direction: column; gap: 10px; }
.tag-group-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--cobalt-bright);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  padding: 6px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  cursor: default;
  transition: all 0.2s var(--ease);
}
.tags span:hover {
  background: var(--cobalt-dim);
  border-color: var(--border-hover);
  color: var(--text);
}
.tags span::after,
.pc-stack span::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: none;
  pointer-events: none;
}
.tags span,
.pc-stack span { position: relative; overflow: hidden; }
.tags span:hover::after,
.pc-stack span:hover::after {
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

.stack-philosophy { display: flex; flex-direction: column; gap: 32px; padding-top: 4px; }

.philosophy-quote {
  font-family: var(--display);
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--text);
  line-height: 1.55;
  padding-left: 20px;
  border-left: 2px solid var(--copper);
  font-weight: 400;
  font-style: italic;
}

.philosophy-points { display: flex; flex-direction: column; gap: 20px; }
.philo-point { display: flex; flex-direction: column; gap: 6px; }
.philo-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.philo-point p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* =====================================================
   Projects
   ===================================================== */
.projects { background: var(--bg-2); }

.project-strip {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 28px;
  margin-bottom: 2px;
  background: var(--bg-3);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.project-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cobalt) 0%, var(--copper) 45%, var(--cobalt-bright) 100%);
  background-size: 200% 100%;
  animation: accent-shimmer 5s linear infinite;
}
.project-strip:hover {
  border-color: var(--border-hover);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
@keyframes accent-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.ps-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ps-label { font-family: var(--mono); font-size: 10px; color: var(--cobalt-bright); letter-spacing: 0.14em; text-transform: uppercase; }
.ps-num { font-family: var(--mono); font-size: 10px; color: var(--text-3); }

.ps-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 28px; }
.ps-name {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.ps-desc { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }
.ps-metrics { display: flex; gap: 16px; flex-wrap: wrap; }
.ps-metrics span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.04em;
}
.ps-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.ps-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.ps-stack span {
  padding: 3px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}
.ps-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cobalt-bright);
  white-space: nowrap;
  transition: gap 0.25s var(--ease), color 0.2s;
  padding: 8px 0;
}
.ps-cta:hover { gap: 10px; color: #fff; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border-subtle);
  margin-top: 2px;
}
.project-card {
  background: var(--bg-3);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background 0.25s;
}
.project-card:hover { background: var(--surface); }
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cobalt), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.project-card:hover::before { transform: scaleX(1); }

.pc-header { display: flex; justify-content: space-between; align-items: center; }
.pc-cat { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.pc-num { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.project-card h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.project-card p { font-size: 13px; color: var(--text-2); line-height: 1.7; flex: 1; }
.pc-stack { display: flex; flex-wrap: wrap; gap: 4px; }
.pc-stack span {
  padding: 3px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}
.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  transition: color 0.25s, gap 0.25s var(--ease);
  width: fit-content;
  margin-top: 4px;
}
.project-card:hover .pc-link { color: var(--cobalt-bright); gap: 8px; }

/* Category group headers */
.pg-category {
  grid-column: 1 / -1;
  padding: 18px 28px 10px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
}
.pg-category:first-child { border-top: none; }
.pg-category-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt-bright);
}

/* Private repo badge */
.pc-private-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 7px;
  vertical-align: middle;
  margin-left: 10px;
}
.project-card-private h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.pc-link-private {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  cursor: default;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* =====================================================
   Contact
   ===================================================== */
.contact { background: var(--bg); }

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  border-top: 1px solid var(--border-subtle);
  padding-top: 56px;
}
.contact-top { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 32px); }
.contact-heading {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
}
.contact-heading em { color: var(--copper); }

.contact-body { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.contact-desc { font-size: 15px; color: var(--text-2); line-height: 1.75; letter-spacing: -0.01em; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.contact-divider::before, .contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.social-links { display: flex; gap: 6px; flex-wrap: wrap; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.25s var(--ease);
}
.social-link:hover {
  background: var(--cobalt-dim);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}

/* =====================================================
   Footer
   ===================================================== */
.footer { border-top: 1px solid var(--border-subtle); padding: 24px 0; background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-left { display: flex; align-items: center; gap: 20px; }
.footer-logo { font-family: var(--display); font-size: 14px; font-weight: 400; color: var(--text); letter-spacing: -0.01em; }
.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}
.footer-dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.footer-github {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.footer-github:hover { color: var(--cobalt-bright); }
.footer-links { display: flex; align-items: center; gap: 24px; }

/* =====================================================
   Hero Ambient Orbs
   ===================================================== */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232, 70, 55, 0.08) 0%, transparent 70%);
  right: -60px; top: -100px;
  animation: orb-drift-a 22s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(196, 120, 58, 0.06) 0%, transparent 70%);
  right: 200px; bottom: 60px;
  animation: orb-drift-b 18s ease-in-out infinite;
  animation-delay: -9s;
}
@keyframes orb-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-30px, 25px) scale(1.04); }
  66%  { transform: translate(20px, -28px) scale(0.96); }
}
@keyframes orb-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(25px, -20px) scale(1.06); }
  70%  { transform: translate(-15px, 18px) scale(0.94); }
}

/* =====================================================
   3D Tilt (applied via JS)
   ===================================================== */
.project-card, .project-strip {
  transform-style: flat;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.project-card:hover {
  box-shadow: 0 0 0 1px rgba(220, 50, 40, 0.3), 0 8px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}
.project-strip:hover {
  box-shadow: 0 0 0 1px rgba(220, 50, 40, 0.25), 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* =====================================================
   Tech Marquee
   ===================================================== */
.tech-marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-2);
  padding: 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.marquee-inner span {
  padding: 13px 20px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.08em;
  white-space: nowrap;
  border-right: 1px solid var(--border-subtle);
  transition: color 0.2s, background 0.2s;
}
.marquee-inner span:hover {
  color: var(--cobalt-bright);
  background: var(--cobalt-dim);
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   Contact Ambient Glow
   ===================================================== */
.contact {
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(232, 70, 55, 0.05) 0%, transparent 65%);
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.contact .container { position: relative; z-index: 1; }

/* =====================================================
   Section Glow Dividers
   ===================================================== */
.about::before,
.work::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 70, 55, 0.14) 50%, transparent);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr 360px; gap: 56px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-bg-num { display: none; }
  .hero-grid { padding-top: calc(var(--nav-h) + 64px); }
  .hero-scroll-hint { display: none; }
  .hero-right { padding: 8px 0 32px; }
  .blueprint-canvas { max-width: 720px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { position: static; max-width: 380px; }
  .stack-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-block { grid-template-columns: 1fr; gap: 40px; }
  .contact-top { position: static; }
  .ps-body { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .nav-links-wrap, .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 0 24px; }

  .hero-right { display: none; }
  .hero-grid { padding: calc(var(--nav-h) + 48px) 24px 40px; }
  .hero-strip-inner { padding: 0 24px; }
  .strip-l { display: none; }
  .strip-stat { padding: 18px 0; }

  .section { padding: 80px 0; }
  .container { padding: 0 24px; }

  /* Process header: title + lede stack vertically (was a tight 2-col flex). */
  .process-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .process-lede { max-width: none; }

  /* Engagement banner wraps to 2 lines without dead space at the meta gap. */
  .engagement-banner { flex-wrap: wrap; row-gap: 4px; }

  /* Phase artifact (spec.md, eval-results, etc) — keep code blocks scrollable
     instead of overflowing when example lines are too wide for the column. */
  .phase-artifact { overflow-x: auto; }

  /* About arc — label and meta stack so the role title (e.g. "Software Engineer
     & Founder") never gets squeezed by the long mono meta line. The 480
     breakpoint isn't enough — the about-copy column stays narrow up to 768. */
  .arc-item { flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
  .arc-dot { margin-top: 8px; }
  .arc-label { flex: 0 0 calc(100% - 20px); }
  .arc-meta { flex: 0 0 calc(100% - 20px); margin-left: 20px; line-height: 1.5; }

  .process-steps { grid-template-columns: 1fr; }
  .xp-item { grid-template-columns: 1fr; gap: 12px; }
  .xp-meta { flex-direction: row; align-items: center; gap: 12px; }
  .xp-arrow { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-strip { padding: 24px 20px; }
  .ps-footer { flex-direction: column; align-items: flex-start; }
  /* Flagship strip dual CTAs (Live · URL  +  Source) — stack on mobile so
     long URLs don't get clipped or push the second CTA off-row. */
  .ps-actions { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
  .ps-cta { width: 100%; }
  .ps-cta-live { word-break: break-all; }

  .contact-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-line { font-size: clamp(44px, 13vw, 72px); }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-divider-v { display: none; }
  .hero-eyebrow { flex-wrap: wrap; }
  .about-portrait { max-width: 100%; }
  .hero-sub { margin-bottom: 32px; }
  .process-step { padding: 28px 24px; }
  .project-card { padding: 24px 20px 20px; }

  /* Intake row gap shrinks slightly so the form feels less spacious. */
  .intake-row { gap: 1rem; }
}

/* ─── Intake Form ─────────────────────────────────────────────────────────── */
.intake-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.intake-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}
@media (max-width: 600px) {
  .intake-row { grid-template-columns: 1fr; }
}
.intake-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.intake-field label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.intake-field input,
.intake-field select,
.intake-field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.intake-field input::placeholder,
.intake-field textarea::placeholder {
  color: var(--text-3);
}
.intake-field input:focus,
.intake-field select:focus,
.intake-field textarea:focus {
  border-color: var(--cobalt-bright);
  background: rgba(232, 70, 55, 0.03);
  box-shadow: 0 0 0 3px rgba(232, 70, 55, 0.08);
}
.intake-field select option {
  background: var(--bg-3);
  color: var(--text);
}
.intake-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23454545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.intake-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}
.intake-success {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}
.intake-error {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cobalt-bright);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* =====================================================
   Focus Visible (accessibility)
   ===================================================== */
:focus-visible {
  outline: 2px solid var(--cobalt-bright);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cobalt-bright);
  outline-offset: 2px;
}

/* =====================================================
   Selection
   ===================================================== */
::selection {
  background: rgba(232, 70, 55, 0.2);
  color: var(--text);
}

/* =====================================================
   Touch devices — disable custom cursor
   ===================================================== */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  button { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* =====================================================
   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 { opacity: 1; transform: none; }
  .grain { animation: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   Custom Scrollbar
   ===================================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 4px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
html { scrollbar-color: var(--surface-2) var(--bg); scrollbar-width: thin; }

/* =====================================================
   Disabled Button State
   ===================================================== */
.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* =====================================================
   Form Validation States
   ===================================================== */
.intake-field input:invalid:not(:placeholder-shown):not(:focus),
.intake-field textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(239, 68, 68, 0.4);
}
.intake-field input:valid:not(:placeholder-shown),
.intake-field textarea:valid:not(:placeholder-shown) {
  border-color: rgba(34, 197, 94, 0.2);
}

/* =====================================================
   Hero scroll-hint fade on scroll (JS adds .scrolled)
   ===================================================== */
.hero-scroll-hint.faded { opacity: 0; transition: opacity 0.4s; }

/* =====================================================
   Smooth section edge blending
   ===================================================== */
.about::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 70, 55, 0.10) 50%, transparent);
}
.process::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04) 50%, transparent);
}
.stack::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 70, 55, 0.10) 50%, transparent);
}

/* =====================================================
   Experience hover accent
   ===================================================== */
.xp-item {
  border-left: 2px solid transparent;
  padding-left: 0;
  margin-left: -2px;
  transition: border-color 0.3s, background 0.2s;
}
.xp-item:hover {
  border-left-color: var(--cobalt-bright);
}

/* =====================================================
   v3 — Process upgrade (5 phases with deliverables)
   ===================================================== */

.process-lede {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 540px;
  margin-top: 18px;
  letter-spacing: -0.005em;
}

/* ─────────────────────────────────────────────────────────
   How I Work — phase stack with deliverable artifacts.

   Each phase is a 3-column grid: meta (number + duration) /
   body (title + philosophy + deliverables) / artifact (a
   concrete, representative deliverable preview — spec sheet,
   FastAPI snippet, eval bars, terminal output, mini dashboard).

   The artifacts are what make the section convincing. A
   process page that only describes deliverables in bullet
   form reads as marketing; one that *shows* the artifact
   reads as the actual work. Authority comes from showing,
   not summarizing.
   ───────────────────────────────────────────────────────── */
/* Engagement banner — small mono strip above the stack that frames
   all 5 phases as one representative engagement. Without this, the
   stack reads as 5 disconnected screenshots; with it, they read as
   one production engagement told in 5 frames. */
.engagement-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px 0;
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eb-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: eb-pulse 2.4s ease-in-out infinite;
}
@keyframes eb-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.eb-label {
  color: var(--text);
  letter-spacing: 0.2em;
}
.eb-sep {
  color: var(--text-3);
}
.eb-meta {
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.process-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.phase {
  display: grid;
  grid-template-columns: 116px 1fr 1.05fr;
  gap: 36px;
  padding: 38px 36px 38px 28px;
  background: var(--bg);
  transition: background 0.25s;
}
.phase:hover {
  background: var(--bg-2);
}

/* ── Meta column (number badge + duration caption) ── */
.phase-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 6px;
}
.phase-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 30px;
  background: var(--bg-2);
  border: 1px solid var(--cobalt-dim);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cobalt-bright);
  letter-spacing: 0.12em;
  font-feature-settings: "tnum";
  transition: border-color 0.25s, color 0.25s;
}
.phase:hover .phase-n {
  border-color: var(--cobalt-bright);
}
.phase-duration {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-left: 4px;
  white-space: nowrap;
}

/* ── Body column (title + philosophy + deliverables) ── */
.phase-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.phase-title {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.phase-philosophy {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
  letter-spacing: -0.005em;
  max-width: 56ch;
}
.phase-deliverables {
  list-style: none;
  padding: 14px 0 0 0;
  margin: 6px 0 0 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase-deliverables li {
  position: relative;
  padding-left: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.55;
  letter-spacing: 0.01em;
}
.phase-deliverables li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cobalt-bright);
  opacity: 0.6;
}

/* ── Artifact column (the deliverable preview itself) ──
   All artifacts share the same container chrome — dark surface,
   header with file/label + meta tag, padded body. The body
   varies per artifact type (pre-formatted text, eval bars,
   terminal-styled output, sparkline dashboard). */
.phase-artifact {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--mono);
  align-self: flex-start;
  width: 100%;
  min-width: 0;
  transition: border-color 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.phase:hover .phase-artifact {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(232, 70, 55, 0.04);
}
.artifact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-3);
}
.artifact-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.artifact-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.artifact-body {
  margin: 0;
  padding: 14px 16px;
  white-space: pre;
  overflow-x: auto;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
}

/* Spec artifact — 'key: value' pairs.
   Keys in cobalt accent, separator dim, values in body color. */
.phase-artifact-spec .ak {
  color: var(--cobalt-bright);
  opacity: 0.92;
}
.phase-artifact-spec .ap {
  color: var(--text-3);
}

/* Code artifact — Python/FastAPI snippet.
   Keywords soft-blue, strings cobalt, decorators warm, numbers warm. */
.phase-artifact-code .ck { color: #9aa6d3; }       /* keyword */
.phase-artifact-code .cs { color: #d96553; }       /* string  */
.phase-artifact-code .cd { color: #c9a87c; }       /* decorator */
.phase-artifact-code .cf { color: var(--text); }   /* function name */
.phase-artifact-code .cn { color: #c9a87c; }       /* number */

/* Terminal artifact — curl + JSON response. */
.phase-artifact-terminal .tp { color: #6ae08a; }   /* shell prompt */
.phase-artifact-terminal .tk { color: #9aa6d3; }   /* json key */
.phase-artifact-terminal .ts { color: #d96553; }   /* string */
.phase-artifact-terminal .tn { color: #c9a87c; }   /* number */

/* Blinking cursor at the end of the response — sells "this is a live
   session" rather than "this is a screenshot of a session." */
.term-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--text);
  animation: term-blink 1.05s steps(1, end) infinite;
}
@keyframes term-blink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Eval artifact — horizontal bars per metric. */
.eval-rows {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.eval-row {
  display: grid;
  grid-template-columns: 130px 1fr 92px;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
}
.eval-name {
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.eval-track {
  height: 4px;
  background: var(--border-subtle);
  border-radius: 1px;
  overflow: hidden;
}
.eval-fill {
  height: 100%;
  width: 0;                          /* default — animates to var(--w) */
  background: var(--cobalt-bright);
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(232, 70, 55, 0.35);
  /* Long-ease-out: feels like a meter charging up rather than a
     spring. cubic-bezier(0.16, 1, 0.3, 1) is the brand ease-out. */
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.eval-fill-warn {
  background: var(--copper);
  box-shadow: inset 0 0 0 1px rgba(196, 120, 58, 0.35);
}
/* When the phase scrolls into view (.reveal.visible is added by the
   site-wide IntersectionObserver), each eval bar fills to its target
   width, staggered per row so the meters read as charging up
   sequentially rather than slamming in unison. */
.phase.visible .eval-fill { width: var(--w); }
.phase.visible .eval-row:nth-child(1) .eval-fill { transition-delay: 0.08s; }
.phase.visible .eval-row:nth-child(2) .eval-fill { transition-delay: 0.20s; }
.phase.visible .eval-row:nth-child(3) .eval-fill { transition-delay: 0.32s; }
.phase.visible .eval-row:nth-child(4) .eval-fill { transition-delay: 0.44s; }
.phase.visible .eval-row:nth-child(5) .eval-fill { transition-delay: 0.56s; }

.eval-val {
  color: var(--text);
  text-align: right;
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.eval-delta {
  margin-left: 4px;
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.eval-delta-warn {
  color: var(--copper);
}
.eval-row-warn .eval-name {
  color: var(--copper);
}

/* Dashboard artifact — sparklines per metric. */
.dash-rows {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-row {
  display: grid;
  grid-template-columns: 96px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
}
.dash-name {
  letter-spacing: 0.02em;
}
.dash-spark {
  width: 100%;
  height: 14px;
  color: var(--cobalt-bright);
  opacity: 0.85;
  overflow: visible;
}
.dash-row-warn {
  color: var(--copper);
}
.dash-row-warn .dash-spark {
  color: var(--copper);
}
.dash-val {
  color: var(--text);
  text-align: right;
  font-feature-settings: "tnum";
}
.dash-unit {
  color: var(--text-3);
  font-size: 9.5px;
  margin-left: 1px;
}

/* ── Responsive ────────────────────────────────────────
   Below 1100px the artifact drops below the body block (still
   visible, still tangible). Below 700px the whole phase
   collapses to single column with horizontal meta strip. */
@media (max-width: 1100px) {
  .phase {
    grid-template-columns: 116px 1fr;
    grid-template-rows: auto auto;
    row-gap: 24px;
  }
  .phase-artifact {
    grid-column: 2 / -1;
  }
}
@media (max-width: 700px) {
  .phase {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 22px;
  }
  .phase-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding-top: 0;
  }
  .phase-n {
    width: 52px;
    height: 26px;
    font-size: 10px;
  }
  .phase-title {
    font-size: 24px;
  }
  .phase-philosophy {
    font-size: 13.5px;
  }
  .phase-deliverables li {
    font-size: 11px;
  }
  .phase-artifact {
    grid-column: 1 / -1;
  }
  .eval-row {
    grid-template-columns: 110px 1fr 50px;
    font-size: 10px;
  }
  .dash-row {
    grid-template-columns: 80px 1fr 56px;
    font-size: 10px;
  }
  .artifact-body {
    font-size: 10.5px;
  }
}

/* =====================================================
   v3 — Experience pre-history note
   ===================================================== */

.xp-prehistory {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--bg-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  letter-spacing: -0.005em;
  font-style: italic;
}

/* =====================================================
   v3 — Status pills (live / active / shipped / private)
   ===================================================== */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-2);
  white-space: nowrap;
  line-height: 1;
}
.status-pill-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-pill-live {
  color: var(--cobalt-bright);
  background: var(--cobalt-dim);
  border-color: var(--border-hover);
}
.status-pill-live .status-pill-dot {
  position: relative;
}
.status-pill-live .status-pill-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  animation: status-pill-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes status-pill-ping {
  0%   { transform: scale(1);   opacity: 0.45; }
  75%  { transform: scale(2.2); opacity: 0;    }
  100% { transform: scale(2.2); opacity: 0;    }
}
.status-pill-active {
  color: var(--green);
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
}
.status-pill-shipped {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border-subtle);
}
.status-pill-private {
  color: var(--copper);
  background: var(--copper-dim);
  border-color: rgba(196, 120, 58, 0.22);
}

/* =====================================================
   v3 — Project strip actions row (NexusRAG flagship)
   ===================================================== */

.ps-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ps-cta-live {
  color: var(--cobalt-bright);
  border-color: var(--cobalt-bright);
}
.ps-cta-live:hover {
  background: var(--cobalt-dim);
}

/* Restore .pc-header to flow status pills + num cleanly. v2 had
   only 2 children (cat + num); v3 adds a status pill in between. */
.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.pc-header .pc-cat { flex: 1 1 auto; min-width: 0; }
.pc-header .pc-num { flex-shrink: 0; }
.pc-header .status-pill { flex-shrink: 0; }

/* =====================================================
   v3 — Contact routing note
   ===================================================== */

.contact-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 14px 18px;
  margin: 0 0 28px 0;
  background: var(--bg-3);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--cobalt-bright);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.contact-note-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cobalt-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-note-arrow {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
}
.contact-note a {
  color: var(--text);
  border-bottom: 1px solid var(--border-hover);
  transition: border-color 0.2s, color 0.2s;
}
.contact-note a:hover {
  color: var(--cobalt-bright);
  border-bottom-color: var(--cobalt-bright);
}

/* =====================================================
   v3 — Hero strip stat link styling
   ===================================================== */

.strip-stat .strip-l a {
  color: var(--text-2);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.strip-stat .strip-l a:hover {
  color: var(--cobalt-bright);
  border-bottom-color: var(--cobalt-bright);
}

/* =====================================================
   Print
   ===================================================== */
@media print {
  .grain, .cursor-dot, .cursor-ring, .progress-bar,
  .hero-orb, .hero-scroll-hint, .nav, .tech-marquee { display: none; }
  body { cursor: auto; background: #fff; color: #111; }
  .section { padding: 40px 0; }
  .hero { min-height: auto; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 10px; color: #666; }
}

/* =====================================================
   Accessibility — skip link + reduced motion
   Added 2026-05-10 (SEO / a11y pass)
   ===================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--cobalt-bright);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(232, 70, 55, 0.4);
  transition: top 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Honor user motion preferences — disable autonomous animations. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grain,
  .hero-orb,
  .tech-marquee .marquee-track,
  .term-cursor {
    animation: none !important;
  }
}
