:root {
    --bg: #0a0a0a;
    --bg2: #111111;
    --bg3: #161616;
    --surface: #1a1a1a;
    --border: rgba(255,255,255,0.08);
    --text: #f0ede8;
    --text-muted: rgba(240,237,232,0.45);
    --accent: #c8f04d;
    --accent2: #ff6b35;
    --accent3: #7eb8ff;
    --gold: #d4af6b;
    --nav-w: 220px;
    --section-pad: 100px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* ── SIDEBAR NAV ─────────────────────────────────── */
  .sidenav {
    position: fixed;
    top: 0; left: 0;
    width: var(--nav-w);
    height: 100vh;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 32px 0;
    z-index: 100;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
  }

  .sidenav-logo {
    padding: 0 24px 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
  }
  .sidenav-logo .brand {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--text);
  }
  .sidenav-logo .role {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
  }

  .sidenav nav { flex: 1; padding: 0 16px; }
  .sidenav nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .2px;
    transition: all .2s;
    position: relative;
  }
  .sidenav nav a .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: all .2s;
  }
  .sidenav nav a:hover, .sidenav nav a.active {
    color: var(--text);
    background: var(--surface);
  }
  .sidenav nav a:hover .dot, .sidenav nav a.active .dot {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
  }
  .sidenav nav a.active { color: var(--accent); }

  .sidenav-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
  }
  .sidenav-footer a { color: var(--text-muted); text-decoration: none; }
  .sidenav-footer a:hover { color: var(--accent); }

  /* ── SIDENAV — force visible after GSAP entrance ── */
  /* Prevents contents disappearing on scroll/refresh  */
  .sidenav-logo,
  .sidenav nav a,
  .sidenav-footer {
    will-change: auto;
  }
  /* After animation completes GSAP clears inline styles;
     these ensure fallback visibility is always opaque */
  .sidenav { overflow: visible; }

  /* ── HAMBURGER ───────────────────────────────────── */
  .hamburger {
    display: none;
    position: fixed;
    top: 20px; right: 20px;
    z-index: 200;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
  }
  .hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s;
  }

  /* ── MAIN CONTENT ────────────────────────────────── */
  .main {
    margin-left: var(--nav-w);
    min-height: 100vh;
  }

  /* ── HERO ────────────────────────────────────────── */
  #hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 80px 80px 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
  }

  /* ── VIDEO HERO BG ───────────────────────────────── */
  .hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.08);
    animation: videoReveal 2s cubic-bezier(.4,0,.2,1) 0.3s forwards;
    will-change: transform, opacity;
  }

  @keyframes videoReveal {
    0%   { opacity: 0; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
  }

  /* Multi-layer overlay: bottom-to-top gradient + subtle vignette */
  .hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to right, rgba(10,10,10,.82) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.25) 100%),
      linear-gradient(to top,   rgba(10,10,10,.9)  0%, transparent 50%),
      radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.45) 100%);
    opacity: 0;
    animation: overlayFade 1.8s ease 0.5s forwards;
  }

  @keyframes overlayFade {
    to { opacity: 1; }
  }

  /* Accent colour tint strip at very bottom of hero */
  .hero-video-tint {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent3), var(--accent2));
    opacity: 0;
    animation: tintSlide 1s ease 1.8s forwards;
  }

  @keyframes tintSlide {
    from { transform: scaleX(0); transform-origin: left; opacity: 0; }
    to   { transform: scaleX(1); transform-origin: left; opacity: 1; }
  }

  /* Decorative grid lines */
  .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    z-index: 1;
  }

  /* Glowing orbs (keep subtle over video) */
  .hero-bg::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,240,77,.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 2;
  }
  .hero-bg::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126,184,255,.04) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
    z-index: 2;
  }
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }

  /* Mute button */
  .video-mute-btn {
    position: absolute;
    bottom: 28px; right: 28px;
    z-index: 10;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 16px;
    backdrop-filter: blur(8px);
    transition: all .2s;
    opacity: 0;
    animation: overlayFade 1s ease 2s forwards;
  }
  .video-mute-btn:hover {
    background: rgba(200,240,77,.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.08);
  }

  .hero-content { position: relative; max-width: 900px; }

  .hero-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px; height: 1px;
    background: var(--accent);
  }

  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(52px, 8vw, 108px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -3px;
    margin-bottom: 32px;
  }
  .hero-title em {
    font-style: italic;
    color: var(--gold);
  }
  .hero-title .line2 {
    display: block;
    -webkit-text-stroke: 1px rgba(240,237,232,.3);
    color: transparent;
  }

  .hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 48px;
    line-height: 1.75;
  }

  .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .25s;
    letter-spacing: .3px;
  }
  .btn-primary {
    background: var(--accent);
    color: #000;
  }
  .btn-primary:hover { background: #d4ff5a; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(200,240,77,.25); }
  .btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
  }
  .btn-outline:hover { border-color: rgba(255,255,255,.25); background: var(--surface); }

  .hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
  }
  .stat { }
  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
  }
  .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  /* ── SECTION WRAPPER ─────────────────────────────── */
  .section {
    padding: var(--section-pad) 80px;
    border-top: 1px solid var(--border);
    /* opacity/transform handled by GSAP */
  }

  .section-header {
    margin-bottom: 64px;
  }
  .section-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 120px;
  }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
  }
  .section-title em { font-style: italic; color: var(--gold); }
  .section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 540px;
    margin-top: 16px;
    line-height: 1.7;
  }

  /* ── ABOUT — see scroll-video section below ── */

  /* ── WORK / PROJECTS ─────────────────────────────── */
  .projects-list { display: flex; flex-direction: column; gap: 2px; }
  .project-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all .25s;
    position: relative;
  }
  .project-card::before {
    content: '';
    position: absolute;
    left: -80px; right: -80px;
    top: 0; bottom: 0;
    background: var(--surface);
    opacity: 0;
    transition: opacity .2s;
    z-index: -1;
  }
  .project-card:hover::before { opacity: 1; }
  .project-card:hover .project-arrow { transform: translate(4px,-4px); opacity: 1; }
  .project-num {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
  }
  .project-info { }
  .project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }
  .tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid;
  }
  .tag-green { color: var(--accent); border-color: rgba(200,240,77,.25); background: rgba(200,240,77,.06); }
  .tag-blue { color: var(--accent3); border-color: rgba(126,184,255,.25); background: rgba(126,184,255,.06); }
  .tag-orange { color: var(--accent2); border-color: rgba(255,107,53,.25); background: rgba(255,107,53,.06); }
  .tag-gold { color: var(--gold); border-color: rgba(212,175,107,.25); background: rgba(212,175,107,.06); }

  .project-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 6px;
  }
  .project-desc { font-size: 14px; color: var(--text-muted); }
  .project-arrow {
    font-size: 20px;
    color: var(--text-muted);
    opacity: 0;
    transition: all .2s;
    flex-shrink: 0;
  }

  /* ── EXPERIENCE — see scroll-video section ── */

  /* ── FEATURED ────────────────────────────────────── */
  #featured { background: var(--bg2); }
  .featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
  }
  .feat-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: background .2s;
    cursor: default;
    position: relative;
    overflow: hidden;
  }
  .feat-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,240,77,.04) 0%, transparent 70%);
    pointer-events: none;
  }
  .feat-card:hover { background: #1f1f1f; }
  .feat-card:first-child { border-radius: 12px 0 0 12px; }
  .feat-card:last-child { border-radius: 0 12px 12px 0; }
  .feat-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
  }
  .feat-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 12px;
    line-height: 1.2;
  }
  .feat-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; flex: 1; }
  .feat-link {
    margin-top: 24px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
  }
  .feat-link:hover { gap: 10px; }

  /* ── CONTACT ─────────────────────────────────────── */
  #contact {
    background: var(--bg);
    text-align: center;
    padding: 120px 80px;
  }
  .contact-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 24px;
  }
  .contact-title em { font-style: italic; color: var(--gold); }
  .contact-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
  }
  .contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-family: 'DM Mono', monospace;
    letter-spacing: .5px;
    transition: all .2s;
  }
  .contact-link:hover {
    color: var(--text);
    border-color: rgba(255,255,255,.2);
    background: var(--surface);
  }

  /* ── VOLCANO / CONTACT IMAGE ─────────────────────── */
  .volcano-wrapper {
    position: relative;
    width: min(600px, 90%);
    margin: 0 auto 48px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
      0 0 80px rgba(255, 100, 20, 0.25),
      0 0 160px rgba(255, 60, 0, 0.12),
      0 32px 80px rgba(0,0,0,0.6);
    animation: volcanoFloat 6s ease-in-out infinite;
  }

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

  .volcano-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    filter: saturate(1.3) brightness(1.05);
    animation: volcanoShake 8s ease-in-out infinite;
  }

  @keyframes volcanoShake {
    0%,100% { transform: scale(1) rotate(0deg); }
    25%     { transform: scale(1.008) rotate(0.15deg); }
    75%     { transform: scale(1.004) rotate(-0.1deg); }
  }

  /* Lava glow pulsing overlay */
  .volcano-glow {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 65%,
      rgba(255, 80, 0, 0.38) 0%,
      rgba(255, 140, 0, 0.18) 35%,
      transparent 65%
    );
    animation: glowPulse 2.2s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
  }

  @keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.04); }
  }

  /* Embers container */
  .embers-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 16px;
  }

  @keyframes emberFly {
    0%   { transform: translate(0, 0) scale(1); opacity: 1; }
    60%  { opacity: 0.9; }
    100% { transform: translate(var(--spread), calc(-1 * var(--rise))) scale(0.2); opacity: 0; }
  }

  /* Smoke puffs */
  .smoke-container {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    pointer-events: none;
    overflow: hidden;
  }

  .smoke-puff {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160,160,160,0.28) 0%, transparent 70%);
    animation: smokePuff linear infinite;
    transform-origin: center bottom;
  }
  .smoke-1 { width:90px;  height:90px;  left:44%; animation-duration:4s;   animation-delay:0s; }
  .smoke-2 { width:120px; height:120px; left:48%; animation-duration:5.5s; animation-delay:1.2s; }
  .smoke-3 { width:70px;  height:70px;  left:40%; animation-duration:3.8s; animation-delay:2.4s; }
  .smoke-4 { width:100px; height:100px; left:52%; animation-duration:6s;   animation-delay:0.8s; }

  @keyframes smokePuff {
    0%   { transform: translateY(0)   scale(0.3); opacity: 0; }
    15%  { opacity: 0.6; }
    70%  { opacity: 0.25; }
    100% { transform: translateY(-110px) scale(2.4); opacity: 0; }
  }

  /* Lava streaks */
  .lava-streaks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 16px;
  }

  .lava-streak {
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, rgba(255,160,0,0.9), rgba(255,60,0,0.6), transparent);
    border-radius: 2px;
    top: 45%;
    animation: lavaFlow ease-in infinite;
    opacity: 0;
    filter: blur(1px);
  }
  .lava-s1 { left: 43%; height: 80px;  animation-duration: 3.2s; animation-delay: 0s; }
  .lava-s2 { left: 50%; height: 60px;  animation-duration: 4s;   animation-delay: 1.5s; }
  .lava-s3 { left: 57%; height: 90px;  animation-duration: 2.8s; animation-delay: 0.9s; }

  @keyframes lavaFlow {
    0%   { opacity: 0;   transform: translateY(0)   scaleX(1); }
    10%  { opacity: 0.9; }
    70%  { opacity: 0.5; }
    100% { opacity: 0;   transform: translateY(70px) scaleX(0.6); }
  }

  /* Contact content sits above */
  .contact-content {
    position: relative;
    z-index: 2;
  }

  /* ── FOOTER ──────────────────────────────────────── */
  footer {
    padding: 32px 80px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: .5px;
  }

  /* ── SCROLL PROGRESS ─────────────────────────────── */
  .progress-bar {
    position: fixed;
    top: 0; left: var(--nav-w);
    right: 0; height: 2px;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 50;
    transition: transform .1s;
  }

  /* ── RESPONSIVE ──────────────────────────────────── */
  @media (max-width: 900px) {
    :root { --nav-w: 0px; }
    .sidenav { transform: translateX(-100%); width: 240px; }
    .sidenav.open { transform: none; }
    .hamburger { display: flex; }
    .main { margin-left: 0; }
    .progress-bar { left: 0; }
    #hero { padding: 80px 28px 60px; }
    .section { padding: 60px 28px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .featured-grid { grid-template-columns: 1fr; }
    .feat-card:first-child, .feat-card:last-child { border-radius: 0; }
    .featured-grid .feat-card:first-child { border-radius: 12px 12px 0 0; }
    .featured-grid .feat-card:last-child { border-radius: 0 0 12px 12px; }
    .hero-stats { gap: 28px; }
    footer { flex-direction: column; gap: 8px; text-align: center; padding: 24px 28px; }
    #contact { padding: 80px 28px; }
    .project-card { grid-template-columns: 48px 1fr 24px; gap: 16px; }
  }
  @media (max-width: 560px) {
    .skills-grid { grid-template-columns: 1fr; }
    .skill-card:first-child, .skill-card:nth-child(2),
    .skill-card:nth-last-child(2), .skill-card:last-child { border-radius: 0; }
    .skills-grid .skill-card:first-child { border-radius: 12px 12px 0 0; }
    .skills-grid .skill-card:last-child { border-radius: 0 0 12px 12px; }
    .hero-stats { flex-wrap: wrap; }
  }

  /* ── SCROLL-VIDEO ABOUT SECTION ─────────────────── */
  #about {
    background: var(--bg);
    position: relative;
    height: 420vh;          /* scroll distance */
    padding: 0;
    border-top: 1px solid var(--border);
  }

  .svs-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  /* LEFT — content pane */
  .svs-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 80px 80px;
    position: relative;
    z-index: 2;
  }

  /* Content panels — stacked, will be animated */
  .svs-panel {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 80px 80px;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
  }
  .svs-panel.p-intro    { }
  .svs-panel.p-text     { }
  .svs-panel.p-skills   { }

  .svs-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .svs-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 80px;
  }
  .svs-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
  }
  .svs-title em { font-style: italic; color: var(--gold); }

  .svs-body p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 18px;
    font-size: 16px;
    will-change: transform, opacity;
  }
  .svs-body p strong { color: var(--text); font-weight: 500; }

  /* Skills in the third panel */
  .svs-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin-top: 8px;
  }
  .svs-skill-card {
    background: var(--surface);
    padding: 18px 20px;
    will-change: transform, opacity;
  }
  .svs-skill-card:first-child  { border-radius: 10px 0 0 0; }
  .svs-skill-card:nth-child(2) { border-radius: 0 10px 0 0; }
  .svs-skill-card:nth-last-child(2) { border-radius: 0 0 0 10px; }
  .svs-skill-card:last-child   { border-radius: 0 0 10px 0; }
  .svs-skill-icon  { font-size: 20px; margin-bottom: 8px; }
  .svs-skill-name  { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
  .svs-skill-desc  { font-size: 11px; color: var(--text-muted); font-family: 'DM Mono', monospace; }

  /* Progress dots */
  .svs-progress {
    position: absolute;
    bottom: 40px;
    left: 80px;
    display: flex;
    gap: 8px;
    z-index: 10;
  }
  .svs-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s, transform 0.3s;
  }
  .svs-dot.active {
    background: var(--accent);
    transform: scale(1.4);
  }

  /* RIGHT — video pane */
  .svs-right {
    position: relative;
    overflow: hidden;
    background: #000;
  }

  .svs-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 18%);
    z-index: 2;
    pointer-events: none;
  }

  #scrollVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
  }

  /* Scroll hint */
  .svs-scroll-hint {
    position: absolute;
    bottom: 36px;
    right: 36px;
    z-index: 10;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  /* Progress bar on the right side */
  .svs-vbar {
    position: absolute;
    right: 0; top: 0;
    width: 2px;
    background: var(--accent);
    transform-origin: top;
    transform: scaleY(0);
    z-index: 10;
    height: 100%;
  }

  /* Responsive */
  @media (max-width: 900px) {
    #about { height: 550vh; }
    .svs-sticky { grid-template-columns: 1fr; grid-template-rows: 50vh 50vh; }
    .svs-panel { padding: 40px 28px; }
    .svs-left  { padding: 40px 28px; }
    .svs-progress { left: 28px; bottom: 16px; }
  }


  /* ── SCROLL-VIDEO PROJECTS SECTION ──────────────── */
  #work {
    background: var(--bg);
    position: relative;
    height: 550vh;
    padding: 0;
    border-top: 1px solid var(--border);
  }

  .pvs-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  /* LEFT — video pane (flipped vs about section) */
  .pvs-left {
    position: relative;
    overflow: hidden;
    background: #000;
  }

  .pvs-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 18%);
    z-index: 2;
    pointer-events: none;
  }

  #projVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
  }

  .pvs-vbar {
    position: absolute;
    left: 0; top: 0;
    width: 2px;
    background: var(--accent);
    transform-origin: top;
    transform: scaleY(0);
    z-index: 10;
    height: 100%;
  }

  /* RIGHT — content panels */
  .pvs-right {
    position: relative;
    overflow: hidden;
  }

  .pvs-panel {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 80px 80px 64px;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
  }

  .pvs-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .pvs-label::before {
    content: '';
    height: 1px;
    width: 32px;
    background: var(--border);
  }

  .pvs-num {
    font-family: 'DM Mono', monospace;
    font-size: 72px;
    font-weight: 300;
    color: rgba(255,255,255,0.04);
    line-height: 1;
    margin-bottom: -16px;
    letter-spacing: -4px;
  }

  .pvs-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 16px;
  }

  .pvs-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .pvs-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 28px;
  }

  .pvs-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.5px;
    width: fit-content;
    border-bottom: 1px solid rgba(200,240,77,0.3);
    padding-bottom: 2px;
    transition: gap 0.2s;
  }
  .pvs-link:hover { gap: 12px; }

  /* Counter in top-right of right pane */
  .pvs-counter {
    position: absolute;
    top: 40px; right: 80px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    z-index: 10;
  }
  .pvs-counter span { color: var(--accent); }

  /* Progress dots */
  .pvs-dots {
    position: absolute;
    bottom: 40px; right: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
  }
  .pvs-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s, transform 0.3s;
    align-self: flex-end;
  }
  .pvs-dot.active {
    background: var(--accent);
    transform: scale(1.5);
  }

  /* Section intro panel */
  .pvs-intro-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
  }
  .pvs-intro-title em { font-style: italic; color: var(--gold); }

  @media (max-width: 900px) {
    #work { height: 650vh; }
    .pvs-sticky { grid-template-columns: 1fr; grid-template-rows: 50vh 50vh; }
    .pvs-panel { padding: 40px 28px; }
    .pvs-counter, .pvs-dots { right: 28px; }
    .pvs-dots { bottom: 16px; }
  }


  /* ── EXPERIENCE SCROLL-VIDEO SECTION ─────────────── */
  #experience {
    position: relative;
    height: 550vh;
    padding: 0;
    background: #000;
    border-top: 1px solid var(--border);
  }

  .evs-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }

  /* Full-bleed background video */
  #expVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
    transform-origin: center center;
  }

  /* Layered overlay — keeps text readable */
  .evs-overlay {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 100%),
      linear-gradient(to bottom, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.2) 40%, rgba(10,10,10,0.85) 100%);
    z-index: 1;
  }

  /* Accent tint strip at top */
  .evs-tint {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
    transform-origin: left;
    z-index: 10;
  }

  /* Center content area */
  .evs-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  /* Header — always visible, fades on scroll */
  .evs-header {
    text-align: center;
    margin-bottom: 56px;
    will-change: transform, opacity;
  }
  .evs-header-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
  }
  .evs-header-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 4px 40px rgba(0,0,0,0.6);
  }
  .evs-header-title em { font-style: italic; color: var(--gold); }

  /* Timeline entries — each slides inward */
  .evs-entry {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
  }

  .evs-card {
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    align-items: center;
    gap: 0;
    width: min(860px, 90vw);
  }

  /* Left side of card — period + company */
  .evs-card-left {
    text-align: right;
    padding-right: 32px;
    will-change: transform, opacity;
  }
  .evs-period {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .evs-company {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    letter-spacing: 0.3px;
  }

  /* Center spine */
  .evs-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .evs-spine-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(200,240,77,0.18), 0 0 24px rgba(200,240,77,0.4);
    flex-shrink: 0;
    z-index: 2;
  }
  .evs-spine-line-top,
  .evs-spine-line-bot {
    width: 1px;
    background: rgba(255,255,255,0.12);
    flex: 1;
    min-height: 40px;
  }

  /* Right side of card — role + description */
  .evs-card-right {
    padding-left: 32px;
    will-change: transform, opacity;
  }
  .evs-role {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  }
  .evs-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    max-width: 340px;
  }

  /* Step counter */
  .evs-counter {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .evs-counter-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s, transform 0.3s;
  }
  .evs-counter-dot.active {
    background: var(--accent);
    transform: scale(1.6);
  }

  /* Scroll progress bar at bottom */
  .evs-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 10;
    width: 100%;
  }

  /* Scroll hint */
  .evs-hint {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    writing-mode: vertical-rl;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
  }

  @media (max-width: 768px) {
    .evs-card { grid-template-columns: 1fr; gap: 16px; }
    .evs-card-left { text-align: left; padding-right: 0; }
    .evs-card-right { padding-left: 0; }
    .evs-spine { display: none; }
    .evs-header-title { font-size: 42px; }
  }

  /* CSS - Add this to your stylesheet */

.profile-flip-card {
  width: 220px;           /* Change size as needed */
  height: 220px;
  perspective: 1000px;    /* Creates 3D space */
  margin: 40px auto;
}

.profile-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  border-radius: 50%;     /* Makes it circular */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.profile-flip-card:hover .profile-flip-card-inner {
  transform: rotateY(180deg);   /* Flip on hover */
}

.profile-flip-card-front,
.profile-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden;
}

.profile-flip-card-front {
  background:transparent;
}

.profile-flip-card-back {
  transform: rotateY(180deg);   /* Back side starts flipped */
}

.profile-flip-card-front img,
.profile-flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Optional: Add a nice border */
.profile-flip-card-front,
.profile-flip-card-back {
  border: 2px solid #ffffff;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}