    :root {
      --scroll-p: 0;
      --bg: #020617;
      --bg2: #0a0f1a;
      --card: #0f172a;
      --card2: #1e293b;
      --line: rgba(248, 250, 252, 0.06);
      --line2: rgba(248, 250, 252, 0.14);
      --text: #f8fafc;
      --muted: #c4d0e0;
      --dim: #94a3b8;
      --amber: #fbbf24;
      --amber2: #f59e0b;
      --amber-dim: rgba(251, 191, 36, 0.14);
      --sky: #38bdf8;
      --sky-dim: rgba(56, 189, 248, 0.14);
      --violet: #a78bfa;
      --violet-dim: rgba(167, 139, 250, 0.12);
      --glow-amber: rgba(251, 191, 36, 0.45);
      --glow-sky: rgba(56, 189, 248, 0.4);
      --font: "Outfit", system-ui, sans-serif;
      --display: "Fraunces", Georgia, serif;
      --mono: "JetBrains Mono", ui-monospace, monospace;
      --max: 1140px;
      --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
      --header-pad: 1.25rem;
      --reveal-y: 28px;
      --anim-out: cubic-bezier(0.16, 1, 0.3, 1);
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .marquee-track { animation: none !important; }
      .code-line { animation: none !important; opacity: 1 !important; transform: none !important; }
      .hero-float-badge { animation: none !important; }
      .hero-panel { animation: none !important; }
      .hero-panel::before { animation: none !important; opacity: 0.4 !important; transform: none !important; }
      .hero-orbit,
      .hero-orbit::before,
      .hero-orbit::after { animation: none !important; }
      .ambient::before { animation: none !important; }
      .project-card-media::before { animation: none !important; }
      .project-card:hover .project-card-img { transform: scale(1.02) !important; }
      .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
      .hero-parallax { transform: none !important; }
      .hero-copy { transform: none !important; opacity: 1 !important; }
      .ambient { transform: none !important; }
      .skills-fullbleed { --skills-shift: 0px !important; }
      .site-header .hdr-dock { transform: none !important; }
      #contact .contact-box { transform: none !important; }
      .hero h1 em { animation: none !important; }
      .code-window.is-in .code-line { animation: none !important; opacity: 1 !important; }
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: var(--font);
      font-size: 1.075rem;
      line-height: 1.68;
      color: var(--text);
      background: var(--bg);
      background-image:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(30, 27, 75, 0.35), transparent),
        radial-gradient(ellipse 60% 50% at 100% 20%, rgba(120, 53, 15, 0.12), transparent);
      -webkit-font-smoothing: antialiased;
    }

    ::selection {
      background: rgba(251, 191, 36, 0.35);
      color: #0f172a;
    }

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

    .wrap {
      width: min(100% - 2rem, var(--max));
      margin-inline: auto;
    }

    /* Ambient */
    .ambient {
      pointer-events: none;
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      will-change: transform;
      background:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(251, 191, 36, 0.11), transparent 55%),
        radial-gradient(ellipse 70% 45% at 100% 35%, rgba(56, 189, 248, 0.09), transparent 50%),
        radial-gradient(ellipse 55% 40% at 0% 75%, rgba(167, 139, 250, 0.07), transparent 45%),
        radial-gradient(ellipse 50% 35% at 85% 90%, rgba(251, 191, 36, 0.05), transparent 40%);
    }

    .ambient::before {
      content: "";
      position: absolute;
      inset: -30%;
      background:
        radial-gradient(circle at 35% 45%, rgba(56, 189, 248, 0.06), transparent 42%),
        radial-gradient(circle at 65% 55%, rgba(251, 191, 36, 0.05), transparent 38%);
      animation: ambient-drift 28s ease-in-out infinite alternate;
    }

    @keyframes ambient-drift {
      from { transform: rotate(0deg) scale(1); opacity: 0.85; }
      to { transform: rotate(12deg) scale(1.08); opacity: 1; }
    }

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

    /* —— Header: floating dock —— */
    .hdr-spacer { height: 5.5rem; }

    @media (min-width: 900px) {
      .hdr-spacer { height: 6rem; }
    }

    .site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 500;
      padding: var(--header-pad) 1rem 0;
      pointer-events: none;
    }

    .site-header > .hdr-dock {
      pointer-events: auto;
    }

    .hdr-dock {
      width: min(100% - 0rem, calc(var(--max) + 2rem));
      margin-inline: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.55rem 0.6rem 0.55rem 0.85rem;
      background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.72));
      backdrop-filter: blur(24px) saturate(1.2);
      -webkit-backdrop-filter: blur(24px) saturate(1.2);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 100px;
      box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.06) inset,
        0 32px 64px -28px rgba(0, 0, 0, 0.85),
        0 0 80px -40px rgba(56, 189, 248, 0.15);
      transition:
        transform 0.45s var(--anim-out),
        box-shadow 0.45s var(--ease),
        background 0.45s var(--ease),
        border-color 0.45s var(--ease);
    }

    .site-header.is-scrolled .hdr-dock {
      transform: scale(0.988);
      background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.86));
      border-color: rgba(255, 255, 255, 0.12);
      box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.1) inset,
        0 20px 48px -20px rgba(0, 0, 0, 0.75),
        0 0 64px -36px rgba(56, 189, 248, 0.22);
    }

    .hdr-brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      min-width: 0;
    }

    .hdr-avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      flex-shrink: 0;
      overflow: hidden;
      background: rgba(15, 23, 42, 0.95);
      box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9), 0 0 24px rgba(251, 191, 36, 0.35);
    }

    .hdr-avatar-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 28%;
      display: block;
    }

    .hdr-avatar.is-text-fallback {
      background: linear-gradient(145deg, #fcd34d, var(--amber2), #ea580c);
      color: #0f172a;
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 600;
      display: grid;
      place-items: center;
      letter-spacing: -0.02em;
    }

    .hdr-name {
      display: flex;
      flex-direction: column;
      gap: 0.05rem;
      min-width: 0;
    }

    .hdr-name strong {
      font-size: 0.92rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .hdr-name small {
      font-size: 0.65rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--dim);
    }

    .hdr-nav {
      display: none;
    }

    @media (min-width: 900px) {
      .hdr-nav {
        display: flex;
        align-items: center;
        gap: 0.15rem;
      }
      .hdr-nav a {
        padding: 0.5rem 0.95rem;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--muted);
        border-radius: 999px;
        transition: color 0.2s var(--ease), background 0.2s var(--ease);
      }
      .hdr-nav a:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.06);
      }
    }

    .hdr-actions {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-shrink: 0;
    }

    .hdr-mail {
      display: none;
      font-family: var(--mono);
      font-size: 0.7rem;
      font-weight: 500;
      color: var(--dim);
      padding: 0.45rem 0.75rem;
      border-radius: 999px;
      border: 1px solid transparent;
      transition: border-color 0.2s, color 0.2s;
    }

    @media (min-width: 900px) {
      .hdr-mail { display: inline-flex; }
      .hdr-mail:hover {
        color: var(--sky);
        border-color: var(--sky-dim);
      }
    }

    .hdr-cta {
      font-size: 0.8125rem;
      font-weight: 700;
      padding: 0.55rem 1.15rem;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--amber), var(--amber2));
      color: #0f172a;
      white-space: nowrap;
      transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
      box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25);
    }

    .hdr-cta:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 28px rgba(251, 191, 36, 0.35);
    }

    .hdr-burger {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid var(--line2);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      padding: 0;
    }

    .hdr-burger span {
      display: block;
      width: 16px;
      height: 2px;
      background: var(--text);
      border-radius: 1px;
      transition: transform 0.25s var(--ease), opacity 0.2s;
    }

    .hdr-burger.is-open span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .hdr-burger.is-open span:nth-child(2) { opacity: 0; }
    .hdr-burger.is-open span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    @media (min-width: 900px) {
      .hdr-burger { display: none; }
    }

    .mobile-drawer {
      display: none;
      position: fixed;
      top: calc(var(--header-pad) + 58px);
      left: 1rem;
      right: 1rem;
      z-index: 499;
      padding: 1rem;
      background: rgba(17, 24, 39, 0.96);
      border: 1px solid var(--line2);
      border-radius: 20px;
      backdrop-filter: blur(16px);
      box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
    }

    .mobile-drawer.is-open { display: block; }

    .mobile-drawer a {
      display: block;
      padding: 0.85rem 1rem;
      font-weight: 600;
      color: var(--muted);
      border-radius: 12px;
    }

    .mobile-drawer a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

    .mobile-drawer .mobile-cta {
      margin-top: 0.5rem;
      text-align: center;
      background: linear-gradient(135deg, var(--amber), var(--amber2));
      color: #0f172a;
    }

    @media (min-width: 900px) {
      .mobile-drawer { display: none !important; }
    }

    main { position: relative; z-index: 1; }

    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      width: 0%;
      z-index: 10000;
      background: linear-gradient(90deg, var(--amber), #f97316, var(--sky), var(--violet));
      pointer-events: none;
      transition: box-shadow 0.2s ease, filter 0.2s ease;
      box-shadow:
        0 0 calc(12px + var(--scroll-p) * 28px) rgba(251, 191, 36, 0.45),
        0 0 calc(18px + var(--scroll-p) * 20px) rgba(56, 189, 248, 0.35);
      filter: saturate(calc(1 + var(--scroll-p) * 0.35));
    }

    .reveal {
      opacity: 0;
      transform: translateY(var(--reveal-y));
      transition:
        opacity 0.85s var(--anim-out),
        transform 0.85s var(--anim-out);
      transition-delay: var(--reveal-delay, 0ms);
    }

    .reveal.is-in {
      opacity: 1;
      transform: translateY(0);
    }

    /* Hero */
    .hero {
      --hero-fade: 0;
      position: relative;
      padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3rem);
      overflow: hidden;
    }

    @media (prefers-reduced-motion: no-preference) {
      .hero-copy {
        transform: translate3d(0, calc(var(--hero-fade) * -48px), 0);
        opacity: calc(1 - var(--hero-fade) * 0.52);
        will-change: transform, opacity;
      }
    }

    .hero-grid-bg {
      pointer-events: none;
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(248, 250, 252, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 250, 252, 0.04) 1px, transparent 1px);
      background-size: 56px 56px;
      mask-image: linear-gradient(180deg, black 35%, transparent 96%);
      opacity: 0.65;
      z-index: 0;
    }

    .hero-layout {
      display: grid;
      gap: 2.5rem;
      align-items: center;
      position: relative;
      z-index: 1;
    }

    @media (min-width: 960px) {
      .hero-layout {
        grid-template-columns: 1fr minmax(300px, 420px);
        gap: 3rem;
      }
    }

    @keyframes hero-enter {
      from {
        opacity: 0;
        transform: translateY(28px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .hero-copy > .hero-anim {
      opacity: 0;
      animation: hero-enter 0.85s var(--anim-out) forwards;
    }

    .hero-copy > .hero-anim:nth-child(1) { animation-delay: 0.08s; }
    .hero-copy > .hero-anim:nth-child(2) { animation-delay: 0.18s; }
    .hero-copy > .hero-anim:nth-child(3) { animation-delay: 0.24s; }
    .hero-copy > .hero-anim:nth-child(4) { animation-delay: 0.32s; }
    .hero-copy > .hero-anim:nth-child(5) { animation-delay: 0.42s; }
    .hero-copy > .hero-anim:nth-child(6) { animation-delay: 0.52s; }
    .hero-copy > .hero-anim:nth-child(7) { animation-delay: 0.62s; }

    .hero-layout > .hero-visual.hero-anim {
      opacity: 0;
      animation: hero-enter 1s var(--anim-out) 0.62s forwards;
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-copy > .hero-anim {
        opacity: 1;
        animation: none;
      }
      .hero-layout > .hero-visual.hero-anim {
        opacity: 1;
        animation: none;
      }
    }

    .hero-spotlight {
      pointer-events: none;
      position: absolute;
      inset: -15% -5% 25%;
      background: radial-gradient(ellipse 75% 55% at 50% 0%, rgba(56, 189, 248, 0.14), transparent 72%);
      z-index: 0;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      font-family: var(--mono);
      font-size: 0.66rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: #fde68a;
      margin-bottom: 1.15rem;
      padding: 0.5rem 1.1rem 0.5rem 0.75rem;
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(56, 189, 248, 0.06));
      border: 1px solid rgba(251, 191, 36, 0.28);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 0 40px -12px rgba(251, 191, 36, 0.35);
    }

    .hero-badge::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--amber);
      box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2), 0 0 20px var(--amber);
      animation: pulse 2s ease-in-out infinite;
    }

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

    .hero-highlights {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 0 0 1.2rem;
      max-width: 36rem;
    }

    .hero-highlights span {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      padding: 0.42rem 0.8rem;
      border-radius: 999px;
      border: 1px solid rgba(52, 211, 153, 0.35);
      background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(56, 189, 248, 0.06));
      color: #a7f3d0;
    }

    .hero-highlights span:nth-child(2) {
      border-color: rgba(56, 189, 248, 0.35);
      background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(167, 139, 250, 0.06));
      color: #bae6fd;
    }

    .hero-highlights span:nth-child(3) {
      border-color: rgba(251, 191, 36, 0.4);
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.04));
      color: #fde68a;
    }

    .hero-highlights span:nth-child(4) {
      border-color: rgba(167, 139, 250, 0.35);
      background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), transparent);
      color: #ddd6fe;
    }

    .hero h1 {
      font-family: var(--display);
      font-weight: 700;
      line-height: 1.08;
      letter-spacing: -0.035em;
      margin: 0 0 1.2rem;
      max-width: 100%;
    }

    .hero-name {
      display: block;
      font-size: clamp(2.85rem, 7vw, 4.65rem);
      font-weight: 800;
      letter-spacing: -0.042em;
      line-height: 1.02;
      background: linear-gradient(165deg, #ffffff 0%, #e2e8f0 42%, #94a3b8 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      filter: drop-shadow(0 4px 24px rgba(56, 189, 248, 0.12));
    }

    .hero-role {
      display: block;
      margin-top: 0.45rem;
      font-family: var(--font);
      font-size: clamp(0.95rem, 1.85vw, 1.15rem);
      font-weight: 600;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--sky);
      opacity: 0.95;
    }

    .hero h1 .line2 {
      display: block;
      margin-top: 0.65rem;
      font-size: clamp(1.35rem, 3.2vw, 1.85rem);
      font-weight: 600;
      line-height: 1.25;
      max-width: 22ch;
      color: #e2e8f0;
    }

    .hero h1 em {
      font-style: italic;
      font-weight: 600;
      background: linear-gradient(135deg, var(--amber), #fb923c, var(--sky));
      background-size: 200% auto;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: gradient-shift 6s ease infinite;
    }

    @keyframes gradient-shift {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    .hero-lead {
      font-size: 1.125rem;
      color: var(--muted);
      max-width: 36rem;
      margin: 0 0 1.65rem;
      line-height: 1.75;
    }

    .hero-lead strong { color: var(--text); font-weight: 600; }

    .hero-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
    }

    .btn-gold {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      padding: 0.9rem 1.55rem;
      font-family: var(--font);
      font-size: 0.95rem;
      font-weight: 700;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--amber), var(--amber2));
      color: #0f172a;
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 24px rgba(251, 191, 36, 0.3);
      transition: transform 0.25s var(--anim-out), box-shadow 0.25s var(--anim-out);
    }

    .btn-gold:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 14px 40px rgba(251, 191, 36, 0.4);
    }

    .btn-gold .btn-arrow {
      transition: transform 0.25s var(--anim-out);
    }

    .btn-gold:hover .btn-arrow {
      transform: translateX(4px);
    }

    .btn-ghost {
      display: inline-flex;
      align-items: center;
      padding: 0.9rem 1.35rem;
      font-size: 0.95rem;
      font-weight: 600;
      border-radius: 999px;
      border: 1px solid var(--line2);
      color: var(--text);
      transition: border-color 0.25s, background 0.25s, transform 0.25s var(--anim-out);
    }

    .btn-ghost:hover {
      border-color: var(--sky);
      background: var(--sky-dim);
      transform: translateY(-2px);
    }

    .hero-contact-line {
      margin: 0.85rem 0 0;
      font-size: 0.95rem;
      color: var(--muted);
    }

    .hero-contact-line a {
      color: var(--sky);
      font-weight: 600;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s;
    }

    .hero-contact-line a:hover {
      border-bottom-color: var(--sky);
    }

    .hero-meta {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1.25rem;
      margin-top: 2.25rem;
      padding-top: 1.85rem;
      border-top: 1px solid var(--line);
    }

    .hero-meta > div {
      padding: 0.9rem 1.05rem;
      border-radius: 16px;
      background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
      border: 1px solid var(--line);
      transition: border-color 0.35s, transform 0.35s var(--anim-out), box-shadow 0.35s;
    }

    .hero-meta > div:hover {
      border-color: rgba(56, 189, 248, 0.35);
      transform: translateY(-4px);
      box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.5), 0 0 32px -8px rgba(56, 189, 248, 0.2);
    }

    .hero-meta div span {
      display: block;
      font-family: var(--mono);
      font-size: 0.62rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--dim);
      margin-bottom: 0.35rem;
    }

    .hero-meta div strong {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.3;
    }

    /* Hero visual panel */
    .hero-visual {
      position: relative;
      perspective: 1400px;
    }

    .hero-orbit {
      position: absolute;
      inset: -10%;
      border-radius: 26px;
      border: 1px solid rgba(56, 189, 248, 0.14);
      pointer-events: none;
      z-index: 0;
      animation: orbit-breathe 9s ease-in-out infinite;
    }

    .hero-orbit::before {
      content: "";
      position: absolute;
      inset: 10px;
      border-radius: 22px;
      border: 1px solid rgba(251, 191, 36, 0.1);
      animation: orbit-breathe 11s ease-in-out infinite reverse;
    }

    .hero-orbit::after {
      content: "";
      position: absolute;
      inset: -20%;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 65%);
      z-index: -1;
      animation: orbit-breathe 14s ease-in-out infinite;
    }

    @keyframes orbit-breathe {
      0%, 100% { opacity: 0.55; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.015); }
    }

    @keyframes panel-float {
      0%, 100% { transform: translateY(0) rotateX(3deg) rotateY(-2deg); }
      50% { transform: translateY(-12px) rotateX(3deg) rotateY(-2deg); }
    }

    .hero-panel {
      position: relative;
      z-index: 1;
      border-radius: 22px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: linear-gradient(168deg, #131b2e 0%, #0a0f1a 55%, #0c1222 100%);
      box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.07) inset,
        0 0 80px -24px rgba(56, 189, 248, 0.35),
        0 32px 64px -16px rgba(0, 0, 0, 0.65);
      overflow: hidden;
      animation: panel-float 8s ease-in-out infinite;
    }

    .hero-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(125deg, transparent 35%, rgba(255, 255, 255, 0.04) 48%, transparent 62%);
      pointer-events: none;
      animation: panel-shine 6s ease-in-out infinite;
    }

    @keyframes panel-shine {
      0%, 100% { opacity: 0.3; transform: translateX(-20%); }
      50% { opacity: 0.7; transform: translateX(20%); }
    }

    .hero-panel-top {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.65rem 1rem;
      border-bottom: 1px solid var(--line);
      font-family: var(--mono);
      font-size: 0.65rem;
      color: var(--dim);
      position: relative;
      z-index: 2;
      background: rgba(0, 0, 0, 0.2);
    }

    .hero-dots {
      display: flex;
      gap: 5px;
    }

    .hero-dots span {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--line2);
    }

    .hero-dots span:nth-child(1) { background: #f87171; }
    .hero-dots span:nth-child(2) { background: #fbbf24; }
    .hero-dots span:nth-child(3) { background: #4ade80; }

    .hero-panel-body {
      padding: 1.15rem 1.1rem 1.35rem;
      font-family: var(--mono);
      font-size: 0.74rem;
      line-height: 1.72;
      color: #cbd5e1;
      position: relative;
      z-index: 2;
    }

    .code-line {
      opacity: 0;
      animation: code-in 0.5s var(--anim-out) forwards;
    }

    .code-line:nth-child(1) { animation-delay: 0.6s; }
    .code-line:nth-child(2) { animation-delay: 0.85s; }
    .code-line:nth-child(3) { animation-delay: 1.1s; }
    .code-line:nth-child(4) { animation-delay: 1.35s; }
    .code-line:nth-child(5) { animation-delay: 1.6s; }
    .code-line:nth-child(6) { animation-delay: 1.85s; }
    .code-line:nth-child(7) { animation-delay: 2.1s; }

    @keyframes code-in {
      from { opacity: 0; transform: translateX(-8px); }
      to { opacity: 1; transform: translateX(0); }
    }

    .code-line .kw { color: var(--sky); }
    .code-line .fn { color: var(--amber); }
    .code-line .st { color: #86efac; }

    @keyframes float-badge {
      0%, 100% { transform: translate(0, 0) rotate(-2deg); }
      50% { transform: translate(6px, -8px) rotate(2deg); }
    }

    .hero-float-badge {
      position: absolute;
      top: -12px;
      right: -8px;
      z-index: 3;
      padding: 0.5rem 0.85rem;
      border-radius: 12px;
      background: linear-gradient(145deg, #fcd34d, var(--amber2));
      color: #0f172a;
      font-size: 0.72rem;
      font-weight: 800;
      font-family: var(--font);
      box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.85), 0 16px 36px rgba(251, 191, 36, 0.4);
      animation: float-badge 5s ease-in-out infinite;
    }

    @media (max-width: 959px) {
      .hero-float-badge { right: 8px; top: 8px; }
    }

    /* Marquee */
    .marquee-wrap {
      margin-top: clamp(2rem, 5vw, 3rem);
      position: relative;
      border-top: 1px solid rgba(251, 191, 36, 0.12);
      border-bottom: 1px solid rgba(56, 189, 248, 0.1);
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.85), rgba(15, 23, 42, 0.55));
      overflow: hidden;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .marquee-wrap::before,
    .marquee-wrap::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      width: 80px;
      z-index: 2;
      pointer-events: none;
    }

    .marquee-wrap::before {
      left: 0;
      background: linear-gradient(90deg, var(--bg), transparent);
    }

    .marquee-wrap::after {
      right: 0;
      background: linear-gradient(-90deg, var(--bg), transparent);
    }

    @keyframes marquee-x {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    .marquee-track {
      display: flex;
      width: max-content;
      animation: marquee-x 38s linear infinite;
    }

    .marquee-track:hover {
      animation-play-state: paused;
    }

    .marquee-group {
      display: flex;
      align-items: center;
      gap: 3rem;
      padding: 0.95rem 1.5rem;
      flex-shrink: 0;
    }

    .marquee-group span {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--dim);
      white-space: nowrap;
      transition: color 0.25s;
    }

    .marquee-group span strong {
      color: #e2e8f0;
      font-weight: 700;
      text-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
    }

    /* Reusable code windows (about, skills, etc.) */
    .code-window {
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: linear-gradient(170deg, #121a2f 0%, #080c16 100%);
      box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.05) inset,
        0 24px 48px -20px rgba(0, 0, 0, 0.6),
        0 0 60px -30px rgba(56, 189, 248, 0.12);
      overflow: hidden;
    }

    .code-window-cap {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.55rem 0.95rem;
      border-bottom: 1px solid var(--line);
      font-family: var(--mono);
      font-size: 0.62rem;
      color: var(--dim);
      letter-spacing: 0.02em;
    }

    .code-window-cap .dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--line2);
    }

    .code-window-cap .dot:nth-child(1) { background: #f87171; }
    .code-window-cap .dot:nth-child(2) { background: #fbbf24; }
    .code-window-cap .dot:nth-child(3) { background: #4ade80; }

    .code-window-body {
      padding: 1rem 1rem 1.15rem;
      font-family: var(--mono);
      font-size: 0.68rem;
      line-height: 1.7;
      color: #cbd5e1;
    }

    .code-window .code-line {
      opacity: 0;
    }

    .code-window.is-in .code-line {
      animation: code-in 0.48s var(--anim-out) forwards;
    }

    .code-window.is-in .code-line:nth-child(1) { animation-delay: 0.06s; }
    .code-window.is-in .code-line:nth-child(2) { animation-delay: 0.18s; }
    .code-window.is-in .code-line:nth-child(3) { animation-delay: 0.3s; }
    .code-window.is-in .code-line:nth-child(4) { animation-delay: 0.42s; }
    .code-window.is-in .code-line:nth-child(5) { animation-delay: 0.54s; }
    .code-window.is-in .code-line:nth-child(6) { animation-delay: 0.66s; }
    .code-window.is-in .code-line:nth-child(7) { animation-delay: 0.78s; }

    .code-line .cm { color: var(--dim); font-style: italic; }

    .skill-intro-text {
      margin-bottom: 1.5rem;
      max-width: 44rem;
    }

    .skill-intro-text .eyebrow {
      font-family: var(--mono);
      font-size: 0.68rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--sky);
      margin: 0 0 0.5rem;
    }

    .skill-intro-text h2 {
      font-family: var(--display);
      font-size: clamp(1.85rem, 3.4vw, 2.5rem);
      font-weight: 700;
      letter-spacing: -0.035em;
      margin: 0 0 0.85rem;
      line-height: 1.12;
      position: relative;
      display: inline-block;
      max-width: 100%;
    }

    .skill-intro-text h2::after {
      content: "";
      display: block;
      width: min(7rem, 42vw);
      height: 3px;
      margin-top: 0.65rem;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--amber), var(--sky), var(--violet));
      box-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
    }

    .skill-intro-text p {
      margin: 0;
      color: var(--muted);
      max-width: 38rem;
      font-size: 1.045rem;
      line-height: 1.72;
    }

    /* Sections */
    section { padding: clamp(3rem, 7vw, 5rem) 0; }

    .sec-head {
      margin-bottom: 2.25rem;
    }

    .sec-head .eyebrow {
      font-family: var(--mono);
      font-size: 0.68rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--sky);
      margin: 0 0 0.5rem;
    }

    .sec-head h2 {
      font-family: var(--display);
      font-size: clamp(1.85rem, 3.4vw, 2.5rem);
      font-weight: 700;
      letter-spacing: -0.035em;
      margin: 0 0 0.85rem;
      line-height: 1.12;
      position: relative;
      display: inline-block;
      max-width: 100%;
    }

    .sec-head h2::after {
      content: "";
      display: block;
      width: min(7rem, 42vw);
      height: 3px;
      margin-top: 0.65rem;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--amber), var(--sky), var(--violet));
      box-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
    }

    .sec-head p {
      margin: 0;
      color: var(--muted);
      max-width: 38rem;
      font-size: 1.045rem;
      line-height: 1.72;
    }

    /* About */
    .about-split {
      display: grid;
      gap: 1.25rem;
    }

    @media (min-width: 880px) {
      .about-split { grid-template-columns: 1.25fr 1fr; }
    }

    .about-main {
      background: linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75));
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 24px;
      padding: 2rem 2rem 1.75rem;
      box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.06) inset,
        0 28px 56px -28px rgba(0, 0, 0, 0.55);
    }

    .about-main p {
      margin: 0 0 1.15rem;
      color: var(--muted);
      font-size: 1.055rem;
      line-height: 1.74;
    }

    .about-main p:last-child { margin-bottom: 0; }

    .about-main strong { color: var(--text); }

    .about-side {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .stat-card {
      flex: 1;
      background: linear-gradient(150deg, var(--amber-dim), var(--violet-dim), transparent 65%);
      border: 1px solid rgba(251, 191, 36, 0.15);
      border-radius: 20px;
      padding: 1.5rem 1.6rem;
      box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.45);
      transition: border-color 0.3s, transform 0.3s var(--anim-out);
    }

    @media (hover: hover) {
      .stat-card:hover {
        border-color: rgba(56, 189, 248, 0.25);
        transform: translateY(-2px);
      }
    }

    .stat-card h3 {
      font-family: var(--display);
      font-size: 1.15rem;
      margin: 0 0 0.5rem;
    }

    .stat-card p {
      margin: 0;
      font-size: 0.95rem;
      color: var(--muted);
      line-height: 1.65;
    }

    .skill-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      align-content: flex-start;
      margin-top: 0.85rem;
    }

    .skill-pills span {
      font-size: 0.72rem;
      font-weight: 500;
      color: #d1dbe8;
      padding: 0.32rem 0.62rem;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid var(--line);
      transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
    }

    @media (hover: hover) {
      .skill-pills span:hover {
        color: var(--text);
        border-color: rgba(56, 189, 248, 0.35);
        transform: translateY(-2px);
      }
    }

    /* Skills — orbit: center photo + floating pills */
    @keyframes skill-orbit-float {
      0%, 100% { transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(0deg); }
      33% { transform: translate(-50%, -50%) translate3d(2px, -8px, 0) rotate(0.4deg); }
      66% { transform: translate(-50%, -50%) translate3d(-3px, 5px, 0) rotate(-0.35deg); }
    }

    @keyframes skill-orbit-twinkle {
      0%, 100% { opacity: 0.2; transform: scale(0.85); }
      50% { opacity: 0.95; transform: scale(1.05); }
    }

    /* Skills full-bleed band */
    .skills-fullbleed {
      --skills-shift: 0px;
      width: 100vw;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
      margin-top: 2rem;
      padding: clamp(2rem, 5vw, 3.75rem) 0;
      position: relative;
      background:
        radial-gradient(ellipse 50% 85% at 50% 42%, rgba(56, 189, 248, 0.09), transparent 52%),
        radial-gradient(ellipse 38% 70% at 12% 55%, rgba(167, 139, 250, 0.07), transparent 48%),
        radial-gradient(ellipse 38% 70% at 88% 50%, rgba(251, 191, 36, 0.06), transparent 48%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(2, 6, 23, 0.98) 100%);
      border-top: 1px solid rgba(248, 250, 252, 0.07);
      border-bottom: 1px solid rgba(248, 250, 252, 0.07);
      overflow: clip;
    }

    .skills-fullbleed::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 70% 55% at 50% 50%, transparent 30%, rgba(2, 6, 23, 0.55) 100%);
      pointer-events: none;
      transform: translate3d(0, var(--skills-shift, 0px), 0);
      will-change: transform;
    }

    .skills-fullbleed-inner {
      position: relative;
      z-index: 1;
      width: 100%;
      padding-inline: clamp(0.75rem, 3vw, 2rem);
    }

    .skills-orbit-wrap {
      margin-top: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .skills-orbit-hint {
      text-align: center;
      font-size: 0.9rem;
      color: var(--muted);
      max-width: 42rem;
      margin: 0 auto 1.35rem;
      line-height: 1.55;
      padding-inline: 0.5rem;
    }

    .skills-orbit-photo-note {
      text-align: center;
      font-size: 0.78rem;
      color: var(--muted);
      margin: 1rem 0 0;
      max-width: 36rem;
      line-height: 1.45;
      padding-inline: 0.5rem;
    }

    .skills-orbit-photo-note code {
      font-family: var(--mono);
      font-size: 0.88em;
      color: #b8c5d6;
    }

    .skills-orbit-stage {
      position: relative;
      width: 100%;
      max-width: 1320px;
      margin: 0 auto;
      height: clamp(300px, 44vw, 480px);
      min-height: 280px;
      isolation: isolate;
      cursor: none;
    }

    @media (hover: none) and (pointer: coarse) {
      .skills-orbit-stage {
        cursor: auto;
      }
    }

    .skills-orbit-sparkles {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 0;
    }

    .skills-orbit-sparkle {
      position: absolute;
      width: 10px;
      height: 10px;
      color: rgba(255, 255, 255, 0.75);
      animation: skill-orbit-twinkle var(--tw, 2.8s) ease-in-out infinite;
      animation-delay: var(--tw-delay, 0s);
    }

    .skills-orbit-sparkle svg {
      display: block;
      width: 100%;
      height: 100%;
    }

    .skills-orbit-tags {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    .skill-float-tag {
      position: absolute;
      left: var(--sx, 50%);
      top: var(--sy, 50%);
      transform: translate(-50%, -50%);
      font-family: var(--font);
      font-size: clamp(0.62rem, 1.15vw + 0.45rem, 0.8rem);
      font-weight: 600;
      letter-spacing: 0.01em;
      color: #c8d4e4;
      padding: 0.38rem 0.72rem;
      border-radius: 999px;
      background: rgba(12, 14, 22, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
      white-space: nowrap;
      max-width: min(40vw, 240px);
      overflow: hidden;
      text-overflow: ellipsis;
      z-index: 2;
      animation: skill-orbit-float var(--float-dur, 4.2s) ease-in-out infinite;
      animation-delay: var(--float-delay, 0s);
      transition: border-color 0.2s, color 0.2s, box-shadow 0.25s;
    }

    @media (hover: hover) {
      .skill-float-tag:hover {
        color: var(--text);
        border-color: rgba(56, 189, 248, 0.4);
        box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.65), 0 0 24px -8px rgba(56, 189, 248, 0.18);
        z-index: 4;
      }
    }

    .skills-orbit-cursor {
      position: absolute;
      left: 0;
      top: 0;
      z-index: 5;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.16s ease;
      will-change: left, top;
    }

    .skills-orbit-cursor.is-active {
      opacity: 1;
    }

    .skills-orbit-cursor svg {
      display: block;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
    }

    .skills-orbit-cursor-label {
      position: absolute;
      left: 14px;
      top: 18px;
      font-size: 0.65rem;
      font-weight: 600;
      color: #0f172a;
      background: #fff;
      padding: 0.2rem 0.45rem;
      border-radius: 6px;
      border: 1px solid rgba(15, 23, 42, 0.12);
      white-space: nowrap;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .skills-orbit-center {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: 2;
      width: clamp(128px, min(20vw, 22vh), 248px);
      aspect-ratio: 1;
      border-radius: 28%;
      padding: 3px;
      background: linear-gradient(135deg, rgba(56, 189, 248, 0.38), rgba(251, 191, 36, 0.28), rgba(167, 139, 250, 0.32));
      box-shadow:
        0 28px 56px -22px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 0 72px -20px rgba(56, 189, 248, 0.3);
    }

    .skills-orbit-photo {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 28%;
      border-radius: 26%;
      background: rgba(15, 23, 42, 0.9);
    }

    /* Tag positions — wide full-stack orbit (CV-aligned, 20 tags) */
    .skill-float-tag.sf-html { --sx: 5%; --sy: 26%; --float-dur: 4.1s; --float-delay: 0s; }
    .skill-float-tag.sf-js { --sx: 95%; --sy: 26%; --float-dur: 3.65s; --float-delay: 0.35s; }
    .skill-float-tag.sf-php { --sx: 3%; --sy: 48%; --float-dur: 4.35s; --float-delay: 0.15s; }
    .skill-float-tag.sf-wp { --sx: 97%; --sy: 48%; --float-dur: 3.95s; --float-delay: 0.55s; }
    .skill-float-tag.sf-woo { --sx: 11%; --sy: 76%; --float-dur: 4.15s; --float-delay: 0.08s; }
    .skill-float-tag.sf-sql { --sx: 89%; --sy: 76%; --float-dur: 3.75s; --float-delay: 0.48s; }
    .skill-float-tag.sf-rest { --sx: 24%; --sy: 11%; --float-dur: 4.05s; --float-delay: 0.28s; }
    .skill-float-tag.sf-hook { --sx: 76%; --sy: 11%; --float-dur: 3.85s; --float-delay: 0.42s; }
    .skill-float-tag.sf-gql { --sx: 50%; --sy: 7%; --float-dur: 4.25s; --float-delay: 0.22s; }
    .skill-float-tag.sf-git { --sx: 50%; --sy: 91%; --float-dur: 3.9s; --float-delay: 0.32s; }
    .skill-float-tag.sf-gut { --sx: 19%; --sy: 58%; --float-dur: 4.2s; --float-delay: 0.12s; }
    .skill-float-tag.sf-tail { --sx: 81%; --sy: 58%; --float-dur: 3.7s; --float-delay: 0.52s; }
    .skill-float-tag.sf-ele { --sx: 36%; --sy: 14%; --float-dur: 4s; --float-delay: 0.18s; }
    .skill-float-tag.sf-acf { --sx: 64%; --sy: 14%; --float-dur: 3.8s; --float-delay: 0.38s; }
    .skill-float-tag.sf-mp { --sx: 14%; --sy: 86%; --float-dur: 4.3s; --float-delay: 0.06s; }
    .skill-float-tag.sf-amelia { --sx: 86%; --sy: 86%; --float-dur: 3.6s; --float-delay: 0.44s; }
    .skill-float-tag.sf-zoho { --sx: 7%; --sy: 12%; --float-dur: 4.12s; --float-delay: 0.24s; }
    .skill-float-tag.sf-pay { --sx: 93%; --sy: 12%; --float-dur: 3.88s; --float-delay: 0.5s; }
    .skill-float-tag.sf-wpcli { --sx: 28%; --sy: 88%; --float-dur: 4.08s; --float-delay: 0.2s; }
    .skill-float-tag.sf-sec { --sx: 72%; --sy: 88%; --float-dur: 3.92s; --float-delay: 0.4s; }

    .skills-orbit-sparkle.sp-1 { left: 18%; top: 36%; --tw: 2.4s; --tw-delay: 0s; }
    .skills-orbit-sparkle.sp-2 { left: 42%; top: 22%; --tw: 3.1s; --tw-delay: 0.35s; }
    .skills-orbit-sparkle.sp-3 { left: 58%; top: 38%; --tw: 2.7s; --tw-delay: 0.2s; }
    .skills-orbit-sparkle.sp-4 { left: 82%; top: 34%; --tw: 3.4s; --tw-delay: 0.55s; }
    .skills-orbit-sparkle.sp-5 { left: 12%; top: 62%; --tw: 2.9s; --tw-delay: 0.1s; }
    .skills-orbit-sparkle.sp-6 { left: 50%; top: 48%; --tw: 3.2s; --tw-delay: 0.45s; }
    .skills-orbit-sparkle.sp-7 { left: 88%; top: 54%; --tw: 2.55s; --tw-delay: 0.28s; }
    .skills-orbit-sparkle.sp-8 { left: 30%; top: 78%; --tw: 3.6s; --tw-delay: 0.15s; }
    .skills-orbit-sparkle.sp-9 { left: 66%; top: 72%; --tw: 2.85s; --tw-delay: 0.5s; }
    .skills-orbit-sparkle.sp-10 { left: 8%; top: 44%; --tw: 3.15s; --tw-delay: 0.08s; }
    .skills-orbit-sparkle.sp-11 { left: 92%; top: 42%; --tw: 2.65s; --tw-delay: 0.62s; }
    .skills-orbit-sparkle.sp-12 { left: 48%; top: 66%; --tw: 3.25s; --tw-delay: 0.22s; }

    @media (max-width: 639px) {
      .skills-orbit-stage {
        height: clamp(380px, 118vw, 520px);
        max-width: 100%;
      }

      .skill-float-tag {
        max-width: 38vw;
        font-size: clamp(0.58rem, 2.8vw, 0.72rem);
        padding: 0.3rem 0.55rem;
      }

      .skill-float-tag.sf-html { --sx: 4%; --sy: 18%; }
      .skill-float-tag.sf-js { --sx: 94%; --sy: 18%; }
      .skill-float-tag.sf-php { --sx: 2%; --sy: 38%; }
      .skill-float-tag.sf-wp { --sx: 96%; --sy: 38%; }
      .skill-float-tag.sf-woo { --sx: 8%; --sy: 68%; }
      .skill-float-tag.sf-sql { --sx: 90%; --sy: 68%; }
      .skill-float-tag.sf-rest { --sx: 20%; --sy: 9%; }
      .skill-float-tag.sf-hook { --sx: 78%; --sy: 9%; }
      .skill-float-tag.sf-gql { --sx: 50%; --sy: 5%; }
      .skill-float-tag.sf-git { --sx: 50%; --sy: 93%; }
      .skill-float-tag.sf-gut { --sx: 16%; --sy: 52%; }
      .skill-float-tag.sf-tail { --sx: 84%; --sy: 52%; }
      .skill-float-tag.sf-ele { --sx: 32%; --sy: 11%; }
      .skill-float-tag.sf-acf { --sx: 68%; --sy: 11%; }
      .skill-float-tag.sf-mp { --sx: 10%; --sy: 82%; }
      .skill-float-tag.sf-amelia { --sx: 88%; --sy: 82%; }
      .skill-float-tag.sf-zoho { --sx: 6%; --sy: 8%; }
      .skill-float-tag.sf-pay { --sx: 92%; --sy: 8%; }
      .skill-float-tag.sf-wpcli { --sx: 24%; --sy: 86%; }
      .skill-float-tag.sf-sec { --sx: 74%; --sy: 86%; }

      .skills-orbit-center { width: clamp(108px, 34vw, 168px); }
    }

    @media (prefers-reduced-motion: reduce) {
      .skill-float-tag,
      .skills-orbit-sparkle {
        animation: none !important;
      }
    }

    /* Project filter tabs */
    .project-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin: 0 0 1.5rem;
      padding: 0.45rem;
      border-radius: 18px;
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.08);
      width: 100%;
    }

    @media (min-width: 640px) {
      .project-filters {
        width: fit-content;
        border-radius: 999px;
      }
    }

    .filter-tab {
      border: none;
      background: transparent;
      color: var(--muted);
      font-family: var(--font);
      font-weight: 600;
      font-size: 0.78rem;
      padding: 0.5rem 1rem;
      border-radius: 999px;
      cursor: pointer;
      transition: color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s var(--ease);
    }

    .filter-tab:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.06);
    }

    .filter-tab.is-active {
      background: linear-gradient(135deg, var(--amber), var(--amber2));
      color: #0f172a;
      box-shadow: 0 4px 22px rgba(251, 191, 36, 0.3);
    }

    .filter-tab:focus-visible {
      outline: 2px solid var(--sky);
      outline-offset: 2px;
    }

    .project-grid.is-filtering {
      opacity: 0.55;
    }

    .project-card.is-filter-hidden {
      display: none !important;
    }

    /* Scroll-linked polish */
    .hero-parallax {
      will-change: transform;
    }

    /* Projects */
    .project-grid {
      display: grid;
      gap: 1.25rem;
      transition: opacity 0.35s var(--ease);
    }

    @media (min-width: 720px) {
      .project-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .project-card.featured {
        grid-column: span 2;
      }
    }

    @media (min-width: 900px) {
      .project-card.featured .project-card-link {
        display: grid;
        grid-template-columns: 1.12fr 1fr;
        align-items: stretch;
      }
      .project-card.featured .project-card-media {
        min-height: 240px;
      }
    }

    .project-card {
      border-radius: 22px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.88));
      overflow: hidden;
      transition:
        transform 0.5s var(--anim-out),
        border-color 0.4s,
        box-shadow 0.5s var(--anim-out);
    }

    .project-card.featured {
      border-color: rgba(251, 191, 36, 0.22);
      box-shadow: 0 0 100px -40px rgba(251, 191, 36, 0.2), 0 0 80px -50px rgba(56, 189, 248, 0.15);
    }

    @media (hover: hover) {
      .project-card:hover {
        transform: translateY(-10px) scale(1.01);
        border-color: rgba(251, 191, 36, 0.45);
        box-shadow:
          0 36px 64px -24px rgba(0, 0, 0, 0.55),
          0 0 0 1px rgba(251, 191, 36, 0.15),
          0 0 60px -12px rgba(56, 189, 248, 0.2);
      }
    }

    .project-card-link {
      display: flex;
      flex-direction: column;
      height: 100%;
      color: inherit;
      text-align: left;
    }

    .project-card-media {
      position: relative;
      min-height: 180px;
      background: linear-gradient(140deg, #1e293b 0%, #0f172a 38%, #1e1b4b 72%, #0c1222 100%);
      overflow: hidden;
    }

    .project-card.featured .project-card-media {
      min-height: 200px;
      background: linear-gradient(135deg, #312e81 0%, #0f172a 45%, #451a03 100%);
    }

    .project-card-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
      transform: scale(1.02);
      transition: transform 0.6s var(--anim-out);
    }

    @media (hover: hover) {
      .project-card:hover .project-card-img {
        transform: scale(1.08);
      }
    }

    .project-card-scrim {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background: linear-gradient(
        180deg,
        rgba(2, 6, 23, 0.1) 0%,
        rgba(2, 6, 23, 0.25) 45%,
        rgba(2, 6, 23, 0.82) 100%
      );
    }

    @keyframes mesh-move {
      0% { background-position: 0% 50%; }
      100% { background-position: 100% 50%; }
    }

    .project-card-media::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 2;
      background:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.18), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.12), transparent 40%);
      background-size: 200% 200%;
      animation: mesh-move 12s ease-in-out infinite alternate;
      mix-blend-mode: screen;
      opacity: 0.55;
      pointer-events: none;
    }

    .project-card-media::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 4;
      background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.07) 50%,
        transparent 60%
      );
      transform: translateX(-100%);
      transition: transform 0.65s var(--anim-out);
      pointer-events: none;
    }

    @media (hover: hover) {
      .project-card:hover .project-card-media::after {
        transform: translateX(100%);
      }
    }

    .project-card-index {
      position: absolute;
      top: 1rem;
      left: 1rem;
      z-index: 3;
      font-family: var(--display);
      font-size: clamp(2.75rem, 5.5vw, 3.6rem);
      font-weight: 800;
      line-height: 1;
      background: linear-gradient(180deg, rgba(248, 250, 252, 0.14), rgba(248, 250, 252, 0.02));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      letter-spacing: -0.05em;
      user-select: none;
    }

    .project-card-placeholder {
      position: absolute;
      bottom: 1rem;
      left: 1rem;
      right: 1rem;
      z-index: 3;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.55rem 0.85rem;
      border-radius: 12px;
      background: rgba(3, 7, 18, 0.65);
      border: 1px solid var(--line2);
      backdrop-filter: blur(8px);
      font-family: var(--mono);
      font-size: 0.68rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--amber);
    }

    .project-card-body {
      padding: 1.35rem 1.45rem 1.5rem;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .project-card-body h3 {
      font-family: var(--display);
      font-size: 1.2rem;
      font-weight: 700;
      margin: 0 0 0.45rem;
      letter-spacing: -0.02em;
    }

    .project-card-body p {
      margin: 0 0 1rem;
      font-size: 0.95rem;
      color: var(--muted);
      line-height: 1.68;
      flex: 1;
    }

    .project-card-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }

    .project-card-tags span {
      font-family: var(--mono);
      font-size: 0.62rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 0.3rem 0.55rem;
      border-radius: 6px;
      background: var(--bg2);
      border: 1px solid var(--line);
      color: var(--dim);
      transition: border-color 0.2s, color 0.2s;
    }

    @media (hover: hover) {
      .project-card:hover .project-card-tags span {
        border-color: rgba(56, 189, 248, 0.25);
        color: var(--muted);
      }
    }

    .project-card-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      margin-top: 0.25rem;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--sky);
    }

    .project-card-cta::after {
      content: "→";
      transition: transform 0.25s var(--anim-out);
    }

    @media (hover: hover) {
      .project-card:hover .project-card-cta::after {
        transform: translateX(5px);
      }
    }

    /* Experience */
    .exp-block {
      border-radius: 24px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
      overflow: hidden;
      box-shadow: 0 28px 56px -32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.04) inset;
    }

    .exp-item {
      padding: 1.65rem 1.85rem;
      border-bottom: 1px solid var(--line);
    }

    .exp-item:last-child { border-bottom: none; }

    .exp-top {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .exp-top h3 {
      font-family: var(--display);
      font-size: 1.12rem;
      font-weight: 700;
      margin: 0;
      letter-spacing: -0.02em;
    }

    .exp-top time {
      font-family: var(--mono);
      font-size: 0.7rem;
      font-weight: 500;
      color: var(--amber);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .exp-item p {
      margin: 0;
      color: var(--muted);
      font-size: 0.98rem;
      line-height: 1.68;
      max-width: 48rem;
    }

    /* Contact */
    #contact {
      --contact-lift: 0;
    }

    @media (prefers-reduced-motion: no-preference) {
      #contact .contact-box {
        transform: translate3d(0, calc(var(--contact-lift) * -16px), 0);
        will-change: transform;
      }
    }

    .contact-box {
      border-radius: 28px;
      border: 1px solid transparent;
      background:
        linear-gradient(160deg, var(--card), #0c1428) padding-box,
        linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(56, 189, 248, 0.4), rgba(167, 139, 250, 0.35)) border-box;
      background-clip: padding-box, border-box;
      padding: clamp(2rem, 5vw, 2.85rem);
      display: grid;
      gap: 2rem;
      align-items: center;
      position: relative;
      overflow: hidden;
      box-shadow:
        0 0 120px -30px rgba(251, 191, 36, 0.25),
        0 40px 80px -40px rgba(0, 0, 0, 0.6);
    }

    .contact-box > * {
      position: relative;
      z-index: 1;
    }

    .contact-box::before {
      content: "";
      position: absolute;
      z-index: 0;
      top: -45%;
      right: -25%;
      width: 55%;
      aspect-ratio: 1;
      background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 68%);
      pointer-events: none;
    }

    .contact-box::after {
      content: "";
      position: absolute;
      z-index: 0;
      bottom: -35%;
      left: -15%;
      width: 45%;
      aspect-ratio: 1;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 65%);
      pointer-events: none;
    }

    @media (min-width: 768px) {
      .contact-box { grid-template-columns: 1fr 1fr; }
    }

    .contact-box h2 {
      font-family: var(--display);
      font-size: clamp(1.65rem, 3vw, 2.15rem);
      font-weight: 700;
      margin: 0 0 0.65rem;
      letter-spacing: -0.035em;
      position: relative;
      background: linear-gradient(180deg, #fff, #e2e8f0);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      filter: drop-shadow(0 2px 20px rgba(56, 189, 248, 0.12));
    }

    .contact-box .lead {
      margin: 0;
      color: var(--muted);
      position: relative;
      max-width: 30rem;
      font-size: 1.045rem;
      line-height: 1.72;
    }

    .contact-list {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      position: relative;
    }

    .contact-list a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.05rem 1.2rem;
      border-radius: 16px;
      background: rgba(0, 0, 0, 0.25);
      border: 1px solid var(--line);
      font-weight: 600;
      font-size: 0.9rem;
      transition: border-color 0.2s, transform 0.2s var(--ease);
    }

    .contact-list a:hover {
      border-color: rgba(251, 191, 36, 0.5);
      background: rgba(56, 189, 248, 0.06);
      transform: translateX(6px);
      box-shadow: 0 0 32px -8px rgba(56, 189, 248, 0.2);
    }

    .contact-list a::after {
      content: "→";
      font-family: var(--mono);
      color: var(--dim);
      font-size: 0.85rem;
    }

    /* Footer */
    .site-footer {
      position: relative;
      z-index: 1;
      border-top: 1px solid var(--line);
      background: rgba(3, 7, 18, 0.85);
      padding: 3rem 0 0;
      margin-top: 1rem;
    }

    .ft-grid {
      display: grid;
      gap: 2.5rem;
      padding-bottom: 2.5rem;
    }

    @media (min-width: 768px) {
      .ft-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 2rem;
      }
    }

    .ft-brand .ft-mark {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      background: linear-gradient(145deg, #fcd34d, var(--amber2), #c2410c);
      color: #0f172a;
      font-family: var(--mono);
      font-size: 0.8rem;
      font-weight: 600;
      display: grid;
      place-items: center;
      margin-bottom: 1.25rem;
      box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.95), 0 12px 28px rgba(251, 191, 36, 0.25);
    }

    .ft-brand p {
      margin: 0;
      color: var(--muted);
      font-size: 0.98rem;
      line-height: 1.72;
      max-width: 300px;
    }

    .ft-col span.label {
      display: block;
      font-family: var(--mono);
      font-size: 0.65rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--dim);
      margin-bottom: 1rem;
    }

    .ft-col a {
      display: block;
      padding: 0.35rem 0;
      color: var(--muted);
      font-weight: 600;
      font-size: 0.9rem;
      transition: color 0.2s;
    }

    .ft-col a:hover { color: var(--amber); }

    .ft-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.35rem 0 1.75rem;
      border-top: 1px solid var(--line);
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--dim);
    }
