/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:           #000000;
  --bg-02:        #0a0a0a;
  --bg-03:        #0f0f0f;
  --border:       rgba(255, 255, 255, 0.06);
  --border-grid:  rgba(255, 255, 255, 0.04);
  --text:         #eaeaef;
  --text-muted:   #7a7a88;
  --accent:       #007aff;
  --accent-rgb:   0, 122, 255;
  --accent-muted: rgba(0, 122, 255, 0.12);
  /* Primary technical accent - warm amber / orange (replaces cyan) */
  --warm:         #ea8c3c;
  --warm-rgb:     234, 140, 60;
  /* Warm accent for metric “data viz” highlights (Hyperspell-like) */
  --ember:        #d4584a;
  --ember-rgb:    212, 88, 74;
  --radius:       8px;
  --radius-sm:    4px;
  --font:           'DM Sans', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Bitmap-style terminal face for hero headline */
  --font-terminal:  'VT323', ui-monospace, 'Courier New', monospace;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition:   0.4s var(--ease);
  --nav-height:   56px;
  /* CLI chrome - amber / orange (paired with .nav-bar--cli; site-wide) */
  --cli-fg:          rgba(255, 215, 185, 0.96);
  --cli-muted:       rgba(234, 170, 120, 0.88);
  --cli-faint:       rgba(185, 115, 70, 0.52);
  --cli-edge:        rgba(200, 105, 50, 0.45);
  --cli-edge-strong: rgba(234, 140, 60, 0.55);
  --cli-glow:        rgba(255, 145, 75, 0.26);
  --cli-underline:   rgba(255, 195, 145, 0.82);
  /* Film grain - same feTurbulence as .metric-spark (0.9 / 4 octaves, soft-light) */
  --grain-metric-spark: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Edge */
}

body {
  scrollbar-width: none; /* Firefox belt-and-suspenders */
}

/* Anchor targets clear fixed nav (also used by hero “journey” scroll math) */
section[id] {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul  { list-style: none; }

/* Dot-matrix ripple background canvas */
#dot-matrix-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Gutter scroll trail - narrow columns; below nav, above section content */
.scroll-edge-trail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(22px, 3.2vw, 38px);
  pointer-events: none;
  z-index: 30;
}
#scroll-edge-trail-left {
  left: 0;
}
#scroll-edge-trail-right {
  right: 0;
}

/* ============================================================
   DOT-MATRIX SCROLLBAR
   ============================================================ */
#dot-scrollbar {
  position: fixed;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 190;
  pointer-events: none;
}

.dsb-dot {
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  image-rendering: pixelated;
  transition: background 0.08s, box-shadow 0.08s;
}

.dsb-dot--filled {
  background: rgba(234, 140, 60, 0.22);
}

.dsb-dot--active {
  background: rgba(234, 140, 60, 0.92);
  box-shadow: 0 0 4px rgba(234, 140, 60, 0.55);
}

/* ============================================================
   HERO CTA → SCROLL JOURNEY (eased scroll HUD)
   ============================================================ */
.scroll-journey {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 20px max(10vh, 48px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 38%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.scroll-journey--open {
  opacity: 1;
  visibility: visible;
}

.scroll-journey-panel {
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, transparent 42%),
    rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 16px 16px;
  box-shadow:
    0 -12px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(32px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.scroll-journey--open .scroll-journey-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.scroll-journey-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scroll-journey-led {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: rgba(var(--warm-rgb), 0.95);
  box-shadow: 0 0 12px rgba(var(--warm-rgb), 0.65);
  animation: scroll-journey-led 0.9s ease-in-out infinite;
}

@keyframes scroll-journey-led {
  0%, 100% { opacity: 0.55; filter: brightness(0.9); }
  50%      { opacity: 1; filter: brightness(1.15); }
}

.scroll-journey-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--warm-rgb), 0.88);
  flex: 1;
}

.scroll-journey-badges {
  display: flex;
  gap: 6px;
}

.scroll-journey-badge {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
}

.scroll-journey-target {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.45;
  word-break: break-word;
}

.scroll-journey-ascii-wrap {
  position: relative;
  margin: 0 0 12px;
  border-radius: 2px;
  border: 1px solid rgba(var(--warm-rgb), 0.22);
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  box-shadow:
    inset 0 0 24px rgba(var(--warm-rgb), 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.scroll-journey-ascii-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.28) 2px,
    rgba(0, 0, 0, 0.28) 3px
  );
  opacity: 0.45;
  mix-blend-mode: multiply;
}

.scroll-journey-ascii {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: rgba(255, 205, 165, 0.9);
  text-shadow:
    0 0 6px rgba(var(--warm-rgb), 0.28),
    0 0 1px rgba(0, 0, 0, 0.8);
  white-space: pre;
  overflow: hidden;
  max-height: 7.5em;
  transition: color 0.15s ease;
}

.scroll-journey--open .scroll-journey-ascii {
  animation: scroll-journey-ascii-flicker 3.2s ease-in-out infinite;
}

@keyframes scroll-journey-ascii-flicker {
  0%, 100% { opacity: 1; filter: brightness(1); }
  48%      { opacity: 0.92; filter: brightness(1.05); }
  52%      { opacity: 1; filter: brightness(0.98); }
}

.scroll-journey-meta {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 10px 0 0;
}

.scroll-journey-quip {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: rgba(var(--warm-rgb), 0.82);
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 2px;
  border-left: 2px solid rgba(var(--warm-rgb), 0.45);
  background: rgba(var(--warm-rgb), 0.06);
  font-style: italic;
  min-height: 2.6em;
}

.scroll-journey-quip::before {
  content: '// ';
  opacity: 0.55;
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-journey-panel {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .scroll-journey-led {
    animation: none;
    opacity: 1;
  }
  .scroll-journey--open .scroll-journey-ascii {
    animation: none;
  }
}

/* ============================================================
   BACKGROUND - 64px layout grid + soft vignette
   (devtools / IDE inspired; static, no animation)
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    /* Major layout grid */
    linear-gradient(var(--border-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-grid) 1px, transparent 1px);
  background-size:
    64px 64px,
    64px 64px;
  background-position: 0 0, 0 0;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section { padding: 112px 0; }

.section-tech {
  border-top: 1px solid var(--cli-edge);
  background: linear-gradient(180deg, rgba(var(--warm-rgb), 0.06) 0%, transparent 36%);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 32px;
  align-items: start;
  margin-bottom: 40px;
}

.section-head-inline {
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}

.section-head-inline .section-index {
  margin-bottom: 16px;
  display: inline-block;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(var(--warm-rgb), 0.85);
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  line-height: 1;
}

.section-head-copy .section-label {
  margin-bottom: 10px;
}

.section-head-copy .section-title {
  margin-bottom: 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--warm-rgb), 0.75);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 20px;
}

.section-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.85;
}

/* CLI THEME - section headers */
.section-index {
  font-family: var(--font-terminal);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--cli-muted);
  border-color: var(--cli-edge);
  background: rgba(0, 0, 0, 0.5);
}

.section-label {
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--cli-muted);
}

[data-tilt] {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s var(--ease);
}

[data-tilt]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(var(--warm-rgb), 0.22), transparent 46%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

[data-tilt]:hover::before { opacity: 1; }

[data-tilt] > * {
  position: relative;
  z-index: 1;
}

/* Fade-up - IntersectionObserver */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition), transform var(--transition);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.07s; }
.stagger-2 { transition-delay: 0.14s; }
.stagger-3 { transition-delay: 0.21s; }
.stagger-4 { transition-delay: 0.28s; }
.stagger-5 { transition-delay: 0.35s; }
.stagger-6 { transition-delay: 0.42s; }
.stagger-7 { transition-delay: 0.49s; }

/* ============================================================
   NAV
   ============================================================ */
nav.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: var(--nav-height);
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  isolation: isolate;
  /* Frosted glass - page content shows through via backdrop blur as you scroll */
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.12);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease;
}

nav.scrolled {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(28px) saturate(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(1.08);
  border-bottom-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav-logo {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(234, 234, 239, 0.78);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links .btn-secondary.btn-tech::after { display: none; }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(var(--warm-rgb), 0.35);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-ghost:hover {
  background: rgba(var(--warm-rgb), 0.06);
  border-color: rgba(var(--warm-rgb), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--warm-rgb), 0.12);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
  z-index: 2;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background-color: rgba(0, 0, 0, 0.97);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 32%),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 31px,
      rgba(255, 255, 255, 0.04) 31px,
      rgba(255, 255, 255, 0.04) 32px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 24px
    );
  background-size: 100% 100%, 100% 32px, 24px 100%;
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

/* ── CLI-style nav (retro terminal / phosphor) ─────────────── */
nav.nav-bar--cli {
  border-bottom-color: var(--cli-edge);
  font-variant-numeric: tabular-nums;
}

nav.nav-bar--cli.scrolled {
  border-bottom-color: var(--cli-edge-strong);
}

nav.nav-bar--cli .nav-logo {
  font-family: var(--font-terminal);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--cli-fg);
  text-shadow: 0 0 14px var(--cli-glow);
}

nav.nav-bar--cli .nav-logo::before {
  content: '>';
  margin-right: 0.4em;
  color: var(--cli-faint);
  font-weight: 400;
}

nav.nav-bar--cli .nav-logo:hover {
  color: rgb(255, 232, 210);
}

nav.nav-bar--cli .nav-links {
  gap: 0;
}

nav.nav-bar--cli .nav-links li {
  display: inline-flex;
  align-items: center;
}

nav.nav-bar--cli .nav-links li + li::before {
  content: '//';
  color: var(--cli-faint);
  font-family: var(--font-terminal);
  font-size: 0.78rem;
  margin: 0 0.65rem;
  pointer-events: none;
  user-select: none;
}

nav.nav-bar--cli .nav-links a {
  font-family: var(--font-terminal);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: var(--cli-muted);
  padding-bottom: 0;
}

nav.nav-bar--cli .nav-links a::after {
  bottom: -2px;
  height: 1px;
  background: var(--cli-underline);
}

nav.nav-bar--cli .nav-links .btn-secondary.btn-tech::after {
  display: none;
}

nav.nav-bar--cli .nav-links a:hover {
  color: var(--cli-fg);
}

/* Nav CTA: same command-strip treatment as hero .btn-secondary.btn-tech, compact */
nav.nav-bar--cli .nav-links a.btn-secondary.btn-tech {
  border-radius: 2px;
  letter-spacing: 0.12em;
  text-transform: none;
  gap: 0;
  padding: 0;
  min-height: 34px;
  position: relative;
  z-index: 0;
  margin-left: 0.35rem;
  color: var(--cli-fg);
  border: 1px solid rgba(var(--warm-rgb), 0.45);
  border-left: 3px solid rgba(var(--warm-rgb), 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease),
    filter 0.35s var(--ease);
}

nav.nav-bar--cli .nav-links a.btn-secondary.btn-tech > * {
  position: relative;
  z-index: 1;
}

nav.nav-bar--cli .nav-links a.btn-secondary.btn-tech .btn-tech-idx {
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(var(--warm-rgb), 0.95);
  background: rgba(var(--warm-rgb), 0.08);
  border-right: 1px solid rgba(var(--warm-rgb), 0.25);
}

nav.nav-bar--cli .nav-links a.btn-secondary.btn-tech .btn-tech-label {
  flex: 1;
  padding: 0 12px 0 10px;
  font-family: var(--font-terminal);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-align: left;
}

nav.nav-bar--cli .nav-links a.btn-secondary.btn-tech .btn-tech-caret {
  flex-shrink: 0;
  margin-right: 10px;
  opacity: 0.85;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

nav.nav-bar--cli .nav-links a.btn-secondary.btn-tech:hover {
  color: #fff;
  border-color: rgba(var(--warm-rgb), 0.65);
  border-left: 3px solid rgba(var(--warm-rgb), 1);
  background: linear-gradient(180deg, rgba(var(--warm-rgb), 0.16), rgba(255, 255, 255, 0.05));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 10px 32px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(var(--warm-rgb), 0.22);
  transform: translateY(-2px);
}

nav.nav-bar--cli .nav-links a.btn-secondary.btn-tech:hover .btn-tech-caret {
  transform: translateX(4px);
  opacity: 1;
}

nav.nav-bar--cli .hamburger span {
  background: var(--cli-muted);
  box-shadow: 0 0 6px var(--cli-glow);
}

nav.nav-bar--cli .nav-links a:focus-visible,
nav.nav-bar--cli .nav-logo:focus-visible,
nav.nav-bar--cli .hamburger:focus-visible {
  outline: 1px solid rgba(255, 175, 110, 0.9);
  outline-offset: 3px;
}

.mobile-menu--cli {
  background: #030805;
  background-image: none;
  border-top: 1px solid var(--cli-edge);
}

.mobile-menu--cli .mobile-link {
  font-family: var(--font-terminal);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(140, 215, 165, 0.9);
}

.mobile-menu--cli .mobile-link::before {
  content: '> ';
  color: var(--cli-faint);
  margin-right: 0.15em;
}

.mobile-menu--cli .mobile-link:hover {
  color: rgb(255, 225, 200);
}

.mobile-menu--cli .mobile-link:focus-visible {
  outline: 1px solid rgba(255, 175, 110, 0.9);
  outline-offset: 4px;
}

/* ============================================================
   CLI THEME - journey HUD (uniform with nav)
   ============================================================ */
.scroll-journey-panel {
  border-color: var(--cli-edge);
  box-shadow:
    0 -12px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(var(--warm-rgb), 0.12);
}

.scroll-journey-chrome {
  border-bottom-color: rgba(var(--warm-rgb), 0.28);
}

.scroll-journey-led {
  background: rgba(255, 165, 95, 0.95);
  box-shadow: 0 0 12px var(--cli-glow);
}

.scroll-journey-label {
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--cli-muted);
}

.scroll-journey-badge {
  font-family: var(--font-terminal);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  border-color: var(--cli-edge);
  color: var(--cli-faint);
  background: rgba(0, 0, 0, 0.45);
}

.scroll-journey-target {
  font-family: var(--font-terminal);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cli-fg);
}

.scroll-journey-ascii {
  font-family: var(--font-terminal);
  font-size: 0.62rem;
}

.scroll-journey-meta {
  font-family: var(--font-terminal);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--cli-faint);
}

.scroll-journey-quip {
  font-family: var(--font-terminal);
  font-style: normal;
  border-left-color: var(--cli-edge-strong);
  background: rgba(var(--warm-rgb), 0.1);
  color: var(--cli-muted);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100svh;
  background: var(--bg);
  display: flex;
  justify-content: flex-start;
  /* Top-align so hero-copy sits just under the fixed nav instead of mid-viewport */
  align-items: flex-start;
  padding-top: calc(var(--nav-height) + 8px);
  position: relative;
  overflow: hidden;
}

/* Viewport-locked layer: height is NOT 100% of #hero, so growing .hero-inner
   does not resize the bitmap / particle buffer (see main.js resize → offsetHeight) */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  max-height: 100svh;
  z-index: 0;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  top: -8vh;
  right: -2%;
  width: 56%;
  height: 74vh;
  max-height: 100svh;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.04) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
}

/* Hero: override .container { margin: 0 auto } - inner nudge was invisible because
   the whole block stayed viewport-centered; pin column to the left with nav gutter */
#hero .hero-container.container {
  flex: 0 1 auto;
  margin-left: 40px;
  margin-right: auto;
  max-width: min(1120px, calc(100vw - 40px - 28px));
  width: 100%;
  padding-left: 0;
  padding-right: 28px;
  box-sizing: border-box;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 12px 0 120px;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-muted);
}

.mono-tag-icon {
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* Hero Sydney mark: no chip behind icon -only transparent PNG artwork */
.hero-kicker .mono-tag-icon {
  padding: 0;
  background: transparent;
  border: none;
}

.mono-tag-kicker-art {
  display: block;
  width: 64px;
  height: 36px;
  object-fit: contain;
  opacity: 0.95;
}

.mono-tag-accent {
  color: rgba(var(--warm-rgb), 0.95);
  border-color: rgba(var(--warm-rgb), 0.25);
  background: rgba(var(--warm-rgb), 0.05);
}

.hero-kicker-rule {
  flex: 1;
  min-width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--warm-rgb), 0.4), transparent);
}

.hero-name {
  font-family: var(--font-terminal);
  font-size: clamp(3.35rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.02;
  color: var(--text);
  margin-bottom: 28px;
  /* Sharper “CRT cell” read; VT323 is already bitmap-like */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.12),
    0 0 24px rgba(255, 255, 255, 0.04);
}

.hero-name em {
  font-style: normal;
  font-family: inherit;
  color: var(--accent);
  text-shadow:
    0 0 1px rgba(var(--accent-rgb), 0.5),
    0 0 36px rgba(var(--accent-rgb), 0.4);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

#experience .experience-overview.hero-metrics {
  margin-top: 32px;
}

.metric-panel {
  min-height: 200px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255,255,255,0.02) 0%, transparent 45%);
}

.metric-panel:last-child { border-right: none; }

.metric-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.metric-idx {
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--cli-muted);
}

.metric-key {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--text);
  max-width: 22ch;
}

.metric-panel-desc {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 42ch;
}

@media (min-width: 861px) {
  .experience-overview.hero-metrics .metric-panel:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }
  .experience-overview.hero-metrics .metric-panel:nth-child(3n) {
    border-right: none;
  }
}

.experience-overview.hero-metrics .metric-panel[data-tilt]::before {
  content: none;
}

.experience-overview.hero-metrics .metric-panel:hover {
  border-color: rgba(234, 140, 60, 0.55);
  box-shadow: inset 0 0 0 1px rgba(234, 140, 60, 0.12);
}

.experience-overview.hero-metrics .metric-panel:nth-child(n + 4) .metric-value {
  max-width: 36ch;
}

/* Bottom-row SVG slots: match .metric-signal / .metric-spark well (64px, square corners, grain) */
.experience-overview.hero-metrics .overview-visual.experience-visual-slot {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  isolation: isolate;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  padding-top: 4px;
  box-sizing: border-box;
  border-radius: 0;
}

.experience-overview.hero-metrics .overview-visual.experience-visual-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  mix-blend-mode: overlay;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.experience-overview.hero-metrics .overview-visual.experience-visual-slot > .overview-icon {
  position: relative;
  z-index: 2;
}

/* Experience overview row: bespoke mini-illustrations (systems / design / delivery) */
.experience-overview.hero-metrics .exp-viz-svg {
  display: block;
}

.experience-overview.hero-metrics .exp-sys-feedback {
  animation: overview-stroke-flow 11s linear infinite;
}

.experience-overview.hero-metrics .exp-sys-mod {
  fill: rgba(45, 28, 18, 0.5);
  stroke: rgba(234, 160, 105, 0.42);
  stroke-width: 1;
}

.experience-overview.hero-metrics .exp-sys-mod--core {
  animation: overview-stack-pulse 3.6s ease-in-out infinite;
}

.experience-overview.hero-metrics .exp-sys-port {
  fill: rgba(255, 255, 255, 0.35);
  stroke: rgba(180, 105, 55, 0.35);
  stroke-width: 0.6;
}

.experience-overview.hero-metrics .exp-sys-port--hot {
  fill: rgba(212, 88, 74, 0.88);
  stroke: rgba(255, 195, 145, 0.65);
  animation: overview-beacon 3.8s ease-in-out infinite;
}

.experience-overview.hero-metrics .exp-des-artboard {
  fill: rgba(20, 14, 10, 0.35);
  stroke: rgba(var(--warm-rgb), 0.32);
  stroke-width: 1;
}

.experience-overview.hero-metrics .exp-des-keyline {
  fill: none;
  stroke: rgba(234, 160, 105, 0.28);
  stroke-width: 0.85;
  stroke-dasharray: 3 5;
  animation: overview-stroke-flow 12s linear infinite;
}

.experience-overview.hero-metrics .exp-des-baseline {
  fill: none;
  stroke: rgba(160, 95, 55, 0.2);
  stroke-width: 0.55;
  stroke-dasharray: 2 6;
}

.experience-overview.hero-metrics .exp-des-baseline--lo {
  stroke-opacity: 0.75;
}

.experience-overview.hero-metrics .exp-des-block {
  fill: rgba(75, 42, 22, 0.38);
  stroke: rgba(170, 110, 70, 0.28);
  stroke-width: 0.55;
}

.experience-overview.hero-metrics .exp-des-block--hero {
  fill: rgba(110, 52, 22, 0.42);
  stroke: rgba(255, 195, 145, 0.38);
  stroke-width: 0.85;
  animation: overview-stack-pulse 4s ease-in-out infinite;
}

.experience-overview.hero-metrics .exp-des-block--rail {
  fill: rgba(212, 88, 74, 0.18);
  stroke: rgba(212, 88, 74, 0.35);
}

.experience-overview.hero-metrics .exp-des-block--meta {
  fill: rgba(45, 28, 18, 0.45);
  stroke: rgba(234, 160, 105, 0.22);
  stroke-dasharray: 2 4;
}

.experience-overview.hero-metrics .exp-des-focus {
  animation: overview-stack-pulse 2.8s ease-in-out infinite;
}

.experience-overview.hero-metrics .exp-del-lane {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.85;
  stroke-linecap: round;
}

.experience-overview.hero-metrics .exp-del-lane--lower {
  stroke: rgba(234, 160, 105, 0.22);
}

.experience-overview.hero-metrics .exp-del-sync {
  fill: none;
  stroke: rgba(180, 105, 55, 0.32);
  stroke-width: 0.75;
  stroke-dasharray: 2 4;
}

.experience-overview.hero-metrics .exp-del-handoff {
  stroke-dasharray: 4 7;
  animation: overview-stroke-flow 9s linear infinite;
}

.experience-overview.hero-metrics .exp-del-node {
  fill: rgba(55, 32, 18, 0.55);
  stroke: rgba(234, 160, 105, 0.45);
  stroke-width: 0.9;
  transform-box: fill-box;
  transform-origin: center;
  animation: overview-beacon 4.6s ease-in-out infinite;
}

.experience-overview.hero-metrics .exp-del-node--mid {
  animation-delay: 0.2s;
}

.experience-overview.hero-metrics .exp-del-node--ship {
  fill: rgba(212, 88, 74, 0.35);
  stroke: rgba(255, 205, 160, 0.82);
  stroke-width: 1.15;
  animation-delay: 0.38s;
}

.experience-overview.hero-metrics .exp-del-flag {
  animation: overview-stack-pulse 3.4s ease-in-out infinite;
}

/* --- Metric viz 01: grainy spectrum (thin lines + ember spike) --- */
.metric-bars {
  position: relative;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 2px;
  align-items: end;
  height: 64px;
  padding: 4px 2px 0;
  overflow: hidden;
  isolation: isolate;
}

.metric-bars::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.metric-bar-line {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 5px;
  height: var(--h);
  min-height: 5px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(var(--warm-rgb), 0.48) 45%,
    rgba(var(--warm-rgb), 0.1) 100%
  );
  box-shadow: 0 0 14px rgba(var(--warm-rgb), 0.28);
  transform-origin: bottom;
  animation: spectrum-breathe 4.6s ease-in-out infinite;
}

.metric-bar-line:nth-child(odd) { animation-duration: 5.2s; }
.metric-bar-line:nth-child(3n) { animation-delay: 0.2s; }
.metric-bar-line:nth-child(5n) { animation-delay: 0.45s; }

.metric-bar-line--accent {
  max-width: 6px;
  background: linear-gradient(
    180deg,
    rgba(255, 220, 210, 0.55) 0%,
    rgba(var(--ember-rgb), 0.88) 55%,
    rgba(var(--ember-rgb), 0.25) 100%
  );
  box-shadow:
    0 0 0 1px rgba(var(--ember-rgb), 0.35),
    0 0 22px rgba(var(--ember-rgb), 0.35),
    0 0 40px rgba(var(--ember-rgb), 0.12);
  animation: spectrum-breathe 3.8s ease-in-out infinite;
}

/* --- Metric viz 02: continuous waveform + grain --- */
.metric-signal {
  position: relative;
  margin-top: auto;
  height: 64px;
  padding-top: 4px;
  overflow: hidden;
}

.metric-signal::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.metric-signal-svg {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.94;
}

.metric-wave-motion {
  animation: metric-wave-drift 9s ease-in-out infinite;
  transform-origin: 50% 100%;
}

/* --- Metric viz 03: agentic memory–style node graph --- */
.metric-spark {
  position: relative;
  margin-top: auto;
  height: 64px;
  padding-top: 4px;
  overflow: hidden;
}

.metric-spark::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: var(--grain-metric-spark);
}

.metric-spark-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.metric-net-node--ember {
  animation: metric-ember-pulse 3.2s ease-in-out infinite;
}

.metric-net-node--hot {
  animation: metric-node-glint 4s ease-in-out infinite;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent), var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow:
    0 0 0 rgba(var(--accent-rgb), 0),
    inset 0 1px 0 rgba(255,255,255,0.18);
  animation: btn-pulse 3s ease-in-out infinite;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: shimmer 2.8s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { left: -100%; }
  60%  { left: 160%; }
  100% { left: 160%; }
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0px rgba(var(--accent-rgb), 0.0); }
  50%       { box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.45); }
}
@keyframes btn-pulse-warm {
  0%, 100% {
    box-shadow:
      0 0 0 rgba(var(--warm-rgb), 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 0 0 1px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 26px rgba(var(--warm-rgb), 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 0 0 1px rgba(0, 0, 0, 0.35);
  }
}
.btn-primary:hover { transform: translateY(-2px); }

/* Hero CTAs: terminal / command-strip look */
.hero-cta .btn-tech {
  border-radius: 2px;
  letter-spacing: 0.12em;
  text-transform: none;
  gap: 0;
  padding: 0;
  min-height: 48px;
  position: relative;
  z-index: 0;
}

.hero-cta .btn-tech > * {
  position: relative;
  z-index: 1;
}

.hero-cta .btn-tech-idx {
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cta .btn-tech-label {
  flex: 1;
  padding: 0 16px 0 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: left;
}

.hero-cta .btn-tech-caret {
  flex-shrink: 0;
  margin-right: 14px;
  opacity: 0.85;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.hero-cta .btn-primary.btn-tech {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent), var(--warm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 rgba(var(--warm-rgb), 0),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  animation: btn-pulse-warm 3s ease-in-out infinite;
}

.hero-cta .btn-primary.btn-tech::before {
  z-index: 0;
  animation: none;
}

.hero-cta .btn-primary.btn-tech::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 0;
  border-radius: 1px;
}

.hero-cta .btn-secondary.btn-tech {
  border: 1px solid rgba(var(--warm-rgb), 0.45);
  border-left: 3px solid rgba(var(--warm-rgb), 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease),
    filter 0.35s var(--ease);
}

.hero-cta .btn-secondary.btn-tech .btn-tech-idx {
  color: rgba(var(--warm-rgb), 0.95);
  border-right-color: rgba(var(--warm-rgb), 0.25);
  background: rgba(var(--warm-rgb), 0.08);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(234, 234, 239, 0.95);
  padding: 14px 26px;
  border: 1px solid rgba(var(--warm-rgb), 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 8px 28px rgba(0, 0, 0, 0.35);
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  color: #fff;
  border-color: rgba(var(--warm-rgb), 0.65);
  background: linear-gradient(180deg, rgba(var(--warm-rgb), 0.14), rgba(255,255,255,0.04));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 10px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(var(--warm-rgb), 0.18);
  transform: translateY(-2px);
}

.hero-cta .btn-primary.btn-tech:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.38);
  filter: brightness(1.05);
}

.hero-cta .btn-secondary.btn-tech:hover {
  color: #fff;
  border-color: rgba(var(--warm-rgb), 0.65);
  border-left: 3px solid rgba(var(--warm-rgb), 1);
  background: linear-gradient(180deg, rgba(var(--warm-rgb), 0.16), rgba(255, 255, 255, 0.05));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 10px 32px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(var(--warm-rgb), 0.22);
  transform: translateY(-2px);
}

.hero-cta .btn-secondary.btn-tech:hover .btn-tech-caret {
  transform: translateX(4px);
  opacity: 1;
}

.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: float 2.4s ease-in-out infinite;
  z-index: 1;
}
.scroll-hint svg { opacity: 0.35; }
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* CLI THEME - hero kicker & scroll hint */
.scroll-hint {
  font-family: var(--font-terminal);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--cli-faint);
}

.mono-tag:not(.mono-tag-icon) {
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  border-color: var(--cli-edge);
  color: var(--cli-muted);
}

.mono-tag-accent {
  color: var(--cli-fg);
  border-color: rgba(var(--warm-rgb), 0.48);
  background: rgba(var(--warm-rgb), 0.08);
}

.hero-kicker-rule {
  background: linear-gradient(90deg, var(--cli-faint), transparent);
}

.hero-name em {
  color: rgb(255, 185, 120);
  text-shadow:
    0 0 1px rgba(var(--warm-rgb), 0.55),
    0 0 36px var(--cli-glow);
}

.hero-cta .btn-tech-idx,
.hero-cta .btn-tech-label {
  font-family: var(--font-terminal);
}

.hero-cta .btn-tech-label {
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about .about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 56px 64px;
  align-items: center;
  max-width: none;
}

.about-copy {
  min-width: 0;
  max-width: 560px;
}

/* ── About Globe - frosted glass behind canvas (rim + depth) ─ */
.about-globe {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: 14px 14px 16px;
  border-radius: calc(var(--radius) + 10px);
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(234, 140, 60, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.22),
    0 0 40px rgba(234, 140, 60, 0.035);
}

.about-globe__canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: grab;
  border-radius: var(--radius);
  display: block;
}

.about-globe__canvas:active {
  cursor: grabbing;
}

/* Frosted panel sits under the canvas: sharp globe, glass visible in padding */
.about-globe__frost {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.about-globe__frost::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  opacity: 0;
}

.about-globe__frost::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: var(--grain-metric-spark);
}

@media (max-width: 960px) {
  #about .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-copy { max-width: none; }
}

.about-goals {
  margin-top: 28px;
  padding: 14px 18px 16px;
  max-width: 560px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.about-goals-kicker {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--warm-rgb), 0.75);
  margin: 0 0 10px;
}

.about-goals-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 48ch;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.pill {
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cli-edge);
  color: var(--cli-muted);
  background: rgba(0, 0, 0, 0.25);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pill:hover {
  color: var(--cli-fg);
  border-color: var(--cli-edge-strong);
  box-shadow: 0 0 0 1px var(--cli-glow);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
#experience .timeline {
  display: flex;
  flex-direction: column;
  margin-top: 56px;
}

.experience-overview:not(.hero-metrics) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.experience-visual-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.timeline-viz {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: top;
  cursor: crosshair;
}

.timeline-visual.experience-visual-slot--timeline {
  padding: 0;
  border-style: solid;
  border-color: var(--cli-edge);
  background: #000;
}

.overview-visual {
  margin-top: auto;
  height: 88px;
  display: flex;
  align-items: stretch;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.overview-visual.experience-visual-slot {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: rgba(234, 140, 60, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-style: solid;
}

.overview-icon {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.overview-svg text {
  user-select: none;
  pointer-events: none;
}

.overview-link,
.overview-grid,
.overview-arrow {
  fill: none;
  stroke: rgba(234, 160, 105, 0.55);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-grid {
  stroke: rgba(180, 105, 55, 0.4);
  stroke-width: 1;
}

.overview-panel,
.overview-frame {
  fill: rgba(90, 45, 20, 0.18);
  stroke: rgba(var(--warm-rgb), 0.38);
  stroke-width: 1.2;
}

.overview-systems .panel-core,
.overview-design .frame-front {
  fill: rgba(110, 52, 22, 0.22);
  stroke: rgba(255, 195, 145, 0.45);
}

.overview-stack-spine {
  fill: none;
  stroke: rgba(180, 105, 55, 0.35);
  stroke-width: 1;
  stroke-linecap: round;
}

.overview-stack-slab {
  fill: rgba(90, 45, 20, 0.2);
  stroke: rgba(var(--warm-rgb), 0.36);
  stroke-width: 1.1;
  transform-box: fill-box;
  transform-origin: center;
  animation: overview-stack-pulse 4s ease-in-out infinite;
}

.overview-stack-slab--top {
  fill: rgba(110, 52, 22, 0.24);
  stroke: rgba(255, 195, 145, 0.42);
}

.overview-systems .stack-layer--data .overview-stack-slab { animation-delay: 0.12s; }
.overview-systems .stack-layer--api .overview-stack-slab { animation-delay: 0.24s; }
.overview-systems .stack-layer--ui .overview-stack-slab { animation-delay: 0.36s; }

.overview-stack-label {
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 7.25px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  text-anchor: middle;
  dominant-baseline: middle;
  fill: rgba(255, 210, 175, 0.88);
}

.overview-spine-node {
  fill: rgba(90, 45, 20, 0.45);
  stroke: rgba(234, 140, 60, 0.55);
  stroke-width: 1;
}

.overview-spine-active {
  fill: rgba(180, 90, 30, 0.55);
  stroke: rgba(255, 185, 120, 0.75);
}

.overview-node,
.overview-milestone {
  fill: rgba(255, 220, 190, 0.94);
  filter: drop-shadow(0 0 10px var(--cli-glow));
  transform-box: fill-box;
  transform-origin: center;
}

.overview-design-margin {
  fill: none;
  stroke: rgba(234, 160, 105, 0.38);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: overview-stroke-flow 10s linear infinite;
}

.overview-design-margin-corner {
  fill: none;
  stroke: rgba(255, 195, 145, 0.5);
  stroke-width: 1.15;
  stroke-linecap: round;
}

.overview-design-grid,
.overview-design-baseline,
.overview-design-rail {
  fill: none;
  stroke-linecap: round;
}

.overview-design-grid {
  stroke: rgba(180, 105, 55, 0.28);
  stroke-width: 0.85;
}

.overview-design-baseline {
  stroke: rgba(160, 95, 55, 0.16);
  stroke-width: 0.65;
}

.overview-design-rail {
  stroke: rgba(234, 160, 105, 0.22);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.overview-design .overview-type-hit {
  fill: rgba(255, 195, 145, 0.52);
  stroke: rgba(255, 218, 185, 0.78);
  stroke-width: 0.95;
  animation: overview-stack-pulse 3.2s ease-in-out infinite;
}

.overview-design .overview-type-sub {
  fill: rgba(255, 190, 150, 0.26);
  stroke: rgba(var(--warm-rgb), 0.34);
  stroke-width: 0.65;
}

.overview-design .overview-type-body {
  fill: rgba(120, 72, 45, 0.32);
  stroke: rgba(170, 110, 70, 0.22);
  stroke-width: 0.55;
}

.overview-delivery .overview-timeline-rail {
  stroke: rgba(234, 160, 105, 0.65);
  stroke-width: 1.65;
}

.overview-delivery .overview-timeline-ticks {
  fill: none;
  stroke: rgba(180, 105, 55, 0.45);
  stroke-width: 1;
  stroke-linecap: round;
}

.overview-delivery .overview-dependency {
  stroke-dasharray: 4 8;
  animation: overview-stroke-flow 9s linear infinite;
}

.overview-delivery .overview-dependency--elbow {
  animation-delay: 0.42s;
}

.overview-task-node {
  fill: rgba(75, 38, 16, 0.42);
  stroke: rgba(var(--warm-rgb), 0.4);
  stroke-width: 0.95;
}

.overview-delivery .overview-task-node--b {
  opacity: 0.9;
}

.overview-delivery .overview-milestone {
  fill: rgba(var(--warm-rgb), 0.22);
  stroke: rgba(255, 205, 160, 0.78);
  stroke-width: 1.6;
  animation: overview-beacon 4.4s ease-in-out infinite;
}

.overview-delivery .mile-2 { animation-delay: 0.18s; }
.overview-delivery .mile-3 { animation-delay: 0.36s; }
.overview-delivery .mile-4 { animation-delay: 0.54s; }

.timeline-item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 168px;
  gap: 32px;
  padding: 36px 20px;
  border-top: 1px solid var(--border);
  transition: background 0.25s, box-shadow 0.25s;
  align-items: center;
}

.timeline-item::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: var(--grain-metric-spark);
}

.timeline-item > * {
  position: relative;
  z-index: 2;
}
.timeline-item:last-child { border-bottom: 1px solid var(--border); }
.timeline-item:hover {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(234, 140, 60, 0.18);
}

.timeline-copy {
  min-width: 0;
}

.timeline-date {
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--cli-muted);
  padding-top: 4px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.85rem;
  font-family: var(--font-terminal);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--cli-muted);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.58;
}

.timeline-visual {
  justify-self: end;
  width: 168px;
  aspect-ratio: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 105, 50, 0.55);
  background: #000;
  overflow: hidden;
}

.timeline-icon {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.timeline-svg text {
  user-select: none;
  pointer-events: none;
}

.timeline-stroke,
.timeline-wire,
.timeline-arrow,
.timeline-orbit {
  fill: none;
  stroke: rgba(var(--accent-rgb), 0.3);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-orbit {
  stroke: rgba(var(--accent-rgb), 0.2);
  stroke-width: 1.2;
}

.timeline-panel,
.timeline-frame {
  fill: rgba(var(--accent-rgb), 0.08);
  stroke: rgba(var(--accent-rgb), 0.22);
  stroke-width: 1.2;
}

.timeline-focus {
  fill: rgba(var(--accent-rgb), 0.12);
  stroke: rgba(173, 225, 255, 0.28);
}

.timeline-node {
  fill: rgba(185, 226, 255, 0.92);
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.34));
  transform-box: fill-box;
  transform-origin: center;
}

.timeline-flow {
  stroke-dasharray: 6 9;
  animation: timeline-flow 9s linear infinite;
}

.timeline-branch {
  stroke: rgba(var(--accent-rgb), 0.22);
  stroke-dasharray: 4 7;
  animation: timeline-flow 10s linear infinite reverse;
}

.timeline-visual .timeline-node {
  animation: timeline-node-pulse 4.4s ease-in-out infinite;
}

.timeline-visual .node-2 { animation-delay: 0.2s; }
.timeline-visual .node-3 { animation-delay: 0.4s; }
.timeline-visual .node-4 { animation-delay: 0.6s; }
.timeline-visual .node-5 { animation-delay: 0.8s; }

.timeline-visual-learning .timeline-frame,
.timeline-visual-codebase .timeline-frame {
  fill: rgba(var(--accent-rgb), 0.05);
}

.timeline-visual-modeling .timeline-wire {
  animation: timeline-orbit-spin 16s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.timeline-visual-modeling .timeline-orbit {
  animation: timeline-pulse-fade 6s ease-in-out infinite;
}

/* ============================================================
   SKILLS
   ============================================================ */
#skills .skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.skill-block {
  position: relative;
  isolation: isolate;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.skill-block::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  border-radius: inherit;
  background-image: var(--grain-metric-spark);
}

.skill-block > * {
  position: relative;
  z-index: 2;
}
.skill-block:hover {
  transform: translateY(-3px);
  border-color: var(--cli-edge-strong);
  box-shadow: 0 0 0 1px var(--cli-glow);
}

.skill-block-label {
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--cli-muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cli-edge);
}

.skill-list { display: flex; flex-direction: column; gap: 10px; }

.skill-item {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-item::before {
  content: '>';
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  color: var(--cli-faint);
  flex-shrink: 0;
}

/* ============================================================
   PROJECTS
   ============================================================ */
#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.project-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.04) inset;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--warm-rgb), 0.35);
  box-shadow: 0 1px 0 0 rgba(var(--warm-rgb), 0.18) inset, 0 8px 24px rgba(0, 0, 0, 0.45);
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-03);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%),
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.12), transparent 50%);
  pointer-events: none;
}

.project-image img { width: 100%; height: 100%; object-fit: cover; }

.project-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-image-placeholder svg { opacity: 0.25; }

.project-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s var(--ease);
}

.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: var(--grain-metric-spark);
}

.project-visual > * {
  position: relative;
  z-index: 2;
}

.project-card-disabled:hover .project-visual { transform: none; }

.visual-chip {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cli-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cli-edge);
  background: rgba(0, 0, 0, 0.65);
}

.project-image:has(.project-visual) {
  background: #000;
}

.project-image:has(.project-visual)::before {
  display: none;
}

/* ── CORE - discuss → analysis → portfolio pipeline ─────── */
.visual-core { background: #000; }

.core-pipeline {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: #000;
  overflow: hidden;
}

.core-zone {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  justify-content: center;
}

.core-zone--discuss { border-right: 1px solid rgba(255,255,255,0.07); }
.core-zone--portfolio { border-left: 1px solid rgba(255,255,255,0.07); }

.core-zone-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(234,140,60,0.4);
  margin-bottom: 2px;
}

.core-post-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.core-avatar {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(234,140,60,0.22);
  border: 1px solid rgba(234,140,60,0.35);
}

.core-postline {
  display: block;
  height: 5px;
  width: var(--w);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}

.core-zone-pipe {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.core-zone-pipe::before {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  background: rgba(234,140,60,0.18);
  transform: translateX(-50%);
}

.core-pipe-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(234,140,60,0.85);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  animation: core-pipe-travel 2.8s ease-in-out infinite;
}

.core-pipe-dot--2 { animation-delay: 1.4s; }

@keyframes core-pipe-travel {
  0%   { top: 14%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 84%; opacity: 0; }
}

.core-ticker-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.core-ticker-sym {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  width: 22px;
  flex-shrink: 0;
}

.core-ticker-bar {
  display: block;
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.core-ticker-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--fill);
  background: rgba(234,140,60,0.55);
  border-radius: 999px;
}

/* ── Kiroshi - capture → AI scan → index ─────────────── */
.visual-kiroshi { background: #000; }

.kiroshi-pipeline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 12px;
  background: #000;
}

.kiroshi-capture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.kiroshi-screen {
  width: 52px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}

.kiroshi-screen::before {
  content: '';
  position: absolute;
  top: 6px; left: 4px; right: 4px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  box-shadow: 0 8px 0 rgba(255,255,255,0.07), 0 16px 0 rgba(255,255,255,0.1), 0 24px 0 rgba(255,255,255,0.05);
}

.kiroshi-scanline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(0,122,255,0.65);
  animation: kiroshi-scan 2.4s ease-in-out infinite;
}

@keyframes kiroshi-scan {
  0%   { top: 0%; opacity: 1; }
  85%  { top: 100%; opacity: 0.8; }
  100% { top: 0%; opacity: 0; }
}

.kiroshi-capture-label,
.kiroshi-index-label {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}

.kiroshi-arrow { flex-shrink: 0; }

.kiroshi-index {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.kiroshi-result {
  display: flex;
  align-items: center;
  gap: 5px;
}

.kiroshi-result svg { flex-shrink: 0; }

.kiroshi-result-line {
  display: block;
  height: 5px;
  width: var(--w);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}

.kiroshi-result--match .kiroshi-result-line {
  background: rgba(234,140,60,0.35);
  border: 1px solid rgba(234,140,60,0.22);
}

/* ── Pulser - irregular income timeline ─────────────── */
.visual-pulser { background: #000; }

.pulser-timeline {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: #000;
  padding: 10px 10px 8px;
  display: flex;
  align-items: flex-end;
}

.pulser-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Stretas - multi-user social heatmap ─────────────── */
.visual-stretas { background: #000; }

.stretas-social {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: #000;
  padding: 8px 10px;
}

.stretas-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
}

.stretas-user-row + .stretas-user-row {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.stretas-avatar {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.02em;
  color: rgba(234,140,60,0.6);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(234,140,60,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stretas-cells {
  display: flex;
  gap: 3px;
  flex: 1;
}

.sc {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  min-width: 0;
}

.sc.l1 { background: rgba(234,140,60,0.22); }
.sc.l2 { background: rgba(234,140,60,0.42); }
.sc.l3 { background: rgba(234,140,60,0.62); }
.sc.l4 { background: rgba(234,140,60,0.82); }

/* ── Notes App - dictate → AI → summary ─────────────── */
.visual-notes { background: #000; }

.notes-pipeline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: #000;
  padding: 12px;
  overflow: hidden;
}

.notes-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 50px;
}

.notes-mic { flex-shrink: 0; }

.notes-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
}

.notes-wave span {
  display: block;
  width: 3px;
  height: var(--h);
  border-radius: 999px;
  background: rgba(0,122,255,0.55);
}

.notes-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  width: 36px;
  position: relative;
}

.notes-conn-svg { display: block; }

.notes-conn-dot {
  position: absolute;
  top: 5px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0,122,255,0.9);
  animation: notes-dot-travel 2.2s ease-in-out infinite;
}

@keyframes notes-dot-travel {
  0%   { left: 0;    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 28px; opacity: 0; }
}

.notes-conn-label {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  color: rgba(0,122,255,0.5);
  text-transform: uppercase;
}

.notes-output {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 10px;
  justify-content: center;
}

.notes-out-label {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  color: rgba(234,140,60,0.5);
  text-transform: uppercase;
}

.notes-out-title {
  display: block;
  height: 8px;
  width: 88%;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  margin-bottom: 2px;
}

.notes-out-line {
  display: block;
  height: 5px;
  width: var(--lw, 92%);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}

/* ── Novarak - commitment → group → progress loop ───── */
.visual-novarak { background: #000; }

.novarak-loop {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: #000;
  padding: 10px 8px 10px 12px;
}

.novarak-commit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  width: 52px;
  padding: 8px;
  border: 1px solid rgba(0,122,255,0.2);
  border-radius: 3px;
  background: rgba(0,122,255,0.04);
}

.novarak-commit-label {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  color: rgba(0,122,255,0.5);
  text-transform: uppercase;
}

.novarak-commit-line {
  display: block;
  height: 4px;
  width: var(--w);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.novarak-svg {
  flex: 1;
  display: block;
  height: auto;
}

.novarak-ring-active {
  animation: novarak-ring-pulse 3s ease-in-out infinite;
}

@keyframes novarak-ring-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.project-card-disabled {
  opacity: 0.62;
}

.project-card-disabled:hover {
  transform: none;
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}

.project-body {
  position: relative;
  isolation: isolate;
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-body::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: var(--grain-metric-spark);
}

.project-body > * {
  position: relative;
  z-index: 2;
}

.project-tag {
  font-family: var(--font-terminal);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--cli-muted);
}

.project-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.proj-card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--cli-fg);
  margin-top: auto;
  padding-top: 12px;
  transition: color 0.2s;
}
.project-card:hover .proj-card-link { color: rgba(255, 215, 185, 1); }

/* ============================================================
   PROJECT DETAIL MODAL
   ============================================================ */
.proj-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  overflow-y: auto;
}
.proj-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.proj-modal {
  background: var(--bg-02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  padding: 44px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.35s var(--ease);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.proj-modal-overlay.open .proj-modal { transform: translateY(0); }
.proj-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text-muted);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.proj-modal-close:hover {
  background: rgba(var(--warm-rgb), 0.18);
  color: var(--cli-fg);
}
.proj-modal-tag {
  font-family: var(--font-terminal);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--cli-muted);
  margin-bottom: 12px;
}
.proj-modal-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
}
.proj-modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 32px;
}

.proj-modal-copy-snippet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0 0 24px;
  /* Default: match .proj-modal-infographic (28px) so URL + icon line up with stack blocks */
  padding: 14px 28px 14px 28px;
  text-align: left;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.proj-modal-copy-snippet:hover {
  border-color: rgba(var(--warm-rgb), 0.45);
  background: rgba(0, 0, 0, 0.5);
}
.proj-modal-copy-snippet:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.65);
  outline-offset: 2px;
}
.proj-modal-copy-snippet.copied {
  border-color: rgba(var(--accent-rgb), 0.5);
}
.proj-modal-copy-code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-all;
}
.proj-modal-copy-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.15s ease;
}
.proj-modal-copy-snippet:hover .proj-modal-copy-icon-wrap {
  color: rgba(var(--warm-rgb), 0.88);
}
.proj-modal-copy-snippet.copied .proj-modal-copy-icon-wrap {
  color: rgba(var(--accent-rgb), 0.95);
}
.proj-modal-copy-svg {
  display: block;
}

.proj-modal-copy-snippet + .proj-modal-infographic {
  margin-top: 0;
}

/* When the block below is a bento, match --bento horizontal padding (22px) */
.proj-modal-copy-snippet--align-bento {
  padding-left: 22px;
  padding-right: 22px;
}

.proj-modal-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.proj-modal-img {
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  background: var(--bg-03);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-modal-img img { width:100%; height:100%; object-fit:cover; }
.proj-modal-img-placeholder {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proj-modal-infographic {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}
.proj-modal-infographic svg {
  font-family: var(--font-mono), ui-monospace, monospace;
}
.proj-modal-infographic h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.proj-modal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proj-modal-list li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  padding: 8px 0 8px 14px;
  border-left: 2px solid rgba(var(--warm-rgb), 0.35);
}

.proj-modal-list-term {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--warm-rgb), 0.95);
}

/* Pulser modal: bento grid (modules + status) */
.proj-modal-infographic--bento {
  padding: 20px 22px 24px;
}

.proj-modal-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.proj-modal-bento--single {
  grid-template-columns: 1fr;
}

.proj-modal-bento-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px 18px;
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
}

.proj-modal-bento-cell--modules .proj-modal-list li:first-child {
  padding-top: 4px;
}

.proj-modal-bento-cell--modules h4 {
  margin-bottom: 14px;
}

.proj-modal-bento-cell--status {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(0, 0, 0, 0.35) 48%,
    rgba(234, 140, 60, 0.06) 100%
  );
  border-color: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proj-modal-bento-kicker {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}

.proj-modal-bento-headline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.35;
}

.proj-modal-bento-copy {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  margin-top: 2px;
}

.proj-modal-target-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: rgba(var(--warm-rgb), 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(var(--warm-rgb), 0.45);
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.proj-modal-target-link:hover {
  color: rgba(255, 200, 155, 0.98);
  text-decoration-color: rgba(255, 200, 155, 0.55);
}

@media (max-width: 640px) {
  .proj-modal-bento {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

#contact .contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
  max-width: 960px;
  margin-inline: auto;
}

@media (min-width: 861px) {
  /* Drop form to align with left-column body copy (below section header block) */
  #contact-form.contact-form {
    padding-top: clamp(2.75rem, 5.2vw, 4.35rem);
  }
}

#contact .contact-info {
  padding-top: 8px;
  text-align: left;
}

#contact .contact-info .section-head-inline {
  justify-items: start;
  text-align: left;
}


.contact-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-family: var(--font-terminal);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  pointer-events: auto;
}
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { color: var(--cli-fg); }
.contact-link svg { flex-shrink: 0; opacity: 0.4; transition: opacity 0.2s; }
.contact-link:hover svg { opacity: 1; }

.contact-link-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.contact-link-row .contact-link {
  border-bottom: none;
  padding-right: 4px;
}

.contact-copy-btn {
  appearance: none;
  border: 1px solid var(--cli-edge);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cli-muted);
  font-family: var(--font-terminal);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.contact-copy-btn:hover,
.contact-copy-btn:focus-visible {
  border-color: var(--cli-edge-strong);
  color: var(--cli-fg);
  background: rgba(var(--warm-rgb), 0.12);
  outline: none;
}

.contact-copy-btn.copied {
  border-color: rgba(34, 197, 94, 0.6);
  color: rgba(166, 252, 198, 0.95);
  background: rgba(34, 197, 94, 0.12);
}


/* ── Contact form ─────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-form-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: rgba(210, 210, 222, 0.95);
}

.contact-form-input {
  background: rgba(10, 10, 14, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 11px 14px;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 1px 2px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  resize: none;
}

@supports not (backdrop-filter: blur(1px)) {
  .contact-form-input {
    background: rgba(18, 18, 22, 0.88);
  }
}

.contact-form-input::placeholder {
  color: rgba(155, 155, 172, 0.95);
  opacity: 1;
}

.contact-form-input:focus {
  border-color: rgba(234, 140, 60, 0.85);
  background: rgba(12, 12, 16, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 1px 3px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(234, 140, 60, 0.18);
}

.contact-form-input[aria-invalid="true"] {
  border-color: rgba(232, 100, 88, 0.95);
  background: rgba(18, 10, 10, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 60, 40, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.22),
    0 0 0 3px rgba(212, 88, 74, 0.18);
}

.contact-form-textarea {
  min-height: 130px;
}

.contact-form-field-error {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: rgba(212, 88, 74, 0.9);
  letter-spacing: 0.04em;
  min-height: 1em;
}

.contact-form-global-error {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(212, 88, 74, 0.9);
  letter-spacing: 0.04em;
}

.contact-form-submit {
  align-self: flex-start;
  margin-top: 4px;
}

/* Same command-strip as nav CTA (nav.nav-bar--cli .nav-links a.btn-secondary.btn-tech) */
#contact-form button.contact-form-submit.btn-secondary.btn-tech {
  appearance: none;
  cursor: pointer;
  font: inherit;
  border-radius: 2px;
  letter-spacing: 0.12em;
  text-transform: none;
  gap: 0;
  padding: 0;
  min-height: 34px;
  position: relative;
  z-index: 0;
  margin-top: 4px;
  color: var(--cli-fg);
  border: 1px solid rgba(var(--warm-rgb), 0.45);
  border-left: 3px solid rgba(var(--warm-rgb), 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease),
    filter 0.35s var(--ease);
}

#contact-form button.contact-form-submit.btn-secondary.btn-tech > * {
  position: relative;
  z-index: 1;
}

#contact-form button.contact-form-submit.btn-secondary.btn-tech .btn-tech-idx {
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(var(--warm-rgb), 0.95);
  background: rgba(var(--warm-rgb), 0.08);
  border-right: 1px solid rgba(var(--warm-rgb), 0.25);
}

#contact-form button.contact-form-submit.btn-secondary.btn-tech .btn-tech-label {
  flex: 1;
  padding: 0 12px 0 10px;
  font-family: var(--font-terminal);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-align: left;
}

#contact-form button.contact-form-submit.btn-secondary.btn-tech .btn-tech-caret {
  flex-shrink: 0;
  margin-right: 10px;
  opacity: 0.85;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

#contact-form button.contact-form-submit.btn-secondary.btn-tech:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(var(--warm-rgb), 0.65);
  border-left: 3px solid rgba(var(--warm-rgb), 1);
  background: linear-gradient(180deg, rgba(var(--warm-rgb), 0.16), rgba(255, 255, 255, 0.05));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 10px 32px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(var(--warm-rgb), 0.22);
  transform: translateY(-2px);
}

#contact-form button.contact-form-submit.btn-secondary.btn-tech:hover:not(:disabled) .btn-tech-caret {
  transform: translateX(4px);
  opacity: 1;
}

.contact-form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-form-success {
  padding: 20px 22px;
  border: 1px solid var(--warm);
  border-radius: var(--radius-sm);
  background: var(--bg-02);
  box-shadow: 0 0 0 1px rgba(234, 140, 60, 0.1);
}

.contact-form-success[hidden] { display: none; }

.contact-form-success-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--warm);
  margin: 0 0 6px;
}

.contact-form-success-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Hide form fields after successful submission */
.contact-form--sent .contact-form-field,
.contact-form--sent .contact-form-submit,
.contact-form--sent .contact-form-global-error {
  display: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 36px 28px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
}

.footer-quote {
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  color: var(--cli-faint);
  opacity: 0.85;
  max-width: 520px;
  line-height: 1.75;
  font-style: normal;
  letter-spacing: 0.06em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1080px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: var(--font-terminal);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--cli-faint);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: var(--font-terminal);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--cli-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cli-fg); }

@keyframes bar-breathe {
  0%, 100% { transform: scaleY(0.94); opacity: 0.78; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes spectrum-breathe {
  0%, 100% { transform: scaleY(0.92); opacity: 0.72; filter: brightness(0.95); }
  50% { transform: scaleY(1); opacity: 1; filter: brightness(1.08); }
}

@keyframes metric-wave-drift {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-1.5%) scaleY(1.03); }
}

@keyframes metric-ember-pulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

@keyframes metric-node-glint {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes orbital-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse-node {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.28); opacity: 1; }
}

@keyframes node-glow {
  0%, 100% { opacity: 0.78; box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.08), 0 0 12px rgba(var(--accent-rgb), 0.26); }
  50% { opacity: 1; box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.14), 0 0 18px rgba(var(--accent-rgb), 0.42); }
}

@keyframes overview-pulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes overview-stack-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes overview-stroke-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -42; }
}

@keyframes overview-beacon {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.14); opacity: 1; }
}

@keyframes timeline-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -48; }
}

@keyframes timeline-node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes timeline-pulse-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes timeline-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes trace-bounce {
  0%, 100% { transform: translate(-50%, -25%); }
  50% { transform: translate(-50%, -65%); }
}

@keyframes signal-rise {
  0%, 100% { transform: translateY(0); opacity: 0.72; }
  50% { transform: translateY(-6px); opacity: 1; }
}

@keyframes line-sheen {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up,
  .btn-primary,
  .btn-primary::before,
  .btn-secondary,
  .scroll-hint,
  .metric-bar-line,
  .metric-wave-motion,
  .metric-net-node--ember,
  .metric-net-node--hot,
  .overview-bars span,
  .overview-node,
  .overview-milestone,
  .overview-stack-slab,
  .overview-design-margin,
  .overview-delivery .overview-dependency,
  .timeline-flow,
  .timeline-branch,
  .timeline-visual .timeline-node,
  .timeline-visual-modeling .timeline-wire,
  .timeline-visual-modeling .timeline-orbit,
  .visual-line,
  .pulser-topline,
  .pulser-bars span,
  .pulser-trace span,
  .lab-node {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
.hero-mobile-note {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--cli-faint);
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  :root { --nav-height: 52px; }
  /* Particle canvas hidden on mobile; dot-matrix bg shows through */
  #hero-canvas { display: none; }
  .hero-mobile-note { display: block; }
  .proj-modal { padding: 28px; }
  .proj-modal-images { grid-template-columns: 1fr; }
  nav.nav-bar {
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
  }
  .nav-links { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .mobile-menu { display: flex; }
  .hero-inner {
    max-width: none;
    padding: 10px 0 100px;
  }
  #hero .hero-container.container {
    margin-left: 24px;
    max-width: min(1120px, calc(100vw - 24px - 28px));
  }
  .hero-copy { max-width: none; }
  .hero-cta { gap: 16px; flex-direction: column; align-items: stretch; }
  .experience-overview.hero-metrics {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .experience-overview.hero-metrics .metric-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 0;
  }
  .experience-overview.hero-metrics .metric-panel:last-child { border-bottom: none; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-index { display: inline-block; }
  .experience-overview:not(.hero-metrics) { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .timeline-visual { justify-self: start; margin-top: 16px; }
  #skills .skills-grid { grid-template-columns: 1fr 1fr; }
  #projects .projects-grid { grid-template-columns: 1fr; }
  #contact .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  #contact .contact-info { text-align: center; }
  #contact .contact-info .section-head-inline { justify-items: center; text-align: center; }
  .contact-link { justify-content: center; }
  .contact-link-row { justify-content: center; }
  .contact-form-submit { align-self: stretch; }
  .section { padding: 80px 0; }

  /* Contact — mobile: safe area, touch targets, iOS input zoom, lighter glass */
  #contact.section {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  #contact .container {
    padding-left: calc(28px + env(safe-area-inset-left, 0px));
    padding-right: calc(28px + env(safe-area-inset-right, 0px));
  }
  #contact-form.contact-form {
    padding-top: 0;
    gap: 18px;
  }
  .contact-form-input {
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
  }
  input.contact-form-input {
    font-size: 16px;
    line-height: 1.45;
    min-height: 48px;
    padding: 12px 14px;
  }
  textarea.contact-form-input {
    font-size: 16px;
    line-height: 1.5;
    min-height: 140px;
    padding: 12px 14px;
  }
  #contact-form button.contact-form-submit.btn-secondary.btn-tech {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
  }
  .contact-copy-btn {
    min-height: 44px;
    padding: 8px 14px;
    touch-action: manipulation;
  }
  .contact-link {
    padding: 16px 0;
    min-height: 44px;
    box-sizing: border-box;
  }
}

@media (max-width: 520px) {
  :root { --nav-height: 48px; }
  nav.nav-bar { padding: 0 18px; }
  #hero .hero-container.container {
    margin-left: 18px;
    max-width: min(1120px, calc(100vw - 18px - 20px));
    padding-right: 20px;
  }
  #hero { padding-top: calc(var(--nav-height) + 6px); }
  .hero-inner { padding: 8px 0 88px; }
  .hero-kicker { margin-bottom: 24px; }
  .hero-name { font-size: clamp(3.15rem, 20vw, 5.4rem); margin-bottom: 28px; }
  .metric-panel,
  .project-body { padding-left: 20px; padding-right: 20px; }
  .experience-overview.hero-metrics .metric-panel { min-height: 160px; }
  .project-visual { padding: 14px; }
  .visual-window { grid-template-columns: 42px 1fr; gap: 10px; padding: 12px; }
  .pulser-panel { padding: 12px; }
  #skills .skills-grid { grid-template-columns: 1fr; }

  #contact .contact-inner { gap: 36px; }
  #contact.section {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Site loader ──────────────────────────────────────────────── */
#site-loader {
  position: fixed;
  inset: 0;
  background: #060608;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#site-loader.site-loader--done {
  opacity: 0;
  pointer-events: none;
}
.site-loader-inner {
  font-family: var(--font-mono);
  max-width: 400px;
  width: 100%;
  padding: 0 32px;
}
.site-loader-badge {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--warm);
  text-transform: lowercase;
  margin-bottom: 28px;
  opacity: 0.7;
}
.site-loader-joke {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  margin: 0 0 28px;
  line-height: 1.6;
  white-space: pre-wrap;
  opacity: 0.85;
}
.site-loader-bar {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--warm);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}
.site-loader-bar-bracket {
  opacity: 0.5;
}
.site-loader-bar-track {
  display: inline-block;
  width: 160px;
  height: 2px;
  background: rgba(234, 140, 60, 0.15);
  margin: 0 6px;
  position: relative;
  overflow: hidden;
}
.site-loader-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--warm);
  transition: none;
}
.site-loader-bar-pct {
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
  text-align: right;
  opacity: 0.75;
}
.site-loader-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 0;
  opacity: 0.6;
}

/* ── Instagram in-app browser banner ─────────────────────────────── */
.igb-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 32px));
  z-index: 600;
  width: calc(100% - 48px);
  max-width: 520px;
  background: var(--bg-02);
  border: 1px solid var(--warm);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(234, 140, 60, 0.15);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}
.igb-banner:not([hidden]) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.igb-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
}
.igb-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.igb-banner-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm);
}
.igb-banner-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.igb-banner-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.igb-banner-close:hover { color: var(--text); }
