    /* =====================
       CSS CUSTOM PROPERTIES
       ===================== */
    :root {
      --bg-primary:     #0a0f1e;
      --bg-secondary:   #0f172a;
      --bg-card:        #111827;
      --accent-primary: #38bdf8;
      --accent-glow:    rgba(56, 189, 248, 0.15);
      --text-primary:   #f1f5f9;
      --text-secondary: #94a3b8;
      --text-muted:     #475569;
      --border:         rgba(255,255,255,0.08);
      --radius:         12px;
      --transition:     0.3s ease;
      --font:           'Segoe UI', system-ui, sans-serif;
    }

    /* =====================
       RESET & BASE
       ===================== */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    /* Kill browser tap-highlights & default focus backgrounds */
    a, button {
      -webkit-tap-highlight-color: transparent;
      background-color: transparent;
    }
    a:focus, button:focus { outline: none; }
    a:focus-visible, button:focus-visible {
      outline: 2px solid var(--accent-primary);
      outline-offset: 4px;
      border-radius: 4px;
    }
    ::selection {
      background: rgba(56,189,248,0.35);
      color: var(--text-primary);
    }
    /* Themed scrollbar: thin, accent-tinted, at home on the night sky */
    html {
      scrollbar-width: thin;
      scrollbar-color: rgba(56,189,248,0.3) transparent;
    }
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb {
      background: rgba(56,189,248,0.25);
      border-radius: 8px;
      border: 2px solid transparent;
      background-clip: content-box;
    }
    ::-webkit-scrollbar-thumb:hover { background-color: rgba(56,189,248,0.45); }
    body {
      font-family: var(--font);
      background: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.6;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }
    ul { list-style: none; }

    /* =====================
       CUSTOM CURSOR
       ===================== */
    @media (hover: hover) and (pointer: fine) {
      html, body, *, *::before, *::after { cursor: none !important; }
      .cursor-dot,
      .cursor-ring {
        position: fixed;
        top: 0; left: 0;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: opacity 0.25s ease;
        will-change: transform;
      }
      .cursor-dot {
        width: 8px; height: 8px;
        background: var(--accent-primary);
        border-radius: 50%;
        box-shadow: 0 0 12px rgba(56,189,248,0.7);
      }
      .cursor-ring {
        width: 36px; height: 36px;
        border: 1.5px solid rgba(56,189,248,0.4);
        border-radius: 50%;
        transition: width 0.25s ease, height 0.25s ease,
                    border-color 0.25s ease, opacity 0.25s ease;
      }
      .cursor-ring.hover {
        width: 44px; height: 44px;
        border-color: rgba(56,189,248,0.85);
        background: transparent;
      }
    }
    @media (hover: none) {
      .cursor-dot, .cursor-ring { display: none; }
    }

    /* =====================
       NAVIGATION
       ===================== */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      display: flex; justify-content: space-between; align-items: center;
      padding: 20px 60px;
      background: rgba(10, 15, 30, 0.4);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-bottom: 1px solid transparent;
      transition: padding 0.4s ease, background 0.4s ease,
                  border-color 0.4s ease, backdrop-filter 0.4s ease,
                  box-shadow 0.4s ease;
      transform: translateY(-100%);
      opacity: 0;
    }
    nav.nav-scrolled {
      padding: 14px 60px;
      background: rgba(10, 15, 30, 0.78);
      backdrop-filter: blur(16px) saturate(160%);
      -webkit-backdrop-filter: blur(16px) saturate(160%);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    }
    .nav-logo {
      font-size: 1.4rem; font-weight: 800;
      color: var(--accent-primary);
      letter-spacing: 2px;
      text-shadow: 0 0 20px rgba(56,189,248,0.4);
    }
    .nav-links {
      display: flex; gap: 14px; align-items: center;
    }
    /* No nav link should ever paint a fill/background - kill all pseudo fills. */
    .nav-links a::before,
    .nav-links a::after {
      background-color: transparent;
    }
    .nav-links a::before {
      content: none !important;
      display: none !important;
    }
    .nav-links a,
    .nav-links a:link,
    .nav-links a:visited,
    .nav-links a:active,
    .nav-links a:focus {
      color: var(--text-secondary);
      background: transparent !important;
      background-color: transparent !important;
      -webkit-tap-highlight-color: transparent !important;
      text-decoration: none;
      box-shadow: none;
      outline: none;
    }
    .nav-links a {
      font-size: 0.875rem;
      font-weight: 500; letter-spacing: 0.5px;
      transition: color var(--transition);
      position: relative;
      padding: 8px 14px;
      border-radius: 6px;
    }
    .nav-links a::after {
      content: ''; position: absolute;
      bottom: -4px; left: 0; width: 0; height: 2px;
      background: var(--accent-primary);
      box-shadow: 0 0 8px rgba(56,189,248,0.6);
      transition: width var(--transition);
    }
    .nav-links a:hover,
    .nav-links a:focus-visible { color: var(--accent-primary); background: transparent !important; }
    .nav-links a:hover::after,
    .nav-links a:focus-visible::after { width: 100%; }
    /* eBay CTA now renders as a regular nav link - no border, no fill, no slider. */
    .nav-links .nav-cta { padding: 8px 14px; }

    /* Mobile hamburger toggle */
    .nav-toggle {
      display: none;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 8px;
      width: 42px; height: 42px;
      padding: 0;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      transition: border-color var(--transition);
    }
    .nav-toggle:hover { border-color: var(--accent-primary); }
    .nav-toggle span {
      display: block;
      width: 18px; height: 2px;
      background: var(--text-primary);
      border-radius: 2px;
      transition: transform 0.35s ease, opacity 0.25s ease;
      transform-origin: center;
    }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* =====================
       HERO
       ===================== */
    #hero {
      min-height: 100vh;
      display: flex; align-items: center; justify-content: center;
      text-align: center;
      padding: 120px 24px 60px;
      position: relative; overflow: hidden;
    }
    #hero-canvas {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      z-index: 0;
      opacity: 0;
      transition: opacity 0.8s ease;
    }
    #hero-canvas.is-ready { opacity: 0.85; }
    /* Subtle accent gradient placeholder shown while Three.js initializes.
       Hidden once the canvas reports it has rendered its first frame. */
    .hero-canvas-placeholder {
      position: absolute; inset: 0;
      z-index: 0;
      background:
        radial-gradient(ellipse at 30% 20%, rgba(56,189,248,0.20), transparent 55%),
        radial-gradient(ellipse at 75% 80%, rgba(129,140,248,0.15), transparent 55%);
      opacity: 1;
      transition: opacity 0.6s ease;
      pointer-events: none;
    }
    .hero-canvas-placeholder.is-hidden { opacity: 0; }
    /* Dissolve the hero's animated backdrop into the site's night sky instead
       of hard-stopping at the section edge. */
    #hero-canvas,
    .hero-canvas-placeholder {
      -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
      mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
    }
    /* Subtle grid background overlay */
    #hero::before {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(56,189,248,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.03) 1px, transparent 1px);
      background-size: 60px 60px;
      z-index: 1;
      pointer-events: none;
      mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
      -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    }
    #hero::after {
      content: '';
      position: absolute; inset: 0;
      background: radial-gradient(ellipse at center, rgba(56,189,248,0.10) 0%, transparent 70%);
      z-index: 1;
      pointer-events: none;
    }
    .hero-content {
      position: relative; z-index: 2;
    }
    .hero-badge {
      display: inline-block;
      padding: 6px 16px;
      border: 1px solid rgba(56,189,248,0.3);
      border-radius: 20px;
      font-size: 0.8rem; color: var(--accent-primary);
      letter-spacing: 2px; text-transform: uppercase;
      margin-bottom: 24px;
      background: rgba(56,189,248,0.05);
      position: relative;
    }
    .hero-badge::before {
      content: '';
      position: absolute;
      left: 12px; top: 50%;
      width: 6px; height: 6px;
      background: #4ade80;
      border-radius: 50%;
      box-shadow: 0 0 10px #4ade80;
      animation: pulse-dot 2s ease-in-out infinite;
      transform: translateY(-50%);
      display: none; /* enable by adding padding-left */
    }
    @keyframes pulse-dot {
      0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
      50% { opacity: 0.5; transform: translateY(-50%) scale(1.3); }
    }
    #hero h1 {
      font-size: clamp(2.5rem, 6vw, 5rem);
      font-weight: 900; line-height: 1.05;
      margin-bottom: 24px;
    }
    #hero h1 .name-highlight {
      background: linear-gradient(135deg, var(--accent-primary), #818cf8);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: glow-pulse 3.5s ease-in-out infinite;
      filter: drop-shadow(0 0 20px rgba(56,189,248,0.4));
    }
    @keyframes glow-pulse {
      0%, 100% { filter: drop-shadow(0 0 12px rgba(56,189,248,0.3)); }
      50%      { filter: drop-shadow(0 0 28px rgba(129,140,248,0.55)); }
    }
    .hero-role {
      font-size: clamp(0.8rem, 1.6vw, 1rem);
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--text-secondary);
      margin-bottom: 22px;
    }
    .hero-role .role-dot {
      color: var(--accent-primary);
      margin: 0 10px;
      font-weight: 700;
    }
    .hero-tagline {
      font-size: clamp(1rem, 2vw, 1.2rem);
      color: var(--text-secondary);
      max-width: 620px; margin: 0 auto 40px;
    }
    .hero-tags {
      display: flex; flex-wrap: wrap;
      gap: 10px; justify-content: center;
      margin-bottom: 48px;
    }
    .hero-tag {
      padding: 6px 14px;
      background: rgba(56,189,248,0.08);
      border: 1px solid rgba(56,189,248,0.2);
      border-radius: 20px;
      font-size: 0.8rem; color: var(--text-secondary);
      transition: all var(--transition);
    }
    .hero-tag:hover {
      background: rgba(56,189,248,0.18);
      border-color: rgba(56,189,248,0.5);
      color: var(--text-primary);
      transform: translateY(-2px);
    }
    .hero-buttons {
      display: flex; gap: 16px;
      justify-content: center; flex-wrap: wrap;
    }
    .btn {
      padding: 14px 32px; border-radius: var(--radius);
      font-weight: 700; font-size: 0.95rem;
      cursor: pointer; transition: all var(--transition);
      display: inline-flex; align-items: center; gap: 8px;
      position: relative;
      overflow: hidden;
      isolation: isolate;
    }
    .btn::before {
      content: '';
      position: absolute;
      top: 0; left: -100%;
      width: 100%; height: 100%;
      background: linear-gradient(120deg,
        transparent 0%,
        rgba(255,255,255,0.25) 50%,
        transparent 100%);
      transition: left 0.6s ease;
      z-index: -1;
    }
    .btn:hover::before { left: 100%; }
    .btn-primary {
      background: var(--accent-primary); color: var(--bg-primary);
      box-shadow: 0 0 20px rgba(56,189,248,0.3);
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 40px rgba(56,189,248,0.55);
    }
    .btn-outline {
      border: 1px solid var(--border); color: var(--text-primary);
      background: rgba(255,255,255,0.02);
    }
    .btn-outline:hover {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
      transform: translateY(-2px);
      box-shadow: 0 0 25px rgba(56,189,248,0.2);
    }
    .hero-scroll {
      position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
      color: var(--text-muted); font-size: 0.75rem;
      letter-spacing: 2px; text-transform: uppercase;
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      z-index: 2;
      animation: bounce-scroll 2.4s ease-in-out infinite;
    }
    @keyframes bounce-scroll {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50%      { transform: translateX(-50%) translateY(8px); }
    }
    .scroll-arrow {
      width: 1px; height: 40px;
      background: linear-gradient(to bottom, var(--accent-primary), transparent);
      position: relative;
      overflow: hidden;
    }
    .scroll-arrow::after {
      content: '';
      position: absolute;
      top: -40px; left: 0;
      width: 100%; height: 40px;
      background: linear-gradient(to bottom, transparent, var(--accent-primary));
      animation: scroll-line 2s linear infinite;
    }
    @keyframes scroll-line {
      0%   { top: -40px; }
      100% { top: 40px; }
    }

    /* =====================
       SECTION BASE
       ===================== */
    .section {
      padding: 100px 60px;
      max-width: 1100px; margin: 0 auto;
    }
    .section-full {
      padding: 100px 60px;
      position: relative;
    }
    .section-full .inner { max-width: 1100px; margin: 0 auto; }

    /* =====================
       SITE AMBIENT BACKGROUND (the night sky)
       Two full-bleed fixed layers behind every page. body::before carries the
       aurora glows and breathes slowly like starlight; body::after carries two
       static particle fields echoing the hero canvas plus a whisper of film
       grain that keeps the gradients smooth. Sections are fully transparent,
       so cards float over one continuous sky. Pure CSS, zero runtime cost.
       ===================== */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      z-index: -2;
      pointer-events: none;
      background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E") 0 0/160px 160px repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Ccircle cx='36' cy='88' r='1.2' fill='%2338bdf8' opacity='.34'/%3E%3Ccircle cx='168' cy='40' r='.9' fill='%23818cf8' opacity='.3'/%3E%3Ccircle cx='300' cy='142' r='1.4' fill='%2338bdf8' opacity='.2'/%3E%3Ccircle cx='472' cy='64' r='1' fill='%23cbd5e1' opacity='.26'/%3E%3Ccircle cx='588' cy='182' r='1.1' fill='%23818cf8' opacity='.26'/%3E%3Ccircle cx='96' cy='302' r='1' fill='%2338bdf8' opacity='.3'/%3E%3Ccircle cx='258' cy='386' r='1.5' fill='%23cbd5e1' opacity='.18'/%3E%3Ccircle cx='420' cy='322' r='.9' fill='%2338bdf8' opacity='.36'/%3E%3Ccircle cx='562' cy='422' r='1.2' fill='%23818cf8' opacity='.28'/%3E%3Ccircle cx='150' cy='522' r='1.3' fill='%2338bdf8' opacity='.22'/%3E%3Ccircle cx='342' cy='562' r='1' fill='%23cbd5e1' opacity='.28'/%3E%3Ccircle cx='520' cy='600' r='1.4' fill='%2338bdf8' opacity='.18'/%3E%3Ccircle cx='48' cy='614' r='.8' fill='%23818cf8' opacity='.32'/%3E%3C/svg%3E") 0 0/640px 640px repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1080' height='1080'%3E%3Ccircle cx='90' cy='120' r='.6' fill='%2338bdf8' opacity='.16'/%3E%3Ccircle cx='260' cy='60' r='.5' fill='%23cbd5e1' opacity='.14'/%3E%3Ccircle cx='430' cy='190' r='.7' fill='%23818cf8' opacity='.13'/%3E%3Ccircle cx='640' cy='90' r='.6' fill='%2338bdf8' opacity='.18'/%3E%3Ccircle cx='850' cy='160' r='.5' fill='%23cbd5e1' opacity='.12'/%3E%3Ccircle cx='1010' cy='60' r='.6' fill='%23818cf8' opacity='.15'/%3E%3Ccircle cx='160' cy='340' r='.7' fill='%2338bdf8' opacity='.12'/%3E%3Ccircle cx='390' cy='420' r='.5' fill='%23818cf8' opacity='.16'/%3E%3Ccircle cx='600' cy='330' r='.6' fill='%23cbd5e1' opacity='.13'/%3E%3Ccircle cx='820' cy='440' r='.7' fill='%2338bdf8' opacity='.14'/%3E%3Ccircle cx='1000' cy='380' r='.5' fill='%23818cf8' opacity='.12'/%3E%3Ccircle cx='80' cy='600' r='.6' fill='%23cbd5e1' opacity='.15'/%3E%3Ccircle cx='300' cy='700' r='.7' fill='%2338bdf8' opacity='.11'/%3E%3Ccircle cx='540' cy='640' r='.5' fill='%23818cf8' opacity='.14'/%3E%3Ccircle cx='760' cy='720' r='.6' fill='%2338bdf8' opacity='.16'/%3E%3Ccircle cx='950' cy='660' r='.5' fill='%23cbd5e1' opacity='.12'/%3E%3Ccircle cx='120' cy='880' r='.7' fill='%23818cf8' opacity='.12'/%3E%3Ccircle cx='360' cy='940' r='.6' fill='%2338bdf8' opacity='.15'/%3E%3Ccircle cx='620' cy='890' r='.5' fill='%23cbd5e1' opacity='.13'/%3E%3Ccircle cx='840' cy='960' r='.7' fill='%23818cf8' opacity='.11'/%3E%3Ccircle cx='1020' cy='900' r='.6' fill='%2338bdf8' opacity='.13'/%3E%3C/svg%3E") 0 0/1080px 1080px repeat,
        transparent;
    }
    /* Aurora glows: their own fixed layer beneath the particles, brightened
       and breathing very slowly, like stars in the night sky. The base color
       lives on body itself. */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: -2;
      pointer-events: none;
      background:
        radial-gradient(ellipse 60% 42% at 16% 0%, rgba(56, 189, 248, 0.17), transparent 68%) center/100% 100% no-repeat,
        radial-gradient(ellipse 52% 44% at 88% 24%, rgba(129, 140, 248, 0.14), transparent 66%) center/100% 100% no-repeat,
        radial-gradient(ellipse 38% 30% at 8% 58%, rgba(129, 140, 248, 0.10), transparent 70%) center/100% 100% no-repeat,
        radial-gradient(ellipse 42% 32% at 72% 70%, rgba(56, 189, 248, 0.09), transparent 70%) center/100% 100% no-repeat,
        radial-gradient(ellipse 70% 55% at 50% 105%, rgba(56, 189, 248, 0.10), transparent 72%) center/100% 100% no-repeat;
      animation: ambient-breathe 9s ease-in-out infinite;
    }
    @keyframes ambient-breathe {
      0%, 100% { opacity: 0.72; }
      50%      { opacity: 1; }
    }
    /* Shooting stars: brief streaks on long, offset loops so one appears
       here and there, never on a predictable beat. Bright head leads,
       tail fades behind. Transform and opacity only: GPU-composited. */
    .sky-fx {
      position: fixed; inset: 0;
      z-index: -1;
      pointer-events: none;
      overflow: hidden;
    }
    .shooting-star {
      position: absolute;
      height: 2px;
      border-radius: 2px;
      background: linear-gradient(90deg, #e0f2fe, rgba(125, 211, 252, 0.85) 30%, rgba(56, 189, 248, 0));
      filter: drop-shadow(0 0 5px rgba(125, 211, 252, 0.7));
      opacity: 0;
      animation: shoot var(--dur) linear var(--delay) infinite;
    }
    .shooting-star.s1 { top: 14%; left: 72%; width: 130px; --angle: -32deg; --travel: -58vw; --dur: 13s; --delay: 2s; }
    .shooting-star.s2 { top: 34%; left: 92%; width: 100px; --angle: -24deg; --travel: -48vw; --dur: 17s; --delay: 8.5s; }
    .shooting-star.s3 { top: 7%;  left: 45%; width: 90px;  --angle: -38deg; --travel: -38vw; --dur: 21s; --delay: 14s; }
    @keyframes shoot {
      0%   { transform: rotate(var(--angle)) translateX(0); opacity: 0; }
      1.2% { opacity: 0.9; }
      7%   { transform: rotate(var(--angle)) translateX(var(--travel)); opacity: 0; }
      100% { transform: rotate(var(--angle)) translateX(var(--travel)); opacity: 0; }
    }
    /* A few stars that twinkle gently, so the sky feels lived-in */
    .twinkle {
      position: absolute;
      width: 3px; height: 3px;
      border-radius: 50%;
      background: #bae6fd;
      box-shadow: 0 0 6px rgba(125, 211, 252, 0.9);
      opacity: 0.15;
      animation: twinkle var(--dur, 5s) ease-in-out var(--delay, 0s) infinite;
    }
    .twinkle.t1 { top: 22%; left: 12%; --dur: 4.5s; --delay: 0s; }
    .twinkle.t2 { top: 64%; left: 82%; --dur: 6s;   --delay: 1.2s; }
    .twinkle.t3 { top: 78%; left: 28%; --dur: 5.2s; --delay: 2.6s; width: 2px; height: 2px; }
    .twinkle.t4 { top: 12%; left: 58%; --dur: 7s;   --delay: 3.4s; width: 2px; height: 2px; }
    @keyframes twinkle {
      0%, 100% { opacity: 0.12; transform: scale(1); }
      50%      { opacity: 0.7;  transform: scale(1.25); }
    }
    .section-header { margin-bottom: 56px; }
    .section-label {
      font-size: 0.75rem; letter-spacing: 3px;
      text-transform: uppercase; color: var(--accent-primary);
      font-weight: 600; margin-bottom: 12px;
      display: block;
    }
    .section-header h2 {
      font-size: clamp(1.8rem, 3vw, 2.4rem);
      font-weight: 800; color: var(--text-primary);
    }
    .section-header p {
      color: var(--text-secondary); margin-top: 12px;
      max-width: 600px; font-size: 1.05rem;
    }

    /* =====================
       ABOUT
       ===================== */
    .about-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 60px; align-items: start;
    }
    .about-text p {
      color: var(--text-secondary); line-height: 1.85;
      margin-bottom: 18px; font-size: 1rem;
    }
    .about-stats {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 16px;
      position: sticky;
      top: 100px;
      align-self: start;
    }
    .stat-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      min-height: 150px;
      transition: border-color var(--transition),
                  transform var(--transition),
                  box-shadow var(--transition);
      transform-style: preserve-3d;
      position: relative;
      overflow: hidden;
    }
    .stat-card::before {
      content: '';
      position: absolute; inset: 0;
      background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
                  rgba(56,189,248,0.12), transparent 60%);
      opacity: 0;
      transition: opacity var(--transition);
      pointer-events: none;
    }
    .stat-card:hover {
      border-color: var(--accent-primary);
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(56,189,248,0.15);
    }
    .stat-card:hover::before { opacity: 1; }
    .stat-number {
      font-size: 2rem; font-weight: 900;
      color: var(--accent-primary); display: block;
      text-shadow: 0 0 20px rgba(56,189,248,0.4);
    }
    .stat-headline {
      font-size: 1.4rem; font-weight: 800;
      color: var(--accent-primary); display: block;
      text-shadow: 0 0 20px rgba(56,189,248,0.4);
      line-height: 1.15;
    }
    .stat-label {
      font-size: 0.8rem;
      color: var(--text-secondary);
      text-transform: uppercase; letter-spacing: 1px;
      font-weight: 600;
      margin-top: 6px;
      max-width: 90%;
    }

    /* =====================
       SKILLS
       ===================== */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      max-width: 760px;
      margin: 0 auto;
    }
    /* Sub-highlighted skills: compact pills below the flagship cards */
    .skills-more-label {
      text-align: center;
      margin: 40px 0 20px;
      font-size: 0.72rem;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--text-muted);
      font-weight: 600;
    }
    .skill-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      max-width: 880px;
      margin: 0 auto;
    }
    .skill-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 14px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 20px;
      font-size: 0.8rem;
      color: var(--text-secondary);
      transition: all var(--transition);
    }
    .skill-pill-icon {
      display: inline-flex;
      color: var(--accent-primary);
      opacity: 0.75;
    }
    .skill-pill-icon svg { width: 15px; height: 15px; }
    .skill-pill:hover {
      border-color: rgba(56,189,248,0.4);
      color: var(--text-primary);
      transform: translateY(-2px);
    }
    .skill-pill:hover .skill-pill-icon { opacity: 1; }
    .skill-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius); padding: 20px;
      display: flex; align-items: center; gap: 14px;
      transition: all var(--transition);
      transform-style: preserve-3d;
      position: relative;
      overflow: hidden;
    }
    .skill-card::after {
      content: '';
      position: absolute;
      top: 0; left: -75%;
      width: 50%; height: 100%;
      background: linear-gradient(120deg, transparent, rgba(56,189,248,0.08), transparent);
      transform: skewX(-25deg);
      transition: left 0.7s ease;
    }
    .skill-card:hover::after { left: 125%; }
    .skill-card:hover {
      border-color: var(--accent-primary);
      background: linear-gradient(135deg, var(--bg-card), var(--accent-glow));
      transform: translateY(-4px);
      box-shadow: 0 8px 30px rgba(56,189,248,0.15);
    }
    .skill-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-primary);
      flex-shrink: 0;
      transition: transform var(--transition), color var(--transition);
    }
    .skill-icon svg {
      width: 22px;
      height: 22px;
      filter: drop-shadow(0 0 5px rgba(56,189,248,0.35));
    }
    .skill-card:hover .skill-icon {
      transform: scale(1.15);
      color: #7dd3fc;
    }
    .skill-name {
      font-size: 0.875rem; font-weight: 600;
      color: var(--text-primary);
    }

    /* =====================
       EXPERIENCE
       ===================== */
    .timeline { position: relative; padding-left: 32px; }
    .timeline::before {
      content: '';
      position: absolute; left: 0; top: 8px; bottom: 0;
      width: 2px;
      background: linear-gradient(to bottom, var(--accent-primary), transparent);
    }
    .timeline-item {
      position: relative; margin-bottom: 52px;
    }
    .timeline-item::before {
      content: '';
      position: absolute; left: -38px; top: 6px;
      width: 12px; height: 12px; border-radius: 50%;
      background: var(--accent-primary);
      box-shadow: 0 0 12px rgba(56,189,248,0.6);
      animation: timeline-pulse 2.5s ease-in-out infinite;
    }
    @keyframes timeline-pulse {
      0%, 100% { box-shadow: 0 0 12px rgba(56,189,248,0.6); }
      50%      { box-shadow: 0 0 22px rgba(56,189,248,0.9); }
    }
    .timeline-header {
      display: flex; justify-content: space-between;
      align-items: flex-start; flex-wrap: wrap; gap: 8px;
      margin-bottom: 8px;
    }
    .timeline-title { font-size: 1.1rem; font-weight: 700; }
    .timeline-company {
      color: var(--accent-primary); font-weight: 600;
      font-size: 0.9rem;
    }
    .timeline-meta {
      font-size: 0.8rem; color: var(--text-muted);
      background: rgba(255,255,255,0.04);
      padding: 4px 12px; border-radius: 20px;
      border: 1px solid var(--border);
      white-space: nowrap;
    }
    .timeline-description {
      color: var(--text-secondary); font-size: 0.925rem;
      margin-bottom: 14px; line-height: 1.7;
    }
    .timeline-bullets { padding-left: 0; }
    .timeline-bullets li {
      color: var(--text-secondary); font-size: 0.9rem;
      line-height: 1.7; padding: 4px 0;
      padding-left: 16px; position: relative;
    }
    .timeline-bullets li::before {
      content: '▹';
      position: absolute; left: 0;
      color: var(--accent-primary);
    }
    .timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
    .tag {
      font-size: 0.75rem; font-weight: 600;
      padding: 4px 12px; border-radius: 20px;
      background: rgba(56,189,248,0.08);
      border: 1px solid rgba(56,189,248,0.2);
      color: var(--accent-primary);
      transition: all var(--transition);
    }
    .tag:hover {
      background: rgba(56,189,248,0.18);
      border-color: rgba(56,189,248,0.5);
      transform: translateY(-1px);
    }

    /* =====================
       PROJECTS
       ===================== */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 24px;
    }
    .project-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius); padding: 32px;
      display: flex; flex-direction: column;
      transition: all var(--transition);
      position: relative; overflow: hidden;
      transform-style: preserve-3d;
    }
    .project-card::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--accent-primary), #818cf8);
      transform: scaleX(0); transform-origin: left;
      transition: transform 0.4s ease;
    }
    .project-card::after {
      content: '';
      position: absolute; inset: 0;
      background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
                  rgba(56,189,248,0.12), transparent 50%);
      opacity: 0;
      transition: opacity var(--transition);
      pointer-events: none;
    }
    .project-card:hover {
      border-color: rgba(56,189,248,0.4);
      transform: translateY(-8px);
      box-shadow: 0 18px 50px rgba(56,189,248,0.18),
                  0 0 0 1px rgba(56,189,248,0.15);
    }
    .project-card:hover::before { transform: scaleX(1); }
    .project-card:hover::after { opacity: 1; }
    .project-number {
      font-size: 0.75rem; color: var(--text-muted);
      letter-spacing: 2px; margin-bottom: 16px; font-weight: 600;
    }
    .project-card h3 {
      font-size: 1.15rem; font-weight: 700; margin-bottom: 12px;
    }
    .project-card p {
      color: var(--text-secondary); font-size: 0.9rem;
      line-height: 1.7; flex: 1; margin-bottom: 24px;
    }
    .project-links { display: flex; gap: 16px; flex-wrap: wrap; }
    .project-link {
      font-size: 0.85rem; font-weight: 600;
      color: var(--accent-primary);
      display: flex; align-items: center; gap: 6px;
      transition: gap var(--transition), text-shadow var(--transition);
    }
    .project-link:hover {
      gap: 12px;
      text-shadow: 0 0 12px rgba(56,189,248,0.6);
    }

    /* =====================
       VIDEO EMBEDS
       ===================== */
    .video-frame {
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid var(--border);
      transition: all var(--transition);
      position: relative;
      aspect-ratio: 16 / 9;
    }
    .video-frame iframe {
      width: 100%;
      height: 100%;
      display: block;
      border: 0;
    }
    .video-frame:hover {
      border-color: rgba(56,189,248,0.4);
      box-shadow: 0 12px 40px rgba(56,189,248,0.18);
      transform: translateY(-4px);
    }

    /* =====================
       EDUCATION & CERTS
       ===================== */
    .edu-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    }
    .edu-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius); padding: 28px;
      transition: all var(--transition);
      position: relative;
      overflow: hidden;
    }
    .edu-card:hover {
      border-color: var(--accent-primary);
      transform: translateY(-4px);
      box-shadow: 0 10px 30px rgba(56,189,248,0.15);
    }
    .edu-icon {
      margin-bottom: 14px;
      width: 48px; height: 48px;
      display: inline-flex; align-items: center; justify-content: center;
      border-radius: 12px;
      color: var(--accent-primary);
      background: rgba(56,189,248,0.06);
      border: 1px solid rgba(56,189,248,0.15);
      transition: all var(--transition);
    }
    .edu-icon svg {
      width: 26px; height: 26px;
      filter: drop-shadow(0 0 6px rgba(56,189,248,0.4));
      transition: transform var(--transition);
    }
    .edu-card:hover .edu-icon {
      background: rgba(56,189,248,0.1);
      border-color: rgba(56,189,248,0.4);
    }
    .edu-card:hover .edu-icon svg { transform: scale(1.08); }
    .edu-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
    .edu-card .edu-degree {
      color: var(--accent-primary); font-size: 0.875rem;
      font-weight: 600; margin-bottom: 8px;
    }
    .edu-card .edu-detail {
      color: var(--text-muted); font-size: 0.825rem;
    }
    .certs-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 14px; margin-top: 40px;
    }
    .cert-item {
      display: flex; align-items: center; gap: 12px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px; padding: 14px 16px;
      font-size: 0.875rem; color: var(--text-secondary);
      transition: all var(--transition);
    }
    .cert-item:hover {
      border-color: var(--accent-primary);
      color: var(--text-primary);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(56,189,248,0.12);
    }
    .cert-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-primary);
      flex-shrink: 0;
      transition: transform var(--transition);
    }
    .cert-icon svg {
      width: 17px; height: 17px;
      filter: drop-shadow(0 0 5px rgba(56,189,248,0.3));
    }
    .cert-item:hover .cert-icon { transform: scale(1.15); }

    /* =====================
       CONTACT
       ===================== */
    #contact { text-align: center; }
    #contact .section-header { margin-bottom: 48px; }
    #contact .section-header h2 { margin: 0 auto; }
    #contact .section-header p { margin: 12px auto 0; }
    .contact-grid {
      display: flex; justify-content: center;
      flex-wrap: wrap; gap: 20px; margin-bottom: 48px;
    }
    .contact-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px 32px;
      display: flex; align-items: center; gap: 14px;
      transition: all var(--transition); min-width: 220px;
      position: relative;
      overflow: hidden;
    }
    .contact-card::before {
      content: '';
      position: absolute;
      top: 0; left: -100%;
      width: 100%; height: 100%;
      background: linear-gradient(120deg, transparent, rgba(56,189,248,0.1), transparent);
      transition: left 0.6s ease;
    }
    .contact-card:hover::before { left: 100%; }
    .contact-card:hover {
      border-color: var(--accent-primary);
      transform: translateY(-6px);
      box-shadow: 0 12px 40px rgba(56,189,248,0.18);
    }
    .contact-icon {
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-primary);
      transition: transform var(--transition);
    }
    .contact-icon svg {
      width: 24px; height: 24px;
      filter: drop-shadow(0 0 6px rgba(56,189,248,0.35));
    }
    .contact-card > div {
      display: flex;
      flex-direction: column;
      justify-content: center;
      line-height: 1.35;
    }
    .contact-card:hover .contact-icon { transform: scale(1.15); }
    .contact-label {
      font-size: 0.75rem; color: var(--text-muted);
      text-transform: uppercase; letter-spacing: 1px;
    }
    .contact-value {
      font-size: 0.9rem; font-weight: 600;
      color: var(--text-primary);
    }

    /* =====================
       FOOTER
       ===================== */
    footer {
      padding: 32px 60px;
      border-top: 1px solid var(--border);
      display: flex; justify-content: space-between;
      align-items: center; flex-wrap: wrap; gap: 16px;
    }
    footer p { color: var(--text-muted); font-size: 0.85rem; }
    .footer-links { display: flex; gap: 24px; }
    .footer-links a {
      color: var(--text-muted); font-size: 0.85rem;
      transition: color var(--transition), text-shadow var(--transition);
    }
    .footer-links a:hover {
      color: var(--accent-primary);
      text-shadow: 0 0 8px rgba(56,189,248,0.6);
    }

    /* =====================
       ANIMATION HELPERS
       ===================== */
    .reveal {
      opacity: 0;
      transform: translateY(40px);
      will-change: transform, opacity;
    }
    .reveal-left {
      opacity: 0;
      transform: translateX(-40px);
      will-change: transform, opacity;
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
      .reveal, .reveal-left { opacity: 1; transform: none; }
    }

    /* =====================
       RESPONSIVE
       ===================== */
    @media (max-width: 1024px) {
      nav, nav.nav-scrolled { padding: 16px 32px; }
      .nav-links { gap: 24px; }
      .section, .section-full { padding: 90px 32px; }
    }
    @media (max-width: 900px) {
      .about-grid { grid-template-columns: 1fr; gap: 40px; }
      .about-stats { position: static; top: auto; }
      .edu-grid { grid-template-columns: 1fr; }
      .timeline-header { flex-direction: column; align-items: flex-start; }
    }
    @media (max-width: 768px) {
      nav, nav.nav-scrolled { padding: 14px 20px; }
      .nav-toggle { display: flex; }
      .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: min(280px, 80vw);
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 90px 28px 32px;
        gap: 22px;
        background: rgba(10, 15, 30, 0.96);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-left: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(.4,0,.2,1);
        z-index: 999;
      }
      .nav-links.open { transform: translateX(0); }
      .nav-links li { width: 100%; }
      .nav-links a { display: block; font-size: 1rem; padding: 6px 0; }
      .nav-links .nav-cta { display: inline-block; margin-top: 8px; }

      .section, .section-full { padding: 70px 20px; }
      .section-header { margin-bottom: 40px; }
      #hero { padding: 100px 20px 60px; }
      #hero h1 { font-size: 2.4rem; }
      .hero-tagline { font-size: 1rem; }
      .hero-buttons { flex-direction: column; align-items: stretch; }
      .hero-buttons .btn { justify-content: center; width: 100%; }

      .about-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
      .stat-card { padding: 18px; }
      .stat-number { font-size: 1.6rem; }

      .skills-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
      .skill-card { padding: 16px; }

      .projects-grid { grid-template-columns: 1fr; gap: 18px; }
      .project-card { padding: 24px; }

      .timeline { padding-left: 24px; }
      .timeline-item::before { left: -30px; }

      .certs-grid { grid-template-columns: 1fr; gap: 10px; }
      .contact-card { width: 100%; padding: 20px 24px; }

      footer {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
      }
      .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
    }
    @media (max-width: 420px) {
      #hero h1 { font-size: 2rem; }
      .skills-grid { grid-template-columns: 1fr; }
      .about-stats { grid-template-columns: 1fr; }
    }

    /* =====================================================
       V2 POLISH PASS - added effects, animations, signature touches
       ===================================================== */

    /* --- Scroll progress indicator --- */
    .scroll-progress {
      position: fixed;
      top: 0; left: 0;
      width: 0%; height: 2px;
      background: linear-gradient(90deg, var(--accent-primary), #818cf8);
      box-shadow: 0 0 10px rgba(56,189,248,0.6);
      z-index: 10000;
      pointer-events: none;
      will-change: width;
      transition: width 0.08s linear;
    }

    /* --- Section divider (subtle radial glow line) --- */
    .section-divider {
      position: relative;
      height: 1px;
      max-width: 1100px;
      margin: 0 auto;
      background: radial-gradient(ellipse at center,
                  rgba(56,189,248,0.45) 0%,
                  rgba(56,189,248,0.18) 25%,
                  transparent 75%);
      opacity: 0.7;
    }
    .section-divider::after {
      content: '';
      position: absolute;
      left: 50%; top: 50%;
      width: 6px; height: 6px;
      background: var(--accent-primary);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      box-shadow: 0 0 14px rgba(56,189,248,0.8);
      opacity: 0.85;
    }

    /* --- Hero entrance: prep states (JS animates them in) --- */
    .hero-name-word {
      display: inline-block;
      opacity: 0;
      transform: translateY(40px);
      filter: blur(8px);
      will-change: transform, opacity, filter;
    }
    .hero-tagline-char {
      display: inline-block;
      opacity: 0;
      transform: translateY(8px);
      will-change: transform, opacity;
    }
    /* Each word is an atomic inline-block that never breaks mid-word; the real
       (breakable) spaces between word wrappers stay the only line-break points. */
    .hero-tagline-word {
      display: inline-block;
      white-space: nowrap;
    }
    /* Each sentence is its own block, so the line break always falls between
       sentences; words still wrap naturally within a sentence on narrow screens. */
    .hero-tagline-sentence {
      display: block;
    }

    /* --- Project card shimmer pass on the top accent bar --- */
    .project-card::before {
      background: linear-gradient(90deg,
        var(--accent-primary) 0%,
        #818cf8 50%,
        var(--accent-primary) 100%);
      background-size: 200% 100%;
    }
    .project-card:hover::before {
      animation: shimmer-pass 1.6s ease-in-out infinite;
    }
    @keyframes shimmer-pass {
      0%   { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    /* Larger diffuse glow underneath project cards on hover */
    .project-card:hover {
      box-shadow:
        0 18px 50px rgba(56,189,248,0.18),
        0 30px 80px -10px rgba(56,189,248,0.25),
        0 0 0 1px rgba(56,189,248,0.18);
    }

    /* --- Timeline dot sonar ping --- */
    .timeline-item::after {
      content: '';
      position: absolute;
      left: -38px; top: 6px;
      width: 12px; height: 12px;
      border-radius: 50%;
      border: 1.5px solid var(--accent-primary);
      transform: scale(1);
      opacity: 0.8;
      animation: timeline-ping 2.6s cubic-bezier(0.4,0,0.2,1) infinite;
      pointer-events: none;
    }
    @keyframes timeline-ping {
      0%   { transform: scale(1);   opacity: 0.85; }
      80%  { transform: scale(2.6); opacity: 0;    }
      100% { transform: scale(2.6); opacity: 0;    }
    }

    /* --- Skill card idle breathing (staggered offsets via nth-child) --- */
    @keyframes skill-breathe {
      0%, 100% { transform: scale(1); }
      50%      { transform: scale(1.006); }
    }
    .skill-card.is-live {
      animation: skill-breathe 6s ease-in-out infinite;
    }
    .skill-card.is-live:nth-child(2)  { animation-delay: -0.5s; }
    .skill-card.is-live:nth-child(3)  { animation-delay: -1.1s; }
    .skill-card.is-live:nth-child(4)  { animation-delay: -1.7s; }
    .skill-card.is-live:nth-child(5)  { animation-delay: -2.3s; }
    .skill-card.is-live:nth-child(6)  { animation-delay: -2.9s; }
    .skill-card.is-live:nth-child(7)  { animation-delay: -3.4s; }
    .skill-card.is-live:nth-child(8)  { animation-delay: -3.9s; }
    .skill-card.is-live:nth-child(9)  { animation-delay: -4.4s; }
    .skill-card.is-live:nth-child(10) { animation-delay: -4.9s; }
    .skill-card.is-live:nth-child(11) { animation-delay: -5.3s; }
    .skill-card.is-live:nth-child(12) { animation-delay: -5.7s; }
    .skill-card.is-live:nth-child(13) { animation-delay: -0.8s; }
    .skill-card.is-live:nth-child(14) { animation-delay: -1.4s; }
    .skill-card.is-live:nth-child(15) { animation-delay: -2.0s; }
    .skill-card.is-live:nth-child(16) { animation-delay: -2.6s; }
    .skill-card.is-live:nth-child(17) { animation-delay: -3.2s; }
    .skill-card.is-live:nth-child(18) { animation-delay: -3.7s; }
    .skill-card.is-live:hover { animation-play-state: paused; }

    /* --- Nav active state (current section) --- */
    .nav-links a.nav-active {
      color: var(--accent-primary);
      font-weight: 600;
    }
    .nav-links a.nav-active::after { width: 100%; }

    /* --- Contact card icon (a touch more rotation) --- */
    .contact-card:hover .contact-icon {
      transform: scale(1.15);
    }

    /* --- Footer signature --- */
    .footer-sig {
      color: var(--text-muted);
      font-size: 0.78rem;
      letter-spacing: 0.5px;
    }
    .footer-sig .sig-dot {
      color: var(--accent-primary);
      margin: 0 8px;
      opacity: 0.7;
    }
    .footer-sig a {
      color: var(--text-secondary);
      transition: color var(--transition), text-shadow var(--transition);
    }
    .footer-sig a:hover {
      color: var(--accent-primary);
      text-shadow: 0 0 8px rgba(56,189,248,0.6);
    }

    /* --- Mobile: disable heavy idle animations --- */
    @media (max-width: 768px) {
      .skill-card.is-live { animation: none; }
      .timeline-item::after { display: none; }
      .scroll-progress { height: 2px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .skill-card.is-live,
      .timeline-item::after,
      .project-card:hover::before { animation: none !important; }
      .hero-name-word,
      .hero-tagline-char {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
      }
    }
  

/* =====================================================
   MULTI-PAGE ADDITIONS (Astro)
   ===================================================== */

/* Home: stats band */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .home-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .home-stats { grid-template-columns: 1fr; } }

/* Home: CTA band */
.home-cta-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
@media (max-width: 520px) {
  .home-cta-buttons { flex-direction: column; align-items: stretch; }
  .home-cta-buttons .btn { justify-content: center; }
}

/* Work gallery: result line on cards */
.project-card .case-card-result {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 0 0 auto;
}
a.project-card { color: inherit; }

/* Case study page */
.case-study { max-width: 820px; }
.case-back {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  transition: color var(--transition), gap var(--transition);
}
.case-back:hover { color: var(--accent-primary); }
.case-result {
  color: var(--accent-primary) !important;
  font-weight: 700;
  font-size: 1.15rem !important;
  max-width: 100% !important;
}
.case-meta {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.case-meta > div { display: flex; flex-direction: column; gap: 4px; font-size: 0.95rem; color: var(--text-primary); }
.case-meta > div span {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); font-weight: 600;
}
.case-meta a { color: var(--accent-primary); font-weight: 600; }
.case-tags { margin-bottom: 40px; }

/* Case study body (rendered Markdown) */
.case-body { color: var(--text-secondary); font-size: 1rem; line-height: 1.85; }
.case-body h2 {
  color: var(--text-primary); font-size: 1.4rem; font-weight: 800;
  margin: 40px 0 16px;
}
.case-body h2:first-child { margin-top: 0; }
.case-body p { margin-bottom: 18px; }
.case-body strong { color: var(--text-primary); font-weight: 700; }
.case-body a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 3px; }
.case-body ul { margin: 0 0 20px; padding-left: 0; }
.case-body li {
  position: relative; padding-left: 22px; margin-bottom: 10px; line-height: 1.7;
}
.case-body li::before {
  content: '▹'; position: absolute; left: 0; color: var(--accent-primary);
}
.case-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card:hover {
  border-color: rgba(56,189,248,0.4); transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(56,189,248,0.15);
}
.service-icon {
  margin-bottom: 18px;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(56,189,248,0.15);
  transition: all var(--transition);
}
.service-icon svg {
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 6px rgba(56,189,248,0.4));
  transition: transform var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.4);
}
.service-card:hover .service-icon svg { transform: scale(1.08); }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* Services: how-it-works steps */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.step-num {
  font-size: 0.85rem; font-weight: 800; letter-spacing: 2px;
  color: var(--accent-primary); margin-bottom: 12px;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.services-note {
  text-align: center; color: var(--text-secondary); font-size: 1.05rem;
  font-weight: 700;
  max-width: 640px; margin: 40px auto 0;
}

/* Story: readable prose column */
.story-prose { max-width: 760px; }

/* Contact CTA */
.contact-cta { text-align: center; margin-top: 8px; }
.contact-placeholder {
  color: var(--text-muted); font-size: 0.9rem;
  max-width: 560px; margin: 0 auto 24px; line-height: 1.7;
}
