/* ═══════════════════════════════════════════════════════════════
   steveen.dev — Portfolio styles
   Unified stylesheet for all sections.
   ═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   1. THEME · variables (single source of truth)
   ────────────────────────────────────────────────────────────── */
:root {
  --bg:        #06080d;
  --bg-elev:   #0a0f1a;
  --bg-card:   #0c121d;
  --bg-chrome: #11161f;
  --line:      #1a2231;
  --line-soft: #131a26;
  --fg:        #cfd6e4;
  --fg-dim:    #8a94a8;
  --fg-mute:   #5a6478;
  --green:     #00ff9d;
  --green-dim: #0c8458;
  --accent:    #00ff9d;
  --blue:      #4d8fff;
  --amber:     #ffb84d;
  --pink:      #ff5470;
  --magenta:   #c264ff;
  --cyan:      #00e5ff;
  --line-bright: #2a3548;
  --bg-input:    #070b13;
  --fg-faint:    #3d4a60;
}

/* ──────────────────────────────────────────────────────────────
   2. RESET + base
   ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: 'ss01','ss02','calt';
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
::selection { background: var(--green); color: var(--bg); }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* scrollbar */
::-webkit-scrollbar { width: 8px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dim); }

/* ──────────────────────────────────────────────────────────────
   3. GLOBAL CRT EFFECTS (scanlines + vignette)
   ────────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 100;
  mix-blend-mode: overlay;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  z-index: 99;
}

/* shared grid background (used by some sections) */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,157,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,157,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 0; pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────
   4. GLOBAL NAV (sticky, smooth-scroll links)
   ────────────────────────────────────────────────────────────── */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6,8,13,.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.site-nav .nav-logo {
  color: var(--green); font-weight: 700; font-size: 15px;
  letter-spacing: -.02em;
  text-shadow: 0 0 14px rgba(0,255,157,.4);
}
.site-nav .nav-links { display: flex; gap: 24px; align-items: center; }
.site-nav .nav-link {
  color: var(--fg-dim); font-size: 13px;
  transition: color 200ms;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--green); }
.site-nav .nav-cta {
  color: var(--bg); background: var(--green);
  padding: 6px 14px; border-radius: 4px; font-size: 12px;
  font-weight: 700; font-family: inherit;
  box-shadow: 0 0 20px rgba(0,255,157,.3);
  transition: box-shadow 180ms, transform 120ms;
}
.site-nav .nav-cta:hover { box-shadow: 0 0 30px rgba(0,255,157,.5); transform: translateY(-1px); }

/* Section anchor offset (so sticky nav doesn't cover headings) */
section[id] { scroll-margin-top: 72px; }

/* glow orbs (used in hero) */
.glow-orb {
  position: fixed; width: 600px; height: 600px;
  border-radius: 50%; filter: blur(120px);
  z-index: 0; pointer-events: none;
}
.glow-a { background: var(--green); top:-200px; left:-200px; opacity:.35; }
.glow-b { background: #0066ff;     bottom:-200px; right:-200px; opacity:.22; }

/* ══════════════════════════════════════════════════════════════
   SECTION 1 · HERO (terminal pane)
   ══════════════════════════════════════════════════════════════ */
#hero {
  position: relative; z-index: 2;
  padding: 40px 32px 32px;
  max-width: 1200px; margin: 0 auto; width: 100%;
}

#hero .pre-headline {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; font-size: 12px; color: var(--fg-dim);
  letter-spacing: .12em; text-transform: uppercase;
}
#hero .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.85); }
}

#hero h1 {
  font-size: clamp(38px, 6.2vw, 88px);
  font-weight: 800; line-height: .95;
  letter-spacing: -.04em; margin-bottom: 14px;
  color: var(--fg);
}
#hero h1 .hl-green {
  color: var(--green);
  text-shadow: 0 0 30px rgba(0,255,157,.4);
}
#hero h1 .hl-amber { color: var(--amber); font-style: italic; font-weight: 500; }
#hero h1 .blink-cursor {
  color: var(--green); display: inline-block;
  transform: translateY(-6px);
  animation: blink-char 1.06s step-end infinite;
}
@keyframes blink-char { 0%,100%{opacity:1} 50%{opacity:0} }

#hero .sub {
  font-size: clamp(14px,1.4vw,18px); color: var(--fg-dim);
  max-width: 640px; line-height: 1.6; margin-bottom: 36px;
}
#hero .sub-mute { color: var(--fg-mute); }

/* terminal window */
#hero .terminal {
  background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,.7),
    0 0 1px rgba(0,255,157,.1),
    inset 0 0 60px rgba(0,255,157,.02);
  overflow: hidden; margin-bottom: 28px;
}
#hero .win-chrome {
  display: flex; align-items: center; gap: 12;
  padding: 10px 16px;
  background: var(--bg-chrome);
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  position: relative;
}
#hero .traffic-lights { display: flex; gap: 8px; }
#hero .dot {
  width: 12px; height: 12px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
#hero .dot-r { background: #ff5f57; }
#hero .dot-y { background: #febc2e; }
#hero .dot-g { background: #28c840; }
#hero .win-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--fg-dim); letter-spacing: .04em;
  white-space: nowrap;
}
#hero .win-branch {
  margin-left: auto; font-size: 11px; color: var(--fg-mute);
  display: flex; align-items: center; gap: 8px;
}
#hero .branch-dot { color: var(--green); }

#hero .term-body {
  display: grid;
  grid-template-columns: minmax(320px,380px) 1fr;
  height: 290px;
  overflow: hidden;
}
#hero .neofetch {
  padding: 24px 24px 24px 28px;
  border-right: 1px solid var(--line);
  background: rgba(0,0,0,.2);
  font-size: 13px;
  overflow: hidden;
}
#hero .ascii-art {
  color: var(--green);
  font-family: inherit; font-size: 9px; line-height: 1.05;
  text-shadow: 0 0 12px rgba(0,255,157,.35);
  margin-bottom: 18px; white-space: pre;
  letter-spacing: 0;
}
#hero .neo-divider { border-top: 1px dashed var(--line); padding-top: 14px; }
#hero .neo-row { display: flex; gap: 12px; line-height: 1.7; }
#hero .neo-key { color: var(--green); font-weight: 600; min-width: 92px; }
#hero .neo-val { color: var(--fg); }
#hero .neo-swatches { margin-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
#hero .swatch { width: 22px; height: 14px; border-radius: 2px; display: inline-block; }

#hero .tw-pane {
  padding: 24px 28px;
  min-height: unset;
  overflow-y: auto;
  font-size: 14px; line-height: 1.65;
  font-family: inherit;
  overflow: auto;
}
#hero .prompt-user   { color: var(--green); }
#hero .prompt-at     { color: var(--fg-mute); }
#hero .prompt-host   { color: var(--blue); }
#hero .prompt-colon  { color: var(--fg-mute); }
#hero .prompt-path   { color: var(--amber); }
#hero .prompt-dollar { color: var(--fg-mute); }
#hero .cmd-text      { color: var(--fg); }
#hero .tw-line { white-space: pre-wrap; word-break: break-word; }
#hero .tw-output-line { white-space: pre-wrap; line-height: 1.55; color: var(--fg); opacity: .95; }
#hero .tw-output-line.indent { padding-left: 16px; }
#hero .tw-cursor {
  display: inline-block;
  width: .6em; height: 1.05em;
  vertical-align: text-bottom; margin-left: 2px;
  transform: translateY(2px);
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink-cursor .53s step-end infinite;
}
@keyframes blink-cursor { 0%,100%{opacity:1} 50%{opacity:0} }

#hero .statusbar {
  display: flex; align-items: center;
  border-top: 1px solid var(--line);
  background: var(--bg-chrome);
  border-radius: 0 0 10px 10px;
  overflow: hidden; font-size: 11px;
}
#hero .sb-seg {
  padding: 4px 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  margin-right: -8px; color: #0a0a0a;
}
#hero .sb-seg-green { background: var(--green); }
#hero .sb-seg-blue  { background: var(--blue); color: #fff; }
#hero .sb-body {
  flex: 1; padding: 6px 16px 6px 24px; color: var(--fg-dim);
  display: flex; justify-content: space-between; align-items: center;
}
#hero .sb-right { display: flex; gap: 18px; }
#hero .sb-time { color: var(--green); }

/* ── CTAs ── */
#hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
#hero .cta-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-radius: 6px;
  font-family: inherit; font-size: 14px; cursor: pointer;
  transition: all 180ms ease; min-width: 240px;
  text-decoration: none; position: relative; overflow: hidden;
}
#hero .cta-btn.primary {
  background: rgba(0,255,157,.10);
  border: 1px solid var(--green);
  color: var(--fg);
  box-shadow: inset 0 0 20px rgba(0,255,157,.06), 0 0 0 0 rgba(0,255,157,0);
}
#hero .cta-btn.primary:hover {
  background: var(--green); color: var(--bg);
  box-shadow: 0 0 32px rgba(0,255,157,.50);
}
#hero .cta-btn.ghost {
  background: rgba(77,143,255,.07);
  border: 1px solid rgba(77,143,255,.40);
  color: var(--fg);
}
#hero .cta-btn.ghost:hover {
  background: rgba(77,143,255,.18);
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(77,143,255,.25);
}
#hero .cta-icon { font-weight: 700; color: var(--green); transition: color 180ms; }
#hero .cta-btn.ghost .cta-icon { color: var(--blue); }
#hero .cta-btn.primary:hover .cta-icon { color: var(--bg); }
#hero .cta-info { display: flex; flex-direction: column; line-height: 1.2; }
#hero .cta-label { font-weight: 600; }
#hero .cta-sub {
  font-size: 10px; color: var(--fg-mute);
  letter-spacing: .04em; margin-top: 2px;
  transition: color 180ms;
}
#hero .cta-btn.primary:hover .cta-sub { color: rgba(0,0,0,.65); }
#hero .cta-btn.ghost:hover .cta-sub { color: var(--fg-dim); }
#hero .cta-arrow { margin-left: auto; font-weight: 700; color: var(--fg-mute); transition: color 180ms; }
#hero .cta-btn.primary:hover .cta-arrow { color: var(--bg); }
#hero .cta-btn.ghost:hover .cta-arrow { color: var(--blue); }

/* ── Trust cards ── */
#hero .trust {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding-top: 32px;
  border-top: 1px dashed var(--line);
}
#hero .trust-item {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative; overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms;
}
#hero .trust-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--trust-accent, rgba(0,255,157,.04)) 0%, transparent 60%);
  pointer-events: none;
}
#hero .trust-item:nth-child(1) { --trust-accent: rgba(0,255,157,.06); }
#hero .trust-item:nth-child(2) { --trust-accent: rgba(77,143,255,.06); }
#hero .trust-item:nth-child(3) { --trust-accent: rgba(255,184,77,.06); }
#hero .trust-item:nth-child(4) { --trust-accent: rgba(194,100,255,.06); }
#hero .trust-item:nth-child(5) { --trust-accent: rgba(0,229,255,.06); }
#hero .trust-item:hover {
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
#hero .trust-key {
  font-size: 10px; color: var(--fg-mute);
  letter-spacing: .10em; text-transform: uppercase;
}
#hero .trust-val {
  font-size: 28px; font-weight: 800; letter-spacing: -.03em;
  line-height: 1;
}
#hero .trust-desc {
  font-size: 10px; color: var(--fg-mute); line-height: 1.4;
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 2 · TECH CONSTELLATION (canvas + inspector)
   ══════════════════════════════════════════════════════════════ */
#constellation {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 40px 32px 60px;
}
#constellation .body-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 24px;
}
@media (max-width: 900px) {
  #constellation .body-grid {
    grid-template-columns: 1fr;
  }
  #constellation aside { min-height: auto; }
}
#constellation .canvas-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), inset 0 0 80px rgba(0,255,157,.02);
  min-height: 640px;
  position: relative;
}
#constellation .card-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--bg-chrome);
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--fg-dim);
}
#constellation .traffic { display: flex; gap: 8px; }
#constellation .dot { width: 11px; height: 11px; border-radius: 50%; }
#constellation .dot-r { background: #ff5f57; }
#constellation .dot-y { background: #febc2e; }
#constellation .dot-g { background: #28c840; }
#constellation .chrome-path { margin-left: 8px; }
#constellation .chrome-path span { color: var(--green); }
#constellation .chrome-cats {
  margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 11px;
}
#constellation .chrome-cat { display: flex; align-items: center; gap: 6px; }
#constellation .hex-dot {
  width: 8px; height: 8px;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
#constellation .card-headline { padding: 24px 28px 12px; }
#constellation .card-headline h2 {
  font-size: clamp(28px,3.4vw,46px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1;
  color: var(--fg);
}
#constellation .card-headline h2 span { color: var(--green); text-shadow: 0 0 24px rgba(0,255,157,.4); }
#constellation .card-headline p {
  color: var(--fg-dim); font-size: 13px; margin-top: 6px;
}
#constellation .canvas-wrap { flex: 1; position: relative; min-height: 460px; }
#constellation canvas { display: block; width: 100%; height: 100%; }
#constellation .canvas-hint {
  position: absolute; bottom: 16px; left: 18px;
  color: var(--fg-mute); font-size: 11px;
  display: flex; gap: 14px; align-items: center;
  pointer-events: none; font-family: inherit;
}
#constellation kbd {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 3px;
  font-size: 10px; font-family: inherit;
  color: var(--fg-dim);
}
#constellation .pin-label { color: var(--green); pointer-events: auto; cursor: pointer; }
#constellation .layout-badge {
  position: absolute; top: 16px; right: 18px;
  font-size: 10px; color: var(--fg-mute);
  letter-spacing: .16em; text-transform: uppercase;
  display: flex; gap: 10px; align-items: center;
}
#constellation .layout-badge span { color: var(--green); }

#constellation aside {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  min-height: 640px;
  display: flex; flex-direction: column;
}
#constellation .inspector-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
}
#constellation .inspector-header .title { color: var(--fg-mute); }
#constellation .inspector-header .state { color: var(--fg-mute); letter-spacing: .08em; }
#constellation .inspector-header .state.hover { color: var(--green); }
#constellation .inspector-header .state.pinned { color: var(--green); }
#constellation .panel-idle { color: var(--fg-mute); font-size: 12px; line-height: 1.7; }
#constellation .panel-idle .prompt { color: var(--green); margin-bottom: 14px; }
#constellation .panel-idle .hint { color: var(--fg-dim); }
#constellation .legend { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line); }
#constellation .legend-title {
  color: var(--fg-dim); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
}
#constellation .legend-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
#constellation .legend-hex {
  width: 10px; height: 10px;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
#constellation .legend-label { font-size: 11px; color: var(--fg); }
#constellation .legend-count { font-size: 10px; color: var(--fg-mute); margin-left: auto; }
#constellation .panel-detail { font-size: 12px; line-height: 1.65; display: none; }
#constellation .detail-cat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
#constellation .detail-cat-hex {
  width: 22px; height: 22px;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--bg);
}
#constellation .detail-cat-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
#constellation .detail-name {
  font-size: 24px; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 14px; margin-top: 4px;
  color: var(--fg);
}
#constellation .detail-desc { color: var(--fg-dim); margin-bottom: 18px; }
#constellation .detail-stats { display: flex; gap: 18px; margin-bottom: 18px; }
#constellation .stat-label {
  color: var(--fg-mute); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px;
}
#constellation .stat-val { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
#constellation .level-bar-bg {
  height: 5px; background: rgba(255,255,255,.06);
  border-radius: 2px; overflow: hidden; margin-bottom: 22px;
}
#constellation .level-bar-fill {
  height: 100%; border-radius: 2px;
  transition: width 400ms cubic-bezier(.2,.9,.3,1);
}
#constellation .projects-header {
  color: var(--fg-dim); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 10px; padding-top: 18px;
  border-top: 1px dashed var(--line); margin-top: 4px;
}
#constellation .project-row { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 12px; padding: 3px 0; }
#constellation .project-bullet { font-size: 12px; }

/* ══════════════════════════════════════════════════════════════
   SECTION 3 · PROJECTS (3D flip cards)
   ══════════════════════════════════════════════════════════════ */
#projects {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 40px 32px 80px;
}
#projects .pre-hl {
  display:inline-flex; align-items:center; gap:10px;
  font-size:11px; color:var(--fg-dim);
  letter-spacing:.14em; text-transform:uppercase; margin-bottom:16px;
}
#projects .pre-dot { width:7px; height:7px; background:var(--green); border-radius:50%; box-shadow:0 0 10px var(--green); }
#projects h2 {
  font-size:clamp(36px,5.4vw,72px); font-weight:800;
  letter-spacing:-.04em; line-height:.95; color:var(--fg); margin-bottom:16px;
}
#projects .hl { color:var(--green); text-shadow:0 0 30px rgba(0,255,157,.45); }
#projects .h2-sub { color:var(--fg-mute); font-size:.5em; font-weight:500; letter-spacing:-.02em; }
#projects .hero-sub { color:var(--fg-dim); font-size:14px; max-width:580px; line-height:1.6; margin-bottom:36px; }

#projects .filter-row { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:32px; }
#projects .fchip {
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 14px; font-size:12px; font-weight:600;
  background:rgba(255,255,255,.02); color:var(--fg);
  border:1px solid var(--line); border-radius:6px;
  transition:all 160ms ease;
}
#projects .fchip-dot { width:7px; height:7px; border-radius:50%; }
#projects .fchip-count { font-size:10px; color:var(--fg-mute); }

#projects .cards-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap:28px;
}

.pr-load-more-btn {
  display: block;
  margin: 36px auto 0;
  padding: 14px 32px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-mute);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.pr-load-more-btn:hover {
  color: var(--green);
  border-color: rgba(0,255,157,0.4);
  box-shadow: 0 0 16px rgba(0,255,157,0.12);
}
#projects .card-container {
  perspective:1400px;
  width:100%;
  aspect-ratio:360/460;
  position:relative;
  cursor:pointer;
}
#projects .card-shadow {
  position:absolute; bottom:-8px; left:10%; right:10%; height:16px;
  border-radius:50%; filter:blur(10px);
  opacity:.4; transition:opacity 300ms; pointer-events:none;
}
#projects .card-container:hover .card-shadow { opacity:1; }
#projects .card-inner {
  position:relative; width:100%; height:100%;
  transform-style:preserve-3d;
  transition:transform 750ms cubic-bezier(.4,.2,.2,1);
  will-change:transform;
}
#projects .face {
  position:absolute; inset:0;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  background:var(--bg-card);
  border-radius:14px; overflow:hidden;
  display:flex; flex-direction:column;
}
#projects .face-back { transform:rotateY(180deg); }
#projects .face-front {
  border:1px solid var(--line);
  box-shadow:0 20px 40px -20px rgba(0,0,0,.5);
  transition:border-color 240ms, box-shadow 240ms;
}
#projects .card-container:hover .face-front {
  box-shadow:0 30px 60px -20px rgba(0,0,0,.6);
}
#projects .corner-glow {
  position:absolute; top:0; right:0; width:140px; height:140px; pointer-events:none;
}
#projects .ribbon {
  position:absolute; top:14px; right:-32px;
  color:var(--bg); padding:3px 36px;
  font-size:9px; font-weight:800; letter-spacing:.18em;
  transform:rotate(35deg); z-index:4;
}
#projects .card-header {
  padding:16px 18px 12px;
  display:flex; align-items:center; justify-content:space-between;
  position:relative; z-index:2;
}
#projects .card-num-type { display:flex; align-items:center; gap:10px; font-size:10px; color:var(--fg-mute); letter-spacing:.14em; }
#projects .card-num { font-weight:800; font-size:14px; letter-spacing:0; }
#projects .card-divider { width:1px; height:12px; background:var(--line); }
#projects .card-type { text-transform:uppercase; }
#projects .status-badge {
  display:flex; align-items:center; gap:6px;
  padding:3px 10px; font-size:9px; font-weight:700;
  letter-spacing:.16em; border-radius:3px; border:1px solid;
}
#projects .status-dot {
  width:6px; height:6px; border-radius:50%;
  animation:statusBlink 2s ease-in-out infinite;
}
#projects .card-preview {
  margin:0 14px; border-radius:8px; overflow:hidden;
  background:#06080d; border:1px solid var(--line);
  aspect-ratio:360/220; position:relative; flex:none;
}
#projects .shine-overlay {
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(110deg, transparent 35%, rgba(255,255,255,.15) 50%, transparent 65%);
  animation:shineSweep 1.2s ease-out forwards;
}
#projects .card-body { padding:16px 18px 8px; flex:1; display:flex; flex-direction:column; }
#projects .card-title { font-size:20px; font-weight:700; color:var(--fg); letter-spacing:-.02em; line-height:1.15; margin-bottom:8px; }
#projects .card-tagline { color:var(--fg-dim); font-size:11.5px; line-height:1.55; flex:1; }
#projects .card-footer {
  display:flex; justify-content:space-between; align-items:flex-end;
  padding-top:10px; border-top:1px dashed var(--line); margin-top:14px;
}
#projects .impact-label { font-size:9px; color:var(--fg-mute); letter-spacing:.14em; text-transform:uppercase; margin-bottom:3px; }
#projects .impact-val-row { display:flex; align-items:baseline; gap:6px; }
#projects .impact-val { font-size:22px; font-weight:800; letter-spacing:-.02em; line-height:1; }
#projects .impact-sub { font-size:10px; color:var(--fg-dim); }
#projects .flip-hint { font-size:10px; color:var(--fg-mute); letter-spacing:.12em; text-transform:uppercase; display:flex; align-items:center; gap:6px; opacity:.6; transition:opacity 240ms; }
#projects .card-container:hover .flip-hint { opacity:1; }

#projects .face-back { border:1px solid; }
#projects .back-body { padding:18px 20px; flex:1; display:flex; flex-direction:column; position:relative; z-index:1; }
#projects .back-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
#projects .back-num-year { font-size:9px; color:var(--fg-mute); letter-spacing:.16em; text-transform:uppercase; margin-bottom:4px; }
#projects .back-title { font-size:18px; font-weight:700; color:var(--fg); letter-spacing:-.02em; line-height:1.1; }
#projects .back-year-bg { font-size:60px; font-weight:800; opacity:.18; letter-spacing:-.05em; line-height:.85; }
#projects .role-block {
  padding:10px 12px; background:rgba(0,0,0,.3); border-radius:6px; border:1px solid; margin-bottom:16px;
}
#projects .role-label { font-size:9px; color:var(--fg-mute); letter-spacing:.14em; text-transform:uppercase; margin-bottom:4px; }
#projects .role-val { font-size:13px; font-weight:700; }
#projects .section-label { font-size:9px; color:var(--fg-mute); letter-spacing:.14em; text-transform:uppercase; margin-bottom:8px; }
#projects .stack-chips { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:16px; }
#projects .stack-chip {
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 8px; font-size:10px; border-radius:3px; border:1px solid;
}
#projects .stack-dot { width:4px; height:4px; border-radius:50%; }
#projects .features { flex:1; }
#projects .feature-row { display:flex; gap:8px; padding:4px 0; font-size:11px; color:var(--fg); line-height:1.5; }
#projects .feature-bullet { flex:none; }
#projects .links-row { display:flex; gap:6px; margin-top:14px; padding-top:14px; border-top:1px dashed var(--line); }
#projects .link-btn {
  flex:1; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:8px 10px; font-size:11px; font-weight:700;
  border:1px solid var(--line); border-radius:5px; transition:all 160ms ease;
  color:var(--fg); background:transparent; cursor:pointer;
}
#projects .link-btn.primary { border:none; color:var(--bg); }
#projects .link-btn:hover:not(.primary) { opacity:.75; }

#projects .footer-note {
  margin-top:60px; padding:24px 28px;
  background:var(--bg-elev); border:1px dashed var(--line);
  border-radius:10px; display:flex; align-items:center; gap:18px; flex-wrap:wrap;
}
#projects .footer-text { flex:1; min-width:280px; }
#projects .footer-kicker { font-size:11px; color:var(--green); letter-spacing:.16em; text-transform:uppercase; margin-bottom:6px; }
#projects .footer-body { font-size:14px; color:var(--fg); }
#projects .footer-body span { color:var(--fg-dim); }
#projects .footer-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 18px; background:transparent; color:var(--green);
  font-family:inherit; font-weight:700; font-size:12px;
  border:1px solid var(--green); border-radius:5px;
  transition:all 200ms;
}
#projects .footer-btn:hover { background:rgba(0,255,157,.08); }

@keyframes statusBlink { 0%,100%{opacity:1} 50%{opacity:.45} }
@keyframes shineSweep {
  0%   { transform:translateX(-120%); }
  100% { transform:translateX(120%); }
}

/* ══════════════════════════════════════════════════════════════
   SECTION 4 · TIMELINE (career milestones)
   ══════════════════════════════════════════════════════════════ */
#timeline { position: relative; z-index: 2; }
#timeline .progress-bar-wrap { position: sticky; top: 61px; height: 2px; background: transparent; z-index: 19; }
#timeline .progress-bar-fill { height: 100%; width: 0%; background: var(--green); box-shadow: 0 0 8px var(--green); transition: width 80ms linear; }
#timeline .main-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 32px 80px; }

#timeline .pre-hl {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--fg-dim);
  margin-bottom: 18px; letter-spacing: .14em; text-transform: uppercase;
}
#timeline .pre-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); animation: nowBlink 1.4s ease-in-out infinite; }
#timeline h2 {
  font-size: clamp(38px,5.6vw,78px); font-weight: 800;
  letter-spacing: -.04em; line-height: .95; color: var(--fg); margin-bottom: 18px;
}
#timeline h2 .hl { color: var(--green); text-shadow: 0 0 30px rgba(0,255,157,.45); }
#timeline .hero-sub { color: var(--fg-dim); font-size: 15px; max-width: 620px; line-height: 1.6; margin-bottom: 32px; }

#timeline .kpi-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
#timeline .kpi {
  flex: 1; min-width: 140px; padding: 18px 22px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 10px; position: relative; overflow: hidden;
}
#timeline .kpi-glow { position: absolute; inset: 0; pointer-events: none; }
#timeline .kpi-label { font-size: 10px; color: var(--fg-mute); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
#timeline .kpi-val { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
#timeline .kpi-sub { font-size: 11px; color: var(--fg-dim); margin-top: 6px; }

#timeline .filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
#timeline .fchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.02); color: var(--fg);
  border: 1px solid var(--line); border-radius: 6px;
  transition: all 180ms ease;
}
#timeline .fchip-dot { width: 7px; height: 7px; border-radius: 50%; }
#timeline .fchip-count { font-size: 10px; color: var(--fg-mute); }

#timeline .timeline-wrap { position: relative; padding: 20px 0; }
#timeline .spine {
  position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 2px; pointer-events: none; z-index: 0;
}
#timeline .spine-track {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,255,157,.15) 8%, rgba(0,255,157,.15) 92%, transparent 100%);
}
#timeline .spine-fill {
  position: absolute; top: 0; left: 0; right: 0; height: 0%;
  background: linear-gradient(to bottom, transparent 0%, var(--green) 12%, var(--green) 100%);
  box-shadow: 0 0 12px rgba(0,255,157,.7);
  transition: height 100ms linear;
}
#timeline .spine-pulse {
  position: absolute; left: -5px; width: 12px; height: 12px;
  background: radial-gradient(circle, #fff 0%, var(--green) 30%, transparent 70%);
  border-radius: 50%;
  filter: drop-shadow(0 0 8px var(--green));
  animation: spineTravel linear forwards;
}
@keyframes spineTravel {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

#timeline .milestones { display: flex; flex-direction: column; gap: 8px; }
#timeline .ms-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  min-height: 220px; position: relative;
  transition: opacity 240ms ease;
}
#timeline .ms-row.dimmed { opacity: .32; }
#timeline .ms-left  { display: flex; justify-content: flex-end; padding-right: 30px; }
#timeline .ms-right { display: flex; justify-content: flex-start; padding-left: 30px; }
#timeline .ms-left  .ms-card { transform: translateX(40px); }
#timeline .ms-right .ms-card { transform: translateX(-40px); }
#timeline .ms-left  .ms-card.visible,
#timeline .ms-right .ms-card.visible { transform: translateX(0); }
#timeline .ms-center {
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; padding-top: 28px;
  position: relative; z-index: 3;
}
#timeline .ms-card {
  max-width: 480px; width: 100%;
  opacity: 0;
  transition: transform 700ms cubic-bezier(.2,.9,.3,1), opacity 700ms ease;
  position: relative;
}
#timeline .ms-card.visible { opacity: 1; }
#timeline .ms-arm {
  position: absolute; top: 36px; height: 1px;
  box-shadow: 0 0 6px;
}
#timeline .ms-left  .ms-arm { right: -30px; width: 30px; }
#timeline .ms-right .ms-arm { left:  -30px; width: 30px; }
#timeline .ms-card-inner {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 10px; padding: 20px 22px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
  transition: border-color 220ms, box-shadow 220ms, transform 220ms;
}
#timeline .ms-row:hover .ms-card-inner { box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
#timeline .ms-card-corner {
  position: absolute; top: 0; left: 0; width: 60px; height: 60px;
  pointer-events: none;
}
#timeline .ms-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-mute); font-weight: 600;
}
#timeline .ms-era-badge { padding: 3px 8px; border-radius: 3px; font-weight: 700; }
#timeline .ms-location { margin-left: auto; color: var(--fg-mute); }
#timeline .ms-year-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
#timeline .ms-year { font-size: 50px; font-weight: 800; letter-spacing: -.04em; line-height: .9; }
#timeline .ms-quarter { font-size: 11px; color: var(--fg-mute); letter-spacing: .08em; }
#timeline .ms-now-badge {
  margin-left: auto; padding: 3px 8px;
  background: var(--green); color: var(--bg);
  font-size: 9px; font-weight: 800; letter-spacing: .14em;
  border-radius: 3px; box-shadow: 0 0 14px var(--green);
  animation: nowBlink 1.4s ease-in-out infinite;
}
#timeline .ms-title { font-size: 19px; font-weight: 700; color: var(--fg); letter-spacing: -.02em; line-height: 1.25; margin-bottom: 4px; }
#timeline .ms-org { font-size: 12px; color: var(--fg-dim); margin-bottom: 14px; }
#timeline .ms-summary { color: var(--fg); font-size: 13px; line-height: 1.7; opacity: .85; margin-bottom: 16px; }
#timeline .ms-impact {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 14px; margin-bottom: 14px;
  background: rgba(0,0,0,.25); border-radius: 3px;
  border-left: 2px solid;
}
#timeline .ms-impact-metric { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
#timeline .ms-impact-label { font-size: 11px; color: var(--fg-dim); line-height: 1.4; }
#timeline .ms-stack { display: flex; flex-wrap: wrap; gap: 5px; }
#timeline .ms-tag {
  padding: 3px 8px; font-size: 10px; color: var(--fg-dim);
  background: rgba(255,255,255,.025); border: 1px solid var(--line);
  border-radius: 3px;
}
#timeline .ms-node-wrap { position: relative; width: 60px; display: flex; justify-content: center; }
#timeline .ms-range {
  position: absolute; top: -10px; font-size: 10px; color: var(--fg-mute);
  letter-spacing: .14em; white-space: nowrap;
  opacity: 0; transition: opacity 600ms ease 300ms;
}
#timeline .ms-range.visible { opacity: 1; }
#timeline .ms-now-ring {
  position: absolute; top: 12px; width: 60px; height: 60px;
  border-radius: 50%; border: 1.5px solid var(--green);
  animation: nowPulse 2.4s ease-out infinite;
  pointer-events: none;
}
#timeline .ms-now-ring2 { animation-delay: 1.2s; }
#timeline .ms-glow-ring {
  position: absolute; top: 6px; width: 46px; height: 46px;
  border-radius: 50%; opacity: 0;
  transition: opacity 700ms ease 200ms;
}
#timeline .ms-glow-ring.visible { opacity: 1; }
#timeline .ms-hex {
  position: absolute; top: 12px; width: 34px; height: 34px;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--bg);
  opacity: 0; transform: scale(.4);
  transition: opacity 600ms cubic-bezier(.2,.9,.3,1), transform 600ms cubic-bezier(.2,.9,.3,1), box-shadow 600ms;
}
#timeline .ms-hex.visible { opacity: 1; transform: scale(1); }
#timeline .ms-row:hover .ms-hex { transform: scale(1.15) rotate(30deg) !important; }
#timeline .ms-row:hover .ms-card-inner { transform: translateY(-4px); }

#timeline .timeline-tail { display: flex; justify-content: center; padding-top: 20px; }
#timeline .tail-pill {
  font-size: 11px; color: var(--fg-mute);
  letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 16px; background: var(--bg-elev);
  border: 1px dashed var(--line); border-radius: 20px;
}
#timeline .tail-pill span { color: var(--green); }

#timeline .skills-card {
  margin-top: 56px; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 30px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
}
#timeline .skills-hdr { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
#timeline .skills-hdr-l .sub { font-size: 10px; color: var(--fg-mute); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
#timeline .skills-hdr-l h3 { font-size: 22px; font-weight: 800; color: var(--fg); letter-spacing: -.02em; }
#timeline .skills-hdr-l h3 span { color: var(--green); text-shadow: 0 0 18px rgba(0,255,157,.45); }
#timeline .skills-hdr-r { font-size: 11px; color: var(--fg-dim); }
#timeline .skills-svg-wrap { overflow-x: auto; }
#timeline .stream-legend {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px;
  padding-top: 14px; border-top: 1px dashed var(--line);
}
#timeline .stream-legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: 11px; border-radius: 4px;
  border: 1px solid var(--line); transition: all 160ms; cursor: default;
}
#timeline .stream-legend-swatch { width: 8px; height: 8px; border-radius: 2px; }

@keyframes nowPulse {
  0%   { transform: scale(.4); opacity: .9; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes nowBlink {
  0%,100% { opacity: 1; }
  50%     { opacity: .45; }
}

/* ══════════════════════════════════════════════════════════════
   SECTION 5 · HEATMAP (GitHub-style activity)
   ══════════════════════════════════════════════════════════════ */
#heatmap {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 40px 32px 60px;
}
#heatmap .hm-toolbar {
  display: flex; justify-content: flex-end; margin-bottom: 16px;
}
#heatmap .year-switcher {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 4px;
}
#heatmap .year-btn {
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  border: 0; border-radius: 4px;
  background: transparent; color: var(--fg-dim);
  transition: all 160ms ease; letter-spacing: .02em;
}
#heatmap .year-btn.active { background: var(--accent); color: var(--bg); }

#heatmap .pre-hl {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px; font-size: 11px; color: var(--fg-dim);
  letter-spacing: .14em; text-transform: uppercase;
}
#heatmap .pre-dot {
  width: 7px; height: 7px; background: var(--accent);
  border-radius: 50%; box-shadow: 0 0 8px var(--accent);
}
#heatmap h2 {
  font-size: clamp(34px,4.6vw,56px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1;
  color: var(--fg); margin-bottom: 10px;
}
#heatmap h2 .total-num {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(0,255,157,.5);
}
#heatmap .subtitle { color: var(--fg-dim); font-size: 14px; margin-bottom: 28px; }

#heatmap .kpi-row { display: flex; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
#heatmap .kpi-tile {
  flex: 1; min-width: 160px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  position: relative; overflow: hidden;
}
#heatmap .kpi-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--kpi-accent, transparent) 0%, transparent 60%);
  opacity: .08;
}
#heatmap .kpi-label {
  font-size: 10px; color: var(--fg-mute);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 8px;
}
#heatmap .kpi-value {
  font-size: 28px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1;
}
#heatmap .kpi-sub { font-size: 11px; color: var(--fg-dim); margin-top: 6px; }

#heatmap .hm-card {
  background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 28px 28px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), inset 0 0 60px rgba(0,255,157,.03);
  margin-bottom: 24px; overflow: auto;
}
#heatmap .hm-subheader {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 22px;
}
#heatmap .hm-sub-label {
  font-size: 10px; color: var(--fg-mute);
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px;
}
#heatmap .hm-sub-title { font-size: 18px; font-weight: 700; color: var(--fg); letter-spacing: -.02em; }
#heatmap .clear-btn {
  font-size: 11px; color: var(--fg-dim);
  background: transparent; border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 4px;
  transition: all 160ms;
}
#heatmap .clear-btn:hover { border-color: var(--accent); color: var(--accent); }

#heatmap .hm-wrap { position: relative; user-select: none; }
#heatmap .hm-month-row {
  position: relative; height: 16px;
  margin-left: 32px; margin-bottom: 4px;
  font-size: 11px; color: var(--fg-mute); letter-spacing: .04em;
}
#heatmap .hm-month-lbl { position: absolute; top: 0; }
#heatmap .hm-body { display: flex; }
#heatmap .hm-day-labels {
  width: 32px; display: flex; flex-direction: column;
  gap: 3px; padding-right: 6px;
  font-size: 10px; color: var(--fg-mute);
}
#heatmap .hm-day-cell { height: 13px; line-height: 13px; text-align: right; }
#heatmap .hm-grid { display: flex; gap: 3px; position: relative; }
#heatmap .hm-col { display: flex; flex-direction: column; gap: 3px; }
#heatmap .hm-cell {
  width: 13px; height: 13px; border-radius: 3px;
  position: relative; z-index: 1;
  transition: transform 140ms, box-shadow 140ms, opacity 140ms;
  cursor: pointer;
}
#heatmap .hm-cell:hover { transform: scale(1.4); z-index: 5; }
#heatmap .hm-cell.dimmed { opacity: .3; }
#heatmap .hm-cell.future { outline: 1px dashed; outline-offset: -1px; }
#heatmap .hm-legend {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; margin-top: 14px; font-size: 11px; color: var(--fg-mute);
}
#heatmap .legend-swatch { width: 13px; height: 13px; border-radius: 3px; }

@keyframes cellIn {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}

#heatmap .tech-card {
  background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 26px; margin-bottom: 24px;
}
#heatmap .section-hdr {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
#heatmap .section-hdr h3 {
  font-size: 11px; color: var(--fg-mute);
  letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
}
#heatmap .section-hdr .hint { font-size: 10px; color: var(--fg-mute); }
#heatmap .stacked-bar {
  display: flex; height: 10px; border-radius: 4px;
  overflow: hidden; background: rgba(255,255,255,.04);
  margin-bottom: 14px;
}
#heatmap .stacked-seg { transition: opacity 160ms; }
#heatmap .chips { display: flex; flex-wrap: wrap; gap: 6px; }
#heatmap .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; font-size: 11px;
  background: rgba(255,255,255,.02);
  color: var(--fg);
  border: 1px solid var(--line); border-radius: 4px;
  cursor: pointer; transition: all 160ms;
}
#heatmap .chip-dot { width: 6px; height: 6px; border-radius: 50%; }
#heatmap .chip-count { color: var(--fg-mute); font-size: 10px; }

#heatmap .proj-card {
  background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 26px;
}
#heatmap .proj-row {
  display: grid;
  grid-template-columns: 24px 1fr 80px 60px;
  align-items: center; gap: 14px;
  padding: 8px 0;
}
#heatmap .proj-rank { font-size: 10px; color: var(--fg-mute); font-weight: 600; }
#heatmap .proj-name {
  font-size: 13px; font-weight: 600; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#heatmap .proj-bar-bg {
  height: 4px; background: rgba(255,255,255,.04);
  border-radius: 2px; overflow: hidden; margin-top: 6px;
}
#heatmap .proj-bar-fill { height: 100%; border-radius: 2px; transition: width 600ms cubic-bezier(.2,.9,.3,1); }
#heatmap .proj-tech-tags { font-size: 9px; color: var(--fg-mute); display: flex; gap: 4px; margin-left: auto; }
#heatmap .proj-tag { padding: 1px 5px; background: rgba(255,255,255,.04); border-radius: 2px; }
#heatmap .proj-count { font-size: 13px; font-weight: 600; color: var(--fg); text-align: right; }
#heatmap .proj-pct { font-size: 10px; color: var(--fg-mute); margin-left: 4px; }

/* Tooltip — global (fixed positioned) */
#heatmap-tooltip {
  position: fixed; pointer-events: none; z-index: 200;
  min-width: 240px; display: none;
  background: rgba(13,17,23,.97);
  border: 1px solid rgba(0,255,157,.4);
  border-radius: 8px; padding: 12px 14px;
  font-size: 11px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.8), 0 0 30px rgba(0,255,157,.12);
  backdrop-filter: blur(8px);
}
#heatmap-tooltip .tt-date {
  font-size: 10px; color: var(--fg-mute);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px;
}
#heatmap-tooltip .tt-count {
  font-size: 28px; font-weight: 800;
  letter-spacing: -.03em; color: var(--accent);
  text-shadow: 0 0 14px rgba(0,255,157,.5);
}
#heatmap-tooltip .tt-count-lbl { font-size: 11px; color: var(--fg-dim); }
#heatmap-tooltip .tt-count-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
#heatmap-tooltip .tt-tech-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
#heatmap-tooltip .tt-tech-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
#heatmap-tooltip .tt-tech-name { color: var(--fg); flex: 1; }
#heatmap-tooltip .tt-tech-count { color: var(--fg-dim); min-width: 20px; text-align: right; }
#heatmap-tooltip .tt-proj {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--fg-dim);
}
#heatmap-tooltip .tt-proj-key { color: var(--fg-mute); }
#heatmap-tooltip .tt-future { color: var(--fg-mute); font-size: 10px; font-style: italic; }

/* ══════════════════════════════════════════════════════════════
   SECTION 6 · CONTACT — wizard form
   ══════════════════════════════════════════════════════════════ */
#contact{ position:relative; z-index:2 }

@keyframes ct-fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes ct-shakeX{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@keyframes ct-blink{0%,49%{opacity:1}50%,100%{opacity:0}}
@keyframes ct-spin{to{transform:rotate(360deg)}}
@keyframes ct-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.8)}}
@keyframes ct-drawCircle{from{stroke-dashoffset:226}to{stroke-dashoffset:0}}
@keyframes ct-drawCheck{from{stroke-dashoffset:50}to{stroke-dashoffset:0}}
@keyframes ct-burst{0%{transform:translate(0,0) scale(1);opacity:1}100%{transform:translate(var(--bx),var(--by)) scale(0);opacity:0}}
@keyframes ct-channelIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

.ct-wrap{ max-width:1200px; margin:0 auto; padding:40px 32px 80px; position:relative; z-index:2 }
.ct-hero{ margin-bottom:26px }
.ct-hero-pre{
  display:inline-flex; align-items:center; gap:8px;
  font-size:11px; color:var(--fg-dim); margin-bottom:14px;
  letter-spacing:.12em; text-transform:uppercase;
}
.ct-hero-pre .dot{ width:7px;height:7px;background:var(--green);border-radius:50%;box-shadow:0 0 10px var(--green) }
.ct-hero h2{
  font-size:clamp(32px,4.8vw,64px);
  font-weight:800; letter-spacing:-.04em;
  line-height:.97; color:var(--fg); margin-bottom:12px;
}
.ct-hero h2 .hl{ color:var(--green); text-shadow:0 0 28px rgba(0,255,157,.4) }
.ct-hero h2 em{ color:var(--amber); font-style:italic; font-weight:500 }
.ct-hero h2 .caret{ color:var(--green); display:inline-block; animation:ct-blink 1s steps(1) infinite }
.ct-hero p{ color:var(--fg-dim); font-size:14px; max-width:560px; line-height:1.6 }
.ct-hero p .mute{ color:var(--fg-mute) }

.ct-card{
  background:var(--bg-elev); border:1px solid var(--line);
  border-radius:12px; overflow:hidden;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.7),0 0 1px rgba(0,255,157,.08),inset 0 0 60px rgba(0,255,157,.015);
  position:relative;
}
.ct-chrome{
  padding:10px 16px; background:var(--bg-chrome);
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; gap:10px;
}
.ct-chrome-lights{ display:flex; gap:7px }
.ct-chrome-lights span{ width:11px;height:11px;border-radius:50% }
.ct-chrome-lights span:nth-child(1){background:#ff5f57}
.ct-chrome-lights span:nth-child(2){background:#febc2e}
.ct-chrome-lights span:nth-child(3){background:#28c840}
.ct-chrome-label{ margin-left:6px; font-size:11px; color:var(--fg-dim) }
.ct-chrome-branch{
  margin-left:auto; font-size:10px; color:var(--fg-mute);
  display:flex; align-items:center; gap:5px;
}
.ct-chrome-branch i{ color:var(--green); font-style:normal }

.ct-progress{ height:2px; background:var(--line-soft); position:relative }
.ct-progress-fill{
  position:absolute; left:0; top:0; bottom:0; width:0;
  background:var(--green); box-shadow:0 0 8px var(--green);
  transition:width 360ms cubic-bezier(.2,.9,.3,1);
}

.ct-grid{
  display:grid; grid-template-columns:270px 1fr;
  min-height:500px; position:relative;
}

.ct-sidebar{
  padding:24px 20px 24px 22px;
  border-right:1px solid var(--line);
  background:rgba(0,0,0,.22);
  font-size:12px; color:var(--fg);
}
.ct-ascii{
  color:var(--green); font-family:inherit; font-size:13px; line-height:1.2;
  text-shadow:0 0 16px rgba(0,255,157,.5);
  margin-bottom:20px; white-space:pre; letter-spacing:.01em;
}
.ct-badge{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px; margin-bottom:16px;
  background:rgba(0,255,157,.06);
  border:1px solid rgba(0,255,157,.2); border-radius:6px;
}
.ct-badge .dot{
  width:7px; height:7px; border-radius:50%; flex-shrink:0;
  background:var(--green); box-shadow:0 0 8px var(--green);
  animation:ct-pulse 2s ease-in-out infinite;
}
.ct-badge[data-asleep="1"] .dot{ background:var(--amber); box-shadow:0 0 8px var(--amber) }
.ct-badge .lbl{ color:var(--green); font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase }
.ct-badge[data-asleep="1"] .lbl{ color:var(--amber) }

.ct-rows{ border-top:1px dashed var(--line); padding-top:12px; padding-bottom:12px; display:flex; flex-direction:column; gap:2px }
.ct-row{ display:flex; gap:10px; line-height:1.75; font-size:12px }
.ct-row .k{ color:var(--fg-mute); min-width:78px; flex-shrink:0 }

.ct-pgp{
  margin-top:4px; padding:10px;
  background:var(--bg-input); border:1px solid var(--line);
  border-radius:6px; font-size:10px; line-height:1.65;
}
.ct-pgp .lbl{ color:var(--fg-mute); margin-bottom:4px }
.ct-pgp .fp{ color:var(--fg-dim); letter-spacing:.04em; word-break:break-all }

.ct-wizard{ position:relative }
.ct-wizard-inner{ padding:22px 26px 26px }

.ct-history{
  margin-bottom:20px; border-radius:6px; overflow:hidden;
  border:1px solid var(--line-soft); background:rgba(0,0,0,.2);
}
.ct-history-item{
  display:flex; align-items:center; gap:10px;
  padding:7px 12px; font-size:11px;
  border-bottom:1px dashed var(--line-soft);
  animation:ct-fadeUp 260ms ease;
}
.ct-history-item:last-child{ border-bottom:none }
.ct-history-item svg{ width:10px; height:10px; stroke:var(--green); fill:none; stroke-width:2.5 }
.ct-history-item .k{ color:var(--fg-mute); flex:none }
.ct-history-item .eq{ color:var(--fg-mute) }
.ct-history-item .v{ color:var(--fg); flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.ct-history-item button{
  font-size:10px; color:var(--fg-mute);
  background:transparent; border:1px solid var(--line);
  padding:1px 6px; border-radius:3px;
  cursor:pointer; font-family:inherit; flex-shrink:0;
}
.ct-history-item button:hover{ color:var(--fg-dim); border-color:var(--line-bright) }

.ct-prompt{ margin-bottom:16px }
.ct-prompt-meta{
  display:flex; align-items:center; gap:6px;
  font-size:11px; color:var(--fg-mute); margin-bottom:8px; user-select:none;
}
.ct-prompt-meta .u{ color:var(--green) }
.ct-prompt-meta .h{ color:var(--blue) }
.ct-prompt-meta .p{ color:var(--amber) }
.ct-prompt-body{ display:flex; align-items:flex-start; gap:10px; font-size:15px; line-height:1.5 }
.ct-prompt-body .icon{
  color:var(--q-color); font-size:17px; font-weight:700;
  flex:none; margin-top:-1px;
  text-shadow:0 0 10px var(--q-color);
}
.ct-prompt-body .text{ color:var(--fg) }
.ct-prompt-body .caret{
  display:inline-block; width:8px; height:15px;
  background:var(--fg); vertical-align:middle;
  margin-left:2px; animation:ct-blink 1s steps(1) infinite;
}
.ct-prompt-body .caret[data-hide="1"]{ display:none }

.ct-input-area{ animation:ct-fadeUp 240ms ease }

.ct-field{ animation:none }
.ct-field[data-err="1"]{ animation:ct-shakeX 320ms ease }
.ct-field-wrap{
  position:relative; background:var(--bg-input);
  border:1px solid var(--line-bright); border-radius:8px;
  box-shadow:0 0 0 3px rgba(0,255,157,.05),inset 0 0 20px rgba(0,255,157,.02);
  transition:border-color 200ms,box-shadow 200ms;
}
.ct-field[data-err="1"] .ct-field-wrap{
  border-color:var(--pink);
  box-shadow:0 0 0 3px rgba(255,84,112,.12);
}
.ct-field-prefix{
  position:absolute; top:50%; left:14px;
  transform:translateY(-50%);
  color:var(--q-color); font-weight:700; font-size:14px; pointer-events:none;
}
.ct-field[data-textarea="1"] .ct-field-prefix{ top:14px; transform:none }
.ct-field[data-err="1"] .ct-field-prefix{ color:var(--pink) }
.ct-field-input{
  width:100%; background:transparent; border:0;
  color:var(--fg);
  padding:13px 14px 13px 34px;
  font-size:14px; line-height:1.6;
  resize:none;
}
.ct-field[data-textarea="1"] .ct-field-input{
  padding:13px 14px 13px 38px;
  resize:vertical; min-height:110px;
}
.ct-field-hint{
  position:absolute; bottom:50%; right:12px;
  transform:translateY(50%);
  font-size:10px; color:var(--fg-mute); pointer-events:none;
  display:flex; align-items:center; gap:6px;
}
.ct-field[data-textarea="1"] .ct-field-hint{ bottom:10px; transform:none }
.ct-field-counter{ color:var(--fg-mute) }
.ct-field-counter[data-ok="1"]{ color:var(--green) }
.ct-field-kbd{
  padding:1px 6px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line); border-radius:3px;
}
.ct-field-error{
  margin-top:8px; padding:6px 10px;
  background:rgba(255,84,112,.06);
  border:1px solid rgba(255,84,112,.3);
  border-radius:4px; font-size:11px; color:var(--pink);
  animation:ct-fadeUp 200ms ease;
  display:flex; align-items:center; gap:8px;
}
.ct-field-error .code{
  padding:1px 5px; background:rgba(255,84,112,.15);
  border-radius:3px; font-size:9px; font-weight:700; letter-spacing:.04em;
}

.ct-choices{ display:grid; gap:8px }
.ct-choices[data-cols="auto"]{ grid-template-columns:repeat(auto-fit,minmax(160px,1fr)) }
.ct-choices[data-cols="2"]{ grid-template-columns:repeat(2,1fr) }
.ct-choice{
  display:flex; align-items:center; gap:10px;
  padding:11px 13px; background:var(--bg-input);
  border:1px solid var(--line-bright); border-radius:6px;
  text-align:left; cursor:pointer;
  transition:all 150ms; font-family:inherit;
}
.ct-choice:hover{ border-color:var(--fg-faint) }
.ct-choice[data-active="1"]{
  background:color-mix(in srgb,var(--q-color) 10%,transparent);
  border-color:var(--q-color);
  box-shadow:0 0 14px color-mix(in srgb,var(--q-color) 22%,transparent);
}
.ct-choice-glyph{
  width:26px; height:26px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.04);
  color:var(--q-color);
  border-radius:4px; font-weight:800; font-size:13px; flex:none;
}
.ct-choice[data-active="1"] .ct-choice-glyph{
  background:var(--q-color); color:var(--bg);
}
.ct-choice-body{ flex:1; min-width:0 }
.ct-choice-label{ font-size:12px; font-weight:600; color:var(--fg); margin-bottom:2px }
.ct-choice[data-active="1"] .ct-choice-label{ color:var(--q-color) }
.ct-choice-desc{ font-size:10px; color:var(--fg-mute); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.ct-choice-check{ width:13px; height:13px; stroke:var(--q-color); fill:none; stroke-width:2.5; display:none }
.ct-choice[data-active="1"] .ct-choice-check{ display:block }

.ct-stepnav{ display:flex; align-items:center; justify-content:space-between; margin-top:20px }
.ct-stepnav .back{
  padding:8px 14px; background:transparent;
  color:var(--fg-dim); border:1px solid var(--line); border-radius:6px;
  font-size:12px; font-family:inherit; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px;
}
.ct-stepnav .back[disabled]{ color:var(--fg-faint); cursor:not-allowed }
.ct-stepnav .counter{ font-size:11px; color:var(--fg-mute) }
.ct-stepnav .counter b{ color:var(--green); font-weight:700 }
.ct-stepnav .next{
  padding:8px 18px; background:var(--green); color:var(--bg);
  border:none; border-radius:6px;
  font-size:12px; font-weight:700; font-family:inherit; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px;
  box-shadow:0 0 18px rgba(0,255,157,.35);
  transition:all 150ms;
}
.ct-stepnav .next[disabled]{
  background:rgba(0,255,157,.12); color:var(--fg-mute);
  cursor:not-allowed; box-shadow:none;
}

.ct-overlay{
  position:absolute; inset:0;
  background:rgba(6,8,13,.9); backdrop-filter:blur(10px);
  display:grid; place-items:center; z-index:5;
  animation:ct-fadeUp 200ms ease;
}
.ct-overlay-inner{ width:100%; max-width:400px; padding:0 24px }
.ct-overlay-hd{
  font-size:10px; color:var(--fg-mute);
  letter-spacing:.16em; text-transform:uppercase;
  margin-bottom:14px; text-align:center; font-weight:700;
}
.ct-overlay-hd .g{ color:var(--green) }
.ct-overlay-steps{ display:flex; flex-direction:column; gap:6px }
.ct-ov-step{
  display:flex; align-items:center; gap:10px;
  padding:9px 12px; background:var(--bg-input);
  border:1px solid var(--line); border-radius:4px;
  opacity:.35; font-size:12px; transition:all 220ms;
}
.ct-ov-step[data-state="cur"]{ opacity:1 }
.ct-ov-step[data-state="done"]{
  opacity:1; background:rgba(0,255,157,.06);
  border-color:rgba(0,255,157,.4);
}
.ct-ov-icon{ flex:none; width:14px; display:grid; place-items:center }
.ct-ov-icon .dot{ width:9px; height:9px; border-radius:50%; border:1px dashed var(--line-bright) }
.ct-ov-icon .spin{
  width:11px; height:11px;
  border:2px solid var(--green); border-top-color:transparent;
  border-radius:50%; animation:ct-spin 700ms linear infinite;
}
.ct-ov-icon svg{ width:12px; height:12px; stroke:var(--green); fill:none; stroke-width:2.5 }
.ct-ov-tag{
  font-size:9px; padding:1px 5px;
  background:rgba(255,255,255,.04); border-radius:3px;
  color:var(--fg-mute); font-weight:700; letter-spacing:.06em; text-transform:uppercase;
}
.ct-ov-text{ flex:1; color:var(--fg-mute) }
.ct-ov-step[data-state="done"] .ct-ov-text{ color:var(--fg) }
.ct-ov-lat{ color:var(--fg-mute); font-size:10px }

.ct-success{ padding:40px 30px; text-align:center; position:relative; animation:ct-fadeUp 380ms ease }
.ct-particle{
  position:absolute; top:100px; left:50%;
  border-radius:50%; pointer-events:none;
  animation:ct-burst 900ms cubic-bezier(.25,.46,.45,.94) forwards;
}
.ct-success-inner{ position:relative; z-index:2 }
.ct-success-svg{ margin-bottom:18px }
.ct-success-svg .ring-bg{ stroke:rgba(0,255,157,.15); stroke-width:2; fill:none }
.ct-success-svg .ring{
  stroke:var(--green); stroke-width:2.5; fill:none;
  stroke-dasharray:226; stroke-linecap:round;
  animation:ct-drawCircle 600ms ease forwards;
}
.ct-success-svg .check{
  stroke:var(--green); stroke-width:3.5; fill:none;
  stroke-dasharray:50; stroke-dashoffset:50;
  stroke-linecap:round; stroke-linejoin:round;
  animation:ct-drawCheck 360ms ease 480ms forwards;
}
.ct-success-status{
  font-size:10px; color:var(--green);
  letter-spacing:.18em; text-transform:uppercase;
  margin-bottom:8px; font-weight:700;
}
.ct-success h2{
  font-size:28px; font-weight:800; color:var(--fg);
  letter-spacing:-.025em; line-height:1.1; margin-bottom:10px;
}
.ct-success-msg{ color:var(--fg-dim); font-size:13px; line-height:1.65; max-width:400px; margin:0 auto 22px }
.ct-success-msg .g{ color:var(--green) }
.ct-success-msg b{ color:var(--green); font-weight:700 }
.ct-receipt{
  max-width:420px; margin:0 auto 22px;
  background:var(--bg-input); border:1px dashed var(--line-bright);
  border-radius:6px; padding:12px 16px;
  text-align:left; font-size:11px; line-height:1.8; color:var(--fg-dim);
}
.ct-receipt-hd{
  font-size:9px; color:var(--fg-mute);
  letter-spacing:.16em; text-transform:uppercase; font-weight:700;
  margin-bottom:8px; display:flex; justify-content:space-between;
}
.ct-receipt-hd .g{ color:var(--green) }
.ct-receipt-row{ display:flex; gap:10px }
.ct-receipt-row .k{ color:var(--fg-mute); min-width:60px }
.ct-receipt-row .eq{ color:var(--fg-mute) }
.ct-receipt-row .v{ word-break:break-all }
.ct-success-cta{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap }
.ct-success-cta .btn{
  padding:10px 18px; border-radius:6px;
  font-size:12px; font-weight:600;
  font-family:inherit; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; gap:6px;
  transition:all 150ms;
}
.ct-success-cta .btn.ghost{
  background:transparent; color:var(--fg);
  border:1px solid var(--line-bright);
}
.ct-success-cta .btn.ghost:hover{ border-color:var(--green); color:var(--green) }
.ct-success-cta .btn.solid{
  background:var(--green); color:var(--bg);
  border:0; font-weight:700;
  box-shadow:0 0 22px rgba(0,255,157,.4);
}

.ct-channels{ margin-top:28px }
.ct-channels-hdr{
  display:flex; align-items:center; gap:10px;
  margin-bottom:14px; font-size:11px; color:var(--fg-mute);
}
.ct-channels-hdr .g{ color:var(--green); font-weight:700 }
.ct-channels-hdr .lbl{ letter-spacing:.08em }
.ct-channels-hdr .sep{ flex:1; height:1px; background:var(--line-soft) }
.ct-channels-hdr .cnt{ font-size:10px }
.ct-channels-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px }
.ct-channel{
  display:flex; align-items:center; gap:12px;
  padding:13px 14px; background:var(--bg-elev);
  border:1px solid var(--line); border-radius:8px;
  text-decoration:none; transition:all 180ms ease;
  animation:ct-channelIn 300ms ease both;
}
.ct-channel:hover{
  background:color-mix(in srgb,var(--ch-color) 7%,transparent);
  border-color:var(--ch-color);
  box-shadow:0 0 20px color-mix(in srgb,var(--ch-color) 28%,transparent),inset 0 0 20px rgba(255,255,255,.01);
}
.ct-channel-icon{
  width:38px; height:38px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.04); color:var(--ch-color);
  border-radius:8px; flex:none;
  transition:all 180ms;
}
.ct-channel:hover .ct-channel-icon{
  background:var(--ch-color); color:var(--bg);
  box-shadow:0 0 16px color-mix(in srgb,var(--ch-color) 28%,transparent);
}
.ct-channel-body{ flex:1; min-width:0 }
.ct-channel-label{
  font-size:12px; font-weight:600; color:var(--fg);
  transition:color 180ms;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.ct-channel:hover .ct-channel-label{ color:var(--ch-color) }
.ct-channel-desc{ font-size:10px; color:var(--fg-mute); margin-top:2px }
.ct-channel-arrow{
  color:var(--fg-faint); font-size:13px;
  transition:all 180ms; display:inline-block;
}
.ct-channel:hover .ct-channel-arrow{
  color:var(--ch-color);
  transform:translate(2px,-2px);
}

.ct-foot{
  margin-top:16px; font-size:10px; color:var(--fg-mute);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
}
.ct-foot .fast{
  background:transparent; border:1px solid var(--line);
  color:var(--fg-mute);
  padding:2px 8px; border-radius:3px;
  font-size:10px; font-family:inherit; cursor:pointer;
  transition:color 150ms,border-color 150ms;
}
.ct-foot .fast[data-on="1"]{ color:var(--green); border-color:var(--green) }

@media (max-width: 900px){
  .ct-grid{ grid-template-columns:1fr }
  .ct-sidebar{ border-right:none; border-bottom:1px solid var(--line) }
}
@media (max-width: 600px){
  .ct-wrap{ padding:22px 16px 60px }
  .ct-channels-grid{ grid-template-columns:1fr 1fr }
}


/* ══════════════════════════════════════════════════════════════
   SECTION · ABOUT — avatar + bio + skills
   ══════════════════════════════════════════════════════════════ */

@keyframes about-spin-slow { to { transform: rotate(360deg); } }

#about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 0;
}

.about-top {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 56px;
  align-items: start;
}

/* ── Corner brackets ── */
.about-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-style: solid;
  border-color: var(--green);
  opacity: 0.55;
  pointer-events: none;
}
.about-corner-tl { top: 8px;    left: 8px;   border-width: 1px 0 0 1px; }
.about-corner-tr { top: 8px;    right: 8px;  border-width: 1px 1px 0 0; }
.about-corner-bl { bottom: 8px; left: 8px;   border-width: 0 0 1px 1px; }
.about-corner-br { bottom: 8px; right: 8px;  border-width: 0 1px 1px 0; }

/* ── Avatar card ── */
.about-avatar-card {
  position: relative;
  padding: 22px 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.about-avatar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.about-avatar-dots { display: flex; gap: 6px; }
.about-avatar-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: block;
}
.about-avatar-path {
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
}
.about-avatar-wrap {
  position: relative;
  width: 100%; aspect-ratio: 1/1;
  max-width: 240px;
  margin: 0 auto 18px;
}
.about-avatar-spin-ring {
  position: absolute; inset: -6px;
  width: calc(100% + 12px); height: calc(100% + 12px);
  animation: about-spin-slow 60s linear infinite;
  opacity: 0.55; overflow: visible;
}
.about-avatar-ascii-ring {
  position: absolute; inset: -2px;
  border: 1px dashed var(--green);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}
.about-avatar-circle {
  position: absolute; inset: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(0,255,157,0.10), transparent 60%),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0 8px,
      rgba(255,255,255,0.015) 8px 16px),
    #0a0f1a;
  border: 1px solid var(--green);
  box-shadow: 0 0 40px rgba(0,255,157,0.50), inset 0 0 0 2px rgba(0,0,0,0.4);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.7;
}
.about-avatar-initials {
  font-size: 56px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 24px rgba(0,255,157,0.50);
}
.about-avatar-hint {
  margin-top: 8px;
  font-size: 9px;
  color: var(--fg-mute);
}
.about-avatar-sub {
  font-size: 9px;
  color: var(--fg-faint);
  margin-top: 2px;
}
.about-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.about-avatar-img.loaded {
  opacity: 1;
  pointer-events: auto;
}
.about-avatar-fallback {
  display: grid;
  place-items: center;
  text-align: center;
}
.about-avatar-badge {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--bg-card);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px var(--line-bright);
}
.about-avatar-badge-dot {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* ── EXIF ── */
.about-avatar-exif {
  font-size: 10px;
  color: var(--fg-mute);
  line-height: 1.7;
  letter-spacing: 0.02em;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.about-exif-row { display: flex; gap: 10px; }
.about-exif-key {
  color: var(--fg-faint);
  width: 60px;
  flex: none;
}
.about-exif-val { color: var(--fg-dim); }
.about-exif-status { color: var(--green); }

/* ── Bio text ── */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-bio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.about-bio-eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
}
.about-bio-headline {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--fg);
}
.about-bio-accent {
  color: var(--green);
  text-shadow: 0 0 28px rgba(0,255,157,0.45);
}
.about-bio-main {
  font-size: 16px;
  color: var(--fg);
  line-height: 1.7;
  max-width: 560px;
}
.about-bio-secondary {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 560px;
}
.about-comment { color: var(--fg-mute); }

/* ── Skills block ── */
.about-skills-block {
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px 20px;
}
.about-skills-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.about-skills-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg);
}
.about-dollar { color: var(--green); }
.about-skills-count {
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.about-skill-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-dim);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.about-sg-icon  { color: var(--green); font-size: 13px; text-shadow: 0 0 8px rgba(0,255,157,0.5); }
.about-sg-dir   { color: var(--fg); font-weight: 600; letter-spacing: 0.02em; flex: 1; }
.about-sg-count { color: var(--fg-mute); font-size: 10px; }
.about-chips    { display: flex; flex-wrap: wrap; gap: 6px; }

.about-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.about-chip-primary {
  color: var(--green);
  background: rgba(0,255,157,0.08);
  border: 1px solid rgba(0,255,157,0.28);
}
.about-chip-secondary {
  color: var(--fg);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
}
.about-chip-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--green);
}
.about-chip-level { font-size: 9px; margin-left: 2px; }
.about-chip-primary .about-chip-level  { color: var(--green);   opacity: 0.6; }
.about-chip-secondary .about-chip-level{ color: var(--fg-mute); opacity: 0.6; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .about-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  #about { padding: 40px 16px 0; }
  .about-skills-block { padding: 16px; }
}


/* ══════════════════════════════════════════════════════════════
   SECTION · METRICS — impact numbers
   ══════════════════════════════════════════════════════════════ */

/* Shared utility */
.tabular { font-variant-numeric: tabular-nums; }

/* Missing keyframes */
@keyframes blink-soft {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0,255,157,0.4); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(0,255,157,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0,255,157,0); }
}
@keyframes scan-y {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}
@keyframes spin-half {
  to { transform: rotate(360deg); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section wrapper */
#metrics {
  padding: 80px 32px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero block */
.metrics-hero { margin-bottom: 32px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
}
.metrics-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--fg);
  margin-bottom: 16px;
}
.metrics-title .accent {
  color: var(--green);
  text-shadow: 0 0 30px rgba(0,255,157,0.5);
}
.metrics-sub {
  color: var(--fg-dim);
  font-size: 15px;
  max-width: 620px;
  line-height: 1.6;
}
.metrics-comment { color: var(--fg-mute); }

/* Command header */
.metrics-cmd-header {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 32px;
  overflow: hidden;
}
.metrics-cmd-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,255,157,0.10), transparent);
  animation: scan-y 2.4s ease-in-out infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.metrics-cmd-scanline.active { opacity: 1; }
.metrics-cmd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  position: relative;
}
.metrics-cmd-dots { display: flex; gap: 6px; }
.metrics-cmd-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: block;
}
.metrics-cmd-user  { color: var(--green); margin-left: 6px; }
.metrics-cmd-sep   { color: var(--fg-mute); }
.metrics-cmd-path  { color: var(--amber); }
.metrics-cmd-text  { color: var(--fg); }
.metrics-cmd-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--green);
  vertical-align: middle;
  animation: blink-soft 1s steps(1) infinite;
}
.metrics-cmd-status {
  margin-left: auto;
  font-size: 10px;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.metrics-cmd-status.running { color: var(--green); }
.metrics-cmd-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}

/* Metric grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Metric card */
.metric-card {
  position: relative;
  padding: 24px 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 540ms ease, transform 540ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.metric-card.featured {
  background: rgba(0,255,157,0.04);
  border-color: rgba(0,255,157,0.30);
  box-shadow: 0 0 40px rgba(0,255,157,0.10);
}
.metric-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.metric-corner {
  position: absolute;
  width: 12px; height: 12px;
  border-style: solid;
  opacity: 0.5;
  pointer-events: none;
}
.metric-corner.tl { top: 6px;    left: 6px;   border-width: 1px 0 0 1px; }
.metric-corner.br { bottom: 6px; right: 6px;  border-width: 0 1px 1px 0; }

.metric-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  position: relative;
}
.metric-card-cmd {
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}
.metric-card-cmd .cmd-content { color: var(--fg-dim); }
.metric-card-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.04);
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  flex: none;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.metric-number {
  font-size: clamp(48px, 5.6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric-suffix {
  font-size: 28px;
  font-weight: 700;
  opacity: 0.85;
  margin-left: 2px;
}

.metric-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.metric-context {
  font-size: 11px;
  color: var(--fg-dim);
  line-height: 1.6;
}
.metric-context.has-footer { margin-bottom: 14px; }
.metric-context .comment { color: var(--fg-mute); }

/* Tags */
.metric-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}
.metric-tag {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.metric-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sparkline footer */
.metric-spark-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.metric-spark-label {
  font-size: 9px;
  color: var(--fg-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Totals strip */
.metrics-totals {
  margin-top: 32px;
  padding: 20px 24px;
  background: linear-gradient(90deg, rgba(0,255,157,0.04), transparent);
  border: 1px solid rgba(0,255,157,0.18);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.metrics-totals-exit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.metrics-totals-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}
.metrics-totals-summary {
  font-size: 13px;
  color: var(--fg-dim);
  flex: 1;
  min-width: 280px;
}
.metrics-totals-time {
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
}

/* Replay button */
.metrics-replay-wrap {
  margin-top: 28px;
  margin-bottom: 80px;
  text-align: center;
}
.metrics-replay-btn {
  padding: 10px 18px;
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(0,255,157,0.35);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.metrics-replay-btn:hover {
  background: rgba(0,255,157,0.07);
  border-color: rgba(0,255,157,0.55);
}
.metrics-replay-icon {
  display: inline-block;
  width: 12px; height: 12px;
  border: 1.5px solid var(--green);
  border-right-color: transparent;
  border-radius: 50%;
}
.metrics-replay-btn:hover .metrics-replay-icon {
  animation: spin-half 0.6s linear;
}

/* Responsive */
@media (max-width: 900px) {
  #metrics { padding: 60px 24px 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  #metrics { padding: 40px 16px 0; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metrics-replay-wrap { margin-bottom: 40px; }
}


/* ──────────────────────────────────────────────────────────────
   TESTIMONIALS SECTION
   ────────────────────────────────────────────────────────────── */
#testimonials {
  padding: 80px 32px 100px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ts-header { margin-bottom: 52px; }

.ts-pre {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--fg-mute);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.ts-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
.ts-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 8px;
}
.ts-title em {
  font-style: normal;
  color: var(--green);
  text-shadow: 0 0 24px rgba(0,255,157,0.3);
}
.ts-sub {
  font-size: 13px;
  color: var(--fg-mute);
}

.ts-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

/* Card */
.ts-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 28px 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s cubic-bezier(0.22,1,0.36,1),
    transform 0.55s cubic-bezier(0.22,1,0.36,1),
    border-color 0.2s;
  cursor: default;
}
.ts-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.ts-card:hover { border-color: rgba(0,255,157,0.25); }
.ts-card:hover .ts-card-glow { opacity: 1; }
.ts-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.ts-card:hover::before { opacity: 0.6; }

.ts-card-glow {
  position: absolute; top: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,255,157,0.06) 0%, transparent 70%);
  pointer-events: none; opacity: 0; transition: opacity 0.4s;
  border-radius: 50%;
}

.ts-card:nth-child(1) { transition-delay: 0s; }
.ts-card:nth-child(2) { transition-delay: 0.12s; }
.ts-card:nth-child(3) { transition-delay: 0.24s; }

.ts-quote-mark {
  font-size: 52px; line-height: 1;
  color: var(--green); opacity: 0.18;
  font-family: Georgia, serif;
  position: absolute; top: 18px; right: 24px;
  user-select: none;
}
.ts-badge {
  position: absolute; top: 20px; left: 28px;
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); opacity: 0.5;
}
.ts-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.ts-star {
  color: var(--amber); font-size: 13px;
  text-shadow: 0 0 6px rgba(255,184,77,0.4);
}
.ts-quote {
  font-size: 13.5px; line-height: 1.7; color: var(--fg);
  margin-bottom: 24px;
}
.ts-hl { color: var(--green); font-weight: 500; }
.ts-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  margin-bottom: 20px;
}
.ts-author { display: flex; align-items: center; gap: 14px; }
.ts-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.ts-author-info { display: flex; flex-direction: column; gap: 2px; }
.ts-author-name { font-size: 13px; font-weight: 600; color: var(--fg); }
.ts-author-role { font-size: 11px; color: var(--fg-dim); }
.ts-author-company {
  font-size: 10px; color: var(--green); opacity: 0.7;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.ts-strip {
  border-top: 1px dashed var(--line);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.ts-strip-cmd { font-size: 12px; color: var(--fg-mute); }
.ts-strip-logos {
  display: flex; align-items: center; gap: 20px;
  font-size: 11px; color: var(--fg-mute); opacity: 0.5;
}

@media (max-width: 900px) {
  #testimonials { padding: 60px 24px 80px; }
}
@media (max-width: 560px) {
  #testimonials { padding: 40px 16px 60px; }
  .ts-cards { grid-template-columns: 1fr; }
  .ts-strip { flex-direction: column; align-items: flex-start; }
}


/* ──────────────────────────────────────────────────────────────
   SITE FOOTER
   ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  position: relative;
}

/* 1 · Marquee */
@keyframes ft-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ft-marquee {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-elev);
  overflow: hidden;
  position: relative;
}
.ft-marquee::before,
.ft-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.ft-marquee::before { left: 0; background: linear-gradient(to right, var(--bg-elev), transparent); }
.ft-marquee::after  { right: 0; background: linear-gradient(to left, var(--bg-elev), transparent); }

.ft-marquee-track {
  display: flex; width: max-content;
  animation: ft-marquee 30s linear infinite;
}
.ft-marquee-track:hover { animation-play-state: paused; }

.ft-marquee-item {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 11px 24px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--fg-mute); transition: color 200ms;
}
.ft-marquee-item:hover { color: var(--green); }
.ft-marquee-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--line-bright); flex: none;
}

/* 2 · Body */
.ft-body {
  border-bottom: 1px solid var(--line);
}
.ft-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

/* Brand */
.ft-logo {
  display: block;
  font-size: 18px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--green);
  text-shadow: 0 0 16px rgba(0,255,157,0.3);
  margin-bottom: 12px;
  transition: text-shadow 0.2s;
}
.ft-logo:hover { text-shadow: 0 0 28px rgba(0,255,157,0.5); }
.ft-tagline {
  font-size: 12px; color: var(--fg-mute); line-height: 1.7; margin-bottom: 16px;
}
.ft-tagline span { color: var(--fg-dim); }
.ft-avail-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--green);
  border: 1px solid rgba(0,255,157,0.2);
  background: rgba(0,255,157,0.05);
  border-radius: 4px; padding: 4px 10px;
}
.ft-avail-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* Nav */
.ft-nav {
  display: flex; gap: 40px;
}
.ft-nav-col {
  display: flex; flex-direction: column; gap: 8px;
}
.ft-nav-title {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-mute); margin-bottom: 4px;
}
.ft-nav-col a {
  font-size: 12px; color: var(--fg-dim);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.15s, transform 0.15s;
}
.ft-nav-col a:hover { color: var(--green); transform: translateX(3px); }
.ft-prompt { color: var(--fg-mute); font-size: 10px; }

/* Social */
.ft-social-col {
  display: flex; flex-direction: column; gap: 14px;
}
.ft-social-links { display: flex; gap: 8px; }
.ft-social-link {
  width: 34px; height: 34px; border: 1px solid var(--line);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim); transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ft-social-link:hover {
  border-color: var(--green); color: var(--green);
  background: rgba(0,255,157,0.06);
}

/* Easter egg */
.ft-egg {
  font-size: 11px; color: var(--fg-mute);
  display: flex; align-items: center; gap: 6px;
  cursor: default; user-select: none;
  position: relative; transition: color 0.2s;
}
.ft-egg:hover { color: var(--fg-dim); }
.ft-egg-cmd { color: var(--fg-mute); }
.ft-egg-cursor {
  display: inline-block; width: 6px; height: 12px;
  background: var(--green); vertical-align: middle;
  animation: blink-cursor 1.05s step-end infinite;
  box-shadow: 0 0 5px var(--green);
}
@keyframes blink-cursor { 0%,49%{opacity:1} 50%,100%{opacity:0} }

.ft-egg-tooltip {
  position: absolute; bottom: calc(100% + 12px); left: 0;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 16px; width: 260px;
  font-size: 12px; line-height: 1.6; color: var(--fg-dim);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none; z-index: 20;
}
.ft-egg:hover .ft-egg-tooltip,
.ft-egg:focus .ft-egg-tooltip {
  opacity: 1; transform: translateY(0);
}
.ft-egg-tooltip::after {
  content: ''; position: absolute;
  top: 100%; left: 20px; margin-top: -4px;
  width: 8px; height: 8px;
  background: var(--bg-elev);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.ft-egg-row {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 3px;
}
.ft-egg-k { color: var(--fg-mute); }
.ft-egg-sep { border-top: 1px dashed var(--line); margin: 8px 0; }

/* 3 · Status bar */
.ft-statusbar {
  display: flex; align-items: center;
  background: var(--bg-chrome);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px; overflow: hidden;
}
.ft-sb-segs { display: flex; }
.ft-sb-seg {
  padding: 5px 14px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
  margin-right: -6px;
}
.ft-sb-body {
  flex: 1; padding: 5px 20px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: var(--fg-mute);
}
.ft-sb-center { color: var(--fg-dim); }
.ft-sb-right {
  display: flex; gap: 16px; align-items: center;
}
.ft-sb-clock {
  color: var(--green) !important;
  font-variant-numeric: tabular-nums;
}

/* 4 · Bottom strip */
.ft-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: var(--fg-mute);
}
.ft-bottom-left {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.ft-bottom-left a { color: var(--fg-dim); transition: color 0.15s; }
.ft-bottom-left a:hover { color: var(--green); }
.ft-sep { color: var(--fg-faint); }
.ft-bottom-right { display: flex; align-items: center; gap: 12px; }
.ft-all-systems { display: inline-flex; align-items: center; gap: 8px; }
.ft-sys-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.ft-back-top {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: transparent; color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: 4px; font-size: 10px;
  font-family: inherit; opacity: 0.4; transition: all 0.2s;
}
.ft-back-top.visible { opacity: 1; }
.ft-back-top:hover { color: var(--green); border-color: var(--line-bright); }

/* Responsive footer */
@media (max-width: 900px) {
  .ft-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-sb-segs { display: none; }
}
@media (max-width: 560px) {
  .ft-inner { grid-template-columns: 1fr; padding: 36px 20px; }
  .ft-nav { flex-direction: column; gap: 24px; }
  .ft-bottom { padding: 16px 20px; }
  .ft-statusbar { display: none; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES — móvil + tablet (<1024px)
   ══════════════════════════════════════════════════════════════ */

/* ── NAV: hamburger button (hidden by default) ── */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  position: relative;
  z-index: 60;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  transition: border-color 180ms;
}
.nav-toggle:hover { border-color: var(--green); }
.nav-toggle-bar {
  display: block; width: 18px; height: 2px;
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0,255,157,.4);
  transition: transform 240ms ease, opacity 200ms ease;
  transform-origin: center;
}
.site-nav.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-nav.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  /* remove backdrop-filter so fixed children use viewport (not nav) as containing block */
  .site-nav { padding: 14px 20px; backdrop-filter: none; background: rgba(6,8,13,.95); }
  .nav-toggle { display: inline-flex; }
  .site-nav .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(6,8,13,.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 24px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(.2,.9,.3,1);
    z-index: 55;
  }
  .site-nav.open .nav-links { transform: translateX(0); }
  .site-nav .nav-link {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px dashed var(--line-soft);
  }
  .site-nav .nav-cta {
    margin-top: 18px;
    padding: 14px 18px;
    font-size: 14px;
    text-align: center;
  }
}

/* ── HERO ── */
@media (max-width: 900px) {
  #hero { padding: 28px 20px 48px; }
  #hero .term-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  #hero .neofetch {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }
  #hero .tw-pane { padding: 20px; min-height: 200px; }
  #hero .ascii-art { font-size: 7.5px; overflow-x: auto; }
}
@media (max-width: 640px) {
  #hero .win-title { display: none; }
  #hero .win-branch { margin-left: auto; }
  #hero .ctas { flex-direction: column; gap: 10px; }
  #hero .cta-btn { min-width: 0; width: 100%; padding: 12px 16px; }
  #hero .trust { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #hero .trust-item:nth-child(5) { grid-column: span 2; }
  #hero .trust-val { font-size: 22px; }
  #hero .sb-body { font-size: 10px; padding: 6px 12px 6px 18px; }
  #hero .sb-right { gap: 10px; }
  #hero .ascii-art { font-size: 6.5px; }
}
@media (max-width: 420px) {
  #hero { padding: 22px 14px 40px; }
  #hero .neofetch { padding: 16px; font-size: 12px; }
  #hero .neo-key { min-width: 70px; }
}

/* ── CONSTELLATION ── */
@media (max-width: 900px) {
  #constellation { padding: 32px 20px 48px; }
  #constellation .canvas-card { min-height: 420px; }
  #constellation .canvas-wrap { min-height: 320px; }
  #constellation aside { min-height: auto; padding: 20px 18px; }
  #constellation .card-headline { padding: 18px 20px 10px; }
  #constellation .chrome-cats { display: none; }
}
@media (max-width: 480px) {
  #constellation { padding: 24px 14px 40px; }
  #constellation .canvas-card { min-height: 360px; }
}

/* ── METRICS ── */
@media (max-width: 640px) {
  .metrics-cmd-status { display: none; }
  .metrics-cmd-row { font-size: 11px; gap: 6px; flex-wrap: wrap; }
  .metric-number { font-size: clamp(40px, 10vw, 56px); }
  .metric-card { padding: 18px 18px 16px; }
  .metrics-totals { padding: 16px 18px; gap: 12px; }
  .metrics-totals-summary { min-width: 0; font-size: 12px; }
}

/* ── PROJECTS ── */
@media (max-width: 900px) {
  #projects { padding: 32px 20px 60px; }
  #projects .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}
@media (max-width: 480px) {
  #projects { padding: 24px 14px 50px; }
  #projects .cards-grid { grid-template-columns: 1fr; gap: 18px; }
  #projects .footer-note { padding: 18px 20px; gap: 14px; }
  #projects .footer-btn { width: 100%; justify-content: center; }
}
/* Touch flip: tap to flip when no hover available */
@media (hover: none) {
  #projects .card-container.flipped .card-inner { transform: rotateY(180deg); }
}

/* ── TIMELINE — collapse to single-column with left spine ── */
@media (max-width: 900px) {
  #timeline .main-wrap { padding: 36px 20px 60px; }
  #timeline .spine { left: 22px; transform: none; }
  #timeline .ms-row {
    grid-template-columns: 44px 1fr;
    min-height: 0;
    margin-bottom: 14px;
  }
  #timeline .ms-left,
  #timeline .ms-right {
    grid-column: 2;
    justify-content: flex-start;
    padding: 0 0 0 14px;
  }
  #timeline .ms-left  .ms-card,
  #timeline .ms-right .ms-card { transform: translateX(20px); max-width: 100%; }
  #timeline .ms-left  .ms-card.visible,
  #timeline .ms-right .ms-card.visible { transform: translateX(0); }
  #timeline .ms-left .ms-arm,
  #timeline .ms-right .ms-arm { left: -14px; right: auto; width: 14px; }
  #timeline .ms-center,
  #timeline .ms-node-wrap {
    grid-column: 1; grid-row: 1;
    width: 44px;
    padding-top: 22px;
  }
  #timeline .ms-now-ring,
  #timeline .ms-glow-ring,
  #timeline .ms-hex { left: 50%; transform: translateX(-50%); }
  #timeline .ms-now-ring { top: 18px; }
  #timeline .ms-hex { top: 22px; }
  #timeline .ms-range { display: none; }
  #timeline .ms-card-inner { padding: 16px 18px; }
  #timeline .ms-year { font-size: 36px; }
  #timeline .skills-card { padding: 20px 18px; }
  #timeline .skills-hdr { flex-direction: column; align-items: flex-start; gap: 4px; }
  #timeline .skills-svg-wrap {
    position: relative;
    -webkit-overflow-scrolling: touch;
  }
  #timeline .skills-svg-wrap::after {
    content: '⇆ scroll'; position: absolute; top: 6px; right: 6px;
    font-size: 9px; color: var(--fg-mute); letter-spacing: .1em;
    pointer-events: none;
  }
}
@media (max-width: 480px) {
  #timeline .main-wrap { padding: 28px 14px 50px; }
  #timeline .kpi { min-width: 0; padding: 14px 16px; }
  #timeline .kpi-val { font-size: 24px; }
  #timeline .ms-card-inner { padding: 14px 14px; }
  #timeline .ms-impact { padding: 8px 10px; }
  #timeline .ms-impact-metric { font-size: 18px; }
}

/* ── HEATMAP — scroll hint + tighter padding ── */
@media (max-width: 900px) {
  #heatmap { padding: 32px 20px 48px; }
  #heatmap .hm-card { padding: 18px 18px 20px; position: relative; }
  #heatmap .hm-card::after {
    content: '⇆ desliza para ver todo';
    position: absolute; top: 8px; right: 14px;
    font-size: 9px; color: var(--fg-mute);
    letter-spacing: .08em; pointer-events: none;
  }
  #heatmap .hm-subheader { margin-top: 10px; }
  #heatmap .tech-card,
  #heatmap .proj-card { padding: 18px 18px; }
  #heatmap .proj-row { grid-template-columns: 20px 1fr 60px 50px; gap: 10px; }
  #heatmap .proj-tech-tags { display: none; }
}
@media (max-width: 480px) {
  #heatmap { padding: 24px 14px 40px; }
  #heatmap .hm-toolbar { justify-content: flex-start; }
  #heatmap .kpi-tile { min-width: 0; flex: 1 1 calc(50% - 7px); padding: 12px 14px; }
  #heatmap .kpi-value { font-size: 22px; }
}

/* ── TESTIMONIALS — already handled but tighten further ── */
@media (max-width: 480px) {
  .ts-card { padding: 22px 20px 20px; }
  .ts-quote-mark { font-size: 40px; top: 14px; right: 18px; }
  .ts-badge { top: 16px; left: 20px; }
}

/* ── CONTACT — extra tightening ── */
@media (max-width: 480px) {
  .ct-wrap { padding: 22px 14px 50px; }
  .ct-wizard-inner { padding: 18px 18px 22px; }
  .ct-sidebar { padding: 18px 18px; }
  .ct-ascii { font-size: 11px; }
  .ct-channels-grid { grid-template-columns: 1fr; }
  .ct-prompt-body { font-size: 14px; }
  .ct-choices[data-cols="2"] { grid-template-columns: 1fr; }
}

/* ── GLOBAL: tame fixed glows on tiny screens ── */
@media (max-width: 600px) {
  .glow-orb { width: 360px; height: 360px; filter: blur(80px); }
  .grid-bg { background-size: 32px 32px; }
}


/* ══════════════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   Desactiva animaciones para usuarios con preferencia de bajo movimiento.
   Se mantienen transiciones de opacidad/color (no causan mareo).
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Detener animaciones en bucle */
  .pulse-dot,
  .about-avatar-badge-dot,
  .about-avatar-spin-ring,
  .ts-dot,
  .ft-avail-dot,
  .ft-sys-dot,
  .metrics-cmd-cursor,
  .metrics-cmd-scanline,
  #hero h1 .blink-cursor,
  .tw-cursor,
  .ft-egg-cursor,
  .ms-now-ring,
  .ms-now-ring2,
  .ct-hero h2 .caret,
  .ct-badge .dot {
    animation: none !important;
  }

  /* Detener marquee del footer */
  .ft-marquee-track { animation: none !important; }

  /* Revelar cards/milestones inmediatamente sin animación de entrada */
  .ts-card {
    opacity: 1 !important;
    transform: none !important;
    transition: border-color 0.2s, opacity 0.1ms !important;
  }
  .metric-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ms-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ms-hex, .ms-glow-ring, .ms-range {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .metric-tag {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Detener scanline de métricas */
  .metrics-cmd-scanline { display: none !important; }

  /* Reducir transiciones de layout a las esenciales */
  #projects .card-inner { transition: none !important; }
  #heatmap .hm-cell { transition: none !important; animation: none !important; }
  .about-chip { transition: none !important; }
}
