/* =========================================================
   AMAN KUKRETI · CINEMATIC AI HQ
   Design system — OKLCH tokens, glass, neon, motion
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Core palette */
  --background: oklch(0.13 0.005 270);
  --foreground: oklch(0.98 0.005 270);
  --card: oklch(0.17 0.008 270);
  --card-soft: oklch(0.20 0.010 270);
  --muted: oklch(0.22 0.010 270);
  --muted-foreground: oklch(0.65 0.015 270);
  --border: oklch(1 0 0 / 8%);
  --border-strong: oklch(1 0 0 / 14%);

  /* Accents */
  --neon: oklch(0.92 0.24 130);          /* lime */
  --neon-soft: oklch(0.92 0.24 130 / 0.18);
  --cyan: oklch(0.85 0.18 220);
  --cyan-soft: oklch(0.85 0.18 220 / 0.18);
  --violet: oklch(0.65 0.22 295);
  --violet-soft: oklch(0.65 0.22 295 / 0.18);

  /* Surfaces */
  --glass-bg: color-mix(in oklab, var(--card) 55%, transparent);
  --glass-border: oklch(1 0 0 / 8%);

  /* Gradients */
  --grad-text: linear-gradient(135deg,
    oklch(0.98 0.005 270) 0%,
    var(--neon) 50%,
    var(--cyan) 100%);
  --grad-border: linear-gradient(135deg, var(--neon) 0%, var(--cyan) 100%);
  --grad-hero: radial-gradient(60% 50% at 20% 30%, color-mix(in oklab, var(--neon) 18%, transparent) 0%, transparent 60%),
               radial-gradient(50% 50% at 80% 40%, color-mix(in oklab, var(--cyan) 18%, transparent) 0%, transparent 60%),
               radial-gradient(55% 60% at 50% 90%, color-mix(in oklab, var(--violet) 20%, transparent) 0%, transparent 60%);

  /* Shadows */
  --shadow-elev: 0 30px 80px -30px rgb(0 0 0 / 60%), 0 10px 30px -10px rgb(0 0 0 / 40%);
  --shadow-neon: 0 10px 40px -10px color-mix(in oklab, var(--neon) 35%, transparent);
  --shadow-cyan: 0 10px 40px -10px color-mix(in oklab, var(--cyan) 35%, transparent);

  /* Radii */
  --r-sm: 0.5rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 1.75rem;

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

  /* Spacing */
  --section-y: clamp(5rem, 10vw, 9rem);
  --container: min(1280px, 92vw);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--neon) transparent;
  scrollbar-width: thin;
}
body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
  position: relative;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
input, textarea { font: inherit; color: inherit; background: none; border: 0; outline: none; }

/* ---------- 3. AMBIENT BACKGROUND ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--foreground) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--foreground) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 40% at 10% 0%, color-mix(in oklab, var(--neon) 8%, transparent), transparent 70%),
    radial-gradient(50% 40% at 100% 30%, color-mix(in oklab, var(--cyan) 8%, transparent), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, color-mix(in oklab, var(--violet) 10%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 4. TYPOGRAPHY ---------- */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.mono    { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--muted-foreground);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }
.muted { color: var(--muted-foreground); }

/* ---------- 5. LAYOUT PRIMITIVES ---------- */
.container { width: var(--container); margin-inline: auto; position: relative; z-index: 1; }
section { padding-block: var(--section-y); position: relative; z-index: 1; }
.section-head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 3rem; max-width: 720px; }
.section-head h2 .text-gradient { display: inline; }

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
}
.grad-border {
  position: relative;
  background: var(--card);
  border-radius: var(--r-md);
}
.grad-border::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--neon) 60%, transparent), color-mix(in oklab, var(--cyan) 60%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ---------- 6. CUSTOM CURSOR ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--neon), 0 0 24px color-mix(in oklab, var(--neon) 40%, transparent);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid color-mix(in oklab, var(--neon) 70%, transparent);
  border-radius: 50%;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.hovering {
  width: 56px; height: 56px;
  background: color-mix(in oklab, var(--neon) 12%, transparent);
  border-color: var(--neon);
}

/* ---------- 7. STICKY NAV ---------- */
.nav-wrap {
  position: fixed; top: 1.25rem; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(960px, 92vw);
}
.nav-pill {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px -30px rgb(0 0 0 / 80%);
  position: relative;
  overflow: hidden;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; padding-left: 0.4rem; }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--neon);
  color: var(--background);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 0 16px color-mix(in oklab, var(--neon) 60%, transparent);
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
.brand-name span { color: var(--muted-foreground); }

.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.nav-link:hover { color: var(--foreground); }
.nav-link.active {
  color: var(--neon);
  background: color-mix(in oklab, var(--neon) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--neon) 40%, transparent),
              0 0 24px -8px color-mix(in oklab, var(--neon) 60%, transparent);
}
.nav-progress {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: linear-gradient(to right, var(--neon), var(--cyan));
  width: 0%;
  box-shadow: 0 0 12px var(--neon);
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-pill { padding: 0.5rem 0.6rem; }
}

/* ---------- 8. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--neon);
  color: oklch(0.18 0.01 270);
  box-shadow: var(--shadow-neon);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -10px color-mix(in oklab, var(--neon) 55%, transparent); }
.btn-ghost {
  background: color-mix(in oklab, var(--card) 60%, transparent);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  color: var(--foreground);
}
.btn-ghost:hover { border-color: color-mix(in oklab, var(--neon) 50%, transparent); transform: translateY(-2px); }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: all 0.3s ease;
}
.icon-btn:hover { border-color: var(--neon); color: var(--neon); box-shadow: var(--shadow-neon); }

/* ---------- 9. HERO ---------- */
.hero {
  min-height: 100vh;
  display: grid; place-items: center;
  padding-top: 8rem; padding-bottom: 4rem;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem; align-items: center;
  width: 100%;
}
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 40px color-mix(in oklab, var(--neon) 12%, transparent));
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--muted-foreground);
  max-width: 56ch;
}
.hero-sub strong { color: var(--foreground); font-weight: 600; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.5rem; }

.hero-mini-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--border); margin-top: 1rem; }
.hero-mini-meta > div { display: flex; flex-direction: column; gap: 2px; }
.hero-mini-meta .v { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--neon); }
.hero-mini-meta .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); }

/* Portrait */
.portrait-wrap {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/5;
  margin-top: -1.5rem;
}
.portrait {
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 35%, color-mix(in oklab, var(--neon) 30%, transparent), transparent 70%),
    radial-gradient(80% 80% at 50% 100%, color-mix(in oklab, var(--violet) 50%, transparent), transparent 70%),
    linear-gradient(180deg, oklch(0.25 0.02 270), oklch(0.13 0.01 270));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elev), 0 0 80px -10px color-mix(in oklab, var(--cyan) 22%, transparent);
}
.portrait-silhouette {
  position: absolute; inset: 8% 0 0 0;
  background:
    radial-gradient(28% 22% at 50% 18%, color-mix(in oklab, var(--neon) 90%, white 5%), transparent 70%),
    radial-gradient(50% 35% at 50% 60%, color-mix(in oklab, var(--cyan) 70%, transparent), transparent 70%);
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0.85;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; opacity: 0.95; }
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg,
    transparent 0px, transparent 2px,
    color-mix(in oklab, var(--cyan) 8%, transparent) 2px,
    color-mix(in oklab, var(--cyan) 8%, transparent) 3px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.portrait-frame-tag {
  position: absolute; bottom: 1rem; left: 1rem;
  display: flex; gap: 0.6rem; align-items: center;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--neon);
  background: oklch(0.13 0.005 270 / 70%);
  backdrop-filter: blur(10px);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--neon) 30%, transparent);
  z-index: 3;
}
.portrait-frame-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: pulse-dot 1.6s ease-in-out infinite; }

/* Floating chart icons around portrait */
.float-icon {
  position: absolute;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: color-mix(in oklab, var(--card) 75%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  color: var(--neon);
  box-shadow: var(--shadow-elev);
  z-index: 4;
  animation: float 6s ease-in-out infinite;
}
.float-icon.cyan { color: var(--cyan); }
.float-icon.violet { color: var(--violet); }
.float-icon svg { width: 28px; height: 28px; }
.fi-1 { top: -20px; left: -30px; animation-delay: -1s; }
.fi-2 { top: 18%; right: -36px; animation-delay: -2.5s; }
.fi-3 { bottom: 25%; left: -40px; animation-delay: -3.5s; }
.fi-4 { bottom: -10px; right: 14%; animation-delay: -1.5s; }
.fi-5 { top: 40%; left: 50%; transform: translateX(-50%); animation-delay: -4s; }
.fi-6 { top: 8%; left: 28%; animation-delay: -2s; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--muted-foreground);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-hint .bar { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--neon), transparent); animation: scroll-bar 2.4s ease-in-out infinite; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .portrait-wrap { max-width: 340px; }
}

/* ---------- 10. MARQUEE (tools) ---------- */
.marquee-section {
  padding-block: 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 30%, transparent);
}
.marquee {
  display: flex; gap: 3rem;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; gap: 3rem;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.1rem; color: var(--muted-foreground);
}
.marquee-item svg { width: 20px; height: 20px; color: var(--neon); }
.marquee-item .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); opacity: 0.6; }

/* ---------- 11. ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-narrative p {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.about-narrative p strong { color: var(--foreground); font-weight: 600; }
.about-quote {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 2px solid var(--neon);
  background: color-mix(in oklab, var(--card) 50%, transparent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--foreground);
}
.about-side { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.about-tile {
  padding: 1.25rem;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s, box-shadow 0.35s;
}
.about-tile:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--neon) 40%, transparent); box-shadow: var(--shadow-neon); }
.about-tile .v { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--neon); }
.about-tile .l { color: var(--muted-foreground); font-size: 0.85rem; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- 12. STATS ---------- */
.stats-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}
.stat-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in oklab, var(--neon) 40%, transparent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--neon) 40%, transparent); box-shadow: var(--shadow-elev); }
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in oklab, var(--neon) 12%, transparent);
  color: var(--neon);
  border: 1px solid color-mix(in oklab, var(--neon) 25%, transparent);
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  color: var(--neon);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-value .suffix { color: var(--cyan); font-weight: 600; }
.stat-label { color: var(--muted-foreground); font-size: 0.88rem; }
@media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 13. JOURNEY ---------- */
.journey-wrap {
  position: relative;
  padding: 2rem 0 4rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.journey-svg {
  display: block;
  min-width: 1100px;
  height: 360px;
  margin-inline: auto;
}
.journey-path { fill: none; stroke: var(--neon); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 8px color-mix(in oklab, var(--neon) 50%, transparent)); }
.journey-path-future { fill: none; stroke: color-mix(in oklab, var(--foreground) 30%, transparent); stroke-width: 2; stroke-dasharray: 6 6; }
.journey-node { fill: var(--background); stroke: var(--neon); stroke-width: 2.5; transition: r 0.3s; }
.journey-node-future { fill: var(--background); stroke: color-mix(in oklab, var(--foreground) 40%, transparent); stroke-width: 2; stroke-dasharray: 3 3; }
.journey-node.pulse { animation: pulse-ring 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.journey-label-year { font-family: var(--font-mono); font-size: 11px; fill: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.2em; }
.journey-label-title { font-family: var(--font-display); font-size: 14px; fill: var(--foreground); font-weight: 600; }

/* ---------- 14. WORK STACK ---------- */
.work-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
.work-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--r-md);
  background: var(--card);
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 260px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s;
}
.work-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--neon) 50%, transparent), color-mix(in oklab, var(--cyan) 50%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.5; transition: opacity 0.4s;
  pointer-events: none;
}
.work-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 80% 0%, color-mix(in oklab, var(--neon) 12%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elev), 0 0 0 1px color-mix(in oklab, var(--neon) 30%, transparent), 0 20px 60px -20px color-mix(in oklab, var(--neon) 25%, transparent); }
.work-card:hover::before { opacity: 1; }
.work-card:hover::after { opacity: 1; }
.work-head { display: flex; align-items: flex-start; justify-content: space-between; }
.work-num { font-family: var(--font-display); font-weight: 700; font-size: 2.8rem; color: var(--neon); line-height: 1; letter-spacing: -0.03em; }
.work-num .plus { color: var(--cyan); }
.work-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--neon) 10%, transparent); color: var(--neon); border: 1px solid color-mix(in oklab, var(--neon) 20%, transparent); }
.work-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.work-desc { color: var(--muted-foreground); font-size: 0.92rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.tag {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em;
  padding: 0.35rem 0.6rem; border-radius: 999px;
  background: color-mix(in oklab, var(--foreground) 5%, transparent);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- 15. SKILLS GALAXY ---------- */
.galaxy-section {
  background:
    radial-gradient(40% 40% at 50% 50%, color-mix(in oklab, var(--cyan) 6%, transparent), transparent 60%);
}
.galaxy-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, color-mix(in oklab, var(--neon) 14%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 80%);
  pointer-events: none;
}
.galaxy-wrap {
  position: relative;
  height: 720px;
  display: grid; place-items: center;
  perspective: 1200px;
}
.galaxy {
  position: relative;
  width: 640px; height: 640px;
  display: grid; place-items: center;
}
.galaxy::before {
  content: "";
  position: absolute; inset: -40%;
  background: radial-gradient(circle, color-mix(in oklab, var(--cyan) 10%, transparent), transparent 60%);
  pointer-events: none;
  transition: opacity 0.5s, transform 0.5s;
  opacity: 0.6;
}
.galaxy:hover::before { opacity: 1; transform: scale(1.05); }

.core {
  position: absolute;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon), color-mix(in oklab, var(--neon) 40%, var(--background)) 70%);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: oklch(0.18 0.01 270);
  letter-spacing: 0.1em;
  z-index: 5;
  box-shadow: 0 0 40px var(--neon), 0 0 80px color-mix(in oklab, var(--neon) 50%, transparent);
  animation: pulse-glow 3s ease-in-out infinite;
}
.core::after {
  content: ""; position: absolute; inset: -8px;
  border: 1px solid color-mix(in oklab, var(--neon) 60%, transparent);
  border-radius: 50%;
  animation: ring-expand 2.5s ease-out infinite;
}

.orbit {
  position: absolute;
  border: 1px dashed color-mix(in oklab, var(--foreground) 18%, transparent);
  border-radius: 50%;
  transition: border-color 0.4s, border-style 0.4s;
}
.galaxy:hover .orbit { border-color: color-mix(in oklab, var(--neon) 55%, transparent); }
.orbit-1 { width: 260px; height: 260px; animation: spin 40s linear infinite; }
.orbit-2 { width: 420px; height: 420px; animation: spin 65s linear infinite reverse; }
.orbit-3 { width: 580px; height: 580px; animation: spin 90s linear infinite; }

.node {
  position: absolute;
  top: 50%; left: 50%;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  transition: transform 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
  transform-origin: center;
}
.galaxy:hover .node {
  border-color: var(--neon);
  box-shadow: 0 0 16px color-mix(in oklab, var(--neon) 45%, transparent);
  color: var(--neon);
}
.node:hover {
  transform: translate(-50%, -50%) scale(1.15) !important;
  background: var(--neon) !important;
  color: var(--background) !important;
  z-index: 10;
}
.node-counter-spin { animation-name: spin-rev; animation-duration: inherit; animation-iteration-count: infinite; animation-timing-function: linear; }
.orbit-1 .node { animation: spin-rev 40s linear infinite; }
.orbit-2 .node { animation: spin-rev 65s linear infinite reverse; }
.orbit-3 .node { animation: spin-rev 90s linear infinite; }

@media (max-width: 720px) {
  .galaxy { transform: scale(0.65); }
  .galaxy-wrap { height: 520px; }
}

/* ---------- 16. CERTIFICATIONS ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  height: 620px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}
.cert-col {
  display: flex; flex-direction: column; gap: 1rem;
}
.cert-col.up { animation: scroll-up 40s linear infinite; }
.cert-col.down { animation: scroll-down 50s linear infinite; }
.cert-col.up-slow { animation: scroll-up 60s linear infinite; }
.cert-card {
  padding: 1rem;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.5rem;
  min-height: 130px;
  transition: border-color 0.3s, transform 0.3s;
}
.cert-card:hover { border-color: var(--neon); transform: scale(1.03); }
.cert-thumb {
  height: 60px; border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--neon) 20%, transparent), color-mix(in oklab, var(--cyan) 20%, transparent));
  display: grid; place-items: center;
  color: var(--neon);
  border: 1px solid var(--border);
}
.cert-thumb svg { width: 28px; height: 28px; }
.cert-name { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; line-height: 1.2; }
.cert-issuer { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-foreground); }
.cert-coming {
  border: 1px dashed color-mix(in oklab, var(--neon) 50%, transparent);
  background: transparent;
  display: grid; place-items: center;
  text-align: center;
  color: var(--neon);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  animation: pulse-dash 2.4s ease-in-out infinite;
}
@media (max-width: 880px) { .certs-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 17. AVA CHAT ---------- */
.ava-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: stretch;
}
.ava-intro { display: flex; flex-direction: column; gap: 1rem; }
.ava-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--neon) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--neon) 40%, transparent);
  color: var(--neon);
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
}
.ava-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: pulse-dot 1.6s ease-in-out infinite; }
.ava-features { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.ava-feature {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.7rem 0.9rem;
  background: color-mix(in oklab, var(--card) 50%, transparent);
  border: 1px solid var(--border); border-radius: var(--r-md);
}
.ava-feature svg { width: 18px; height: 18px; color: var(--neon); flex: none; margin-top: 2px; }
.ava-feature .l { color: var(--foreground); font-weight: 600; font-size: 0.92rem; }
.ava-feature .d { color: var(--muted-foreground); font-size: 0.82rem; margin-top: 2px; }

.chat-panel {
  display: flex; flex-direction: column;
  height: 620px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, color-mix(in oklab, var(--card) 80%, transparent), color-mix(in oklab, var(--card-soft) 80%, transparent));
  border: 1px solid var(--border-strong);
  overflow: hidden;
  position: relative;
}
.chat-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 60%, transparent);
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  display: grid; place-items: center;
  color: var(--background);
  font-family: var(--font-display); font-weight: 700;
}
.chat-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.chat-status { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--neon); display: flex; align-items: center; gap: 0.4rem; }
.chat-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 1.2rem;
  display: flex; flex-direction: column; gap: 1rem;
  scrollbar-width: thin;
}
.msg { max-width: 86%; padding: 0.8rem 1rem; border-radius: 14px; font-size: 0.93rem; line-height: 1.5; }
.msg.ava { background: color-mix(in oklab, var(--card) 80%, transparent); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: color-mix(in oklab, var(--neon) 18%, var(--background)); border: 1px solid color-mix(in oklab, var(--neon) 35%, transparent); align-self: flex-end; border-bottom-right-radius: 4px; color: var(--foreground); }
.msg strong { color: var(--neon); }
.msg .fit-card { margin-top: 0.7rem; padding: 0.8rem; border: 1px solid color-mix(in oklab, var(--neon) 30%, transparent); border-radius: 12px; background: color-mix(in oklab, var(--neon) 6%, transparent); }
.msg .fit-score { font-family: var(--font-display); font-size: 1.6rem; color: var(--neon); font-weight: 700; }

.chips-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0 1.2rem 0.8rem;
}
.chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: all 0.25s;
}
.chip:hover { border-color: var(--neon); color: var(--neon); background: color-mix(in oklab, var(--neon) 10%, transparent); }

.chat-input-row {
  display: flex; gap: 0.5rem; padding: 0.9rem 1rem;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 50%, transparent);
}
.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 80%, transparent);
  border: 1px solid var(--border-strong);
  color: var(--foreground);
  font-size: 0.92rem;
}
.chat-input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px color-mix(in oklab, var(--neon) 18%, transparent); }
.send-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--neon);
  color: var(--background);
  display: grid; place-items: center;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-neon);
}
.send-btn:hover { transform: translateY(-2px) rotate(-8deg); }

@media (max-width: 980px) { .ava-wrap { grid-template-columns: 1fr; } .chat-panel { height: 540px; } }

/* ---------- 18. INSIGHTS / LINKEDIN ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
}
.li-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, oklch(0.18 0.04 240), oklch(0.13 0.02 270));
  border: 1px solid color-mix(in oklab, var(--cyan) 25%, transparent);
  overflow: hidden;
}
.li-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 100% 0%, color-mix(in oklab, var(--cyan) 25%, transparent), transparent 60%);
  pointer-events: none;
}
.li-meta { display: flex; align-items: center; gap: 0.8rem; }
.li-logo {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: oklch(0.55 0.16 250);
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
}
.li-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.li-handle { color: var(--muted-foreground); font-size: 0.85rem; font-family: var(--font-mono); }
.li-stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.li-stat .v { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--cyan); }
.li-stat .l { color: var(--muted-foreground); font-size: 0.82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.15em; }
.li-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.li-topics .tag { color: var(--cyan); border-color: color-mix(in oklab, var(--cyan) 30%, transparent); }

.insight-list { display: flex; flex-direction: column; gap: 0.8rem; }
.insight-item {
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: flex; gap: 1rem; align-items: center;
}
.insight-item:hover { border-color: color-mix(in oklab, var(--neon) 40%, transparent); transform: translateX(4px); }
.insight-num { font-family: var(--font-display); font-weight: 700; color: var(--neon); font-size: 1.2rem; min-width: 30px; }
.insight-body .t { font-weight: 600; font-size: 0.92rem; }
.insight-body .m { color: var(--muted-foreground); font-size: 0.8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.15em; }
@media (max-width: 880px) { .insights-grid { grid-template-columns: 1fr; } }

/* ---------- 19. TESTIMONIALS ---------- */
.testimonials-section { padding-block: var(--section-y); overflow: hidden; }
.t-row {
  display: flex; gap: 1.25rem;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  padding-block: 1rem;
}
.t-track {
  display: flex; gap: 1.25rem;
  flex: none;
  animation: marquee 48s linear infinite;
}
.t-track.rev { animation: marquee-rev 56s linear infinite; }
.t-card {
  position: relative;
  flex: 0 0 360px;
  padding: 1.4rem;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s, border-color 0.35s, z-index 0.35s;
}
.t-card:hover {
  transform: scale(1.08) translateY(-4px);
  border-color: var(--neon);
  box-shadow: 0 0 0 1px var(--neon), 0 24px 60px -20px color-mix(in oklab, var(--neon) 40%, transparent);
  z-index: 20;
}
.t-card:hover .t-quote { -webkit-line-clamp: unset; line-clamp: unset; }
.t-row:hover .t-track { animation-play-state: paused; }
.t-head { display: flex; gap: 0.7rem; align-items: center; }
.t-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  display: grid; place-items: center;
  color: var(--background);
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem;
}
.t-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.t-role { color: var(--muted-foreground); font-size: 0.78rem; }
.t-quote {
  color: var(--muted-foreground);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  transition: all 0.3s;
}

/* ---------- 20. BLOG TEASER ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.25rem;
}
.blog-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s, box-shadow 0.35s;
  min-height: 320px;
}
.blog-card.featured { grid-row: span 2; min-height: 540px; }
.blog-card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--neon) 40%, transparent); box-shadow: var(--shadow-elev); }
.blog-thumb {
  aspect-ratio: 1200 / 644;   /* LinkedIn / OG image standard — 1.91:1 */
  background: linear-gradient(135deg, color-mix(in oklab, var(--neon) 20%, var(--background)), color-mix(in oklab, var(--violet) 30%, var(--background)));
  position: relative;
  overflow: hidden;
}
.blog-card.featured .blog-thumb { aspect-ratio: 1200 / 644; }  /* Same ratio for featured too */
.blog-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, oklch(0.13 0.005 270 / 70%));
}
.blog-thumb .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, white 8%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, white 8%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: overlay;
}
.blog-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.blog-meta { display: flex; gap: 0.7rem; align-items: center; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-foreground); }
.blog-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--neon); }
.blog-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.blog-card.featured .blog-title { font-size: 1.6rem; }
.blog-excerpt { color: var(--muted-foreground); font-size: 0.9rem; }
.blog-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--neon); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; }
.blog-arrow svg { transition: transform 0.3s; }
.blog-card:hover .blog-arrow svg { transform: translateX(4px); }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: 1fr 1fr; } .blog-card.featured { grid-column: span 2; grid-row: auto; min-height: 380px; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } .blog-card.featured { grid-column: span 1; } }

/* ---------- 21. CTA / CONTACT ---------- */
.cta-wrap {
  position: relative;
  padding: 4rem 3rem;
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 50% at 20% 0%, color-mix(in oklab, var(--neon) 20%, transparent), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, color-mix(in oklab, var(--cyan) 18%, transparent), transparent 60%),
    var(--card);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
}
.cta-copy h2 { margin-bottom: 1rem; }
.cta-copy p { color: var(--muted-foreground); font-size: 1.05rem; max-width: 46ch; }
.cta-contact-meta { display: flex; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.cta-contact-meta a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted-foreground); font-size: 0.9rem; transition: color 0.2s; }
.cta-contact-meta a:hover { color: var(--neon); }
.cta-contact-meta svg { width: 18px; height: 18px; color: var(--neon); }

.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }
.field input, .field textarea {
  padding: 0.85rem 1rem;
  background: color-mix(in oklab, var(--background) 60%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 0.92rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px color-mix(in oklab, var(--neon) 16%, transparent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-msg { font-family: var(--font-mono); font-size: 11px; color: var(--neon); margin-top: 0.5rem; opacity: 0; transition: opacity 0.3s; }
.form-msg.show { opacity: 1; }
@media (max-width: 880px) { .cta-wrap { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; } .row-2 { grid-template-columns: 1fr; } }

/* ---------- 22. FOOTER ---------- */
footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
}
.footer-brand .brand-name { font-size: 1.1rem; }
.footer-brand p { color: var(--muted-foreground); margin-top: 0.8rem; font-size: 0.9rem; max-width: 36ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--foreground); font-size: 0.9rem; padding: 0.3rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--neon); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground);
}
.socials { display: flex; gap: 0.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 23. FLOATING CONTACT BUTTON ---------- */
.float-contact {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--neon);
  color: var(--background);
  display: grid; place-items: center;
  box-shadow: 0 14px 40px -8px color-mix(in oklab, var(--neon) 50%, transparent);
  z-index: 90;
  transition: transform 0.3s;
  animation: pulse-glow 3s ease-in-out infinite;
}
.float-contact:hover { transform: scale(1.1) rotate(-10deg); }
.float-contact svg { width: 26px; height: 26px; }

/* ---------- 24. KEYFRAMES ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px var(--neon), 0 0 0 0 color-mix(in oklab, var(--neon) 0%, transparent); }
  50% { box-shadow: 0 0 50px var(--neon), 0 0 0 16px color-mix(in oklab, var(--neon) 0%, transparent); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
@keyframes pulse-ring {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}
@keyframes ring-expand {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes pulse-dash {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; box-shadow: 0 0 24px color-mix(in oklab, var(--neon) 30%, transparent); }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-rev { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes scroll-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes scroll-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes scroll-bar { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 25. REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

/* ---------- 26. BLOG PAGES ---------- */
.blog-hero {
  padding-top: 9rem; padding-bottom: 3rem;
  text-align: center;
}
.blog-hero .eyebrow { justify-content: center; display: inline-flex; }
.blog-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); margin: 1rem 0; letter-spacing: -0.03em; }
.blog-hero p { color: var(--muted-foreground); max-width: 56ch; margin-inline: auto; }
.article-wrap { max-width: 760px; margin: 0 auto; padding-block: 6rem 4rem; }
.article-meta { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-foreground); }
.article-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; text-align: center; line-height: 1.05; margin-bottom: 1.5rem; }
.article-hero {
  aspect-ratio: 1200 / 644;   /* Matches LinkedIn / OG / blog cover ratio */
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, color-mix(in oklab, var(--neon) 25%, var(--background)), color-mix(in oklab, var(--cyan) 25%, var(--background)));
  background-size: cover !important;
  background-position: center !important;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, white 10%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, white 10%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: overlay;
}
.prose { font-size: 1.05rem; color: var(--foreground); }
.prose p { margin-bottom: 1.2rem; color: oklch(0.85 0.01 270); }
.prose h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.prose blockquote { border-left: 2px solid var(--neon); padding: 0.5rem 0 0.5rem 1.5rem; font-style: italic; color: var(--foreground); margin: 1.5rem 0; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.5rem; color: var(--muted-foreground); }
.prose code { font-family: var(--font-mono); background: var(--card); padding: 0.15rem 0.4rem; border-radius: 4px; color: var(--neon); font-size: 0.85em; }

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--neon);
  margin-bottom: 2rem;
}

/* ---------- 27. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .marquee-track, .t-track, .cert-col, .orbit, .orbit .node { animation: none !important; }
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  button, a { cursor: pointer; }
}

/* =========================================================
   HERO V2 · CINEMATIC POSTER
   Inspired by editorial sport / film-poster compositions:
   massive name backdrop · subject cuts through ·
   corner-anchored quote, badge, stats, availability
   ========================================================= */
:root {
  --font-mega: "Archivo Black", "Space Grotesk", system-ui, sans-serif;
}

.hero-poster {
  position: relative;
  min-height: 100vh;
  padding: 7rem 0 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-ambient {
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 38% at 50% 62%, color-mix(in oklab, var(--neon) 24%, transparent) 0%, transparent 65%),
    radial-gradient(60% 50% at 14% 18%, color-mix(in oklab, var(--violet) 22%, transparent) 0%, transparent 60%),
    radial-gradient(60% 50% at 86% 24%, color-mix(in oklab, var(--cyan)   22%, transparent) 0%, transparent 60%),
    radial-gradient(80% 70% at 50% 100%, color-mix(in oklab, var(--background) 92%, var(--neon)) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
}

.hero-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--foreground) 6%, transparent) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.35;
  mix-blend-mode: overlay;
  z-index: -1;
  pointer-events: none;
}

.hero-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg,
    transparent 0px, transparent 2px,
    color-mix(in oklab, var(--cyan) 4%, transparent) 2px,
    color-mix(in oklab, var(--cyan) 4%, transparent) 3px);
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.hero-stage {
  position: relative;
  width: var(--container);
  margin-inline: auto;
  height: calc(100vh - 8rem);
  min-height: 640px;
  max-height: 920px;
}

/* MEGA NAME BACKDROP */
.hero-mega {
  position: absolute;
  inset: auto 0 0 0;
  bottom: 38%;
  display: flex; flex-direction: column;
  align-items: center;
  font-family: var(--font-mega);
  font-weight: 900;
  font-size: clamp(5.5rem, 18vw, 17rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-align: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;

  background: linear-gradient(180deg,
    color-mix(in oklab, var(--foreground) 92%, transparent) 0%,
    color-mix(in oklab, var(--neon) 78%, transparent) 55%,
    color-mix(in oklab, var(--cyan) 70%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 30px 60px color-mix(in oklab, var(--neon) 14%, transparent));
}
.hero-mega .mega-line { display: block; }
.hero-mega .mega-line-1 { transform: translateX(-2vw); }
.hero-mega .mega-line-2 { transform: translateX(2vw); }

/* PORTRAIT — cinematic 3D tilt card (avatar) */
.hero-portrait {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(260px, 30vw, 440px);
  aspect-ratio: 1 / 1;
  z-index: 3;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.hero-portrait-glow {
  position: absolute; inset: -28% -34%;
  background:
    radial-gradient(46% 42% at 50% 50%, color-mix(in oklab, var(--neon) 55%, transparent) 0%, transparent 70%),
    radial-gradient(70% 60% at 50% 85%, color-mix(in oklab, var(--cyan) 38%, transparent) 0%, transparent 70%),
    radial-gradient(60% 50% at 50% 15%, color-mix(in oklab, var(--violet) 28%, transparent) 0%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
  animation: hero-glow 6s ease-in-out infinite alternate;
  transition: opacity 0.4s ease;
}
.hero-portrait:hover .hero-portrait-glow { opacity: 1.25; filter: blur(34px); }

.hero-portrait-stage {
  position: absolute; inset: 0;
  border-radius: 32px;
  overflow: hidden;
  background: var(--card);
  border: 1.5px solid color-mix(in oklab, var(--neon) 38%, var(--border-strong));
  box-shadow:
    0 40px 90px -20px rgb(0 0 0 / 60%),
    0 0 0 1px color-mix(in oklab, var(--neon) 18%, transparent) inset,
    0 0 60px -10px color-mix(in oklab, var(--neon) 40%, transparent),
    0 0 120px -20px color-mix(in oklab, var(--cyan) 30%, transparent);
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s;
  will-change: transform;
}
.hero-portrait:hover .hero-portrait-stage {
  box-shadow:
    0 50px 110px -20px rgb(0 0 0 / 70%),
    0 0 0 1px color-mix(in oklab, var(--neon) 30%, transparent) inset,
    0 0 80px -10px color-mix(in oklab, var(--neon) 55%, transparent),
    0 0 160px -20px color-mix(in oklab, var(--cyan) 40%, transparent);
}
.hero-portrait.is-tilting .hero-portrait-stage {
  transition: transform 0.15s ease-out;
}

.hero-portrait-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  filter: saturate(1.08) contrast(1.04);
  transform: translateZ(0);
}

/* Specular gleam — follows the cursor for the "glass card" feel */
.hero-portrait-gleam {
  position: absolute; inset: 0;
  background: radial-gradient(circle 220px at var(--gx, 50%) var(--gy, 50%),
              color-mix(in oklab, white 28%, transparent) 0%,
              color-mix(in oklab, white 10%, transparent) 18%,
              transparent 45%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 4;
  transform: translateZ(20px);
}
.hero-portrait:hover .hero-portrait-gleam { opacity: 0.9; }
/* Scanline overlay on the card */
.hero-portrait-stage::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg,
    transparent 0px, transparent 3px,
    color-mix(in oklab, var(--cyan) 8%, transparent) 3px,
    color-mix(in oklab, var(--cyan) 8%, transparent) 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}
/* Vignette overlay */
.hero-portrait-stage::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 70% at 50% 35%, transparent 55%, color-mix(in oklab, var(--background) 55%, transparent) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Corner availability tag — pops out in 3D */
.hero-portrait-corner-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--background);
  background: var(--neon);
  border-radius: 999px;
  z-index: 5;
  box-shadow: 0 6px 20px -4px color-mix(in oklab, var(--neon) 60%, transparent);
  transform: translateZ(50px);
}
.hero-portrait-corner-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--background);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
/* Fallback silhouette (when no image) */
.hero-portrait-silhouette {
  position: absolute;
  inset: 8% 8% 0 8%;
  background:
    radial-gradient(34% 22% at 50% 14%, color-mix(in oklab, var(--neon) 95%, white 5%), color-mix(in oklab, var(--neon) 40%, transparent) 60%, transparent 78%),
    radial-gradient(46% 30% at 50% 38%, color-mix(in oklab, var(--cyan) 70%, transparent), transparent 70%),
    radial-gradient(60% 60% at 50% 95%, color-mix(in oklab, var(--violet) 60%, transparent), transparent 70%);
  filter: blur(1px);
  mix-blend-mode: screen;
  border-radius: 200px 200px 0 0;
  opacity: 0.92;
}
.hero-portrait-floor {
  position: absolute; left: 50%; bottom: -6%;
  transform: translateX(-50%);
  width: 130%; height: 80px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--neon) 45%, transparent), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

@keyframes hero-glow {
  from { opacity: 0.8; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1.03); }
}

/* Float icons (hero-specific positions) */
.hero-portrait .float-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  z-index: 4;
}
.fi-h1 { top:  -8%; left: -22%; animation-delay: -1s; }
.fi-h2 { top:  16%; right: -28%; animation-delay: -2.4s; }
.fi-h3 { bottom: 30%; left: -28%; animation-delay: -3.6s; }
.fi-h4 { bottom: 10%; right: -22%; animation-delay: -1.4s; }
.fi-h5 { top:  46%; left: -8%; animation-delay: -4s; opacity: 0.85; }

/* TOP-LEFT QUOTE BLOCK */
.hero-tl {
  position: absolute;
  top: 1.5rem; left: 0;
  max-width: 320px;
  z-index: 4;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.hero-tl-mark {
  font-family: var(--font-mega);
  font-size: 3.2rem;
  line-height: 0.6;
  color: var(--neon);
  text-shadow: 0 0 30px color-mix(in oklab, var(--neon) 50%, transparent);
}
.hero-tl-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--foreground);
}
.hero-tl-cite {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* TOP-RIGHT BADGE */
.hero-tr {
  position: absolute;
  top: 1.5rem; right: 0;
  display: flex; align-items: flex-start; gap: 0.9rem;
  z-index: 4;
}
.hero-tr-num {
  font-family: var(--font-mega);
  font-size: 4.6rem;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in oklab, var(--neon) 70%, transparent);
  letter-spacing: -0.06em;
}
.hero-tr-meta {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border-strong);
  padding-left: 0.9rem;
  margin-top: 0.4rem;
}
.hero-tr-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon);
}
.hero-tr-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-top: 0.4rem;
}

/* BOTTOM-LEFT STATS */
.hero-bl {
  position: absolute;
  bottom: 1.2rem; left: 0;
  display: flex; gap: 2rem;
  z-index: 4;
}
.hero-stat-block { display: flex; flex-direction: column; gap: 0.25rem; max-width: 220px; }
.hero-stat-v {
  font-family: var(--font-mega);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--foreground);
  letter-spacing: -0.04em;
}
.hero-stat-v i {
  color: var(--neon);
  font-style: normal;
}
.hero-stat-l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* BOTTOM-RIGHT AVAILABILITY CARD */
.hero-br {
  position: absolute;
  bottom: 1.2rem; right: 0;
  width: min(320px, 32vw);
  z-index: 4;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid color-mix(in oklab, var(--neon) 22%, var(--border-strong));
  box-shadow: 0 20px 60px -20px rgb(0 0 0 / 60%),
              0 0 0 1px color-mix(in oklab, var(--neon) 8%, transparent) inset;
}
.hero-br-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--neon);
  margin-bottom: 0.65rem;
}
.hero-br-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.hero-br-body { display: flex; flex-direction: column; gap: 0.45rem; }
.hero-br-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.hero-br-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.hero-br-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--foreground);
}
.hero-br-cta {
  margin-top: 0.5rem;
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: var(--neon);
  color: oklch(0.18 0.01 270);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 24px -8px color-mix(in oklab, var(--neon) 50%, transparent);
}
.hero-br-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px color-mix(in oklab, var(--neon) 60%, transparent); }

/* FLOATING CTAS — under portrait, centered */
.hero-ctas-float {
  position: absolute;
  left: 50%; bottom: 7.5rem;
  transform: translateX(-50%);
  display: flex; gap: 0.75rem;
  z-index: 5;
}

/* SCROLL HINT — adjust position */
.hero-poster .scroll-hint { bottom: 0.5rem; }

/* ----- RESPONSIVE — hero poster ----- */
@media (max-width: 1080px) {
  .hero-stage { height: auto; min-height: auto; padding-block: 3rem 1rem; }
  .hero-mega { position: relative; inset: auto; bottom: auto; margin-bottom: -8rem; }
  .hero-portrait {
    position: relative;
    transform: none;
    left: auto; top: auto;
    margin: -2rem auto 1rem;
    width: clamp(240px, 60vw, 380px);
  }
  .hero-tl, .hero-tr, .hero-bl, .hero-br, .hero-ctas-float {
    position: relative; inset: auto; transform: none;
    width: auto;
  }
  .hero-tl { margin-bottom: 1.5rem; max-width: 100%; }
  .hero-tr { margin-bottom: 1.5rem; justify-content: flex-end; }
  .hero-bl { margin-top: 1.5rem; flex-wrap: wrap; }
  .hero-br { margin-top: 1.5rem; width: 100%; }
  .hero-ctas-float { margin: 1.5rem auto 0; justify-content: center; }
  .fi-h1, .fi-h2, .fi-h3, .fi-h4, .fi-h5 { display: none; }
}
@media (max-width: 560px) {
  .hero-mega { font-size: clamp(3.4rem, 18vw, 6rem); margin-bottom: -4rem; }
  .hero-tr-num { font-size: 3rem; }
  .hero-bl { gap: 1.2rem; }
  .hero-stat-v { font-size: 2rem; }
}

/* ----- LEGACY HERO HIDE (no longer used) ----- */
.hero { display: none; }

/* =========================================================
   ROUND 2 · GLOBAL POLISH
   selection color · centered headings · typing motion ·
   material symbols base
   ========================================================= */

/* Neon selection */
::selection      { background: var(--neon); color: oklch(0.13 0.005 270); text-shadow: none; }
::-moz-selection { background: var(--neon); color: oklch(0.13 0.005 270); text-shadow: none; }

/* Center every section head */
.section-head {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}
.section-head h2 { text-align: center; }
.section-head p  { text-align: center; margin-inline: auto; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before { display: none; }
.section-head .eyebrow::after  { display: none; }

/* Typing caret */
.type-target {
  display: inline-block;
  position: relative;
}
.type-target.is-typing::after {
  content: "";
  display: inline-block;
  width: 3px; height: 0.92em;
  background: var(--neon);
  margin-left: 4px;
  vertical-align: -0.12em;
  animation: caret-blink 0.9s steps(2) infinite;
  box-shadow: 0 0 12px var(--neon);
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* Material Symbols base */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal;
  font-size: 24px; line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap; word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.mi { vertical-align: middle; }
.mi-fill { font-variation-settings: 'FILL' 1; }


/* =========================================================
   ROUND 3 · ABOUT v2 — image + nutshell
   ========================================================= */
.about-v2 {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}
.about-v2-portrait {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 28px;
  overflow: hidden;
  border: 1.5px solid color-mix(in oklab, var(--neon) 30%, var(--border-strong));
  box-shadow:
    0 30px 80px -20px rgb(0 0 0 / 60%),
    0 0 80px -10px color-mix(in oklab, var(--neon) 25%, transparent);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.about-v2-portrait:hover { transform: scale(1.02) rotate(-1deg); }
.about-v2-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-v2-portrait::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in oklab, var(--cyan) 8%, transparent) 3px 4px);
  mix-blend-mode: overlay; pointer-events: none;
}
.about-v2-portrait .corner-quote {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  padding: 0.7rem 0.9rem;
  background: color-mix(in oklab, oklch(0.13 0.005 270) 75%, transparent);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--neon) 30%, transparent);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.about-v2-portrait .corner-quote .v { color: var(--neon); }

.about-v2-copy { display: flex; flex-direction: column; gap: 1.2rem; }
.about-v2-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
}
.about-v2-copy p { color: var(--muted-foreground); font-size: 1.02rem; line-height: 1.65; }
.about-v2-copy p strong { color: var(--foreground); font-weight: 600; }

.nutshell-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
  margin-top: 0.5rem;
}
.nutshell-pill {
  display: flex; gap: 0.7rem; align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.nutshell-pill:hover { border-color: color-mix(in oklab, var(--neon) 50%, transparent); transform: translateY(-2px); }
.nutshell-pill .material-symbols-rounded {
  font-size: 22px;
  color: var(--neon);
  background: color-mix(in oklab, var(--neon) 12%, transparent);
  border-radius: 8px;
  padding: 6px;
}
.nutshell-pill .nt-t { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.nutshell-pill .nt-s { font-size: 0.8rem; color: var(--muted-foreground); line-height: 1.3; }

@media (max-width: 880px) { .about-v2 { grid-template-columns: 1fr; gap: 2rem; } }


/* =========================================================
   ROUND 4 · WORK FOLDERS — bubble-out on hover
   ========================================================= */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.folder-card {
  position: relative;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  padding: 0;
  min-height: 280px;
  cursor: none;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), border-color 0.4s, box-shadow 0.4s;
  overflow: visible;
}
.folder-card::before {
  /* Folder tab */
  content: "";
  position: absolute;
  top: -10px; left: 24px;
  width: 110px; height: 18px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.folder-card::after {
  /* Cover tab border seam */
  content: "";
  position: absolute;
  top: 0; left: 24px; width: 110px; height: 1px;
  background: var(--card);
}
.folder-card:hover {
  border-color: color-mix(in oklab, var(--neon) 50%, transparent);
  transform: translateY(-6px);
  box-shadow:
    0 30px 70px -20px rgb(0 0 0 / 50%),
    0 0 60px -10px color-mix(in oklab, var(--neon) 35%, transparent);
}
.folder-tab-label {
  position: absolute;
  top: -6px; left: 36px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  z-index: 2;
}
.folder-card:hover .folder-tab-label { color: var(--neon); }

.folder-body {
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  height: 100%;
  position: relative;
  z-index: 1;
}
.folder-head {
  display: flex; align-items: flex-start; justify-content: space-between;
}
.folder-num {
  font-family: var(--font-mega);
  font-size: 3rem;
  line-height: 0.9;
  color: var(--neon);
  letter-spacing: -0.04em;
}
.folder-num i { font-style: normal; color: var(--cyan); }
.folder-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in oklab, var(--neon) 12%, transparent);
  color: var(--neon);
  border: 1px solid color-mix(in oklab, var(--neon) 25%, transparent);
}
.folder-icon .material-symbols-rounded { font-size: 26px; }
.folder-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.folder-desc {
  color: var(--muted-foreground); font-size: 0.88rem; line-height: 1.5;
}

/* Bubbles container */
.folder-bubbles {
  margin-top: auto;
  position: relative;
  min-height: 60px;
}
.folder-bubble {
  position: absolute;
  bottom: 0;
  padding: 0.45rem 0.8rem;
  background: color-mix(in oklab, var(--card-soft) 95%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.5s cubic-bezier(.2,.8,.2,1),
              transform 0.6s cubic-bezier(.2,.8,.2,1),
              color 0.3s, border-color 0.3s;
  pointer-events: none;
}
.folder-card:hover .folder-bubble {
  opacity: 1;
  border-color: color-mix(in oklab, var(--neon) 40%, transparent);
  color: var(--foreground);
}
.folder-card:hover .folder-bubble:nth-child(1) { transform: translate(-2%, -10px) scale(1); transition-delay: 0.05s; }
.folder-card:hover .folder-bubble:nth-child(2) { transform: translate(46%, -38px) scale(1); transition-delay: 0.12s; }
.folder-card:hover .folder-bubble:nth-child(3) { transform: translate(-8%, -64px) scale(1); transition-delay: 0.20s; }
.folder-card:hover .folder-bubble:nth-child(4) { transform: translate(36%, -90px) scale(1); transition-delay: 0.28s; }
.folder-card:hover .folder-bubble:nth-child(5) { transform: translate(10%, -118px) scale(1); transition-delay: 0.35s; }

/* Default stacked position (no hover) */
.folder-bubble:nth-child(1) { left: 0; transform: translate(0, 0) scale(0.6); }
.folder-bubble:nth-child(2) { left: 0; transform: translate(0, -2px) scale(0.6); opacity: 0; }
.folder-bubble:nth-child(3) { left: 0; transform: translate(0, -4px) scale(0.6); opacity: 0; }
.folder-bubble:nth-child(4) { left: 0; transform: translate(0, -6px) scale(0.6); opacity: 0; }
.folder-bubble:nth-child(5) { left: 0; transform: translate(0, -8px) scale(0.6); opacity: 0; }

@media (max-width: 960px) { .folder-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .folder-grid { grid-template-columns: 1fr; } }


/* =========================================================
   ROUND 5 · JOURNEY v2 — mountains + climbing character
   ========================================================= */
.journey-v2-wrap {
  position: relative;
  padding: 2rem 0 3rem;
  overflow: hidden;
}
.journey-v2-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 380px;
  max-height: 520px;
}
.mtn-shipped { fill: url(#mtnGradShipped); stroke: color-mix(in oklab, var(--neon) 30%, transparent); stroke-width: 1; }
.mtn-future  { fill: url(#mtnGradFuture); stroke: color-mix(in oklab, var(--foreground) 12%, transparent); stroke-width: 1; stroke-dasharray: 4 4; }
.mtn-shadow  { fill: oklch(0.13 0.005 270 / 0.4); }

.journey-v2-path {
  fill: none;
  stroke: var(--neon);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px color-mix(in oklab, var(--neon) 55%, transparent));
  pathLength: 1;
}
.journey-v2-future {
  fill: none;
  stroke: color-mix(in oklab, var(--foreground) 30%, transparent);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
}
.journey-milestone {
  fill: var(--background);
  stroke: var(--neon);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--neon) 50%, transparent));
}
.journey-milestone.future {
  stroke: color-mix(in oklab, var(--foreground) 50%, transparent);
  stroke-dasharray: 3 3;
  filter: none;
}
.journey-mile-pulse {
  fill: none;
  stroke: var(--neon);
  stroke-width: 2;
  opacity: 0;
  animation: mile-pulse 2.6s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes mile-pulse {
  0%   { opacity: 0.7; r: 6; }
  100% { opacity: 0; r: 18; }
}

.journey-year { font-family: var(--font-mono); font-size: 10px; fill: var(--muted-foreground); letter-spacing: 0.16em; text-transform: uppercase; }
.journey-title { font-family: var(--font-display); font-size: 13px; fill: var(--foreground); font-weight: 600; }

/* Character (hiker) */
.journey-character {
  filter: drop-shadow(0 0 14px color-mix(in oklab, var(--neon) 70%, transparent));
}
.journey-character circle.body { fill: var(--neon); stroke: oklch(0.18 0.01 270); stroke-width: 1.5; }
.journey-character circle.head { fill: oklch(0.98 0.005 270); stroke: oklch(0.18 0.01 270); stroke-width: 1; }


/* =========================================================
   ROUND 6 · CERTIFICATIONS v2 — image cards
   ========================================================= */
.certs-v2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  height: 720px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
}
.certs-v2-col {
  display: flex; flex-direction: column; gap: 1rem;
}
.certs-v2-col.up        { animation: scroll-up 48s linear infinite; }
.certs-v2-col.down      { animation: scroll-down 58s linear infinite; }
.certs-v2-col.up-slow   { animation: scroll-up 70s linear infinite; }
.certs-v2-col.down-slow { animation: scroll-down 80s linear infinite; }

.cert-v2-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.4s, box-shadow 0.4s;
}
.cert-v2-card:hover {
  border-color: color-mix(in oklab, var(--neon) 50%, transparent);
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 20px 50px -15px rgb(0 0 0 / 50%), 0 0 40px -10px color-mix(in oklab, var(--neon) 30%, transparent);
}
.cert-v2-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, color-mix(in oklab, var(--neon) 18%, var(--background)), color-mix(in oklab, var(--cyan) 18%, var(--background)));
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.cert-v2-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-v2-thumb .placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: color-mix(in oklab, var(--neon) 80%, transparent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cert-v2-thumb .placeholder .material-symbols-rounded { font-size: 36px; }
.cert-v2-thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, white 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, white 6%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: overlay;
}
.cert-v2-body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.cert-v2-title { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; line-height: 1.3; color: var(--foreground); }
.cert-v2-issuer { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-foreground); }
.cert-v2-coming {
  border: 1px dashed color-mix(in oklab, var(--neon) 55%, transparent);
  background: transparent;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--neon);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  border-radius: 12px;
  animation: pulse-dash 2.4s ease-in-out infinite;
}

@media (max-width: 1000px) { .certs-v2-grid { grid-template-columns: repeat(3, 1fr); height: 620px; } }
@media (max-width: 720px)  { .certs-v2-grid { grid-template-columns: repeat(2, 1fr); height: 520px; } }


/* =========================================================
   ROUND 7 · ORBIT MOTION ENABLED VIA JS
   (positions updated each frame; CSS just styles nodes)
   ========================================================= */
.orbit { animation: none !important; }  /* JS-driven now */
.galaxy .node { animation: none !important; }
.galaxy::before { animation: galaxy-pulse 8s ease-in-out infinite alternate; }
@keyframes galaxy-pulse { from { opacity: 0.45; } to { opacity: 0.8; } }


/* =========================================================
   ROUND 8 · COUNTER VISIBILITY FIX
   (ensure data-count target is visible immediately if no JS)
   ========================================================= */
.stat-value [data-count]:empty::before { content: "0"; }


/* =========================================================
   ROUND 9 · HERO v2 CLEANUP
   - portrait head no longer cut (object-position adjusted)
   - removed bottom-right card, replaced with centered tagline+CTAs
   - top-left becomes role tag, top-right becomes 24h motto
   ========================================================= */
.hero-portrait-img { object-position: center 18%; }  /* show head fully */

/* Hero top-left v2 — eyebrow + tagline */
.hero-tl-text-v2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--foreground);
  margin-top: 0.6rem;
}

/* Hero top-right v2 — motto block */
.hero-tr-v2 {
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: 340px;
  gap: 0.4rem;
}
.hero-motto-mark {
  font-family: var(--font-mega);
  font-size: 3.4rem;
  line-height: 0.55;
  color: var(--neon);
  text-shadow: 0 0 24px color-mix(in oklab, var(--neon) 60%, transparent);
}
.hero-motto-text {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--foreground);
}
.hero-motto-text strong { color: var(--neon); font-weight: 700; }
.hero-motto-belief {
  margin-top: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.hero-motto-belief .material-symbols-rounded { font-size: 14px; }

/* Hero bottom row v2 — centered tagline + CTAs */
.hero-bottom-row {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  z-index: 4;
  width: min(720px, 90%);
}
.hero-tagline {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.hero-tagline .material-symbols-rounded { font-size: 16px; color: var(--neon); }
.hero-ctas-float {
  position: static; transform: none; bottom: auto; left: auto;
  display: flex; gap: 0.8rem;
}

/* Hide the old hero-br entirely (replaced) */
.hero-br { display: none !important; }

/* Make the mega name even more stylish */
.hero-mega {
  bottom: 32%;
  font-weight: 900;
  letter-spacing: -0.05em;
  filter: drop-shadow(0 30px 60px color-mix(in oklab, var(--neon) 18%, transparent));
}
.hero-mega .mega-line {
  position: relative;
}
.hero-mega .mega-line::before {
  content: attr(data-shadow);
  position: absolute; left: 0; top: 0;
  z-index: -1;
  -webkit-text-stroke: 1px color-mix(in oklab, var(--neon) 25%, transparent);
  color: transparent;
  transform: translate(8px, 8px);
}

/* Adjust responsive */
@media (max-width: 1080px) {
  .hero-mega { margin-bottom: -5rem; }
  .hero-tr-v2 { align-items: flex-start; text-align: left; max-width: 100%; }
  .hero-bottom-row { position: relative; bottom: auto; left: auto; transform: none; margin: 1.5rem auto 0; }
}


/* =========================================================
   ROUND 10 · FLOATING CONTROL RAIL — theme/dashboard/deck
   ========================================================= */
.ctrl-rail {
  position: fixed;
  left: 1.25rem; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.6rem;
  z-index: 95;
  padding: 0.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 80%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 60%);
}
.ctrl-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--foreground);
  border: 1px solid transparent;
  transition: all 0.3s;
  cursor: none;
}
.ctrl-btn .material-symbols-rounded { font-size: 22px; }
.ctrl-btn:hover {
  background: color-mix(in oklab, var(--neon) 14%, transparent);
  color: var(--neon);
  border-color: color-mix(in oklab, var(--neon) 40%, transparent);
  box-shadow: 0 0 18px color-mix(in oklab, var(--neon) 40%, transparent);
}
.ctrl-btn::after {
  content: attr(data-tooltip);
  position: absolute; left: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--foreground);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
}
.ctrl-btn:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.ctrl-btn.active { background: var(--neon); color: var(--background); border-color: var(--neon); }

@media (max-width: 760px) { .ctrl-rail { left: 0.6rem; gap: 0.4rem; padding: 0.4rem; } .ctrl-btn { width: 36px; height: 36px; } .ctrl-btn::after { display: none; } }


/* =========================================================
   ROUND 11 · LIGHT THEME tokens (toggleable via [data-theme])
   ========================================================= */
:root[data-theme="light"] {
  --background: oklch(0.985 0.005 270);
  --foreground: oklch(0.18 0.01 270);
  --card: oklch(1 0 0);
  --card-soft: oklch(0.97 0.005 270);
  --muted: oklch(0.95 0.005 270);
  --muted-foreground: oklch(0.40 0.015 270);
  --border: oklch(0.18 0.01 270 / 8%);
  --border-strong: oklch(0.18 0.01 270 / 14%);
  --neon: oklch(0.78 0.22 130);      /* slightly darker lime for contrast on white */
  --cyan: oklch(0.62 0.18 220);
  --violet: oklch(0.55 0.22 295);
  --glass-bg: color-mix(in oklab, var(--card) 70%, transparent);
}
:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--foreground) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--foreground) 4%, transparent) 1px, transparent 1px);
}
:root[data-theme="light"] body::after {
  background:
    radial-gradient(60% 40% at 10% 0%, color-mix(in oklab, var(--neon) 18%, transparent), transparent 70%),
    radial-gradient(50% 40% at 100% 30%, color-mix(in oklab, var(--cyan) 16%, transparent), transparent 70%);
}
:root[data-theme="light"] ::selection { background: var(--neon); color: oklch(0.18 0.01 270); }
:root[data-theme="light"] .btn-primary { color: oklch(0.18 0.01 270); }
:root[data-theme="light"] .nav-pill { background: color-mix(in oklab, var(--card) 80%, transparent); }
:root[data-theme="light"] .hero-mega {
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--foreground) 88%, transparent) 0%,
    color-mix(in oklab, var(--neon) 72%, transparent) 55%,
    color-mix(in oklab, var(--cyan) 65%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text;
}


/* =========================================================
   ROUND 12 · JOURNEY VALLEY v3 — gradient peaks + flags
   ========================================================= */
.journey-v3-wrap {
  position: relative;
  padding: 1rem 0 2rem;
  overflow: hidden;
}
.journey-v3-svg { display: block; width: 100%; height: auto; min-height: 460px; max-height: 600px; }

/* Mountain layers */
.v3-mtn-shipped { fill: url(#v3GradShipped); stroke: color-mix(in oklab, var(--neon) 35%, transparent); stroke-width: 1.5; }
.v3-mtn-future  { fill: url(#v3GradFuture);  stroke: color-mix(in oklab, var(--foreground) 18%, transparent); stroke-width: 1.5; stroke-dasharray: 5 5; }
.v3-mtn-back    { fill: oklch(0.18 0.005 270 / 0.6); stroke: none; }
.v3-mtn-mid     { fill: oklch(0.22 0.008 270 / 0.55); stroke: none; }
:root[data-theme="light"] .v3-mtn-back { fill: oklch(0.78 0.005 270 / 0.4); }
:root[data-theme="light"] .v3-mtn-mid  { fill: oklch(0.85 0.005 270 / 0.45); }

/* Trail path */
.v3-trail {
  fill: none;
  stroke: var(--neon);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px color-mix(in oklab, var(--neon) 60%, transparent));
}
.v3-trail-future {
  fill: none;
  stroke: color-mix(in oklab, var(--foreground) 40%, transparent);
  stroke-width: 2;
  stroke-dasharray: 7 7;
}

/* Milestone flags */
.v3-flag-pole { stroke: var(--foreground); stroke-width: 1.5; }
.v3-flag-cloth {
  fill: var(--neon);
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--neon) 50%, transparent));
  animation: flag-wave 3s ease-in-out infinite;
  transform-origin: left center;
  transform-box: fill-box;
}
.v3-flag-cloth.future { fill: color-mix(in oklab, var(--foreground) 35%, transparent); filter: none; }
.v3-flag-pole.future  { stroke: color-mix(in oklab, var(--foreground) 35%, transparent); }
@keyframes flag-wave {
  0%, 100% { transform: skewX(0deg) scaleX(1); }
  50% { transform: skewX(-8deg) scaleX(0.95); }
}

.v3-year  { font-family: var(--font-mono); font-size: 10px; fill: var(--muted-foreground); letter-spacing: 0.16em; text-transform: uppercase; }

/* Small certification flags planted in the valleys */
.v3-cert-pole {
  stroke: color-mix(in oklab, var(--cyan) 80%, transparent);
  stroke-width: 1;
}
.v3-cert-cloth {
  fill: var(--cyan);
  filter: drop-shadow(0 0 3px color-mix(in oklab, var(--cyan) 70%, transparent));
}
.v3-cert-pole.future {
  stroke: color-mix(in oklab, var(--foreground) 30%, transparent);
  stroke-dasharray: 2 2;
}
.v3-cert-cloth.future {
  fill: color-mix(in oklab, var(--foreground) 30%, transparent);
  filter: none;
}
.v3-title { font-family: var(--font-display); font-size: 12px; fill: var(--foreground); font-weight: 600; }
.v3-title.future { fill: color-mix(in oklab, var(--foreground) 50%, transparent); }

/* Circle avatar that climbs */
.v3-avatar-wrap {
  filter: drop-shadow(0 0 14px color-mix(in oklab, var(--neon) 70%, transparent));
}
.v3-avatar-ring { fill: var(--neon); stroke: oklch(0.13 0.005 270); stroke-width: 2; }
:root[data-theme="light"] .v3-avatar-ring { stroke: oklch(1 0 0); }


/* =========================================================
   ROUND 13 · WORK BUNDLE v2 — items burst from bundle, toggleable
   ========================================================= */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.bundle-card {
  position: relative;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  padding: 1.6rem 1.5rem 1.5rem;
  min-height: 320px;
  cursor: none;
  overflow: visible;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), border-color 0.4s, box-shadow 0.4s;
}
.bundle-card:hover, .bundle-card.is-open {
  border-color: color-mix(in oklab, var(--neon) 55%, transparent);
  transform: translateY(-6px);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 55%),
              0 0 70px -10px color-mix(in oklab, var(--neon) 35%, transparent);
}
.bundle-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1rem;
}
.bundle-num {
  font-family: var(--font-mega); font-size: 3rem; line-height: 0.9;
  color: var(--neon); letter-spacing: -0.04em;
}
.bundle-num i { font-style: normal; color: var(--cyan); }
.bundle-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: color-mix(in oklab, var(--neon) 14%, transparent);
  color: var(--neon);
  border: 1px solid color-mix(in oklab, var(--neon) 25%, transparent);
}
.bundle-icon .material-symbols-rounded { font-size: 26px; }
.bundle-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.bundle-desc { color: var(--muted-foreground); font-size: 0.88rem; line-height: 1.5; margin-top: 0.3rem; }

/* Bundle "stack" area — boxes burst from here */
.bundle-stage {
  position: relative;
  margin-top: 1.2rem;
  height: 160px;
}
.bundle-knot {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, transparent, var(--neon), transparent);
  opacity: 0.7;
  box-shadow: 0 0 14px color-mix(in oklab, var(--neon) 60%, transparent);
}
.bundle-item {
  position: absolute;
  bottom: 14px; left: 50%;
  padding: 0.42rem 0.7rem;
  background: color-mix(in oklab, var(--card-soft) 95%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: var(--font-mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted-foreground);
  white-space: nowrap;
  transform: translateX(-50%) translateY(0) rotate(0deg) scale(0.4);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(.34,1.56,.64,1),
              opacity 0.5s cubic-bezier(.2,.8,.2,1),
              color 0.3s, border-color 0.3s;
}
/* Open state: items burst outward in arc */
.bundle-card:hover .bundle-item,
.bundle-card.is-open .bundle-item {
  opacity: 1;
  border-color: color-mix(in oklab, var(--neon) 40%, transparent);
  color: var(--foreground);
}
.bundle-card:hover .bundle-item:nth-child(2),
.bundle-card.is-open .bundle-item:nth-child(2) {
  transform: translate(-150%, -20px) rotate(-9deg) scale(1);
  transition-delay: 0.05s;
}
.bundle-card:hover .bundle-item:nth-child(3),
.bundle-card.is-open .bundle-item:nth-child(3) {
  transform: translate(40%, -55px) rotate(7deg) scale(1);
  transition-delay: 0.10s;
}
.bundle-card:hover .bundle-item:nth-child(4),
.bundle-card.is-open .bundle-item:nth-child(4) {
  transform: translate(-130%, -80px) rotate(-5deg) scale(1);
  transition-delay: 0.15s;
}
.bundle-card:hover .bundle-item:nth-child(5),
.bundle-card.is-open .bundle-item:nth-child(5) {
  transform: translate(20%, -115px) rotate(8deg) scale(1);
  transition-delay: 0.20s;
}
.bundle-card:hover .bundle-item:nth-child(6),
.bundle-card.is-open .bundle-item:nth-child(6) {
  transform: translate(-50%, -140px) rotate(-2deg) scale(1);
  transition-delay: 0.25s;
}
.bundle-toggle {
  position: absolute;
  bottom: -16px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted-foreground);
  transition: all 0.3s;
  cursor: none;
  z-index: 3;
}
.bundle-toggle:hover { color: var(--neon); border-color: color-mix(in oklab, var(--neon) 50%, transparent); }
.bundle-toggle .material-symbols-rounded { font-size: 14px; transition: transform 0.4s; }
.bundle-card.is-open .bundle-toggle .material-symbols-rounded { transform: rotate(180deg); }

@media (max-width: 960px) { .bundle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bundle-grid { grid-template-columns: 1fr; } }
/* Hide old folder grid */
.folder-grid { display: none !important; }


/* =========================================================
   ROUND 14 · TESTIMONIALS v2 — editorial pull-quote cards
   ========================================================= */
.t-card-v2 {
  position: relative;
  flex: 0 0 380px;
  padding: 2rem 1.6rem 1.6rem;
  border-radius: 18px;
  background:
    radial-gradient(60% 50% at 100% 0%, color-mix(in oklab, var(--neon) 14%, transparent), transparent 70%),
    var(--card);
  border: 1px solid var(--border-strong);
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s, border-color 0.4s, z-index 0.4s;
  overflow: hidden;
}
.t-card-v2::before {
  content: "\201C";
  position: absolute;
  top: -12px; left: 12px;
  font-family: var(--font-mega);
  font-size: 7rem;
  line-height: 0.7;
  color: color-mix(in oklab, var(--neon) 30%, transparent);
  pointer-events: none;
}
.t-card-v2:hover {
  transform: scale(1.06) translateY(-6px);
  border-color: var(--neon);
  box-shadow: 0 0 0 1px var(--neon), 0 30px 70px -20px color-mix(in oklab, var(--neon) 40%, transparent);
  z-index: 20;
}
.t-card-v2:hover .t-quote-v2 { -webkit-line-clamp: unset; line-clamp: unset; }

.t-quote-v2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  transition: all 0.3s;
}
.t-quote-v2 .hl { color: var(--neon); font-weight: 700; }

.t-divider {
  width: 28px; height: 1px;
  background: linear-gradient(to right, var(--neon), transparent);
  margin: 0;
}
.t-foot-v2 { display: flex; gap: 0.75rem; align-items: center; }
.t-avatar-v2 {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  display: grid; place-items: center;
  color: oklch(0.13 0.005 270);
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem;
}
.t-foot-v2 .meta { display: flex; flex-direction: column; gap: 1px; }
.t-name-v2 { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.t-role-v2 { color: var(--muted-foreground); font-size: 0.76rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }


/* =========================================================
   ROUND 15 · DASHBOARD VIEW MODE
   Toggles to a KPI-grid layout
   ========================================================= */
body.view-dashboard #hero { padding-top: 7rem; padding-bottom: 2rem; min-height: auto; }
body.view-dashboard .hero-mega,
body.view-dashboard .hero-tl,
body.view-dashboard .hero-tr-v2,
body.view-dashboard .hero-portrait,
body.view-dashboard .hero-bottom-row,
body.view-dashboard .scroll-hint { display: none !important; }
body.view-dashboard #hero::before { content: ""; display: block; height: 0; }
body.view-dashboard #hero .hero-stage { height: auto; min-height: auto; }
body.view-dashboard #hero .hero-stage::before {
  content: "DASHBOARD MODE";
  display: block; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.25em;
  color: var(--neon); margin-bottom: 1.5rem;
}

body.view-dashboard #stats .stats-grid { grid-template-columns: repeat(4, 1fr); }
body.view-dashboard .marquee-section { display: none; }
body.view-dashboard section { padding-block: 3rem; }
body.view-dashboard #about .about-v2 { grid-template-columns: 1fr 2fr; }
body.view-dashboard .galaxy-wrap { height: 480px; }
body.view-dashboard .galaxy { transform: scale(0.75); }

/* KPI rail injected at top of dashboard mode */
.kpi-rail {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
body.view-dashboard .kpi-rail { display: grid; }
.kpi-cell {
  padding: 1.2rem 1.2rem 1rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.kpi-cell .kl { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-foreground); }
.kpi-cell .kv { font-family: var(--font-mega); font-size: 2.4rem; color: var(--neon); letter-spacing: -0.03em; line-height: 1; }
.kpi-cell .kv i { font-style: normal; color: var(--cyan); }
.kpi-cell .kd { color: var(--muted-foreground); font-size: 0.82rem; }
.kpi-spark { height: 32px; margin-top: 0.4rem; }
.kpi-spark path { fill: none; stroke: var(--neon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in oklab, var(--neon) 50%, transparent)); }
@media (max-width: 880px) { .kpi-rail { grid-template-columns: repeat(2, 1fr); } body.view-dashboard #stats .stats-grid { grid-template-columns: repeat(2, 1fr); } }


/* =========================================================
   ROUND 16 · HIDE OLD TESTIMONIAL CARDS, REPLAY REVEAL
   ========================================================= */
.reveal.out { opacity: 0; transform: translateY(24px); }


/* =========================================================
   ROUND 17 · LIGHT THEME POLISH
   - text gradient readable on white
   - cursor visible
   - section card contrast
   ========================================================= */
:root[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg,
    oklch(0.22 0.02 270) 0%,
    oklch(0.55 0.22 295) 40%,
    oklch(0.62 0.18 220) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
:root[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, oklch(0.18 0.01 270) 0%, var(--violet) 50%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* Cursor in light theme: drop screen-blend (which makes it invisible) */
:root[data-theme="light"] .cursor-dot {
  mix-blend-mode: normal;
  background: oklch(0.18 0.01 270);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--neon) 60%, transparent),
              0 0 18px color-mix(in oklab, var(--neon) 80%, transparent);
}
:root[data-theme="light"] .cursor-ring {
  mix-blend-mode: normal;
  border-color: oklch(0.18 0.01 270 / 50%);
}
:root[data-theme="light"] .cursor-ring.hovering {
  border-color: oklch(0.18 0.01 270);
  background: color-mix(in oklab, var(--neon) 20%, transparent);
}

/* Glass surfaces re-tinted for light */
:root[data-theme="light"] .nav-link.active {
  color: oklch(0.18 0.01 270);
  background: color-mix(in oklab, var(--neon) 30%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--neon) 60%, transparent);
}
:root[data-theme="light"] .btn-primary { color: oklch(0.18 0.01 270); }
:root[data-theme="light"] .btn-ghost   { color: oklch(0.18 0.01 270); border-color: color-mix(in oklab, oklch(0.18 0.01 270) 18%, transparent); }
:root[data-theme="light"] .ctrl-btn    { color: oklch(0.18 0.01 270); }
:root[data-theme="light"] .ctrl-btn:hover { color: oklch(0.18 0.01 270); }
:root[data-theme="light"] .marquee-section { background: color-mix(in oklab, var(--card) 60%, transparent); }
:root[data-theme="light"] .float-icon { background: color-mix(in oklab, var(--card) 95%, transparent); color: oklch(0.18 0.01 270); }
:root[data-theme="light"] .stat-value, :root[data-theme="light"] .hero-stat-v {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
:root[data-theme="light"] .work-num, :root[data-theme="light"] .bundle-num, :root[data-theme="light"] .folder-num {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
:root[data-theme="light"] .core { color: oklch(0.13 0.005 270); }
:root[data-theme="light"] .scrollbar-color { scrollbar-color: var(--cyan) transparent; }


/* =========================================================
   ROUND 18 · BRAND MARK as portrait image
   ========================================================= */
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--neon);
  border: 1.5px solid color-mix(in oklab, var(--neon) 70%, transparent);
  box-shadow: 0 0 14px color-mix(in oklab, var(--neon) 50%, transparent);
  padding: 0;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.brand-mark.sm { width: 28px; height: 28px; }


/* =========================================================
   ROUND 19 · CONTROL RAIL with HOME button & divider
   ========================================================= */
.ctrl-home { padding: 0; border-radius: 50%; overflow: hidden; }
.ctrl-home .brand-mark { width: 36px; height: 36px; border: 0; box-shadow: none; }
.ctrl-home:hover { background: transparent; box-shadow: 0 0 16px color-mix(in oklab, var(--neon) 55%, transparent); }
.ctrl-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
  margin: 0.1rem 0.4rem;
}


/* =========================================================
   ROUND 20 · HERO SPOTLIGHT — cursor-following light
   ========================================================= */
.hero-spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(circle 360px at var(--mx, 50%) var(--my, 50%),
              color-mix(in oklab, var(--neon) 22%, transparent) 0%,
              color-mix(in oklab, var(--cyan) 8%, transparent) 30%,
              transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.hero-poster:hover .hero-spotlight { opacity: 1; }
:root[data-theme="light"] .hero-spotlight {
  mix-blend-mode: multiply;
  background: radial-gradient(circle 360px at var(--mx, 50%) var(--my, 50%),
              color-mix(in oklab, var(--neon) 40%, transparent) 0%,
              transparent 60%);
}


/* =========================================================
   ROUND 21 · PORTRAIT WITHOUT BACKGROUND
   - removes card frame, soft mask fades the lime corners
   - lets the brand neon glow merge with the avatar's bg
   ========================================================= */
.hero-portrait-stage {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.hero-portrait-stage::before, .hero-portrait-stage::after { display: none; }
.hero-portrait-img {
  /* Soft radial mask: keep character fully visible, fade only the rectangular corners */
  mask-image: radial-gradient(ellipse 92% 96% at 50% 42%, black 68%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 96% at 50% 42%, black 68%, transparent 100%);
  filter: saturate(1.08) contrast(1.04) drop-shadow(0 30px 50px rgb(0 0 0 / 50%));
}
:root[data-theme="light"] .hero-portrait-img {
  filter: saturate(1.08) contrast(1.02) drop-shadow(0 30px 50px rgb(0 0 0 / 25%));
}
.hero-portrait:hover .hero-portrait-stage { box-shadow: none; }
/* Strengthen the glow since the card frame is gone */
.hero-portrait-glow {
  inset: -32% -38%;
  background:
    radial-gradient(50% 45% at 50% 50%, color-mix(in oklab, var(--neon) 60%, transparent) 0%, transparent 70%),
    radial-gradient(70% 60% at 50% 85%, color-mix(in oklab, var(--cyan) 42%, transparent) 0%, transparent 70%),
    radial-gradient(60% 50% at 50% 15%, color-mix(in oklab, var(--violet) 32%, transparent) 0%, transparent 70%);
  filter: blur(32px);
}
/* Hide the corner availability tag since there's no frame anymore */
.hero-portrait-corner-tag { display: none; }


/* =========================================================
   ROUND 22 · UNIFORM SECTION SPACING
   ========================================================= */
section { padding-block: var(--section-y); }
.kpi-section { padding-block: 0; }   /* hidden by default — only visible in dashboard mode */
body.view-dashboard .kpi-section { padding-block: 2.5rem 1rem; }
/* Restore consistent spacing for sections we previously had inline padding on */
.testimonials-section { padding-block: var(--section-y); }


/* =========================================================
   ROUND 23 · MOUNTAIN VALLEY POLISH (theme-aware clouds)
   ========================================================= */
.v3-clouds ellipse { fill: oklch(0.85 0.005 270 / 0.4); }
:root[data-theme="light"] .v3-clouds ellipse { fill: oklch(0.98 0.005 270 / 0.7); }

/* Light-theme journey: warmer sky, brighter snow */
:root[data-theme="light"] #v3Sky stop:first-child { stop-color: oklch(0.78 0.05 240 / 0.5); }
:root[data-theme="light"] #v3Far  stop:first-child { stop-color: oklch(0.62 0.04 240 / 0.4); }
:root[data-theme="light"] #v3Mid  stop:first-child { stop-color: oklch(0.55 0.04 250 / 0.55); }
:root[data-theme="light"] .v3-tent text { fill: oklch(0.40 0.015 270); }


/* =========================================================
   ROUND 24 · CENTER HERO CTAs (defensive)
   ========================================================= */
.hero-bottom-row { align-items: center; }
.hero-ctas-float { justify-content: center; }


/* =========================================================
   ROUND 25 · DASHBOARD v2 — Crextio-inspired layout
   Soft rounded cards, warm yellow accent, vertical scroll
   ========================================================= */
body.view-dashboard {
  /* warmer beige base in light dashboard mode for that "app" feel */
}
:root[data-theme="light"][data-view="dashboard"] {
  --background: oklch(0.965 0.02 90);   /* warm cream */
  --card: oklch(1 0 0);
  --card-soft: oklch(0.97 0.01 90);
}

/* KPI tiles upgraded to Crextio-style soft rounded */
.kpi-cell {
  border-radius: 22px;
  padding: 1.4rem 1.3rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px -8px rgb(0 0 0 / 30%);
  transition: transform 0.3s, box-shadow 0.3s;
}
.kpi-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px color-mix(in oklab, var(--neon) 30%, transparent);
}

body.view-dashboard .kpi-rail { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }

/* Dashboard "hero" section in dashboard mode — welcome strip */
body.view-dashboard #hero { display: none; }
body.view-dashboard .nav-wrap { display: none; }
body.view-dashboard .scroll-hint { display: none; }

/* DASHBOARD MODE = ONLY the dashboard widget section visible.
   Hide every other section so the view is purely quantified KPIs + charts. */
body.view-dashboard #about,
body.view-dashboard #stats,
body.view-dashboard #journey,
body.view-dashboard #work,
body.view-dashboard #skills,
body.view-dashboard #certs,
body.view-dashboard #ava,
body.view-dashboard #insights,
body.view-dashboard .testimonials-section,
body.view-dashboard #blog,
body.view-dashboard #contact,
body.view-dashboard #suggestions,
body.view-dashboard .closing-quote-section,
body.view-dashboard footer,
body.view-dashboard .marquee-section,
body.view-dashboard .float-contact {
  display: none !important;
}

/* Bring the dashboard section flush to the top of the viewport */
body.view-dashboard #dashWelcomeSection { padding-top: 2rem; }
body.view-dashboard #dashWelcomeSection::before,
body.view-dashboard #dashWelcomeSection::after { display: none !important; }

body.view-dashboard::before {
  /* warm subtle bg accent */
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(60% 40% at 90% 0%, color-mix(in oklab, var(--neon) 14%, transparent), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, color-mix(in oklab, var(--cyan) 10%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body.view-dashboard .container { padding-top: 1rem; }

/* Welcome card */
.dash-welcome {
  display: none;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem; align-items: center;
  padding: 2rem 2.2rem;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 18px -8px rgb(0 0 0 / 30%);
}
body.view-dashboard .dash-welcome { display: grid; }
.dash-welcome-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.02em;
}
.dash-welcome-text p { color: var(--muted-foreground); margin-top: 0.5rem; }
.dash-welcome-meta {
  display: flex; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap;
}
.dash-welcome-meta div { display: flex; flex-direction: column; }
.dash-welcome-meta .v {
  font-family: "Archivo Black", sans-serif;
  font-size: 2rem; color: var(--neon); line-height: 1;
}
.dash-welcome-meta .l {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.dash-welcome-photo {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 280px;
  margin-left: auto;
  border-radius: 22px;
  overflow: hidden;
  background: color-mix(in oklab, var(--neon) 12%, var(--card));
}
.dash-welcome-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.dash-welcome-badge {
  position: absolute; left: 14px; bottom: 14px;
  padding: 0.5rem 0.75rem;
  background: oklch(0.13 0.005 270);
  color: oklch(0.98 0.005 270);
  border-radius: 14px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
}
.dash-welcome-badge i { font-style: normal; color: var(--neon); margin-left: 6px; font-family: var(--font-mono); font-size: 11px; }

/* In dashboard mode, sections feel like dashboard widgets */
body.view-dashboard section {
  padding-block: 1.5rem 0.5rem;
}
body.view-dashboard .section-head {
  margin-bottom: 1rem; text-align: left; align-items: flex-start;
}
body.view-dashboard .section-head h2 { font-size: 1.4rem; text-align: left; }
body.view-dashboard .section-head p { text-align: left; }
body.view-dashboard .section-head .eyebrow { justify-content: flex-start; }


/* =========================================================
   ROUND 26 · LIGHT THEME GLOBAL FIX-UPS
   ========================================================= */
:root[data-theme="light"] body::before {
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 100%);
}
:root[data-theme="light"] .glass { background: color-mix(in oklab, var(--card) 75%, transparent); }
:root[data-theme="light"] .chat-input { background: color-mix(in oklab, var(--background) 70%, transparent); }
:root[data-theme="light"] .field input, :root[data-theme="light"] .field textarea {
  background: color-mix(in oklab, var(--background) 80%, transparent);
}
:root[data-theme="light"] .hero-mega {
  filter: drop-shadow(0 20px 40px color-mix(in oklab, var(--violet) 15%, transparent));
}


/* =========================================================
   ROUND 27 · DASHBOARD CHARTS GRID
   Quantified-only widgets with title + subtitle + chart body.
   Variety: line+area, donut, bar, sparkline, heatmap, progress, gauge.
   ========================================================= */
.dash-charts-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.1rem 1.2rem 1rem;
  box-shadow: 0 4px 18px -10px rgb(0 0 0 / 25%);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.dash-card:hover { box-shadow: 0 18px 40px -12px rgb(0 0 0 / 35%), 0 0 30px -10px color-mix(in oklab, var(--neon) 25%, transparent); transition: box-shadow 0.3s; }
.dc-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.4rem; }
.dc-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; line-height: 1.2; }
.dc-sub   { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 2px; }
.dc-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: 0.18em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--neon) 14%, transparent);
  color: var(--neon);
  border: 1px solid color-mix(in oklab, var(--neon) 35%, transparent);
}
.dc-badge .arrow { font-size: 11px; }
.dc-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 0.4rem; }
.dc-meta { display: flex; gap: 1.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.dc-meta .v { font-family: var(--font-mega); font-size: 1.4rem; line-height: 1; color: var(--neon); }
.dc-meta .l { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-foreground); display: block; margin-top: 2px; }

/* Spans */
.dc-w3  { grid-column: span 3; }
.dc-w4  { grid-column: span 4; }
.dc-w6  { grid-column: span 6; }
.dc-w8  { grid-column: span 8; }
.dc-w9  { grid-column: span 9; }
.dc-w12 { grid-column: span 12; }
@media (max-width: 1080px) { .dc-w3, .dc-w4, .dc-w6, .dc-w8, .dc-w9 { grid-column: span 12; } }

/* Line chart with gradient area fill */
.chart-line { width: 100%; height: 180px; display: block; }
.chart-line .area { fill: url(#dcAreaGrad); }
.chart-line .line { fill: none; stroke: var(--neon); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in oklab, var(--neon) 50%, transparent)); }
.chart-line .marker { fill: var(--background); stroke: var(--neon); stroke-width: 2; }
.chart-line .marker:hover { stroke-width: 3; r: 6; }
.chart-line .gridline { stroke: color-mix(in oklab, var(--foreground) 8%, transparent); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-line .axis-label { font-family: var(--font-mono); font-size: 9px; fill: var(--muted-foreground); letter-spacing: 0.12em; text-transform: uppercase; }
.chart-line .marker-label { font-family: var(--font-mono); font-size: 9.5px; fill: var(--foreground); font-weight: 600; }

/* Bar chart */
.chart-bar { width: 100%; height: 180px; display: block; }
.chart-bar .bar { fill: url(#dcBarGrad); rx: 4; transition: opacity 0.25s; }
.chart-bar .bar:hover { opacity: 0.85; }
.chart-bar .bar-label { font-family: var(--font-mono); font-size: 9.5px; fill: var(--foreground); font-weight: 700; }
.chart-bar .cat-label { font-family: var(--font-mono); font-size: 8.5px; fill: var(--muted-foreground); letter-spacing: 0.1em; text-transform: uppercase; }

/* Donut chart */
.chart-donut-wrap { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center; }
.chart-donut { width: 140px; height: 140px; }
.chart-donut .donut-bg { fill: none; stroke: color-mix(in oklab, var(--foreground) 8%, transparent); stroke-width: 16; }
.chart-donut .donut-seg { fill: none; stroke-width: 16; stroke-linecap: butt; transition: stroke-width 0.25s; }
.chart-donut .donut-seg:hover { stroke-width: 20; }
.chart-donut .donut-center-v { font-family: var(--font-mega); font-size: 1.6rem; fill: var(--foreground); text-anchor: middle; }
.chart-donut .donut-center-l { font-family: var(--font-mono); font-size: 8.5px; fill: var(--muted-foreground); letter-spacing: 0.15em; text-transform: uppercase; text-anchor: middle; }
.donut-legend { display: flex; flex-direction: column; gap: 0.4rem; }
.donut-legend-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; }
.donut-legend-row .swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.donut-legend-row .label { color: var(--muted-foreground); flex: 1; text-transform: uppercase; }
.donut-legend-row .v { color: var(--foreground); font-weight: 700; }

/* Progress bars */
.chart-progress { display: flex; flex-direction: column; gap: 0.7rem; }
.cp-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: center; }
.cp-label { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.cp-val { font-family: var(--font-mono); font-size: 10px; color: var(--neon); letter-spacing: 0.12em; }
.cp-track { grid-column: 1 / -1; height: 6px; background: color-mix(in oklab, var(--foreground) 8%, transparent); border-radius: 999px; overflow: hidden; position: relative; }
.cp-fill { height: 100%; border-radius: 999px; background: linear-gradient(to right, var(--cyan), var(--neon)); box-shadow: 0 0 8px color-mix(in oklab, var(--neon) 60%, transparent); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }

/* Heatmap */
.chart-heatmap { display: grid; gap: 4px; }
.heatmap-cell {
  aspect-ratio: 1/1;
  border-radius: 4px;
  background: color-mix(in oklab, var(--neon) calc(var(--intensity, 0) * 1%), color-mix(in oklab, var(--foreground) 6%, transparent));
  position: relative;
}
.heatmap-cell:hover::after {
  content: attr(data-tip);
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--border-strong);
  padding: 0.3rem 0.5rem; border-radius: 6px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  z-index: 5;
}
.heatmap-legend { display: flex; justify-content: space-between; margin-top: 0.5rem; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-foreground); }

/* Gauge / radial */
.chart-gauge { width: 100%; max-width: 180px; height: 110px; margin-inline: auto; display: block; }
.chart-gauge .gauge-bg { fill: none; stroke: color-mix(in oklab, var(--foreground) 8%, transparent); stroke-width: 12; stroke-linecap: round; }
.chart-gauge .gauge-fill { fill: none; stroke: url(#dcGaugeGrad); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.5s cubic-bezier(.2,.8,.2,1); }
.gauge-v { font-family: var(--font-mega); font-size: 2rem; color: var(--neon); text-align: center; line-height: 1; margin-top: -1.5rem; }
.gauge-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-foreground); text-align: center; }

/* Stacked horizontal bar */
.chart-stack { display: flex; height: 28px; border-radius: 6px; overflow: hidden; }
.chart-stack .seg { display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 9.5px; color: var(--background); font-weight: 700; letter-spacing: 0.05em; }
.stack-legend { display: flex; gap: 1rem; margin-top: 0.7rem; flex-wrap: wrap; }
.stack-legend-item { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted-foreground); letter-spacing: 0.12em; text-transform: uppercase; }
.stack-legend-item .swatch { width: 8px; height: 8px; border-radius: 2px; }

/* Footer */
.dash-footer {
  display: none;
  justify-content: space-between; align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted-foreground);
  flex-wrap: wrap; gap: 1rem;
}
body.view-dashboard .dash-footer { display: flex; }
.dash-legend { display: flex; gap: 1rem; align-items: center; }
.dash-legend .lg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 0.3rem; }
.dash-legend .lg-neon { background: var(--neon); }
.dash-legend .lg-cyan { background: var(--cyan); }
.dash-legend .lg-violet { background: var(--violet); }

/* Only show chart grid in dashboard mode */
.dash-charts-grid { display: none; }
body.view-dashboard .dash-charts-grid { display: grid; }


/* =========================================================
   ROUND 38 · DASHBOARD FILTERS + LEGENDS + CONSULTING POLISH
   ========================================================= */

.dash-filters {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 18px -10px rgb(0 0 0 / 25%);
}
body.view-dashboard .dash-filters { display: flex; }

.df-group {
  display: inline-flex; align-items: center; gap: 0.45rem;
  flex-wrap: wrap;
}
.df-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-right: 0.25rem;
}
.df-chip {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--muted-foreground);
  cursor: none;
  transition: all 0.25s;
  letter-spacing: -0.005em;
}
.df-chip:hover { border-color: color-mix(in oklab, var(--neon) 40%, transparent); color: var(--foreground); }
.df-chip.active {
  background: color-mix(in oklab, var(--neon) 16%, transparent);
  color: var(--neon);
  border-color: color-mix(in oklab, var(--neon) 50%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--neon) 30%, transparent),
              0 0 16px -4px color-mix(in oklab, var(--neon) 50%, transparent);
}

.df-status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--cyan) 8%, transparent);
  border: 1px dashed color-mix(in oklab, var(--cyan) 35%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.df-status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Inline chart legend (used inside .dash-card .dc-body) */
.dc-legend {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
}
.dc-legend-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.dc-legend-item .swatch {
  width: 12px; height: 4px;
  border-radius: 2px;
  display: inline-block;
}
.dc-legend-item .swatch.line {
  height: 3px;
  background: var(--neon);
  box-shadow: 0 0 4px var(--neon);
}
.dc-legend-item .swatch.area {
  background: linear-gradient(180deg, color-mix(in oklab, var(--neon) 55%, transparent), color-mix(in oklab, var(--neon) 10%, transparent));
  height: 10px;
  border-radius: 2px;
  border: 1px solid color-mix(in oklab, var(--neon) 30%, transparent);
}
.dc-legend-item .swatch.dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.dc-legend-item .swatch.bar-grad {
  width: 12px; height: 10px;
  background: linear-gradient(180deg, var(--neon), color-mix(in oklab, var(--cyan) 50%, transparent));
  border-radius: 2px;
}

/* Consulting-style title: bolder, with a subtle accent line under each title */
body.view-dashboard .dc-title {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.012em;
}
body.view-dashboard .dc-title::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--neon);
  border-radius: 1px;
  margin-top: 4px;
  box-shadow: 0 0 6px color-mix(in oklab, var(--neon) 50%, transparent);
}
body.view-dashboard .dc-sub {
  font-size: 9.5px;
  letter-spacing: 0.15em;
  color: color-mix(in oklab, var(--muted-foreground) 100%, transparent);
}

/* Refined card hover for dashboard mode (less flashy, more boardroom) */
body.view-dashboard .dash-card:hover {
  box-shadow: 0 14px 30px -10px rgb(0 0 0 / 30%),
              0 0 0 1px color-mix(in oklab, var(--neon) 28%, transparent);
}


/* =========================================================
   ROUND 39 · JOURNEY LEGEND (icons + sentence descriptions)
   ========================================================= */
.journey-legend {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.journey-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: color-mix(in oklab, var(--card) 60%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.journey-legend .jl-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  flex: none;
}
.journey-legend .jl-icon .material-symbols-rounded { font-size: 18px; }
.journey-legend .jl-peak {
  background: color-mix(in oklab, var(--neon) 18%, transparent);
  color: var(--neon);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--neon) 40%, transparent);
}
.journey-legend .jl-flag-cyan {
  background: color-mix(in oklab, var(--cyan) 18%, transparent);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cyan) 40%, transparent);
}
.journey-legend .jl-flag-grey {
  background: color-mix(in oklab, var(--foreground) 8%, transparent);
  color: color-mix(in oklab, var(--foreground) 50%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--foreground) 20%, transparent);
}
.journey-legend .jl-trail {
  background: color-mix(in oklab, var(--violet) 18%, transparent);
  color: var(--violet);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--violet) 40%, transparent);
}
.journey-legend li div { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.journey-legend strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--foreground);
  letter-spacing: -0.005em;
}
.journey-legend span:not(.jl-icon):not(.material-symbols-rounded) {
  font-family: var(--font-display);
  font-size: 0.76rem;
  color: var(--muted-foreground);
  line-height: 1.3;
}


/* =========================================================
   ROUND 40 · DASHBOARD POLISH · larger headings · italic subtitles · KPI icons
   ========================================================= */
body.view-dashboard .dc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;            /* was 0.98rem */
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--foreground);
}
body.view-dashboard .dc-title::after {
  width: 28px; height: 2px;
  margin-top: 6px;
}
body.view-dashboard .dc-sub {
  font-family: var(--font-display);    /* not mono anymore */
  font-style: italic;                  /* italic sentence */
  font-size: 0.92rem;                  /* was 9.5px */
  text-transform: none;                /* sentence case */
  letter-spacing: 0;
  line-height: 1.4;
  color: color-mix(in oklab, var(--foreground) 78%, transparent);  /* brighter */
  margin-top: 4px;
}

/* KPI cell upgrades — bigger label, bigger value, add icon slot */
body.view-dashboard .kpi-cell {
  padding: 1.5rem 1.4rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  position: relative;
}
body.view-dashboard .kpi-cell .kpi-icon {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: color-mix(in oklab, var(--neon) 14%, transparent);
  color: var(--neon);
  border: 1px solid color-mix(in oklab, var(--neon) 28%, transparent);
}
body.view-dashboard .kpi-cell .kpi-icon .material-symbols-rounded { font-size: 20px; }
body.view-dashboard .kpi-cell .kl {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  color: color-mix(in oklab, var(--foreground) 78%, transparent);
  padding-right: 48px;     /* room for icon */
}
body.view-dashboard .kpi-cell .kv {
  font-family: "Archivo Black", sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--neon);
  letter-spacing: -0.03em;
}
body.view-dashboard .kpi-cell .kd {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--muted-foreground);
  font-style: italic;
}

/* Welcome card — replace number grid with descriptive paragraph in dashboard */
body.view-dashboard .dash-welcome-meta { display: none; }
body.view-dashboard .dash-welcome-text .dw-bio {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.55;
  color: color-mix(in oklab, var(--foreground) 88%, transparent);
  margin-top: 0.8rem;
  max-width: 56ch;
}
body.view-dashboard .dash-welcome-text .dw-bio strong { color: var(--neon); font-weight: 700; }

/* Focus-filter scoping — gives Focus chips actual interactivity */
body.view-dashboard.df-output .dash-card.cat-skills,
body.view-dashboard.df-output .dash-card.cat-recognition,
body.view-dashboard.df-skills .dash-card.cat-output,
body.view-dashboard.df-skills .dash-card.cat-recognition,
body.view-dashboard.df-recognition .dash-card.cat-output,
body.view-dashboard.df-recognition .dash-card.cat-skills {
  opacity: 0.32;
  filter: grayscale(0.5);
  pointer-events: none;
  transform: scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}
body.view-dashboard .dash-card {
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease, box-shadow 0.3s;
}


/* ROUND 41 reverted — section-level fly-in caused blur/invisibility issues.
   Reverting to the existing .reveal pattern which has been stable since round 2. */


/* =========================================================
   ROUND 28 · HERO PORTRAIT ECHO STACK
   Inspired by reference: motion-trail of repeated frames
   behind the main portrait card. Cursor-driven · brand-tinted.
   ========================================================= */

/* Echo cards = stacked copies of the portrait, behind the main card */
.hero-portrait-echo {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--neon) 22%, transparent);
  background-image: url('assets/portrait.png');
  background-size: cover;
  background-position: center 18%;
  pointer-events: none;
  will-change: transform, opacity, filter;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1), opacity 0.5s;
  z-index: 1;
}
.hero-portrait-echo::before {
  /* Brand color tint overlay (multiply for vivid layering) */
  content: ""; position: absolute; inset: 0;
  background: var(--echo-tint, color-mix(in oklab, var(--neon) 25%, transparent));
  mix-blend-mode: color;
  opacity: 0.65;
}
.hero-portrait-echo::after {
  /* Subtle scanlines for HUD feel */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg,
    transparent 0px, transparent 3px,
    color-mix(in oklab, var(--background) 35%, transparent) 3px,
    color-mix(in oklab, var(--background) 35%, transparent) 4px);
  mix-blend-mode: overlay;
}

/* Soft mask so the echo card edges match the main portrait silhouette */
.hero-portrait-echo {
  mask-image: radial-gradient(ellipse 92% 96% at 50% 42%, black 68%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 96% at 50% 42%, black 68%, transparent 100%);
}

/* Stagger: each echo offsets right/down progressively + tints differently */
.echo-1 {
  --echo-x: 18;
  --echo-y: 8;
  --echo-tint: oklch(0.92 0.24 130 / 0.55);
  opacity: 0.55;
  z-index: 2;
}
.echo-2 {
  --echo-x: 38;
  --echo-y: 18;
  --echo-tint: oklch(0.85 0.18 220 / 0.5);
  opacity: 0.4;
  z-index: 1;
}
.echo-3 {
  --echo-x: 60;
  --echo-y: 30;
  --echo-tint: oklch(0.65 0.22 295 / 0.5);
  opacity: 0.28;
  z-index: 0;
}
.echo-4 {
  --echo-x: 84;
  --echo-y: 46;
  --echo-tint: oklch(0.55 0.18 320 / 0.55);
  opacity: 0.18;
  z-index: -1;
}

/* Cursor-driven offset: --mx-pct and --my-pct are -1..1 from JS */
/* Default fan-out, modulated by cursor */
.hero-portrait-echo {
  transform:
    translate(
      calc(var(--echo-x, 0) * 1px + var(--mx-pct, 0) * var(--echo-x, 0) * 1.2px),
      calc(var(--echo-y, 0) * 1px + var(--my-pct, 0) * var(--echo-y, 0) * 1.2px)
    )
    rotate(calc(var(--mx-pct, 0) * 1deg));
}

/* When hovering, echoes lift and spread more dramatically */
.hero-portrait:hover .hero-portrait-echo { transition: transform 0.25s ease-out, opacity 0.3s; }
.hero-portrait:hover .echo-1 { opacity: 0.75; }
.hero-portrait:hover .echo-2 { opacity: 0.55; }
.hero-portrait:hover .echo-3 { opacity: 0.40; }
.hero-portrait:hover .echo-4 { opacity: 0.28; }

/* Light theme: tone the echo overlays warmer */
:root[data-theme="light"] .hero-portrait-echo::before { mix-blend-mode: multiply; opacity: 0.35; }
:root[data-theme="light"] .hero-portrait-echo::after  { opacity: 0.4; }

/* Reduced motion: lock echoes in place */
@media (prefers-reduced-motion: reduce) {
  .hero-portrait-echo { transition: none; }
}

/* Hide echoes on small screens (preserve performance + composition) */
@media (max-width: 720px) {
  .hero-portrait-echo { display: none; }
}


/* =========================================================
   ROUND 29 · HERO v4 — DARK · RUNNING NAME · CURSOR-LIGHT · 2 QUOTES
   ========================================================= */

/* Echoes off (we're going clean) */
.hero-portrait-echo { display: none !important; }

/* Hero is dark by default. Ambient + spotlight off until cursor enters. */
.hero-poster { background: var(--background); }
.hero-ambient {
  background:
    radial-gradient(70% 50% at 50% 100%, color-mix(in oklab, var(--background) 92%, var(--neon) 8%) 0%, transparent 70%);
  opacity: 0.4;
}
.hero-spotlight {
  /* Spotlight only lights up when cursor is in the hero (controlled by JS class) */
  opacity: 0;
  background: radial-gradient(circle 420px at var(--mx, 50%) var(--my, 50%),
              color-mix(in oklab, var(--neon) 30%, transparent) 0%,
              color-mix(in oklab, var(--cyan) 12%, transparent) 25%,
              transparent 60%);
  mix-blend-mode: screen;
  transition: opacity 0.7s ease;
}
.hero-poster.cursor-in .hero-spotlight { opacity: 1; }
:root[data-theme="light"] .hero-poster.cursor-in .hero-spotlight {
  mix-blend-mode: multiply;
  background: radial-gradient(circle 420px at var(--mx, 50%) var(--my, 50%),
              color-mix(in oklab, var(--neon) 45%, transparent) 0%, transparent 60%);
}

/* Hide the old mega + old quote blocks (replaced by the new layout) */
.hero-mega { display: none !important; }
.hero-tl, .hero-tr, .hero-bl, .hero-br, .hero-bottom-row { display: none !important; }


/* === MEGA RUNNING MARQUEE (background name in motion) === */
.hero-mega-marquee {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
  padding: 4rem 0;
}
.mega-marquee-band {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.mega-marquee-track {
  display: flex; gap: 4rem;
  animation: mega-marquee 34s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.mega-marquee-track.rev { animation: mega-marquee-rev 42s linear infinite; }
.mega-marquee-track span {
  display: inline-block;
  font-family: var(--font-mega);
  font-weight: 900;
  font-size: clamp(4rem, 13vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  /* dark by default — readable but recessed */
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in oklab, var(--foreground) 18%, transparent);
}
/* Marquee name keeps its default stroke look at all times — no cursor-hover color change */
@keyframes mega-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mega-marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }


/* === 2 KILLER QUOTES (top-left + top-right) === */
.hero-quote {
  position: absolute;
  top: 6rem;
  width: clamp(280px, 26vw, 360px);
  z-index: 5;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.hero-quote-l { left: 1.5rem; }
.hero-quote-r { right: 1.5rem; text-align: right; align-items: flex-end; }
.hq-mark {
  font-family: var(--font-mega);
  font-size: 3.4rem; line-height: 0.55;
  color: var(--neon);
  filter: drop-shadow(0 0 18px color-mix(in oklab, var(--neon) 60%, transparent));
}
.hq-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.45;
  color: var(--foreground);
}
.hq-text strong { color: var(--neon); font-weight: 800; }
.hq-cite {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}


/* === PORTRAIT — gradient card, follows cursor smoothly anywhere in hero === */
.hero-portrait-follow {
  /* Override absolute centering — we drive position via CSS variables */
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translate(var(--px, 0px), var(--py, 0px));
  transition: transform 0.05s linear;  /* JS handles smoothing via rAF */
  will-change: transform;
}
/* Give the portrait card a strong gradient background (so it reads as a card, not floating image) */
.hero-portrait-follow .hero-portrait-stage {
  background:
    radial-gradient(70% 80% at 50% 30%, color-mix(in oklab, var(--neon) 18%, var(--card)) 0%, var(--card) 60%),
    var(--card);
  border-color: color-mix(in oklab, var(--neon) 32%, var(--border-strong));
}
/* Strengthen the glow halo around the card */
.hero-portrait-follow .hero-portrait-glow {
  inset: -30% -36%;
  background:
    radial-gradient(48% 44% at 50% 50%, color-mix(in oklab, var(--neon) 50%, transparent) 0%, transparent 70%),
    radial-gradient(70% 60% at 50% 85%, color-mix(in oklab, var(--cyan) 38%, transparent) 0%, transparent 70%),
    radial-gradient(60% 50% at 50% 15%, color-mix(in oklab, var(--violet) 28%, transparent) 0%, transparent 70%);
  filter: blur(30px);
}

/* Mobile: keep mega marquee subtler, stack quotes below portrait */
@media (max-width: 880px) {
  .hero-quote { position: relative; top: auto; left: auto; right: auto; width: 100%; text-align: left; align-items: flex-start; margin: 1rem 0; }
  .hero-mega-marquee { padding: 2rem 0; }
  .mega-marquee-track span { font-size: clamp(3rem, 14vw, 5rem); }
}


/* =========================================================
   ROUND 30 · HERO v5 — SMOKE CURSOR + GRADIENT RIBBONS + BIGGER QUOTES
   ========================================================= */

/* Bigger, bolder quotes — magazine-cover scale */
.hero-quote { top: 7rem; width: clamp(360px, 34vw, 540px); }
.hq-mark { font-size: 6rem; margin-bottom: -0.5rem; }
.hq-text {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
}
.hq-cite { font-size: 12px; letter-spacing: 0.25em; }

/* Typewriter cursor — blinks at the end of the quote while typing */
.hq-text.is-typing::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 0.95em;
  background: var(--neon);
  margin-left: 5px;
  vertical-align: -0.15em;
  animation: hq-caret 0.7s steps(2) infinite;
  box-shadow: 0 0 14px var(--neon), 0 0 24px color-mix(in oklab, var(--neon) 60%, transparent);
}
@keyframes hq-caret { 50% { opacity: 0; } }

/* Smoke cursor — multiple soft particles released as the cursor moves */
.hero-smoke {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.smoke-puff {
  position: absolute;
  width: 220px; height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in oklab, var(--neon) 28%, transparent) 0%,
    color-mix(in oklab, var(--cyan) 14%, transparent) 35%,
    transparent 70%);
  filter: blur(28px);
  mix-blend-mode: screen;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 1.6s ease-out;
}
.smoke-puff.alive { animation: smoke-rise 2.6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes smoke-rise {
  0%   { opacity: 0.75; transform: translate(var(--sx, 0), var(--sy, 0)) scale(0.4); }
  60%  { opacity: 0.55; transform: translate(var(--sx, 0), calc(var(--sy, 0) - 40px)) scale(1.2); }
  100% { opacity: 0;    transform: translate(var(--sx, 0), calc(var(--sy, 0) - 90px)) scale(1.8); }
}
:root[data-theme="light"] .smoke-puff {
  mix-blend-mode: multiply;
  background: radial-gradient(circle,
    color-mix(in oklab, var(--neon) 40%, transparent) 0%,
    color-mix(in oklab, var(--violet) 20%, transparent) 35%,
    transparent 70%);
}

/* Gradient feather ribbons — periodic horizontal sweeps across the hero */
.hero-ribbons {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.hero-ribbon {
  position: absolute;
  left: -40%; width: 40%;
  height: 14vh;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in oklab, var(--neon) 25%, transparent) 30%,
    color-mix(in oklab, var(--cyan) 30%, transparent) 60%,
    color-mix(in oklab, var(--violet) 22%, transparent) 80%,
    transparent 100%);
  filter: blur(40px);
  mix-blend-mode: screen;
  opacity: 0.7;
  will-change: transform;
}
.ribbon-1 { top: 18%;  animation: ribbon-sweep 18s linear infinite; transform: rotate(-8deg); }
.ribbon-2 { top: 48%;  animation: ribbon-sweep 24s linear infinite 6s; transform: rotate(6deg); height: 22vh; }
.ribbon-3 { top: 72%;  animation: ribbon-sweep 30s linear infinite 12s; transform: rotate(-4deg); }
@keyframes ribbon-sweep {
  0%   { transform: translateX(0) rotate(var(--rot, 0deg)); }
  100% { transform: translateX(350%) rotate(var(--rot, 0deg)); }
}
.ribbon-1 { --rot: -8deg; }
.ribbon-2 { --rot:  6deg; }
.ribbon-3 { --rot: -4deg; }
:root[data-theme="light"] .hero-ribbon { mix-blend-mode: multiply; opacity: 0.35; }


/* =========================================================
   ROUND 31 · SECTION MORPH TRANSITIONS
   ========================================================= */
section {
  position: relative;
  isolation: isolate;
}
/* Soft gradient morph between sections — top edge */
section + section::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--background) 0%, transparent) 0%,
    color-mix(in oklab, var(--neon) 4%, transparent) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, black, transparent);
}
/* Bottom soft morph */
section::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(0deg,
    color-mix(in oklab, var(--cyan) 3%, transparent) 0%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}
/* Don't double-decorate the hero */
.hero-poster::before, .hero-poster::after { display: none !important; }
.kpi-section::before, .kpi-section::after { display: none !important; }
.marquee-section::before, .marquee-section::after { display: none !important; }


/* =========================================================
   ROUND 32 · AVA DISCLAIMER PILL
   ========================================================= */
.ava-disclaimer {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  margin: 0.8rem 1.2rem 0;
  border-radius: 10px;
  background: color-mix(in oklab, var(--cyan) 8%, transparent);
  border: 1px dashed color-mix(in oklab, var(--cyan) 35%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.ava-disclaimer strong { color: var(--cyan); font-weight: 700; }
.ava-disclaimer .material-symbols-rounded { font-size: 16px; color: var(--cyan); flex: none; }


/* =========================================================
   ROUND 33 · TESTIMONIAL SILHOUETTE AVATARS — proper circles
   ========================================================= */
.t-avatar-v2 {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 2px solid color-mix(in oklab, var(--neon) 35%, var(--border-strong));
  background: linear-gradient(135deg, color-mix(in oklab, var(--neon) 18%, var(--card)), var(--card));
  box-shadow: 0 0 14px -2px color-mix(in oklab, var(--neon) 25%, transparent);
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
}
.t-avatar-silhouette { padding: 0; background: transparent; }
.t-avatar-silhouette svg {
  width: 100%; height: 100%; display: block;
  border-radius: 50%;
}


/* =========================================================
   ROUND 34 · CLOSING BIG QUOTE — page outro
   ========================================================= */
.closing-quote-section {
  padding-block: clamp(5rem, 9vw, 8rem);
  position: relative;
  overflow: hidden;
}
.closing-quote-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 30%, color-mix(in oklab, var(--neon) 12%, transparent), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, color-mix(in oklab, var(--cyan) 10%, transparent), transparent 60%);
  pointer-events: none;
}
.closing-quote {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.closing-mark {
  font-family: var(--font-mega);
  font-size: 6rem; line-height: 0.5;
  color: var(--neon);
  display: inline-block;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px color-mix(in oklab, var(--neon) 60%, transparent));
}
.closing-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.closing-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}
.closing-cite {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 60%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  text-align: left;
}
.closing-cite .cc-name {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
.closing-cite .cc-role {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-foreground);
  margin-top: 1px;
}


/* =========================================================
   ROUND 35 · HERO BACKGROUND VIDEO
   - full-bleed, looping, muted
   - vignette darkens edges so marquee + quotes stay readable
   - quotes + portrait hide for the first 5s, fade in after
   - smoke / ribbons / spotlight all still fire OVER the video
   ========================================================= */

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  background: var(--background);
  /* Cinematic darken on the video itself */
  filter: brightness(0.55) saturate(0.85) contrast(1.08);
}

/* Strong border shadow on the video + darker corners */
.hero-video-vignette {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* Heavy corner darken */
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 20%, rgb(0 0 0 / 85%) 100%),
    /* Top + bottom dark bands for marquee legibility */
    linear-gradient(180deg,
      rgb(0 0 0 / 80%) 0%,
      rgb(0 0 0 / 30%) 22%,
      rgb(0 0 0 / 30%) 78%,
      rgb(0 0 0 / 85%) 100%);
}
/* Inset shadow on the hero itself for a framed-video feeling */
.hero-poster {
  box-shadow:
    inset 0 0 120px 30px rgb(0 0 0 / 70%),
    inset 0 0 240px 80px rgb(0 0 0 / 35%);
}

/* PORTRAIT — completely hidden in the hero now */
.hero-poster .hero-portrait,
.hero-poster .hero-portrait-follow { display: none !important; }

/* Tone down ambient since the video already provides background imagery */
.hero-poster .hero-ambient { opacity: 0.25; }

/* Layer the interactive bits ABOVE the video */
.hero-poster .hero-mega-marquee { z-index: 1; }
.hero-poster .hero-smoke,
.hero-poster .hero-ribbons,
.hero-poster .hero-spotlight,
.hero-poster .hero-grain,
.hero-poster .hero-scanlines { z-index: 2; }
.hero-poster .hero-stage      { z-index: 5; }

/* === PRE-REVEAL: quotes hidden until video has played once === */
.hero-poster .hero-quote {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(.2,.8,.2,1),
              transform 0.6s cubic-bezier(.2,.8,.2,1);
}
/* Quote 1 fades in immediately on video-revealed */
.hero-poster.video-revealed .hero-quote-l { opacity: 1; transform: translateY(0); }
/* Quote 2 stays hidden until JS adds q2-ready class (after quote 1 finishes typing) */
.hero-poster.video-revealed.q2-ready .hero-quote-r { opacity: 1; transform: translateY(0); }

/* If video file is missing, show everything immediately */
.hero-poster.video-missing .hero-video,
.hero-poster.video-missing .hero-video-vignette { display: none; }
.hero-poster.video-missing .hero-quote { opacity: 1; transform: translateY(0); transition-delay: 0s !important; }
.hero-poster.video-missing .hero-portrait { opacity: 1; transition-delay: 0s !important; }

/* Marquee dimmed while video plays, brighter after reveal */
.hero-poster .mega-marquee-track span {
  transition: opacity 0.8s ease, -webkit-text-stroke 0.8s, background 0.8s;
  opacity: 0.55;
}
.hero-poster.video-revealed .mega-marquee-track span { opacity: 1; }

/* Reduced-motion: skip the delay, show everything immediately, hide video */
@media (prefers-reduced-motion: reduce) {
  .hero-poster .hero-quote,
  .hero-poster .hero-portrait {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-video, .hero-video-vignette { display: none; }
}


/* =========================================================
   ROUND 36 · SUGGESTION BOX — animated paper sliding out
   ========================================================= */

.suggestion-section {
  padding-block: clamp(5rem, 9vw, 8rem);
  text-align: center;
}

.suggestion-box {
  max-width: 560px;
  margin: 3rem auto 4rem;
  text-align: center;
  position: relative;
}

.sb-stage {
  position: relative;
  height: 620px;
  perspective: 1600px;
  perspective-origin: 50% 80%;
  transform-style: preserve-3d;
}

/* ====== PHYSICAL BOX GRAPHIC (always anchored at bottom) ====== */
.sb-box-graphic {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  width: 280px;
  height: 200px;
  z-index: 4;
  transition: transform 0.3s;
}
/* Pseudo-element: cast shadow on the ground beneath the box */
.sb-box-graphic::after {
  content: "";
  position: absolute;
  bottom: -22px; left: -10%;
  width: 120%; height: 30px;
  background: radial-gradient(50% 100% at 50% 50%,
    rgb(0 0 0 / 55%) 0%,
    rgb(0 0 0 / 20%) 45%,
    transparent 75%);
  filter: blur(8px);
  z-index: -1;
}

.sb-box-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 170px;
  background:
    /* left + right side-shadows for "carved" 3D feel */
    linear-gradient(90deg,
      rgb(0 0 0 / 40%) 0%,
      transparent 12%,
      transparent 88%,
      rgb(0 0 0 / 40%) 100%),
    linear-gradient(180deg,
      var(--card-soft) 0%,
      var(--card) 55%,
      color-mix(in oklab, var(--background) 88%, var(--card)) 100%);
  border: 2px solid color-mix(in oklab, var(--neon) 35%, var(--border-strong));
  border-radius: 0 0 18px 18px;
  box-shadow:
    /* deep ground shadow */
    0 30px 60px -20px rgb(0 0 0 / 75%),
    /* neon glow halo */
    0 0 40px -10px color-mix(in oklab, var(--neon) 35%, transparent),
    /* inner top highlight */
    inset 0 2px 0 oklch(1 0 0 / 0.06),
    /* inner edge ring */
    inset 0 0 0 1px color-mix(in oklab, var(--neon) 18%, transparent),
    /* inner bottom darkening (interior depth) */
    inset 0 -40px 50px -20px rgb(0 0 0 / 55%);
}

.sb-box-lid {
  position: absolute;
  top: 0; left: -12px; right: -12px;
  height: 34px;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--card-soft) 110%, transparent) 0%,
    var(--card) 60%,
    color-mix(in oklab, var(--background) 95%, var(--card)) 100%);
  border: 2px solid color-mix(in oklab, var(--neon) 42%, var(--border-strong));
  border-radius: 14px 14px 4px 4px;
  z-index: 5;
  box-shadow:
    /* lid edge shadow onto body */
    0 6px 14px -3px rgb(0 0 0 / 60%),
    /* highlight on top of lid */
    inset 0 1px 0 oklch(1 0 0 / 0.18),
    inset 0 -2px 0 rgb(0 0 0 / 25%);
}
/* Lid top highlight (a thin sheen across the top edge) */
.sb-box-lid::before {
  content: "";
  position: absolute;
  top: 2px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.3) 50%, transparent);
  border-radius: 2px;
}

.sb-box-slot {
  position: absolute;
  top: 48px; left: 50%;
  transform: translateX(-50%);
  width: 78%; height: 14px;
  background:
    linear-gradient(180deg, oklch(0.02 0 0) 0%, oklch(0.06 0 0) 50%, oklch(0.10 0 0) 100%);
  border-radius: 7px;
  box-shadow:
    inset 0 5px 10px rgb(0 0 0 / 90%),
    inset 0 -1px 2px color-mix(in oklab, var(--neon) 40%, transparent),
    0 1px 0 oklch(1 0 0 / 0.1);
}
/* Tiny neon glint inside the slot — suggests "active" depth */
.sb-box-slot::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: 50%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in oklab, var(--neon) 35%, transparent) 50%,
    transparent);
  filter: blur(1px);
}

.sb-box-label {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--neon);
  background: oklch(0.13 0.005 270);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid color-mix(in oklab, var(--neon) 50%, transparent);
  box-shadow: 0 0 10px color-mix(in oklab, var(--neon) 40%, transparent);
}

/* Subtle floating animation — only when truly idle (no state classes active) */
.suggestion-box .sb-box-graphic {
  animation: sb-box-float 5s ease-in-out infinite;
}
.suggestion-box.is-open .sb-box-graphic,
.suggestion-box.is-submitting .sb-box-graphic,
.suggestion-box.is-folded-in .sb-box-graphic,
.suggestion-box.is-thanks .sb-box-graphic,
.suggestion-box.is-shaking .sb-box-graphic {
  animation: none;
}
@keyframes sb-box-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}

/* Box gives a soft, slow rumble as the note settles inside */
.suggestion-box.is-shaking .sb-box-graphic {
  animation: sb-box-shake 0.9s cubic-bezier(.36,.07,.19,.97);
}
@keyframes sb-box-shake {
  0%, 100% { transform: translateX(-50%); }
  15% { transform: translate(calc(-50% - 3px)) translateY(2px); }
  30% { transform: translate(calc(-50% + 3px)) translateY(-1px); }
  45% { transform: translate(calc(-50% - 2px)) translateY(1px); }
  60% { transform: translate(calc(-50% + 2px)); }
  80% { transform: translate(calc(-50% - 1px)); }
}

/* ====== PAPER · SIMPLIFIED · always clickable when open ====== */
.sb-paper {
  position: absolute;
  bottom: 240px;          /* well above the box top */
  left: 50%;
  width: min(440px, 92%);
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, oklch(0.18 0.02 270 / 0.02) 22px 23px),
    linear-gradient(180deg, oklch(0.97 0.013 88), oklch(0.93 0.018 80));
  color: oklch(0.18 0.02 270);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.4rem;
  text-align: left;
  box-shadow:
    0 6px 14px -3px rgb(0 0 0 / 35%),
    0 30px 60px -12px rgb(0 0 0 / 55%),
    0 0 0 1px color-mix(in oklab, var(--neon) 30%, transparent),
    0 0 40px -5px color-mix(in oklab, var(--neon) 30%, transparent),
    inset 0 1px 0 oklch(1 0 0 / 0.6);
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  z-index: 5;
  /* CLOSED: dropped down into the box area, scaled small, invisible */
  transform: translate(-50%, 80%) rotateX(70deg) scale(0.4);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 1.3s cubic-bezier(.55,.08,.55,.95),
    opacity 1.0s ease-in;
}

/* Subtle paper crease, visible when open */
.sb-paper::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.18 0.02 270 / 0.1) 50%, transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease 0.5s;
}
.suggestion-box.is-open .sb-paper::after,
.suggestion-box.is-thanks .sb-paper::after { opacity: 1; }

/* OPEN / THANKS · paper sits upright above the box, fully interactive */
.suggestion-box.is-open .sb-paper,
.suggestion-box.is-thanks .sb-paper {
  opacity: 1;
  transform: translate(-50%, 0) rotateX(0deg) scale(1);
  pointer-events: auto;
  transition:
    transform 1.4s cubic-bezier(.34,1.1,.4,1),
    opacity 0.8s cubic-bezier(.4,0,.2,1);
}
.suggestion-box.is-thanks .sb-paper { pointer-events: none; }

/* SUBMITTING · paper tilts forward, scales down slightly */
.suggestion-box.is-submitting .sb-paper {
  opacity: 0.85;
  transform: translate(-50%, 30%) rotateX(45deg) scale(0.75);
  pointer-events: none;
  transition:
    transform 1.2s cubic-bezier(.65,.04,.36,1),
    opacity 1.1s ease-in;
}

/* FOLDED IN · paper drops into the slot, fades away */
.suggestion-box.is-folded-in .sb-paper {
  opacity: 0;
  transform: translate(-50%, 80%) rotateX(80deg) scale(0.35);
  pointer-events: none;
  transition:
    transform 1.0s cubic-bezier(.55,.085,.68,.53),
    opacity 0.9s ease-in;
}

/* Paper texture — top dashed line + decorative dots */
.sb-paper-strip {
  display: flex; align-items: center; gap: 0.45rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px dashed oklch(0.18 0.02 270 / 0.22);
}
.sb-strip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.18 0.02 270 / 0.28);
}
.sb-strip-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: oklch(0.18 0.02 270 / 0.55);
}

/* Form fields */
.sb-field {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: oklch(1 0 0);
  border: 1px solid oklch(0.18 0.02 270 / 0.15);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: oklch(0.18 0.02 270);
  margin-bottom: 0.55rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sb-field::placeholder { color: oklch(0.18 0.02 270 / 0.4); }
.sb-field:focus {
  outline: none;
  border-color: color-mix(in oklab, var(--neon) 70%, transparent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--neon) 22%, transparent);
}
.sb-field-msg { resize: vertical; min-height: 92px; line-height: 1.5; }

/* Submit button — defensive pointer-events so clicks never get lost in the 3D paper */
.sb-submit-btn {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  background: var(--neon);
  color: oklch(0.13 0.005 270);
  border-radius: 8px;
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  cursor: none;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.suggestion-box.is-open .sb-form,
.suggestion-box.is-open .sb-field,
.suggestion-box.is-open .sb-submit-btn { pointer-events: auto !important; }
.sb-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px color-mix(in oklab, var(--neon) 60%, transparent);
}
.sb-submit-btn .material-symbols-rounded { font-size: 18px; }

/* Thanks state */
.sb-thanks {
  display: none;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.suggestion-box.is-thanks .sb-form   { display: none; }
.suggestion-box.is-thanks .sb-thanks { display: flex; }
.sb-thanks-icon {
  font-size: 56px !important;
  color: oklch(0.65 0.18 145);
  filter: drop-shadow(0 0 12px oklch(0.65 0.18 145 / 0.5));
  animation: sb-pop 0.55s cubic-bezier(.5,1.6,.4,.9);
}
@keyframes sb-pop {
  0%   { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
.sb-thanks-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.sb-thanks-msg {
  color: oklch(0.18 0.02 270 / 0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* "Open the box" button (entry point) */
.sb-open-btn {
  position: relative;
  margin-top: 1rem;
  padding: 0.85rem 1.4rem;
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--neon) 40%, var(--border-strong));
  border-radius: 999px;
  color: var(--foreground);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
  cursor: none;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.sb-open-btn:hover {
  transform: translateY(-2px);
  border-color: var(--neon);
  box-shadow: 0 0 24px color-mix(in oklab, var(--neon) 45%, transparent);
}
.sb-open-btn .material-symbols-rounded {
  font-size: 18px;
  color: var(--neon);
  animation: sb-arrow-bob 2s ease-in-out infinite;
}
@keyframes sb-arrow-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.suggestion-box.is-open .sb-open-btn { opacity: 0; pointer-events: none; }

/* Mobile */
@media (max-width: 640px) {
  .sb-stage { height: 560px; perspective: 1200px; }
  .sb-paper { width: calc(100% - 2rem); padding: 1.2rem 1.2rem 1.1rem; bottom: 95px; }
  .sb-box-graphic { width: 240px; height: 175px; }
  .sb-box-body { height: 148px; }
  .sb-box-slot { top: 42px; }
  .suggestion-box.is-open .sb-paper,
  .suggestion-box.is-thanks .sb-paper {
    transform: translateX(-50%) translateY(-52%) rotateX(0deg) rotateY(2deg) scale(0.96);
  }
}


/* =========================================================
   ROUND 37 · BACKGROUND MUSIC TOGGLE
   ========================================================= */

#bgMusic { display: none; }

.ctrl-music { position: relative; }

/* When playing — icon turns neon */
.ctrl-music.playing { color: var(--neon); border-color: color-mix(in oklab, var(--neon) 50%, transparent); }
.ctrl-music.playing #musicIcon { color: var(--neon); }

/* Pulsing ring while music is on (3 staggered rings rippling out) */
.ctrl-music-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.ctrl-music.playing .ctrl-music-pulse {
  opacity: 1;
  animation: ctrl-music-ring 2.4s ease-out infinite;
  border: 1px solid color-mix(in oklab, var(--neon) 60%, transparent);
}
.ctrl-music.playing .ctrl-music-pulse::before,
.ctrl-music.playing .ctrl-music-pulse::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--neon) 50%, transparent);
  animation: ctrl-music-ring 2.4s ease-out infinite;
}
.ctrl-music.playing .ctrl-music-pulse::before { animation-delay: 0.8s; }
.ctrl-music.playing .ctrl-music-pulse::after  { animation-delay: 1.6s; }
@keyframes ctrl-music-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Subtle equalizer feel — tooltip changes per state via JS */

/* Floating "click anywhere" hint — appears if browser blocks autoplay */
.music-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  padding: 0.7rem 1.2rem;
  background: color-mix(in oklab, var(--card) 85%, transparent);
  border: 1px solid color-mix(in oklab, var(--neon) 55%, transparent);
  border-radius: 999px;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.6rem;
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 12px 32px -10px rgb(0 0 0 / 60%),
    0 0 32px -6px color-mix(in oklab, var(--neon) 55%, transparent);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(.22,.95,.34,1), opacity 0.5s ease;
  animation: music-hint-pulse 2.2s ease-in-out infinite 0.8s;
}
.music-hint.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.music-hint .material-symbols-rounded { color: var(--neon); font-size: 18px; }
@keyframes music-hint-pulse {
  0%, 100% { box-shadow: 0 12px 32px -10px rgb(0 0 0 / 60%), 0 0 32px -6px color-mix(in oklab, var(--neon) 55%, transparent); }
  50%      { box-shadow: 0 12px 32px -10px rgb(0 0 0 / 60%), 0 0 48px -2px color-mix(in oklab, var(--neon) 80%, transparent); }
}
@media (max-width: 560px) {
  .music-hint { font-size: 10px; padding: 0.6rem 1rem; }
}


/* =========================================================
   ROUND 42 · MOBILE RESPONSIVE — easy navigation, easy flow, quick info
   Targets: phones (≤640px) and small tablets (641-880px).
   Desktop layout (>880px) untouched.
   ========================================================= */

/* === HAMBURGER BUTTON — hidden by default (desktop), shown on mobile only === */
.nav-burger {
  display: none !important;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--neon) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--neon) 40%, transparent);
  color: var(--neon);
  cursor: none;
  place-items: center;
}
.nav-burger:hover { background: color-mix(in oklab, var(--neon) 25%, transparent); }
.nav-burger .material-symbols-rounded { font-size: 22px; }

/* === MOBILE NAV SHEET — COMPLETELY HIDDEN on desktop ===
   No display, no layout, no overlap with desktop nav. */
.nav-sheet {
  display: none !important;
}
.nav-sheet.open { /* no effect on desktop — kept hidden */ }

.nav-sheet-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--card-soft);
  border: 1px solid var(--border-strong);
  color: var(--foreground);
  display: grid; place-items: center;
  cursor: none;
}
.nav-sheet-close .material-symbols-rounded { font-size: 22px; }

.nav-sheet-brand {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.nav-sheet-brand .brand-mark { width: 36px; height: 36px; }
.nav-sheet-brand .brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.nav-sheet-brand .brand-name span { color: var(--muted-foreground); font-weight: 400; }

.nav-sheet-links {
  display: flex; flex-direction: column; gap: 0.3rem;
}
.nav-sheet-links a {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--foreground);
  transition: all 0.25s;
}
.nav-sheet-links a:hover,
.nav-sheet-links a:active {
  background: color-mix(in oklab, var(--neon) 12%, transparent);
  color: var(--neon);
  transform: translateX(4px);
}
.nav-sheet-links a .material-symbols-rounded {
  font-size: 22px;
  color: var(--neon);
  width: 26px;
  text-align: center;
}
.nav-sheet-links a.nav-sheet-cta {
  margin-top: 0.8rem;
  background: var(--neon);
  color: var(--background);
  justify-content: center;
}
.nav-sheet-links a.nav-sheet-cta:hover {
  background: var(--neon);
  color: var(--background);
  transform: none;
  box-shadow: 0 8px 20px -4px color-mix(in oklab, var(--neon) 60%, transparent);
}

/* Body lock when sheet is open */
body.sheet-open { overflow: hidden; }
body.sheet-open::after {
  content: "";
  position: fixed; inset: 0;
  background: rgb(0 0 0 / 50%);
  backdrop-filter: blur(4px);
  z-index: 150;
  animation: sheet-overlay-in 0.35s ease forwards;
}
@keyframes sheet-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* === MOBILE: ≤880px (tablets + phones) === */
@media (max-width: 880px) {
  /* NAV */
  .nav-wrap { top: 0.8rem; width: 96vw; }
  .nav-pill { padding: 0.5rem 0.6rem 0.5rem 0.5rem; }
  .nav-links { display: none !important; }
  .nav-cta-desktop { display: none !important; }
  .nav-burger { display: grid !important; }

  /* === MOBILE NAV SHEET — turns ON here, slides in from right when .open === */
  .nav-sheet {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: auto;
    width: min(86vw, 360px);
    background: color-mix(in oklab, var(--card) 96%, transparent);
    backdrop-filter: blur(24px) saturate(160%);
    border-left: 1px solid color-mix(in oklab, var(--neon) 22%, var(--border-strong));
    box-shadow: -30px 0 60px -20px rgb(0 0 0 / 70%);
    z-index: 200;
    padding: 1.5rem 1.4rem 2rem;
    transform: translateX(105%);
    transition: transform 0.45s cubic-bezier(.2,.9,.3,1);
    overflow-y: auto;
  }
  .nav-sheet.open { transform: translateX(0); }

  /* CONTROL RAIL — move to bottom (thumb-friendly) and shrink */
  .ctrl-rail {
    left: 50%;
    top: auto;
    bottom: 0.9rem;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 0.4rem;
    gap: 0.4rem;
    border-radius: 999px;
  }
  .ctrl-divider {
    width: 1px;
    height: 24px;
    margin: 0 0.2rem;
    background: linear-gradient(to bottom, transparent, var(--border-strong), transparent);
  }
  .ctrl-btn { width: 38px; height: 38px; }
  .ctrl-btn .material-symbols-rounded { font-size: 20px; }
  .ctrl-btn::after { display: none; } /* hide tooltips on mobile */

  /* GENERAL SECTION POLISH — tighter padding, single column, larger touch targets */
  section { padding-block: 4rem; }
  .container { padding-inline: 1.2rem; }
  h2 { font-size: clamp(1.7rem, 6.5vw, 2.2rem); line-height: 1.15; }
  h3 { font-size: clamp(1.15rem, 5vw, 1.4rem); }
  .section-head { text-align: center; margin-bottom: 2rem; }

  /* HERO — pull together for small screens */
  .hero-mega-marquee { display: none; }
  .mega-marquee-track span { font-size: clamp(3rem, 18vw, 5.5rem); }
  .hero-quote {
    position: relative !important;
    top: auto !important; left: auto !important; right: auto !important;
    width: 100% !important;
    text-align: left !important; align-items: flex-start !important;
    margin: 0 0 1rem 0 !important;
  }
  .hq-mark { font-size: 4rem; }
  .hq-text { font-size: clamp(1.1rem, 4.5vw, 1.4rem); }
  .hero-stage {
    height: auto;
    min-height: auto;
    padding: 4rem 1rem 5rem;
    display: flex; flex-direction: column;
    gap: 1rem;
  }

  /* ABOUT — stack portrait on top */
  .about-v2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-v2-portrait { max-width: 320px; margin-inline: auto; }
  .nutshell-grid { grid-template-columns: 1fr; }

  /* STATS — 2 columns */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  /* JOURNEY — full width, scrollable horizontally if needed */
  .journey-v3-wrap { overflow-x: auto; padding: 0.5rem 0; }
  .journey-v3-svg { min-width: 720px; }
  .journey-legend {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .journey-legend li { padding: 0.6rem 0.8rem; }

  /* WORK BUNDLES — single column */
  .bundle-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .bundle-card { min-height: 280px; }
  .folder-grid { grid-template-columns: 1fr; }

  /* SKILLS GALAXY — scale down significantly, height auto-adjusts */
  .galaxy-wrap { height: 420px; overflow: hidden; }
  .galaxy { transform: scale(0.55); }
  .galaxy .node { font-size: 0.74rem; padding: 0.4rem 0.7rem; }
  .core { width: 90px; height: 90px; font-size: 1.1rem; }

  /* CERTIFICATIONS — 2 columns */
  .certs-v2-grid { grid-template-columns: repeat(2, 1fr); height: 520px; }

  /* AVA — stack vertically, full width */
  .ava-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .chat-panel { height: 480px; }
  .ava-features { gap: 0.5rem; }

  /* TESTIMONIALS — smaller cards */
  .t-card-v2 { flex: 0 0 280px; padding: 1.4rem 1.2rem 1.2rem; }
  .t-quote-v2 { font-size: 0.9rem; }

  /* BLOG — single column */
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured { grid-column: span 1; min-height: 320px; }

  /* CONTACT — full width form */
  .cta-wrap { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 2rem; }
  .row-2 { grid-template-columns: 1fr; }

  /* SUGGESTION BOX — already mobile-tuned in earlier round, just polish */
  .suggestion-box { margin: 2rem auto 5rem; }

  /* CLOSING QUOTE — comfortable mobile size */
  .closing-text { font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.25; }
  .closing-mark { font-size: 4rem; margin-bottom: 1rem; }

  /* FOOTER — stack */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  /* DASHBOARD MODE — single column for charts */
  body.view-dashboard .dash-charts-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  body.view-dashboard .kpi-rail { grid-template-columns: repeat(2, 1fr); }
  body.view-dashboard .dash-welcome { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
  body.view-dashboard .dash-welcome-photo { max-width: 200px; }
  body.view-dashboard .dash-filters { padding: 0.8rem; gap: 0.6rem; }
  body.view-dashboard .df-status { display: none; }

  /* FLOATING CONTACT BUTTON — move above ctrl rail */
  .float-contact { bottom: 5rem; right: 1rem; width: 50px; height: 50px; }
  .float-contact svg { width: 22px; height: 22px; }

  /* SCROLL HINT — hide on mobile (touch users scroll naturally) */
  .scroll-hint { display: none; }

  /* CUSTOM CURSOR — hidden on touch already, plus restore native */
  body { cursor: auto; }
  button, a { cursor: pointer !important; }
}

/* === SMALL PHONES: ≤480px === */
@media (max-width: 480px) {
  /* Hero — minimal */
  .hero-stage { padding: 3rem 0.8rem 4rem; }
  .hero-quote { width: 100% !important; }
  .hq-text { font-size: 1.05rem; }

  /* Stats — keep 2 cols but tighter */
  .stats-grid { gap: 0.5rem; }
  .stat-card { padding: 0.85rem 0.7rem; }
  .stat-value { font-size: 1.7rem; }
  .stat-label { font-size: 0.78rem; }

  /* Skills galaxy — even smaller */
  .galaxy-wrap { height: 360px; }
  .galaxy { transform: scale(0.45); }

  /* Certs — single column */
  .certs-v2-grid { grid-template-columns: 1fr; height: 460px; }

  /* Testimonials — tighter */
  .t-card-v2 { flex: 0 0 260px; padding: 1.2rem 1rem 1rem; }

  /* Section headings tighter */
  section { padding-block: 3rem; }
  h2 { font-size: 1.6rem; }

  /* Control rail — even smaller */
  .ctrl-rail { padding: 0.3rem; gap: 0.3rem; }
  .ctrl-btn { width: 34px; height: 34px; }
}

/* === LANDSCAPE PHONES (short height) === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-stage { padding: 3rem 1rem; }
  .galaxy-wrap { height: 280px; }
  .galaxy { transform: scale(0.4); }
}


/* =========================================================
   ROUND 43 · MOBILE-SPECIFIC REPLACEMENTS
   (Journey, Galaxy, Dashboard, Deck — purpose-built for mobile)
   ========================================================= */

/* Mobile alternatives are HIDDEN on desktop by default */
.journey-mobile { display: none; }
.skills-mobile { display: none; }

/* === MOBILE ≤880px: swap visualisations === */
@media (max-width: 880px) {

  /* ---------- 1. JOURNEY · vertical timeline replaces the wide SVG ---------- */
  .journey-v3-wrap { display: none; }   /* hide the wide mountain SVG */
  .journey-legend  { display: none; }   /* hide the desktop legend too */

  .journey-mobile {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    position: relative;
    counter-reset: jm-step;
  }
  /* Vertical neon line connecting all steps */
  .journey-mobile::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 12px; bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg,
      var(--neon) 0%,
      var(--cyan) 70%,
      color-mix(in oklab, var(--foreground) 30%, transparent) 100%);
    border-radius: 2px;
    box-shadow: 0 0 12px color-mix(in oklab, var(--neon) 50%, transparent);
  }
  .jm-step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    padding: 0.6rem 0;
    align-items: start;
  }
  .jm-year {
    grid-column: 1;
    font-family: "Archivo Black", sans-serif;
    font-size: 0.95rem;
    color: var(--neon);
    line-height: 1.4;
    text-align: right;
    padding-right: 38px;
    position: relative;
  }
  /* Milestone dot on the line */
  .jm-year::after {
    content: "";
    position: absolute;
    right: 14px; top: 6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--neon);
    border: 3px solid var(--background);
    box-shadow: 0 0 12px var(--neon);
    z-index: 1;
  }
  .jm-step.jm-future .jm-year { color: color-mix(in oklab, var(--foreground) 40%, transparent); }
  .jm-step.jm-future .jm-year::after {
    background: var(--background);
    border-color: color-mix(in oklab, var(--foreground) 50%, transparent);
    box-shadow: none;
  }
  .jm-content {
    grid-column: 2;
    display: flex; gap: 0.7rem;
    align-items: flex-start;
    background: color-mix(in oklab, var(--card) 60%, transparent);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 0.9rem 1rem;
  }
  .jm-step.jm-future .jm-content {
    background: color-mix(in oklab, var(--card) 30%, transparent);
    border-style: dashed;
    opacity: 0.85;
  }
  .jm-content .material-symbols-rounded {
    font-size: 22px;
    color: var(--neon);
    flex: none;
    margin-top: 2px;
  }
  .jm-step.jm-future .jm-content .material-symbols-rounded {
    color: color-mix(in oklab, var(--foreground) 50%, transparent);
  }
  .jm-content strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--foreground);
    margin-bottom: 3px;
  }
  .jm-content span:not(.material-symbols-rounded) {
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: var(--muted-foreground);
    line-height: 1.4;
  }

  /* ---------- 2. SKILLS · chip groups replace the galaxy ---------- */
  .galaxy-wrap { display: none; }

  .skills-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
  }
  .sm-group {
    padding: 1.1rem 1rem;
    border-radius: 16px;
    background: color-mix(in oklab, var(--card) 70%, transparent);
    border: 1px solid var(--border-strong);
  }
  .sm-group.sm-core  { border-color: color-mix(in oklab, var(--neon) 35%, transparent); box-shadow: 0 0 24px -10px color-mix(in oklab, var(--neon) 40%, transparent); }
  .sm-group.sm-bi    { border-color: color-mix(in oklab, var(--cyan) 35%, transparent); box-shadow: 0 0 24px -10px color-mix(in oklab, var(--cyan) 40%, transparent); }
  .sm-group.sm-auto  { border-color: color-mix(in oklab, var(--violet) 35%, transparent); box-shadow: 0 0 24px -10px color-mix(in oklab, var(--violet) 40%, transparent); }
  .sm-label {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted-foreground);
    margin-bottom: 0.8rem;
  }
  .sm-group.sm-core  .sm-label { color: var(--neon); }
  .sm-group.sm-bi    .sm-label { color: var(--cyan); }
  .sm-group.sm-auto  .sm-label { color: var(--violet); }
  .sm-label .material-symbols-rounded { font-size: 16px; }
  .sm-chips {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
  }
  .sm-chips span {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--card-soft);
    border: 1px solid var(--border);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--foreground);
  }

  /* ---------- 3. DASHBOARD · mobile layout ---------- */
  body.view-dashboard .container { padding-inline: 0.8rem; }

  /* Welcome card stacks photo on top, smaller */
  body.view-dashboard .dash-welcome {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 18px;
  }
  body.view-dashboard .dash-welcome-photo {
    max-width: 160px;
    margin: 0 auto;
    order: -1;
  }
  body.view-dashboard .dash-welcome-text h2 { font-size: 1.5rem; text-align: center; }
  body.view-dashboard .dash-welcome-text .eyebrow { justify-content: center; display: flex; }
  body.view-dashboard .dash-welcome-text .dw-bio { font-size: 0.92rem; text-align: center; margin-inline: auto; }

  /* Filter bar — horizontal scrollable chips */
  body.view-dashboard .dash-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0.9rem;
    border-radius: 14px;
  }
  body.view-dashboard .df-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  body.view-dashboard .df-group::-webkit-scrollbar { display: none; }
  body.view-dashboard .df-chip { flex: 0 0 auto; font-size: 0.74rem; padding: 0.38rem 0.7rem; }
  body.view-dashboard .df-status { display: none; }

  /* KPI rail — 2 columns, denser */
  body.view-dashboard .kpi-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.8rem;
  }
  body.view-dashboard .kpi-cell { padding: 1rem 0.9rem 0.9rem; border-radius: 16px; }
  body.view-dashboard .kpi-cell .kpi-icon {
    width: 30px; height: 30px;
    top: 0.8rem; right: 0.8rem;
  }
  body.view-dashboard .kpi-cell .kpi-icon .material-symbols-rounded { font-size: 17px; }
  body.view-dashboard .kpi-cell .kl { font-size: 0.78rem; padding-right: 36px; }
  body.view-dashboard .kpi-cell .kv { font-size: 1.9rem; }
  body.view-dashboard .kpi-cell .kd { font-size: 0.72rem; }
  body.view-dashboard .kpi-spark { height: 24px; }

  /* Charts: single column, height capped */
  body.view-dashboard .dash-charts-grid {
    grid-template-columns: 1fr !important;
    gap: 0.7rem;
  }
  body.view-dashboard .dc-w3,
  body.view-dashboard .dc-w4,
  body.view-dashboard .dc-w6,
  body.view-dashboard .dc-w8,
  body.view-dashboard .dc-w9,
  body.view-dashboard .dc-w12 { grid-column: span 1 !important; }
  body.view-dashboard .dash-card { padding: 1rem 1rem 0.9rem; border-radius: 16px; }
  body.view-dashboard .dc-title { font-size: 1rem; }
  body.view-dashboard .dc-sub   { font-size: 0.8rem; }
  body.view-dashboard .chart-line, body.view-dashboard .chart-bar { height: 150px; }
  body.view-dashboard .chart-donut { width: 110px; height: 110px; }
  body.view-dashboard .chart-donut-wrap { grid-template-columns: 110px 1fr; }
  body.view-dashboard .chart-gauge { height: 90px; }
  body.view-dashboard .gauge-v { font-size: 1.6rem; }
  body.view-dashboard .dc-meta { gap: 0.8rem; }
  body.view-dashboard .dc-meta .v { font-size: 1.1rem; }

  /* Dashboard footer status legend */
  body.view-dashboard .dash-footer { flex-direction: column; align-items: stretch; gap: 0.6rem; text-align: center; }
}

/* =========================================================
   ROUND 44 · DECK · mobile slides
   ========================================================= */
@media (max-width: 880px) {
  .deck-header {
    padding: 0.7rem 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .deck-back span { display: none; }
  .deck-brand .brand-name { display: none; }
  .deck-counter { font-size: 0.8rem; }

  /* Side dot nav → hidden on mobile */
  .deck-nav { display: none; }

  /* Slide layout */
  .slide {
    padding: 5rem 1rem 5.5rem;
    min-height: 100vh;
    align-items: flex-start;
  }
  .slide-content {
    width: 100%;
    gap: 1rem;
  }
  .slide-h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.1; }
  .slide-h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); line-height: 1.15; }
  .slide-sub { font-size: 0.95rem; }
  .slide-meta { gap: 0.7rem; }
  .slide-meta span { font-size: 9px; }

  /* Title slide mega background */
  .slide-bg-mega {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  /* All slide grids → 1 column */
  .who-grid,
  .num-grid,
  .stack-grid,
  .next-grid,
  .motto-pillars,
  .win-grid {
    grid-template-columns: 1fr !important;
    gap: 0.8rem;
  }
  .who-card, .num-tile, .stack-col, .win-quote, .next-card, .pillar { padding: 1rem; }
  .num-tile .nv { font-size: 2rem; }
  .who-card .material-symbols-rounded { font-size: 24px; }
  .next-card .material-symbols-rounded.big { font-size: 36px; padding: 8px; }

  /* SmartArt flow → vertical stack */
  .smart-flow { gap: 0.7rem; }
  .sf-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .sf-arrow { transform: rotate(90deg); padding: 0.4rem 0; }
  .sf-arrow .material-symbols-rounded { font-size: 22px; }
  .sf-node { padding: 0.9rem; }
  .sf-node .material-symbols-rounded { font-size: 24px; padding: 6px; }
  .sf-node span:not(.material-symbols-rounded) { font-size: 0.92rem; }

  /* Timeline flow → mini chips, horizontally scrollable */
  .timeline-flow {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .timeline-flow::-webkit-scrollbar { display: none; }
  .tf-step {
    flex: 0 0 auto;
    min-width: 110px;
    padding: 0.6rem 0.7rem;
  }
  .tf-yr { font-size: 1.05rem; }
  .tf-t { font-size: 8.5px; }
  .tf-line { width: 18px; min-width: 18px; }

  /* Mountain SVG on journey slide — compact */
  .deck-mountain-svg { max-height: 140px; }

  /* Motto quote */
  .big-quote .qmark { font-size: 5rem; }
  .big-quote p { font-size: clamp(1.2rem, 5vw, 1.7rem); }

  /* CTA actions vertical */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .cta-channels { flex-direction: column; gap: 0.8rem; }

  /* Arrow buttons in better position */
  .deck-arrows {
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 0.6rem;
  }
  .deck-arrow { width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  /* Extra tightening for small phones */
  .jm-step { grid-template-columns: 50px 1fr; gap: 0.7rem; }
  .jm-year { font-size: 0.85rem; padding-right: 32px; }
  .jm-year::after { right: 10px; width: 12px; height: 12px; }
  .journey-mobile::before { left: 22px; }
  .jm-content { padding: 0.7rem 0.85rem; }
  .jm-content strong { font-size: 0.92rem; }
  .jm-content span:not(.material-symbols-rounded) { font-size: 0.78rem; }

  .sm-chips span { font-size: 0.76rem; padding: 0.35rem 0.7rem; }

  body.view-dashboard .kpi-rail { grid-template-columns: 1fr; }
  body.view-dashboard .chart-line, body.view-dashboard .chart-bar { height: 130px; }
}

/* =========================================================
   FLOATING VOTE WIDGET — appears after 2s, dismisses on vote
   ========================================================= */
/* =========================================================
   FLOATING VOTE WIDGET — strict theme tokens only
   ========================================================= */
#amanVote {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 95;
  font-family: 'Inter', -apple-system, sans-serif;
  transition: all 0.4s cubic-bezier(.2,.9,.3,1);
}

#amanVoteExpanded {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  background: color-mix(in oklab, var(--card) 96%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid color-mix(in oklab, var(--neon) 35%, transparent);
  border-radius: 999px;
  box-shadow: 0 18px 40px -12px color-mix(in oklab, var(--background) 60%, transparent);
}

.amanVoteText {
  font-size: 0.82rem;
  color: var(--foreground);
  font-weight: 500;
  padding-right: 0.2rem;
  white-space: nowrap;
}

.amanVoteBtn {
  height: 36px;
  min-width: 60px;
  padding: 0 12px;
  border-radius: 18px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 0.2s;
}
.amanVoteBtn .material-symbols-rounded { font-size: 18px; }
.amanVoteBtn span:last-child {
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 14px;
  text-align: left;
}

.amanVoteBtn.up {
  border: 1px solid color-mix(in oklab, var(--neon) 35%, transparent);
  background: color-mix(in oklab, var(--neon) 8%, transparent);
  color: var(--neon);
}
.amanVoteBtn.up:hover {
  background: color-mix(in oklab, var(--neon) 22%, transparent);
  border-color: var(--neon);
  transform: scale(1.06);
}

.amanVoteBtn.down {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
}
.amanVoteBtn.down:hover {
  background: color-mix(in oklab, var(--card-soft) 80%, transparent);
  border-color: var(--border-strong);
  color: var(--foreground);
}

#amanVoteClose {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.55;
  margin-left: 0.2rem;
  font-family: inherit;
  transition: all 0.2s;
}
#amanVoteClose:hover { opacity: 1; color: var(--foreground); }
#amanVoteClose .material-symbols-rounded { font-size: 16px; }

/* Collapsed circle (after voting) */
#amanVoteCircle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--card) 96%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid color-mix(in oklab, var(--neon) 40%, transparent);
  color: var(--neon);
  cursor: pointer;
  place-items: center;
  box-shadow: 0 12px 30px -8px color-mix(in oklab, var(--background) 60%, transparent);
  transition: all 0.3s cubic-bezier(.2,.9,.3,1);
  font-family: inherit;
}
#amanVoteCircle.shown { display: grid; }
#amanVoteCircle:hover {
  border-color: var(--neon);
  box-shadow: var(--shadow-neon);
  transform: scale(1.06);
}
#amanVoteCircle .material-symbols-rounded { font-size: 22px; }

/* Thank-you bubble (popup from the circle) */
#amanVoteThanks {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  padding: 0.7rem 1.2rem;
  background: color-mix(in oklab, var(--card) 96%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid color-mix(in oklab, var(--neon) 40%, transparent);
  border-radius: 999px;
  color: var(--neon);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 18px 40px -12px color-mix(in oklab, var(--background) 60%, transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(.2,.9,.3,1);
  pointer-events: none;
}
#amanVoteThanks.shown {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 880px) {
  #amanVote { bottom: 5.2rem; right: 0.8rem; }
}


/* =========================================================
   ASK AVA — Floating AI assistant widget
   Alby-style with avatar popping out of pill
   ========================================================= */

#askAva {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9998;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Collapsed pill — avatar pops out the top-left */
#askAvaPill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.4rem 0.65rem 5.5rem;
  background: color-mix(in oklab, var(--card) 96%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid color-mix(in oklab, var(--neon) 35%, transparent);
  border-radius: 999px;
  color: var(--foreground);
  cursor: pointer;
  box-shadow: 0 12px 30px -8px oklch(0 0 0 / 0.45);
  transition: all 0.3s cubic-bezier(.2,.9,.3,1);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  font-family: inherit;
  position: relative;
  overflow: visible;
  min-height: 56px;
}
#askAvaPill.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#askAvaPill:hover {
  transform: scale(1.04) translateY(0);
  border-color: var(--neon);
  box-shadow: var(--shadow-neon);
}
#askAvaPill:hover #askAvaAvatar {
  transform: translateY(-4px) scale(1.05);
}

/* The avatar — breaks out above the pill */
#askAvaAvatar {
  position: absolute;
  left: -8px;
  bottom: -10px;
  width: 92px;
  height: auto;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible;
  display: block;
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1);
  line-height: 0;
}
#askAvaAvatar img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 0 !important;
  filter: drop-shadow(0 6px 14px oklch(0 0 0 / 0.4));
}

#askAvaPillText {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
#askAvaPillText .small {
  font-size: 0.72rem;
  color: var(--neon);
  font-weight: 500;
}
#askAvaPillText .big {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

/* Expanded chat box */
#askAvaBox {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 540px;
  max-height: calc(100vh - 3rem);
  background: color-mix(in oklab, var(--background) 96%, transparent);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: 0 30px 60px -12px oklch(0 0 0 / 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(.2,.9,.3,1);
  font-family: inherit;
}
#askAvaBox.open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Header */
#askAvaHeader {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  border-bottom: 1px solid var(--border);
  position: relative;
  min-height: 68px;
}
#askAvaHeader .av {
  width: 64px;
  height: auto;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible;
  display: block;
  flex-shrink: 0;
  margin-top: -20px;
  margin-bottom: -8px;
  line-height: 0;
}
#askAvaHeader .av img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 !important;
  filter: drop-shadow(0 4px 10px oklch(0 0 0 / 0.4));
}
#askAvaHeader .info { flex: 1; line-height: 1.2; }
#askAvaHeader .info .name {
  font-weight: 700;
  color: var(--foreground);
  font-size: 1rem;
}
#askAvaHeader .info .status {
  font-size: 0.75rem;
  color: var(--neon);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
#askAvaHeader .info .status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: askAvaPulse 1.5s infinite;
}
@keyframes askAvaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
#askAvaClose {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 60%, transparent);
  color: var(--muted-foreground);
  cursor: pointer;
  display: grid; place-items: center;
  font-family: inherit;
  transition: all 0.2s;
}
#askAvaClose:hover {
  border-color: var(--neon);
  color: var(--neon);
}
#askAvaClose .material-symbols-rounded { font-size: 18px; }

/* Beta banner */
#askAvaBeta {
  padding: 0.6rem 1.1rem;
  background: color-mix(in oklab, var(--neon) 6%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--neon) 15%, transparent);
  font-size: 0.75rem;
  color: var(--neon);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.4;
}

/* Messages */
#askAvaMessages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--neon) transparent;
}
#askAvaMessages::-webkit-scrollbar { width: 5px; }
#askAvaMessages::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--neon) 40%, transparent);
  border-radius: 999px;
}
.askAvaMsg {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 86%;
  word-wrap: break-word;
  animation: askAvaSlideIn 0.4s cubic-bezier(.2,.9,.3,1);
}
@keyframes askAvaSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.askAvaMsg.bot {
  background: color-mix(in oklab, var(--card) 80%, transparent);
  border: 1px solid var(--border);
  color: var(--foreground);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.askAvaMsg.user {
  background: color-mix(in oklab, var(--neon) 18%, var(--background));
  border: 1px solid color-mix(in oklab, var(--neon) 35%, transparent);
  color: var(--foreground);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

/* Suggested chips */
#askAvaSuggest {
  padding: 0 1.1rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.askAvaChip {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 70%, transparent);
  color: var(--muted-foreground);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.25s;
}
.askAvaChip:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: color-mix(in oklab, var(--neon) 10%, transparent);
  transform: translateX(4px);
}

/* Input row */
#askAvaInputRow {
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 60%, transparent);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
#askAvaInput {
  flex: 1;
  padding: 0.7rem 1rem;
  background: color-mix(in oklab, var(--card) 80%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#askAvaInput:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--neon) 18%, transparent);
}
#askAvaInput::placeholder { color: var(--muted-foreground); }
#askAvaSend {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--neon);
  color: var(--background);
  cursor: pointer;
  display: grid; place-items: center;
  font-family: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-neon);
  flex-shrink: 0;
}
#askAvaSend:hover { transform: translateY(-2px) rotate(-8deg); }
#askAvaSend .material-symbols-rounded { font-size: 20px; }

/* Mobile */
@media (max-width: 880px) {
  #askAva { bottom: 5.2rem; left: 0.8rem; }
  #askAvaBox {
    bottom: 5.2rem; left: 0.8rem; right: 0.8rem;
    width: auto; height: 70vh;
  }
  #askAvaPillText .big { font-size: 0.92rem; }
  #askAvaAvatar { width: 76px; bottom: -8px; }
  #askAvaPill { padding-left: 4.6rem; min-height: 52px; }
}

/* End AVA widget */

/* =========================================================
   PROJECTS GALLERY
   ========================================================= */
.proj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.proj-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: color-mix(in oklab, var(--card) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}
.proj-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.proj-chip .cnt {
  font-size: 0.7rem;
  padding: 1px 7px;
  background: color-mix(in oklab, var(--border-strong) 90%, transparent);
  border-radius: 999px;
  font-weight: 600;
}
.proj-chip:hover {
  border-color: var(--neon);
  color: var(--foreground);
}
.proj-chip.active {
  border-color: var(--neon);
  color: var(--neon);
  background: color-mix(in oklab, var(--neon) 12%, transparent);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.proj-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.proj-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--neon) 45%, transparent);
  box-shadow: var(--shadow-elev);
}

.proj-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--card-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.proj-media img,
.proj-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.proj-card:hover .proj-media img {
  transform: scale(1.05);
}
.proj-media img {
  transition: transform 0.6s cubic-bezier(.2,.9,.3,1);
}
.proj-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--neon);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.proj-play .material-symbols-rounded {
  font-size: 56px;
  filter: drop-shadow(0 4px 12px oklch(0 0 0 / 0.5));
}
.proj-card:hover .proj-play { opacity: 0; }

.proj-carousel-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 600;
}
.proj-carousel-badge .material-symbols-rounded { font-size: 14px; }

.proj-pdf-thumb,
.proj-embed-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, color-mix(in oklab, var(--neon) 10%, var(--card-soft)), color-mix(in oklab, var(--cyan) 10%, var(--card-soft)));
  color: var(--foreground);
}
.proj-pdf-thumb .material-symbols-rounded,
.proj-embed-thumb .material-symbols-rounded {
  font-size: 64px;
  color: var(--neon);
}

.proj-body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.proj-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.proj-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.proj-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.proj-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--foreground);
  line-height: 1.3;
}
.proj-desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}
.proj-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
  align-items: center;
}
.proj-vote-btn,
.proj-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}
.proj-vote-btn .material-symbols-rounded,
.proj-share-btn .material-symbols-rounded { font-size: 16px; }
.proj-vote-btn.up:hover,
.proj-vote-btn.up.voted {
  border-color: var(--neon);
  background: color-mix(in oklab, var(--neon) 12%, transparent);
  color: var(--neon);
}
.proj-vote-btn.down:hover {
  border-color: var(--border-strong);
  color: var(--foreground);
}
.proj-share-btn:hover {
  border-color: var(--neon);
  color: var(--neon);
}

/* LIGHTBOX */
.proj-lightbox {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--background) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.proj-lightbox.open {
  display: flex;
  opacity: 1;
}
.proj-lightbox-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px oklch(0 0 0 / 0.6);
}
.proj-lightbox-media {
  background: var(--background);
  display: grid;
  place-items: center;
  min-height: 500px;
  overflow: hidden;
}
.proj-lightbox-media img,
.proj-lightbox-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 90vh;
}
.proj-lightbox-info {
  padding: 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.proj-lightbox-meta { display: flex; gap: 0.5rem; }
.proj-lightbox-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--foreground);
  margin: 0;
}
.proj-lightbox-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0;
}
.proj-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: color-mix(in oklab, var(--card) 80%, transparent);
  backdrop-filter: blur(8px);
  color: var(--foreground);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 9001;
  transition: all 0.2s;
  font-family: inherit;
}
.proj-lightbox-close:hover {
  border-color: var(--neon);
  color: var(--neon);
}

/* CAROUSEL ARROWS */
.proj-car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: color-mix(in oklab, var(--card) 90%, transparent);
  backdrop-filter: blur(8px);
  color: var(--foreground);
  cursor: pointer;
  display: none;
  place-items: center;
  z-index: 9001;
  transition: all 0.2s;
  font-family: inherit;
}
.proj-car-arrow:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: color-mix(in oklab, var(--neon) 12%, transparent);
}
.proj-car-arrow.prev { left: 2rem; }
.proj-car-arrow.next { right: 2rem; }
.proj-car-arrow .material-symbols-rounded { font-size: 28px; }

@media (max-width: 880px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-lightbox-inner {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }
  .proj-lightbox-media { min-height: 280px; }
  .proj-lightbox-info { padding: 1.5rem; }
  .proj-lightbox { padding: 1rem; }
  .proj-car-arrow { width: 44px; height: 44px; }
  .proj-car-arrow.prev { left: 0.6rem; }
  .proj-car-arrow.next { right: 0.6rem; }
}

/* Software pill tags on project cards */
.proj-softwares {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.proj-sw-tag {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: color-mix(in oklab, var(--cyan) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--cyan) 28%, transparent);
  color: var(--cyan);
  border-radius: 999px;
  white-space: nowrap;
}

/* Media badge (top-right corner on cards with thumbnails) */
.proj-media-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  color: var(--neon);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.proj-media-badge .material-symbols-rounded { font-size: 14px; }

/* Video poster (shown over the video until hover plays it) */
.proj-media-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s;
}
.proj-card:hover .proj-media-poster { opacity: 0; }

/* Lightbox softwares row */
.proj-lightbox-softwares {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
  width: 100%;
}
.proj-lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}