:root {
      --red: #E63946;
      --red-glow: rgba(230, 57, 70, 0.25);
      --red-deep: #b02430;
      --bg: #08080E;
      --bg2: #0F0F18;
      --bg3: #13131F;
      --surface: #1A1A28;
      --border: rgba(255, 255, 255, 0.07);
      --border-red: rgba(230, 57, 70, 0.3);
      --text: #F0EEF8;
      --muted: #7A7890;
      --subtle: #3A3850;
      --font-display: 'Syne', sans-serif;
      --font-mono: 'DM Mono', monospace;
      --teal: #2EC4B6;
      --teal-glow: rgba(46, 196, 182, 0.25);
    }

    .light-mode {
      --bg: #FFFFFF;
      --bg2: #F8F8FB;
      --bg3: #F0F0F8;
      --surface: #FFFFFF;
      --border: rgba(0, 0, 0, 0.08);
      --text: #08080E;
      --muted: #5A5870;
      --subtle: #9A98B0;
      --teal: #1B7A72;
      --teal-glow: rgba(27, 122, 114, 0.2);
    }

    .light-mode nav.scrolled {
      background: rgba(255, 255, 255, 0.85);
      border-color: rgba(0, 0, 0, 0.05);
    }

    .light-mode body::before {
      background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    }

    .light-mode .theme-toggle {
      border-color: rgba(0, 0, 0, 0.15);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .light-mode .nav-links a:hover {
      color: var(--text);
    }

    /* ── THEME TOGGLE ── */
    .theme-toggle {
      width: 40px;
      height: 40px;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      margin-right: 20px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      font-size: 16px;
      position: relative;
      overflow: hidden;
    }

    .theme-toggle:hover {
      border-color: var(--border-red);
      transform: rotate(15deg) scale(1.1);
    }

    .theme-toggle .sun,
    .theme-toggle .moon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .light-mode .theme-toggle .sun {
      transform: translate(-50%, 30px);
      opacity: 0;
    }

    .light-mode .theme-toggle .moon {
      transform: translate(-50%, -50%);
      opacity: 1;
    }

    :not(.light-mode) .theme-toggle .moon {
      transform: translate(-50%, -30px);
      opacity: 0;
    }

    :not(.light-mode) .theme-toggle .sun {
      transform: translate(-50%, -50%);
      opacity: 1;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-display);
      cursor: none;
      overflow-x: hidden;
    }

    /* ── CUSTOM CURSOR ── */
    #cursor-dot {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 9999;
      pointer-events: none;
      width: 8px;
      height: 8px;
      background: var(--red);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: transform 0.1s, width 0.2s, height 0.2s;
    }

    #cursor-ring {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 9998;
      pointer-events: none;
      width: 36px;
      height: 36px;
      border: 1.5px solid rgba(230, 57, 70, 0.5);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.25s, height 0.25s, border-color 0.25s;
    }

    #cursor-label {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 9997;
      pointer-events: none;
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.1em;
      color: var(--red);
      transform: translate(20px, -50%);
      opacity: 0;
      transition: opacity 0.2s;
      white-space: nowrap;
    }

    body.project-hover #cursor-label {
      opacity: 1;
    }

    body.project-hover #cursor-dot {
      width: 0;
      height: 0;
    }

    body.project-hover #cursor-ring {
      width: 70px;
      height: 70px;
      border-color: var(--red);
    }

    /* ── GRID TEXTURE ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
      background-size: 60px 60px;
      pointer-events: none;
      z-index: 0;
    }

    /* ── NAVBAR ── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 60px;
      transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
      border-bottom: 1px solid transparent;
    }

    nav.scrolled {
      background: rgba(8, 8, 14, 0.82);
      backdrop-filter: blur(20px);
      border-color: var(--border);
    }

    .nav-logo {
      font-family: var(--font-mono);
      font-size: 22px;
      font-weight: 500;
      color: var(--red);
      text-decoration: none;
      letter-spacing: -0.03em;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 40px;
      list-style: none;
    }

    .nav-links a {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--muted);
      text-decoration: none;
      letter-spacing: 0.05em;
      transition: color 0.2s;
    }

    .nav-links a:hover {
      color: var(--text);
    }

    .nav-cta {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--text);
      background: var(--red);
      border: none;
      padding: 10px 24px;
      border-radius: 999px;
      text-decoration: none;
      letter-spacing: 0.03em;
      cursor: none;
      transition: background 0.2s, box-shadow 0.2s;
    }

    .nav-cta:hover {
      background: var(--red-deep);
      box-shadow: 0 0 24px var(--red-glow);
    }

    .btn-teal {
      background: var(--teal);
      color: #08080E;
      font-weight: 600;
    }

    .btn-teal:hover {
      background: #39D6C7;
      box-shadow: 0 0 24px var(--teal-glow);
    }

    /* ── AVAILABILITY BADGE ── */
    .availability-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(46, 196, 182, 0.1);
      border: 1px solid rgba(46, 196, 182, 0.2);
      color: var(--teal);
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 11px;
      font-family: var(--font-mono);
      letter-spacing: 0.05em;
      margin-bottom: 20px;
    }

    .availability-dot {
      width: 8px;
      height: 8px;
      background: var(--teal);
      border-radius: 50%;
      box-shadow: 0 0 8px var(--teal);
      animation: pulse 2s infinite;
    }

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

    /* ── TESTIMONIALS ── */
    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      margin-top: 50px;
    }

    .testimonial-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      padding: 40px;
      border-radius: 20px;
      position: relative;
    }

    .testimonial-quote {
      font-size: 18px;
      line-height: 1.6;
      font-style: italic;
      margin-bottom: 24px;
      color: var(--text);
    }

    .testimonial-author {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .author-info .name {
      font-weight: 600;
      color: var(--text);
    }

    .author-info .role {
      font-size: 12px;
      color: var(--muted);
      margin-top: 4px;
    }

    /* ── BLOG PREVIEW ── */
    .blog-preview-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      margin-top: 50px;
    }

    .blog-item {
      text-decoration: none;
      display: block;
      background: var(--bg2);
      border: 1px solid var(--border);
      padding: 30px;
      border-radius: 20px;
      transition: all 0.3s ease;
    }

    .blog-item:hover {
      border-color: var(--teal);
      transform: translateY(-5px);
    }

    .blog-tag {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--teal);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 12px;
      display: block;
    }

    .blog-title {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 15px;
      color: var(--text);
      line-height: 1.3;
    }

    .blog-snippet {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.6;
    }

    /* ── HAMBURGER ── */
    .nav-hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      padding: 6px;
      cursor: pointer;
      z-index: 200;
    }

    .nav-hamburger span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: transform 0.3s, opacity 0.3s;
    }

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

    .nav-hamburger.open span:nth-child(2) {
      opacity: 0;
    }

    .nav-hamburger.open span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    /* ── MOBILE DRAWER ── */
    .nav-drawer {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(8, 8, 14, 0.97);
      backdrop-filter: blur(16px);
      z-index: 150;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }

    .nav-drawer.open {
      opacity: 1;
      pointer-events: all;
    }

    .nav-drawer a {
      font-family: var(--font-mono);
      font-size: 28px;
      color: var(--muted);
      text-decoration: none;
      padding: 14px 40px;
      border-radius: 10px;
      transition: color 0.2s, background 0.2s;
      letter-spacing: 0.04em;
      cursor: pointer;
    }

    .nav-drawer a:hover {
      color: var(--red);
      background: rgba(230, 57, 70, 0.06);
    }

    .nav-drawer .drawer-cta {
      font-family: var(--font-mono);
      font-size: 16px;
      color: var(--text);
      background: var(--red);
      padding: 14px 40px;
      border-radius: 999px;
      margin-top: 24px;
      font-size: 16px;
      transition: background 0.2s;
      cursor: pointer;
    }

    .nav-drawer .drawer-cta:hover {
      background: var(--red-deep);
    }

    /* ── SECTIONS ── */
    section {
      position: relative;
      z-index: 1;
    }

    /* ── HERO ── */
    #hero {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      padding: 140px 60px 80px;
      position: relative;
      overflow: hidden;
      gap: 40px;
    }
    
    .hero-mesh {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      opacity: 0.4;
    }

    .hero-left {
      display: flex;
      flex-direction: column;
      justify-content: center;
      z-index: 2;
    }

    .hero-canvas-wrap {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: 540px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #hero-3d {
      width: 100%;
      height: 100%;
      position: absolute;
      inset: 0;
      display: block;
    }

    .canvas-label {
      position: absolute;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--muted);
      letter-spacing: 0.08em;
      pointer-events: none;
      white-space: nowrap;
      opacity: 0;
      animation: floatIn 1s ease forwards;
    }

    .canvas-label.tl {
      top: 18%;
      left: 4%;
      animation-delay: 1.6s;
    }

    .canvas-label.tr {
      top: 12%;
      right: 6%;
      animation-delay: 2.0s;
    }

    .canvas-label.bl {
      bottom: 20%;
      left: 2%;
      animation-delay: 2.3s;
    }

    .canvas-label.br {
      bottom: 14%;
      right: 4%;
      animation-delay: 1.9s;
    }

    .canvas-label.ml {
      top: 50%;
      left: 0%;
      animation-delay: 2.5s;
    }

    @keyframes floatIn {
      from {
        opacity: 0;
        transform: translateY(8px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    .pulse-ring {
      position: absolute;
      border-radius: 50%;
      border: 1px solid rgba(230, 57, 70, 0.12);
      pointer-events: none;
      animation: pulseRing 3s ease-in-out infinite;
    }

    .pulse-ring:nth-child(1) {
      width: 340px;
      height: 340px;
      animation-delay: 0s;
    }

    .pulse-ring:nth-child(2) {
      width: 460px;
      height: 460px;
      animation-delay: 1s;
    }

    .pulse-ring:nth-child(3) {
      width: 580px;
      height: 580px;
      animation-delay: 2s;
    }

    @keyframes pulseRing {

      0%,
      100% {
        opacity: .4;
        transform: scale(1)
      }

      50% {
        opacity: .1;
        transform: scale(1.04)
      }
    }

    .hero-eyebrow {
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.2em;
      color: var(--red);
      text-transform: uppercase;
      margin-bottom: 24px;
      opacity: 0;
      animation: fadeUp 0.6s ease forwards 0.2s;
    }

    .hero-title {
      font-size: clamp(42px, 7vw, 90px);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -0.03em;
      max-width: 800px;
      opacity: 0;
      animation: fadeUp 0.6s ease forwards 0.4s;
    }

    .hero-title span {
      color: var(--red);
    }

    .cursor-blink {
      display: inline-block;
      width: 4px;
      height: 0.85em;
      background: var(--red);
      vertical-align: middle;
      margin-left: 6px;
      animation: blink 1s step-end infinite;
    }

    @keyframes blink {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: 0
      }
    }

    .hero-sub {
      font-family: var(--font-mono);
      font-size: 15px;
      color: var(--muted);
      margin-top: 28px;
      letter-spacing: 0.02em;
      opacity: 0;
      animation: fadeUp 0.6s ease forwards 0.6s;
    }

    .hero-sub span {
      color: var(--text);
      border-bottom: 1px solid var(--subtle);
    }

    /* Terminal */
    .terminal {
      margin-top: 48px;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 12px;
      max-width: 560px;
      overflow: hidden;
      opacity: 0;
      animation: fadeUp 0.6s ease forwards 0.8s;
    }

    .terminal-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 16px;
      background: var(--bg3);
      border-bottom: 1px solid var(--border);
    }

    .dot {
      width: 11px;
      height: 11px;
      border-radius: 50%;
    }

    .dot-r {
      background: #FF5F57;
    }

    .dot-y {
      background: #FEBC2E;
    }

    .dot-g {
      background: #28C840;
    }

    .terminal-title {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--muted);
      margin: 0 auto;
      letter-spacing: 0.05em;
    }

    .terminal-body {
      padding: 20px 24px;
      font-family: var(--font-mono);
      font-size: 13px;
      line-height: 2;
    }

    .t-prompt {
      color: var(--red);
    }

    .t-cmd {
      color: #A8D8EA;
    }

    .t-ok {
      color: #4ADE80;
    }

    .t-info {
      color: var(--muted);
    }

    .t-line {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .t-line.hidden {
      opacity: 0;
      animation: fadeIn 0.3s forwards;
    }

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

    /* Badges */
    .hero-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 40px;
      opacity: 0;
      animation: fadeUp 0.6s ease forwards 1s;
    }

    .badge {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--muted);
      border: 1px solid var(--border);
      padding: 6px 16px;
      border-radius: 999px;
      letter-spacing: 0.04em;
      transition: color 0.2s, border-color 0.2s;
    }

    .badge:hover {
      color: var(--red);
      border-color: var(--border-red);
    }

    .hero-ctas {
      display: flex;
      gap: 16px;
      margin-top: 40px;
      opacity: 0;
      animation: fadeUp 0.6s ease forwards 1.1s;
    }

    .btn-primary {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--text);
      background: var(--red);
      border: none;
      padding: 14px 32px;
      border-radius: 999px;
      text-decoration: none;
      letter-spacing: 0.03em;
      cursor: none;
      transition: background 0.2s, box-shadow 0.2s;
    }

    .btn-primary:hover {
      background: var(--red-deep);
      box-shadow: 0 0 30px var(--red-glow);
    }

    .btn-outline {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--text);
      background: transparent;
      border: 1px solid var(--border);
      padding: 14px 32px;
      border-radius: 999px;
      text-decoration: none;
      letter-spacing: 0.03em;
      cursor: none;
      transition: border-color 0.2s, color 0.2s;
    }

    .btn-outline:hover {
      border-color: var(--border-red);
      color: var(--red);
    }

    .scroll-hint {
      position: absolute;
      bottom: 40px;
      left: 60px;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--muted);
      letter-spacing: 0.15em;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .scroll-line {
      width: 40px;
      height: 1px;
      background: var(--muted);
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(24px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    /* ── ABOUT ── */
    #about {
      padding: 120px 60px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }

    .about-avatar-wrap {
      position: relative;
      display: flex;
      justify-content: center;
    }

    .about-avatar {
      width: 340px;
      height: 420px;
      border-radius: 20px;
      background: var(--surface);
      border: 1px solid var(--border-red);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .about-avatar::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% 30%, rgba(230, 57, 70, 0.15) 0%, transparent 70%);
    }

    .avatar-initials {
      font-size: 80px;
      font-weight: 800;
      color: var(--red);
      opacity: 0.35;
      letter-spacing: -0.05em;
    }

    .about-accent {
      position: absolute;
      width: 120px;
      height: 120px;
      border: 2px solid var(--border-red);
      border-radius: 16px;
      bottom: -20px;
      right: -20px;
    }

    .section-tag {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.2em;
      color: var(--red);
      text-transform: uppercase;
      margin-bottom: 20px;
    }

    .section-title {
      font-size: clamp(32px, 4vw, 52px);
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin-bottom: 24px;
    }

    .about-bio {
      font-size: 16px;
      color: var(--muted);
      line-height: 1.9;
      margin-bottom: 20px;
      font-family: var(--font-mono);
      font-weight: 300;
    }

    .about-bio strong {
      color: var(--text);
      font-weight: 500;
    }

    .stats-row {
      display: flex;
      gap: 40px;
      margin-top: 40px;
      padding-top: 40px;
      border-top: 1px solid var(--border);
    }

    .stat-number {
      font-size: 40px;
      font-weight: 800;
      color: var(--red);
      line-height: 1;
      letter-spacing: -0.03em;
    }

    .stat-label {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--muted);
      margin-top: 6px;
      letter-spacing: 0.05em;
    }

    .attended-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(230, 57, 70, 0.08);
      border: 1px solid var(--border-red);
      padding: 8px 16px;
      border-radius: 999px;
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--red);
      margin-top: 24px;
    }

    /* ── SKILLS ── */
    #skills {
      padding: 120px 60px;
      background: var(--bg2);
    }

    .skills-header {
      text-align: center;
      margin-bottom: 64px;
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .skill-card {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 28px;
      transition: border-color 0.3s, transform 0.3s;
    }

    .skill-card:hover {
      border-color: var(--border-red);
      transform: translateY(-4px);
    }

    .skill-card-title {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.2em;
      color: var(--red);
      text-transform: uppercase;
      margin-bottom: 20px;
    }

    .skill-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .chip {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--text);
      background: var(--surface);
      border: 1px solid var(--border);
      padding: 5px 14px;
      border-radius: 6px;
      letter-spacing: 0.02em;
    }

    .skill-card.wide {
      grid-column: span 2;
    }

    /* ── EXPERIENCE ── */
    #experience {
      padding: 120px 60px;
    }

    .exp-grid {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 80px;
      margin-top: 64px;
    }

    .exp-timeline {
      position: relative;
    }

    .exp-timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 8px;
      bottom: 0;
      width: 1px;
      background: var(--border);
    }

    .exp-item {
      position: relative;
      padding-left: 32px;
      margin-bottom: 56px;
      cursor: pointer;
    }

    .exp-item::before {
      content: '';
      position: absolute;
      left: -5px;
      top: 8px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--bg);
      border: 2px solid var(--border);
      transition: border-color 0.3s;
    }

    .exp-item.active::before {
      border-color: var(--red);
      background: var(--red);
    }

    .exp-date {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 6px;
      letter-spacing: 0.04em;
    }

    .exp-role {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 4px;
      transition: color 0.2s;
    }

    .exp-role:hover {
      color: var(--red);
    }

    .exp-company {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--muted);
    }

    .exp-detail {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 48px;
    }

    .exp-detail-title {
      font-size: 28px;
      font-weight: 800;
      margin-bottom: 8px;
      letter-spacing: -0.02em;
    }

    .exp-detail-company {
      font-family: var(--font-mono);
      font-size: 14px;
      color: var(--red);
      margin-bottom: 8px;
    }

    .exp-detail-period {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 36px;
      letter-spacing: 0.04em;
    }

    .exp-bullets {
      list-style: none;
    }

    .exp-bullets li {
      font-family: var(--font-mono);
      font-size: 14px;
      color: var(--muted);
      line-height: 1.8;
      padding: 10px 0;
      border-bottom: 1px solid var(--border);
      display: flex;
      gap: 12px;
      font-weight: 300;
    }

    .exp-bullets li::before {
      content: '▹';
      color: var(--red);
      flex-shrink: 0;
    }

    .exp-bullets strong {
      color: var(--text);
      font-weight: 400;
    }

    /* ── PROJECTS ── */
    #projects {
      padding: 120px 60px;
      background: var(--bg2);
    }

    .projects-header {
      margin-bottom: 64px;
    }

    .bento-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 16px;
    }

    .proj-card {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 36px;
      transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
      position: relative;
      overflow: hidden;
      cursor: none;
    }

    .proj-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(230, 57, 70, 0) 0%, rgba(230, 57, 70, 0.06) 100%);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .proj-card:hover {
      border-color: var(--border-red);
      transform: translateY(-6px);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

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

    .proj-card.featured {
      grid-column: span 7;
    }

    .proj-card.normal {
      grid-column: span 5;
    }

    .proj-card.half {
      grid-column: span 6;
    }

    .proj-number {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--subtle);
      letter-spacing: 0.1em;
      margin-bottom: 20px;
    }

    .proj-title {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 12px;
      line-height: 1.3;
    }

    .proj-card.featured .proj-title {
      font-size: 26px;
    }

    .proj-desc {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--muted);
      line-height: 1.8;
      font-weight: 300;
      margin-bottom: 24px;
    }

    .proj-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: auto;
    }

    .proj-tag {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--red);
      background: rgba(230, 57, 70, 0.08);
      border: 1px solid var(--border-red);
      padding: 4px 12px;
      border-radius: 4px;
      letter-spacing: 0.04em;
    }

    /* Fix #4: dead-link / coming-soon styling */
    .proj-link-soon {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--subtle);
      margin-top: 20px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      letter-spacing: 0.03em;
      cursor: default;
      text-decoration: none;
      position: relative;
    }

    .proj-link-soon .soon-pill {
      font-size: 10px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      padding: 2px 8px;
      border-radius: 999px;
      color: var(--muted);
      letter-spacing: 0.08em;
    }

    .proj-link-live {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--red);
      text-decoration: none;
      margin-top: 20px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      letter-spacing: 0.03em;
      transition: gap 0.2s;
    }

    .proj-link-live:hover {
      gap: 10px;
    }

    /* ── SERVICES ── */
    #services {
      padding: 120px 60px;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      margin-top: 64px;
    }

    .service-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 36px 28px;
      transition: border-color 0.3s, transform 0.3s;
    }

    .service-card:hover {
      border-color: var(--border-red);
      transform: translateY(-4px);
    }

    .service-icon {
      width: 48px;
      height: 48px;
      background: rgba(230, 57, 70, 0.1);
      border: 1px solid var(--border-red);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      margin-bottom: 24px;
    }

    .service-title {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 12px;
    }

    .service-desc {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--muted);
      line-height: 1.8;
      font-weight: 300;
    }

    /* ── EDUCATION ── */
    #education {
      padding: 80px 60px;
      background: var(--bg2);
    }

    .edu-cards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-top: 48px;
    }

    .edu-card {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 32px;
      transition: border-color 0.3s;
    }

    .edu-card:hover {
      border-color: var(--border-red);
    }

    .edu-degree {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .edu-school {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--red);
      margin-bottom: 8px;
    }

    .edu-year {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--muted);
      letter-spacing: 0.05em;
    }

    /* ── CONTACT ── */
    #contact {
      padding: 120px 60px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
    }

    .contact-heading {
      font-size: clamp(36px, 5vw, 66px);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -0.03em;
      margin-bottom: 32px;
    }

    .contact-heading span {
      display: block;
      background: linear-gradient(90deg, var(--red), #ff8c94);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: shimmer 3s linear infinite;
      background-size: 200%;
    }

    @keyframes shimmer {
      0% {
        background-position: 0%
      }

      100% {
        background-position: 200%
      }
    }

    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .contact-link {
      display: flex;
      align-items: center;
      gap: 16px;
      font-family: var(--font-mono);
      font-size: 14px;
      color: var(--muted);
      text-decoration: none;
      padding: 16px 20px;
      border: 1px solid var(--border);
      border-radius: 12px;
      transition: border-color 0.2s, color 0.2s;
      letter-spacing: 0.02em;
    }

    .contact-link:hover {
      border-color: var(--border-red);
      color: var(--text);
    }

    .contact-link-icon {
      width: 36px;
      height: 36px;
      background: rgba(230, 57, 70, 0.08);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    /* Fix #5: professional domain email display */
    .contact-email-display {
      font-family: var(--font-mono);
      font-size: 13px;
    }

    /* Fix #3: contact form security styles */
    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .form-field {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .form-label {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--muted);
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .form-input,
    .form-textarea {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 16px;
      font-family: var(--font-mono);
      font-size: 14px;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s;
      width: 100%;
    }

    .form-input:focus,
    .form-textarea:focus {
      border-color: var(--border-red);
    }

    .form-input.error,
    .form-textarea.error {
      border-color: var(--red);
    }

    .form-error-msg {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--red);
      margin-top: 4px;
      display: none;
    }

    .form-error-msg.show {
      display: block;
    }

    .form-textarea {
      min-height: 120px;
      resize: vertical;
    }

    /* honeypot field — hidden from humans, visible to bots (Fix #3) */
    .form-honeypot {
      position: absolute;
      left: -9999px;
      top: -9999px;
      opacity: 0;
      height: 0;
      width: 0;
      overflow: hidden;
    }

    .form-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .form-note {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--subtle);
      letter-spacing: 0.04em;
    }

    .form-note span {
      color: var(--muted);
    }

    .form-btn {
      font-family: var(--font-mono);
      font-size: 14px;
      color: var(--text);
      background: var(--red);
      border: none;
      padding: 14px 32px;
      border-radius: 10px;
      cursor: pointer;
      letter-spacing: 0.05em;
      transition: background 0.2s, box-shadow 0.2s;
    }

    .form-btn:hover {
      background: var(--red-deep);
      box-shadow: 0 0 30px var(--red-glow);
    }

    .form-btn:disabled {
      background: var(--subtle);
      cursor: not-allowed;
      box-shadow: none;
    }

    .form-success {
      display: none;
      text-align: center;
      padding: 40px 20px;
      font-family: var(--font-mono);
      color: #4ADE80;
      font-size: 14px;
      line-height: 2;
    }

    .form-success.show {
      display: block;
    }

    /* Fix #8: professional email note */
    .domain-email-note {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--subtle);
      margin-top: 8px;
      letter-spacing: 0.04em;
    }

    .domain-email-note span {
      color: var(--red);
    }

    /* ── FOOTER ── */
    footer {
      padding: 40px 60px;
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      z-index: 1;
    }

    .footer-left {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--muted);
    }

    .footer-left span {
      color: var(--red);
    }

    .footer-links {
      display: flex;
      gap: 32px;
      list-style: none;
    }

    .footer-links a {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--muted);
      text-decoration: none;
      letter-spacing: 0.05em;
      transition: color 0.2s;
    }

    .footer-links a:hover {
      color: var(--red);
    }

    .footer-craft {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--subtle);
      letter-spacing: 0.03em;
    }

    .footer-craft span {
      color: var(--red);
    }

    /* ── NARRATIVE LAYER (Architectural Request Flow) ── */
    .narrative-layer {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
      overflow: visible;
    }

    #narrative-path {
      stroke: var(--red);
      stroke-width: 1.5;
      stroke-opacity: 0.2;
      filter: drop-shadow(0 0 5px var(--red-glow));
    }

    #narrative-packet {
      fill: var(--red);
      filter: drop-shadow(0 0 8px var(--red));
    }

    /* ── SCROLL REVEAL (Controlled by Anime.js) ── */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      will-change: opacity, transform;
    }

    /* Hero Initial States */
    .hero-title, .hero-sub, .terminal, .hero-badges, .hero-ctas, .scroll-hint,
    .skill-card, .exp-timeline, .exp-detail {
      opacity: 0;
      transform: translateY(20px);
      will-change: opacity, transform;
    }

    /* Skills Stagger Initial State */
    .chip {
      opacity: 0;
      transform: scale(0.9);
      will-change: opacity, transform;
    }

    /* Stats Initial State */
    .stat-number {
      opacity: 0;
      will-change: opacity;
    }

    /* ══════════════════════════════════════
     RESPONSIVE SYSTEM
     xs  < 480px   small mobile
     sm  480–639px mobile
     md  640–767px large mobile
     lg  768–1023px tablet
     xl  1024–1279px laptop
     2xl 1280px+ desktop (base)
  ══════════════════════════════════════ */

    @media (max-width: 1279px) {
      nav {
        padding: 18px 48px;
      }

      #hero {
        padding: 130px 48px 70px;
        gap: 32px;
      }

      #about,
      #contact {
        padding: 100px 48px;
        gap: 60px;
      }

      #skills,
      #projects,
      #services,
      #experience,
      #education {
        padding: 100px 48px;
      }

      footer {
        padding: 36px 48px;
      }

      .hero-canvas-wrap {
        min-height: 480px;
      }

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

    @media (max-width: 1023px) {
      nav {
        padding: 16px 32px;
      }

      .nav-links,
      .nav-cta {
        display: none;
      }

      .nav-hamburger {
        display: flex;
      }

      .nav-drawer {
        display: flex;
      }

      #hero {
        grid-template-columns: 1fr;
        padding: 120px 32px 60px;
        gap: 0;
      }

      .hero-canvas-wrap {
        min-height: 380px;
        margin-top: 40px;
      }

      .hero-title {
        font-size: clamp(38px, 6vw, 60px);
      }

      #about {
        padding: 80px 32px;
        grid-template-columns: 1fr;
        gap: 48px;
      }

      #skills,
      #experience,
      #projects,
      #services,
      #education {
        padding: 80px 32px;
      }

      #contact {
        padding: 80px 32px;
        grid-template-columns: 1fr;
        gap: 48px;
      }

      footer {
        padding: 32px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
      }

      .footer-links {
        justify-content: center;
      }

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

      .skill-card.wide {
        grid-column: span 2;
      }

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

      .edu-cards {
        grid-template-columns: 1fr 1fr;
      }

      .exp-grid {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .exp-detail {
        padding: 32px;
      }

      .proj-card.featured,
      .proj-card.normal,
      .proj-card.half {
        grid-column: span 12;
      }

      .about-avatar {
        width: 100%;
        height: 340px;
        max-width: 400px;
        margin: 0 auto;
      }

      .about-avatar-wrap {
        justify-content: center;
      }

      .stats-row {
        gap: 32px;
      }

      .section-title {
        font-size: clamp(28px, 4vw, 44px);
      }
    }

    @media (max-width: 767px) {
      #hero {
        padding: 110px 24px 48px;
      }

      #about,
      #contact {
        padding: 72px 24px;
      }

      #skills,
      #projects,
      #services,
      #experience,
      #education {
        padding: 72px 24px;
      }

      footer {
        padding: 28px 24px;
      }

      .hero-title {
        font-size: clamp(32px, 8vw, 52px);
      }

      .hero-canvas-wrap {
        min-height: 320px;
        margin-top: 32px;
      }

      .terminal {
        max-width: 100%;
      }

      .hero-ctas {
        flex-direction: column;
        gap: 12px;
      }

      .btn-primary,
      .btn-outline {
        text-align: center;
        width: 100%;
        padding: 14px 24px;
      }

      .scroll-hint {
        left: 24px;
        bottom: 28px;
      }

      .skills-grid {
        grid-template-columns: 1fr;
      }

      .skill-card.wide {
        grid-column: span 1;
      }

      .services-grid {
        grid-template-columns: 1fr;
      }

      .edu-cards {
        grid-template-columns: 1fr;
      }

      .bento-grid {
        gap: 12px;
      }

      .proj-card {
        padding: 24px;
      }

      .stats-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
      }

      .stat-number {
        font-size: 32px;
      }

      .about-avatar {
        height: 260px;
      }

      .exp-detail {
        padding: 24px;
      }

      .exp-bullets li {
        font-size: 13px;
      }

      .contact-heading {
        font-size: clamp(28px, 8vw, 44px);
      }

      footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
      }

      .footer-links {
        gap: 20px;
      }
    }

    @media (max-width: 639px) {
      nav {
        padding: 14px 20px;
      }

      .nav-logo {
        font-size: 18px;
      }

      #hero {
        padding: 100px 20px 40px;
      }

      #about,
      #contact {
        padding: 60px 20px;
      }

      #skills,
      #projects,
      #services,
      #experience,
      #education {
        padding: 60px 20px;
      }

      footer {
        padding: 24px 20px;
      }

      .hero-eyebrow {
        font-size: 10px;
      }

      .hero-title {
        font-size: clamp(28px, 9vw, 42px);
      }

      .hero-sub {
        font-size: 13px;
      }

      .hero-canvas-wrap {
        min-height: 280px;
      }

      .terminal {
        border-radius: 10px;
      }

      .terminal-body {
        padding: 16px 18px;
        font-size: 12px;
      }

      .section-title {
        font-size: clamp(24px, 7vw, 36px);
      }

      .section-tag {
        font-size: 10px;
      }

      .skill-card,
      .service-card,
      .edu-card {
        padding: 20px;
      }

      .stats-row {
        flex-direction: column;
        gap: 20px;
      }

      .proj-card.featured .proj-title {
        font-size: 20px;
      }

      .proj-desc {
        font-size: 12px;
      }

      .exp-detail {
        padding: 20px;
      }

      .form-footer {
        flex-direction: column;
        align-items: flex-start;
      }

      .form-btn {
        width: 100%;
        text-align: center;
      }
    }

    @media (max-width: 479px) {
      nav {
        padding: 12px 16px;
      }

      #hero {
        padding: 90px 16px 36px;
      }

      #about,
      #contact {
        padding: 52px 16px;
      }

      #skills,
      #projects,
      #services,
      #experience,
      #education {
        padding: 52px 16px;
      }

      footer {
        padding: 20px 16px;
      }

      .hero-title {
        font-size: clamp(24px, 10vw, 36px);
      }

      .hero-canvas-wrap {
        min-height: 240px;
      }

      .hero-badges {
        gap: 7px;
      }

      .badge {
        font-size: 11px;
        padding: 5px 12px;
      }

      .section-title {
        font-size: clamp(22px, 8vw, 30px);
      }

      .pulse-ring:nth-child(1) {
        width: 200px;
        height: 200px;
      }

      .pulse-ring:nth-child(2) {
        width: 280px;
        height: 280px;
      }

      .pulse-ring:nth-child(3) {
        width: 340px;
        height: 340px;
      }

      .contact-link {
        padding: 12px 14px;
        font-size: 12px;
      }

      .footer-links {
        flex-wrap: wrap;
        gap: 14px;
        justify-content: center;
      }

      .exp-detail-title {
        font-size: 20px;
      }

      .exp-detail {
        padding: 16px;
      }
    }

    /* ── TOUCH: hide custom cursor (Fix #2 supplementary) ── */
    @media (hover: none) and (pointer: coarse) {

      #cursor-dot,
      #cursor-ring,
      #cursor-label {
        display: none;
      }

      body {
        cursor: auto;
      }

      a,
      button,
      [data-project] {
        cursor: pointer;
      }

      .nav-cta,
      .btn-primary,
      .btn-outline,
      .form-btn {
        cursor: pointer;
      }
    }

    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation: none !important;
        transition: none !important;
      }
    }

    /* ── MODAL ── */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(8, 8, 14, 0.8);
      backdrop-filter: blur(10px);
      z-index: 1000;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s;
    }

    .modal {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.95);
      width: 90%;
      max-width: 800px;
      max-height: 85vh;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 24px;
      z-index: 1001;
      opacity: 0;
      pointer-events: none;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      overflow-y: auto;
      padding: 60px;
    }

    .modal.open,
    .modal-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }

    .modal.open {
      transform: translate(-50%, -50%) scale(1);
    }

    .modal-content h2 {
      font-size: 32px;
      margin-bottom: 20px;
      color: var(--text);
    }

    .modal-content .proj-meta {
      display: flex;
      gap: 15px;
      margin-bottom: 30px;
      flex-wrap: wrap;
    }

    .modal-content .abody {
      font-size: 16px;
      line-height: 1.8;
      color: var(--text);
      opacity: 0.9;
    }

    .modal-content .abody strong {
      color: var(--teal);
    }

    .modal-close {
      position: absolute;
      top: 30px;
      right: 30px;
      background: var(--bg3);
      border: none;
      color: var(--text);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .modal-close:hover {
      background: var(--border);
    }

    .modal-cta {
      margin-top: 40px;
      display: inline-block;
    }

    @media (max-width: 768px) {
      .modal { padding: 40px 24px; width: 95%; }
      .modal-content h2 { font-size: 24px; }
    }