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

    :root {
      --bg: #000113;
      --bg-alt: #000113;
      --white: #ffffff;
      --green: #00b7ff;
      --green-glow: rgba(36, 110, 255, 0.14);
      --dim: rgba(255, 255, 255, 0.22);
      --border: rgba(255, 255, 255, 0.07);
      --section-content-top: 210px;
      --mono: 'Share Tech Mono', monospace;
      --display: 'Bebas Neue', cursive;
      --body: 'Barlow', sans-serif;
    }

    html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--white); }

    /* Subtle global scanline */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px);
      pointer-events: none;
      z-index: 9999;
    }

    /* ── SCROLL CONTAINER ─────────────────────── */
    #sc {
      height: 100vh;
      overflow-y: scroll;
      scroll-snap-type: y mandatory;
      scrollbar-width: none;
    }
    #sc::-webkit-scrollbar { display: none; }

    /* ── SLIDES ───────────────────────────────── */
    .slide {
      height: 100vh;
      width: 100%;
      scroll-snap-align: start;
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
    }

    /* ── FIXED OVERLAY ────────────────────────── */
    #overlay {
      position: fixed;
      inset: 0;
      z-index: 500;
      pointer-events: none;
    }

    /* Top-left system text */
    #tl {
      position: absolute;
      top: 28px;
      left: 40px;
      font-family: var(--mono);
      font-size: 10px;
      line-height: 1.75;
      letter-spacing: 0.06em;
      color: var(--green);
      transition: color 0.6s ease;
    }

    /* Top-right status */
    #tr {
      position: absolute;
      top: 28px;
      right: 40px;
      font-family: var(--mono);
      font-size: 10px;
      color: var(--dim);
      display: flex;
      align-items: center;
      gap: 18px;
      letter-spacing: 0.06em;
    }

    .blink-dot {
      display: inline-block;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #39ff14;
      margin-right: 6px;
      animation: blink 2s ease-in-out infinite;
    }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.15} }

    /* Right navigation */
    #rnav {
      position: absolute;
      right: 40px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      pointer-events: all;
    }

    .rnav-meta {
      font-family: var(--mono);
      font-size: 9px;
      color: rgba(255,255,255,0.18);
      text-align: right;
      line-height: 1.9;
      letter-spacing: 0.05em;
      margin-bottom: 26px;
    }

    .rnav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 0;
      cursor: pointer;
      user-select: none;
    }

    .rnav-label {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.16em;
      color: rgba(255,255,255,0.22);
      transition: color 0.35s ease;
    }

    .rnav-bar-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
    }

    .rnav-bar {
      width: 2px;
      height: 0;
      background: var(--green);
      transition: height 0.45s cubic-bezier(0.16,1,0.3,1);
    }

    .rnav-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--green);
      opacity: 0;
      transition: opacity 0.35s ease;
    }

    .rnav-item.on .rnav-label { color: var(--white); }
    .rnav-item.on .rnav-bar   { height: 22px; }
    .rnav-item.on .rnav-dot   { opacity: 1; }

    /* Bottom progress */
    #bprog {
      position: absolute;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .bprog-row {
      display: flex;
      align-items: center;
      gap: 13px;
    }

    .bprog-n {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--dim);
    }

    .bprog-track {
      width: 210px;
      height: 1px;
      background: rgba(255,255,255,0.1);
      position: relative;
    }

    .bprog-fill {
      position: absolute;
      inset: 0;
      background: rgba(255,255,255,0.55);
      width: 0;
      transition: width 0.75s cubic-bezier(0.4,0,0.2,1);
    }

    .bprog-label {
      font-family: var(--mono);
      font-size: 9px;
      color: var(--green);
      letter-spacing: 0.13em;
    }

    /* Bottom-left sys */
    #br {
      position: absolute;
      bottom: 28px;
      left: 40px;
      font-family: var(--mono);
      font-size: 8px;
      color: rgba(255,255,255,0.14);
      text-align: left;
      line-height: 1.9;
      letter-spacing: 0.05em;
    }

    /* ── SECTION HEADER (consistent position per slide) ── */
    .sec-head {
      position: absolute;
      top: 72px;
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
      z-index: 10;
      white-space: nowrap;
    }

    .sec-tag {
      font-family: var(--mono);
      font-size: 10px;
      color: var(--green);
      letter-spacing: 0.13em;
      margin-bottom: 4px;
    }

    .sec-title {
      font-family: var(--display);
      font-size: clamp(62px, 8vw, 108px);
      font-weight: 700;
      letter-spacing: 0.04em;
      line-height: 0.93;
    }

    /* ── ENTRANCE ANIMATIONS ───────────────────── */
    .anim {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16,1,0.3,1);
    }
    .slide.on .anim { opacity: 1; transform: translateY(0); }
    .slide.on .anim:nth-child(2) { transition-delay: 0.1s; }
    .slide.on .anim:nth-child(3) { transition-delay: 0.2s; }
    .slide.on .anim:nth-child(4) { transition-delay: 0.3s; }
    .slide.on .anim:nth-child(5) { transition-delay: 0.4s; }

    /* ═══════════════════════════════════════════
       HERO
    ═══════════════════════════════════════════ */
    #hero { background: var(--bg); }

    /* Grid texture */
    #hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
      background-size: 90px 90px;
    }

    /* Hero glow blob */
    #hero::after {
      content: '';
      position: absolute;
      width: 700px;
      height: 700px;
      border-radius: 50%;
      background: radial-gradient(circle, var(--green-glow) 0%, transparent 65%);
      top: 50%;
      left: 38%;
      transform: translate(-50%, -50%);
    }

    .hero-body { text-align: center; position: relative; z-index: 2; }

    .hero-title {
      font-family: var(--display);
      font-size: clamp(58px, 8.8vw, 130px);
      line-height: 0.9;
      letter-spacing: 0.025em;
      display: flex;
      gap: 0.2em;
      align-items: baseline;
      margin-bottom: 50px;
    }

    .hw {
      font-family: var(--display);
      font-weight: 700;
      display: inline-block;
      opacity: 0;
      transform: translateY(38px) skewX(-1.5deg);
    }
    .hw.g { color: var(--green); }
    .hw1 { animation: wi 0.9s cubic-bezier(0.16,1,0.3,1) 0.35s forwards; }
    .hw2 { animation: wi 0.9s cubic-bezier(0.16,1,0.3,1) 0.58s forwards; }
    .hw3 { animation: wi 0.9s cubic-bezier(0.16,1,0.3,1) 0.81s forwards; }
    @keyframes wi { to { opacity: 1; transform: translateY(0) skewX(0deg); } }

    .hero-sub {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.22em;
      color: var(--dim);
      margin-bottom: 44px;
      opacity: 0;
      animation: fi 0.6s ease 1.35s forwards;
    }

    .hero-btn {
      display: inline-block;
      border: 1px solid rgba(255,255,255,0.45);
      border-radius: 5px;
      padding: 14px 50px;
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.22em;
      color: var(--white);
      background: transparent;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: color 0.3s ease;
      opacity: 0;
      animation: fi 0.6s ease 1.58s forwards;
    }

    .hero-btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--white);
      transform: translateX(-101%);
      transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
      z-index: 0;
    }
    .hero-btn span { position: relative; z-index: 1; }
    .hero-btn:hover::before { transform: translateX(0); }
    .hero-btn:hover { color: #000; }

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

    /* Hero decorative vertical labels */
    .hero-deco {
      position: absolute;
      right: 130px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      opacity: 0;
      animation: fi 1s ease 1.9s forwards;
      pointer-events: none;
    }

    .hero-deco-word {
      font-family: var(--display);
      font-size: 90px;
      line-height: 1;
      color: rgba(255,255,255,0.025);
      writing-mode: vertical-rl;
      letter-spacing: 0.04em;
    }

    /* ═══════════════════════════════════════════
       ABOUT
    ═══════════════════════════════════════════ */
    #about { background: var(--bg); align-items: flex-start; }

    #about::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 55% 65% at 50% 65%, rgba(36, 110, 255, 0.14) 0%, transparent 100%);
    }

    .about-inner {
      width: 100%;
      max-width: 1040px;
      padding: var(--section-content-top) 60px 70px;
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 40px;
      position: relative;
      z-index: 5;
    }

    .about-right {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .about-frame {
      width: 220px;
      height: 260px;
      background: #060b2b;
      border: none;
      position: relative;
      flex-shrink: 0;
      overflow: hidden;
    }

    .about-frame::before, .about-frame::after {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      z-index: 3;
    }
    .about-frame::before { top: 0; left: 0; border-top: 2px solid var(--green); border-left: 2px solid var(--green); }
    .about-frame::after  { bottom: 0; right: 0; border-bottom: 2px solid var(--green); border-right: 2px solid var(--green); }

    .about-frame-bg {
      width: 100%;
      height: 100%;
      background: linear-gradient(145deg, #050a26 0%, #0b1440 55%, #060b2b 100%);
    }

    .about-photo {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .about-uid {
      position: absolute;
      bottom: 8px;
      right: 8px;
      font-family: var(--mono);
      font-size: 8px;
      background: var(--green);
      color: #000;
      padding: 3px 8px;
      letter-spacing: 0.06em;
      z-index: 4;
    }

    .about-bio {
      font-family: var(--body);
      font-size: 15px;
      font-weight: 300;
      line-height: 1.7;
      color: rgba(255,255,255,0.72);
      margin-bottom: 22px;
    }
    .about-bio strong { font-weight: 700; color: var(--white); }

    .about-btn {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.18em;
      padding: 11px 28px;
      border: 1px solid rgba(255,255,255,0.3);
      border-radius: 4px;
      background: transparent;
      color: var(--white);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: fit-content;
      max-width: 100%;
      align-self: center;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .about-btn:hover { background: var(--white); color: #000; }
    .about-btn-icon { color: var(--green); line-height: 1; }

    /* ── PIP-BOY PANEL ─────────────────────── */
    .pip-panel {
      flex: 1;
      border: 1px solid rgba(0, 183, 255, 0.28);
      background: rgba(0, 10, 40, 0.55);
      display: flex;
      flex-direction: column;
      min-height: 260px;
      position: relative;
      overflow: hidden;
    }

    /* Corner brackets on the pip panel */
    .pip-panel::before,
    .pip-panel::after {
      content: '';
      position: absolute;
      width: 14px; height: 14px;
      z-index: 2;
      pointer-events: none;
    }
    .pip-panel::before { top: 0; left: 0; border-top: 1px solid var(--green); border-left: 1px solid var(--green); }
    .pip-panel::after  { bottom: 0; right: 0; border-bottom: 1px solid var(--green); border-right: 1px solid var(--green); }

    .pip-topbar {
      display: flex;
      border-bottom: 1px solid rgba(0, 183, 255, 0.2);
      background: rgba(0, 183, 255, 0.04);
    }

    .pip-tab {
      flex: 1;
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.15em;
      padding: 9px 4px;
      background: transparent;
      border: none;
      border-right: 1px solid rgba(0, 183, 255, 0.15);
      color: rgba(255,255,255,0.3);
      cursor: pointer;
      transition: color 0.2s, background 0.2s;
    }
    .pip-tab:last-child { border-right: none; }
    .pip-tab:hover { color: rgba(255,255,255,0.7); background: rgba(0, 183, 255, 0.06); }
    .pip-tab.on { color: var(--green); background: rgba(0, 183, 255, 0.1); border-bottom: 2px solid var(--green); margin-bottom: -1px; }

    .pip-subbar {
      font-family: var(--mono);
      font-size: 9px;
      letter-spacing: 0.1em;
      color: var(--green);
      padding: 6px 14px;
      border-bottom: 1px solid rgba(0, 183, 255, 0.12);
      background: rgba(0,183,255,0.03);
      opacity: 0.75;
    }

    .pip-content {
      display: none;
      padding: 16px 18px 18px;
      flex: 1;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(0,183,255,0.2) transparent;
    }
    .pip-content.on { display: flex; flex-direction: column; gap: 14px; }

    /* Skills tab */
    .pip-skill-cat { display: flex; flex-direction: column; gap: 7px; }

    .pip-cat-label {
      font-family: var(--mono);
      font-size: 8px;
      letter-spacing: 0.13em;
      color: var(--green);
      opacity: 0.7;
    }

    .pip-badges { display: flex; flex-wrap: wrap; gap: 5px; }

    .pip-badge {
      font-family: var(--mono);
      font-size: 8.5px;
      letter-spacing: 0.07em;
      padding: 4px 10px;
      border: 1px solid rgba(0,183,255,0.3);
      color: rgba(255,255,255,0.65);
      background: rgba(0,183,255,0.06);
      transition: border-color 0.2s, color 0.2s;
    }
    .pip-badge:hover { border-color: var(--green); color: var(--white); }

    /* Stats tab */
    .pip-content#pip-stats { gap: 11px; }

    .pip-stat-row {
      display: grid;
      grid-template-columns: 130px 1fr 28px;
      align-items: center;
      gap: 10px;
    }

    .pip-stat-lbl {
      font-family: var(--mono);
      font-size: 8.5px;
      letter-spacing: 0.07em;
      color: rgba(255,255,255,0.5);
      white-space: nowrap;
    }

    .pip-stat-track {
      height: 4px;
      background: rgba(255,255,255,0.07);
      position: relative;
      border-radius: 0;
    }

    .pip-stat-fill {
      position: absolute;
      top: 0; left: 0; bottom: 0;
      background: var(--green);
      width: 0;
      transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 0 6px rgba(0,183,255,0.5);
    }

    .pip-stat-val {
      font-family: var(--mono);
      font-size: 9px;
      color: var(--green);
      text-align: right;
    }

    /* Interests tab */
    .int-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      width: 100%;
    }

    .int-card {
      border: 1px solid rgba(0,183,255,0.18);
      background: rgba(0,183,255,0.04);
      padding: 12px 14px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      transition: border-color 0.25s, background 0.25s;
    }
    .int-card:hover { border-color: rgba(0,183,255,0.45); background: rgba(0,183,255,0.09); }

    .int-icon {
      font-size: 18px;
      color: var(--green);
      margin-bottom: 4px;
      line-height: 1;
    }

    .int-name {
      font-family: var(--mono);
      font-size: 9.5px;
      letter-spacing: 0.12em;
      color: var(--white);
    }

    .int-sub {
      font-family: var(--body);
      font-size: 11px;
      font-weight: 300;
      color: rgba(255,255,255,0.4);
      line-height: 1.4;
    }

    /* ═══════════════════════════════════════════
       EXPERIENCE
    ═══════════════════════════════════════════ */
    #experience { background: var(--bg); align-items: flex-start; }

    .exp-wrap {
      width: 100%;
      max-width: 960px;
      padding: var(--section-content-top) 60px 70px;
      z-index: 5;
      position: relative;
    }

    .exp-grid {
      display: grid;
      grid-template-columns: 230px 1fr;
      border: 1px solid var(--border);
      background: rgba(0, 6, 30, 0.45);
    }

    .exp-sidebar {
      border-right: 1px solid var(--border);
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.18) transparent;
    }

    .exp-job {
      padding: 17px 20px;
      border-bottom: 1px solid var(--border);
      border-left: 2px solid transparent;
      cursor: pointer;
      transition: background 0.2s ease, border-left-color 0.25s ease;
    }

    .exp-job:hover { background: rgba(255,255,255,0.02); }
    .exp-job.on { background: rgba(36,110,255,0.16); border-left-color: var(--green); }

    .exp-job-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .exp-job-tag {
      font-family: var(--mono);
      font-size: 8px;
      color: var(--green);
      letter-spacing: 0.1em;
      margin-bottom: 5px;
    }

    .exp-job-name {
      font-family: var(--display);
      font-size: 14px;
      letter-spacing: 0.06em;
      color: var(--white);
      margin-bottom: 7px;
    }

    .exp-job-st {
      font-family: var(--mono);
      font-size: 8px;
      color: var(--dim);
      display: flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 5px;
    }

    .exp-job-period {
      font-family: var(--mono);
      font-size: 8px;
      color: rgba(255,255,255,0.38);
      letter-spacing: 0.08em;
    }

    .sdot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--dim);
      flex-shrink: 0;
    }
    .sdot.live { background: #39ff14; }

    .exp-job-chevron { display: none; }
    .exp-acc-body { display: none; }

    .exp-panel {
      padding: 26px 32px;
      display: none;
    }
    .exp-panel.on { display: block; }

    .exp-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 20px;
      margin-bottom: 14px;
    }

    .exp-header-left {
      flex: 1;
    }

    .exp-header-right {
      flex-shrink: 0;
    }

    .exp-dep-lbl {
      font-family: var(--mono);
      font-size: 8px;
      color: var(--dim);
      letter-spacing: 0.1em;
      margin-bottom: 8px;
    }

    .exp-period {
      font-family: var(--display);
      font-size: 36px;
      letter-spacing: 0.02em;
      line-height: 1;
      margin-bottom: 0;
    }

    .exp-logo {
      max-width: 100px;
      max-height: 100px;
      height: auto;
      width: auto;
      object-fit: contain;
      opacity: 0.9;
      border: 1px solid var(--border);
      padding: 4px;
      background: rgba(255,255,255,0.02);
    }

    .exp-accent {
      width: 54px;
      height: 4px;
      background: var(--green);
      margin-bottom: 14px;
    }

    .exp-obj-lbl {
      font-family: var(--mono);
      font-size: 8px;
      color: var(--dim);
      letter-spacing: 0.1em;
      margin-bottom: 10px;
    }

    .exp-obj {
      display: grid;
      grid-template-columns: 26px 1fr;
      gap: 8px;
      margin-bottom: 10px;
    }

    .exp-obj-n {
      font-family: var(--mono);
      font-size: 9px;
      color: var(--green);
      letter-spacing: 0.08em;
      margin-top: 2px;
    }

    .exp-obj-t {
      font-family: var(--body);
      font-size: 14px;
      font-weight: 300;
      line-height: 1.5;
      color: rgba(255,255,255,0.74);
    }

    .exp-tags {
      margin-top: 14px;
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .exp-tag {
      font-family: var(--mono);
      font-size: 9px;
      letter-spacing: 0.09em;
      padding: 6px 12px;
      border: 1px solid var(--border);
      color: rgba(255,255,255,0.72);
      background: rgba(255,255,255,0.02);
    }

    /* ═══════════════════════════════════════════
       PROJECTS
    ═══════════════════════════════════════════ */
    #projects { background: var(--bg); align-items: flex-start; }

    .proj-wrap {
      width: 100%;
      max-width: 1120px;
      padding: var(--section-content-top) 60px 70px;
      z-index: 5;
      position: relative;
    }

    .proj-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      align-items: stretch;
      align-content: start;
      max-height: calc(100dvh - var(--section-content-top) - 38px);
      overflow-y: auto;
      overscroll-behavior: contain;
      padding-right: 6px;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.2) transparent;
    }

    .proj-card {
      border: 1px solid var(--border);
      background: rgba(0, 6, 30, 0.45);
      display: flex;
      flex-direction: column;
      min-height: 420px;
      transition: border-color 0.2s ease, transform 0.2s ease;
    }

    .proj-card:hover {
      border-color: rgba(255,255,255,0.2);
      transform: translateY(-2px);
    }

    .proj-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
    }

    .proj-idx {
      font-family: var(--mono);
      font-size: 10px;
      color: rgba(255,255,255,0.78);
      letter-spacing: 0.09em;
    }

    .proj-ico {
      font-size: 14px;
      color: var(--green);
      line-height: 1;
    }

    .proj-img-wrap {
      height: 170px;
      border-bottom: 1px solid var(--border);
      padding: 12px;
    }

    .proj-img-inner {
      width: 100%;
      height: 100%;
      border: 1px solid rgba(255,255,255,0.14);
      display: grid;
      place-items: center;
      background:
        radial-gradient(circle at 16% 14%, rgba(0, 183, 255, 0.2), transparent 45%),
        linear-gradient(160deg, rgba(0, 10, 40, 0.9), rgba(0, 3, 18, 0.95));
      position: relative;
      overflow: hidden;
    }

    .proj-img-inner::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 2, 12, 0.72) 0%, rgba(0, 2, 12, 0.2) 35%, rgba(0, 2, 12, 0.05) 100%);
      pointer-events: none;
      z-index: 2;
    }

    .proj-preview-img,
    .proj-preview-fallback,
    .proj-preview-host {
      width: 100%;
      height: 100%;
      position: relative;
      z-index: 1;
    }

    .proj-preview-img {
      object-fit: cover;
      object-position: top center;
      filter: saturate(0.78) contrast(1.06) brightness(0.82);
      transform: scale(1.02);
      transition: transform 0.35s ease, filter 0.35s ease;
    }

    .proj-card:hover .proj-preview-img {
      transform: scale(1.07);
      filter: saturate(0.88) contrast(1.08) brightness(0.88);
    }

    .proj-preview-fallback {
      padding: 14px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      gap: 8px;
      background: linear-gradient(140deg, rgba(0, 183, 255, 0.08), rgba(0, 12, 38, 0.9));
    }

    .proj-preview-title {
      font-family: var(--display);
      font-size: 18px;
      line-height: 1;
      letter-spacing: 0.05em;
      color: var(--green);
    }

    .proj-preview-desc {
      font-family: var(--mono);
      font-size: 10px;
      line-height: 1.5;
      letter-spacing: 0.03em;
      color: rgba(255,255,255,0.72);
    }

    .proj-preview-host {
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.08em;
      color: rgba(255,255,255,0.7);
    }

    .proj-img-ph {
      font-family: var(--mono);
      font-size: 10px;
      color: rgba(255,255,255,0.38);
      letter-spacing: 0.08em;
    }

    .proj-body {
      padding: 14px 14px 18px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex: 1;
    }

    .proj-title {
      font-family: var(--display);
      font-size: 18px;
      letter-spacing: 0.04em;
      color: var(--white);
    }

    .proj-desc {
      font-family: var(--body);
      font-size: 13px;
      line-height: 1.55;
      color: rgba(255,255,255,0.7);
      flex: 1;
    }

    .proj-link {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.12em;
      color: var(--green);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    @media (min-width: 901px) {
      .hero-body,
      .about-inner,
      .exp-wrap,
      .proj-wrap {
        transform: translateX(-24px);
      }
    }

    #social-dock {
      position: absolute;
      right: 40px;
      bottom: 28px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      pointer-events: all;
    }

    .social-link {
      width: 34px;
      height: 34px;
      color: var(--white);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s ease, opacity 0.2s ease;
      opacity: 0.75;
    }
    .social-link:hover { color: var(--green); opacity: 1; }

    .social-svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
      display: block;
    }

    @media (max-width: 1100px) {
      :root { --section-content-top: 190px; }

      #tl { left: 24px; top: 20px; }
      #tr { right: 24px; top: 20px; }
      #rnav { right: 24px; }
      #social-dock { right: 24px; bottom: 20px; }
      #br { left: 24px; bottom: 20px; }

      .about-inner,
      .exp-wrap,
      .proj-wrap {
        padding-left: 32px;
        padding-right: 32px;
        padding-bottom: 56px;
      }

      .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 900px) {
      :root { --section-content-top: 160px; }

      #sc { scroll-snap-type: y proximity; }

      .slide {
        min-height: 100dvh;
        height: auto;
      }

      .sec-head { top: 50px; }

      .hero-title {
        font-size: clamp(42px, 11vw, 88px);
        flex-wrap: wrap;
        justify-content: center;
      }
      .hero-body { padding: 0 22px; }

      /* About: stack photo above pip panel */
      .about-inner {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: var(--section-content-top) 20px 56px;
      }

      .about-frame {
        width: 160px;
        height: 190px;
      }

      .pip-panel {
        width: 100%;
        max-width: 480px;
      }

      .about-right {
        width: 100%;
        max-width: 480px;
      }

      /* Experience: switch to accordion */
      .exp-wrap,
      .proj-wrap {
        padding: var(--section-content-top) 16px 72px;
      }

      .exp-grid {
        grid-template-columns: 1fr;
        border-left: none;
        border-right: none;
      }

      /* On mobile, the sidebar is full width, panels are hidden */
      .exp-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

      /* Hide desktop panels */
      .exp-panel { display: none !important; }

      /* Show accordion controls */
      .exp-job-chevron {
        display: block;
        opacity: 0.6;
      }

      .exp-job.on .exp-job-chevron,
      .exp-job.acc-open .exp-job-chevron {
        transform: rotate(180deg);
        opacity: 1;
      }

      /* Accordion body */
      .exp-acc-body {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s cubic-bezier(0.16,1,0.3,1);
        overflow: hidden;
      }

      .exp-acc-inner {
        overflow: hidden;
        padding: 0;
        transition: padding 0.3s ease;
      }

      .exp-job.acc-open .exp-acc-body {
        grid-template-rows: 1fr;
      }

      .exp-job.acc-open .exp-acc-inner {
        padding: 16px 4px 18px;
      }

      /* On mobile highlight uses border-top instead of border-left */
      .exp-job {
        border-left-width: 0;
        border-top: 2px solid transparent;
        border-bottom: 1px solid var(--border);
      }
      .exp-job.on,
      .exp-job.acc-open {
        background: rgba(36,110,255,0.1);
        border-top-color: var(--green);
      }

      .exp-period { font-size: 26px; }
      .exp-obj-t { font-size: 12px; }

      /* Projects: single column on mobile */
      .proj-grid {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .proj-img-wrap { height: 180px; }
      .proj-body { padding: 14px 14px 18px; }
      .proj-title { font-size: 16px; }
      .proj-desc { font-size: 12px; }
    }

    @media (max-width: 640px) {
      :root { --section-content-top: 140px; }

      #tl,
      #tr { font-size: 9px; }

      #tl { left: 14px; top: 14px; }
      #tr { right: 14px; top: 14px; gap: 10px; }

      #social-dock {
        right: 14px;
        bottom: 14px;
        gap: 8px;
      }

      .social-link { width: 30px; height: 30px; }
      .social-svg  { width: 17px; height: 17px; }

      #bprog,
      #br { display: none; }

      #rnav {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 14px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 14px;
      }

      .rnav-meta { display: none; }
      .rnav-item { padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
      .rnav-label { font-size: 9px; letter-spacing: 0.1em; }
      .rnav-bar-wrap {
        flex-direction: row;
        align-items: center;
        gap: 0;
      }
      .rnav-bar {
        width: 0;
        height: 2px;
        transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
      }
      .rnav-dot { display: none; }
      .rnav-item.on .rnav-bar {
        width: 12px;
        height: 2px;
      }

      .sec-head { top: 38px; }
      .sec-title { font-size: clamp(42px, 6vw, 72px); }

      /* Pip-Boy: smaller tab text */
      .pip-tab { font-size: 9px; padding: 8px 2px; letter-spacing: 0.08em; }
      .pip-stat-row { grid-template-columns: 100px 1fr 24px; }
      .pip-stat-lbl { font-size: 8px; }

      /* Interests: 2 col but more compact */
      .int-grid { gap: 6px; }
      .int-card { padding: 10px 10px; }
      .int-name { font-size: 9px; }
      .int-sub  { font-size: 10px; }

      /* About frame even smaller on very small screens */
      .about-frame { width: 130px; height: 155px; }
    }



