    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:       #080C12;
      --surface:  #0D1117;
      --card:     #111820;
      --border:   rgba(255,255,255,0.07);
      --blue:     #3B82F6;
      --cyan:     #22D3EE;
      --violet:   #8B5CF6;
      --magenta:  #D946EF;
      --text:     #E8EDF5;
      --muted:    #6B7A8D;
      --dim:      #374151;
      --font-display: 'Syne', sans-serif;
      --font-body:    'DM Sans', sans-serif;
    }

    html { scroll-behavior: smooth; }

    :focus-visible {
      outline: 2px solid rgba(34, 211, 238, 0.9);
      outline-offset: 2px;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.65;
      overflow-x: hidden;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }

    img { max-width: 100%; height: auto; }

    /* -- NOISE TEXTURE OVERLAY -- */
    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.04'/%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;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 clamp(1.5rem, 5vw, 4rem);
      height: 64px;
      background: rgba(8,12,18,0.85);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 1.1rem;
      letter-spacing: -0.02em;
      color: var(--text);
      text-decoration: none;
    }

    body.is-loading { overflow: hidden; }

    .site-loader {
      position: fixed;
      inset: 0;
      z-index: 120;
      display: grid;
      place-items: center;
      background:
        radial-gradient(40% 30% at 50% 40%, rgba(34,211,238,0.15), transparent 65%),
        linear-gradient(180deg, #090e19 0%, #060a10 100%);
      opacity: 1;
      visibility: visible;
      transition: opacity 0.45s ease, visibility 0.45s ease;
    }

    .site-loader.hidden {
      opacity: 0;
      visibility: hidden;
    }

    .site-loader-inner {
      display: grid;
      gap: 0.6rem;
      justify-items: center;
    }

    .site-loader-mark {
      font-family: var(--font-display);
      letter-spacing: 0.03em;
      font-size: 0.98rem;
      color: #dce6fb;
    }

    .site-loader-bar {
      width: 120px;
      height: 3px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(59,130,246,0.2), rgba(34,211,238,0.95), rgba(59,130,246,0.2));
      animation: loaderPulse 1.1s ease-in-out infinite;
    }

    @keyframes loaderPulse {
      0%, 100% { transform: scaleX(0.45); opacity: 0.45; }
      50% { transform: scaleX(1); opacity: 1; }
    }
    .nav-logo span { color: var(--blue); }

    .nav-links {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 0.4rem;
      list-style: none;
      background: rgba(14, 19, 30, 0.72);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 999px;
      padding: 0.38rem;
      backdrop-filter: blur(12px);
      box-shadow: 0 8px 22px rgba(0,0,0,0.28);
    }
    .nav-links a {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: #d5deef;
      text-decoration: none;
      padding: 0.34rem 0.88rem;
      border-radius: 999px;
      transition: color 0.2s, background 0.2s;
    }
    .nav-links a:hover {
      color: var(--text);
      background: rgba(139,92,246,0.2);
    }

    .nav-links a.active {
      color: var(--text);
      background: rgba(59,130,246,0.22);
    }

    .nav-cta {
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      padding: 0.45rem 1.1rem;
      background: var(--blue);
      color: #fff;
      border-radius: 6px;
      text-decoration: none;
      transition: opacity 0.2s;
    }
    .nav-cta:hover { opacity: 0.85; }

    .nav-mobile-btn {
      display: none;
      background: none; border: none; cursor: pointer;
      color: var(--muted); padding: 0.25rem;
    }

    /* -- HERO -- */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex; align-items: center; justify-content: space-between;
      gap: clamp(2rem, 5vw, 5rem);
      padding: 80px clamp(1.5rem, 6vw, 6rem) 0;
      overflow: hidden;
      background:
        radial-gradient(70% 58% at 70% 20%, rgba(139,92,246,0.3), transparent 65%),
        radial-gradient(46% 38% at 40% 62%, rgba(34,211,238,0.16), transparent 68%),
        linear-gradient(180deg, #090e19 0%, #060a10 100%);
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: -18% -12% auto;
      height: 86%;
      background:
        conic-gradient(from 200deg at 55% 52%, rgba(139,92,246,0.22), rgba(34,211,238,0.16), rgba(217,70,239,0.18), rgba(139,92,246,0.22));
      filter: blur(48px);
      animation: driftAura 14s ease-in-out infinite alternate;
      pointer-events: none;
    }

    .hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(7,10,16,0.6) 0%, rgba(7,10,16,0.2) 45%, rgba(7,10,16,0.72) 100%);
      pointer-events: none;
    }

    @keyframes driftAura {
      0% { transform: translate3d(-3%, -3%, 0) rotate(0deg); }
      100% { transform: translate3d(4%, 4%, 0) rotate(6deg); }
    }

    .hero-inner {
      position: relative; z-index: 1;
      max-width: 720px;
    }

    .hero-media {
      position: relative;
      z-index: 1;
      width: clamp(260px, 32vw, 380px);
      opacity: 0;
      animation: fadeUp 0.75s 0.45s forwards;
    }

    .hero-photo-frame {
      position: relative;
      border-radius: 24px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.14);
      background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03));
      backdrop-filter: blur(20px);
      box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 36px rgba(139,92,246,0.2);
      transform: perspective(1000px) rotateY(-8deg);
      transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

    .hero-photo-frame:hover {
      transform: perspective(1000px) rotateY(-3deg) translateY(-6px);
      box-shadow: 0 34px 78px rgba(0,0,0,0.5), 0 0 42px rgba(139,92,246,0.24);
    }

    .hero-photo-frame::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
      pointer-events: none;
    }

    .hero-photo {
      display: block;
      width: 100%;
      aspect-ratio: 3 / 4;
      object-fit: cover;
      object-position: center top;
    }

    .hero-card-meta {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 1rem;
      background: linear-gradient(180deg, rgba(6,10,16,0.05) 0%, rgba(6,10,16,0.9) 100%);
      display: grid;
      gap: 0.6rem;
    }

    .hero-card-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.6rem;
    }

    .hero-card-name {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.01em;
    }

    .hero-card-role {
      font-size: 0.72rem;
      color: rgba(232,237,245,0.82);
    }

    .hero-card-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.8rem;
    }

    .hero-status {
      display: inline-flex;
      align-items: center;
      gap: 0.42rem;
      font-size: 0.72rem;
      color: rgba(232,237,245,0.9);
    }

    .hero-status::before {
      content: '';
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #22d3ee;
      box-shadow: 0 0 10px rgba(34,211,238,0.75);
      animation: pulse 2s infinite;
    }

    .hero-card-cta {
      font-size: 0.73rem;
      font-weight: 600;
      color: #f8fbff;
      text-decoration: none;
      background: rgba(139,92,246,0.4);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 999px;
      padding: 0.34rem 0.78rem;
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .hero-card-cta:hover {
      background: rgba(139,92,246,0.58);
      transform: translateY(-1px);
    }

    .hero-badge {
      display: inline-flex; align-items: center; gap: 0.5rem;
      font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--cyan);
      border: 1px solid rgba(34,211,238,0.25);
      border-radius: 100px;
      padding: 0.3rem 0.85rem;
      margin-bottom: 2rem;
      opacity: 0; animation: fadeUp 0.6s 0.1s forwards;
    }
    .hero-badge::before {
      content: '';
      width: 6px; height: 6px;
      background: var(--cyan);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }
    @keyframes pulse {
      0%,100% { opacity: 1; transform: scale(1); }
      50%      { opacity: 0.4; transform: scale(0.7); }
    }

    .hero h1 {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(2.4rem, 5.9vw, 4.8rem);
      line-height: 0.96;
      letter-spacing: -0.035em;
      color: var(--text);
      margin-bottom: 1.5rem;
      text-transform: uppercase;
      text-wrap: balance;
      text-shadow: 0 6px 22px rgba(0,0,0,0.45);
      opacity: 0; animation: fadeUp 0.7s 0.2s forwards;
    }
    .hero h1 em {
      font-style: normal;
      background: linear-gradient(90deg, #f8fbff 0%, #c8d5ff 40%, #c7b8ff 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-role {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      font-size: clamp(1rem, 1.9vw, 1.26rem);
      color: #d8e3fb;
      margin-bottom: 1.5rem;
      opacity: 0;
      animation: fadeUp 0.7s 0.27s forwards;
    }

    .hero-role::after {
      content: '';
      width: 0.14rem;
      height: 1.05em;
      background: rgba(232,237,245,0.8);
      animation: blinkCursor 1s steps(1) infinite;
    }

    .hero-role-word {
      min-height: 1.2em;
      letter-spacing: 0.01em;
      background: linear-gradient(90deg, #eaf3ff 0%, #d5d9ff 62%, #cabaff 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    @keyframes blinkCursor {
      0%, 48% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }

    .hero-sub {
      font-size: clamp(1rem, 1.8vw, 1.15rem);
      font-weight: 400;
      color: #aeb8ca;
      max-width: 570px;
      line-height: 1.7;
      margin-bottom: 2.5rem;
      opacity: 0; animation: fadeUp 0.7s 0.35s forwards;
    }

    .hero-actions {
      display: flex; flex-wrap: wrap; gap: 0.75rem;
      margin-bottom: 3.5rem;
      opacity: 0; animation: fadeUp 0.7s 0.5s forwards;
    }

    .btn-primary {
      display: inline-flex; align-items: center; gap: 0.4rem;
      font-family: var(--font-body);
      font-size: 0.9rem; font-weight: 600;
      padding: 0.7rem 1.6rem;
      background: var(--blue);
      color: #fff;
      border-radius: 8px;
      text-decoration: none;
      transition: transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 0 0 0 rgba(59,130,246,0.4);
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(59,130,246,0.3);
    }

    .btn-ghost {
      display: inline-flex; align-items: center; gap: 0.4rem;
      font-family: var(--font-body);
      font-size: 0.9rem; font-weight: 500;
      padding: 0.7rem 1.4rem;
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 8px;
      text-decoration: none;
      transition: border-color 0.2s, background 0.2s;
    }
    .btn-ghost:hover {
      border-color: rgba(255,255,255,0.2);
      background: rgba(255,255,255,0.04);
    }

    /* proof strip */
    .proof-strip {
      display: flex; flex-wrap: wrap; gap: 0.5rem;
      opacity: 0; animation: fadeUp 0.7s 0.65s forwards;
    }
    .proof-chip {
      font-size: 0.78rem; font-weight: 500;
      color: #c7cfde;
      border: 1px solid rgba(255,255,255,0.14);
      background: rgba(255,255,255,0.04);
      backdrop-filter: blur(8px);
      border-radius: 6px;
      padding: 0.3rem 0.75rem;
    }
    .proof-chip strong { color: var(--text); font-weight: 600; }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* -- SECTION SHELL -- */
    section {
      position: relative; z-index: 1;
      padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
      scroll-margin-top: 84px;
    }

    .section-label {
      display: inline-block;
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 1rem;
    }

    .section-label.compact { margin-bottom: 0.75rem; }

    .section-title {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(1.8rem, 3.5vw, 2.6rem);
      letter-spacing: -0.025em;
      color: var(--text);
      line-height: 1.1;
      margin-bottom: 0.75rem;
    }

    .section-sub {
      font-size: 1rem;
      color: var(--muted);
      max-width: 520px;
      margin-bottom: 3rem;
    }

    .section-sub.centered { margin: 0 auto 0; }

    /* -- FEATURED PROJECTS -- */
    #projects { background: var(--surface); }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
      gap: 1.5px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
    }

    .project-card {
      background: var(--card);
      padding: 2.5rem;
      display: flex; flex-direction: column; gap: 1.25rem;
      transition: background 0.25s, transform 0.25s ease, box-shadow 0.25s ease;
      text-decoration: none; color: inherit;
    }
    .project-card:hover { background: #141d27; }

    .project-tag {
      display: inline-flex;
      font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 0.25rem 0.6rem;
      border-radius: 4px;
      width: fit-content;
    }
    .tag-featured { background: rgba(59,130,246,0.15); color: var(--blue); }
    .tag-support  { background: rgba(107,122,141,0.15); color: var(--muted); }

    .project-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1.35rem;
      letter-spacing: -0.02em;
      color: var(--text);
      line-height: 1.25;
    }

    .project-desc {
      font-size: 0.92rem;
      color: var(--muted);
      line-height: 1.65;
    }

    .project-stack {
      display: flex; flex-wrap: wrap; gap: 0.4rem;
      margin-top: auto;
    }
    .stack-chip {
      font-size: 0.72rem; font-weight: 500;
      padding: 0.22rem 0.6rem;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--muted);
    }

    .project-links {
      display: flex; gap: 0.75rem; flex-wrap: wrap;
    }
    .project-link {
      font-size: 0.8rem; font-weight: 600;
      color: var(--blue);
      text-decoration: none;
      border: 1px solid rgba(59,130,246,0.3);
      padding: 0.3rem 0.75rem;
      border-radius: 5px;
      transition: background 0.2s, color 0.2s;
    }
    .project-link:hover { background: rgba(59,130,246,0.1); }
    .project-link.ghost {
      color: var(--muted); border-color: var(--border);
    }
    .project-link.ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

    /* supporting projects row */
    .support-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 1rem;
      margin-top: 1.5rem;
    }
    .support-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1.25rem 1.5rem;
      transition: border-color 0.2s, background 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
    }
    .support-card:hover { border-color: rgba(255,255,255,0.15); background: #141d27; }
    .support-card h4 {
      font-family: var(--font-display);
      font-size: 0.95rem; font-weight: 700;
      color: var(--text); margin-bottom: 0.4rem;
    }
    .support-card p {
      font-size: 0.8rem; color: var(--muted); line-height: 1.5;
    }

    /* -- PHILOSOPHY -- */
    #philosophy {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }
    @media (max-width: 768px) { #philosophy { grid-template-columns: 1fr; gap: 2rem; } }

    .philosophy-quote {
      font-family: var(--font-display);
      font-size: clamp(1.4rem, 2.8vw, 2rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.3;
      color: var(--text);
    }
    .philosophy-quote em {
      font-style: normal;
      color: var(--blue);
    }

    .philosophy-body p {
      font-size: 0.97rem;
      color: var(--muted);
      line-height: 1.75;
      margin-bottom: 1rem;
    }

    /* -- SKILLS -- */
    #skills { background: var(--surface); }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 1rem;
    }
    .skill-group {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1.5rem;
      transition: border-color 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
    }
    .skill-group-label {
      font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 0.85rem;
    }
    .skill-tags {
      display: flex; flex-wrap: wrap; gap: 0.4rem;
    }
    .skill-tag {
      font-size: 0.8rem; font-weight: 500;
      padding: 0.25rem 0.6rem;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 5px;
      color: var(--text);
    }

    /* -- EXPERIENCE -- */
    .exp-entry {
      display: grid;
      grid-template-columns: 180px 1fr;
      gap: 2rem;
      padding: 2rem 0;
      border-bottom: 1px solid var(--border);
    }
    .exp-entry:last-child { border-bottom: none; }
    @media (max-width: 640px) {
      .exp-entry { grid-template-columns: 1fr; gap: 0.75rem; }
    }

    .exp-meta { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }
    .exp-meta strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 0.2rem; }

    .exp-title {
      font-family: var(--font-display);
      font-size: 1.1rem; font-weight: 700;
      color: var(--text); margin-bottom: 0.35rem;
    }
    .exp-org { font-size: 0.9rem; color: var(--blue); margin-bottom: 0.75rem; }
    .exp-body { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
    .exp-list { margin-top: 0.5rem; padding-left: 1.2rem; }
    .exp-list li { margin-bottom: 0.3rem; }

    /* -- GITHUB STRIP -- */
    #github {
      background: var(--surface);
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 2rem;
    }
    .github-left h2 {
      font-family: var(--font-display);
      font-size: 1.6rem; font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 0.4rem;
    }

    .github-heading {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 1.6rem;
      letter-spacing: -0.02em;
      margin-bottom: 0.4rem;
    }
    .github-left p { font-size: 0.92rem; color: var(--muted); }
    .github-repos {
      display: flex; flex-wrap: wrap; gap: 0.6rem;
    }
    .repo-chip {
      font-size: 0.78rem; font-weight: 500;
      padding: 0.35rem 0.85rem;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s, border-color 0.2s, transform 0.2s ease;
    }
    .repo-chip:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

    .repo-chip.primary {
      color: var(--blue);
      border-color: rgba(59,130,246,0.3);
    }

    /* -- CONTACT -- */
    #contact {
      text-align: center;
      background: linear-gradient(180deg, var(--bg) 0%, #060a10 100%);
    }
    .contact-grid {
      display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
      margin-top: 2.5rem;
    }
    .contact-item {
      display: flex; align-items: center; gap: 0.6rem;
      font-size: 0.9rem; color: var(--muted);
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.75rem 1.25rem;
      text-decoration: none;
      transition: border-color 0.2s, color 0.2s, transform 0.2s ease;
    }
    .contact-item:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
    .contact-item svg { flex-shrink: 0; }

    /* -- FOOTER -- */
    footer {
      position: relative; z-index: 1;
      padding: 2rem clamp(1.5rem, 6vw, 6rem);
      border-top: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 1rem;
    }
    footer p { font-size: 0.82rem; color: var(--dim); }
    .footer-links { display: flex; gap: 1.5rem; }
    .footer-links a { font-size: 0.82rem; color: var(--dim); text-decoration: none; }
    .footer-links a:hover { color: var(--muted); }

    /* -- SCROLL REVEAL -- */
    .reveal {
      opacity: 0; transform: translateY(28px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }
    .reveal.visible { opacity: 1; transform: none; }

    /* -- MOBILE NAV -- */
    .mobile-nav {
      display: none;
      position: fixed; top: 64px; left: 0; right: 0;
      background: rgba(8,12,18,0.97);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      padding: 1.5rem clamp(1.5rem, 6vw, 4rem);
      z-index: 99;
      flex-direction: column; gap: 1.25rem;
    }
    .mobile-nav.open { display: flex; }
    .mobile-nav a {
      font-size: 1rem; font-weight: 500;
      color: var(--muted); text-decoration: none;
    }

    .mobile-nav a.active {
      color: var(--text);
    }

    .mobile-email-link { color: var(--blue); }

    .hero-actions a {
      min-height: 44px;
      justify-content: center;
    }

    @media (hover: hover) and (pointer: fine) {
      .btn-primary:hover,
      .btn-ghost:hover {
        transform: translateY(-2px);
      }

      .project-card:hover,
      .support-card:hover,
      .skill-group:hover,
      .repo-chip:hover,
      .contact-item:hover,
      .hero-photo-frame:hover {
        will-change: transform;
      }

      .project-card:hover,
      .support-card:hover,
      .skill-group:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.22);
      }

      .repo-chip:hover,
      .contact-item:hover {
        transform: translateY(-2px);
      }
    }

    @media (max-width: 1024px) {
      .nav-links, .nav-cta { display: none; }
      .nav-mobile-btn { display: block; }
      nav { padding: 0 clamp(1rem, 4vw, 2rem); }
      .mobile-nav {
        padding: 1rem clamp(1rem, 4vw, 2rem) 1.25rem;
      }
      .hero {
        padding-top: 96px;
        min-height: auto;
        padding-bottom: 4rem;
        flex-direction: column;
        align-items: flex-start;
      }
      .hero-inner { max-width: 100%; }
      .hero-media {
        width: min(80vw, 420px);
        margin-top: 0.5rem;
      }
    }

    @media (max-width: 768px) {
      .hero {
        padding-top: 100px;
        align-items: center;
      }
      .hero-inner { width: 100%; }
      .hero-media {
        width: min(82vw, 360px);
        margin-top: 0;
      }
      .hero-actions {
        width: 100%;
        gap: 0.6rem;
      }
      .hero-actions a {
        flex: 1 1 calc(50% - 0.3rem);
      }
      .hero-actions .btn-primary {
        flex-basis: 100%;
      }
      .proof-strip {
        gap: 0.45rem;
      }
      .proof-chip {
        font-size: 0.74rem;
      }
      .hero-photo-frame {
        transform: none;
      }
      .hero-photo-frame:hover {
        transform: translateY(-2px);
      }
      section {
        padding: clamp(3rem, 8vw, 4rem) clamp(1rem, 5vw, 1.5rem);
      }
      .project-card,
      .skill-group,
      .support-card {
        padding: 1.2rem;
      }
      .contact-grid {
        width: 100%;
      }
      .contact-item {
        width: 100%;
        justify-content: center;
      }
      .github-repos {
        width: 100%;
      }
      .repo-chip {
        flex: 1 1 44%;
        text-align: center;
      }
      .exp-entry {
        grid-template-columns: 1fr;
        gap: 0.75rem;
      }
    }

    @media (max-width: 520px) {
      .hero h1 {
        font-size: clamp(2.25rem, 12vw, 2.9rem);
        margin-bottom: 1.1rem;
      }
      .hero-role {
        margin-bottom: 1rem;
      }
      .hero-sub {
        font-size: 0.96rem;
        margin-bottom: 1.6rem;
      }
      .mobile-nav {
        top: 64px;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
      }
      .repo-chip,
      .contact-item {
        flex-basis: 100%;
      }
      .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation: none !important;
        transition: none !important;
      }
      .site-loader { display: none; }
      body.is-loading { overflow: auto; }
      .reveal {
        opacity: 1;
        transform: none;
      }
    }

    /* divider line */
    .line-divider {
      border: none;
      border-top: 1px solid var(--border);
      margin: 0;
    }
