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

    :root {
      --bg:       #08080f;
      --bg2:      #10101c;
      --bg3:      #16162a;
      --coral:    #2563eb;
      --gold:     #38bdf8;
      --purple:   #6366f1;
      --lavender: #a5b4fc;
      --white:    #f5f5f7;
      --muted:    #8888a8;
      --border:   rgba(255,255,255,0.08);
      --card:     rgba(22,22,42,0.85);
      --nav-bg:   rgba(8,8,15,0.75);
      --nav-bg-scroll: rgba(8,8,15,0.95);
      --grad:      linear-gradient(135deg, #2563eb 0%, #38bdf8 50%, #6366f1 100%);
      --grad2:     linear-gradient(135deg, #2563eb, #38bdf8);
      --radius:    16px;
      --text-body: rgba(245,245,247,0.75);
      --text:      #f5f5f7;
    }

    /* ─── LIGHT THEME ─────────────────────────────── */
    html.light {
      --bg:        #fafafa;
      --bg2:       #f0f0f5;
      --bg3:       #e8e8f0;
      --white:     #111118;
      --muted:     #55557a;
      --border:    rgba(0,0,0,0.09);
      --card:      rgba(255,255,255,0.92);
      --nav-bg:    rgba(250,250,250,0.8);
      --nav-bg-scroll: rgba(250,250,250,0.97);
      --text-body: rgba(17,17,24,0.78);
      --text:      #111118;
    }

    html.light body {
      background: var(--bg);
    }

    html.light body::before { opacity: 0.15; }

    html.light .blob { opacity: 0.12; }

    html.light nav {
      border-bottom-color: rgba(0,0,0,0.08);
    }

    html.light .btn-secondary {
      border-color: rgba(0,0,0,0.15);
      color: var(--white);
    }

    html.light .btn-secondary:hover {
      border-color: rgba(0,0,0,0.3);
      background: rgba(0,0,0,0.04);
    }

    html.light .social-btn {
      border-color: rgba(0,0,0,0.12);
      color: var(--white);
    }

    html.light .social-btn:hover {
      background: rgba(0,0,0,0.05);
      border-color: rgba(0,0,0,0.2);
    }

    html.light footer {
      border-top-color: rgba(0,0,0,0.08);
    }

    html.light .divider { background: rgba(0,0,0,0.07); }

    /* ─── TECH STACK FLOATING CARD STYLES ─────────────────────────────── */
    .tech-card {
      position: absolute;
      width: 90px;
      height: 90px;
      border-radius: 50%;
      padding: 0.6rem;
      cursor: pointer;
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.08) 100%);
      border: 1px solid rgba(139, 92, 246, 0.25);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.3rem;
      overflow: hidden;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      animation: float 6s ease-in-out infinite;
    }

    .tech-card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-15px); }
    }

    .tech-card:hover {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(168, 85, 247, 0.2) 100%);
      border-color: rgba(139, 92, 246, 0.6);
      transform: scale(1.15) !important;
      box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
    }

    .tech-card:hover::before {
      opacity: 1;
    }

    .tech-emoji {
      font-size: 1.8rem;
      display: block;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
      position: relative;
      z-index: 2;
    }

    .tech-card:hover .tech-emoji {
      transform: scale(1.2) rotate(10deg);
    }

    .tech-name {
      font-size: 0.65rem;
      font-weight: 700;
      color: var(--white);
      text-align: center;
      line-height: 1;
      transition: color 0.3s ease;
      position: relative;
      z-index: 2;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .tech-card:hover .tech-name {
      color: #a78bfa;
    }

    .tech-category {
      display: none;
    }

    html.light .tech-card {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.06) 100%);
      border-color: rgba(139, 92, 246, 0.2);
    }

    html.light .tech-card:hover {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
      border-color: rgba(139, 92, 246, 0.4);
      box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
    }

    html.light .tech-name {
      color: #111118;
    }

    html.light .tech-card:hover .tech-name {
      color: #6366f1;
    }

    /* Light mode card depth */
    html.light .stat-card,
    html.light .domain-card,
    html.light .project-card {
      background: #ffffff;
      box-shadow: 0 2px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
    }

    html.light .contact-card {
      background:
        linear-gradient(90deg, #2563eb, #38bdf8, #6366f1) top / 100% 2px no-repeat,
        linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px),
        #ffffff;
      background-size: 100% 2px, 24px 24px, 24px 24px, auto;
      box-shadow: 0 2px 20px rgba(37,99,235,0.08);
    }

    html.light a.cert-card,
    html.light .edu-card {
      background: #ffffff;
      box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    }

    html.light .chip {
      background: #ededf5;
      color: #111118;
      border-color: rgba(0,0,0,0.1);
    }

    html.light .chip:hover {
      background: rgba(37,99,235,0.1);
      border-color: rgba(37,99,235,0.3);
    }

    html.light .hamburger span { background: #111118; }

    html.light .project-body p { color: var(--text-body); }

    /* ─── LIGHT MODE TEXT READABILITY FIXES ──────── */
    html.light .stat-label { color: #111118; }

    html.light .tag-coral  { background: rgba(37,99,235,0.1);  color: #1d4ed8; border-color: rgba(37,99,235,0.3); }
    html.light .tag-gold   { background: rgba(2,132,199,0.1);  color: #0369a1; border-color: rgba(2,132,199,0.3); }
    html.light .tag-purple { background: rgba(124,58,237,0.1); color: #6d28d9; border-color: rgba(124,58,237,0.3); }
    html.light .tag-cyan   { background: rgba(14,116,144,0.1); color: #0e7490; border-color: rgba(14,116,144,0.3); }

    html.light .twin-online {
      color: #15803d;
      background: rgba(21,128,61,0.08);
      border-color: rgba(21,128,61,0.35);
    }
    html.light .twin-online-dot { background: #16a34a; box-shadow: 0 0 4px rgba(22,163,74,0.5); }
    html.light .twin-online-dot::after { border-color: rgba(22,163,74,0.6); }

    html.light .twin-disclaimer a { color: #1d4ed8; }
    html.light .twin-msg-error { color: #dc2626; border-color: rgba(220,38,38,0.35); }

    html.light .nav-badge-name {
      color: #1d4ed8;
      text-shadow: 0 0 12px rgba(37,99,235,0.35);
    }

    html.light .modal-impact { color: #1d4ed8; }
    html.light .modal-year { color: #1d4ed8; border-color: rgba(37,99,235,0.4); }
    html.light .skill-badge:not(.skill-badge-default) { color: #1d4ed8; }
    html.light a.cert-card:hover .cert-info h4 { color: #1d4ed8; }
    html.light .skill-card:hover .skill-card-info h4 { color: #1d4ed8; }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg);
      color: var(--white);
      overflow-x: hidden;
      line-height: 1.6;
    }

    h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

    a { text-decoration: none; color: inherit; }

    img, svg { max-width: 100%; }

    /* ─── NOISE TEXTURE ──────────────────────────────── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 0;
      opacity: 0.4;
    }

    /* ─── NAV ────────────────────────────────────────── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 0 2rem;
      height: 62px;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      background: var(--nav-bg);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      transition: background 0.3s, border-color 0.3s;
    }

    /* ─── THEME TOGGLE BUTTON ────────────────────── */
    .theme-toggle {
      position: relative;
      width: 64px;
      height: 35px;
      border-radius: 20px;
      border: none;
      background: transparent;
      cursor: pointer;
      padding: 0;
      overflow: visible;
      flex-shrink: 0;
      transition: box-shadow 0.25s;
    }

    .theme-toggle:hover {
      box-shadow: 0 0 12px rgba(56,189,248,0.3);
      border-radius: 20px;
    }

    .tt-lottie {
      width: 64px;
      height: 35px;
      pointer-events: none;
    }

    /* Sunset landscape toggle: night by default, day under html.light */
    .tt-scene { position: absolute; inset: 0; border-radius: 999px; overflow: hidden; pointer-events: none;
      background: linear-gradient(#0b1033, #312e81); box-shadow: inset 0 2px 6px rgba(0,0,0,0.4), 0 0 0 1px rgba(129,140,248,0.35);
      transition: background 0.7s ease, box-shadow 0.7s ease; }
    html.light .tt-scene { background: linear-gradient(#60a5fa, #bae6fd); box-shadow: inset 0 2px 6px rgba(0,0,0,0.18), 0 0 0 1px rgba(37,99,235,0.3); }
    .tt-sun { position: absolute; left: 9px; top: 7px; width: 16px; height: 16px; border-radius: 50%;
      background: radial-gradient(circle, #fef3c7, #f59e0b); box-shadow: 0 0 10px #fbbf24;
      transform: translateY(30px); transition: transform 0.8s cubic-bezier(.6,.05,.3,1); }
    html.light .tt-sun { transform: none; }
    .tt-moon { position: absolute; right: 10px; top: 6px; width: 14px; height: 14px; border-radius: 50%; box-shadow: -4px 2px 0 0 #f1f5f9;
      transform: none; transition: transform 0.8s cubic-bezier(.6,.05,.3,1) 0.1s; }
    html.light .tt-moon { transform: translateY(-30px); }
    .tt-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 1; transition: opacity 0.6s 0.3s; animation: ttTwinkle 1.6s infinite; }
    html.light .tt-star { opacity: 0; transition-delay: 0s; }
    @keyframes ttTwinkle { 50% { transform: scale(0.4); } }
    .tt-hill { position: absolute; bottom: -9px; border-radius: 50%; transition: background 0.7s ease; }
    .tt-h1 { left: -7px; width: 44px; height: 22px; background: #1e1b4b; }
    .tt-h2 { right: -10px; width: 50px; height: 25px; background: #312e81; }
    html.light .tt-h1 { background: #16a34a; }
    html.light .tt-h2 { background: #22c55e; }
    .tt-cloud { position: absolute; top: 9px; left: 0; width: 13px; height: 5px; border-radius: 5px; background: #fff; opacity: 0;
      animation: ttDrift 7s linear infinite; transition: opacity 0.5s; }
    .tt-cloud::before { content: ""; position: absolute; left: 3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
    .tt-cloud2 { top: 16px; transform: scale(0.8); animation-duration: 9s; animation-delay: -4s; }
    html.light .tt-cloud { opacity: 0.9; }
    @keyframes ttDrift { from { transform: translateX(70px); } to { transform: translateX(-20px); } }
    .theme-toggle:hover .tt-scene { box-shadow: inset 0 2px 6px rgba(0,0,0,0.4), 0 0 0 1px rgba(125,211,252,0.6), 0 0 14px rgba(56,189,248,0.35); }
    .theme-toggle:active .tt-scene { transform: scale(0.96); }
    .theme-toggle:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
    @media (prefers-reduced-motion: reduce) {
      .tt-sun, .tt-moon, .tt-scene, .tt-hill, .tt-star { transition: none; }
      .tt-star, .tt-cloud { animation: none; }
    }

    /* ─── COMMAND PALETTE ────────────────────── */
    .cmdk-trigger {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 50px;
      padding: 0.4rem 0.7rem;
      color: var(--muted);
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      font-size: 0.78rem;
      transition: border-color 0.25s, box-shadow 0.25s, color 0.25s;
      flex-shrink: 0;
    }

    .cmdk-trigger:hover {
      border-color: rgba(56,189,248,0.6);
      box-shadow: 0 0 10px rgba(56,189,248,0.25);
      color: var(--white);
    }

    .cmdk-kbd {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.68rem;
      font-weight: 600;
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 0.05rem 0.35rem;
    }

    .cmdk-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(6px);
      z-index: 2000;
      align-items: flex-start;
      justify-content: center;
      padding: 10vh 1.2rem 2rem;
    }

    .cmdk-backdrop.open { display: flex; }

    .cmdk-panel {
      width: 100%;
      max-width: 520px;
      background: var(--bg2);
      border: 1px solid rgba(56,189,248,0.35);
      border-radius: 16px;
      box-shadow: 0 0 40px rgba(37,99,235,0.25), 0 20px 60px rgba(0,0,0,0.4);
      overflow: hidden;
      animation: modalIn 0.2s ease;
    }

    .cmdk-input-row {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      padding: 1rem 1.2rem;
      border-bottom: 1px solid var(--border);
    }

    .cmdk-input-row svg { flex-shrink: 0; color: var(--muted); }

    #cmdk-input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      color: var(--white);
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
    }

    #cmdk-input::placeholder { color: var(--muted); }

    .cmdk-list {
      max-height: 50vh;
      overflow-y: auto;
      padding: 0.5rem;
    }

    .cmdk-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.65rem 0.8rem;
      border-radius: 10px;
      cursor: pointer;
      color: var(--text-body);
      font-size: 0.92rem;
    }

    .cmdk-item .cmdk-item-icon {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      background: var(--bg3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }

    .cmdk-item-label { flex: 1; }

    .cmdk-item-hint {
      font-size: 0.72rem;
      color: var(--muted);
    }

    .cmdk-item.active,
    .cmdk-item:hover {
      background: rgba(37,99,235,0.14);
      color: var(--white);
    }

    .cmdk-empty {
      padding: 1.5rem;
      text-align: center;
      color: var(--muted);
      font-size: 0.85rem;
    }

    html.light .cmdk-trigger { background: #fff; }
    html.light .cmdk-panel { background: #fff; }
    html.light .cmdk-item { color: #111118; }
    html.light .cmdk-item-icon { background: #f1f5f9; }

    @media (max-width: 600px) {
      .cmdk-trigger span { display: none; }
      .cmdk-trigger {
        padding: 0.5rem;
        border-radius: 50%;
        gap: 0;
      }
      .nav-right { gap: 0.5rem; }
    }

    html.light .tt-knob {
      left: 3px;
      background: #fff7d6;
      box-shadow: 0 0 10px rgba(251,191,36,0.6);
    }

    /* ─── THEME RING PULSE TRANSITION ───────────── */
    #theme-wave {
      position: fixed;
      width: 10px;
      height: 10px;
      margin: -5px 0 0 -5px;
      border-radius: 50%;
      border: 2px solid #38bdf8;
      background: transparent;
      box-shadow: 0 0 14px rgba(56,189,248,0.8), inset 0 0 10px rgba(56,189,248,0.4);
      transform: scale(0);
      opacity: 0;
      pointer-events: none;
      z-index: 9999;
    }

    .nav-logo {
      justify-self: start;
      display: flex;
      align-items: center;
      white-space: nowrap;
      text-decoration: none;
      cursor: pointer;
      transition: opacity 0.2s;
    }

    .nav-logo:hover {
      opacity: 0.8;
    }

    /* Hand-drawn signature logo */
    .nav-sig { --sig: #7dd3fc; --sig-ul: #38bdf8; }
    html.light .nav-sig { --sig: #1d4ed8; --sig-ul: #2563eb; }
    .nav-sig:hover { opacity: 1; }
    .sig-svg { display: block; width: 132px; height: 40px; overflow: visible; }
    .sig-text { font: 700 34px 'Caveat', cursive; fill: var(--sig); stroke: var(--sig); stroke-width: 1.1;
      stroke-dasharray: 400; stroke-dashoffset: 0; }
    .sig-ul { fill: none; stroke: var(--sig-ul); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 140; stroke-dashoffset: 0; }
    .nav-sig.sig-wait .sig-svg { opacity: 0; }
    .nav-sig.sig-draw .sig-text { animation: sigDraw 2.2s ease forwards; }
    .nav-sig.sig-draw .sig-ul { stroke-dashoffset: 140; animation: sigUl 0.6s ease 1.7s forwards; }
    @keyframes sigDraw { 0% { stroke-dashoffset: 400; fill: transparent; } 70% { stroke-dashoffset: 0; fill: transparent; } 100% { stroke-dashoffset: 0; fill: var(--sig); } }
    @keyframes sigUl { to { stroke-dashoffset: 0; } }
    .nav-sig .sig-svg { filter: drop-shadow(0 0 6px rgba(56,189,248,0.45)); transition: filter 0.3s; }
    html.light .nav-sig .sig-svg { filter: none; }
    .nav-sig:hover .sig-svg { filter: drop-shadow(0 0 10px rgba(56,189,248,0.7)); }
    @media (max-width: 400px) { .sig-svg { width: 112px; height: 34px; } }
    @media (prefers-reduced-motion: reduce) { .nav-sig.sig-draw .sig-text, .nav-sig.sig-draw .sig-ul { animation: none; stroke-dashoffset: 0; } }

    .nav-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(37,99,235,0.12);
      border: 1.5px solid rgba(56,189,248,0.55);
      padding: 0.4rem 1.3rem 0.4rem 1.4rem;
      clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
      line-height: 1;
      position: relative;
      overflow: hidden;
      animation: badgePulse 2.8s ease-in-out infinite;
      font-family: 'Space Grotesk', sans-serif;
    }

    .nav-badge-name {
      font-size: 1.1rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      color: #38bdf8;
      text-shadow:
        0 0 8px rgba(56,189,248,1),
        0 0 20px rgba(56,189,248,0.7),
        0 0 40px rgba(37,99,235,0.5);
    }

    .nav-badge::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -80%;
      width: 50%;
      height: 200%;
      background: linear-gradient(90deg, transparent, rgba(56,189,248,0.25), transparent);
      animation: badgeScan 3.5s ease-in-out infinite;
    }

    @keyframes badgePulse {
      0%, 100% { border-color: rgba(37,99,235,0.55); box-shadow: 0 0 6px rgba(37,99,235,0.25); }
      50%       { border-color: rgba(56,189,248,0.9); box-shadow: 0 0 14px rgba(56,189,248,0.5), 0 0 4px rgba(56,189,248,0.3) inset; }
    }

    @keyframes badgeScan {
      0%   { left: -80%; }
      100% { left: 180%; }
    }

    /* ─── NAV BADGE LIGHT TRACE ─────────────────── */
    .nav-badge-trace {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      overflow: visible;
    }

    .nav-badge-trace polygon {
      fill: none;
      stroke: #7dd3fc;
      stroke-width: 2.5;
      vector-effect: non-scaling-stroke;
      stroke-linecap: round;
      stroke-dasharray: 14 86;
      filter: drop-shadow(0 0 3px rgba(56,189,248,0.9));
      animation: badgeTrace 3.2s linear infinite;
    }

    @keyframes badgeTrace {
      to { stroke-dashoffset: -100; }
    }

    html.light .nav-badge-trace polygon {
      stroke: #1d4ed8;
      filter: drop-shadow(0 0 3px rgba(37,99,235,0.6));
    }

    /* ─── NAV BADGE HOVER GLITCH ────────────────── */
    .nav-badge-name {
      position: relative;
      display: inline-block;
    }

    .nav-badge-name::before,
    .nav-badge-name::after {
      content: attr(data-text);
      position: absolute;
      left: 0;
      top: 0;
      opacity: 0;
      text-shadow: none;
      pointer-events: none;
    }

    .nav-badge-name::before {
      color: #fb7185;
      clip-path: inset(0 0 52% 0);
    }

    .nav-badge-name::after {
      color: #818cf8;
      clip-path: inset(48% 0 0 0);
    }

    .nav-badge:hover .nav-badge-name::before { animation: glitchTop 0.45s steps(2, end); }
    .nav-badge:hover .nav-badge-name::after  { animation: glitchBot 0.45s steps(2, end); }
    .nav-badge:hover .nav-badge-name         { animation: glitchBase 0.45s steps(2, end); }

    @keyframes glitchTop {
      0%   { opacity: 1; transform: translate(-3px, -1px); }
      25%  { transform: translate(2.5px, 1px); }
      50%  { opacity: 1; transform: translate(-2px, 1px); }
      75%  { transform: translate(3px, -1px); }
      100% { opacity: 0; transform: translate(0, 0); }
    }

    @keyframes glitchBot {
      0%   { opacity: 1; transform: translate(3px, 1px); }
      25%  { transform: translate(-2.5px, -1px); }
      50%  { opacity: 1; transform: translate(2px, -1px); }
      75%  { transform: translate(-3px, 1px); }
      100% { opacity: 0; transform: translate(0, 0); }
    }

    @keyframes glitchBase {
      0%, 100% { transform: translate(0, 0); }
      30%      { transform: translate(1px, 0); }
      60%      { transform: translate(-1px, 0); }
    }

    .nav-links {
      display: flex;
      gap: 0.5rem;
      list-style: none;
      align-items: center;
      justify-self: center;
    }

    .nav-links a {
      font-size: 0.8rem;
      color: rgba(255,255,255,0.7);
      font-weight: 500;
      transition: color 0.25s, opacity 0.25s;
      letter-spacing: 0.01em;
      white-space: nowrap;
      padding: 0.4rem 0.55rem;
      border-radius: 6px;
      position: relative;
    }

    .nav-links a:hover {
      color: var(--white);
      background: rgba(37,99,235,0.25);
    }

    .nav-links a:active,
    .nav-links a.active {
      color: var(--coral);
      font-weight: 600;
      background: rgba(37,99,235,0.3);
    }

    html.light .nav-links a {
      color: #333333;
    }

    html.light .nav-links a:hover {
      color: #111118;
      background: rgba(37,99,235,0.75);
    }

    html.light .nav-links a:active,
    html.light .nav-links a.active {
      color: #ffffff;
      font-weight: 600;
      background: rgba(37,99,235,0.85);
    }

    /* ─── NAV DROPDOWN GROUPS ─────────────────────────── */
    .nav-item-group { position: relative; }
    .nav-group-trigger {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.8rem;
      color: rgba(255,255,255,0.7);
      font-weight: 500;
      letter-spacing: 0.01em;
      white-space: nowrap;
      padding: 0.4rem 0.55rem;
      border-radius: 6px;
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
      transition: color 0.25s, background 0.25s;
    }
    .nav-group-trigger:hover { color: var(--white); background: rgba(37,99,235,0.25); }
    .nav-group-trigger svg { transition: transform 0.25s; }
    .nav-item-group.open .nav-group-trigger svg,
    .nav-item-group:hover .nav-group-trigger svg { transform: rotate(180deg); }
    .nav-item-group.open .nav-group-trigger,
    .nav-item-group:hover .nav-group-trigger { color: var(--white); background: rgba(37,99,235,0.25); }
    html.light .nav-group-trigger { color: #333333; }
    html.light .nav-item-group.open .nav-group-trigger,
    html.light .nav-item-group:hover .nav-group-trigger { color: #111118; background: rgba(37,99,235,0.75); }

    /* Outer container is flush against the trigger (top:100%, no real gap) so the
       mouse never leaves a hoverable element while moving from button to menu.
       The 10px "gap" is invisible top padding on this same box - still part of
       its hit area - while the visible card lives in .nav-dropdown-inner below it. */
    .nav-dropdown {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      padding-top: 10px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.22s ease, visibility 0.22s;
      z-index: 150;
    }
    .nav-item-group.open .nav-dropdown,
    .nav-item-group:hover .nav-dropdown {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    .nav-dropdown-inner {
      min-width: 190px;
      background: var(--nav-bg-scroll);
      backdrop-filter: blur(20px);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.4rem;
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      box-shadow: 0 14px 32px rgba(0,0,0,0.35);
    }
    .nav-dropdown a {
      display: block;
      font-size: 0.8rem;
      color: rgba(255,255,255,0.75);
      padding: 0.5rem 0.7rem;
      border-radius: 8px;
      white-space: nowrap;
      transition: background 0.2s, color 0.2s;
    }
    .nav-dropdown a:hover { background: rgba(37,99,235,0.25); color: var(--white); }
    html.light .nav-dropdown a { color: #333333; }
    html.light .nav-dropdown a:hover { background: rgba(37,99,235,0.75); color: #111118; }

    .nav-right {
      justify-self: end;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 0.75rem;
    }

    .nav-cta {
      margin-left: 0.6rem;
      padding: 0.55rem 1.4rem;
      border-radius: 50px;
      background: var(--grad2);
      color: var(--bg) !important;
      font-weight: 700 !important;
      font-size: 0.85rem !important;
      transition: transform 0.2s, box-shadow 0.2s !important;
    }

    /* ── Say Hello: multilingual greeting + quick-contact menu ── */
    .hello-wrap { position: relative; }
    .hello-btn { border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 0.25rem; line-height: 1.2; }
    .hello-g { display: inline-block; min-width: 4.9em; text-align: center; transition: opacity 0.28s, transform 0.28s; }
    .hello-g.out { opacity: 0; transform: translateY(-7px); }
    .hello-lang { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.06em; opacity: 0.6; min-width: 1.4em; }
    .hello-car { font-size: 0.62rem; margin-left: 0.15rem; transition: transform 0.2s; }
    .hello-wrap.open .hello-car { transform: rotate(180deg); }
    .hello-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 6px; z-index: 1200;
      background: #151527; border: 1px solid rgba(56,189,248,0.25); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,0.5);
      opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top right; pointer-events: none; visibility: hidden;
      transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
    .hello-wrap.open .hello-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
    .nav-links .hello-menu a.hello-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.6rem; border-radius: 10px;
      color: var(--white); font-size: 0.82rem; font-weight: 600; text-decoration: none; text-align: left; }
    .nav-links .hello-menu a.hello-item::after { display: none; }
    .hello-item:hover, .hello-item:focus-visible { background: rgba(56,189,248,0.1); outline: none; }
    .hello-item i { font-style: normal; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,0.06); }
    .hello-item small { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 500; }
    .hello-item small.ok { color: #4ade80; }
    html.light .hello-menu { background: #fff; border-color: rgba(29,78,216,0.2); box-shadow: 0 18px 40px rgba(15,23,42,0.15); }
    html.light .nav-links .hello-menu a.hello-item { color: #0f172a; }
    html.light .hello-item i { background: #f1f5f9; }
    html.light .hello-item small.ok { color: #15803d; }
    .nav-links.mobile-open .hello-wrap { width: 100%; }
    .nav-links.mobile-open .hello-menu { position: static; width: 100%; margin-top: 0.5rem; box-shadow: none; transform: none; display: none; }
    .nav-links.mobile-open .hello-wrap.open .hello-menu { display: block; }
    @media (prefers-reduced-motion: reduce) { .hello-g, .hello-menu, .hello-car { transition: none; } }

    .nav-links .hello-btn:hover, .hello-wrap.open .hello-btn { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(56,189,248,0.45); }
    .nav-links .hello-menu a.hello-item:hover { background: rgba(56,189,248,0.1); color: var(--white); }
    html.light .nav-links .hello-menu a.hello-item:hover { color: #0f172a; }
    /* ── Nav: sliding glow pill + mega menu ── */
    @media (min-width: 901px) {
      .nav-links { position: relative; }
      .nav-pill { position: absolute; top: 0; left: 0; width: 0; height: 32px; border-radius: 999px; pointer-events: none; z-index: 0; opacity: 0;
        background: rgba(37,99,235,0.26); box-shadow: inset 0 0 0 1px rgba(56,189,248,0.45), 0 0 18px rgba(56,189,248,0.25);
        transition: left 0.32s cubic-bezier(.3,.8,.3,1), width 0.32s cubic-bezier(.3,.8,.3,1), top 0.32s, opacity 0.25s; }
      .nav-pill.on { opacity: 1; }
      .nav-links > li { position: relative; z-index: 1; }
      .nav-links > li > a:not(.nav-cta), .nav-links .nav-group-trigger { border-radius: 999px; padding: 0.4rem 0.8rem; }
      .nav-links > li > a:not(.nav-cta):hover, .nav-links > li > a:not(.nav-cta).active, .nav-links > li > a:not(.nav-cta):active,
      .nav-links .nav-group-trigger:hover, .nav-item-group.open .nav-group-trigger, .nav-item-group:hover .nav-group-trigger { background: transparent; color: var(--white); }
      .nav-links > li > a:not(.nav-cta).active { color: var(--white); font-weight: 500; }
      .nav-links > li > a:not(.nav-cta).active::after { display: none; }
      .nav-links .pill-here { color: var(--white); }
      html.light .nav-links > li > a:not(.nav-cta):hover, html.light .nav-links > li > a:not(.nav-cta).active, html.light .nav-links > li > a:not(.nav-cta):active,
      html.light .nav-item-group.open .nav-group-trigger, html.light .nav-item-group:hover .nav-group-trigger { background: transparent; color: #111118; box-shadow: none; }
      html.light .nav-links .pill-here { color: #111118; }
      html.light .nav-pill { background: rgba(37,99,235,0.12); box-shadow: inset 0 0 0 1px rgba(37,99,235,0.35), 0 0 14px rgba(37,99,235,0.15); }

      /* mega panel: centred under the whole bar */
      .nav-item-group .nav-dropdown { position: fixed; top: calc(100% - 18px); left: 50%; transform: translateX(-50%) translateY(-6px); padding-top: 26px;
        width: min(780px, 94vw); transition: opacity 0.22s ease, visibility 0.22s, transform 0.22s ease; }
      .nav-item-group.open .nav-dropdown, .nav-item-group:hover .nav-dropdown { transform: translateX(-50%); }
      .nav-dropdown-inner.mega { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 0.6rem; padding: 0.75rem; border-radius: 16px;
        border-color: rgba(56,189,248,0.22); box-shadow: 0 24px 50px rgba(0,0,0,0.45); }
      .mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem; }
    }
    .nav-links .nav-dropdown a.mega-link { display: flex; gap: 0.65rem; align-items: flex-start; white-space: normal; padding: 0.6rem 0.65rem; border-radius: 12px; color: var(--white); }
    .nav-links .nav-dropdown a.mega-link:hover, .nav-links .nav-dropdown a.mega-link.active { background: rgba(56,189,248,0.1); color: var(--white); }
    .nav-links .nav-dropdown a.mega-link.active { font-weight: 500; }
    .nav-links .nav-dropdown a.mega-link::after { display: none; }
    .mega-link i { font-style: normal; flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.06); font-size: 1rem; }
    .mega-link b { display: block; font-size: 0.84rem; font-weight: 600; }
    .mega-link small { display: block; font-size: 0.7rem; color: var(--muted); line-height: 1.4; margin-top: 1px; }
    .nav-links .nav-dropdown a.mega-feat { display: flex; flex-direction: column; gap: 0.3rem; white-space: normal; padding: 0.85rem; border-radius: 12px; color: var(--white);
      background: radial-gradient(120% 120% at 0 0, rgba(99,102,241,0.32), transparent 60%), rgba(255,255,255,0.03); border: 1px solid rgba(129,140,248,0.35); transition: border-color 0.2s, transform 0.2s; }
    .nav-links .nav-dropdown a.mega-feat:hover { border-color: rgba(125,211,252,0.6); transform: translateY(-1px); background: radial-gradient(120% 120% at 0 0, rgba(99,102,241,0.4), transparent 60%), rgba(255,255,255,0.04); }
    .nav-links .nav-dropdown a.mega-feat::after { display: none; }
    .mf-k { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em; color: #4ade80; }
    .mega-feat b { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; line-height: 1.3; }
    .mega-feat small { font-size: 0.72rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .mf-go { margin-top: auto; padding-top: 0.3rem; font-size: 0.74rem; font-weight: 600; color: #7dd3fc; }
    html.light .nav-links .nav-dropdown a.mega-link, html.light .nav-links .nav-dropdown a.mega-feat { color: #0f172a; }
    html.light .nav-links .nav-dropdown a.mega-link:hover, html.light .nav-links .nav-dropdown a.mega-link.active { background: rgba(37,99,235,0.08); color: #0f172a; }
    html.light .mega-link i { background: #f1f5f9; }
    html.light .nav-links .nav-dropdown a.mega-feat { background: radial-gradient(120% 120% at 0 0, rgba(99,102,241,0.14), transparent 60%), #f8fafc; border-color: rgba(99,102,241,0.3); }
    html.light .mf-k { color: #15803d; } html.light .mf-go { color: #1d4ed8; }
    @media (max-width: 900px) {
      .nav-pill, .mega-feat, .mega-link small { display: none !important; }
      .nav-links .nav-dropdown a.mega-link { padding: 0.45rem 0.6rem; align-items: center; }
      .mega-link i { width: 26px; height: 26px; font-size: 0.85rem; }
      .mega-links { display: flex; flex-direction: column; }
    }
    @media (prefers-reduced-motion: reduce) { .nav-pill, .nav-item-group .nav-dropdown { transition: none; } }
    .nav-links a.nav-cta:hover {
      background: var(--grad2);
      color: var(--bg) !important;
      filter: brightness(1.12);
      transform: translateY(-2px);
      box-shadow: 0 8px 22px rgba(56,189,248,0.45);
    }

    /* ─── SECTION WRAPPER ─────────────────────────────── */
    section { position: relative; padding: 6rem 2rem; max-width: 1100px; margin: 0 auto; text-align: left; }
    #hero, #contact { text-align: center; }

    .section-label {
      display: block;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      background: var(--grad2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 0.6rem;
    }

    .section-title {
      font-size: clamp(1.8rem, 3.5vw, 2.6rem);
      font-weight: 700;
      margin-bottom: 0.75rem;
      line-height: 1.15;
    }

    .lp-title-icon {
      display: inline-block;
      width: 150px;
      height: 150px;
      vertical-align: -42px;
      margin-right: 0.15em;
    }
    .lp-title-icon > div { width: 100%; height: 100%; }

    .rs-title-icon {
      display: inline-block;
      width: 130px;
      height: 130px;
      vertical-align: -36px;
      margin-right: 0.15em;
    }
    .rs-title-icon > div { width: 100%; height: 100%; }

    .rec-title-icon {
      display: inline-block;
      width: 150px;
      height: 150px;
      vertical-align: -42px;
      margin-right: 0.15em;
    }
    .rec-title-icon > div { width: 100%; height: 100%; }

    .os-title-icon {
      display: inline-block;
      width: 140px;
      height: 140px;
      vertical-align: -39px;
      margin-right: 0.15em;
    }
    .os-title-icon > div { width: 100%; height: 100%; }

    .cert-title-icon {
      display: inline-block;
      width: 160px;
      height: 160px;
      vertical-align: -45px;
      margin-right: 0.15em;
    }
    .cert-title-icon > div { width: 100%; height: 100%; }

    .tools-title-icon {
      display: inline-block;
      width: 140px;
      height: 140px;
      vertical-align: -39px;
      margin-right: 0.15em;
    }
    .tools-title-icon > div { width: 100%; height: 100%; }

    .edu-title-icon {
      display: inline-block;
      width: 140px;
      height: 140px;
      vertical-align: -39px;
      margin-right: 0.15em;
    }
    .edu-title-icon > div { width: 100%; height: 100%; }

    .exp-title-icon {
      display: inline-block;
      width: 140px;
      height: 140px;
      vertical-align: -39px;
      margin-right: 0.15em;
    }
    .exp-title-icon > div { width: 100%; height: 100%; }

    .work-title-icon {
      display: inline-block;
      width: 150px;
      height: 150px;
      vertical-align: -42px;
      margin-right: 0.15em;
    }
    .work-title-icon > div { width: 100%; height: 100%; }

    .domains-title-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
    }
    .domains-title-icon {
      display: inline-block;
      width: 140px;
      height: 140px;
      flex-shrink: 0;
    }
    .domains-title-icon > div { width: 100%; height: 100%; }
    .domains-title-row .section-title { margin-bottom: 0; }

    .twin-title-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
    }
    .twin-title-icon {
      display: inline-block;
      width: 160px;
      height: 160px;
      flex-shrink: 0;
    }
    .twin-title-icon > div { width: 100%; height: 100%; }
    .twin-title-row .section-title { margin-bottom: 0; }

    .footer-like-icon {
      display: inline-block;
      width: 28px;
      height: 28px;
      vertical-align: -8px;
    }
    .footer-like-icon > div { width: 100%; height: 100%; }

    .section-sub {
      color: var(--muted);
      font-size: 0.98rem;
      line-height: 1.65;
      max-width: 600px;
      margin-bottom: 3rem;
    }

    /* ─── DIVIDER ──────────────────────────────────── */
    .divider {
      width: 100%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
      max-width: 1100px;
      margin: 1.5rem auto;
    }

    /* ─── SCROLL ANIMATION ─────────────────────────── */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ═══════════════════════════════════════════════
       HERO
    ═══════════════════════════════════════════════ */
    #hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 8rem 2rem 9rem;
      max-width: 100%;
      overflow: hidden;
    }

    .hero-bg-blobs {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }

    .blob {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.18;
    }

    .blob-1 {
      width: 600px; height: 600px;
      background: radial-gradient(circle, #2563eb, transparent 70%);
      top: -150px; left: -150px;
      animation: float1 8s ease-in-out infinite;
    }

    .blob-2 {
      width: 500px; height: 500px;
      background: radial-gradient(circle, #38bdf8, transparent 70%);
      top: 100px; right: -100px;
      animation: float2 10s ease-in-out infinite;
    }

    .blob-3 {
      width: 400px; height: 400px;
      background: radial-gradient(circle, #a855f7, transparent 70%);
      bottom: -50px; left: 30%;
      animation: float1 12s ease-in-out infinite reverse;
    }

    @keyframes float1 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50%       { transform: translate(30px, -30px) scale(1.05); }
    }
    @keyframes float2 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50%       { transform: translate(-20px, 20px) scale(1.08); }
    }


    .hero-inner {
      position: relative;
      z-index: 1;
      text-align: center;
      max-width: 800px;
    }

    /* Geometric avatar */
    .avatar-wrap {
      width: 130px;
      height: 130px;
      margin: 0 auto 2.5rem;
      position: relative;
    }

    .avatar-wrap { position: relative; }

    .avatar-hex {
      width: 130px;
      height: 130px;
      filter: drop-shadow(0 0 16px rgba(56,189,248,0.5)) drop-shadow(0 0 38px rgba(37,99,235,0.3));
    }

    .hero-orbit-ring {
      animation: twinSpin 10s linear infinite;
      transform-origin: 65px 65px;
    }

    @keyframes twinSpin {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }

    .hero-orbit-core {
      animation: twinNodePulse 2.4s ease-in-out infinite;
      transform-origin: 65px 65px;
    }

    .avatar-inner {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    @keyframes rotateSlow {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }

    @keyframes float {
      0%, 100% { transform: translate(0, 0); }
      25%      { transform: translate(20px, -20px); }
      50%      { transform: translate(0, -40px); }
      75%      { transform: translate(-20px, -20px); }
    }

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

    @keyframes floatLeft {
      0%, 100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.6;
      }
      25% {
        transform: translateY(-50%) translateX(-30px);
        opacity: 0.8;
      }
      50% {
        transform: translateY(-50%) translateX(-50px);
        opacity: 0.5;
      }
      75% {
        transform: translateY(-50%) translateX(-30px);
        opacity: 0.7;
      }
    }

    @keyframes floatAround {
      0%, 100% { transform: translate(0, 0) scale(1); }
      25% { transform: translate(-40px, 30px) scale(1.1); }
      50% { transform: translate(-60px, 60px) scale(0.9); }
      75% { transform: translate(-30px, 40px) scale(1.05); }
    }

    @keyframes pulse {
      0%, 100% { opacity: 0.3; }
      50% { opacity: 0.8; }
    }

    /* Mobile spinning avatar */
    .mobile-avatar {
      display: none;
      width: 100px;
      height: 100px;
      margin: 2rem auto 1.5rem;
      position: relative;
    }

    .mobile-avatar svg {
      width: 100%;
      height: 100%;
      filter: drop-shadow(0 0 16px rgba(56,189,248,0.5)) drop-shadow(0 0 38px rgba(37,99,235,0.3));
    }

    @media (max-width: 600px) {
      .mobile-avatar {
        display: block;
      }
    }
    /* ── Hero atom: named electrons with light trails ── */
    .atom-live .hero-orbit-ring { animation: none; }
    .atom-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
    .atom-live { cursor: default; }
    .atom-lbl { position: absolute; z-index: 5; left: 0; top: 0; transform: translate(-50%, -150%); white-space: nowrap; pointer-events: none;
      font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700; color: #0b1220; border-radius: 8px; padding: 3px 9px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.2s; }
    .atom-lbl.on { opacity: 1; }
    @media (prefers-reduced-motion: reduce) { .atom-lbl { transition: none; } }

    .hero-badge {
      position: relative;
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.45rem 1.15rem;
      border: 1.5px solid rgba(56, 189, 248, 0.55);
      border-radius: 50px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: #7dd3fc;
      text-shadow: 0 0 10px rgba(56,189,248,0.8), 0 0 22px rgba(37,99,235,0.45);
      margin-bottom: 1.5rem;
      background: rgba(37, 99, 235, 0.12);
      animation: badgePulse 2.8s ease-in-out infinite;
    }

    .hero-badge::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -80%;
      width: 50%;
      height: 200%;
      background: linear-gradient(90deg, transparent, rgba(56,189,248,0.3), transparent);
      animation: badgeScan 3.5s ease-in-out infinite;
    }

    .hero-badge .dot-live {
      position: relative;
      width: 8px;
      height: 8px;
      background: #38bdf8;
      border-radius: 50%;
      box-shadow: 0 0 8px rgba(56,189,248,0.9);
      animation: pulse 2s ease-in-out infinite;
      flex-shrink: 0;
    }

    .hero-badge .dot-live::after {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 50%;
      border: 1.5px solid rgba(56,189,248,0.7);
      animation: dotPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    }

    @keyframes dotPing {
      0%   { transform: scale(1); opacity: 1; }
      80%, 100% { transform: scale(2.6); opacity: 0; }
    }

    html.light .hero-badge {
      color: #1d4ed8;
      text-shadow: none;
      background: rgba(37, 99, 235, 0.08);
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50%       { opacity: 0.5; transform: scale(0.8); }
    }

    .hero-name {
      font-size: clamp(3rem, 7vw, 5.5rem);
      font-weight: 900;
      line-height: 1;
      margin-bottom: 1rem;
      letter-spacing: -0.03em;
    }

    .hero-name span {
      background: var(--grad);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-title {
      font-size: clamp(1.1rem, 2.5vw, 1.4rem);
      color: var(--muted);
      font-weight: 400;
      margin-bottom: 1.5rem;
      letter-spacing: 0.02em;
    }

    .hero-tagline {
      font-size: clamp(0.95rem, 2vw, 1.15rem);
      color: var(--text-body);
      max-width: 580px;
      margin: 0 auto 2.5rem;
      line-height: 1.7;
    }

    .hero-buttons {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-primary {
      padding: 0.85rem 2rem;
      border-radius: 50px;
      background: var(--grad2);
      color: var(--bg);
      font-weight: 700;
      font-size: 0.95rem;
      transition: transform 0.2s, box-shadow 0.2s;
      cursor: pointer;
      border: none;
    }

    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 30px rgba(37,99,235,0.4);
    }

    .btn-primary:active {
      transform: scale(0.96);
      transition: transform 0.1s ease-out;
      box-shadow: 0 6px 16px rgba(37,99,235,0.35);
    }

    /* ─── HERO CTA: SHINE SWEEP + ARROW REVEAL ──── */
    .btn-shine {
      position: relative;
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .btn-shine::after {
      content: '';
      position: absolute;
      top: -60%;
      left: -90%;
      width: 45%;
      height: 220%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
      transform: rotate(18deg);
      pointer-events: none;
    }

    .btn-shine:hover::after {
      left: 140%;
      transition: left 0.55s ease;
    }

    .btn-shine:hover {
      box-shadow: 0 12px 32px rgba(56,189,248,0.55);
    }

    .btn-arrow {
      display: inline-block;
      width: 0;
      overflow: hidden;
      white-space: nowrap;
      transition: width 0.28s, margin-left 0.28s;
    }

    .btn-shine:hover .btn-arrow {
      width: 1.05em;
      margin-left: 0.5rem;
    }

    /* ─── HERO CTA: GHOST BUTTON LIGHT TRACE ────── */
    .btn-trace {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .btn-trace > span { position: relative; z-index: 1; }

    .btn-trace-svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      overflow: visible;
      pointer-events: none;
    }

    .btn-trace-svg rect {
      x: 1px;
      y: 1px;
      width: calc(100% - 2px);
      height: calc(100% - 2px);
      rx: 25px;
      fill: none;
      stroke: #7dd3fc;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-dasharray: 16 84;
      filter: drop-shadow(0 0 4px rgba(56,189,248,0.9));
      animation: badgeTrace 3.2s linear infinite;
    }

    .btn-trace:hover .btn-trace-svg rect {
      animation-duration: 1.3s;
      stroke: #a5d8ff;
    }

    html.light .btn-trace-svg rect {
      stroke: #1d4ed8;
      filter: drop-shadow(0 0 3px rgba(37,99,235,0.5));
    }

    .btn-secondary {
      padding: 0.85rem 2rem;
      border-radius: 50px;
      border: 1px solid var(--border);
      color: var(--white);
      font-weight: 600;
      font-size: 0.95rem;
      background: transparent;
      transition: all 0.2s;
      cursor: pointer;
    }

    .btn-secondary:hover {
      border-color: rgba(255,255,255,0.3);
      background: rgba(255,255,255,0.05);
      transform: translateY(-2px);
    }

    /* ─── JOURNEY MAP FLOATING REVEAL (Option C - top) ─── */
    .journey-reveal {
      display: inline-flex;
      position: relative;
    }
    .journey-trigger { flex-shrink: 0; }
    .journey-actions {
      position: absolute;
      bottom: calc(100% + 9px);
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      display: flex;
      gap: 0.4rem;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), visibility 0.3s;
      z-index: 20;
    }
    /* invisible bridge so the mouse can travel from the trigger to the
       floating buttons without crossing an empty gap and losing hover */
    .journey-actions::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: -12px;
      height: 14px;
    }
    .journey-reveal:hover .journey-actions,
    .journey-reveal.open .journey-actions {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }
    .journey-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.42rem 0.85rem;
      border-radius: 50px;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      white-space: nowrap;
      color: #fff;
      transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s, filter 0.25s;
    }
    .journey-chip svg { width: 13px; height: 13px; }
    .journey-view {
      background: linear-gradient(135deg, #2563eb, #38bdf8);
      box-shadow: 0 5px 14px rgba(37,99,235,0.4);
    }
    .journey-download {
      background: linear-gradient(135deg, #6366f1, #a855f7);
      box-shadow: 0 5px 14px rgba(99,102,241,0.4);
    }
    .journey-chip:hover { transform: translateY(-2px) scale(1.06); filter: brightness(1.12); }
    .journey-view:hover  { box-shadow: 0 9px 20px rgba(37,99,235,0.55); }
    .journey-download:hover { box-shadow: 0 9px 20px rgba(168,85,247,0.55); }

    /* Scroll hint */
    .scroll-hint {
      position: absolute;
      bottom: 1.6rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.45rem;
      pointer-events: none;
    }

    @media (max-height: 700px), (max-width: 640px) {
      .scroll-hint { display: none; }
    }

    .scroll-mouse {
      width: 24px;
      height: 38px;
      border: 1.5px solid rgba(56,189,248,0.8);
      border-radius: 13px;
      position: relative;
      box-shadow: 0 0 12px rgba(56,189,248,0.35), inset 0 0 8px rgba(56,189,248,0.1);
    }

    .scroll-wheel {
      position: absolute;
      left: 50%;
      top: 7px;
      width: 4px;
      height: 7px;
      margin-left: -2px;
      border-radius: 3px;
      background: #38bdf8;
      box-shadow: 0 0 6px rgba(56,189,248,0.9);
      animation: wheelDrop 1.8s ease-in-out infinite;
    }

    @keyframes wheelDrop {
      0%   { transform: translateY(0);    opacity: 0; }
      20%  { opacity: 1; }
      75%  { transform: translateY(13px); opacity: 1; }
      100% { transform: translateY(13px); opacity: 0; }
    }

    .scroll-chevrons {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }

    .scroll-chevrons span {
      width: 8px;
      height: 8px;
      border-right: 1.5px solid #38bdf8;
      border-bottom: 1.5px solid #38bdf8;
      transform: rotate(45deg);
      opacity: 0.2;
      animation: chevFade 1.8s ease-in-out infinite;
    }

    .scroll-chevrons span:nth-child(2) { animation-delay: 0.2s; }
    .scroll-chevrons span:nth-child(3) { animation-delay: 0.4s; }

    @keyframes chevFade {
      0%, 100% { opacity: 0.15; }
      40%      { opacity: 1; }
    }

    html.light .scroll-mouse { border-color: rgba(37,99,235,0.7); box-shadow: 0 0 10px rgba(37,99,235,0.2); }
    html.light .scroll-wheel { background: #1d4ed8; }
    html.light .scroll-chevrons span { border-color: #1d4ed8; }

    /* ─── SCROLL PROGRESS BAR ───────────────────── */
    #scroll-progress {
      position: fixed;
      top: 62px;
      left: 0;
      height: 3px;
      width: 0%;
      background: var(--grad);
      z-index: 99;
      box-shadow: 0 0 10px rgba(56,189,248,0.55);
      pointer-events: none;
      transition: width 0.1s linear;
    }

    /* ─── ROCKET BACK-TO-TOP ────────────────────── */
    #back-to-top {
      position: fixed;
      bottom: 1.6rem;
      right: 1.6rem;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 1px solid rgba(56,189,248,0.5);
      background: var(--grad2);
      font-size: 1.35rem;
      line-height: 1;
      cursor: pointer;
      z-index: 98;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transform: translateY(14px);
      transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
      box-shadow: 0 0 18px rgba(56,189,248,0.45);
    }

    #back-to-top.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    #back-to-top:hover {
      box-shadow: 0 0 28px rgba(56,189,248,0.7);
      transform: translateY(-3px) scale(1.06);
    }

    #back-to-top::before {
      content: 'Back to top';
      position: absolute;
      bottom: calc(100% + 12px);
      left: 50%;
      transform: translateX(-50%) translateY(5px);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      white-space: nowrap;
      color: #7dd3fc;
      background: var(--bg2);
      border: none;
      border-radius: 50px;
      padding: 0.35rem 0.8rem;
      box-shadow: 0 0 14px rgba(37,99,235,0.3);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s, transform 0.25s;
    }

    #back-to-top::after {
      content: '';
      position: absolute;
      bottom: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%) translateY(5px);
      border: 5px solid transparent;
      border-top-color: var(--bg2);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s, transform 0.25s;
    }

    #back-to-top.show::before,
    #back-to-top.show::after {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    #back-to-top.launch::before,
    #back-to-top.launch::after { opacity: 0 !important; }

    html.light #back-to-top::before {
      color: #1d4ed8;
      background: #ffffff;
      box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    }

    #back-to-top.launch { animation: rocketLaunch 0.7s ease-in forwards; }

    @keyframes rocketLaunch {
      0%   { transform: translateY(0) scale(1); opacity: 1; }
      25%  { transform: translateY(4px) scale(0.94); }
      100% { transform: translateY(-110px) scale(0.75); opacity: 0; }
    }

    /* ─── NAV SCROLLSPY UNDERLINE ───────────────── */
    .nav-links a.active::after {
      content: '';
      position: absolute;
      left: 0.8rem;
      right: 0.8rem;
      bottom: 0.1rem;
      height: 2px;
      border-radius: 2px;
      background: var(--grad2);
      box-shadow: 0 0 8px rgba(56,189,248,0.6);
    }

    /* ═══════════════════════════════════════════════
       RECENTLY SHIPPED
    ═══════════════════════════════════════════════ */
    #shipped { padding-top: 2.5rem; padding-bottom: 2.5rem; }

    .shipped-card {
      position: relative;
      max-width: 760px;
      margin: 0 auto;
      background: var(--card);
      border: 1px solid rgba(56,189,248,0.28);
      border-radius: 20px;
      padding: 1.6rem 1.9rem;
      overflow: hidden;
      box-shadow: 0 0 0 rgba(56,189,248,0);
      transition: box-shadow 0.4s;
    }

    .shipped-card:hover {
      box-shadow: 0 0 40px rgba(37,99,235,0.18), 0 0 10px rgba(56,189,248,0.12);
    }

    .shipped-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, transparent, transparent, #38bdf8, #818cf8, #38bdf8, transparent, transparent);
      background-size: 260% 100%;
      box-shadow: 0 0 10px rgba(56,189,248,0.5);
      animation: shippedSheen 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
      z-index: 2;
    }

    @keyframes shippedSheen {
      0%   { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    /* Ambient smoke - slow drifting blurred haze behind the card content */
    .shipped-card::after {
      content: '';
      position: absolute;
      inset: -25%;
      background:
        radial-gradient(circle at 22% 28%, rgba(56,189,248,0.20), transparent 58%),
        radial-gradient(circle at 78% 66%, rgba(99,102,241,0.18), transparent 55%),
        radial-gradient(circle at 48% 92%, rgba(129,140,248,0.14), transparent 60%);
      filter: blur(45px);
      opacity: 0.85;
      animation: shippedSmoke 16s ease-in-out infinite;
      pointer-events: none;
      z-index: 0;
    }

    @keyframes shippedSmoke {
      0%, 100% { transform: translate(0%, 0%) scale(1); }
      33%      { transform: translate(4%, -5%) scale(1.1); }
      66%      { transform: translate(-4%, 4%) scale(1.05); }
    }

    .shipped-header {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 1.25rem;
    }

    .shipped-live-dot {
      position: relative;
      width: 8px;
      height: 8px;
      background: #38bdf8;
      border-radius: 50%;
      box-shadow: 0 0 8px rgba(56,189,248,0.9);
      animation: dotBlink 1.6s ease-in-out infinite;
      flex-shrink: 0;
    }

    @keyframes dotBlink {
      0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(56,189,248,0.9); }
      50%      { opacity: 0.35; box-shadow: 0 0 3px rgba(56,189,248,0.4); }
    }

    .shipped-label {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      background: var(--grad2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .shipped-streak {
      display: inline-flex;
      align-items: center;
      gap: 0.32rem;
      padding: 0.28rem 0.65rem;
      border-radius: 50px;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.01em;
      color: #fb923c;
      background: rgba(251,146,60,0.12);
      border: 1px solid rgba(251,146,60,0.3);
      white-space: nowrap;
    }

    .shipped-sub {
      margin-left: auto;
      font-size: 0.75rem;
      color: var(--muted);
    }

    .rec-title-row {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      flex-wrap: wrap;
    }

    .rec-counter {
      display: inline-flex;
      align-items: center;
      gap: 0.32rem;
      padding: 0.28rem 0.7rem;
      border-radius: 50px;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.01em;
      color: #facc15;
      background: rgba(250,204,21,0.12);
      border: 1px solid rgba(250,204,21,0.3);
      white-space: nowrap;
      box-shadow: 0 0 8px rgba(250,204,21,0.35);
    }

    .rec-counter.rec-counter-glow {
      animation: recCounterGlow 1.1s ease-out;
    }

    @keyframes recCounterGlow {
      0% { box-shadow: 0 0 8px rgba(250,204,21,0.35); }
      45% { box-shadow: 0 0 20px rgba(250,204,21,0.85), 0 0 34px rgba(250,204,21,0.4); }
      100% { box-shadow: 0 0 8px rgba(250,204,21,0.35); }
    }

    html.light .rec-counter {
      color: #a16207;
      background: rgba(250,204,21,0.14);
      border-color: rgba(250,204,21,0.35);
    }

    @media (max-width: 480px) {
      .rec-counter { font-size: 0.68rem; padding: 0.24rem 0.55rem; }
    }

    .shipped-list {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
      padding-left: 40px;
    }

    /* Cap long lists (e.g. Live Post) to ~5 items tall with a scrollable
       window instead of dumping every entry on the page. */
    .shipped-list-scroll {
      max-height: 360px;
      overflow-y: auto;
      padding-top: 20px;
      padding-bottom: 20px;
      padding-right: 4px;
      scrollbar-width: none;
      -ms-overflow-style: none;
      -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
      mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    }

    .shipped-list-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }

    .lp-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .lp-chip {
      font: inherit;
      font-size: 0.72rem;
      font-weight: 600;
      padding: 0.32rem 0.8rem;
      border-radius: 50px;
      border: 1px solid var(--border);
      background: var(--bg3);
      color: var(--muted);
      cursor: pointer;
      transition: all 0.2s;
    }

    .lp-chip:hover { border-color: rgba(56,189,248,0.4); color: var(--text-body); }

    .lp-chip.active[data-filter="all"]         { background: linear-gradient(135deg,#2563eb,#6366f1); color: #fff; border-color: transparent; }
    .lp-chip.active[data-filter="achievement"] { background: rgba(245,158,11,0.18); color: #fbbf24; border-color: rgba(245,158,11,0.5); }
    .lp-chip.active[data-filter="article"]     { background: rgba(20,184,166,0.18); color: #5eead4; border-color: rgba(20,184,166,0.5); }
    .lp-chip.active[data-filter="newstart"]    { background: rgba(34,197,94,0.18); color: #86efac; border-color: rgba(34,197,94,0.5); }
    .lp-chip.active[data-filter="update"]      { background: rgba(168,85,247,0.18); color: #f0abfc; border-color: rgba(168,85,247,0.5); }

    .lp-scroll-wrap {
      display: flex;
      align-items: stretch;
      gap: 8px;
    }

    .lp-scroll-wrap .shipped-list-scroll { flex: 1; min-width: 0; }

    .lp-dots {
      width: 14px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-evenly;
      padding: 8px 0;
    }

    .lp-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--border);
      cursor: pointer;
      transition: all 0.25s;
      flex-shrink: 0;
      border: none;
      padding: 0;
    }

    .lp-dot:hover { background: rgba(56,189,248,0.6); }

    .lp-dot.active {
      background: #38bdf8;
      box-shadow: 0 0 8px rgba(56,189,248,0.7);
      transform: scale(1.4);
    }

    @media (max-width: 600px) {
      .lp-dots { display: none; }
    }
    /* ── Live Post · featured + headline list ── */
    .lpf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
    .lpf-hero { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.3rem 1.3rem 1.2rem; border-radius: 16px; text-decoration: none; color: inherit;
      background: radial-gradient(120% 120% at 0% 0%, rgba(99,102,241,0.32), rgba(56,189,248,0.07) 60%, transparent), rgba(255,255,255,0.03);
      border: 1px solid rgba(129,140,248,0.35); transition: border-color 0.2s, transform 0.2s; position: sticky; top: 90px; }
    a.lpf-hero:hover { border-color: rgba(125,211,252,0.6); transform: translateY(-2px); }
    .lpf-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
    .lpf-latest { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #0b1220; background: #4ade80; border-radius: 999px; padding: 2px 9px; }
    .lpf-emo { font-size: 2.1rem; line-height: 1; }
    .lpf-hero h3 { font-size: 1.15rem; line-height: 1.32; color: var(--white); margin: 0; }
    .lpf-hero p { font-size: 0.86rem; color: var(--text-body); margin: 0; line-height: 1.6; }
    .lpf-go { margin-top: auto; padding-top: 0.3rem; font-size: 0.78rem; font-weight: 600; color: #7dd3fc; }
    .lpf-side { min-width: 0; }
    .lpf-list { display: flex; flex-direction: column; }
    .lpf-row { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.62rem 0.5rem; border-bottom: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text-body); transition: background 0.15s, color 0.15s; animation: lpfIn 0.3s ease both; }
    a.lpf-row:hover, a.lpf-row:focus-visible { background: rgba(255,255,255,0.04); color: var(--white); outline: none; }
    .lpf-row-emo { flex: none; width: 1.4rem; text-align: center; font-size: 0.95rem; line-height: 1.5; }
    .lpf-row-body { flex: 1; min-width: 0; }
    .lpf-row-h { display: block; font-size: 0.86rem; font-weight: 500; line-height: 1.45; color: inherit; }
    .lpf-row-k { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s; }
    a.lpf-row:hover .lpf-row-k, a.lpf-row:focus-visible .lpf-row-k { max-height: 6em; opacity: 1; margin-top: 0.2rem; }
    .lpf-type { flex: none; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 2px 7px; margin-top: 0.2rem; white-space: nowrap; }
    .lpf-type-article     { color: #5eead4; background: rgba(20,184,166,0.13); }
    .lpf-type-achievement { color: #fbbf24; background: rgba(245,158,11,0.14); }
    .lpf-type-newstart    { color: #86efac; background: rgba(34,197,94,0.14); }
    .lpf-type-update      { color: #f0abfc; background: rgba(168,85,247,0.15); }
    .lpf-list.lpf-scroll { overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(56,189,248,0.45) transparent;
      -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); position: relative; }
    .lpf-list.lpf-scroll::-webkit-scrollbar { width: 6px; }
    .lpf-list.lpf-scroll::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.4); border-radius: 6px; }
    html.light .lpf-list.lpf-scroll { scrollbar-color: rgba(29,78,216,0.35) transparent; }
    html.light .lpf-list.lpf-scroll::-webkit-scrollbar-thumb { background: rgba(29,78,216,0.3); }
    .lpf-more { align-self: flex-start; margin-top: 0.7rem; font: inherit; font-size: 0.78rem; font-weight: 600; color: #7dd3fc; background: none; border: 0; padding: 0.2rem 0; cursor: pointer; }
    .lpf-more:hover { text-decoration: underline; }
    .lpf-empty { font-size: 0.82rem; color: var(--muted); padding: 0.6rem 0.4rem; }
    .lp-chip small { font-size: 0.66rem; opacity: 0.7; margin-left: 0.3rem; font-weight: 600; }
    @keyframes lpfIn { from { opacity: 0; transform: translateY(4px); } }
    html.light .lpf-hero { background: radial-gradient(120% 120% at 0% 0%, rgba(99,102,241,0.14), rgba(56,189,248,0.05) 60%, transparent), #fff; border-color: rgba(99,102,241,0.3); }
    html.light .lpf-go, html.light .lpf-more { color: #1d4ed8; }
    html.light a.lpf-row:hover { background: rgba(15,23,42,0.04); color: #0f172a; }
    html.light .lpf-latest { background: #16a34a; color: #fff; }
    html.light .lpf-type-article { color: #0f766e; } html.light .lpf-type-achievement { color: #b45309; }
    html.light .lpf-type-newstart { color: #15803d; } html.light .lpf-type-update { color: #7e22ce; }
    @media (hover: none) {
      .lpf-row-k { max-height: 1.5em; opacity: 1; margin-top: 0.15rem; white-space: nowrap; text-overflow: ellipsis; }
    }
    @media (max-width: 760px) {
      .lpf { grid-template-columns: minmax(0, 1fr); }
      .lpf-hero { position: static; }
    }
    @media (prefers-reduced-motion: reduce) { .lpf-row { animation: none; } .lpf-row-k { transition: none; } }

    .li-metrics { margin-top: 1.5rem; }
    /* ── LinkedIn Snapshot v2: KPI sparklines + tabbed analytics ── */
    .lsn { display: flex; flex-direction: column; gap: 0.9rem; }
    .lsn-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
    .lsn-kpi { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0.85rem 0.9rem 0.5rem; overflow: hidden; }
    .lsn-kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--c); opacity: 0.8; }
    .lsn-kpi .l { font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; }
    .lsn-kpi .v { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--white); line-height: 1.2; margin-top: 2px; }
    .lsn-kpi .s { font-size: 0.68rem; color: var(--muted); }
    .lsn-kpi svg { display: block; width: 100%; height: 42px; margin-top: 6px; cursor: crosshair; }
    .lsn-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
    .lsn-tabs button { font: inherit; font-size: 0.74rem; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 0.38rem 0.85rem; cursor: pointer; transition: all 0.2s; }
    .lsn-tabs button:hover { color: var(--white); border-color: rgba(56,189,248,0.4); }
    .lsn-tabs button.on { background: linear-gradient(135deg,#2563eb,#6366f1); color: #fff; border-color: transparent; }
    .lsn-panel { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem; min-height: 280px; }
    .lsn-view { display: none; animation: lsnIn 0.35s ease; }
    .lsn-view.on { display: block; }
    @keyframes lsnIn { from { opacity: 0; transform: translateY(6px); } }
    .lsn-rel { position: relative; }
    .lsn-tip { position: absolute; pointer-events: none; font-size: 0.7rem; font-weight: 600; color: #0b1220; background: #e0f2fe; border-radius: 7px; padding: 3px 8px; transform: translate(-50%, -130%); opacity: 0; transition: opacity 0.12s; white-space: nowrap; z-index: 5; }
    .lsn-note { font-size: 0.7rem; color: var(--muted); margin: 0.7rem 0 0; }
    .lsn-ann { font: 600 10px 'Inter', sans-serif; }
    .lsn-axis { fill: var(--muted); opacity: 0.75; }
    .lsn-grid { stroke: var(--border); }
    #lsn-grow { width: 100%; height: 220px; display: block; }
    .lsn-gstats { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
    .lsn-gstats b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; color: var(--white); }
    .lsn-gstats span { font-size: 0.7rem; color: var(--muted); }
    .lsn-tp { display: flex; flex-direction: column; gap: 0.35rem; }
    .lsn-tr { display: grid; grid-template-columns: 30px minmax(0, 1fr) 110px; gap: 0.8rem; align-items: center; text-decoration: none; color: inherit; padding: 0.45rem 0.4rem; border-radius: 10px; transition: background 0.15s; }
    .lsn-tr:hover { background: rgba(255,255,255,0.04); }
    .lsn-rk { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; background: linear-gradient(135deg,#60a5fa,#a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .lsn-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
    .lsn-tags span { font-size: 0.66rem; color: #93c5fd; background: rgba(56,189,248,0.1); border-radius: 999px; padding: 1px 7px; }
    .lsn-bar { height: 8px; border-radius: 8px; background: rgba(148,163,184,0.15); overflow: hidden; }
    .lsn-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg,#2563eb,#38bdf8); transition: width 1s cubic-bezier(.2,.8,.2,1); }
    .lsn-meta { font-size: 0.7rem; color: var(--muted); margin-top: 0.2rem; }
    .lsn-rate { text-align: right; }
    .lsn-rate b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; color: var(--white); }
    .lsn-rate span { font-size: 0.66rem; color: var(--muted); }
    .lsn-map { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.8rem; }
    .lsn-region { position: relative; min-height: 230px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 14px; padding: 0.7rem 0.8rem; overflow: hidden; }
    .lsn-region h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; color: var(--white); margin: 0; }
    .lsn-region h4 span { font: 500 0.7rem 'Inter', sans-serif; color: var(--muted); }
    .lsn-bub { position: absolute; border-radius: 50%; display: grid; place-items: center; font-size: 0.62rem; font-weight: 700; color: #fff;
      background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35), transparent 50%), var(--c); box-shadow: 0 0 18px var(--c);
      transform: translate(-50%, -50%) scale(0); transition: transform 0.6s cubic-bezier(.2,.9,.3,1.3); }
    .lsn-bubl { position: absolute; font-size: 0.62rem; color: var(--text-body); transform: translateX(-50%); white-space: nowrap; }
    .lsn-hmrow { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 1rem; align-items: start; }
    .lsn-hm { display: grid; grid-template-columns: 28px repeat(13, minmax(0, 1fr)); gap: 4px; align-items: center; max-width: 560px; }
    .lsn-hm .dl { font-size: 0.6rem; color: var(--muted); }
    .lsn-hm .c { aspect-ratio: 1; border-radius: 4px; background: rgba(148,163,184,0.1); }
    .lsn-hm .c[data-t] { cursor: default; }
    .lsn-hm .c.l1, .lsn-hlg .l1 { background: #1e3a8a; }
    .lsn-hm .c.l2, .lsn-hlg .l2 { background: #2563eb; }
    .lsn-hm .c.l3, .lsn-hlg .l3 { background: #38bdf8; }
    .lsn-hm .c.l4, .lsn-hlg .l4 { background: #a5f3fc; }
    .lsn-hlg .l0 { background: rgba(148,163,184,0.1); }
    .lsn-hlg { display: flex; align-items: center; gap: 4px; font-size: 0.64rem; color: var(--muted); margin-top: 0.6rem; max-width: 560px; justify-content: flex-end; }
    .lsn-hlg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
    .lsn-hmside { display: flex; flex-direction: column; gap: 0.5rem; }
    .lsn-hmside div { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 0.55rem 0.75rem; }
    .lsn-hmside b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; color: var(--white); }
    .lsn-hmside span { font-size: 0.68rem; color: var(--muted); }
    .lsn-atabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
    .lsn-atabs button { font: inherit; font-size: 0.7rem; font-weight: 700; color: var(--muted); background: none; border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.75rem; cursor: pointer; }
    .lsn-atabs button.on { background: linear-gradient(135deg,#f59e0b,#d97706); color: #0b1220; border-color: transparent; }
    .lsn-aud { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.1rem; align-items: center; }
    .lsn-donut { position: relative; width: 190px; height: 190px; }
    .lsn-ctr { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
    .lsn-ctr b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; color: var(--white); }
    .lsn-ctr span { font-size: 0.68rem; color: var(--muted); }
    .lsn-leg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1rem; font-size: 0.76rem; color: var(--text-body); }
    .lsn-leg span { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
    .lsn-leg i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
    .lsn-leg em { font-style: normal; margin-left: auto; color: var(--white); font-weight: 700; }
    .lsn-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.8rem; }
    .lsn-chips span { font-size: 0.7rem; color: var(--text-body); border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.6rem; background: rgba(255,255,255,0.03); }
    .lsn-chips b { color: #fbbf24; }
    html.light .lsn-kpi, html.light .lsn-panel, html.light .lsn-tabs button:not(.on) { background: #fff; }
    html.light .lsn-tags span { color: #1d4ed8; background: rgba(37,99,235,0.08); }
    html.light .lsn-chips b { color: #b45309; }
    html.light .lsn-region, html.light .lsn-hmside div, html.light .lsn-chips span { background: #f8fafc; }
    html.light .lsn-hm .c, html.light .lsn-hlg .l0 { background: rgba(15,23,42,0.07); }
    html.light .lsn-hm .c.l1, html.light .lsn-hlg .l1 { background: #bfdbfe; }
    html.light .lsn-hm .c.l2, html.light .lsn-hlg .l2 { background: #60a5fa; }
    html.light .lsn-hm .c.l3, html.light .lsn-hlg .l3 { background: #2563eb; }
    html.light .lsn-hm .c.l4, html.light .lsn-hlg .l4 { background: #1e3a8a; }
    @media (max-width: 760px) {
      .lsn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .lsn-map, .lsn-hmrow, .lsn-aud { grid-template-columns: minmax(0, 1fr); }
      .lsn-donut { margin: 0 auto; }
      .lsn-tr { grid-template-columns: 24px minmax(0, 1fr) 78px; gap: 0.5rem; }
      .lsn-panel { padding: 0.85rem; }
      .lsn-leg { grid-template-columns: minmax(0, 1fr); }
    }
    @media (prefers-reduced-motion: reduce) { .lsn-view, .lsn-bub, .lsn-bar i { animation: none; transition: none; } }

    .li-metrics-header {
      display: flex;
      align-items: baseline;
      gap: 0.6rem;
      flex-wrap: wrap;
      margin-bottom: 1rem;
    }

    .li-metrics-label {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 700;
      font-size: 1rem;
      color: var(--heading);
    }

    .li-metrics-sub {
      font-size: 0.78rem;
      color: var(--muted);
    }

    .li-metrics-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.1rem;
    }

    .li-flip-card {
      -webkit-perspective: 1200px;
      perspective: 1200px;
      height: 235px;
      cursor: pointer;
      /* Force this card onto its own compositing layer so the 3D subtree
         below isn't merged with siblings - helps iOS Safari keep the
         preserve-3d context intact instead of flattening it. */
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
    }

    .li-flip-inner {
      position: relative;
      width: 100%;
      height: 100%;
      transition: -webkit-transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1);
      -webkit-transform-style: preserve-3d;
      transform-style: preserve-3d;
      -webkit-transform: rotateY(0deg);
      transform: rotateY(0deg);
    }

    .li-flip-card.flipped .li-flip-inner { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); }

    @media (hover: hover) {
      .li-flip-card:hover .li-flip-inner { -webkit-transform: translateY(-4px); transform: translateY(-4px); }
      .li-flip-card.flipped:hover .li-flip-inner { -webkit-transform: rotateY(180deg) translateY(-4px); transform: rotateY(180deg) translateY(-4px); }
    }

    .li-flip-card:active {
      -webkit-transform: translateZ(0) scale(0.97);
      transform: translateZ(0) scale(0.97);
      transition: transform 0.1s ease-out;
    }

    .li-flip-face {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      width: 100%;
      height: 100%;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      border-radius: var(--radius);
      padding: 0.95rem 1.1rem;
      background: linear-gradient(160deg, rgba(37,99,235,0.14), rgba(56,189,248,0.06) 60%, var(--card));
      border: 1px solid rgba(56,189,248,0.18);
      display: flex;
      flex-direction: column;
      transition: border-color 0.3s, box-shadow 0.3s;
    }

    .li-flip-face > * { position: relative; z-index: 1; }

    /* Decorative sheen + glow live on the CARD itself, not inside the rotating
       faces. Any overflow:hidden or filter (blur) on a descendant of a
       backface-hidden 3D-transformed element breaks face-culling on Safari/iOS
       (both faces render at once, one mirrored) - so this layer sits as a
       sibling of .li-flip-inner, outside the 3D transform entirely. */
    .li-flip-card { position: relative; }

    .li-card-fx {
      position: absolute;
      inset: 0;
      border-radius: var(--radius);
      overflow: hidden;
      pointer-events: none;
      z-index: 0;
    }

    .li-card-fx::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, transparent, #38bdf8, #818cf8, #38bdf8, transparent, transparent);
      background-size: 260% 100%;
      animation: liSheen 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }

    @keyframes liSheen {
      0%   { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .li-card-fx::after {
      content: '';
      position: absolute;
      inset: -30%;
      background: radial-gradient(circle at 82% 12%, rgba(56,189,248,0.22), transparent 60%);
      filter: blur(30px);
    }

    .li-flip-inner { position: relative; z-index: 1; }

    .li-card-blue .li-flip-face   { border-color: rgba(56,189,248,0.22); }
    .li-card-green .li-flip-face  { border-color: rgba(74,222,128,0.22); }
    .li-card-purple .li-flip-face { border-color: rgba(129,140,248,0.22); }
    .li-card-amber .li-flip-face  { border-color: rgba(251,191,36,0.22); }

    .li-card-blue:hover .li-flip-face   { border-color: rgba(56,189,248,0.5); box-shadow: 0 12px 32px rgba(37,99,235,0.22), 0 0 22px rgba(56,189,248,0.16); }
    .li-card-green:hover .li-flip-face  { border-color: rgba(74,222,128,0.5); box-shadow: 0 12px 32px rgba(22,163,74,0.22), 0 0 22px rgba(74,222,128,0.16); }
    .li-card-purple:hover .li-flip-face { border-color: rgba(129,140,248,0.5); box-shadow: 0 12px 32px rgba(99,102,241,0.22), 0 0 22px rgba(129,140,248,0.16); }
    .li-card-amber:hover .li-flip-face  { border-color: rgba(251,191,36,0.5); box-shadow: 0 12px 32px rgba(245,158,11,0.22), 0 0 22px rgba(251,191,36,0.16); }

    .li-card-green .li-card-fx::before  { background: linear-gradient(90deg, transparent, transparent, #4ade80, #16a34a, #4ade80, transparent, transparent); background-size: 260% 100%; }
    .li-card-purple .li-card-fx::before { background: linear-gradient(90deg, transparent, transparent, #818cf8, #6366f1, #818cf8, transparent, transparent); background-size: 260% 100%; }
    .li-card-amber .li-card-fx::before  { background: linear-gradient(90deg, transparent, transparent, #fbbf24, #f59e0b, #fbbf24, transparent, transparent); background-size: 260% 100%; }

    .li-card-green .li-card-fx::after  { background: radial-gradient(circle at 82% 12%, rgba(74,222,128,0.22), transparent 60%); }
    .li-card-purple .li-card-fx::after { background: radial-gradient(circle at 82% 12%, rgba(129,140,248,0.22), transparent 60%); }
    .li-card-amber .li-card-fx::after  { background: radial-gradient(circle at 82% 12%, rgba(251,191,36,0.22), transparent 60%); }

    .li-flip-back { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); }

    .li-cat-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      font-size: 1rem;
      border-radius: 9px;
      background: var(--bg3);
      border: 1px solid var(--border);
      margin-bottom: 0.4rem;
    }

    .li-card-blue .li-cat-icon   { border-color: rgba(56,189,248,0.4); box-shadow: 0 0 10px rgba(56,189,248,0.35); }
    .li-card-green .li-cat-icon  { border-color: rgba(74,222,128,0.4); box-shadow: 0 0 10px rgba(74,222,128,0.35); }
    .li-card-purple .li-cat-icon { border-color: rgba(129,140,248,0.4); box-shadow: 0 0 10px rgba(129,140,248,0.35); }
    .li-card-amber .li-cat-icon  { border-color: rgba(251,191,36,0.4); box-shadow: 0 0 10px rgba(251,191,36,0.35); }

    .li-back-dot {
      display: inline-block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      margin-right: 0.4rem;
      background: #38bdf8;
      box-shadow: 0 0 8px rgba(56,189,248,0.7);
    }

    .li-card-green .li-back-dot  { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.7); }
    .li-card-purple .li-back-dot { background: #818cf8; box-shadow: 0 0 8px rgba(129,140,248,0.7); }
    .li-card-amber .li-back-dot  { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.7); }

    .li-cat-title {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 700;
      font-size: 0.85rem;
      color: var(--heading);
      margin: 0 0 0.4rem;
    }

    .li-stat-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.6rem;
      padding: 0.16rem 0;
      border-top: 1px solid var(--border);
    }

    .li-stat-row:first-of-type { border-top: none; }

    .li-stat-num {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 700;
      font-size: 1rem;
      background: var(--grad2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      white-space: nowrap;
    }

    .li-stat-lbl {
      font-size: 0.74rem;
      color: var(--text-body);
      text-align: right;
    }

    .li-flip-hint {
      margin-top: auto;
      padding-top: 0.3rem;
      font-size: 0.66rem;
      font-style: italic;
      color: var(--muted);
      align-self: flex-end;
    }

    .li-hero-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.6rem;
    }

    .li-hero-num {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 700;
      font-size: 1.65rem;
      line-height: 1.1;
      background: var(--grad2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin: 0;
    }

    .li-hero-num-success {
      background: none;
      -webkit-text-fill-color: #4ade80;
      color: #4ade80;
    }

    .li-hero-sub {
      font-size: 0.72rem;
      color: var(--muted);
      margin: 0.1rem 0 0;
    }

    .li-hero-sub2 {
      font-size: 0.74rem;
      color: var(--text-body);
      margin: 0.18rem 0 0;
    }

    .li-gauge-wrap { position: relative; width: 56px; height: 56px; flex-shrink: 0; }

    .li-gauge-val {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--heading);
    }

    .li-bar-row { margin-top: 0.45rem; }
    .li-bar-row:first-of-type { margin-top: 0.3rem; }

    .li-bar-label-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.72rem;
      color: var(--text-body);
      margin-bottom: 3px;
    }

    .li-bar-track {
      height: 5px;
      border-radius: 3px;
      background: var(--bg3);
      overflow: hidden;
    }

    .li-bar-fill {
      height: 100%;
      border-radius: 3px;
      background: linear-gradient(90deg, #2563eb, #38bdf8);
      box-shadow: 0 0 6px rgba(56,189,248,0.5);
    }

    .li-card-green .li-bar-fill  { background: linear-gradient(90deg, #16a34a, #4ade80); box-shadow: 0 0 6px rgba(74,222,128,0.5); }
    .li-card-purple .li-bar-fill { background: linear-gradient(90deg, #6366f1, #818cf8); box-shadow: 0 0 6px rgba(129,140,248,0.5); }
    .li-card-amber .li-bar-fill  { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 6px rgba(251,191,36,0.5); }

    .li-top-company {
      display: inline-block;
      margin-top: 0.45rem;
      font-size: 0.72rem;
      color: var(--text-body);
    }

    .li-chart { margin: 0.3rem 0 0.5rem; }

    .li-chart-bars {
      display: flex;
      align-items: flex-end;
      gap: 2px;
      height: 34px;
    }

    .li-chart-bar {
      flex: 1;
      min-height: 2px;
      border-radius: 2px 2px 0 0;
      background: linear-gradient(180deg, #7dd3fc, #2563eb);
    }

    .li-chart-green .li-chart-bar { background: linear-gradient(180deg, #86efac, #16a34a); }
    .li-chart-purple .li-chart-bar { background: linear-gradient(180deg, #c4b5fd, #6366f1); }

    .li-chart-caption {
      display: block;
      margin-top: 4px;
      font-size: 0.62rem;
      color: var(--muted);
    }

    @media (max-width: 700px) {
      .li-metrics-grid { grid-template-columns: 1fr; gap: 0.85rem; }
      .li-metrics-header { margin-bottom: 0.8rem; }
      .li-hero-num { font-size: 1.4rem; }
      .li-gauge-wrap { width: 48px; height: 48px; }
      .li-gauge-wrap svg { width: 48px; height: 48px; }
      .li-gauge-val { font-size: 0.66rem; }
      .li-hero-row { gap: 0.5rem; }
      .li-bar-label-row { font-size: 0.68rem; }
      .li-stat-lbl { font-size: 0.7rem; }
      .li-chart-caption { font-size: 0.6rem; }

      /* Mobile gets a plain tap-to-swap card instead of the 3D flip.
         iOS Safari's handling of preserve-3d + backface-visibility is
         unreliable across devices/versions (garbled/overlapping faces even
         with vendor prefixes and a dedicated compositing layer), so below
         this breakpoint we sidestep 3D transforms entirely: the "back" face
         is just hidden with display:none and swapped in on tap. Desktop
         keeps the 3D flip animation (mouse-driven, no Safari mobile bug). */
      .li-flip-card {
        height: auto;
        -webkit-perspective: none;
        perspective: none;
        -webkit-transform: none;
        transform: none;
      }
      .li-flip-inner {
        height: auto;
        -webkit-transform-style: flat;
        transform-style: flat;
        -webkit-transform: none !important;
        transform: none !important;
        transition: none;
      }
      .li-flip-face {
        position: static;
        width: 100%;
        height: auto;
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
      }
      /* .li-flip-back carries its own rotateY(180deg) for the desktop 3D
         flip; without the perspective/preserve-3d context it collapses to a
         flat horizontal mirror, which is what caused the reversed text.
         Cancel it explicitly on mobile. */
      .li-flip-face.li-flip-back {
        display: none;
        -webkit-transform: none;
        transform: none;
      }
      .li-flip-card.flipped .li-flip-face.li-flip-front { display: none; }
      .li-flip-card.flipped .li-flip-face.li-flip-back { display: flex; }
    }

    /* A 180deg rotation is a stronger, more disorienting motion than
       anything else on the site - swap it for a plain opacity cross-fade
       between the two faces (which stay absolutely positioned on top of
       each other, so nothing reflows) instead of spinning the card. */
    @media (prefers-reduced-motion: reduce) {
      .li-flip-card { -webkit-perspective: none; perspective: none; }
      .li-flip-card:active { transform: none; }
      .li-flip-inner {
        transition: none;
        -webkit-transform: none !important;
        transform: none !important;
        -webkit-transform-style: flat;
        transform-style: flat;
      }
      .li-flip-face {
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
        transition: opacity 0.2s ease;
        opacity: 1;
      }
      .li-flip-face.li-flip-back {
        -webkit-transform: none;
        transform: none;
        opacity: 0;
        pointer-events: none;
      }
      .li-flip-card.flipped .li-flip-face.li-flip-front { opacity: 0; pointer-events: none; }
      .li-flip-card.flipped .li-flip-face.li-flip-back { opacity: 1; pointer-events: auto; }
    }

    @media (max-width: 380px) {
      .li-hero-sub, .li-hero-sub2 { font-size: 0.68rem; }
    }

    /* Connecting rail - brightest near the newest item, fading with age */
    .ship-rail {
      position: absolute;
      left: 14.5px;
      top: 16px;
      bottom: 16px;
      width: 2px;
      border-radius: 2px;
      background: linear-gradient(180deg, rgba(56,189,248,0.55), rgba(99,102,241,0.22), transparent);
    }

    .ship-item {
      position: relative;
      padding: 0.35rem 0.6rem 0.35rem 0.15rem;
      border-radius: 12px;
      transition: background 0.25s, transform 0.25s;
    }

    .ship-item:hover {
      background: rgba(37,99,235,0.08);
      transform: translateX(4px);
    }

    a.ship-item {
      display: block;
      text-decoration: none;
      color: inherit;
      cursor: pointer;
    }

    a.ship-item.ship-item-linked:hover {
      background: rgba(56,189,248,0.14);
      box-shadow: 0 0 18px rgba(56,189,248,0.35);
    }

    .ship-icon {
      position: absolute;
      left: -40px;
      top: 0;
      width: 29px;
      height: 29px;
      border-radius: 9px;
      background: var(--bg3);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
    }

    .ship-rail + .ship-item .ship-icon {
      border-color: rgba(56,189,248,0.4);
      box-shadow: 0 0 10px rgba(56,189,248,0.35);
    }

    .ship-body { min-width: 0; }

    .ship-text {
      font-size: 0.88rem;
      color: var(--text-body);
      margin: 0;
      line-height: 1.5;
    }

    .ship-when {
      font-size: 0.7rem;
      color: var(--muted);
      margin: 2px 0 0;
    }

    /* ── Today's post highlight ── */
    a.ship-item.ship-item-today {
      background: rgba(74,222,128,0.06);
      border: 1px solid rgba(74,222,128,0.4);
      box-shadow: 0 0 20px rgba(74,222,128,0.13);
      padding: 0.6rem 0.75rem 0.6rem 0.7rem;
    }

    a.ship-item.ship-item-today:hover {
      background: rgba(74,222,128,0.11);
      box-shadow: 0 0 24px rgba(74,222,128,0.28);
    }

    .ship-item-today .ship-icon {
      border-color: rgba(74,222,128,0.5);
      box-shadow: 0 0 10px rgba(74,222,128,0.35);
    }

    .ship-today-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      margin-bottom: 0.3rem;
    }

    .ship-today-badge {
      font-size: 0.6rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      color: #4ade80;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .ship-today-badge .dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #4ade80;
      margin-right: 0.35rem;
      vertical-align: middle;
      animation: todayPulse 2s ease-in-out infinite;
    }

    @keyframes todayPulse {
      0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
      50%      { opacity: 0.6; box-shadow: 0 0 0 5px rgba(74,222,128,0); }
    }

    .ship-today-ago {
      font-size: 0.62rem;
      color: var(--muted);
      white-space: nowrap;
    }

    html.light a.ship-item.ship-item-today {
      background: rgba(21,128,61,0.05);
      border-color: rgba(21,128,61,0.35);
      box-shadow: 0 0 16px rgba(21,128,61,0.1);
    }
    html.light .ship-today-badge { color: #15803d; }
    html.light .ship-today-badge .dot { background: #15803d; }

    @media (prefers-reduced-motion: reduce) {
      .ship-today-badge .dot { animation: none; }
    }

    .ship-tag {
      display: inline-block;
      margin-left: 0.5rem;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      padding: 0.2rem 0.55rem;
      border-radius: 50px;
      white-space: nowrap;
      vertical-align: middle;
    }

    .ship-tag-feature     { color: #7dd3fc; background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.3); }
    .ship-tag-build       { color: #c4b5fd; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3); }
    .ship-tag-update      { color: #f0abfc; background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.3); }
    .ship-tag-post        { color: #7ec2f4; background: rgba(10,102,194,0.14); border: 1px solid rgba(10,102,194,0.4); }
    .ship-tag-achievement { color: #fbbf24; background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.4); }
    .ship-tag-article     { color: #5eead4; background: rgba(20,184,166,0.14); border: 1px solid rgba(20,184,166,0.4); }
    .ship-tag-newstart    { color: #86efac; background: rgba(34,197,94,0.14); border: 1px solid rgba(34,197,94,0.4); }

    /* Newest item: typewriter caret while typing + a one-time "just shipped" flash ring */
    .ship-text.ship-typing {
      display: inline-block;
      border-right: 2px solid #38bdf8;
      animation: caretBlink 0.75s step-end infinite;
    }

    @keyframes caretBlink {
      0%, 100% { border-color: #38bdf8; }
      50%      { border-color: transparent; }
    }

    .ship-item.ship-item-flash {
      animation: shipFlash 2.4s ease-in-out infinite;
    }

    @keyframes shipFlash {
      0%, 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0.5); background: rgba(56,189,248,0.08); }
      50%      { box-shadow: 0 0 0 8px rgba(56,189,248,0); background: transparent; }
    }

    /* GitHub-style contribution heatmap, recolored to the site's cyan accent */
    .ship-heatmap {
      position: relative;
      z-index: 1;
      margin-top: 1.4rem;
      padding-top: 1.2rem;
      border-top: 1px solid var(--border);
    }

    .heatmap-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.85rem;
      flex-wrap: wrap;
    }

    .heatmap-title {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-body);
    }

    .heatmap-sub {
      margin-left: auto;
      font-size: 0.68rem;
      color: var(--muted);
    }

    .heatmap-tabs {
      display: flex;
      gap: 2px;
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--border);
      border-radius: 50px;
      padding: 3px;
      flex-shrink: 0;
    }

    .heatmap-tab {
      font-family: inherit;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      color: var(--muted);
      background: transparent;
      border: none;
      border-radius: 50px;
      padding: 0.3rem 0.7rem;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.25s, color 0.25s, box-shadow 0.25s;
    }

    .heatmap-tab:hover { color: var(--white); }

    .heatmap-tab.active {
      color: #ffffff;
      background: var(--grad2);
      box-shadow: 0 0 10px rgba(56,189,248,0.4);
    }

    .heatmap-body { width: 100%; }

    /* ── Build skyline (hour-of-day area chart) ── */
    .ship-skyline-view { width: 100%; }

    .ship-skyline-view svg { display: block; width: 100%; height: 90px; }
    /* ── Build skyline: city of hours + work-rhythm cards ── */
    .bsky { position: relative; height: 140px; border-radius: 12px; overflow: hidden;
      background: linear-gradient(180deg, #0c1230 0%, #1d2a5a 50%, #3b2a5e 100%); border: 1px solid rgba(125,211,252,0.12); }
    .bsky-tod { position: absolute; top: 34px; transform: translateX(-50%); font-size: 0.56rem; font-weight: 700;
      letter-spacing: 0.04em; color: #fff7ed; background: rgba(15,14,34,0.45); border: 1px solid rgba(253,186,116,0.45);
      border-radius: 999px; padding: 0 6px; white-space: nowrap; pointer-events: none; z-index: 1; }
    .bsky-stars { position: absolute; inset: 0; opacity: 0.6; pointer-events: none;
      background-image: radial-gradient(1px 1px at 6% 22%, #fff, transparent), radial-gradient(1px 1px at 19% 12%, #fff, transparent),
        radial-gradient(1px 1px at 33% 30%, #fff, transparent), radial-gradient(1px 1px at 71% 16%, #fff, transparent),
        radial-gradient(1px 1px at 84% 34%, #fff, transparent), radial-gradient(1px 1px at 95% 14%, #fff, transparent); }
    .bsky-sun { position: absolute; top: 14px; width: 24px; height: 24px; border-radius: 50%;
      background: radial-gradient(circle, #fde68a, #f59e0b); box-shadow: 0 0 22px #f59e0b; }
    .bsky-moon { position: absolute; top: 16px; width: 18px; height: 18px; border-radius: 50%; box-shadow: -5px 3px 0 0 #e2e8f0; }
    .bsky-bld { position: absolute; bottom: 0; border-radius: 3px 3px 0 0; background-color: #0f0e22;
      border: 1px solid rgba(125,211,252,0.18); border-bottom: 0; cursor: default;
      background-image: radial-gradient(circle, var(--wc, rgba(251,191,36,0.95)) 1.2px, transparent 1.6px), linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.25));
      background-size: 7px 9px, 100% 100%; background-position: 2px 4px, 0 0; transition: height 0.8s cubic-bezier(.2,.8,.2,1); }
    .bsky-bld.dark { background-image: radial-gradient(circle, rgba(125,211,252,0.12) 1px, transparent 1.4px); }
    .bsky-bld.peak { border-color: #fbbf24; box-shadow: 0 0 18px rgba(251,191,36,0.35); }
    .bsky-bld:hover { border-color: #7dd3fc; }
    .bsky-peak { position: absolute; top: 8px; transform: translateX(-50%); font-size: 0.62rem; font-weight: 800;
      color: #0b1220; background: #fbbf24; border-radius: 6px; padding: 1px 7px; white-space: nowrap; z-index: 2; }
    .brhy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; margin-top: 0.9rem; }
    .brhy-blk { position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.55rem;
      border: 1px solid var(--border); border-radius: 12px; padding: 0.6rem 0.7rem 0.7rem; background: rgba(255,255,255,0.03); }
    .brhy-ic { font-size: 1.15rem; line-height: 1; }
    .brhy-blk b { display: block; font-size: 1.05rem; color: var(--white); line-height: 1.15; }
    .brhy-blk span { font-size: 0.62rem; color: var(--muted); }
    .brhy-blk em { font-style: normal; color: var(--rc2, #fbbf24); font-weight: 700; white-space: nowrap; }
    .brhy-blk { border-color: color-mix(in srgb, var(--rc2, #7dd3fc) 18%, var(--border)); }
    .brhy-fill { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--rc1, #2563eb), var(--rc2, #38bdf8)); }
    .brhy-blk.top { border-color: color-mix(in srgb, var(--rc2, #fbbf24) 60%, transparent); background: color-mix(in srgb, var(--rc1, #fbbf24) 12%, transparent); }
    html.light .bsky { background: linear-gradient(180deg, #bfdbfe 0%, #c7d2fe 55%, #e9d5ff 100%); border-color: rgba(29,78,216,0.15); }
    html.light .bsky-stars { opacity: 0; }
    html.light .bsky-tod { color: #7c2d12; background: rgba(255,255,255,0.7); border-color: rgba(234,88,12,0.4); }
    html.light .bsky-moon { box-shadow: -5px 3px 0 0 #64748b; }
    html.light .bsky-bld { background-color: #1e293b; border-color: rgba(30,41,59,0.4); }
    html.light .brhy-blk { background: #f8fafc; }
    html.light .brhy-blk em { color: var(--rc1, #b45309); }
    html.light .brhy-blk.top { background: color-mix(in srgb, var(--rc2, #fbbf24) 14%, #fff); border-color: color-mix(in srgb, var(--rc1, #d97706) 50%, transparent); }
    @media (max-width: 600px) {
      .bsky { height: 120px; }
      .bsky-bld { background-size: 5px 8px, 100% 100%; background-position: 1px 3px, 0 0; }
      .brhy { grid-template-columns: repeat(2, 1fr); }
    }
    @media (prefers-reduced-motion: reduce) { .bsky-bld { transition: none; } }

    .skyline-hourlabels {
      display: flex;
      justify-content: space-between;
      margin-top: 6px;
      font-size: 0.58rem;
      color: var(--muted);
    }

    /* 24 hour-of-day columns spanning the full card width */
    .heatmap-hourlabels {
      display: grid;
      grid-template-columns: repeat(24, 1fr);
      margin-left: 36px;
      margin-bottom: 5px;
      font-size: 0.56rem;
      color: var(--muted);
    }

    .heatmap-row { display: flex; gap: 6px; width: 100%; }

    .heatmap-daylabels {
      display: grid;
      grid-template-rows: repeat(7, 1fr);
      gap: 3px;
      width: 28px;
      flex-shrink: 0;
      font-size: 0.58rem;
      color: var(--muted);
    }

    .heatmap-daylabels span { display: flex; align-items: center; }

    .heatmap-grid {
      flex: 1;
      display: grid;
      grid-template-columns: repeat(24, 1fr);
      grid-template-rows: repeat(7, 15px);
      gap: 3px;
    }

    .heatmap-cell {
      width: 100%;
      height: 100%;
      border-radius: 3px;
      background: var(--bg3);
    }

    .heatmap-cell[data-level="1"] { background: rgba(56,189,248,0.25); }
    .heatmap-cell[data-level="2"] { background: rgba(56,189,248,0.5); }
    .heatmap-cell[data-level="3"] { background: rgba(56,189,248,0.78); }
    .heatmap-cell[data-level="4"] { background: #38bdf8; box-shadow: 0 0 4px rgba(56,189,248,0.5); }

    .heatmap-legend {
      display: flex;
      align-items: center;
      gap: 5px;
      margin-top: 0.8rem;
      font-size: 0.62rem;
      color: var(--muted);
    }

    .heatmap-legend .heatmap-cell {
      width: 11px;
      height: 11px;
      flex-shrink: 0;
      display: inline-block;
    }

    /* ── Punch card: sized dots on a heat scale (blue → cyan → violet → pink → amber) ── */
    .punch .heatmap-cell { background: none !important; box-shadow: none !important; display: grid; place-items: center;
      --s: 3px; --c: rgba(148,163,184,0.2); --g: 0px; }
    .punch .heatmap-cell::after { content: ""; display: block; width: var(--s); height: var(--s); border-radius: 50%;
      background: var(--c); box-shadow: 0 0 var(--g) var(--c); transition: transform 0.15s; }
    .punch .heatmap-cell:hover::after { transform: scale(1.25); }
    .punch .heatmap-cell[data-level="1"] { --s: 5px;  --c: #3b82f6; --g: 3px; }
    .punch .heatmap-cell[data-level="2"] { --s: 7px;  --c: #06b6d4; --g: 5px; }
    .punch .heatmap-cell[data-level="3"] { --s: 9px;  --c: #a855f7; --g: 6px; }
    .punch .heatmap-cell[data-level="4"] { --s: 11px; --c: #ec4899; --g: 8px; }
    .punch .heatmap-cell[data-level="5"] { --s: 13px; --c: #fbbf24; --g: 11px; }
    .heatmap-legend.punch .heatmap-cell { width: 14px; height: 14px; }
    html.light .punch .heatmap-cell[data-level="0"] { --c: rgba(100,116,139,0.28); }
    html.light .punch .heatmap-cell[data-level="5"] { --c: #f59e0b; }
    @media (max-width: 600px) {
      .heatmap-grid.punch { grid-template-rows: repeat(7, 12px); gap: 2px; }
      .heatmap-row .heatmap-daylabels { grid-template-rows: repeat(7, 12px); gap: 2px; }
      .heatmap-daylabels span { line-height: 1; overflow: hidden; }
      .heatmap-grid.punch .heatmap-cell::after { transform: scale(0.75); }
      .heatmap-grid.punch .heatmap-cell:hover::after { transform: scale(0.85); }
    }

    @media (max-width: 600px) {
      .heatmap-hourlabels { margin-left: 26px; font-size: 0.5rem; }
      .heatmap-daylabels { width: 20px; font-size: 0.5rem; }
      .heatmap-grid { grid-template-rows: repeat(7, 10px); gap: 2px; }
      /* Not enough room for title + sub-label + tabs on one line - drop the
         sub-label so the Skyline/3 weeks toggle stays put next to the title
         instead of wrapping to its own row. */
      .heatmap-header { flex-wrap: nowrap; }
      .heatmap-sub { display: none; }
    }

    html.light .shipped-card::after { opacity: 0.35; }
    html.light .shipped-card { background: #ffffff; }
    html.light .li-card-fx::after { opacity: 0.4; }
    html.light .li-cat-icon { background: #f1f5f9; }
    html.light .ship-icon { background: #f1f5f9; }
    html.light .ship-text { color: #111118; }
    html.light .ship-tag-feature     { color: #0369a1; }
    html.light .ship-tag-build       { color: #4338ca; }
    html.light .ship-tag-update      { color: #7e22ce; }
    html.light .ship-tag-post        { color: #004182; }
    html.light .ship-tag-achievement { color: #b45309; }
    html.light .ship-tag-article     { color: #0f766e; }
    html.light .ship-tag-newstart    { color: #15803d; }
    html.light .shipped-streak { color: #c2410c; background: rgba(251,146,60,0.14); border-color: rgba(251,146,60,0.35); }

    @media (max-width: 600px) {
      .shipped-card { padding: 1.2rem 1.1rem; }
      .ship-text { font-size: 0.82rem; }
      .shipped-list { padding-left: 34px; gap: 0.75rem; }
      .ship-icon { width: 25px; height: 25px; font-size: 0.8rem; left: -34px; }
      .ship-rail { left: 11.5px; }
      .shipped-sub { display: none; }
      .shipped-streak { font-size: 0.65rem; padding: 0.24rem 0.55rem; }
      .shipped-card::after { filter: blur(28px); }
    }

    /* ═══════════════════════════════════════════════
       ASK MY TWIN ABOUT THIS - inside project pop-ups
    ═══════════════════════════════════════════════ */
    .atw-box { border: 1px solid rgba(56,189,248,0.3); background: rgba(37,99,235,0.07); border-radius: 12px; padding: 0.9rem 1rem; }
    .atw-btn {
      font: inherit; font-size: 0.85rem; font-weight: 700; color: #0b1220; background: #7dd3fc; border: 0; border-radius: 10px;
      padding: 0.55rem 1rem; cursor: pointer; box-shadow: 0 0 0 0 rgba(125,211,252,0.55); animation: atwPulse 2.4s infinite;
    }
    .atw-btn:active { transform: scale(0.97); }
    @keyframes atwPulse { 70% { box-shadow: 0 0 0 10px rgba(125,211,252,0); } 100% { box-shadow: 0 0 0 0 rgba(125,211,252,0); } }
    .atw-qs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
    .atw-q {
      font: inherit; font-size: 0.78rem; text-align: left; color: var(--text-body); background: transparent;
      border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.75rem; cursor: pointer; transition: border-color 0.2s, color 0.2s;
    }
    .atw-q:hover { border-color: #38bdf8; color: var(--white); }
    .atw-note { font-size: 0.72rem; color: var(--muted); margin-top: 0.55rem; }
    html.light .atw-btn { background: #1d4ed8; color: #fff; }
    html.light .atw-box { border-color: rgba(29,78,216,0.3); background: rgba(29,78,216,0.05); }

    /* ═══════════════════════════════════════════════
       ARCHITECTURE X-RAY - 3D flip with timeline back
    ═══════════════════════════════════════════════ */
    .xr-host { position: relative; min-height: 320px; }
    .xr-inner { position: relative; flex: 1; display: flex; perspective: 1100px; }
    .xr-front { flex: 1; display: flex; flex-direction: column; transition: transform 0.32s cubic-bezier(0.55, 0, 0.75, 0.2); }
    .xr-back {
      position: absolute; inset: 0; transform: rotateY(-90deg); visibility: hidden; transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.45, 1);
      display: flex; flex-direction: column; padding: 1rem 1.05rem 0.9rem; overflow-y: auto; cursor: default;
      background-color: #0d0d1d; border-radius: inherit;
      background-image: linear-gradient(rgba(56,189,248,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,0.06) 1px, transparent 1px);
      background-size: 18px 18px;
    }
    .xr-host.xr-on { border-color: rgba(56,189,248,0.5); }
    .xr-host.xr-on::after { opacity: 0 !important; }
    .xr-btn {
      position: absolute; top: 10px; left: 10px; z-index: 4; font: inherit; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em;
      color: #0b1220; background: #7dd3fc; border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3); transition: transform 0.15s;
    }
    .xr-btn:hover { transform: translateY(-1px); }
    .xr-btn:active { transform: scale(0.95); }
    .xr-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.65rem; }
    .xr-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #7dd3fc; }
    .xr-close { font: inherit; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; color: #0b1220; background: #7dd3fc; border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
    .xr-steps { position: relative; padding-left: 1.1rem; display: flex; flex-direction: column; }
    .xr-steps::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 12px; width: 2px; background: linear-gradient(#94a3b8, #38bdf8, #a78bfa, #4ade80); }
    .xr-step { position: relative; padding: 0.1rem 0 0.55rem 0.4rem; font-size: 0.78rem; line-height: 1.4; color: var(--text-body); }
    .xr-step::before { content: ""; position: absolute; left: -1.1rem; top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: #0d0d1d; border: 2px solid var(--xc); }
    .xr-step b { display: block; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--xc); }
    .xr-io { --xc: #94a3b8; } .xr-det { --xc: #38bdf8; } .xr-llm { --xc: #a78bfa; } .xr-hum { --xc: #4ade80; }
    .xr-foot { margin-top: auto; padding-top: 0.5rem; display: flex; justify-content: flex-end; }
    .xr-open { font: inherit; font-size: 0.74rem; font-weight: 600; color: #7dd3fc; background: transparent; border: 1px solid rgba(56,189,248,0.35); border-radius: 8px; padding: 0.3rem 0.75rem; cursor: pointer; }
    .xr-open:hover { border-color: #38bdf8; }
    html.light .xr-back { background-color: #f8fafc; }
    html.light .xr-step::before { background: #f8fafc; }
    html.light .xr-title, html.light .xr-open { color: #1d4ed8; }
    html.light .xr-btn, html.light .xr-close { background: #1d4ed8; color: #fff; }
    html.light .xr-det { --xc: #1d4ed8; } html.light .xr-llm { --xc: #7c3aed; } html.light .xr-hum { --xc: #15803d; } html.light .xr-io { --xc: #64748b; }
    html.light .xr-host.xr-on { border-color: rgba(29,78,216,0.45); }
    @media (prefers-reduced-motion: reduce) { .xr-front, .xr-back { transition: none; } }

    /* xr-scroll-theme - themed scrollbars for X-ray back + PRD output */
    .xr-back, .prdd-doc { scrollbar-width: thin; scrollbar-color: rgba(56,189,248,0.45) transparent; }
    .xr-back::-webkit-scrollbar, .prdd-doc::-webkit-scrollbar { width: 6px; height: 6px; }
    .xr-back::-webkit-scrollbar-track, .prdd-doc::-webkit-scrollbar-track { background: transparent; }
    .xr-back::-webkit-scrollbar-thumb, .prdd-doc::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.4); border-radius: 6px; }
    .xr-back::-webkit-scrollbar-thumb:hover, .prdd-doc::-webkit-scrollbar-thumb:hover { background: rgba(56,189,248,0.7); }
    .xr-back::-webkit-scrollbar-corner, .prdd-doc::-webkit-scrollbar-corner { background: transparent; }
    html.light .xr-back, html.light .prdd-doc { scrollbar-color: rgba(29,78,216,0.35) transparent; }
    html.light .xr-back::-webkit-scrollbar-thumb, html.light .prdd-doc::-webkit-scrollbar-thumb { background: rgba(29,78,216,0.3); }
    html.light .xr-back::-webkit-scrollbar-thumb:hover, html.light .prdd-doc::-webkit-scrollbar-thumb:hover { background: rgba(29,78,216,0.55); }

    /* ═══════════════════════════════════════════════
       BEFORE / AFTER IMPACT SLIDER - functional domains
    ═══════════════════════════════════════════════ */
    .ba-card { position: relative; margin-top: 1.8rem; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.3rem 1.4rem 1.4rem; overflow: hidden; }
    .ba-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); }
    .ba-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #7dd3fc; }
    .ba-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
    .ba-head h3 { font-size: 1.05rem; color: var(--white); margin-top: 0.2rem; }
    .ba-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
    .ba-tabs button { font: inherit; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 999px; padding: 0.4rem 0.85rem; cursor: pointer; transition: all 0.2s; }
    .ba-tabs button.on { background: var(--grad2); color: #fff; border-color: transparent; }
    .ba-ends { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.5rem; }
    .ba-ends b { color: var(--white); font-weight: 600; }
    .ba-ends span:last-child { text-align: right; }
    .ba-range { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 8px; outline: none; cursor: pointer; background: linear-gradient(90deg, #475569, #2563eb, #38bdf8); }
    .ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 0; box-shadow: none; cursor: grab; }
    .ba-range::-moz-range-thumb { width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 0; cursor: grab; }
    .ba-range:focus-visible { box-shadow: 0 0 0 3px rgba(56,189,248,0.35); }
    .ba-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin: 1rem 0; }
    .ba-m { background: rgba(37,99,235,0.06); border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem 0.9rem; }
    .ba-m .k { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
    .ba-m .v { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
    .ba-m .s { font-size: 0.74rem; color: #7dd3fc; }
    .ba-track { position: relative; padding-top: 2.4rem; }
    .ba-thumb {
      position: absolute; top: calc(2.4rem + 4px); left: 20px; transform: translate(-50%, -50%); pointer-events: none; z-index: 2;
      width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; line-height: 1;
      border: 2px solid #94a3b8; background: #1e293b; transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    }
    .ba-thumb.ai { background: #0c1a33; border-color: #38bdf8; box-shadow: 0 0 18px rgba(56,189,248,0.7); }
    .ba-range:focus-visible ~ .ba-thumb { outline: 3px solid rgba(56,189,248,0.45); outline-offset: 2px; }
    html.light .ba-thumb { background: #e2e8f0; border-color: #64748b; }
    html.light .ba-thumb.ai { background: #dbeafe; border-color: #1d4ed8; box-shadow: 0 0 14px rgba(29,78,216,0.4); }
    .ba-bubble {
      position: absolute; top: 0; left: 12px; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
      font-size: 0.76rem; font-weight: 700; color: #0b1220; background: #7dd3fc; border-radius: 8px; padding: 0.2rem 0.6rem;
      font-variant-numeric: tabular-nums; box-shadow: 0 4px 14px rgba(56,189,248,0.3);
    }
    .ba-bubble::after { content: ""; position: absolute; left: calc(50% + var(--arrow, 0px)); bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #7dd3fc; border-bottom: 0; }
    .ba-bubble.manual { background: #cbd5e1; }
    .ba-bubble.manual::after { border-top-color: #cbd5e1; }
    html.light .ba-bubble { background: #1d4ed8; color: #fff; }
    html.light .ba-bubble::after { border-top-color: #1d4ed8; }
    html.light .ba-bubble.manual { background: #64748b; }
    html.light .ba-bubble.manual::after { border-top-color: #64748b; }
    .ba-play { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
    .ba-pbtn {
      width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--grad2); color: #fff;
      font-size: 0.95rem; cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(56,189,248,0.5); animation: baPulse 2.2s infinite;
    }
    .ba-pbtn:active { transform: scale(0.94); }
    .ba-pbtn.playing { animation: none; }
    @keyframes baPulse { 70% { box-shadow: 0 0 0 12px rgba(56,189,248,0); } 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); } }
    .ba-ptext { font-size: 0.86rem; color: var(--white); }
    .ba-steps-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
    .ba-steps { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.45rem; }
    .ba-steps span { font-size: 0.74rem; padding: 0.3rem 0.6rem; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-body); transition: all 0.3s; }
    .ba-steps span.auto { background: rgba(56,189,248,0.13); border-color: rgba(56,189,248,0.4); color: #7dd3fc; }
    .ba-foot { font-size: 0.7rem; color: var(--muted); margin-top: 0.8rem; }
    html.light .ba-eyebrow, html.light .ba-m .s, html.light .ba-steps span.auto { color: #1d4ed8; }
    html.light .ba-steps span.auto { background: rgba(29,78,216,0.08); border-color: rgba(29,78,216,0.35); }
    html.light .ba-steps span { background: rgba(0,0,0,0.03); }
    @media (max-width: 720px) {
      .ba-metrics { grid-template-columns: 1fr; }
      .ba-card { padding: 1.1rem 1rem 1.2rem; }
      .ba-ends { flex-direction: column; gap: 0.2rem; }
      .ba-ends span:last-child { text-align: left; }
    }
    @media (prefers-reduced-motion: reduce) {
      .atw-btn, .ba-pbtn { animation: none; }
      .ba-steps span { transition: none; }
    }

    /* ═══════════════════════════════════════════════
       PROMPT-TO-PRD - live demo of the prd-writer skill
    ═══════════════════════════════════════════════ */
    .prdd-card {
      position: relative; margin-top: 2rem; background: var(--card); border: 1px solid var(--border);
      border-radius: 16px; padding: 1.4rem 1.5rem 1.5rem; overflow: hidden;
    }
    .prdd-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); }
    .prdd-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #7dd3fc; display: flex; align-items: center; gap: 0.5rem; }
    .prdd-live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: prddPing 1.8s infinite; }
    @keyframes prddPing { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
    .prdd-title { font-size: 1.15rem; margin: 0.4rem 0 0.2rem; color: var(--white); }
    .prdd-sub { font-size: 0.86rem; color: var(--text-body); margin-bottom: 1rem; }
    .prdd-sub a { color: #7dd3fc; text-decoration: none; border-bottom: 1px dashed rgba(125,211,252,0.5); }
    .prdd-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
    .prdd-input {
      flex: 1; min-width: 220px; font: inherit; font-size: 0.92rem; color: var(--white);
      background: rgba(37,99,235,0.06); border: 1px solid rgba(56,189,248,0.3); border-radius: 10px; padding: 0.7rem 0.9rem; outline: none;
    }
    .prdd-input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
    .prdd-btn {
      font: inherit; font-size: 0.86rem; font-weight: 600; color: #fff; border: 0; border-radius: 10px; padding: 0.7rem 1.2rem;
      background: var(--grad2); cursor: pointer; white-space: nowrap;
    }
    .prdd-btn:disabled { opacity: 0.55; cursor: not-allowed; }
    .prdd-btn:active:not(:disabled) { transform: scale(0.97); }
    .prdd-btn.ghost { background: transparent; border: 1px solid rgba(56,189,248,0.35); color: #7dd3fc; padding: 0.5rem 0.9rem; font-size: 0.8rem; }
    .prdd-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.75rem; }
    .prdd-row-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 0.2rem; }
    .prdd-chip {
      font: inherit; font-size: 0.76rem; color: var(--text-body); background: rgba(37,99,235,0.07); border: 1px solid var(--border);
      border-radius: 999px; padding: 0.3rem 0.75rem; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
    }
    .prdd-chip:hover { border-color: #38bdf8; }
    .prdd-chip.on { background: var(--grad2); color: #fff; border-color: transparent; }
    .prdd-meta { font-size: 0.74rem; color: var(--muted); margin-top: 0.7rem; }
    .prdd-out { display: none; margin-top: 1.1rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(8,8,15,0.45); }
    .prdd-out.on { display: block; animation: prddFade 0.35s ease; }
    @keyframes prddFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
    .prdd-out-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); }
    .prdd-out-bar span { font-size: 0.74rem; color: var(--muted); }
    .prdd-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
    .prdd-loading { padding: 1.4rem 1rem; display: flex; align-items: center; gap: 0.8rem; color: var(--text-body); font-size: 0.88rem; }
    .prdd-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(56,189,248,0.25); border-top-color: #38bdf8; animation: prddSpin 0.8s linear infinite; flex: none; }
    @keyframes prddSpin { to { transform: rotate(360deg); } }
    .prdd-doc { padding: 1rem 1.2rem 1.3rem; max-height: 560px; overflow-y: auto; font-size: 0.88rem; color: var(--text-body); line-height: 1.7; }
    .prdd-doc h1 { font-size: 1.25rem; margin: 0.2rem 0 0.6rem; color: var(--white); }
    .prdd-doc h2 { font-size: 1.02rem; margin: 1.2rem 0 0.4rem; color: var(--white); padding-top: 0.6rem; border-top: 1px solid var(--border); }
    .prdd-doc h3, .prdd-doc h4 { font-size: 0.9rem; margin: 0.9rem 0 0.3rem; color: #7dd3fc; }
    .prdd-doc p { margin: 0.35rem 0; }
    .prdd-doc ul, .prdd-doc ol { margin: 0.3rem 0 0.5rem 1.3rem; }
    .prdd-doc li { margin: 0.15rem 0; }
    .prdd-doc li.task { list-style: none; margin-left: -1.1rem; }
    .prdd-doc strong { color: var(--white); }
    .prdd-doc code { font-size: 0.8rem; background: rgba(56,189,248,0.1); border-radius: 4px; padding: 0 4px; }
    .prdd-doc pre { background: rgba(0,0,0,0.3); border-radius: 8px; padding: 0.7rem; overflow-x: auto; font-size: 0.8rem; }
    .prdd-doc blockquote { border-left: 3px solid #6366f1; padding: 0.3rem 0.8rem; margin: 0.5rem 0; background: rgba(99,102,241,0.08); border-radius: 0 8px 8px 0; }
    .prdd-doc hr { border: 0; border-top: 1px solid var(--border); margin: 0.8rem 0; }
    .prdd-tbl { overflow-x: auto; margin: 0.5rem 0; }
    .prdd-doc table { border-collapse: collapse; width: 100%; font-size: 0.8rem; }
    .prdd-doc th, .prdd-doc td { border: 1px solid var(--border); padding: 0.4rem 0.55rem; text-align: left; vertical-align: top; }
    .prdd-doc th { background: rgba(37,99,235,0.12); color: var(--white); font-weight: 600; }
    .prdd-err { padding: 1rem 1.2rem; color: #fca5a5; font-size: 0.86rem; }
    .prdd-foot { font-size: 0.72rem; color: var(--muted); padding: 0.6rem 1rem; border-top: 1px solid var(--border); }
    html.light .prdd-eyebrow, html.light .prdd-sub a, html.light .prdd-btn.ghost, html.light .prdd-doc h3, html.light .prdd-doc h4 { color: #1d4ed8; }
    html.light .prdd-btn.ghost { border-color: rgba(29,78,216,0.35); }
    html.light .prdd-out { background: rgba(255,255,255,0.6); }
    html.light .prdd-input { border-color: rgba(29,78,216,0.3); }
    html.light .prdd-err { color: #b91c1c; }
    html.light .prdd-doc pre { background: rgba(0,0,0,0.05); }
    /* PRD demo · skill trace + scorecard */
    .prdd-think { display: grid; grid-template-columns: 270px 1fr; gap: 1.1rem; padding: 1.1rem 1rem; }
    .prdd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
    .prdd-steps li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.8rem; opacity: 0.38; transition: opacity 0.3s; }
    .prdd-steps li.run, .prdd-steps li.done { opacity: 1; }
    .prdd-steps b { display: block; color: var(--white); font-weight: 600; }
    .prdd-steps small { color: var(--muted); font-size: 0.74rem; word-break: break-word; }
    .prdd-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(148,163,184,0.35); display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; color: #0b1220; margin-top: 1px; }
    .prdd-steps li.run .prdd-dot { border-color: #38bdf8; border-top-color: transparent; animation: prddSpin 0.8s linear infinite; }
    .prdd-steps li.done .prdd-dot { background: #4ade80; border-color: #4ade80; animation: none; }
    .prdd-steps li.done .prdd-dot::after { content: "✓"; }
    .prdd-skel { position: relative; border: 1px solid var(--border); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; background: rgba(8,8,15,0.35); }
    .prdd-skel i { display: block; height: 9px; width: 100%; border-radius: 6px; background: linear-gradient(90deg, rgba(56,189,248,0.08), rgba(56,189,248,0.22), rgba(56,189,248,0.08)); background-size: 200% 100%; animation: prddShim 1.4s linear infinite; }
    .prdd-skel span { font-size: 0.74rem; color: var(--muted); margin-top: 0.2rem; }
    @keyframes prddShim { to { background-position: -200% 0; } }
    .prdd-caret { display: inline-block; width: 7px; height: 15px; background: #38bdf8; vertical-align: -2px; margin-left: 2px; animation: prddBlink 1s steps(1) infinite; }
    @keyframes prddBlink { 50% { opacity: 0; } }
    .prdd-out-bar .prdd-trail { font-size: 0.74rem; color: var(--muted); }
    .prdd-trail b { color: #4ade80; margin-left: 0.25rem; }
    .prdd-doc { position: relative; }
    .prdd-doc .prdd-fixed { background: rgba(74,222,128,0.07); box-shadow: -10px 0 0 rgba(74,222,128,0.07), 10px 0 0 rgba(74,222,128,0.07), inset 3px 0 0 #4ade80; padding-left: 0.6rem; }
    .prdd-score { border-top: 1px solid var(--border); padding: 0.9rem 1rem 0.4rem; }
    .prdd-score-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
    .prdd-score-by { font-size: 0.72rem; color: #7dd3fc; }
    .prdd-score .prdd-loading { padding: 0.6rem 0; }
    .prdd-score-grid { display: grid; grid-template-columns: 130px 1fr; gap: 1.2rem; align-items: center; }
    .prdd-ring { position: relative; width: 120px; height: 120px; }
    .prdd-ring svg { transform: rotate(-90deg); display: block; }
    .prdd-ring-bg { stroke: rgba(148,163,184,0.18); }
    #prdd-arc { transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
    .prdd-ring-v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
    .prdd-ring-v b { font-size: 1.9rem; color: var(--white); font-family: inherit; }
    .prdd-ring-v span { font-size: 0.66rem; color: var(--muted); margin-top: 3px; }
    .prdd-delta { margin-top: 5px !important; font-size: 0.66rem !important; font-weight: 800; color: #0b1220 !important; background: #4ade80; border-radius: 999px; padding: 1px 6px; }
    .prdd-delta.down { background: #fbbf24; }
    .prdd-score-fmt { font-size: 0.74rem; color: var(--muted); margin: 0 0 0.55rem; }
    .prdd-score-fmt .ok { color: #4ade80; } .prdd-score-fmt .imp { color: #fbbf24; } .prdd-score-fmt .blk { color: #fb7185; }
    .prdd-crit { display: flex; flex-direction: column; gap: 0.42rem; }
    .prdd-cr { display: grid; grid-template-columns: 160px 1fr 30px; gap: 0.6rem; align-items: center; font-size: 0.76rem; color: var(--text-body); cursor: default; }
    .prdd-cbar { height: 7px; border-radius: 7px; background: rgba(148,163,184,0.16); overflow: hidden; }
    .prdd-cbar i { display: block; height: 100%; width: 0; border-radius: 7px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
    .prdd-cr em { font-style: normal; font-weight: 700; color: var(--white); text-align: right; }
    .prdd-gap { margin-top: 0.85rem; display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-body); background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.28); border-radius: 10px; padding: 0.6rem 0.75rem; }
    .prdd-gap span { flex: 1 1 260px; }
    .prdd-gap b { color: #fbbf24; }
    .prdd-gap.done, .prdd-gap:not(:has(button)) { background: rgba(74,222,128,0.07); border-color: rgba(74,222,128,0.3); }
    .prdd-gap.done b, .prdd-gap:not(:has(button)) b { color: #4ade80; }
    .prdd-gap .prdd-btn { padding: 0.5rem 0.9rem; font-size: 0.78rem; width: auto; display: inline-flex; align-items: center; gap: 0.4rem; }
    .prdd-spin.sm { width: 13px; height: 13px; border-width: 2px; border-color: rgba(255,255,255,0.35); border-top-color: #fff; }
    .prdd-score-note { font-size: 0.7rem; color: var(--muted); margin: 0.7rem 0 0.3rem; }
    html.light .prdd-skel { background: rgba(255,255,255,0.5); }
    html.light .prdd-skel i { background: linear-gradient(90deg, rgba(29,78,216,0.06), rgba(29,78,216,0.16), rgba(29,78,216,0.06)); background-size: 200% 100%; }
    html.light .prdd-score-by { color: #1d4ed8; }
    html.light .prdd-steps li.done .prdd-dot, html.light .prdd-delta { background: #16a34a; border-color: #16a34a; color: #fff !important; }
    html.light .prdd-trail b, html.light .prdd-score-fmt .ok, html.light .prdd-gap.done b, html.light .prdd-gap:not(:has(button)) b { color: #15803d; }
    html.light .prdd-score-fmt .imp, html.light .prdd-gap b { color: #b45309; }
    html.light .prdd-score-fmt .blk { color: #be123c; }
    html.light .prdd-doc .prdd-fixed { background: rgba(22,163,74,0.07); box-shadow: inset 3px 0 0 #16a34a; }
    @media (max-width: 640px) {
      .prdd-think { grid-template-columns: 1fr; padding: 0.9rem; }
      .prdd-skel { display: none; }
      .prdd-score-grid { grid-template-columns: 1fr; justify-items: center; }
      .prdd-score-grid > div:last-child { width: 100%; }
      .prdd-cr { grid-template-columns: 112px 1fr 28px; }
      .prdd-gap .prdd-btn { width: 100%; justify-content: center; }
    }
    @media (prefers-reduced-motion: reduce) {
      .prdd-steps li .prdd-dot, .prdd-skel i, .prdd-caret { animation: none !important; }
      #prdd-arc, .prdd-cbar i { transition: none; }
    }
    @media (max-width: 720px) {
      .prdd-card { padding: 1.1rem 1rem 1.2rem; }
      .prdd-btn { width: 100%; }
      .prdd-btn.ghost { width: auto; }
      .prdd-doc { padding: 0.9rem 0.9rem 1rem; max-height: 480px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .prdd-live, .prdd-spin, .prdd-out.on { animation: none; }
    }

    /* ═══════════════════════════════════════════════
       YOU BE THE PM - Slack-style scenarios + PM archetype
    ═══════════════════════════════════════════════ */
    .ypm-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.4rem 1.3rem; margin-bottom: 1.5rem; overflow: hidden; }
    .ypm-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); }
    .ypm-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
    .ypm-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #7dd3fc; }
    .ypm-score { font-size: 0.75rem; color: var(--muted); }
    .ypm-score b { color: #38bdf8; }
    .ypm-progress { display: flex; gap: 0.35rem; margin-bottom: 0.9rem; }
    .ypm-progress i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); transition: background 0.3s; }
    .ypm-progress i.done { background: var(--grad2); }
    .ypm-slack { background: rgba(8,8,20,0.55); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
    .ypm-chan { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); font-size: 0.82rem; font-weight: 600; color: var(--white); }
    .ypm-chan span { color: var(--muted); font-weight: 400; }
    .ypm-msgs { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.8rem; min-height: 120px; }
    .ypm-m { display: flex; gap: 0.65rem; align-items: flex-start; animation: ypmFade 0.35s ease; }
    .ypm-av { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 0.95rem; flex: none; color: #fff; font-weight: 700; }
    .ypm-av.you { background: #334155; }
    .ypm-av.me { background: var(--grad2); font-size: 0.72rem; }
    .ypm-m b { color: var(--white); font-size: 0.84rem; }
    .ypm-m small { color: var(--muted); font-size: 0.7rem; margin-left: 0.35rem; }
    .ypm-m p { font-size: 0.88rem; color: var(--text-body); line-height: 1.6; margin-top: 0.1rem; }
    .ypm-typing { display: inline-flex; gap: 3px; padding-top: 6px; }
    .ypm-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: ypmDot 1s infinite; }
    .ypm-typing i:nth-child(2) { animation-delay: 0.15s; } .ypm-typing i:nth-child(3) { animation-delay: 0.3s; }
    @keyframes ypmDot { 50% { opacity: 0.2; } }
    .ypm-replies { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 0.9rem 0.9rem; }
    .ypm-reply { font: inherit; font-size: 0.8rem; text-align: left; border: 1px solid rgba(56,189,248,0.35); background: rgba(37,99,235,0.08); color: #7dd3fc; border-radius: 999px; padding: 0.4rem 0.85rem; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
    .ypm-reply:hover { background: rgba(56,189,248,0.16); border-color: #38bdf8; }
    .ypm-reply:active { transform: scale(0.97); }
    .ypm-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.4rem; }
    .ypm-thread-actions { padding-left: 2.6rem; }
    .ypm-btn { font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; border-radius: 10px; padding: 0.55rem 1rem; color: #fff; border: 0; background: var(--grad2); text-decoration: none; display: inline-block; }
    .ypm-btn.ghost { background: transparent; border: 1px solid rgba(56,189,248,0.35); color: #7dd3fc; }
    .ypm-btn:active { transform: scale(0.97); }
    .ypm-arch { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; animation: ypmFade 0.4s ease; }
    .ypm-badge { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 2.8rem;
      background: radial-gradient(circle at 35% 30%, rgba(56,189,248,0.35), rgba(99,102,241,0.25) 60%, transparent 72%);
      border: 2px solid rgba(56,189,248,0.5); box-shadow: 0 0 30px rgba(56,189,248,0.3); }
    .ypm-arch h3 { font-size: 1.3rem; color: var(--white); margin: 0.15rem 0 0.3rem; }
    .ypm-arch p { font-size: 0.88rem; color: var(--text-body); line-height: 1.6; }
    .ypm-dots { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
    .ypm-dots span { font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
    .ypm-dots span.y { color: #4ade80; border-color: rgba(74,222,128,0.45); }
    .ypm-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .ypm-compare div { background: rgba(37,99,235,0.06); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.75rem; font-size: 0.78rem; color: var(--text-body); }
    .ypm-compare b { display: block; color: var(--white); font-size: 0.82rem; }
    .ypm-meters { margin-left: 2.6rem; padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(37,99,235,0.05); animation: ypmFade 0.35s ease; }
    .ypm-meters-h { display: flex; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
    .ypm-meters-h em { font-style: normal; letter-spacing: 0.04em; text-transform: none; font-weight: 600; }
    .ypm-meters-h em i { display: inline-block; width: 2px; height: 10px; background: #fbbf24; vertical-align: -1px; margin-right: 4px; }
    .ypm-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
    .ypm-mk { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
    .ypm-mk b { color: var(--white); letter-spacing: 0; }
    .ypm-bar { position: relative; height: 8px; border-radius: 8px; background: rgba(255,255,255,0.07); margin-top: 5px; }
    .ypm-bar i { display: block; height: 100%; width: 0; border-radius: 8px; transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
    .ypm-bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fbbf24; border-radius: 2px; opacity: 0; transition: opacity 0.4s 0.6s; }
    .ypm-meters.go .ypm-bar u { opacity: 1; }
    html.light .ypm-bar { background: rgba(0,0,0,0.07); }
    html.light .ypm-bar u, html.light .ypm-meters-h em i { background: #b45309; }
    @keyframes ypmFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
    html.light .ypm-eyebrow, html.light .ypm-btn.ghost, html.light .ypm-reply { color: #1d4ed8; }
    html.light .ypm-btn.ghost, html.light .ypm-reply { border-color: rgba(29,78,216,0.35); }
    html.light .ypm-score b { color: #1d4ed8; }
    html.light .ypm-progress i { background: rgba(0,0,0,0.08); }
    html.light .ypm-progress i.done { background: var(--grad2); }
    html.light .ypm-slack { background: rgba(255,255,255,0.7); }
    html.light .ypm-dots span.y { color: #15803d; border-color: rgba(21,128,61,0.4); }
    @media (max-width: 720px) {
      .ypm-card { padding: 1rem 1.1rem; }
      .ypm-arch { grid-template-columns: 1fr; justify-items: center; text-align: center; }
      .ypm-compare { grid-template-columns: 1fr; text-align: left; }
      .ypm-dots, .ypm-arch .ypm-actions { justify-content: center; }
      .ypm-thread-actions { padding-left: 0; }
      .ypm-meters { margin-left: 0; }
      .ypm-mgrid { grid-template-columns: 1fr; gap: 0.5rem; }
    }
    @media (prefers-reduced-motion: reduce) {
      .ypm-m, .ypm-arch, .ypm-meters { animation: none; }
      .ypm-bar i, .ypm-bar u { transition: none; }
      .ypm-typing i { animation: none; }
    }

    /* ═══════════════════════════════════════════════
       THE LOOP - how I build with AI
    ═══════════════════════════════════════════════ */
    .loop-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 1rem 1.3rem;
      margin-bottom: 1.5rem;
    }

    .loop-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin-bottom: 0.2rem;
    }

    .loop-steps {
      display: flex;
      gap: 0.2rem;
      flex-wrap: wrap;
      margin-bottom: 0.7rem;
    }

    .loop-step-chip {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.66rem;
      border-radius: 50px;
      padding: 0.2rem 0.55rem;
      cursor: pointer;
      white-space: nowrap;
      border: 1px solid var(--border);
      color: var(--muted);
      background: transparent;
      transition: all 0.3s;
    }
    .loop-steps { gap: 0.55rem 0.7rem; }
    .loop-grp { display: flex; flex-direction: column; gap: 0.3rem; }
    .loop-grp-label {
      display: flex; align-items: center; gap: 0.4rem;
      font-family: 'Space Grotesk', monospace; font-size: 0.56rem; font-weight: 600;
      letter-spacing: 0.12em; text-transform: uppercase; color: var(--pc); padding-left: 0.15rem;
    }
    .loop-grp-label::after { content: ''; flex: 1; min-width: 14px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--pc) 40%, transparent); }
    .loop-grp-row { display: flex; flex-wrap: wrap; gap: 0.25rem; }
    .loop-step-chip { position: relative; overflow: hidden; display: inline-block; }
    .loop-step-chip::first-letter { text-transform: uppercase; }
    .loop-step-chip:hover { color: var(--white); border-color: color-mix(in srgb, var(--pc) 60%, transparent); }
    .loop-step-chip.done   { color: var(--white); border-color: color-mix(in srgb, var(--pc) 50%, transparent); }
    .loop-step-chip.active { background: var(--pc); color: #0b1220; border-color: var(--pc); font-weight: 700; }
    .loop-fill { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #0b1220; opacity: 0.4; pointer-events: none; }
    .loop-card.is-playing .loop-step-chip.active .loop-fill { animation: loopFill var(--loop-dur, 8600ms) linear forwards; }
    @keyframes loopFill { to { width: 100%; } }
    .loop-ctrls { display: flex; gap: 0.3rem; }
    .loop-track { display: none; }
    .loop-head { margin-bottom: 0.15rem; }
    .loop-head-l { display: flex; align-items: center; gap: 0.6rem; }
    .loop-ring { position: relative; width: 34px; height: 34px; flex: none; }
    .loop-ring svg { width: 34px; height: 34px; transform: rotate(-90deg); display: block; }
    .loop-ring svg circle { transition: stroke-dasharray 0.5s ease, stroke 0.4s; }
    .loop-ring .loop-ring-bg { stroke: var(--border); }
    .loop-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 0.6rem 'Space Grotesk', monospace; color: var(--white); }
    .loop-step-chip { display: inline-flex; align-items: center; gap: 0.3rem; }
    .loop-ic { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .loop-step-chip.done .loop-ic { color: var(--pc); }
    .loop-detail-main { display: flex; gap: 1rem; align-items: center; }
    .loop-detail-text { min-width: 0; flex: 1; }
    .loop-scene {
      width: 132px; height: 86px; flex: none; border-radius: 12px; overflow: hidden;
      border: 1px solid color-mix(in srgb, var(--loop-pc, #7dd3fc) 35%, var(--border));
      background: radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--loop-pc, #7dd3fc) 22%, transparent), transparent 70%);
      transition: border-color 0.4s;
    }
    .loop-scene svg { width: 100%; height: 100%; display: block; }
    .ls-scan { animation: lsScan 3s ease-in-out infinite; }
    .ls-write { stroke-dasharray: 60; animation: lsWrite 1.2s ease-out both; }
    .ls-spin { animation: lsSpin 4s linear infinite; }
    .ls-rev { animation-duration: 3s; animation-direction: reverse; }
    .ls-bub { animation: lsBub 1.8s infinite; opacity: 0; }
    .ls-launch { animation: lsLaunch 2.4s ease-in-out infinite; }
    .ls-grow { animation: lsGrow 0.9s cubic-bezier(.34,1.4,.64,1) both; }
    @keyframes lsScan { 0%,100% { transform: translate(0,0); } 50% { transform: translate(38px,6px); } }
    @keyframes lsWrite { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
    @keyframes lsSpin { to { transform: rotate(360deg); } }
    @keyframes lsBub { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }
    @keyframes lsLaunch { 0%,100% { transform: translateY(18px); } 60% { transform: translateY(-6px); } }
    @keyframes lsGrow { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
    @media (prefers-reduced-motion: reduce) { .loop-scene * { animation: none !important; opacity: 1 !important; } }
    @media (max-width: 520px) { .loop-scene { width: 96px; height: 64px; } .loop-detail-main { align-items: flex-start; gap: 0.75rem; } }
    .loop-count b { color: var(--loop-pc, #38bdf8) !important; }
    .loop-phase { color: var(--loop-pc, #a78bfa) !important; }
    .loop-detail-side .loop-skills-label { margin-top: 0.75rem; }
    .loop-skills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
    .loop-skill {
      font-family: 'Space Grotesk', sans-serif; font-size: 0.66rem; text-decoration: none;
      color: var(--white); border-radius: 7px; padding: 0.2rem 0.6rem;
      border: 1px solid color-mix(in srgb, var(--loop-pc, #7dd3fc) 45%, transparent);
      background: color-mix(in srgb, var(--loop-pc, #7dd3fc) 10%, transparent);
      transition: background 0.2s;
    }
    .loop-skill:hover { background: color-mix(in srgb, var(--loop-pc, #7dd3fc) 22%, transparent); }
    html.light .loop-grp-label { color: color-mix(in srgb, var(--pc) 65%, #000); }
    html.light .loop-step-chip.done { color: #1e1b2e; }
    html.light .loop-count b, html.light .loop-phase { color: color-mix(in srgb, var(--loop-pc, #1d4ed8) 65%, #000) !important; }
    html.light .loop-skill { color: #1e1b2e; }
    @media (prefers-reduced-motion: reduce) { .loop-card.is-playing .loop-step-chip.active .loop-fill { animation: none; } }

    .loop-detail {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
      gap: 1.1rem;
      border-top: 1px solid var(--border);
      padding-top: 0.7rem;
    }
    .loop-detail-main { min-width: 0; }
    .loop-detail-side {
      min-width: 0;
      border-left: 1px solid var(--border);
      padding-left: 1rem;
    }
    .loop-side-label {
      font-family: 'Space Grotesk', monospace;
      font-size: 0.58rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0 0 0.3rem;
      opacity: 0.75;
    }
    .loop-artifact {
      font-size: 0.75rem;
      color: var(--text-body);
      margin: 0 0 0.6rem;
      line-height: 1.4;
    }
    .loop-step-title { text-transform: capitalize; }
    .loop-artifact   { text-transform: capitalize; }
    .loop-chip       { text-transform: capitalize; }
    .loop-step-desc::first-letter { text-transform: uppercase; }
    .loop-phase { color: #a78bfa; letter-spacing: 0.08em; }
    html.light .loop-phase { color: #7c3aed; }

    .loop-eyebrow {
      font-family: 'Space Grotesk', monospace;
      font-size: 0.66rem;
      letter-spacing: 0.12em;
      color: #7dd3fc;
      text-transform: uppercase;
    }

    .loop-toggle {
      background: rgba(56,189,248,0.12);
      border: 1px solid rgba(56,189,248,0.3);
      color: #7dd3fc;
      border-radius: 6px;
      padding: 0.15rem 0.5rem;
      font-size: 0.72rem;
      cursor: pointer;
      line-height: 1.4;
    }
    .loop-toggle:hover { background: rgba(56,189,248,0.22); }

    .loop-track {
      position: relative;
      height: 32px;
    }

    .loop-bot {
      position: absolute;
      bottom: 2px;
      left: 0;
      transition: left 0.6s cubic-bezier(0.34, 1.3, 0.64, 1);
    }

    .loop-bot .wheel {
      animation: loopRoll 1s linear infinite;
      transform-origin: 17px 32px;
    }
    @keyframes loopRoll { to { transform: rotate(360deg); } }

    .loop-bot .leanBody {
      animation: loopLean 2.4s ease-in-out infinite;
      transform-origin: 17px 27px;
    }
    @keyframes loopLean {
      0%, 100% { transform: rotate(-5deg); }
      50%      { transform: rotate(3deg); }
    }

    .loop-count {
      font-family: 'Space Grotesk', monospace;
      font-size: 0.68rem;
      color: var(--muted);
      margin: 0 0 0.15rem;
    }
    .loop-count b { color: #38bdf8; font-weight: 700; }
    .loop-step-title {
      font-size: 1.02rem;
      font-weight: 600;
      color: var(--white);
      margin: 0 0 0.25rem;
    }
    .loop-step-desc {
      font-size: 0.78rem;
      color: var(--muted);
      line-height: 1.5;
      margin: 0 0 0.55rem;
      min-height: 2.3em;
    }

    .loop-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
    .loop-chip {
      font-family: 'Space Grotesk', monospace;
      font-size: 0.66rem;
      color: #7dd3fc;
      background: rgba(56,189,248,0.1);
      border: 1px solid rgba(56,189,248,0.28);
      border-radius: 50px;
      padding: 0.2rem 0.65rem;
    }

    html.light .loop-eyebrow,
    html.light .loop-chip,
    html.light .loop-toggle { color: #1d4ed8; }
    html.light .loop-count b { color: #1d4ed8; }

    @media (prefers-reduced-motion: reduce) {
      .loop-bot, .loop-bot .wheel, .loop-bot .leanBody { animation: none; transition: none; }
    }

    @media (max-width: 780px) {
      .loop-card { padding: 1rem 1.1rem; }
      .loop-detail { grid-template-columns: 1fr; gap: 0.8rem; }
      .loop-detail-side { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 0.8rem; }
    }

    /* ═══════════════════════════════════════════════
       ABOUT
    ═══════════════════════════════════════════════ */
    #about {
      position: relative;
      overflow: hidden;
    }

    #about::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -20%;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
      border-radius: 50%;
      animation: float 12s ease-in-out infinite;
      pointer-events: none;
    }

    #about::after {
      content: '';
      position: absolute;
      bottom: -30%;
      left: -15%;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
      border-radius: 50%;
      animation: float 15s ease-in-out infinite reverse;
      pointer-events: none;
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
      position: relative;
      z-index: 2;
    }

    .about-head-row {
      display: flex;
      gap: 2rem;
      align-items: flex-start;
    }

    .about-pic-container {
      position: relative;
      width: 200px;
      height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: -10px;
      min-width: 200px;
    }

    .about-pic-bg {
      position: absolute;
      width: 214px;
      height: 214px;
      border-radius: 50%;
      background: conic-gradient(from 0deg, #2563eb, #38bdf8, #6366f1, #38bdf8, #2563eb);
      z-index: 0;
      animation: twinSpin 7s linear infinite;
      filter: drop-shadow(0 0 18px rgba(56,189,248,0.45)) drop-shadow(0 0 45px rgba(37,99,235,0.25));
    }

    .about-pic-bg::before {
      content: '';
      position: absolute;
      inset: -14px;
      border-radius: 50%;
      border: 1px dashed rgba(56,189,248,0.35);
      animation: pulse 4s ease-in-out infinite;
    }

    .about-pic-container::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 10px;
      height: 10px;
      margin: -5px;
      border-radius: 50%;
      background: #38bdf8;
      box-shadow: 0 0 8px rgba(56,189,248,0.95), 0 0 18px rgba(56,189,248,0.5);
      animation: orbitDot 7s linear infinite;
      z-index: 2;
      pointer-events: none;
    }

    @keyframes orbitDot {
      from { transform: rotate(0deg) translateX(114px); }
      to   { transform: rotate(360deg) translateX(114px); }
    }

    .about-profile-image {
      width: 200px;
      height: 200px;
      border-radius: 50%;
      object-fit: cover;
      border: none;
      box-shadow: 0 8px 30px rgba(0,0,0,0.35);
      opacity: 1;
      position: relative;
      z-index: 1;
      filter: saturate(1.05) contrast(1.03);
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
    }

    .about-pic-container:hover .about-profile-image {
      transform: scale(1.05);
      box-shadow: 0 12px 40px rgba(37,99,235,0.35);
    }

    .about-pic-container:hover .about-pic-bg {
      animation-duration: 2.5s;
    }

    html.light .about-pic-bg {
      filter: drop-shadow(0 0 14px rgba(37,99,235,0.3)) drop-shadow(0 0 35px rgba(37,99,235,0.15));
    }

    html.light .about-pic-bg::before {
      border-color: rgba(37,99,235,0.3);
    }

    html.light .about-profile-image {
      opacity: 1;
      box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }


    .about-grid::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 400px;
      height: 400px;
      background:
        repeating-conic-gradient(
          from 0deg at 50% 50%,
          rgba(37, 99, 235, 0.08) 0deg 90deg,
          transparent 90deg 180deg
        );
      opacity: 0.5;
      animation: spin 30s linear infinite;
      pointer-events: none;
      z-index: -1;
    }

    .about-text::before {
      content: '';
      position: absolute;
      left: -200px;
      top: 50%;
      transform: translateY(-50%);
      width: 350px;
      height: 350px;
      background:
        radial-gradient(circle at 30% 30%, rgba(37,99,235,0.15) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(56,189,248,0.12) 0%, transparent 30%);
      border-radius: 50%;
      animation: floatLeft 8s ease-in-out infinite;
      pointer-events: none;
      z-index: 0;
    }

    .about-text {
      position: relative;
      z-index: 2;
    }

    .about-text::after {
      content: '';
      position: absolute;
      left: -150px;
      top: 20%;
      width: 120px;
      height: 120px;
      background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
      border-radius: 50%;
      animation: floatAround 12s ease-in-out infinite;
      pointer-events: none;
    }

    .about-text p {
      color: var(--text-body);
      margin-bottom: 1rem;
      font-size: 0.97rem;
      line-height: 1.75;
    }

    .about-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 1.2rem;
    }

    .stat-group {
      flex: 1;
      min-width: 240px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.3rem 1.4rem;
      backdrop-filter: blur(10px);
      transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    }

    .stat-group--career {
      background: linear-gradient(160deg, rgba(37,99,235,0.1), var(--card));
      border-color: rgba(56,189,248,0.2);
    }

    .stat-group--career:hover {
      border-color: rgba(56,189,248,0.4);
      transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(37,99,235,0.15);
    }

    .stat-group--impact {
      background: linear-gradient(160deg, rgba(168,85,247,0.1), var(--card));
      border-color: rgba(168,85,247,0.25);
    }

    .stat-group--impact:hover {
      border-color: rgba(168,85,247,0.5);
      transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(168,85,247,0.18);
    }

    .stat-group-label {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #7dd3fc;
      margin-bottom: 1rem;
    }

    .stat-group--impact .stat-group-label { color: #c084fc; }

    .stat-group-items {
      display: flex;
      gap: 1.4rem;
      flex-wrap: wrap;
    }

    .stat-item { flex: 1; min-width: 90px; }

    .stat-num--compact {
      font-size: 1.5rem;
      letter-spacing: 0.01em;
      filter: drop-shadow(0 0 6px rgba(56,189,248,0.3));
    }

    .stat-num--compact.stat-num--purple {
      filter: drop-shadow(0 0 6px rgba(168,85,247,0.3));
    }

    .stat-card {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-height: 130px;
      background: linear-gradient(160deg, rgba(37,99,235,0.14), rgba(56,189,248,0.06) 60%, var(--card));
      border: 1px solid rgba(56,189,248,0.18);
      border-radius: var(--radius);
      padding: 1.5rem;
      backdrop-filter: blur(10px);
      transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    }

    .stat-card:hover {
      border-color: rgba(56,189,248,0.45);
      transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(37,99,235,0.18);
    }

    .stat-card--purple {
      background: linear-gradient(160deg, rgba(168,85,247,0.16), rgba(99,102,241,0.06) 60%, var(--card));
      border-color: rgba(168,85,247,0.3);
    }

    .stat-card--purple:hover {
      border-color: rgba(168,85,247,0.55);
      box-shadow: 0 10px 30px rgba(168,85,247,0.22);
    }

    .stat-new-badge {
      position: absolute;
      top: 0.7rem;
      right: 0.8rem;
      font-size: 0.58rem;
      font-weight: 700;
      color: #c084fc;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .stat-num {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 2.2rem;
      font-weight: 700;
      background: var(--grad2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 0 14px rgba(56,189,248,0.35));
    }

    .stat-num--purple {
      background: linear-gradient(135deg, #a855f7, #c084fc);
      -webkit-background-clip: text;
      background-clip: text;
      filter: drop-shadow(0 0 14px rgba(168,85,247,0.35));
    }

    .stat-label {
      font-size: 0.82rem;
      font-weight: 500;
      color: #ffffff;
      margin-top: 0.2rem;
      text-align: left;
    }

    /* ═══════════════════════════════════════════════
       AI TWIN
    ═══════════════════════════════════════════════ */
    .twin-card {
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(rgba(56,189,248,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.028) 1px, transparent 1px),
        var(--card);
      background-size: 24px 24px, 24px 24px, auto;
      border: 1px solid rgba(56,189,248,0.3);
      border-radius: 20px;
      padding: 2rem;
      backdrop-filter: blur(10px);
      width: 100%;
      box-shadow: 0 0 30px rgba(37,99,235,0.12), inset 0 0 60px rgba(37,99,235,0.04);
    }

    .twin-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--grad);
      z-index: 2;
    }

    .twin-card::after {
      content: '';
      position: absolute;
      top: -60%;
      left: -80%;
      width: 35%;
      height: 220%;
      background: linear-gradient(90deg, transparent, rgba(56,189,248,0.05), transparent);
      transform: rotate(12deg);
      animation: badgeScan 8s ease-in-out infinite;
      pointer-events: none;
      z-index: 1;
    }

    html.light .twin-card {
      background:
        linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px),
        var(--card);
      background-size: 24px 24px, 24px 24px, auto;
      box-shadow: 0 2px 20px rgba(37,99,235,0.08);
    }

    .twin-header {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      margin-bottom: 1.25rem;
      position: relative;
      z-index: 2;
    }

    .twin-name-row {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      flex-wrap: wrap;
    }

    .twin-online {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #4ade80;
      background: rgba(74,222,128,0.1);
      border: 1px solid rgba(74,222,128,0.35);
      border-radius: 50px;
      padding: 0.14rem 0.55rem;
    }

    .twin-online-dot {
      position: relative;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 6px rgba(74,222,128,0.9);
    }

    .twin-online-dot::after {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 50%;
      border: 1px solid rgba(74,222,128,0.7);
      animation: dotPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    }

    .twin-avatar {
      position: relative;
      width: 106px;
      height: 106px;
      border-radius: 50%;
      padding: 0;
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .twin-avatar-lottie {
      width: 106px;
      height: 106px;
      position: relative;
      z-index: 1;
      pointer-events: none;
    }

    @keyframes twinAvatarPulse {
      0%   { box-shadow: 0 0 0 0 rgba(56,189,248,0.45); }
      70%  { box-shadow: 0 0 0 8px rgba(56,189,248,0); }
      100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
    }

    .twin-name {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 700;
      font-size: 0.98rem;
    }

    .twin-sub {
      font-size: 0.78rem;
      color: var(--muted);
      margin-top: 0.1rem;
    }

    .twin-messages {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      max-height: 480px;
      min-height: 260px;
      overflow-y: auto;
      margin-bottom: 1rem;
      padding-right: 0.25rem;
      scrollbar-width: thin;
      scrollbar-color: rgba(37,99,235,0.3) transparent;
    }

    .twin-msg {
      font-size: 1.02rem;
      line-height: 1.7;
      padding: 0.8rem 1.15rem;
      border-radius: 14px;
      max-width: min(75%, 560px);
      white-space: pre-wrap;
    }

    .twin-msg-bot {
      background: var(--bg3);
      color: var(--text-body);
      border: 1px solid rgba(56,189,248,0.18);
      border-bottom-left-radius: 4px;
      align-self: flex-start;
      box-shadow: 0 2px 12px rgba(37,99,235,0.08);
    }

    .twin-msg-user {
      background: var(--grad2);
      color: var(--bg);
      font-weight: 500;
      border-bottom-right-radius: 4px;
      align-self: flex-end;
      box-shadow: 0 3px 14px rgba(37,99,235,0.35);
    }

    .twin-msg-error {
      background: rgba(239,68,68,0.1);
      border: 1px solid rgba(239,68,68,0.3);
      color: #f87171;
      align-self: flex-start;
      border-bottom-left-radius: 4px;
    }

    .twin-typing {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      align-self: flex-start;
      padding: 0.65rem 1.1rem;
      background: var(--bg3);
      border-radius: 14px;
      border-bottom-left-radius: 4px;
    }

    .twin-thinking-svg {
      width: 22px;
      height: 22px;
      flex-shrink: 0;
      overflow: visible;
    }

    .twin-thinking-orbit {
      animation: twinSpin 1s linear infinite;
      transform-origin: 12px 12px;
    }

    .twin-thinking-core {
      animation: twinNodePulse 1s ease-in-out infinite;
      transform-origin: 12px 12px;
    }

    .twin-thinking-label {
      font-size: 0.85rem;
      color: var(--muted);
      display: inline-flex;
      align-items: center;
    }

    .twin-thinking-dots span {
      display: inline-block;
      animation: twinDotFade 1.4s ease-in-out infinite;
      opacity: 0.25;
    }

    .twin-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
    .twin-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

    @keyframes twinDotFade {
      0%, 100% { opacity: 0.25; }
      50%       { opacity: 1; }
    }

    .twin-starters {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .twin-chip {
      font-size: 0.86rem;
      padding: 0.5rem 0.9rem;
      border-radius: 50px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-body);
      cursor: pointer;
      transition: all 0.2s;
    }

    .twin-chip:hover:not(:disabled) {
      border-color: rgba(56,189,248,0.6);
      background: rgba(37,99,235,0.12);
      color: var(--white);
      box-shadow: 0 0 12px rgba(56,189,248,0.25);
      transform: translateY(-1px);
    }

    .twin-chip:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .twin-input-row {
      display: flex;
      gap: 0.6rem;
    }

    #twin-input {
      flex: 1;
      padding: 0.75rem 1rem;
      border-radius: 50px;
      border: 1px solid rgba(56,189,248,0.55);
      background: var(--bg3);
      color: var(--white);
      font-size: 0.98rem;
      font-family: 'Inter', sans-serif;
      outline: none;
      box-shadow: 0 0 0 3px rgba(56,189,248,0.1), 0 0 18px rgba(37,99,235,0.25);
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    #twin-input:focus {
      border-color: rgba(56,189,248,0.85);
      box-shadow: 0 0 0 3px rgba(56,189,248,0.18), 0 0 24px rgba(37,99,235,0.4);
    }
    #twin-input:disabled { opacity: 0.5; cursor: not-allowed; }

    .twin-send {
      padding: 0.75rem 1.4rem;
      font-size: 0.88rem;
      white-space: nowrap;
    }

    .twin-send:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none !important;
      box-shadow: none !important;
    }

    .twin-disclaimer {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 1rem;
      line-height: 1.5;
    }

    .twin-disclaimer a { color: #38bdf8; text-decoration: underline; }

    /* ── Career Knowledge Graph ── */
    .graph-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.4rem 1.4rem 1.1rem;
      margin-top: 1.5rem;
    }
    .graph-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-bottom: 0.9rem;
    }
    .graph-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--white);
    }
    .graph-title span { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
    .graph-reset-btn {
      font-size: 0.7rem;
      font-weight: 700;
      color: #7dd3fc;
      background: rgba(56,189,248,0.12);
      border: 1px solid rgba(56,189,248,0.3);
      padding: 0.35rem 0.8rem;
      border-radius: 20px;
      cursor: pointer;
    }
    .graph-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 0.7rem;
      margin-bottom: 0.7rem;
    }
    .graph-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.68rem;
      color: var(--muted);
    }
    .graph-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
    .graph-svg-wrap {
      width: 100%;
      height: 560px;
      border-radius: 12px;
      background: radial-gradient(circle at 50% 40%, rgba(56,189,248,0.06), transparent 65%);
      overflow: hidden;
      touch-action: none;
    }
    .graph-svg-wrap svg { width: 100%; height: 100%; display: block; cursor: grab; }
    .graph-node circle { cursor: pointer; transition: opacity 0.35s, filter 0.35s; }
    .graph-node text {
      font-family: 'Space Grotesk', sans-serif;
      fill: var(--muted);
      pointer-events: none;
      transition: opacity 0.35s, fill 0.35s;
    }
    .graph-link { stroke: rgba(148,163,184,0.25); stroke-width: 1; transition: opacity 0.35s, stroke 0.35s; }
    .graph-dim { opacity: 0.1; }
    .graph-hint {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 0.6rem;
      text-align: center;
    }
    html.light .graph-card { background: #fff; }
    html.light .graph-svg-wrap { background: radial-gradient(circle at 50% 40%, rgba(37,99,235,0.06), transparent 65%); }
    html.light .graph-link { stroke: rgba(51,65,85,0.2); }
    /* ── Knowledge graph v2: panel, filters, path, timeline, tour ── */
    .kg-headbtns { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
    .kg-seg { display: flex; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
    .kg-seg button { font: inherit; font-size: 0.68rem; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 0.28rem 0.7rem; border-radius: 999px; cursor: pointer; }
    .kg-seg button.on { background: linear-gradient(135deg,#2563eb,#6366f1); color: #fff; }
    .kg-btn { font: inherit; font-size: 0.7rem; font-weight: 700; color: #7dd3fc; background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.3); padding: 0.35rem 0.8rem; border-radius: 20px; cursor: pointer; white-space: nowrap; }
    .kg-btn-hot { color: #fff; background: linear-gradient(135deg,#f59e0b,#ec4899); border-color: transparent; }
    .kg-tools { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.6rem; }
    .kg-search { display: flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 0.3rem 0.65rem; font-size: 0.8rem; }
    .kg-search input { font: inherit; font-size: 0.78rem; color: var(--white); background: none; border: 0; outline: none; width: 160px; }
    .kg-legend { display: flex; flex-wrap: wrap; gap: 0.35rem; }
    .kg-lg { font: inherit; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.67rem; color: var(--text-body); background: none; border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.6rem; cursor: pointer; transition: opacity 0.2s; }
    .kg-lg i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
    .kg-lg small { color: var(--muted); font-size: 0.62rem; }
    .kg-lg.off { opacity: 0.35; text-decoration: line-through; }
    .kg-path { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.6rem; }
    .kg-path select { background: var(--bg3, #1a1a2e); color: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 0.25rem 0.4rem; font: inherit; font-size: 0.72rem; max-width: 190px; }
    .kg-pres { flex-basis: 100%; font-size: 0.74rem; }
    .kg-pres:empty { display: none; }
    .kg-pres b { font-weight: 700; }
    .kg-stagewrap { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 0.75rem; }
    .kg-stage { position: relative; }
    .kg-panel { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.8rem; color: var(--text-body); min-height: 200px; }
    .kg-chip { align-self: flex-start; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; }
    .kg-panel h3 { font-size: 1.02rem; line-height: 1.3; color: var(--white); margin: 0; }
    .kg-panel p { margin: 0; line-height: 1.55; }
    .kg-meta { font-size: 0.72rem; color: var(--muted); }
    .kg-conns { display: flex; flex-wrap: wrap; gap: 0.3rem; }
    .kg-conns button { font: inherit; font-size: 0.68rem; color: var(--white); background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 999px; padding: 0.15rem 0.55rem; cursor: pointer; }
    .kg-conns button:hover { border-color: #7dd3fc; }
    .kg-acts { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.4rem; }
    .kg-empty b { color: var(--white); }
    .kg-stats { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; font-size: 0.7rem; color: var(--muted); }
    .kg-stats b { color: var(--white); }
    .graph-link.kg-x { stroke-dasharray: 3 3; }
    .graph-link.kg-hl { stroke: #fbbf24 !important; stroke-width: 2.4 !important; opacity: 1 !important; stroke-dasharray: 6 6; animation: kgFlow 1s linear infinite; }
    @keyframes kgFlow { to { stroke-dashoffset: -12; } }
    .kg-yr { font: 600 10px 'Inter', sans-serif; fill: rgba(148,163,184,0.6); }
    .kg-tour { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: none; gap: 0.6rem; align-items: center; flex-wrap: wrap;
      background: rgba(15,15,30,0.94); border: 1px solid rgba(251,191,36,0.4); border-radius: 12px; padding: 0.6rem 0.75rem; font-size: 0.8rem; color: var(--white); }
    .kg-tour.on { display: flex; }
    .kg-tour b { color: #fbbf24; }
    .kg-tour-btns { margin-left: auto; display: flex; gap: 0.35rem; }
    html.light .kg-panel { background: #f8fafc; }
    html.light .kg-tour { background: rgba(255,255,255,0.96); color: #0f172a; border-color: rgba(217,119,6,0.45); }
    html.light .kg-tour b { color: #b45309; }
    html.light .kg-path select, html.light .kg-search { background: #fff; }
    html.light .kg-btn { color: #1d4ed8; border-color: rgba(29,78,216,0.3); background: rgba(29,78,216,0.08); }
    html.light .kg-btn-hot { color: #fff; background: linear-gradient(135deg,#f59e0b,#ec4899); border-color: transparent; }
    @media (max-width: 860px) {
      .kg-stagewrap { grid-template-columns: minmax(0, 1fr); }
      .kg-panel { min-height: 0; }
    }
    @media (max-width: 600px) {
      .graph-svg-wrap.kg-stage { height: 440px; }
      .kg-search input { width: 120px; }
      .kg-path select { max-width: 140px; }
    }
    @media (prefers-reduced-motion: reduce) { .graph-link.kg-hl { animation: none; } }

    @media (max-width: 600px) {
      .twin-card { padding: 1.25rem; }
      .twin-messages { max-height: 280px; }
      .twin-msg { max-width: 94%; font-size: 0.85rem; }
      .twin-input-row { flex-direction: column; }
      .twin-send { width: 100%; }
    }

    /* ═══════════════════════════════════════════════
       FUNCTIONAL DOMAINS
    ═══════════════════════════════════════════════ */
    .domains-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 1.5rem;
    }

    .domain-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.8rem;
      backdrop-filter: blur(10px);
      transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
      cursor: default;
    }

    .domain-card:hover {
      border-color: rgba(99, 102, 241, 0.4);
      transform: translateY(-4px);
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }

    .domain-icon {
      font-size: 2rem;
      margin-bottom: 1rem;
    }

    .domain-card h4 {
      font-size: 0.97rem;
      font-weight: 600;
      margin-bottom: 0.4rem;
    }

    .domain-card p {
      font-size: 0.87rem;
      color: var(--muted);
      line-height: 1.7;
    }

    /* ═══════════════════════════════════════════════
       WORK / PROJECTS
    ═══════════════════════════════════════════════ */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 1.5rem;
    }

    .project-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 200px;
    }

    .project-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 25px 50px rgba(0,0,0,0.4);
      border-color: rgba(56,189,248,0.3);
    }

    .project-header {
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      position: relative;
      overflow: hidden;
    }

    .project-header::before {
      content: '';
      position: absolute;
      inset: 0;
      opacity: 0.25;
    }

    .ph-1::before { background: linear-gradient(135deg, #2563eb, #38bdf8); }
    .ph-2::before { background: linear-gradient(135deg, #6366f1, #2563eb); }
    .ph-3::before { background: linear-gradient(135deg, #38bdf8, #6366f1); }
    .ph-4::before { background: linear-gradient(135deg, #06b6d4, #6366f1); }

    .project-body {
      padding: 1.1rem 1.25rem;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 0.6rem;
    }

    .tag {
      padding: 0.25rem 0.75rem;
      border-radius: 50px;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .tag-coral   { background: rgba(37,99,235,0.15);  color: #93c5fd; border: 1px solid rgba(37,99,235,0.25); }
    .tag-gold    { background: rgba(56,189,248,0.15); color: #7dd3fc; border: 1px solid rgba(56,189,248,0.25); }
    .tag-purple  { background: rgba(99,102,241,0.15); color: #c084fc; border: 1px solid rgba(99,102,241,0.2); }
    .tag-cyan    { background: rgba(6,182,212,0.15);  color: #67e8f9; border: 1px solid rgba(6,182,212,0.2); }

    /* ─── COMING SOON GLOW BADGE ─────────────────── */
    .tag-coming-soon {
      background: linear-gradient(135deg, rgba(56,189,248,0.22), rgba(168,85,247,0.22));
      color: #f5f5f7;
      border: 1px solid rgba(168,85,247,0.4);
      animation: comingSoonGlow 2.2s ease-in-out infinite;
    }

    @keyframes comingSoonGlow {
      0%, 100% { box-shadow: 0 0 4px rgba(56,189,248,0.25), 0 0 4px rgba(168,85,247,0.15); }
      50%       { box-shadow: 0 0 14px rgba(56,189,248,0.55), 0 0 18px rgba(168,85,247,0.45); }
    }

    html.light .tag-coming-soon { color: #4c1d95; }

    .tag-live {
      background: rgba(74,222,128,0.12);
      color: #4ade80;
      border: 1px solid rgba(74,222,128,0.45);
      box-shadow: 0 0 10px rgba(74,222,128,0.2);
    }
    html.light .tag-live { color: #15803d; background: rgba(21,128,61,0.08); border-color: rgba(21,128,61,0.4); }

    .tag-mockup {
      background: rgba(251,191,36,0.14);
      color: #fbbf24;
      border: 1px solid rgba(251,191,36,0.45);
      box-shadow: 0 0 10px rgba(251,191,36,0.18);
    }
    html.light .tag-mockup { color: #b45309; background: rgba(180,83,9,0.08); border-color: rgba(180,83,9,0.4); }

    .domains-note {
      font-size: 0.72rem;
      color: var(--muted);
      font-style: italic;
      margin-top: -2.25rem;
      margin-bottom: 2rem;
      opacity: 0.85;
    }

    .nb-head { margin-top: 3rem; }

    .nb-head .section-label {
      font-size: 1.2rem;
      letter-spacing: 0.22em;
      animation: nbGlow 2.5s ease-in-out infinite;
    }

    @keyframes nbGlow {
      0%, 100% { filter: drop-shadow(0 0 6px rgba(56,189,248,0.5)) drop-shadow(0 0 16px rgba(37,99,235,0.3)); }
      50%      { filter: drop-shadow(0 0 12px rgba(56,189,248,0.95)) drop-shadow(0 0 28px rgba(37,99,235,0.55)); }
    }

    html.light .nb-head .section-label {
      animation: none;
      filter: drop-shadow(0 0 8px rgba(37,99,235,0.35));
    }

    .nb-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 1.5rem;
    }

    .nb-grid .project-card {
      border-style: dashed;
      border-color: rgba(168,85,247,0.35);
      opacity: 0.92;
    }

    .nb-grid .project-card:hover {
      border-style: solid;
      border-color: rgba(168,85,247,0.6);
    }

    @media (max-width: 640px) {
      .nb-grid { grid-template-columns: 1fr; gap: 1rem; }
    }

    /* ─── PROJECT FILTERS ───────────────────────── */
    .project-filters {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.75rem;
      background: linear-gradient(135deg, #1e1b4b, #0f172a);
      border-radius: 16px;
      padding: 0.6rem;
    }
    .filter-chip {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      padding: 0.45rem 1.1rem;
      border-radius: 50px;
      background: rgba(255,255,255,0.05);
      color: #cbd5e1;
      border: none;
      cursor: pointer;
      transition: all 0.25s;
    }
    .filter-chip:hover { color: #fff; background: rgba(255,255,255,0.1); }
    .filter-chip.active {
      background: rgba(255,255,255,0.15);
      backdrop-filter: blur(6px);
      color: #fff;
      box-shadow: 0 0 16px rgba(139,92,246,0.4);
    }
    html.light .project-filters { background: var(--card); border: 1px solid var(--border); }
    html.light .filter-chip { color: var(--muted); }
    html.light .filter-chip:hover { color: #111118; background: rgba(0,0,0,0.06); }
    html.light .filter-chip.active {
      background: linear-gradient(135deg,#2563eb,#6366f1);
      color: #fff;
      box-shadow: 0 0 16px rgba(99,102,241,0.35);
    }
    .project-card.filtered-out { display: none; }

    /* ─── FEATURED PROJECT CARD ─────────────────── */
    .project-card--featured {
      border-color: rgba(56,189,248,0.5);
      box-shadow: 0 0 26px rgba(37,99,235,0.2);
    }

    /* ─── TIMELINE METRIC BADGES ────────────────── */
    .timeline-metrics {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 0.55rem;
    }
    .metric-badge {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      padding: 0.22rem 0.65rem;
      border-radius: 50px;
      background: rgba(56,189,248,0.12);
      color: #7dd3fc;
      border: 1px solid rgba(56,189,248,0.3);
      white-space: nowrap;
    }
    html.light .metric-badge {
      background: rgba(37,99,235,0.08);
      color: #1d4ed8;
      border-color: rgba(37,99,235,0.28);
    }

    /* ─── FEATURED CERTIFICATIONS ───────────────── */
    a.cert-card--top {
      position: relative;
      border-color: rgba(56,189,248,0.5);
      box-shadow: 0 0 18px rgba(37,99,235,0.15);
    }
    .cert-top-badge {
      position: absolute;
      top: -7px;
      right: 10px;
      font-size: 0.52rem;
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      padding: 0.15rem 0.5rem;
      border-radius: 50px;
      background: var(--grad2);
      color: #fff;
    }

    /* ─── EDUCATION WORLD MAP ───────────────────── */
    .edu-map-card {
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(rgba(56,189,248,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.028) 1px, transparent 1px),
        var(--card);
      background-size: 24px 24px, 24px 24px, auto;
      border: 1px solid rgba(56,189,248,0.3);
      border-radius: 16px;
      padding: 0.9rem 1.25rem 0.4rem;
      margin-bottom: 1.25rem;
      backdrop-filter: blur(10px);
      box-shadow: 0 0 30px rgba(37,99,235,0.12), inset 0 0 60px rgba(37,99,235,0.04);
    }
    .edu-map-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--grad);
      z-index: 2;
    }
    .edu-map-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
      margin-bottom: 0.5rem;
    }
    .edu-map-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #7dd3fc;
    }
    html.light .edu-map-title { color: #1d4ed8; }
    .edu-map-legend {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.72rem;
      color: var(--muted);
    }
    .edu-leg-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: #38bdf8;
      box-shadow: 0 0 6px rgba(56,189,248,0.8);
    }
    #edu-map-wrap { position: relative; max-width: 720px; margin: 0 auto; }
    #edu-map { width: 100%; height: auto; display: block; }
    .edu-sphere { fill: rgba(37,99,235,0.04); stroke: rgba(56,189,248,0.12); stroke-width: 1; }
    .edu-land {
      fill: rgba(56,189,248,0.12);
      stroke: rgba(56,189,248,0.28);
      stroke-width: 0.4;
      transition: fill 0.2s;
    }
    .edu-land:hover { fill: rgba(56,189,248,0.24); }
    html.light .edu-land { fill: rgba(37,99,235,0.09); stroke: rgba(37,99,235,0.25); }
    html.light .edu-land:hover { fill: rgba(37,99,235,0.18); }
    .edu-arc {
      fill: none;
      stroke: #38bdf8;
      stroke-width: 1.6;
      stroke-dasharray: 6 6;
      opacity: 0.85;
      animation: eduDash 1.1s linear infinite;
      filter: drop-shadow(0 0 4px rgba(56,189,248,0.6));
      pointer-events: none;
    }
    @keyframes eduDash { to { stroke-dashoffset: -12; } }
    .edu-marker { cursor: pointer; }
    .edu-dot {
      fill: #38bdf8;
      stroke: rgba(255,255,255,0.85);
      stroke-width: 1.2;
      filter: drop-shadow(0 0 6px rgba(56,189,248,0.9));
    }
    .edu-ping {
      fill: none;
      stroke: rgba(56,189,248,0.7);
      stroke-width: 1.5;
      transform-box: fill-box;
      transform-origin: center;
      animation: eduPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
    }
    @keyframes eduPing {
      0%   { transform: scale(0.35); opacity: 1; }
      80%, 100% { transform: scale(1.7); opacity: 0; }
    }
    .edu-map-label {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 11px;
      font-weight: 700;
      fill: #7dd3fc;
      pointer-events: none;
      text-shadow: 0 0 6px rgba(8,8,15,0.9);
    }
    html.light .edu-map-label { fill: #1d4ed8; text-shadow: none; }
    /* Education route: amber (India) to blue (New Jersey) with a flying plane */
    .edu-arc { stroke: url(#eduRouteGrad); opacity: 0.55; filter: none; }
    .edu-flown { fill: none; stroke: url(#eduRouteGrad); stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(56,189,248,0.6)); pointer-events: none; }
    .edu-plane path { fill: #f8fafc; stroke: rgba(56,189,248,0.9); stroke-width: 0.8; filter: drop-shadow(0 0 6px rgba(56,189,248,0.9)); }
    html.light .edu-plane path { fill: #1d4ed8; stroke: #fff; }
    .edu-dot--in { fill: #f59e0b; filter: drop-shadow(0 0 6px rgba(245,158,11,0.9)); }
    .edu-ping--in { stroke: rgba(245,158,11,0.7); }
    #edu-tooltip {
      position: absolute;
      display: none;
      z-index: 5;
      min-width: 210px;
      max-width: 260px;
      background: var(--bg2);
      border: 1px solid rgba(56,189,248,0.45);
      border-radius: 12px;
      padding: 0.8rem 1rem;
      box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(37,99,235,0.2);
      pointer-events: none;
    }
    html.light #edu-tooltip { background: #ffffff; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
    #edu-tooltip .tt-degree {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 0.2rem;
    }
    #edu-tooltip .tt-school { font-size: 0.75rem; color: var(--text-body); margin-bottom: 0.35rem; }
    #edu-tooltip .tt-meta {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.68rem;
      font-weight: 700;
      color: #7dd3fc;
      background: rgba(56,189,248,0.1);
      border: 1px solid rgba(56,189,248,0.3);
      border-radius: 50px;
      padding: 0.18rem 0.6rem;
    }
    html.light #edu-tooltip .tt-meta { color: #1d4ed8; }
    @media (max-width: 640px) {
      .edu-map-card { padding: 1rem 0.9rem 0.5rem; }
    }

    /* ─── RECOMMENDATION SPOTLIGHT ──────────────── */
    .rec-spotlight {
      background: var(--card);
      border: 1px solid rgba(56,189,248,0.3);
      border-radius: 16px;
      padding: 1.4rem 1.75rem 1.1rem;
      margin-bottom: 1.5rem;
      backdrop-filter: blur(10px);
      position: relative;
      overflow: hidden;
      box-shadow: 0 0 24px rgba(37,99,235,0.12);
      transform: perspective(800px) rotateX(0deg) rotateY(0deg);
      transition: transform 0.25s ease-out;
      will-change: transform;
    }
    .rec-spotlight::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--grad);
    }
    .rec-spotlight::after {
      content: '';
      position: absolute;
      top: -60%;
      left: -80%;
      width: 40%;
      height: 220%;
      background: linear-gradient(90deg, transparent, rgba(56,189,248,0.06), transparent);
      transform: rotate(12deg);
      animation: badgeScan 6s ease-in-out infinite;
      pointer-events: none;
    }
    .rec-quote-mark {
      position: absolute;
      top: 0.9rem;
      right: 1.2rem;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 4rem;
      line-height: 1;
      opacity: 0.18;
      background: var(--grad2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      pointer-events: none;
    }
    .rec-spot-quote {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.02rem;
      font-weight: 500;
      line-height: 1.5;
      color: var(--white);
      min-height: 4.5em;
      padding-right: 3rem;
      transition: opacity 0.35s;
    }
    .rec-spot-meta {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      margin-top: 0.9rem;
      flex-wrap: wrap;
      transition: opacity 0.35s;
    }
    .rec-spot-avatar-frame {
      position: relative;
      flex-shrink: 0;
    }
    .rec-spot-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.72rem;
      font-weight: 700;
      color: #fff;
      background: var(--grad2);
      box-shadow: 0 0 10px rgba(37,99,235,0.4);
      overflow: hidden;
    }
    .rec-spot-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }
    .rec-spot-badge {
      position: absolute;
      bottom: -2px;
      right: -2px;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: #0a66c2;
      border: 2px solid var(--card);
      color: #fff;
      font-size: 0.5rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }
    .rec-spot-name { font-size: 0.85rem; font-weight: 700; color: var(--white); line-height: 1.25; }
    .rec-spot-role { font-size: 0.72rem; color: var(--muted); line-height: 1.25; }
    .rec-spot-controls {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-left: auto;
    }
    .rec-arrow {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid rgba(56,189,248,0.35);
      background: var(--bg3);
      color: #7dd3fc;
      cursor: pointer;
      font-size: 0.8rem;
      line-height: 1;
      transition: all 0.25s;
    }
    .rec-arrow:hover { border-color: rgba(56,189,248,0.7); background: rgba(37,99,235,0.2); box-shadow: 0 0 10px rgba(56,189,248,0.3); }
    .rec-spot-counter {
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--muted);
      letter-spacing: 0.02em;
      white-space: nowrap;
      min-width: 34px;
      text-align: center;
    }
    .rec-progress-track {
      position: relative;
      z-index: 1;
      margin-top: 0.85rem;
      height: 3px;
      width: 100%;
      background: rgba(255,255,255,0.08);
      border-radius: 2px;
      overflow: hidden;
    }
    .rec-progress-fill {
      height: 100%;
      width: 0%;
      background: var(--grad2);
      border-radius: 2px;
    }
    html.light .rec-arrow { color: #1d4ed8; }
    html.light .rec-spotlight { box-shadow: 0 2px 16px rgba(37,99,235,0.08); }
    html.light .rec-progress-track { background: rgba(37,99,235,0.12); }
    @media (max-width: 640px) {
      .rec-spotlight { padding: 1.1rem 1rem 0.9rem; }
      .rec-spot-quote { font-size: 0.92rem; min-height: 6.5em; padding-right: 1.5rem; }
      .rec-spot-controls { margin-left: 0; width: 100%; justify-content: center; }
    }
    @media (hover: none) {
      .rec-spotlight { transform: none !important; }
    }

    .project-body h3 {
      font-size: 0.97rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      line-height: 1.4;
    }

    .project-body p {
      font-size: 0.87rem;
      color: var(--muted);
      line-height: 1.7;
      margin-bottom: 0.75rem;
      flex: 1;
    }

    .project-impact {
      font-size: 0.8rem;
      font-weight: 700;
      color: #38bdf8;
      margin-top: auto;
      padding: 0.65rem 0.9rem;
      background: rgba(37,99,235,0.1);
      border-left: 3px solid #2563eb;
      border-radius: 0 8px 8px 0;
      line-height: 1.6;
    }

    .project-impact .sep {
      color: #38bdf8;
      font-size: 0.6rem;
      margin: 0 0.3rem;
      opacity: 0.9;
      vertical-align: middle;
    }

    html.light .project-impact {
      background: rgba(37,99,235,0.12);
      color: #1e40af;
    }

    html.light .project-impact .sep {
      color: #1e40af;
    }

    .project-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 0.2rem;
    }

    .project-pill {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      font-size: 0.72rem;
      font-weight: 600;
      line-height: 1;
      padding: 0.4rem 0.75rem;
      border-radius: 99px;
      border: 1px solid transparent;
      background: linear-gradient(var(--card), var(--card)) padding-box,
                  linear-gradient(135deg, #635bff, #38bdf8) border-box;
      color: #a5b4fc;
      box-shadow: 0 0 10px rgba(99,91,255,0.15);
    }

    html.light .project-pill {
      background: linear-gradient(#fff, #fff) padding-box,
                  linear-gradient(135deg, #635bff, #38bdf8) border-box;
      color: #4338ca;
    }

    .project-cta {
      font-size: 0.78rem;
      font-weight: 700;
      color: #38bdf8;
      margin-top: auto;
    }

    html.light .project-cta {
      color: #1d4ed8;
    }

    .project-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.85rem;
      font-weight: 600;
      background: var(--grad2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      transition: opacity 0.2s;
    }

    .project-link:hover { opacity: 0.75; }

    /* ═══════════════════════════════════════════════
       RECOMMENDATIONS
    ═══════════════════════════════════════════════ */
    .recommendations-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 0.75rem 0.55rem;
      margin-top: 0.6rem;
      margin-bottom: 0.5rem;
    }

    .rec-row {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.65rem 0.75rem;
      cursor: pointer;
      background: var(--card);
      border: 0.5px solid var(--border);
      border-radius: var(--radius);
      transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
      position: relative;
    }

    .rec-row:hover {
      transform: translateY(-3px);
      border-color: rgba(6,182,212,0.85);
      box-shadow: 0 0 20px rgba(6,182,212,0.3), 0 0 6px rgba(6,182,212,0.12);
    }

    .rec-row-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .rec-row-info {
      flex: 1;
      min-width: 0;
    }

    .rec-card-icon {
      display: none;
    }

    .rec-card-name {
      font-weight: 600;
      font-size: 0.78rem;
      margin: 0;
      color: var(--text);
      line-height: 1.25;
    }

    .rec-card-role {
      font-size: 0.64rem;
      color: var(--muted);
      margin: 1px 0 0;
      line-height: 1.25;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rec-row-badge {
      position: absolute;
      top: -8px;
      right: 10px;
      font-size: 0.58rem;
      font-weight: 600;
      color: #fff;
      padding: 0.15rem 0.45rem;
      border-radius: 4px;
      white-space: nowrap;
      box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    }

    .rec-card-rel {
      display: none;
    }

    .rec-stars {
      font-size: 0.9rem;
      margin: 0;
      letter-spacing: 0.1rem;
    }

    /* ═══════════════════════════════════════════════
       RECOMMENDATION MODALS
    ═══════════════════════════════════════════════ */
    @keyframes modalFadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    @keyframes modalSlideUp {
      from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
      }
      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    .rec-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      opacity: 0;
    }

    .rec-modal.open {
      display: flex;
      animation: modalFadeIn 0.3s ease-out forwards;
      background: rgba(0,0,0,0.5);
    }

    .rec-modal-content {
      background: var(--card);
      border: 0.5px solid var(--border);
      border-radius: var(--radius);
      padding: 2rem;
      max-width: 600px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .rec-modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--muted);
      transition: color 0.3s;
    }

    .rec-modal-close:hover {
      color: var(--text);
    }

    .rec-modal-header {
      margin-bottom: 1.5rem;
    }

    .rec-modal-header h3 {
      font-size: 1.2rem;
      font-weight: 600;
      margin: 0 0 0.5rem 0;
    }

    .rec-modal-title {
      font-size: 0.85rem;
      color: var(--muted);
      margin: 0;
    }

    .rec-quote-full {
      font-size: 0.95rem;
      line-height: 1.7;
      color: var(--text);
      font-style: italic;
      margin: 0 0 1rem 0;
      text-align: justify;
    }

    .rec-modal-link {
      display: inline-block;
      margin-top: 1.5rem;
      padding: 0.7rem 1.2rem;
      background: linear-gradient(135deg, #2563eb, #38bdf8);
      color: white;
      text-decoration: none;
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: 600;
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .rec-modal-link:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(37,99,235,0.4);
    }

    html.light .rec-modal-link {
      background: linear-gradient(135deg, #1e40af, #0891b2);
    }

    /* ═══════════════════════════════════════════════
       EXPERIENCE
    ═══════════════════════════════════════════════ */
    .timeline {
      position: relative;
      padding-left: 2rem;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 8px;
      bottom: 8px;
      width: 2px;
      background: rgba(136,136,168,0.18);
      border-radius: 2px;
    }

    .timeline-progress {
      position: absolute;
      left: 0;
      top: 8px;
      width: 2px;
      height: 0;
      background: linear-gradient(180deg, #2563eb, #38bdf8);
      border-radius: 2px;
      box-shadow: 0 0 10px rgba(56,189,248,0.7);
      pointer-events: none;
      z-index: 1;
    }

    .timeline-progress::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 50%;
      transform: translateX(-50%);
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #38bdf8;
      box-shadow: 0 0 14px rgba(56,189,248,1), 0 0 30px rgba(37,99,235,0.6);
    }

    .timeline-icon.lit {
      border-color: rgba(56,189,248,0.75);
      background: linear-gradient(135deg, rgba(38,189,248,0.22) 0%, rgba(37,99,235,0.14) 100%);
      box-shadow: 0 0 16px rgba(56,189,248,0.35);
    }

    .tl-duration {
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      color: #7dd3fc;
      background: rgba(56,189,248,0.1);
      border: 1px solid rgba(56,189,248,0.3);
      border-radius: 50px;
      padding: 0.12rem 0.55rem;
      white-space: nowrap;
    }

    .tl-now {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: #4ade80;
      background: rgba(74,222,128,0.1);
      border: 1px solid rgba(74,222,128,0.4);
      border-radius: 50px;
      padding: 0.12rem 0.55rem;
      white-space: nowrap;
    }

    .tl-now-dot {
      position: relative;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 6px rgba(74,222,128,0.9);
      flex-shrink: 0;
    }

    .tl-now-dot::after {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 50%;
      border: 1px solid rgba(74,222,128,0.7);
      animation: dotPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    }

    html.light .tl-duration { color: #1d4ed8; background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.28); }
    html.light .tl-now { color: #15803d; background: rgba(21,128,61,0.08); border-color: rgba(21,128,61,0.35); }
    html.light .tl-now-dot { background: #16a34a; }
    html.light .tl-now-dot::after { border-color: rgba(22,163,74,0.6); }

    /* ─── CAREER ASCENT: CIRCUIT STAIRCASE ──────── */
    .career-ascent {
      position: relative;
      max-width: 700px;
      margin: 0 auto 3.25rem; /* room for role cards that sit below the year/location labels */
    }
    @media (max-width: 640px) { .career-ascent { margin-bottom: 4.75rem; } }
    .ascent-replay { transition: opacity .25s; }
    .career-ascent.climbing + .ascent-replay { opacity: 0; pointer-events: none; }

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

    .ascent-base {
      fill: none;
      stroke: rgba(56,189,248,0.28);
      stroke-width: 2;
    }

    .ascent-pulse {
      fill: none;
      stroke: #38bdf8;
      stroke-width: 2.5;
      stroke-linecap: round;
      stroke-dasharray: 10 90;
      filter: drop-shadow(0 0 5px rgba(56,189,248,0.9));
    }

    .ascent-svg text {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.05em;
      fill: var(--muted);
      text-anchor: middle;
    }

    .ascent-svg text.now { fill: #7dd3fc; }

    .ascent-svg text.ascent-loc {
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.03em;
      opacity: 0.85;
    }

    .ascent-step {
      position: absolute;
      width: 16px;
      height: 16px;
      padding: 0;
      border-radius: 50%;
      background: var(--bg2);
      border: 1.5px solid #38bdf8;
      cursor: pointer;
      transform: translate(-50%, -50%);
      transition: background 0.25s, box-shadow 0.25s;
    }

    .ascent-step:hover {
      background: rgba(37,99,235,0.45);
      box-shadow: 0 0 12px rgba(56,189,248,0.7);
    }

    .ascent-step--now {
      width: 20px;
      height: 20px;
      background: rgba(37,99,235,0.5);
      box-shadow: 0 0 14px rgba(56,189,248,0.8);
    }

    .ascent-step--now::before {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      border: 1.5px solid rgba(56,189,248,0.7);
      animation: dotPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    }

    .ascent-step::after {
      content: attr(data-role);
      position: absolute;
      bottom: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%) translateY(5px);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      white-space: nowrap;
      color: #7dd3fc;
      background: var(--bg2);
      border: 1px solid rgba(56,189,248,0.5);
      border-radius: 50px;
      padding: 0.32rem 0.75rem;
      box-shadow: 0 0 14px rgba(37,99,235,0.3);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.22s, transform 0.22s;
      z-index: 5;
    }

    .ascent-step:hover::after,
    .ascent-step:focus-visible::after {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* first nodes: tooltip would clip left - nudge inward */
    .ascent-step[data-tl="6"]::after { left: 0; transform: translateX(0) translateY(5px); }
    .ascent-step[data-tl="6"]:hover::after { transform: translateX(0) translateY(0); }
    .ascent-step[data-tl="0"]::after { left: auto; right: 0; transform: translateX(0) translateY(5px); }
    .ascent-step[data-tl="0"]:hover::after { transform: translateX(0) translateY(0); }

    html.light .ascent-base { stroke: rgba(37,99,235,0.3); }
    html.light .ascent-pulse { stroke: #1d4ed8; filter: drop-shadow(0 0 4px rgba(37,99,235,0.5)); }
    html.light .ascent-step { background: #ffffff; border-color: #2563eb; }
    html.light .ascent-step--now { background: rgba(37,99,235,0.35); }
    html.light .ascent-svg text.now { fill: #1d4ed8; }
    html.light .ascent-step::after {
      color: #1d4ed8;
      background: #ffffff;
      box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    }

    @media (max-width: 640px) {
      .ascent-svg text { font-size: 16px; }
      .ascent-step { width: 14px; height: 14px; }
    }

    /* Career climb: marker climbs the stairs with a role card at each step */
    .ascent-climb { fill: none; stroke: #38bdf8; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(56,189,248,0.9)); opacity: 0; transition: opacity 0.6s; }
    .ascent-climber { fill: #fbbf24; filter: drop-shadow(0 0 8px #f59e0b); opacity: 0; transition: opacity 0.3s; }
    .career-ascent.climbing .ascent-climb, .career-ascent.climbing .ascent-climber { opacity: 1; }
    .career-ascent.climbing .ascent-pulse { opacity: 0; }
    .ascent-pulse { transition: opacity 0.6s; }
    .ascent-card { position: absolute; z-index: 6; min-width: 180px; max-width: 240px; padding: 0.55rem 0.75rem; border-radius: 12px; pointer-events: none;
      background: var(--bg2); border: 1px solid rgba(56,189,248,0.45); box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 16px rgba(37,99,235,0.2);
      transform: translate(-50%, calc(-100% - 6px)); opacity: 0; transition: opacity 0.25s, transform 0.25s; }
    .ascent-card.on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); }
    .ascent-card.below { transform: translate(0, 6px); }
    .ascent-card.below.on { transform: translate(0, 14px); }
    .ascent-card b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; color: var(--white); line-height: 1.3; }
    .ascent-card span { display: block; font-size: 0.68rem; color: var(--muted); }
    .ascent-card em { display: inline-block; margin-top: 0.3rem; font-style: normal; font-size: 0.66rem; font-weight: 700; color: #0b1220; background: #4ade80; border-radius: 999px; padding: 1px 8px; }
    .ascent-replay { display: block; margin: 0.2rem auto 0; font-family: inherit; font-size: 0.7rem; font-weight: 700; color: #7dd3fc; background: rgba(56,189,248,0.1);
      border: 1px solid rgba(56,189,248,0.3); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; }
    html.light .ascent-climb { stroke: #1d4ed8; filter: drop-shadow(0 0 4px rgba(37,99,235,0.5)); }
    html.light .ascent-card { background: #fff; box-shadow: 0 10px 26px rgba(15,23,42,0.15); }
    html.light .ascent-card b { color: #0f172a; }
    html.light .ascent-card em { background: #16a34a; color: #fff; }
    html.light .ascent-replay { color: #1d4ed8; border-color: rgba(29,78,216,0.3); background: rgba(29,78,216,0.06); }
    @media (max-width: 640px) { .ascent-card { min-width: 150px; max-width: 200px; } .ascent-card b { font-size: 0.74rem; } }

    .exp-toggle {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      padding: 0.45rem 1.15rem;
      border-radius: 50px;
      background: var(--bg3);
      color: var(--muted);
      border: 1px solid var(--border);
      cursor: pointer;
      transition: all 0.25s;
      margin-bottom: 1.5rem;
    }

    .exp-toggle:hover {
      color: var(--white);
      border-color: rgba(56,189,248,0.5);
      box-shadow: 0 0 12px rgba(56,189,248,0.2);
    }

    html.light .exp-toggle { background: #ededf5; color: #55557a; }

    .timeline-item {
      position: relative;
      margin-bottom: 1rem;
    }

    .timeline-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      padding: 1rem 1.2rem;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--card);
      backdrop-filter: blur(10px);
      transition: border-color 0.25s, background 0.25s;
      gap: 1rem;
    }

    .timeline-header:hover {
      border-color: rgba(37,99,235,0.35);
      background: rgba(37,99,235,0.04);
    }

    .timeline-item.expanded .timeline-header {
      border-color: rgba(37,99,235,0.4);
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      border-bottom-color: transparent;
    }

    .timeline-chevron {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 0.75rem;
      transition: transform 0.3s, border-color 0.25s, color 0.25s;
    }

    .timeline-item.expanded .timeline-chevron {
      transform: rotate(180deg);
      border-color: rgba(37,99,235,0.4);
      color: var(--coral);
    }

    .timeline-item::before {
      content: '';
      position: absolute;
      left: 0rem;
      top: 1.2rem;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--grad2);
      box-shadow: 0 0 8px rgba(37,99,235,0.5);
      transition: width 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
    }

    .timeline-item.expanded::before {
      width: 12px;
      height: 12px;
      box-shadow: 0 0 16px rgba(56,189,248,0.8);
    }

    /* Professional icon element */
    .timeline-icon {
      position: absolute;
      left: -3.5rem;
      top: 0.5rem;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      background: linear-gradient(135deg, rgba(38,189,248,0.12) 0%, rgba(37,99,235,0.08) 100%);
      border: 2px solid rgba(56,189,248,0.3);
      border-radius: 12px;
      transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      pointer-events: none;
    }

    .timeline-item.expanded .timeline-icon {
      transform: scale(1.15) rotate(8deg);
      background: linear-gradient(135deg, rgba(38,189,248,0.25) 0%, rgba(37,99,235,0.15) 100%);
      border-color: rgba(56,189,248,0.6);
      box-shadow: 0 8px 24px rgba(56,189,248,0.25);
    }


    .timeline-date {
      font-size: 0.8rem;
      color: var(--coral);
      font-weight: 600;
      letter-spacing: 0.08em;
      margin-bottom: 0.35rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .timeline-role {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.15rem;
      font-weight: 600;
      margin-bottom: 0.2rem;
    }

    .timeline-company {
      font-size: 0.95rem;
      color: var(--muted);
      margin-bottom: 0.75rem;
    }

    .timeline-desc {
      font-size: 0.87rem;
      color: var(--text-body);
      line-height: 1.75;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
      padding: 0 1.2rem;
      border: 1px solid rgba(37,99,235,0.35);
      border-top: none;
      border-radius: 0 0 10px 10px;
      background: var(--card);
      backdrop-filter: blur(10px);
      position: relative;
    }

    .timeline-desc::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(56,189,248,0.6), transparent);
      opacity: 0;
      transition: opacity 0.3s ease 0.2s;
    }

    .timeline-item.expanded .timeline-desc {
      max-height: 800px;
      opacity: 1;
      padding: 1rem 1.2rem 1.2rem;
    }

    .timeline-item.expanded .timeline-desc::before {
      opacity: 1;
    }

    .timeline-desc li {
      margin-bottom: 0.5rem;
      list-style: none;
      padding-left: 1.2rem;
      position: relative;
    }

    .timeline-desc li::before {
      content: '▸';
      position: absolute;
      left: 0;
      color: var(--gold);
    }

    /* ═══════════════════════════════════════════════
       EDUCATION
    ═══════════════════════════════════════════════ */
    .edu-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }

    .edu-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-left: 3px solid transparent;
      border-radius: 10px;
      padding: 1.2rem 1.4rem;
      backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      gap: 1.1rem;
      transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, border-left-color 0.25s;
    }

    .edu-card:hover {
      border-color: rgba(37,99,235,0.3);
      border-left-color: #2563eb;
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    }

    .edu-icon {
      font-size: 1.8rem;
      width: 48px;
      height: 48px;
      background: rgba(37,99,235,0.1);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .edu-info { flex: 1; min-width: 0; }

    .edu-degree {
      font-size: 0.92rem;
      font-weight: 600;
      margin-bottom: 0.25rem;
      line-height: 1.35;
    }

    .edu-institution {
      font-size: 0.8rem;
      color: var(--muted);
      margin-bottom: 0.25rem;
    }

    .edu-year {
      font-size: 0.75rem;
      color: var(--coral);
      font-weight: 600;
    }

    @media (max-width: 560px) {
      .edu-grid { grid-template-columns: 1fr; }
    }

    /* ═══════════════════════════════════════════════
       CERTIFICATIONS
    ═══════════════════════════════════════════════ */
    /* ── Skills Snapshot radar (merges cert + tools highlights) ── */
    .skills-snapshot-card {
      display: flex;
      align-items: center;
      gap: 1.6rem;
      background: linear-gradient(160deg, rgba(37,99,235,0.1), var(--card));
      border: 1px solid rgba(56,189,248,0.25);
      border-radius: 14px;
      padding: 1.3rem 1.6rem;
      margin-bottom: 1.2rem;
      flex-wrap: wrap;
    }
    .skills-radar-svg { flex-shrink: 0; overflow: visible; }
    .skills-snapshot-right { flex: 1; min-width: 220px; }
    .skills-snapshot-title { font-size: 0.85rem; font-weight: 700; color: var(--white); margin-bottom: 0.7rem; }
    .skills-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
    .skills-chip {
      font-size: 0.72rem;
      padding: 0.35rem 0.75rem;
      border-radius: 16px;
      background: rgba(56,189,248,0.12);
      color: #7dd3fc;
      border: 1px solid rgba(56,189,248,0.3);
      cursor: pointer;
      font-weight: 600;
      transition: background 0.2s, transform 0.2s;
    }
    .skills-chip:hover { background: rgba(56,189,248,0.25); transform: translateY(-1px); }
    .skills-chip-hint { font-size: 0.68rem; color: var(--muted); margin-top: 0.6rem; }
    html.light .skills-chip { color: #1d4ed8; }

    /* ── Stat-first summary card ── */
    .cert-summary-card {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 1rem 1.3rem;
      margin-bottom: 1rem;
    }
    .cert-summary-row { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
    .cert-stat { text-align: center; flex-shrink: 0; }
    .cert-stat-num { font-size: 1.4rem; font-weight: 800; color: var(--gold); line-height: 1; }
    .cert-stat-lbl { font-size: 0.68rem; color: var(--muted); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.04em; }
    .cert-divider-v { width: 1px; height: 30px; background: var(--border); flex-shrink: 0; }
    .cert-issuers { flex: 1; min-width: 180px; font-size: 0.85rem; color: var(--muted); }
    .cert-tagline { font-size: 0.85rem; font-weight: 700; color: var(--white); margin-bottom: 0.2rem; }
    .cert-top-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
    .cert-top-badge-chip {
      font-size: 0.7rem;
      padding: 0.35rem 0.7rem;
      border-radius: 16px;
      background: rgba(56,189,248,0.12);
      color: #7dd3fc;
      border: 1px solid rgba(56,189,248,0.3);
      font-weight: 600;
      white-space: nowrap;
    }
    .cert-latest-tag { font-size: 0.68rem; color: var(--muted); }
    html.light .cert-tagline { color: #111118; }
    html.light .cert-top-badge-chip { color: #1d4ed8; }

    /* ── Tools: category coverage tiles ── */
    .tools-coverage-card {
      display: flex;
      gap: 1rem;
      justify-content: space-between;
      background: linear-gradient(160deg, rgba(37,99,235,0.1), var(--card));
      border: 1px solid rgba(56,189,248,0.25);
      border-radius: 14px;
      padding: 1.1rem 1.3rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
    }
    .tools-coverage-tile {
      text-align: center;
      flex: 1;
      min-width: 100px;
      background: var(--card);
      border-radius: 10px;
      padding: 0.9rem 0.6rem 0.7rem;
    }
    .tools-coverage-tile svg { display: block; margin: 0 auto; }
    .tools-coverage-num { font-size: 0.85rem; font-weight: 800; fill: var(--white); }
    .tools-coverage-icon { font-size: 1.6rem; color: #38bdf8; }
    .tools-coverage-count { font-size: 1.3rem; font-weight: 800; color: var(--white); margin: 0.4rem 0 0.15rem; }
    .tools-coverage-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.1rem; }
    .tools-coverage-bar-track { border-radius: 99px; height: 4px; margin-top: 0.55rem; overflow: hidden; }
    .tools-coverage-bar-fill { height: 4px; border-radius: 99px; background: #38bdf8; width: 100%; }

    /* ── Tools: proficiency tags on core chips ── */
    .chip-tag {
      display: inline-block;
      font-size: 0.6rem;
      padding: 0.12rem 0.42rem;
      border-radius: 10px;
      margin-left: 0.4rem;
      font-weight: 700;
      vertical-align: middle;
    }
    .chip-tag.expert { background: rgba(34,197,94,0.18); color: #4ade80; }
    .chip-tag.proficient { background: rgba(56,189,248,0.18); color: #7dd3fc; }
    .chip-tag.familiar { background: rgba(148,163,184,0.18); color: #cbd5e1; }
    html.light .chip-tag.expert { color: #15803d; }
    html.light .chip-tag.proficient { color: #1d4ed8; }
    html.light .chip-tag.familiar { color: #475569; }
    .cert-explore-btn {
      display: inline-flex; align-items: center; gap: 0.4rem;
      padding: 0.55rem 1rem;
      border-radius: 20px;
      background: rgba(37,99,235,0.16);
      color: #7dd3fc;
      border: 1px solid rgba(56,189,248,0.35);
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.2s, transform 0.2s;
    }
    .cert-explore-btn:hover { background: rgba(37,99,235,0.28); transform: translateY(-1px); }
    .cert-explore-btn svg { transition: transform 0.3s; }
    .cert-explore-btn.expanded svg { transform: rotate(180deg); }
    html.light .cert-explore-btn { color: #1d4ed8; }

    /* ── Category tabs ── */
    .cert-tabs-wrap {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.45s ease, opacity 0.3s ease;
    }
    .cert-tabs-wrap.open { max-height: 4000px; opacity: 1; }
    .cert-tabs {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-bottom: 1.4rem;
    }
    .cert-tab {
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--muted);
      background: transparent;
      border: 1px solid var(--border);
      cursor: pointer;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .cert-tab.active {
      background: rgba(37,99,235,0.22);
      color: #7dd3fc;
      border-color: rgba(56,189,248,0.5);
    }
    html.light .cert-tab.active { color: #1d4ed8; }
    .cert-panel { display: none; }
    .cert-panel.active { display: block; }

    /* ── Cert group ── */
    .cert-group { margin-bottom: 2.8rem; }

    .cert-group-title {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .cert-group-title::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* ── Cert grid - 3 cols desktop ── */
    .cert-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.55rem;
    }

    /* ── Cert card ── */
    a.cert-card {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      background: var(--card);
      border: 1px solid var(--border);
      border-left: 3px solid transparent;
      border-radius: 10px;
      padding: 0.6rem 0.75rem;
      backdrop-filter: blur(10px);
      text-decoration: none;
      color: inherit;
      cursor: pointer;
      transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, border-left-color 0.25s;
      min-height: 52px;
    }

    a.cert-card:hover {
      border-color: rgba(37,99,235,0.3);
      border-left-color: #2563eb;
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    }

    a.cert-card:hover .cert-info h4 { color: #93c5fd; }

    html.light a.cert-card:hover .cert-info h4 { color: #1d4ed8; }

    /* ── Badge ── */
    .cert-badge {
      width: 28px;
      height: 28px;
      border-radius: 7px;
      background: rgba(37,99,235,0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      flex-shrink: 0;
    }

    /* ── Info text ── */
    .cert-info {
      flex: 1;
      min-width: 0;
    }

    .cert-info h4 {
      font-size: 0.78rem;
      font-weight: 600;
      line-height: 1.3;
      margin-bottom: 0.15rem;
      transition: color 0.2s;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .cert-info p {
      font-size: 0.68rem;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .issuer-icon {
      width: 14px;
      height: 14px;
      border-radius: 2px;
      flex-shrink: 0;
      opacity: 1;
      filter: brightness(1.35);
    }

    /* ── Responsive ── */
    @media (max-width: 900px) {
      .cert-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 560px) {
      .cert-grid { grid-template-columns: 1fr; }
    }

    .cert-info .cert-year {
      font-size: 0.75rem;
      color: var(--purple);
      font-weight: 600;
      margin-top: 0.3rem;
    }

    /* ═══════════════════════════════════════════════
       TOOLS
    ═══════════════════════════════════════════════ */
    .tools-section-grid {
      display: flex;
      flex-direction: column;
      gap: 2.5rem;
    }

    /* ── Reuse cert stat-card + tabs pattern for Tools ── */
    .tools-summary-card { margin-bottom: 1rem; }
    .tools-tabs-wrap.open { max-height: 6000px; }
    .tools-panel { display: none; }
    .tools-panel.active { display: block; }

    .tools-category h4 {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.85rem;
      text-align: left;
    }

    .tools-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
    }

    .chip {
      padding: 0.45rem 1rem;
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: 500;
      background: var(--bg3);
      border: 1px solid var(--border);
      color: var(--white);
      transition: all 0.25s;
      cursor: default;
    }

    .chip:hover {
      border-color: rgba(37,99,235,0.4);
      background: rgba(37,99,235,0.08);
      transform: translateY(-2px);
    }

    /* ═══════════════════════════════════════════════
       CONTACT
    ═══════════════════════════════════════════════ */
    .contact-card {
      background:
        linear-gradient(90deg, #2563eb, #38bdf8, #6366f1) top / 100% 2px no-repeat,
        linear-gradient(rgba(56,189,248,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.028) 1px, transparent 1px),
        var(--card);
      background-size: 100% 2px, 24px 24px, 24px 24px, auto;
      border: 1px solid rgba(56,189,248,0.3);
      border-radius: 24px;
      padding: 4rem 3rem;
      backdrop-filter: blur(20px);
      max-width: 700px;
      margin: 0 auto;
      position: relative;
      overflow: hidden;
      box-shadow: 0 0 30px rgba(37,99,235,0.12), inset 0 0 60px rgba(37,99,235,0.04);
    }

    .contact-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.08) 0%, transparent 70%);
      pointer-events: none;
    }

    .contact-card::after {
      content: '';
      position: absolute;
      top: -60%;
      left: -80%;
      width: 35%;
      height: 220%;
      background: linear-gradient(90deg, transparent, rgba(56,189,248,0.05), transparent);
      transform: rotate(12deg);
      animation: badgeScan 8s ease-in-out infinite;
      pointer-events: none;
      z-index: 1;
    }

    .contact-card h2 {
      font-size: clamp(1.8rem, 4vw, 2.5rem);
      font-weight: 700;
      margin-bottom: 1rem;
    }

    .wave-glow {
      display: inline-block;
      animation: waveGlow 2.2s ease-in-out infinite;
      transform-origin: 70% 70%;
    }

    @keyframes waveGlow {
      0%, 100% {
        filter: drop-shadow(0 0 4px rgba(56,189,248,0.5)) drop-shadow(0 0 2px rgba(99,102,241,0.4));
        transform: rotate(0deg);
      }
      50% {
        filter: drop-shadow(0 0 14px rgba(56,189,248,0.9)) drop-shadow(0 0 8px rgba(99,102,241,0.7));
        transform: rotate(14deg);
      }
    }

    .contact-card p {
      color: var(--muted);
      margin-bottom: 2.5rem;
      font-size: 1rem;
    }

    .contact-desc {
      text-align: left;
      margin: 0 auto 1.5rem;
      max-width: 560px;
    }

    .contact-desc p {
      color: var(--text-body);
      font-size: 0.95rem;
      line-height: 1.75;
      margin-bottom: 0.75rem !important;
      text-align: left;
    }

    .contact-location {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.82rem;
      color: var(--muted);
      font-weight: 500;
      margin-bottom: 1.5rem;
      padding: 0.35rem 0.9rem;
      border: 1px solid var(--border);
      border-radius: 50px;
      background: rgba(37,99,235,0.06);
    }

    /* ── Contact terminal (say-hello form) ── */
    .contact-form-toggle {
      display: flex;
      width: fit-content;
      align-items: center;
      gap: 0.5rem;
      margin: 0 auto 1.5rem;
      font-size: 0.82rem;
      font-weight: 700;
      color: #ffffff;
      background: var(--grad2);
      border: none;
      border-radius: 50px;
      padding: 0.6rem 1.25rem;
      cursor: pointer;
      box-shadow: 0 0 14px rgba(56,189,248,0.35);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .contact-form-toggle:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 22px rgba(56,189,248,0.45);
    }

    .contact-wizard {
      text-align: center;
      max-width: 440px;
      margin: 0 auto 1.5rem;
      background: var(--card);
      border: 1px solid rgba(56,189,248,0.3);
      border-radius: 16px;
      padding: 1.8rem 1.8rem 1.5rem;
      box-shadow: 0 0 30px rgba(37,99,235,0.12);
    }

    .wizard-progress {
      display: flex;
      justify-content: center;
      gap: 6px;
      margin-bottom: 1.3rem;
    }

    .wizard-dot {
      width: 18px;
      height: 4px;
      border-radius: 2px;
      background: var(--border);
      transition: background 0.3s, width 0.3s;
    }

    .wizard-dot.active { background: #38bdf8; width: 26px; }
    .wizard-dot.done { background: rgba(56,189,248,0.5); }

    .wizard-step {
      display: none;
      animation: wizardStepIn 0.35s ease;
    }

    .wizard-step.active { display: block; }

    @keyframes wizardStepIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .wizard-eyebrow {
      margin: 0 0 0.4rem;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .wizard-question {
      display: block;
      margin-bottom: 1rem;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--white);
    }

    .wizard-input {
      width: 100%;
      background: transparent;
      border: none;
      border-bottom: 2px solid rgba(56,189,248,0.3);
      color: var(--white);
      font-family: inherit;
      font-size: 0.95rem;
      padding: 0.4rem 0.1rem;
      text-align: center;
      resize: none;
      transition: border-color 0.2s;
    }

    .wizard-input:focus {
      outline: none;
      border-bottom-color: #38bdf8;
    }

    .wizard-textarea { min-height: 150px; line-height: 1.55; text-align: left; resize: none; overflow: hidden; border: 1px solid rgba(56,189,248,0.3); border-radius: 12px; padding: 0.7rem 0.85rem; background: rgba(56,189,248,0.04); }
    .wizard-textarea:focus { border-color: #38bdf8; }

    .wizard-controls {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 1.4rem;
    }

    .wizard-back {
      background: transparent;
      border: none;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      padding: 0.4rem 0.2rem;
      visibility: hidden;
    }

    .wizard-back.visible { visibility: visible; }

    .wizard-hint {
      font-size: 0.66rem;
      color: var(--muted);
    }

    .wizard-next {
      background: var(--grad2);
      color: #ffffff;
      border: none;
      border-radius: 50px;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 0.45rem 1.1rem;
      cursor: pointer;
      box-shadow: 0 0 10px rgba(56,189,248,0.35);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .wizard-next:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(56,189,248,0.45);
    }

    .wizard-status {
      margin: 0.8rem 0 0;
      font-size: 0.72rem;
      color: var(--muted);
    }

    @media (max-width: 600px) {
      .contact-wizard { padding: 1.4rem 1.2rem 1.2rem; max-width: 100%; }
    }

    .contact-email {
      display: inline-block;
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 2.5rem;
      background: var(--grad2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .social-row {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .social-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.65rem 1.4rem;
      border-radius: 50px;
      border: 1px solid var(--border);
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--white);
      transition: all 0.25s;
    }

    .social-btn:hover {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.2);
      transform: translateY(-2px);
    }

    /* ─── OPEN SOURCE / SKILLS SECTION ───────────── */
    .repo-card {
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(rgba(56,189,248,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.028) 1px, transparent 1px),
        var(--card);
      background-size: 24px 24px, 24px 24px, auto;
      border: 1px solid rgba(56,189,248,0.3);
      border-radius: 16px;
      padding: 2rem;
      backdrop-filter: blur(10px);
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 2rem;
      flex-wrap: wrap;
      margin-bottom: 2.5rem;
      box-shadow: 0 0 30px rgba(37,99,235,0.12), inset 0 0 60px rgba(37,99,235,0.04);
      transition: border-color 0.3s, box-shadow 0.3s;
    }

    .repo-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--grad);
      z-index: 2;
    }

    .repo-card::after {
      content: '';
      position: absolute;
      top: -60%;
      left: -80%;
      width: 35%;
      height: 220%;
      background: linear-gradient(90deg, transparent, rgba(56,189,248,0.05), transparent);
      transform: rotate(12deg);
      animation: badgeScan 8s ease-in-out infinite;
      pointer-events: none;
      z-index: 1;
    }

    .repo-card:hover {
      border-color: rgba(56,189,248,0.6);
      box-shadow: 0 8px 32px rgba(37,99,235,0.2), inset 0 0 60px rgba(37,99,235,0.05);
    }

    html.light .repo-card {
      background:
        linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px),
        var(--card);
      background-size: 24px 24px, 24px 24px, auto;
      box-shadow: 0 2px 20px rgba(37,99,235,0.08);
    }

    .repo-card-left { flex: 1; min-width: 0; }

    .repo-card-icon {
      font-size: 1.8rem;
      margin-bottom: 0.6rem;
    }

    .repo-card-name {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.1rem;
      font-weight: 700;
      background: var(--grad2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 0.4rem;
    }

    .repo-card-desc {
      font-size: 0.88rem;
      color: var(--text-body);
      line-height: 1.7;
      margin-bottom: 1rem;
      max-width: 560px;
    }

    .repo-card-meta {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .repo-meta-item {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.78rem;
      color: var(--muted);
    }

    .repo-card-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.7rem 1.4rem;
      border-radius: 50px;
      background: var(--grad2);
      color: var(--bg);
      font-weight: 700;
      font-size: 0.88rem;
      text-decoration: none;
      transition: transform 0.2s, box-shadow 0.2s;
      white-space: nowrap;
      align-self: center;
      flex-shrink: 0;
    }

    .repo-card-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(37,99,235,0.35);
    }

    .collection-subsection {
      margin-bottom: 3rem;
    }

    .subsection-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 1.2rem;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      opacity: 0.8;
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 0.75rem;
    }

    .skill-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-top: 2px solid transparent;
      border-radius: 10px;
      padding: 1rem 0.9rem 0.9rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 0.5rem;
      text-decoration: none;
      color: inherit;
      transition: border-color 0.25s, border-top-color 0.25s, transform 0.25s, box-shadow 0.25s;
      position: relative;
      cursor: pointer;
    }

    .skill-card::after {
      content: '↗';
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      width: 24px;
      height: 24px;
      background: rgba(56,189,248,0.15);
      border: 1px solid rgba(56,189,248,0.3);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      color: #38bdf8;
      font-weight: 700;
      opacity: 0;
      transition: opacity 0.25s, background 0.25s, border-color 0.25s;
    }

    .skill-card:hover {
      border-color: rgba(37,99,235,0.3);
      border-top-color: #38bdf8;
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }

    .skill-card:hover::after {
      opacity: 1;
      background: rgba(56,189,248,0.25);
      border-color: rgba(56,189,248,0.5);
    }

    .skill-card-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: rgba(37,99,235,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
      margin-top: 0.3rem;
    }

    .skill-card-info h4 {
      font-size: 0.82rem;
      font-weight: 600;
      margin-bottom: 0.15rem;
      transition: color 0.2s;
      line-height: 1.3;
    }

    .skill-card:hover .skill-card-info h4 { color: #38bdf8; }

    .skill-card-info p {
      font-size: 0.72rem;
      color: var(--muted);
      line-height: 1.4;
    }

    .skill-badge {
      position: absolute;
      top: 0.6rem;
      right: 0.6rem;
      display: inline-block;
      font-size: 0.55rem;
      font-weight: 700;
      padding: 0.25rem 0.45rem;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      z-index: 10;
      white-space: nowrap;
    }

    /* Sub-Agent badge - cyan/blue */
    .skill-badge:not(.skill-badge-default) {
      color: #38bdf8;
    }

    html.light .skill-badge:not(.skill-badge-default) {
      color: #2563eb;
    }

    /* Skill badge - purple/indigo */
    .skill-badge-default {
      color: #a78bfa;
    }

    html.light .skill-badge-default {
      color: #7c3aed;
    }

    @media (max-width: 900px) {
      .skills-grid { grid-template-columns: repeat(3, 1fr); }
    }
    @media (max-width: 600px) {
      .skills-grid { grid-template-columns: repeat(2, 1fr); }
    }

    html.light .repo-card,
    html.light .skill-card { background: #ffffff; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }

    html.light .skill-card::after {
      background: rgba(37,99,235,0.12);
      border-color: rgba(37,99,235,0.25);
      color: #2563eb;
    }

    html.light .skill-card:hover::after {
      background: rgba(37,99,235,0.2);
      border-color: rgba(37,99,235,0.4);
    }

    /* ─── INTERACTIVE / CLICKABLE CARD ───────────── */
    .project-card--interactive {
      cursor: pointer;
      position: relative;
      transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    }

    .project-card--interactive::after {
      content: '● Explore';
      position: absolute;
      top: 0.75rem;
      right: 0.8rem;
      font-size: 0.62rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: #06b6d4;
      opacity: 0.75;
      transition: opacity 0.3s;
      z-index: 2;
    }

    .project-card--interactive:hover {
      border-color: rgba(6,182,212,0.85);
      box-shadow: 0 0 30px rgba(6,182,212,0.4), 0 0 10px rgba(6,182,212,0.2);
      transform: translateY(-6px);
    }

    .project-card--interactive:hover::after {
      opacity: 1;
      transform: translate(2px, -2px);
    }

    .project-card--interactive:active {
      transform: scale(0.98);
      transition: transform 0.1s ease-out;
    }

    /* ─── PROJECT MODAL ──────────────────────────── */
    /* Open/close are the same transition run forward and backward - the
       backdrop stays visible for the tail of the close (via .force-visible,
       toggled in JS) so the reverse animation has time to play instead of
       cutting to display:none instantly. */
    .modal-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.75);
      backdrop-filter: blur(6px);
      z-index: 500;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      opacity: 0;
      transition: opacity 0.28s ease;
    }

    .modal-backdrop.open,
    .modal-backdrop.force-visible { display: flex; }

    .modal-backdrop.open { opacity: 1; }

    .modal {
      background: var(--bg2);
      border: 1px solid rgba(37,99,235,0.3);
      border-radius: 20px;
      max-width: 780px;
      width: 100%;
      max-height: 88vh;
      overflow-y: auto;
      position: relative;
      opacity: 0;
      transform: scale(0.94);
      transform-origin: 50% 50%;
      transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1);
      scrollbar-width: thin;
      scrollbar-color: rgba(37,99,235,0.3) transparent;
    }

    .modal-backdrop.open .modal {
      opacity: 1;
      transform: scale(1);
    }

    @media (prefers-reduced-motion: reduce) {
      .modal-backdrop, .modal { transition-duration: 0.15s; }
      .modal, .modal-backdrop.open .modal { transform: none; }
    }

    .modal-header {
      padding: 1.6rem 2rem 1rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1.5rem;
      position: sticky;
      top: 0;
      background: var(--bg2);
      z-index: 1;
      border-radius: 20px 20px 0 0;
    }

    .modal-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.3rem;
      font-weight: 700;
      background: var(--grad2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1.3;
    }

    .modal-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 0.65rem;
      align-items: center;
    }

    .modal-year {
      font-size: 0.72rem;
      font-weight: 700;
      color: #38bdf8;
      border: 1px solid rgba(56,189,248,0.35);
      padding: 0.25rem 0.7rem;
      border-radius: 50px;
      white-space: nowrap;
      background: rgba(56,189,248,0.08);
    }

    .modal-close {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
      transition: all 0.2s;
    }

    .modal-close:hover { background: rgba(255,255,255,0.08); color: var(--white); }
    .modal-close:active { transform: scale(0.88); transition: transform 0.1s ease-out; }

    .modal-body { padding: 1.6rem 2rem 2rem; display: flex; flex-direction: column; gap: 1.5rem; }

    .modal-section h4 {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.6rem;
    }

    .modal-section p {
      font-size: 0.92rem;
      color: var(--text-body);
      line-height: 1.75;
    }

    .modal-section ul.modal-list, .modal-section ol.modal-list {
      font-size: 0.92rem;
      color: var(--text-body);
      line-height: 1.75;
      padding-left: 1.3rem;
      margin: 0.4rem 0 0.6rem;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    .modal-section .modal-list strong { color: var(--white); font-weight: 700; }

    .modal-impact {
      font-size: 0.85rem;
      font-weight: 700;
      color: #38bdf8;
      padding: 0.7rem 1rem;
      background: rgba(37,99,235,0.1);
      border-left: 3px solid #2563eb;
      border-radius: 0 8px 8px 0;
      line-height: 1.6;
    }

    .modal-quicksum {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      background: rgba(37,99,235,0.08);
      border-left: 3px solid #2563eb;
      border-radius: 0 8px 8px 0;
      padding: 0.9rem 1.1rem;
      margin-bottom: 1.6rem;
    }

    .modal-quicksum p {
      margin: 0;
      font-size: 0.86rem;
      line-height: 1.55;
      color: var(--text-body);
    }

    .qs-label {
      display: inline-block;
      font-weight: 700;
      font-size: 0.64rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-right: 0.5rem;
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      vertical-align: middle;
    }

    .qs-problem  { color: #f87171; background: rgba(248,113,113,0.14); }
    .qs-approach { color: #38bdf8; background: rgba(56,189,248,0.14); }
    .qs-result   { color: #4ade80; background: rgba(74,222,128,0.14); }

    html.light .qs-problem  { color: #b91c1c; }
    html.light .qs-approach { color: #0369a1; }
    html.light .qs-result   { color: #15803d; }

    .modal-details {
      border-top: 1px solid var(--border);
      padding-top: 1.3rem;
    }

    .modal-details summary {
      cursor: pointer;
      font-size: 0.82rem;
      font-weight: 600;
      color: #38bdf8;
      list-style: none;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      user-select: none;
    }

    .modal-details summary::-webkit-details-marker { display: none; }

    .modal-details summary::after {
      content: '▾';
      font-size: 0.65rem;
      transition: transform 0.2s;
    }

    .modal-details[open] summary::after { transform: rotate(180deg); }

    .modal-details .modal-section { margin-top: 1.4rem; }

    .modal-video {
      width: 100%;
      border-radius: 12px;
      max-height: 400px;
      background: #000;
      outline: none;
      border: 1px solid var(--border);
    }

    .modal-download {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.7rem 1.4rem;
      border-radius: 50px;
      background: var(--grad2);
      color: var(--bg);
      font-weight: 700;
      font-size: 0.88rem;
      text-decoration: none;
      transition: transform 0.2s, box-shadow 0.2s;
      width: fit-content;
    }

    .modal-download:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(37,99,235,0.35);
    }

    html.light .modal { background: #ffffff; }
    html.light .modal-header { background: #ffffff; }

    /* ─── RECOMMENDATIONS ─────────────────────────── */
    .LI-profile-badge {
      display: inline-block !important;
    }

    /* ─── FOOTER ─────────────────────────────────── */
    /* Web Design Awards badge: hero pill, footer card, side tab */
    .hero-badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; }
    .hero-badges .hero-badge { margin-bottom: 0; }
    .hero-award {
      display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 1rem 0.3rem 0.3rem;
      border: 1px solid rgba(253,230,138,0.9); border-radius: 50px;
      background: linear-gradient(90deg, #fef3c7 0%, #fbbf24 55%, #f59e0b 100%); color: #3b2405;
      text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-size: 0.74rem;
      font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
      animation: wdaPillGlow 2.8s ease-in-out infinite; transition: filter .2s;
    }
    .hero-award img { width: 30px; height: 30px; border-radius: 50%; display: block; }
    .hero-award:hover { filter: brightness(1.06); }
    @keyframes wdaPillGlow { 0%,100% { box-shadow: 0 0 12px rgba(251,191,36,0.35); } 50% { box-shadow: 0 0 26px rgba(251,191,36,0.7); } }
    html.light .hero-award { box-shadow: 0 4px 18px rgba(180,83,9,0.25); animation: none; }
    @media (prefers-reduced-motion: reduce) { .hero-award { animation: none; } }
    .footer-award {
      display: inline-flex; align-items: center; gap: 12px; text-decoration: none; text-align: left;
      border: 1px solid rgba(253,230,138,0.9); border-radius: 14px; padding: 0.5rem 1.1rem 0.5rem 0.5rem; margin-bottom: 1rem;
      background: linear-gradient(90deg, #fef3c7 0%, #fbbf24 55%, #f59e0b 100%); color: #3b2405;
      animation: wdaPillGlow 2.8s ease-in-out infinite; transition: filter .2s;
    }
    .footer-award:hover { filter: brightness(1.06); }
    .footer-award img { width: 64px; height: 64px; display: block; flex-shrink: 0; }
    .footer-award strong { display: block; font-size: 0.88rem; color: #3b2405; font-weight: 700; }
    .footer-award span span { font-size: 0.72rem; color: #5b3a0a; }
    html.light .footer-award { box-shadow: 0 4px 18px rgba(180,83,9,0.25); animation: none; }
    @media (prefers-reduced-motion: reduce) { .footer-award { animation: none; } }
    /* WDA side tab: vote heart (option 4) that slides out into a drawer (option 1) */
    .wda-tab {
      position: fixed; right: 0; top: 50%; z-index: 90; display: flex; align-items: center; text-decoration: none;
      transform: translate(250px, -50%); transition: transform .45s cubic-bezier(.2,.9,.3,1.15);
    }
    .wda-tab:hover, .wda-tab:focus-visible { transform: translate(0, -50%); }
    .wda-col {
      position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
      background: linear-gradient(180deg, #fef3c7 0%, #fbbf24 55%, #f59e0b 100%); color: #3b2405;
      border: 1px solid rgba(253,230,138,0.9); border-right: 0; border-radius: 16px 0 0 16px; padding: 0.6rem 0.45rem 0.7rem;
      animation: wdaGlow 2.8s ease-in-out infinite;
    }
    .wda-col img { width: 88px; height: 88px; display: block; }
    .wda-heart { width: 36px; height: 36px; border-radius: 50%; background: #3b2405; display: grid; place-items: center; font-size: 1.05rem; animation: wdaBeat 1.6s ease-in-out infinite; }
    .wda-label { writing-mode: vertical-rl; transform: rotate(180deg); font: 800 0.66rem 'Space Grotesk', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
    .wda-go { font: 800 0.72rem 'Space Grotesk', sans-serif; background: #3b2405; color: #fde68a; border-radius: 999px; padding: 0.1rem 0.5rem; }
    .wda-burst { position: absolute; left: -10px; top: 45%; pointer-events: none; }
    .wda-burst i { position: absolute; right: 0; font-style: normal; font-size: 0.85rem; opacity: 0; animation: wdaFloat 2.4s ease-out infinite; }
    .wda-burst i:nth-child(2) { animation-delay: .8s; right: 14px; }
    .wda-burst i:nth-child(3) { animation-delay: 1.6s; right: -8px; }
    .wda-tab:hover .wda-burst { opacity: 0; }
    .wda-panel {
      width: 250px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 0.55rem;
      background: #15131f; border: 1px solid rgba(251,191,36,0.5); border-left: 0; border-right: 0; padding: 1rem 1.1rem;
      color: var(--white); box-shadow: -10px 0 30px rgba(0,0,0,0.45);
    }
    .wda-panel b { font: 700 0.95rem 'Space Grotesk', sans-serif; }
    .wda-panel small { font-size: 0.74rem; line-height: 1.45; color: var(--muted); }
    .wda-vote {
      align-self: flex-start; margin-top: 0.2rem; font: 700 0.74rem 'Space Grotesk', sans-serif; padding: 0.4rem 0.9rem; border-radius: 999px;
      background: linear-gradient(90deg, #fef3c7 0%, #fbbf24 55%, #f59e0b 100%); color: #3b2405;
    }
    html.light .wda-panel { background: #fff; color: #1e1b2e; box-shadow: -10px 0 30px rgba(0,0,0,0.12); }
    @keyframes wdaGlow { 0%,100% { box-shadow: -8px 0 30px rgba(0,0,0,0.4), -2px 0 14px rgba(251,191,36,0.35); } 50% { box-shadow: -8px 0 30px rgba(0,0,0,0.4), -4px 0 28px rgba(251,191,36,0.75); } }
    @keyframes wdaBeat { 0%,60%,100% { transform: scale(1); } 10%,30% { transform: scale(1.18); } 20% { transform: scale(1.05); } }
    @keyframes wdaFloat { 0% { transform: translate(0,0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-30px,-80px) scale(1.1); opacity: 0; } }
    html.light .wda-col { box-shadow: -8px 0 24px rgba(180,83,9,0.25); animation: none; }
    @media (prefers-reduced-motion: reduce) { .wda-tab { transition: none; } .wda-col, .wda-heart, .wda-burst i { animation: none; } }
    @media (max-width: 640px) { .wda-tab { display: none; } .hero-award { font-size: 0.66rem; } }

    footer {
      text-align: center;
      padding: 2rem;
      color: var(--muted);
      font-size: 0.85rem;
      border-top: 1px solid var(--border);
    }

    /* ─── MOBILE ──────────────────────────────────── */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 4px;
    }

    .hamburger span {
      width: 24px;
      height: 2px;
      background: var(--white);
      border-radius: 2px;
      transition: all 0.3s;
    }

    /* ── Tablet ── */
    @media (max-width: 900px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .nav-right { grid-column: 3; }

      .nav-links.mobile-open {
        flex-direction: column;
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--nav-bg-scroll);
        backdrop-filter: blur(20px);
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border);
        z-index: 99;
        align-items: flex-start;
        max-height: calc(100vh - 62px);
        overflow-y: auto;
      }

      /* Dropdowns become inline expandable sections on mobile */
      .nav-links.mobile-open .nav-item-group { width: 100%; }
      .nav-links.mobile-open .nav-group-trigger { width: 100%; justify-content: space-between; padding: 0.4rem 0; }
      .nav-links.mobile-open .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        width: 100%;
        padding: 0.2rem 0 0 0.8rem;
      }
      .nav-links.mobile-open .nav-item-group.open .nav-dropdown { display: block; }
      .nav-links.mobile-open .nav-item-group:hover .nav-dropdown { display: none; }
      .nav-links.mobile-open .nav-item-group.open:hover .nav-dropdown { display: block; }
      .nav-links.mobile-open .nav-dropdown-inner {
        min-width: 0;
        background: none;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
      }

      section { padding: 4rem 1.5rem; }

      .about-grid       { grid-template-columns: 1fr; }
      .about-stats      { flex-direction: column; }

      .about-head-row {
        flex-direction: column-reverse;
        align-items: center;
        gap: 1.2rem;
        text-align: center;
      }
      .about-head-row .section-title { text-align: center; }
      .about-pic-container {
        width: 130px;
        height: 130px;
        min-width: 130px;
        margin-top: 0;
      }
      .about-pic-bg { width: 144px; height: 144px; }
      .about-profile-image { width: 130px; height: 130px; }
      .about-pic-container::after { display: none; }
      .projects-grid    { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
      .domains-grid     { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
      .cert-grid        { grid-template-columns: repeat(2, 1fr); }
      .edu-grid         { grid-template-columns: 1fr 1fr; }

      .contact-card     { padding: 2.5rem 1.5rem; }
      .contact-desc     { max-width: 100%; }
    }

    /* ── Mobile ── */
    @media (max-width: 600px) {
      section { padding: 3rem 1.2rem; max-width: 100%; }

      nav { padding: 0 1rem; height: 56px; }

      #hero { padding: 4.5rem 1.2rem 3rem; }
      .avatar-wrap { display: none; }
      .hero-inner { padding: 0; }

      .hero-name        { font-size: 2.4rem; letter-spacing: -0.02em; line-height: 1.2; }
      .hero-title       { font-size: 1rem; }
      .hero-tagline     { font-size: 0.9rem; line-height: 1.6; margin: 1.2rem auto; }
      .hero-buttons     { flex-direction: column; align-items: stretch; gap: 0.8rem; width: 100%; }
      .btn-primary,
      .btn-secondary    { width: 100%; padding: 0.9rem 1.5rem; text-align: center; font-size: 0.9rem; }

      .about-grid       { gap: 2rem; }
      .about-cta-row    { flex-direction: column; align-items: stretch; width: 100%; }
      .about-cta-row .journey-reveal { width: 100%; }
      .about-cta-row .btn-secondary.journey-trigger { width: 100%; justify-content: center; }
      .about-cta-row .btn-primary { width: 100%; text-align: center; }
      .about-stats      { flex-direction: column; gap: 1rem; }
      .about-text p     { font-size: 0.9rem; line-height: 1.7; }
      .stat-num--compact { font-size: 1.3rem; }
      .stat-label       { font-size: 0.72rem; line-height: 1.35; }

      .projects-grid    { grid-template-columns: 1fr; gap: 1rem; }
      .domains-grid     { grid-template-columns: 1fr; gap: 1rem; }
      .project-header   { height: 60px; font-size: 2rem; }
      .project-body h3  { font-size: 0.95rem; }
      .project-body p   { font-size: 0.82rem; }
      .project-impact   { font-size: 0.75rem; padding: 0.6rem 0.8rem; }
      .recommendations-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.5rem; margin-top: 1rem; }
      .rec-row { padding: 1.25rem 0.6rem 0.5rem; gap: 0.5rem; }
      .rec-row-avatar { width: 28px; height: 28px; }
      .rec-card-name { font-size: 0.72rem; }
      .rec-card-role { font-size: 0.6rem; }
      .rec-modal-content { max-width: 90vw; padding: 1.5rem; }
      .rec-modal-header h3 { font-size: 1.1rem; }
      .rec-quote-full { font-size: 0.9rem; }

      .modal-backdrop { padding: 0.8rem; }
      .modal-header { padding: 1.2rem 1.2rem 0.85rem; gap: 0.8rem; }
      .modal-body   { padding: 1.2rem 1.2rem 1.5rem; gap: 1.1rem; }
      .modal-title  { font-size: 1.05rem; }

      .cert-grid        { grid-template-columns: 1fr; }
      .edu-grid         { grid-template-columns: 1fr; }
      .cert-card, .edu-card { padding: 1rem; }
      .cert-info h4     { font-size: 0.88rem; }
      .cert-info p      { font-size: 0.75rem; }

      .timeline         { padding-left: 1rem; }
      .timeline-icon    { left: -2.5rem; width: 40px; height: 40px; font-size: 1.5rem; }
      .timeline-item::before { left: -0.3rem; width: 6px; height: 6px; }
      .timeline-header  { padding: 0.8rem 0.95rem; gap: 0.5rem; }
      .timeline-date    { font-size: 0.75rem; }
      .timeline-role    { font-size: 0.95rem; }
      .timeline-company { font-size: 0.8rem; }
      .timeline-desc    { font-size: 0.8rem; padding: 0.8rem 1rem; }
      .timeline-desc li { padding-left: 1rem; margin-bottom: 0.4rem; }

      .contact-card     { padding: 2rem 1.5rem; border-radius: 16px; }
      .contact-email    { font-size: 1rem; }
      .social-row       { gap: 0.5rem; flex-wrap: wrap; }
      .social-btn       { padding: 0.5rem 0.95rem; font-size: 0.8rem; flex: 1 1 auto; min-width: 120px; }

      .section-label    { font-size: 0.65rem; }
      .section-title    { font-size: 1.8rem; }
      .section-sub      { font-size: 0.9rem; }

      .hero-inner { max-width: 100%; }

      .tools-chips      { gap: 0.4rem; }
      .chip             { font-size: 0.78rem; padding: 0.35rem 0.75rem; }

      .repo-card        { flex-direction: column; gap: 1rem; padding: 1.2rem; }
      .repo-card-btn    { width: 100%; text-align: center; }

      .skills-grid      { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
      .skill-card       { padding: 0.85rem 0.75rem; }
      .skill-card-icon  { width: 32px; height: 32px; font-size: 0.9rem; }
      .skill-card-info h4 { font-size: 0.75rem; }
      .skill-card-info p  { font-size: 0.65rem; }
    }

    /* ── Small mobile ── */
    @media (max-width: 400px) {
      section { padding: 2.5rem 1rem; }

      .stat-group-items { flex-direction: column; gap: 0.8rem; }
      .hero-name     { font-size: 2rem; }
      .nav-badge-name { font-size: 0.85rem; }
      .nav-badge     { padding: 0.35rem 1rem; }

      .skills-grid   { grid-template-columns: 1fr; gap: 0.5rem; }
      .section-title { font-size: 1.5rem; }

      .timeline-item::before { width: 5px; height: 5px; }
      .timeline-icon { left: -2.2rem; width: 36px; height: 36px; font-size: 1.3rem; }

      .contact-card { padding: 1.5rem 1.2rem; }
      .social-btn { padding: 0.45rem 0.8rem; font-size: 0.75rem; }

      .hero-buttons { gap: 0.6rem; }
      .btn-primary,
      .btn-secondary { font-size: 0.85rem; padding: 0.8rem 1.2rem; }
    }

    /* ── Extra small mobile ── */
    @media (max-width: 320px) {
      section { padding: 2rem 0.8rem; }

      #hero { padding: 4rem 0.8rem 2.5rem; }
      .avatar-wrap { display: none; }

      .hero-name { font-size: 1.8rem; }
      .hero-tagline { font-size: 0.85rem; }
      .section-title { font-size: 1.3rem; }
      .nav-badge-name { font-size: 0.8rem; }
      .skills-grid { gap: 0.4rem; }
      .timeline-header { padding: 0.6rem 0.8rem; }
      .social-btn { font-size: 0.7rem; padding: 0.4rem 0.7rem; }
    }
  
    /* tools search + level filter */
    .tf-bar { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; margin:.9rem 0 1rem; }
    .tf-search { flex:1 1 220px; display:flex; align-items:center; gap:.5rem; background:var(--card); border:1px solid var(--border); border-radius:999px; padding:.45rem .9rem; color:var(--muted); transition:border-color .2s, box-shadow .2s; }
    .tf-search:focus-within { border-color:rgba(56,189,248,.6); box-shadow:0 0 0 3px rgba(56,189,248,.15); }
    .tf-search input { flex:1; min-width:0; background:none; border:0; outline:0; color:var(--white); font:inherit; font-size:.88rem; }
    .tf-search input::placeholder { color:var(--muted); }
    .tf-levels { display:flex; flex-wrap:wrap; gap:.4rem; }
    .tf-lv { display:inline-flex; align-items:center; gap:.35rem; background:var(--card); border:1px solid var(--border); color:var(--text-body); border-radius:999px; padding:.38rem .8rem; font:inherit; font-size:.8rem; font-weight:600; cursor:pointer; transition:all .2s; }
    .tf-lv i { font-style:normal; font-size:.7rem; opacity:.7; }
    .tf-lv:hover { border-color:rgba(56,189,248,.5); }
    .tf-lv.on { background:var(--grad2); color:#fff; border-color:transparent; }
    .tf-dot { width:7px; height:7px; border-radius:50%; }
    .tf-dot.ex, .tf-mix .ex { background:#4ade80; }
    .tf-dot.pr, .tf-mix .pr { background:#38bdf8; }
    .tf-dot.fa, .tf-mix .fa { background:#94a3b8; }
    .tf-mix { flex-basis:100%; display:flex; height:5px; border-radius:99px; overflow:hidden; background:var(--border); }
    .tf-mix span { height:100%; width:0; transition:width .6s cubic-bezier(.2,.8,.2,1); }
    .tf-empty { display:none; flex-basis:100%; font-size:.85rem; color:var(--muted); }
    .tf-empty.show { display:block; }
    .tools-chips .chip.tf-hide { display:none; }
    .tools-chips .chip mark { background:rgba(56,189,248,.28); color:inherit; border-radius:3px; padding:0 1px; }
    .cert-tab .tf-n { display:inline-block; margin-left:.35rem; font-size:.66rem; font-weight:800; background:#38bdf8; color:#0b1220; border-radius:999px; padding:0 .4rem; line-height:1.4; }
    .cert-tab .tf-n.zero { background:var(--border); color:var(--muted); }
    @media (max-width:600px){ .tf-search{ flex-basis:100%; } .tf-levels{ flex-basis:100%; flex-wrap:nowrap; gap:.3rem; } .tf-lv{ flex:1 1 auto; justify-content:center; padding:.34rem .35rem; font-size:.72rem; gap:.25rem; } }
    .tools-panel.tf-none h4 { display:none; }
  
    /* certification activity rings */
    .skills-rings-svg { flex-shrink:0; overflow:visible; }
    .sr-track { fill:none; stroke:var(--border); stroke-width:13; }
    .sr-bar { fill:none; stroke-width:13; stroke-linecap:round; cursor:pointer; filter:drop-shadow(0 0 4px color-mix(in srgb, var(--c) 55%, transparent)); transition:stroke-width .2s; }
    .sr-bar:hover, .sr-bar.hl { stroke-width:16; }
    .sr-total { font-family:'Space Grotesk',sans-serif; font-weight:800; font-size:30px; fill:var(--white); }
    .skills-chip .sr-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--c); margin-right:.4rem; vertical-align:1px; box-shadow:0 0 6px var(--c); }
    @media (max-width:600px){ .skills-rings-svg{ width:140px; height:140px; margin:0 auto; } }
  
    /* tools coverage: level-split bars */
    .tcv-bar { display:flex; height:6px !important; background:var(--border); gap:0; }
    .tcv-bar span { height:100%; width:0; transition:width 1.1s cubic-bezier(.2,.8,.2,1); }
    .tcv-bar .ex, .tcv-legend .ex { background:#4ade80; }
    .tcv-bar .pr, .tcv-legend .pr { background:#38bdf8; }
    .tcv-bar .fa, .tcv-legend .fa { background:#94a3b8; }
    .tcv-split { font-size:.7rem; color:var(--muted); margin-top:.45rem; line-height:1.35; }
    .tcv-split b { color:#4ade80; font-weight:700; }
    html.light .tcv-split b { color:#15803d; }
    .tcv-legend { display:flex; justify-content:center; flex-wrap:wrap; gap:1rem; font-size:.72rem; color:var(--muted); margin:-.4rem 0 1.1rem; }
    .tcv-legend i { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:.35rem; }
  
    /* Skills collection: install hero + pack tabs */
    .skc-hero { display:grid; grid-template-columns:1.25fr 1fr; gap:1.4rem; align-items:center; background:linear-gradient(160deg, rgba(37,99,235,.12), var(--card)); border:1px solid rgba(56,189,248,.25); border-radius:18px; padding:1.4rem; margin-bottom:1.2rem; }
    .skc-badges { display:flex; flex-wrap:wrap; gap:.4rem; }
    .skc-badges span { font-size:.66rem; font-weight:700; border:1px solid var(--border); border-radius:999px; padding:.12rem .55rem; background:rgba(255,255,255,.03); }
    .skc-name { font-family:'Space Grotesk',sans-serif; font-size:1.3rem; color:var(--white); margin:.6rem 0 .25rem; }
    .skc-desc { font-size:.86rem; color:var(--muted); line-height:1.55; }
    .skc-stats { display:flex; gap:.55rem; margin:.9rem 0; }
    .skc-stats div { flex:1 1 0; min-width:0; background:var(--card); border:1px solid var(--border); border-radius:12px; padding:.5rem .7rem; }
    .skc-stats b { display:block; font:800 1.3rem 'Space Grotesk',sans-serif; color:var(--white); line-height:1.1; }
    .skc-stats span { font-size:.68rem; color:var(--muted); }
    .skc-btns { display:flex; flex-wrap:wrap; gap:.5rem; }
    .skc-btn { display:inline-flex; align-items:center; gap:.4rem; font-size:.8rem; font-weight:700; border-radius:999px; padding:.5rem 1rem; border:1px solid var(--border); color:var(--white); text-decoration:none; background:rgba(255,255,255,.04); transition:transform .2s, border-color .2s; }
    .skc-btn:hover { transform:translateY(-1px); border-color:rgba(56,189,248,.5); }
    .skc-btn.pri { background:var(--grad2); border-color:transparent; color:#fff; }
    .skc-term { background:#05050c; border:1px solid rgba(255,255,255,.1); border-radius:14px; padding:.8rem .9rem; min-width:0; }
    .skc-term-top { display:flex; align-items:center; gap:.3rem; margin-bottom:.6rem; }
    .skc-term-top i { width:9px; height:9px; border-radius:50%; background:#334155; }
    .skc-term-top span { font-size:.66rem; color:#64748b; margin-left:.4rem; }
    .skc-copy { margin-left:auto; font:700 .66rem Inter,sans-serif; color:#0b1220; background:#7dd3fc; border:0; border-radius:6px; padding:.2rem .55rem; cursor:pointer; }
    .skc-term > code { display:block; font:500 .72rem 'JetBrains Mono',ui-monospace,monospace; color:#cbd5e1; white-space:nowrap; overflow-x:auto; padding:.15rem 0; scrollbar-width:none; }
    .skc-term .p, .skc-term .ok { color:#4ade80; } .skc-term .c { color:#7dd3fc; }
    .skc-term small { display:block; margin-top:.5rem; font-size:.68rem; color:#64748b; line-height:1.45; }
    .skc-term small code { font-family:'JetBrains Mono',monospace; color:#94a3b8; }
    .skc-tabs { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:.7rem; }
    .skc-tab { display:inline-flex; align-items:center; gap:.35rem; font:600 .78rem Inter,sans-serif; color:var(--muted); background:var(--card); border:1px solid var(--border); border-radius:999px; padding:.4rem .8rem; cursor:pointer; transition:all .2s; }
    .skc-tab i { font-style:normal; font-size:.66rem; background:rgba(127,127,127,.15); border-radius:999px; padding:0 .4rem; }
    .skc-tab:hover { border-color:rgba(56,189,248,.5); color:var(--white); }
    .skc-tab.on { background:var(--grad2); color:#fff; border-color:transparent; }
    .skc-tab.on i { background:rgba(255,255,255,.25); }
    .skc-dot { width:7px; height:7px; border-radius:50%; }
    .skc-search { display:flex; align-items:center; gap:.45rem; max-width:340px; background:var(--card); border:1px solid var(--border); border-radius:999px; padding:.45rem .9rem; color:var(--muted); }
    .skc-search:focus-within { border-color:rgba(56,189,248,.6); box-shadow:0 0 0 3px rgba(56,189,248,.15); }
    .skc-search input { flex:1; min-width:0; background:none; border:0; outline:0; color:var(--white); font:inherit; font-size:.84rem; }
    .skc-notes { font-size:.8rem; color:var(--muted); margin:.7rem 0 .8rem; min-height:1.2em; }
    .skc-notes a { color:#38bdf8; font-weight:600; text-decoration:none; }
    .skc-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:.7rem; }
    .skc-card { display:flex; align-items:flex-start; gap:.65rem; background:var(--card); border:1px solid var(--border); border-left:3px solid color-mix(in srgb, var(--pc) 28%, var(--border)); border-radius:12px; padding:.75rem .8rem; text-decoration:none; transition:transform .2s, border-color .2s, box-shadow .2s; min-width:0; }
    .skc-card:hover { transform:translateY(-2px); border-color:color-mix(in srgb, var(--pc) 45%, var(--border)); box-shadow:0 8px 22px rgba(0,0,0,.18); }
    .skc-card[hidden] { display:none; }
    .skc-ic { font-size:1.15rem; width:34px; height:34px; flex-shrink:0; display:grid; place-items:center; border-radius:9px; background:rgba(127,127,127,.1); }
    .skc-txt { flex:1; min-width:0; }
    .skc-txt b { display:block; font-size:.85rem; color:var(--white); line-height:1.3; }
    .skc-txt small { display:block; font-size:.73rem; color:var(--muted); line-height:1.4; margin-top:.15rem; }
    .skc-tag { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; gap:.25rem; font-size:.58rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--pc); }
    .skc-tag .skc-q { font-style:normal; font-size:.62rem; color:var(--qc); background:color-mix(in srgb, var(--qc) 14%, transparent); border:1px solid color-mix(in srgb, var(--qc) 40%, transparent); border-radius:999px; padding:0 .4rem; letter-spacing:.02em; text-transform:none; }
    .skc-empty { font-size:.85rem; color:var(--muted); padding:.6rem 0; }
    html.light .skc-hero { background:linear-gradient(160deg, rgba(37,99,235,.07), #ffffff); }
    html.light .skc-stats div, html.light .skc-card, html.light .skc-tab, html.light .skc-search { background:#ffffff; }
    html.light .skc-card:hover { box-shadow:0 8px 22px rgba(15,23,42,.08); }
    html.light .skc-tab.on { background:var(--grad2); color:#fff; }
    html.light .skc-badges span { filter:brightness(.62) saturate(1.3); }
    .skc-more { display:block; margin:.8rem auto 0; font:700 .8rem Inter,sans-serif; color:var(--white); background:var(--card); border:1px solid var(--border); border-radius:999px; padding:.5rem 1.1rem; cursor:pointer; }
    .skc-more[hidden] { display:none; }
    @media (max-width:760px){ .skc-hero { grid-template-columns:1fr; padding:1.1rem; } .skc-search { max-width:none; } }
    @media (max-width:420px){ .skc-stats { flex-wrap:wrap; } .skc-stats div { flex:1 1 40%; } .skc-grid { grid-template-columns:1fr; } }
  
    /* How it fits together pop-up */
    .hif-overlay { position:fixed; inset:0; z-index:10050; background:rgba(3,3,10,.72); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); display:flex; align-items:flex-start; justify-content:center; padding:4vh 16px; overflow-y:auto; opacity:0; transition:opacity .2s; }
    .hif-overlay[hidden] { display:none; }
    .hif-overlay.open { opacity:1; }
    body.hif-lock { overflow:hidden; }
    .hif-box { width:min(1120px,100%); background:var(--bg2, #0d0d1a); border:1px solid rgba(56,189,248,.28); border-radius:20px; padding:20px; box-shadow:0 30px 80px rgba(0,0,0,.5); transform:translateY(10px); transition:transform .25s; outline:none; }
    .hif-overlay.open .hif-box { transform:none; }
    .hif-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
    .hif-top h3 { font-family:'Space Grotesk',sans-serif; font-size:1.25rem; color:var(--white); }
    .hif-top p { font-size:.82rem; color:var(--muted); }
    .hif-ctl { display:flex; align-items:center; gap:8px; }
    .hif-seg { display:inline-flex; background:var(--card); border:1px solid var(--border); border-radius:999px; padding:3px; }
    .hif-seg button { font:600 .74rem Inter,sans-serif; color:var(--muted); background:none; border:0; border-radius:999px; padding:5px 11px; cursor:pointer; }
    .hif-seg button.on { background:var(--grad2); color:#fff; }
    .hif-x { width:34px; height:34px; border-radius:50%; border:1px solid var(--border); background:var(--card); color:var(--white); font-size:.95rem; cursor:pointer; }
    .hif-x:hover { border-color:rgba(56,189,248,.6); }
    .hif-legend { display:flex; gap:14px; flex-wrap:wrap; font-size:.72rem; color:var(--muted); margin:10px 0 16px; }
    .hif-legend span { display:inline-flex; align-items:center; gap:6px; }
    .hif-ls { width:22px; border-top:2px solid #a78bfa; } .hif-ld { width:22px; border-top:2px dashed #38bdf8; }
    .hif-ro { font-style:normal; font-size:.56rem; font-weight:800; color:#22c55e; border:1px solid rgba(34,197,94,.5); border-radius:999px; padding:0 5px; }
    .hif-map { display:grid; grid-template-columns:150px minmax(0,1fr) minmax(0,1.05fr); column-gap:70px; position:relative; }
    .hif-colh { font:800 .64rem Inter,sans-serif; letter-spacing:.1em; text-transform:uppercase; margin-bottom:8px; }
    .hif-you { text-align:center; font-size:.72rem; color:var(--muted); margin-bottom:8px; }
    .hif-claude { position:sticky; top:0; background:linear-gradient(135deg,rgba(37,99,235,.36),rgba(56,189,248,.1)); border:1px solid rgba(56,189,248,.55); border-radius:16px; padding:14px 10px; text-align:center; cursor:pointer; z-index:2; transition:box-shadow .2s; }
    .hif-claude.on { box-shadow:0 0 0 3px rgba(56,189,248,.25); }
    .hif-big { font-size:1.9rem; } .hif-claude b { display:block; color:var(--white); font:700 1rem 'Space Grotesk',sans-serif; } .hif-claude small { display:block; font-size:.7rem; color:var(--muted); } .hif-claude .hif-c2 { color:#38bdf8; margin-top:6px; }
    .hif-grp { font:700 .6rem Inter,sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:10px 0 5px; display:flex; align-items:center; gap:6px; }
    .hif-grp:first-child { margin-top:0; }
    .hif-grp i { width:7px; height:7px; border-radius:50%; }
    .hif-pill { display:flex; align-items:center; gap:7px; width:100%; text-align:left; background:var(--card); border:1px solid var(--border); border-radius:10px; padding:6px 9px; margin-bottom:5px; font:500 .76rem Inter,sans-serif; color:var(--white); cursor:pointer; transition:opacity .2s, border-color .2s, box-shadow .2s, transform .2s; position:relative; z-index:2; }
    .hif-pill .e { font-style:normal; width:18px; text-align:center; flex-shrink:0; }
    .hif-pill .nm { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .hif-pill .n { font-size:.62rem; color:var(--muted); background:rgba(127,127,127,.12); border-radius:999px; padding:0 6px; }
    .hif-pill.ag { border-left:3px solid color-mix(in srgb,#fbbf24 40%,var(--border)); }
    .hif-pill.sk { border-left:3px solid color-mix(in srgb,var(--pc) 32%,var(--border)); }
    .hif-pill.on { transform:translateX(2px); border-color:var(--hl); box-shadow:0 0 0 3px color-mix(in srgb,var(--hl) 22%,transparent); }
    .hif-pill.ag.on { --hl:#fbbf24; } .hif-pill.sk.on { --hl:var(--pc); }
    .hif-pill.dim { opacity:.28; }
    .hif-pill.pin::after { content:"📌"; position:absolute; right:-9px; top:-9px; font-size:.72rem; filter:drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
    .hif-hint { font-size:.72rem; color:var(--muted); margin:-6px 0 12px; }
    .hif-pinned + .hif-acc + .hif-detail { border-color:rgba(56,189,248,.5); }
    .hif-lines { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:1; overflow:visible; }
    .hif-lines path { fill:none; stroke-width:1.8; opacity:0; transition:opacity .25s; }
    .hif-lines path.uses { stroke:#a78bfa; } .hif-lines path.input { stroke:#38bdf8; stroke-dasharray:5 4; } .hif-lines path.lead { stroke:rgba(56,189,248,.5); stroke-width:1.2; }
    .hif-lines path.show { opacity:.85; } .hif-lines path.faint { opacity:.14; }
    .hif-detail { margin-top:18px; background:var(--card); border:1px solid rgba(56,189,248,.28); border-radius:16px; padding:16px 18px; display:grid; grid-template-columns:1.2fr 1fr; gap:18px; }
    .hif-tags { display:flex; gap:6px; flex-wrap:wrap; }
    .hif-tags span { font-size:.62rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; border-radius:999px; padding:2px 8px; border:1px solid var(--border); color:var(--muted); }
    .hif-detail h4 { font-family:'Space Grotesk',sans-serif; font-size:1.12rem; color:var(--white); margin:8px 0 4px; }
    .hif-detail .lead { font-size:.84rem; color:var(--text-body, var(--muted)); }
    .hif-io { display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; margin-top:12px; }
    .hif-io > div { background:rgba(127,127,127,.07); border:1px solid var(--border); border-radius:10px; padding:8px 10px; font-size:.74rem; color:var(--white); }
    .hif-io > div b { display:block; font-size:.6rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:2px; }
    .hif-io > span { color:var(--muted); }
    .hif-lbl { font-size:.6rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:12px 0 5px; }
    .hif-lbl:first-child { margin-top:0; }
    .hif-chips { display:flex; flex-wrap:wrap; gap:5px; }
    .hif-chips span { font-size:.72rem; border-radius:8px; padding:3px 8px; background:rgba(127,127,127,.08); border:1px solid var(--border); color:var(--white); }
    .hif-chips span.u { border-color:rgba(167,139,250,.5); } .hif-chips span.i { border-style:dashed; border-color:rgba(56,189,248,.6); }
    .hif-ask { font-size:.8rem; color:var(--white); background:rgba(56,189,248,.08); border-left:3px solid #38bdf8; border-radius:6px; padding:7px 10px; }
    .hif-links { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
    .hif-links a, .hif-links button { font:700 .74rem Inter,sans-serif; color:var(--white); border-radius:999px; padding:6px 12px; border:1px solid var(--border); background:rgba(127,127,127,.06); text-decoration:none; cursor:pointer; }
    .hif-links .pri { background:var(--grad2); border-color:transparent; color:#fff; }
    .hif-acc { display:none; }
    .hif-mclaude { display:flex; gap:10px; align-items:center; background:linear-gradient(135deg,rgba(37,99,235,.32),rgba(56,189,248,.08)); border:1px solid rgba(56,189,248,.5); border-radius:14px; padding:12px; margin-bottom:10px; }
    .hif-mclaude b { color:var(--white); } .hif-mclaude small { display:block; font-size:.72rem; color:var(--muted); }
    .hif-acc details { background:var(--card); border:1px solid var(--border); border-left:3px solid color-mix(in srgb,#fbbf24 40%,var(--border)); border-radius:12px; margin-bottom:7px; }
    .hif-acc summary { list-style:none; cursor:pointer; padding:10px 12px; display:flex; gap:8px; align-items:center; font-size:.84rem; color:var(--white); font-weight:600; }
    .hif-acc summary::-webkit-details-marker { display:none; }
    .hif-acc summary .n { margin-left:auto; font-size:.66rem; color:var(--muted); font-weight:500; }
    .hif-acc .body { padding:0 12px 12px; font-size:.78rem; color:var(--muted); }
    .hif-acc .body .hif-chips { margin-top:6px; }
    .hif-acc .body .hif-ask { margin-top:8px; }
    .hif-acc .body a { color:#38bdf8; font-weight:600; font-size:.74rem; text-decoration:none; display:inline-block; margin-top:8px; }
    .hif-ro { white-space:nowrap; }
    /* keep the details visible at the bottom of the pop-up while browsing the map */
    .hif-detail { position:sticky; bottom:12px; z-index:3; max-height:44vh; overflow-y:auto; background:linear-gradient(var(--card),var(--card)), var(--bg2, #0d0d1a); box-shadow:0 -14px 34px rgba(0,0,0,.38); }
    html.light .hif-detail { background:#ffffff; box-shadow:0 -14px 34px rgba(15,23,42,.12); }
    @media (max-width:860px) { .hif-hint { display:none; } .hif-map { display:none; } .hif-acc { display:block; } .hif-detail { display:none; } .hif-box { padding:16px; } .hif-seg { display:none; } .hif-legend span:nth-child(-n+2) { display:none; } .hif-top { flex-wrap:nowrap; } .hif-top > div:first-child { flex:1; min-width:0; } .hif-legend { margin:8px 0 12px; } }
    html.light .hif-overlay { background:rgba(15,23,42,.45); }
    html.light .hif-box { background:#f8fafc; }
    html.light .hif-pill, html.light .hif-detail, html.light .hif-acc details, html.light .hif-seg, html.light .hif-x { background:#ffffff; }
  
    /* Say Hello: availability strip + intent picker */
    .ch-avail { display:flex; flex-wrap:wrap; justify-content:center; gap:.5rem; margin:.4rem 0 1.4rem; }
    .ch-pill { display:inline-flex; align-items:center; gap:.4rem; font-size:.8rem; color:var(--muted); font-weight:500; padding:.35rem .85rem; border:1px solid var(--border); border-radius:999px; background:rgba(37,99,235,.06); }
    .ch-pill b { color:var(--white); font-weight:700; }
    .ch-dot { width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 0 rgba(34,197,94,.55); animation:chPulse 1.8s infinite; }
    @keyframes chPulse { 70% { box-shadow:0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow:0 0 0 0 rgba(34,197,94,0); } }
    @media (prefers-reduced-motion: reduce) { .ch-dot { animation:none; } }
    .ch-ask { font-family:'Space Grotesk',sans-serif; font-weight:700; color:var(--white); font-size:1rem; margin:0 0 .7rem; }
    #contact .contact-card .ch-ask { color:var(--white); margin:0 0 .7rem; max-width:none; }
    .ch-intents { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:.6rem; max-width:560px; margin:0 auto 1.3rem; text-align:left; }
    .ch-intent { display:grid; grid-template-columns:auto 1fr; column-gap:.65rem; align-items:center; background:var(--card); border:1px solid var(--border); border-radius:14px; padding:.75rem .9rem; cursor:pointer; font:inherit; color:inherit; text-align:left; transition:transform .2s, border-color .2s, box-shadow .2s; }
    .ch-intent i { grid-row:span 2; font-style:normal; font-size:1.25rem; }
    .ch-intent b { color:var(--white); font-size:.88rem; }
    .ch-intent small { color:var(--muted); font-size:.74rem; }
    .ch-intent:hover, .ch-intent.on { transform:translateY(-2px); border-color:rgba(99,102,241,.7); box-shadow:0 10px 24px rgba(99,102,241,.18); }
    .ch-intent:focus-visible { outline:2px solid #818cf8; outline-offset:2px; }
    html.light .ch-intent { background:#fff; }
    html.light .ch-pill { background:rgba(37,99,235,.05); }
    @media (max-width:520px) { .ch-intents { grid-template-columns:1fr; } }
  
    /* Skills grid: dense one-line tiles (compact layout) */
    .skc-grid { grid-template-columns:repeat(4, minmax(0,1fr)) !important; gap:.45rem !important; }
    @media (max-width:980px) { .skc-grid { grid-template-columns:repeat(3, minmax(0,1fr)) !important; } }
    @media (max-width:680px) { .skc-grid { grid-template-columns:repeat(2, minmax(0,1fr)) !important; } }
    @media (max-width:380px) { .skc-grid { grid-template-columns:1fr !important; } }
    .skc-card { position:relative; align-items:center !important; gap:.5rem !important; min-height:40px; padding:.35rem .65rem !important; border-radius:10px !important; }
    .skc-card:hover { transform:none !important; background:rgba(56,189,248,.06); }
    .skc-card .skc-ic { width:22px !important; height:22px !important; font-size:.95rem !important; background:none !important; border-radius:0 !important; }
    .skc-nm { flex:1; min-width:0; font-size:.8rem; font-weight:600; line-height:1.25; color:var(--white); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    @media (max-width:680px) { .skc-nm { font-size:.76rem; } }
    .skc-ag { flex-shrink:0; display:inline-grid; place-items:center; width:15px; height:15px; border-radius:50%; border:1px solid rgba(251,191,36,.7); color:#fbbf24; font:800 .52rem Inter,sans-serif; }
    .skc-qd { flex-shrink:0; width:7px; height:7px; border-radius:50%; background:var(--qc); }
    .skc-tip { position:absolute; left:0; right:0; bottom:calc(100% + 6px); z-index:20; background:#0b0b18; border:1px solid rgba(56,189,248,.35); border-radius:10px; padding:.5rem .65rem; font-size:.72rem; line-height:1.4; color:#cbd5e1; box-shadow:0 12px 28px rgba(0,0,0,.45); opacity:0; transform:translateY(4px); pointer-events:none; transition:opacity .15s, transform .15s; }
    .skc-tip b { display:block; color:#fff; font-size:.76rem; margin-bottom:.1rem; }
    .skc-tip em { font-style:normal; font-weight:700; color:var(--qc); }
    .skc-card:hover .skc-tip, .skc-card:focus-visible .skc-tip { opacity:1; transform:none; }
    .skc-card:focus-visible { outline:2px solid #38bdf8; outline-offset:2px; }
    .skc-legend { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .9rem; font-size:.68rem; color:var(--muted); margin-top:.7rem; }
    .skc-legend span { display:inline-flex; align-items:center; gap:.35rem; }
    .skc-legend i { width:7px; height:7px; border-radius:50%; display:inline-block; }
    .skc-legend .skc-legend-hint { margin-left:auto; }
    html.light .skc-tip { background:#ffffff; color:#475569; border-color:rgba(37,99,235,.3); box-shadow:0 12px 28px rgba(15,23,42,.15); }
    html.light .skc-tip b { color:#0f172a; }
    @media (hover:none) { .skc-legend .skc-legend-hint { display:none; } }
  
    /* Recommendation theme tags */
    .rec-tag { display:inline-flex; align-items:center; font-size:.6rem; font-weight:700; line-height:1.5; color:var(--tc); background:color-mix(in srgb, var(--tc) 12%, transparent); border:1px solid color-mix(in srgb, var(--tc) 38%, transparent); border-radius:999px; padding:0 .45rem; white-space:nowrap; }
    .rec-row-tags { display:flex; flex-wrap:wrap; gap:.25rem; margin:.3rem 0 0; }
    .rec-spot-tags { display:flex; flex-wrap:wrap; gap:.35rem; margin:.2rem 0 .9rem; min-height:1.1rem; transition:opacity .35s; }
    .rec-spot-tags .rec-tag { font-size:.68rem; padding:.05rem .6rem; }
    html.light .rec-tag { background:color-mix(in srgb, var(--tc) 10%, #fff); border-color:color-mix(in srgb, var(--tc) 45%, transparent); color:color-mix(in srgb, var(--tc) 70%, #0f172a); }
  
    .rec-modal-tags { display:flex; flex-wrap:wrap; gap:.4rem; margin:.2rem 0 1rem; }
    .rec-modal-tags .rec-tag { font-size:.72rem; padding:.1rem .65rem; }
  

/* Official WDA embed, kept verbatim in HTML; gold styling applied here */
.footer-award-wrap { margin-bottom: 1rem; }
.footer-award-wrap > a {
  gap: 12px !important; color: #3b2405 !important; text-align: left;
  border: 1px solid rgba(253,230,138,0.9); border-radius: 14px; padding: 0.5rem 1.1rem 0.5rem 0.5rem;
  background: linear-gradient(90deg, #fef3c7 0%, #fbbf24 55%, #f59e0b 100%);
  animation: wdaPillGlow 2.8s ease-in-out infinite; transition: filter .2s;
}
.footer-award-wrap > a:hover { filter: brightness(1.06); }
.footer-award-wrap > a strong { color: #3b2405; font-weight: 700 !important; }
html.light .footer-award-wrap > a { box-shadow: 0 4px 18px rgba(180,83,9,0.25); animation: none; }
@media (prefers-reduced-motion: reduce) { .footer-award-wrap > a { animation: none; } }

/* 3-week view: isometric city block (replaces the dot grid) */
.heatmap-body.iso-mode .heatmap-hourlabels, .heatmap-body.iso-mode .heatmap-row, .heatmap-body.iso-mode .heatmap-legend { display: none; }
.bsky-iso { border-radius: 12px; overflow: hidden; border: 1px solid rgba(125,211,252,0.12);
  background: radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 38% 10%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 66% 22%, rgba(255,255,255,.6), transparent), radial-gradient(1px 1px at 88% 12%, rgba(255,255,255,.7), transparent),
    linear-gradient(180deg, #0c1230 0%, #1d2a5a 60%, #3b2a5e 100%); }
.bsky-iso svg { display: block; width: 100%; height: auto; }
.bsky-iso .iso-tile { fill: rgba(255,255,255,0.035); stroke: rgba(125,211,252,0.09); }
.bsky-iso .iso-lbl { fill: #a5a8c8; font: 500 11px 'Inter', system-ui, sans-serif; }
.bsky-iso .iso-day { fill: #cfd2e8; }
.bsky-iso .iso-bld { cursor: default; }
.bsky-iso .iso-bld:hover { filter: brightness(1.25); }
@keyframes isoRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
html.light .bsky-iso { background: linear-gradient(180deg, #bfdbfe 0%, #c7d2fe 55%, #e9d5ff 100%); border-color: rgba(29,78,216,0.15); }
html.light .bsky-iso .iso-tile { fill: rgba(255,255,255,0.35); stroke: rgba(30,41,59,0.12); }
html.light .bsky-iso .iso-lbl { fill: #334155; }
@media (max-width: 600px) { .bsky-iso .iso-lbl { font-size: 15px; } }

/* Site of the Day badge (official embed kept verbatim in the footer) */
.footer-award-wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.footer-award-wrap > a + a { background: none; border: 0; padding: 0; animation: none; box-shadow: none; }
.footer-award-wrap > a + a img { width: 104px !important; height: auto; display: block; filter: drop-shadow(0 4px 14px rgba(251,191,36,.35)); transition: transform .2s; }
.footer-award-wrap > a + a:hover img { transform: translateY(-2px) scale(1.04); }
.hero-award-sotd img { object-fit: contain; background: #fff; }

.footer-award-wrap > a:first-child img { width: 96px !important; }

/* Site of the Day hero pill: green "awarded" variant */
.hero-award.hero-award-sotd {
  border-color: rgba(167,243,208,0.9); color: #053b24;
  background: linear-gradient(90deg, #d1fae5 0%, #34d399 55%, #10b981 100%);
  animation-name: sotdPillGlow;
}
@keyframes sotdPillGlow { 0%,100% { box-shadow: 0 0 12px rgba(52,211,153,0.35); } 50% { box-shadow: 0 0 26px rgba(52,211,153,0.7); } }
html.light .hero-award.hero-award-sotd { box-shadow: 0 4px 18px rgba(4,120,87,0.25); animation: none; }
@media (prefers-reduced-motion: reduce) { .hero-award.hero-award-sotd { animation: none; } }

/* "Available for opportunities" badge links to #contact */
a.hero-badge-link { text-decoration: none; cursor: pointer; transition: transform .2s, filter .2s; }
a.hero-badge-link:hover { transform: translateY(-1px); filter: brightness(1.15); }
a.hero-badge-link:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 3px; }

/* Project modals: Trade-Offs */
.modal-tradeoffs { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.modal-tradeoffs li { position: relative; padding: .65rem .9rem .65rem 2.3rem; border-radius: 10px; line-height: 1.55; font-size: .92rem;
  background: rgba(167,139,250,.08); border-left: 3px solid #a78bfa; color: inherit; }
.modal-tradeoffs li::before { content: "⚖️"; position: absolute; left: .7rem; top: .62rem; font-size: .95rem; }
.modal-tradeoffs strong { color: #c4b5fd; font-weight: 700; }
.modal-tradeoffs .to-cost { display: block; margin-top: .2rem; font-size: .84rem; color: #fca5a5; opacity: .9; }
html.light .modal-tradeoffs li { background: rgba(124,58,237,.06); border-left-color: #7c3aed; }
html.light .modal-tradeoffs strong { color: #5b21b6; }
html.light .modal-tradeoffs .to-cost { color: #b91c1c; }

/* Recently Shipped: real commit messages (option A) */
.ship-msgs { list-style: none; margin: .45rem 0 0; padding: 0; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: .78rem; line-height: 1.6; color: #cbd5e1; }
.ship-msgs li { position: relative; padding-left: 1.05rem; overflow-wrap: anywhere; }
.ship-msgs li::before { content: "›"; position: absolute; left: 0; color: #64748b; }
.ship-more { display: inline-block; margin-top: .25rem; font-size: .76rem; color: #60a5fa; text-decoration: none; }
.ship-more:hover { text-decoration: underline; }
.ship-tag-fix     { color: #f9a8d4; background: rgba(236,72,153,0.12); border: 1px solid rgba(236,72,153,0.35); }
.ship-tag-content { color: #5eead4; background: rgba(20,184,166,0.12); border: 1px solid rgba(20,184,166,0.35); }
.ship-tag-version { color: #7dd3fc; background: rgba(14,165,233,0.10); border: 1px solid rgba(14,165,233,0.35); }
html.light .ship-msgs { color: #334155; }
html.light .ship-tag-fix { color: #be185d; }
html.light .ship-tag-content { color: #0f766e; }
html.light .ship-tag-version { color: #0369a1; }
@media (max-width: 600px) { .ship-msgs { font-size: .72rem; } }

/* Award tabs stacked on the right edge: green Site of the Day ribbon + gold vote ribbon */
.wda-stack { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.wda-stack .wda-tab { position: relative; top: auto; right: auto; transform: translateX(250px); pointer-events: auto; }
.wda-stack .wda-tab:hover, .wda-stack .wda-tab:focus-visible { transform: translateX(0); }
.wda-sotd .wda-col { background: linear-gradient(180deg, #d1fae5 0%, #34d399 55%, #10b981 100%); color: #053b24; border-color: rgba(167,243,208,0.9); animation-name: sotdTabGlow; }
.wda-sotd .wda-col img { width: 64px; height: 64px; }
.wda-sotd .wda-go { background: #053b24; color: #a7f3d0; }
.wda-sotd .wda-panel { border-color: rgba(52,211,153,0.55); }
.wda-sotd .wda-vote { background: linear-gradient(90deg, #d1fae5 0%, #34d399 55%, #10b981 100%); color: #053b24; }
.wda-star { font-size: 1rem; line-height: 1; animation: sotdTwinkle 2.2s ease-in-out infinite; }
@keyframes sotdTwinkle { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(15deg); } }
@keyframes sotdTabGlow { 0%,100% { box-shadow: -8px 0 30px rgba(0,0,0,0.4), -2px 0 14px rgba(52,211,153,0.35); } 50% { box-shadow: -8px 0 30px rgba(0,0,0,0.4), -4px 0 28px rgba(52,211,153,0.75); } }
html.light .wda-sotd .wda-col { box-shadow: -8px 0 24px rgba(4,120,87,0.25); animation: none; }
@media (max-height: 820px) { .wda-col img { width: 64px; height: 64px; } .wda-sotd .wda-col img { width: 52px; height: 52px; } .wda-col { gap: 0.4rem; } }
@media (prefers-reduced-motion: reduce) { .wda-stack .wda-tab { transition: none; } .wda-star { animation: none; } }
@media (max-width: 640px) { .wda-stack { display: none; } }

    /* ─── SITE SNAPSHOT (below LinkedIn Snapshot) ─── */
    .ssn-wrap { margin-top: 1.5rem; }
    .ssn { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0.75rem; }
    .ssn-main, .ssn-side { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem; }
    .ssn-h { margin: 0 0 4px; font-family: 'Inter', sans-serif; font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; }
    .ssn-big { font-family: 'Space Grotesk', sans-serif; font-size: 2.3rem; font-weight: 700; line-height: 1.15; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
    .ssn-s { font-size: 0.72rem; color: var(--muted); min-height: 1em; }
    .ssn-s b.up { color: #34d399; } .ssn-s b.down { color: #f87171; }
    .ssn-rel { position: relative; }
    .ssn-bars { display: flex; align-items: flex-end; gap: 4px; height: 96px; margin-top: 0.9rem; }
    .ssn-bars i { flex: 1; height: 0; min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--gold), var(--coral)); opacity: 0.85; transition: height 0.8s cubic-bezier(.2,.8,.2,1), opacity 0.15s; cursor: crosshair; outline: none; }
    .ssn-bars i:hover, .ssn-bars i:focus-visible { opacity: 1; }
    .ssn-bars.empty i { background: var(--border); cursor: default; }
    .ssn-axis { display: flex; justify-content: space-between; font-size: 0.62rem; color: var(--muted); margin-top: 4px; min-height: 0.8rem; }
    .ssn-ctry { list-style: none; margin: 0.6rem 0 0; padding: 0; }
    .ssn-ctry li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 40px; align-items: center; gap: 8px; margin-bottom: 0.65rem; }
    .ssn-ctry .fl { font-size: 1rem; line-height: 1; }
    .ssn-ctry .nm { display: block; font-size: 0.72rem; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ssn-ctry .bar { display: block; height: 6px; margin-top: 3px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
    .ssn-ctry .bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.9s ease; }
    .ssn-ctry .pc { text-align: right; font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
    .ssn-ctry li.none { display: block; font-size: 0.75rem; color: var(--muted); }
    @media (max-width: 700px) { .ssn { grid-template-columns: 1fr; } .ssn-big { font-size: 2rem; } }
    @media (prefers-reduced-motion: reduce) { .ssn-bars i, .ssn-ctry .bar i { transition: none; } }
    html.light .ssn-main, html.light .ssn-side { background: #fff; }
    html.light .ssn-ctry .bar { background: rgba(15,23,42,0.07); }
    #site-snapshot[hidden], .mega-link[hidden] { display: none !important; }
    .ssn-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; align-items: flex-end; }
    .ssn-stats [hidden] { display: none !important; }
    .ssn-big2 { background: linear-gradient(135deg, #6366f1, #a5b4fc); -webkit-background-clip: text; background-clip: text; cursor: help; }
