    /* ─── RESET & TOKENS ─────────────────────────────────────── */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html,
    body,
    button,
    input,
    textarea,
    select {
      font-family: var(--font-mono);
    }

    .hero-name,
    .section-heading,
    .hero-tagline,
    .hero-name span,
    .section-heading em {
      font-family: var(--font-serif) !important;
    }

    :root {
      --wine: #7A2048;
      --wine-dark: #5a1534;
      --wine-mid: #8e2554;
      --wine-light: #c0557a;
      --wine-pale: #f5e8ed;
      --wine-tint: #fdf4f6;
      --charcoal: #2D2D2D;
      --gray-mid: #6b6b6b;
      --gray-light: #a8a8a8;
      --white: #FFFFFF;
      --off-white: #FAFAFA;
      --border: #e8d5da;

      --font-serif: 'Cormorant Garamond', Georgia, serif;
      --font-sans: 'JetBrains Mono', monospace;
      --font-mono: 'JetBrains Mono', monospace;

      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
      --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
    }

    html,
    body {
      height: 100%;
      overflow: hidden;
      background: var(--white);
      color: var(--charcoal);
      font-family: var(--font-mono);
    }

    /* ─── SLIDE CONTAINER ────────────────────────────────────── */
    #slides-wrapper {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .slide {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding-top: 74px;
      box-sizing: border-box;
      /* default: hidden below */
      transform: translateY(100%);
      transition: transform 0.85s var(--ease-out);
      will-change: transform;
    }

    .slide.active {
      transform: translateY(0%);
    }

    .slide.above {
      transform: translateY(-100%);
    }

    /* ─── NAV DOTS ───────────────────────────────────────────── */
    #nav-dots {
      position: fixed;
      right: 28px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 12px;
      z-index: 100;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--border);
      border: 2px solid var(--border);
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .dot.active {
      background: var(--wine);
      border-color: var(--wine);
      transform: scale(1.5);
    }

    .dot:hover {
      border-color: var(--wine);
    }

    /* ─── TOP NAV BAR ────────────────────────────────────────── */
    #topnav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 48px;
      z-index: 99;
      background: var(--wine-dark);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 2px 24px rgba(90, 21, 52, 0.35);
    }

    .nav-logo {
      font-family: var(--font-serif);
      font-size: 22px;
      font-weight: 600;
      color: var(--white);
      letter-spacing: 0.06em;
      text-decoration: none;
    }

    .nav-links {
      display: flex;
      gap: 32px;
      list-style: none;
    }

    .nav-links li a {
      font-size: 12px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.65);
      text-decoration: none;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      transition: color 0.2s;
      cursor: pointer;
      position: relative;
      padding-bottom: 3px;
    }

    .nav-links li a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--white);
      transition: width 0.25s ease;
    }

    .nav-links li a:hover {
      color: var(--white);
    }

    .nav-links li a:hover::after {
      width: 100%;
    }

    .nav-links li a.active {
      color: var(--white);
    }

    .nav-links li a.active::after {
      width: 100%;
    }

    /* ─── SLIDE PROGRESS BAR ─────────────────────────────────── */
    #progress-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      height: 3px;
      background: var(--wine);
      transition: width 0.85s var(--ease-out);
      z-index: 100;
    }

    /* ─── SLIDE NUMBER ───────────────────────────────────────── */
    #slide-counter {
      position: fixed;
      bottom: 28px;
      left: 48px;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--gray-light);
      letter-spacing: 0.1em;
      z-index: 100;
    }

    /* ─── SECTION LABEL HUD ──────────────────────────────────── */
    #section-label-hud {
      position: fixed;
      bottom: 48px;
      left: 48px;
      z-index: 100;
      display: flex;
      flex-direction: column;
      gap: 4px;
      pointer-events: none;
    }

    #section-label-hud .hud-num {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--wine);
      letter-spacing: 0.18em;
      opacity: 0.7;
      transition: opacity 0.4s ease;
    }

    #section-label-hud .hud-name {
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 500;
      color: var(--charcoal);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    #section-label-hud.dark .hud-num {
      color: var(--wine-light);
      opacity: 0.8;
    }

    #section-label-hud.dark .hud-name {
      color: rgba(255, 255, 255, 0.75);
    }

    #section-label-hud.fade-out .hud-num,
    #section-label-hud.fade-out .hud-name {
      opacity: 0;
      transform: translateY(-6px);
    }

    #scroll-hint {
      position: fixed;
      bottom: 28px;
      right: 52px;
      font-size: 11px;
      color: var(--gray-light);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      z-index: 100;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .hint-arrow {
      display: inline-block;
      animation: bounceY 1.4s ease-in-out infinite;
    }

    @keyframes bounceY {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(4px);
      }
    }

    /* ══════════════════════════════════════════════════════════
       SLIDE 1 — HERO
    ══════════════════════════════════════════════════════════ */
    #slide-hero {
      background: var(--white);
      flex-direction: column;
    }

    .hero-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 28px;
      text-align: center;
      animation: fadeSlideUp 0.9s var(--ease-out) both;
      animation-play-state: paused;
    }

    .slide.active .hero-inner {
      animation-play-state: running;
    }

    /* Photo frame */
    .photo-frame {
      width: 160px;
      height: 160px;
      border-radius: 50%;
      border: 3px solid var(--wine);
      position: relative;
      overflow: hidden;
      background: var(--wine-pale);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 0 8px var(--wine-tint), 0 0 0 9px var(--border);
      flex-shrink: 0;
    }

    .photo-frame::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 50%;
      border: 2px solid var(--wine-light);
      animation: spinRing 8s linear infinite;
      clip-path: polygon(50% 0%, 100% 0%, 100% 50%, 100% 100%, 50% 100%, 0 100%, 0 50%, 0 0);
    }

    @keyframes spinRing {
      to {
        transform: rotate(360deg);
      }
    }

    .photo-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }

    .photo-placeholder-icon {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      color: var(--wine);
    }

    .photo-placeholder-icon svg {
      width: 48px;
      height: 48px;
      opacity: 0.5;
    }

    .photo-placeholder-icon span {
      font-size: 10px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--wine-light);
      font-family: var(--font-mono);
    }

    .hero-name {
      font-family: var(--font-serif);
      font-size: clamp(38px, 6vw, 72px);
      font-weight: 700;
      color: var(--charcoal);
      letter-spacing: -0.01em;
      line-height: 1.05;
    }

    .hero-name span {
      color: var(--wine);
    }

    .hero-title {
      font-size: 13px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gray-mid);
      font-weight: 500;
    }

    .hero-divider {
      width: 60px;
      height: 2px;
      background: var(--wine);
    }

    .hero-tagline {
      font-family: var(--font-serif);
      font-style: italic;
      font-size: 18px;
      color: var(--gray-mid);
      max-width: 520px;
      width: 100%;
      line-height: 1.6;
      word-break: break-word;
      overflow-wrap: break-word;
      box-sizing: border-box;
    }

    .hero-ctas {
      display: flex;
      gap: 16px;
      margin-top: 8px;
    }

    .btn-primary {
      padding: 12px 32px;
      background: var(--wine);
      color: var(--white);
      border: 2px solid var(--wine);
      border-radius: 2px;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.25s, color 0.25s, transform 0.2s;
    }

    .btn-primary:hover {
      background: var(--wine-dark);
      transform: translateY(-2px);
    }

    .btn-outline {
      padding: 12px 32px;
      background: transparent;
      color: var(--wine);
      border: 2px solid var(--wine);
      border-radius: 2px;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.25s, color 0.25s, transform 0.2s;
    }

    .btn-outline:hover {
      background: var(--wine-tint);
      transform: translateY(-2px);
    }

    /* Decorative corner lines - Expanded outer frame so HOME doesn't touch the column */
    .hero-corner {
      position: absolute;
      width: 96px;
      height: 96px;
      border-color: var(--border);
      border-style: solid;
      pointer-events: none;
    }

    .hero-corner.tl {
      top: 78px;
      left: 20px;
      border-width: 2px 0 0 2px;
    }

    .hero-corner.tr {
      top: 78px;
      right: 20px;
      border-width: 2px 2px 0 0;
    }

    .hero-corner.bl {
      bottom: 8px;
      left: 20px;
      border-width: 0 0 2px 2px;
    }

    .hero-corner.br {
      bottom: 8px;
      right: 20px;
      border-width: 0 2px 2px 0;
    }

    /* ══════════════════════════════════════════════════════════
       SLIDE 2 — ABOUT
    ══════════════════════════════════════════════════════════ */
    #slide-about {
      background: var(--wine-tint);
    }

    .about-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
      max-width: 960px;
      width: 90%;
    }

    .about-left {
      opacity: 0;
      transform: translateX(-60px);
      transition: opacity 0.8s var(--ease-out) 0.2s,
        transform 0.8s var(--ease-out) 0.2s;
    }

    .about-right {
      opacity: 0;
      transform: translateX(60px);
      transition: opacity 0.8s var(--ease-out) 0.35s,
        transform 0.8s var(--ease-out) 0.35s;
    }

    .slide.active .about-left,
    .slide.active .about-right {
      opacity: 1;
      transform: translateX(0);
    }

    .section-label {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--wine);
      letter-spacing: 0.2em;
      text-transform: uppercase;
      margin-bottom: 12px;
    }

    .section-heading {
      font-family: var(--font-serif);
      font-size: clamp(24px, 3vw, 36px);
      font-weight: 700;
      color: var(--charcoal);
      line-height: 1.15;
      margin-bottom: 14px;
    }

    /* Original large heading & spacing for 'Who I Am' */
    .about-left .section-heading {
      font-size: clamp(32px, 4vw, 52px);
      line-height: 1.1;
      margin-bottom: 24px;
    }

    .section-heading em {
      color: var(--wine);
      font-style: normal;
    }

    .about-body {
      font-size: 15px;
      line-height: 1.8;
      color: var(--gray-mid);
      margin-bottom: 28px;
    }

    .about-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .stat-box {
      background: var(--white);
      border: 1px solid var(--border);
      border-top: 3px solid var(--wine);
      padding: 16px;
      text-align: center;
    }

    .stat-num {
      font-family: var(--font-serif);
      font-size: 28px;
      font-weight: 700;
      color: var(--wine);
      display: block;
    }

    .stat-label {
      font-size: 11px;
      color: var(--gray-mid);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-top: 4px;
      display: block;
    }

    .about-photo-frame {
      width: 100%;
      aspect-ratio: 3/4;
      background: var(--wine-pale);
      border: 2px solid var(--border);
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      max-width: 320px;
      margin: 0 auto;
    }

    .about-photo-frame::after {
      content: '';
      position: absolute;
      bottom: -20px;
      right: -20px;
      width: 100%;
      height: 100%;
      border: 2px solid var(--wine);
      z-index: -1;
    }

    .about-photo-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      color: var(--wine-light);
    }

    .about-photo-placeholder svg {
      width: 64px;
      height: 64px;
      opacity: 0.4;
    }

    .about-photo-placeholder span {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }

    .about-photo-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* ══════════════════════════════════════════════════════════
       SLIDE 3 — SKILLS
    ══════════════════════════════════════════════════════════ */
    #slide-skills {
      background: var(--charcoal);
    }

    .skills-inner {
      max-width: 1140px;
      width: 90%;
    }

    .skills-header {
      text-align: center;
      margin-bottom: 44px;
      opacity: 0;
      transform: translateY(-30px);
      transition: opacity 0.6s var(--ease-out) 0.1s, transform 0.6s var(--ease-out) 0.1s;
    }

    .slide.active .skills-header {
      opacity: 1;
      transform: translateY(0);
    }

    .skills-header .section-label {
      color: var(--wine-light);
    }

    .skills-header .section-heading {
      color: var(--white);
      font-size: clamp(32px, 4vw, 52px);
      line-height: 1.1;
    }

    /* Grape pattern: 4 cards on top, the last row centred under them */
    .skills-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
    }

    .skill-category {
      flex: 0 0 calc((100% - 48px) / 4);
      min-width: 0;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-top: 2px solid var(--wine);
      padding: 20px;
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    }

    .slide.active .skill-category {
      opacity: 1;
      transform: translateY(0);
    }

    .skill-category:nth-child(1) {
      transition-delay: 0.15s;
    }

    .skill-category:nth-child(2) {
      transition-delay: 0.25s;
    }

    .skill-category:nth-child(3) {
      transition-delay: 0.35s;
    }

    .skill-category:nth-child(4) {
      transition-delay: 0.45s;
    }

    .skill-category:nth-child(5) {
      transition-delay: 0.55s;
    }

    .skill-category:nth-child(6) {
      transition-delay: 0.65s;
    }

    .skill-category:nth-child(7) {
      transition-delay: 0.75s;
    }

    .skill-category:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.2);
      transition-delay: 0s !important;
    }

    .skill-cat-title {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--wine-light);
      margin-bottom: 12px;
      font-family: var(--font-mono);
    }

    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .skill-tag {
      font-size: 11px;
      padding: 3px 10px;
      background: rgba(122, 32, 72, 0.2);
      border: 1px solid rgba(122, 32, 72, 0.4);
      color: rgba(255, 255, 255, 0.8);
      border-radius: 2px;
      font-family: var(--font-mono);
      transition: background 0.2s, border-color 0.2s;
    }

    .skill-tag:hover {
      background: rgba(122, 32, 72, 0.5);
      border-color: var(--wine);
    }

    /* ══════════════════════════════════════════════════════════
       SLIDE 4 — EXPERIENCE
    ══════════════════════════════════════════════════════════ */
    #slide-experience {
      background: var(--white);
    }

    .exp-inner {
      max-width: 1240px;
      width: 90%;
    }

    .exp-header {
      margin-bottom: 24px;
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.6s var(--ease-out) 0.1s, transform 0.6s var(--ease-out) 0.1s;
    }

    .slide.active .exp-header {
      opacity: 1;
      transform: translateY(0);
    }

    .timeline {
      position: relative;
      padding-left: 32px;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 2px;
      background: var(--border);
    }

    .timeline-item {
      position: relative;
      padding-bottom: 36px;
      opacity: 0;
      transform: translateX(-30px);
      transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    }

    .slide.active .timeline-item {
      opacity: 1;
      transform: translateX(0);
    }

    .timeline-item:nth-child(1) {
      transition-delay: 0.2s;
    }

    .timeline-item:nth-child(2) {
      transition-delay: 0.4s;
    }

    .timeline-item:nth-child(3) {
      transition-delay: 0.6s;
    }

    .timeline-item::before {
      content: '';
      position: absolute;
      left: -39px;
      top: 6px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--wine);
      border: 3px solid var(--white);
      box-shadow: 0 0 0 2px var(--wine);
    }

    .timeline-dot-label {
      position: absolute;
      left: -120px;
      top: 2px;
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--wine);
      letter-spacing: 0.06em;
      white-space: nowrap;
      width: 72px;
      text-align: right;
    }

    .tl-company {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--wine);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .tl-role {
      font-family: var(--font-serif);
      font-size: 22px;
      font-weight: 600;
      color: var(--charcoal);
      margin-bottom: 8px;
    }

    .tl-date {
      font-size: 12px;
      color: var(--gray-light);
      margin-bottom: 12px;
      letter-spacing: 0.06em;
    }

    .tl-bullets {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .tl-bullets li {
      font-size: 14px;
      color: var(--gray-mid);
      line-height: 1.6;
      padding-left: 16px;
      position: relative;
    }

    .tl-bullets li::before {
      content: '—';
      position: absolute;
      left: 0;
      color: var(--wine);
    }

    .edu-section {
      margin-top: 32px;
      padding-top: 24px;
      border-top: 1px solid var(--border);
    }

    .edu-row {
      display: flex;
      font-family: var(--font-serif);
      justify-content: space-between;
      align-items: baseline;
      padding: 10px 0;
      border-bottom: 1px solid var(--border);
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    }

    .slide.active .edu-row {
      opacity: 1;
      transform: translateY(0);
    }

    .edu-row:nth-child(1) {
      transition-delay: 0.7s;
    }

    .edu-row:nth-child(2) {
      transition-delay: 0.85s;
    }

    .edu-row:nth-child(3) {
      transition-delay: 1.0s;
    }

    .edu-name {
      font-weight: 600;
      font-size: 14px;
      color: var(--charcoal);
    }

    .edu-inst {
      font-size: 13px;
      color: var(--gray-mid);
    }

    .edu-grade {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--wine);
    }

    /* ══════════════════════════════════════════════════════════
       SLIDE 5 — PROJECTS
    ══════════════════════════════════════════════════════════ */
    #slide-projects {
      background: var(--wine-tint);
    }

    .proj-inner {
      max-width: 1040px;
      width: 90%;
    }

    .proj-header {
      margin-bottom: 20px;
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.6s var(--ease-out) 0.1s, transform 0.6s var(--ease-out) 0.1s;
    }

    .slide.active .proj-header {
      opacity: 1;
      transform: translateY(0);
    }

    /* Projects Slider Track & Navigation */
    .projects-slider-wrapper {
      width: 100%;
      overflow: hidden;
      position: relative;
    }

    .projects-slider-track {
      display: flex;
      width: 300%;
      transition: transform 0.6s var(--ease-out);
    }

    .projects-slide-page {
      width: calc(100% / 3);
      flex-shrink: 0;
      padding-right: 4px;
      box-sizing: border-box;
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .proj-slider-nav {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .proj-page-indicator {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--wine);
      letter-spacing: 0.12em;
      font-weight: 600;
    }

    .proj-nav-btn {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--white);
      color: var(--wine);
      font-size: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.25s ease;
      box-shadow: 0 2px 8px rgba(122, 32, 72, 0.08);
      user-select: none;
    }

    .proj-nav-btn:hover:not(:disabled) {
      background: var(--wine);
      color: var(--white);
      border-color: var(--wine);
      transform: scale(1.08);
    }

    .proj-nav-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
      box-shadow: none;
    }

    .project-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-top: 3px solid var(--wine);
      padding: 24px 28px;
      position: relative;
      overflow: hidden;
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
        box-shadow 0.3s;
      cursor: default;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .project-card::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--wine);
      transition: width 0.4s ease;
    }

    .project-card:hover::before {
      width: 100%;
    }

    .project-card:hover {
      box-shadow: 0 8px 32px rgba(122, 32, 72, 0.12);
      transform: translateY(-4px) !important;
      transition-delay: 0s !important;
    }

    .slide.active .project-card {
      opacity: 1;
      transform: translateY(0);
    }

    .project-card:nth-child(1) {
      transition-delay: 0.2s;
    }

    .project-card:nth-child(2) {
      transition-delay: 0.35s;
    }

    .project-card:nth-child(3) {
      transition-delay: 0.5s;
    }

    .project-card:nth-child(4) {
      transition-delay: 0.65s;
    }

    .proj-num {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--wine-light);
      letter-spacing: 0.1em;
      margin-bottom: 8px;
    }

    .proj-title {
      font-family: var(--font-serif);
      font-size: 20px;
      font-weight: 700;
      color: var(--charcoal);
      margin-bottom: 10px;
    }

    .proj-desc {
      font-size: 13px;
      line-height: 1.65;
      color: var(--gray-mid);
      margin-bottom: 14px;
    }

    .proj-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 14px;
    }

    .proj-tag {
      font-size: 10px;
      padding: 3px 8px;
      background: var(--wine-pale);
      color: var(--wine);
      border-radius: 2px;
      font-family: var(--font-mono);
      letter-spacing: 0.05em;
    }

    .proj-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 600;
      color: var(--wine);
      text-decoration: none;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      transition: gap 0.2s;
    }

    .proj-link:hover {
      gap: 10px;
    }

    .proj-apk-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      background: var(--wine-pale);
      border: 1px solid rgba(122, 32, 72, 0.25);
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      color: var(--wine);
      text-decoration: none;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      transition: all 0.25s ease;
      margin-top: 4px;
      align-self: flex-start;
    }

    .proj-apk-link:hover {
      background: var(--wine);
      color: var(--white);
      border-color: var(--wine);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(122, 32, 72, 0.2);
    }

    .proj-slide-hint {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--wine-light);
      letter-spacing: 0.06em;
      cursor: pointer;
      transition: color 0.2s;
      user-select: none;
    }

    .proj-slide-hint:hover {
      color: var(--wine);
    }

    /* ══════════════════════════════════════════════════════════
       SLIDE 6 — CERTIFICATIONS
    ══════════════════════════════════════════════════════════ */
    #slide-certs {
      background: var(--charcoal);
    }

    .certs-inner {
      max-width: 960px;
      width: 90%;
    }

    .certs-header {
      margin-bottom: 20px;
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.6s var(--ease-out) 0.1s, transform 0.6s var(--ease-out) 0.1s;
    }

    .slide.active .certs-header {
      opacity: 1;
      transform: translateY(0);
    }

    .certs-header .section-label {
      color: var(--wine-light);
    }

    .certs-header .section-heading {
      color: var(--white);
    }

    .certs-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 14px;
    }

    .cert-card {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-left: 3px solid var(--wine);
      padding: 18px 20px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      cursor: pointer;
      position: relative;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out),
        background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .cert-card:hover {
      background: rgba(122, 32, 72, 0.22);
      border-left-color: var(--wine-light);
      box-shadow: 0 8px 24px rgba(122, 32, 72, 0.25);
      transition-delay: 0s !important;
    }

    .cert-hint {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--wine-light);
      letter-spacing: 0.08em;
      margin-top: 4px;
      opacity: 0.7;
      transition: opacity 0.2s ease, color 0.2s ease;
    }

    .cert-card:hover .cert-hint {
      opacity: 1;
      color: var(--white);
      transition-delay: 0s !important;
    }

    /* Certificate Modal Popup */
    .cert-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: rgba(15, 15, 20, 0.85);
      backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .cert-modal-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .cert-modal-container {
      width: 88vw;
      max-width: 920px;
      height: 85vh;
      background: #1e1e24;
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-top: 4px solid var(--wine);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
      display: flex;
      flex-direction: column;
      transform: scale(0.92) translateY(20px);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      border-radius: 6px;
      overflow: hidden;
    }

    .cert-modal-overlay.active .cert-modal-container {
      transform: scale(1) translateY(0);
    }

    .cert-modal-header {
      height: 52px;
      padding: 0 20px;
      background: var(--wine-dark);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      flex-shrink: 0;
    }

    .cert-modal-title {
      font-family: var(--font-serif);
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 60%;
    }

    .cert-modal-actions {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .cert-modal-dl-btn {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--wine-light);
      text-decoration: none;
      background: rgba(255, 255, 255, 0.1);
      padding: 6px 14px;
      border-radius: 4px;
      transition: background 0.2s, color 0.2s;
    }

    .cert-modal-dl-btn:hover {
      background: var(--wine);
      color: #fff;
    }

    .cert-modal-close-btn {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.7);
      font-size: 26px;
      cursor: pointer;
      line-height: 1;
      padding: 0 4px;
      transition: color 0.2s;
    }

    .cert-modal-close-btn:hover {
      color: #fff;
    }

    .cert-modal-body {
      flex: 1;
      width: 100%;
      height: 100%;
      background: #2b2b36;
    }

    .cert-modal-body iframe {
      width: 100%;
      height: 100%;
      border: none;
    }

    .slide.active .cert-card {
      opacity: 1;
      transform: translateY(0);
    }

    .cert-card:nth-child(1) {
      transition-delay: 0.15s;
    }

    .cert-card:nth-child(2) {
      transition-delay: 0.25s;
    }

    .cert-card:nth-child(3) {
      transition-delay: 0.35s;
    }

    .cert-card:nth-child(4) {
      transition-delay: 0.45s;
    }

    .cert-card:nth-child(5) {
      transition-delay: 0.55s;
    }

    .cert-card:nth-child(6) {
      transition-delay: 0.65s;
    }

    .cert-card:nth-child(7) {
      transition-delay: 0.75s;
    }

    .cert-card:nth-child(8) {
      transition-delay: 0.85s;
    }

    .cert-card:nth-child(9) {
      transition-delay: 0.95s;
    }

    .cert-issuer {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--wine-light);
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .cert-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--white);
      line-height: 1.4;
    }

    .cert-date {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.35);
      margin-top: 2px;
    }

    /* ══════════════════════════════════════════════════════════
       SLIDE 7 — CONTACT
    ══════════════════════════════════════════════════════════ */
    #slide-contact {
      background: var(--white);
      flex-direction: column;
    }

    .contact-inner {
      max-width: 680px;
      width: 90%;
      text-align: center;
    }

    .contact-header {
      margin-bottom: 24px;
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.7s var(--ease-out) 0.1s, transform 0.7s var(--ease-out) 0.1s;
    }

    .slide.active .contact-header {
      opacity: 1;
      transform: translateY(0);
    }

    .contact-links {
      display: flex;
      flex-direction: column;
      gap: 16px;
      align-items: center;
    }

    .resume-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top: 16px;
      padding: 10px 22px;
      background: var(--wine);
      color: #fff;
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-decoration: none;
      transition: opacity 0.2s;
    }

    .resume-btn:hover {
      opacity: 0.85;
    }

    .contact-link-row {
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 18px 32px;
      border: 1px solid var(--border);
      width: 100%;
      text-decoration: none;
      transition: border-color 0.25s, background 0.25s, transform 0.25s;
      opacity: 0;
      transform: translateX(-40px);
    }

    .slide.active .contact-link-row {
      opacity: 1;
      transform: translateX(0);
    }

    .contact-link-row:nth-child(1) {
      transition-delay: 0.2s;
      transition-duration: 0.7s;
    }

    .contact-link-row:nth-child(2) {
      transition-delay: 0.35s;
      transition-duration: 0.7s;
    }

    .contact-link-row:nth-child(3) {
      transition-delay: 0.5s;
      transition-duration: 0.7s;
    }

    .contact-link-row:nth-child(4) {
      transition-delay: 0.65s;
      transition-duration: 0.7s;
    }

    .contact-link-row:hover {
      border-color: var(--wine);
      background: var(--wine-tint);
      transform: translateX(6px) !important;
      transition-delay: 0s !important;
      transition-duration: 0.25s !important;
    }

    .contact-link-icon {
      width: 40px;
      height: 40px;
      background: var(--wine-pale);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .contact-link-icon svg {
      width: 18px;
      height: 18px;
      color: var(--wine);
    }

    .contact-link-info {
      text-align: left;
    }

    .cl-label {
      font-size: 11px;
      color: var(--gray-light);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-family: var(--font-mono);
    }

    .cl-value {
      font-size: 15px;
      font-weight: 500;
      color: var(--charcoal);
      margin-top: 2px;
    }

    .contact-arrow {
      margin-left: auto;
      color: var(--wine);
      opacity: 0;
      transition: opacity 0.2s;
    }

    .contact-link-row:hover .contact-arrow {
      opacity: 1;
    }

    /* ─── ACHIEVEMENTS RIBBON ─────────────────────────────── */
    .achievements-strip {
      margin-top: 36px;
      display: flex;
      gap: 24px;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.7s var(--ease-out) 0.85s;
    }

    .slide.active .achievements-strip {
      opacity: 1;
    }

    .ach-badge {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .ach-icon {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: var(--wine);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--white);
      font-size: 18px;
    }

    .ach-text {
      font-size: 11px;
      color: var(--gray-mid);
      text-align: center;
      max-width: 80px;
      line-height: 1.4;
      letter-spacing: 0.04em;
    }

    /* ─── KEYFRAMES ──────────────────────────────────────── */
    @keyframes fadeSlideUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ─── TRANSITION OVERLAY ─────────────────────────────── */
    #overlay {
      position: fixed;
      inset: 0;
      background: var(--wine);
      z-index: 200;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.35s ease;
    }

    /* ─── RESPONSIVE ─────────────────────────────────────── */
    @media (max-width: 768px) {
      #topnav {
        padding: 0 16px;
      }

      .nav-links {
        display: none;
      }

      /* Hero responsive fixes: prevent 375px tagline cut off */
      .hero-inner {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
        gap: 18px !important;
      }

      .hero-name {
        font-size: clamp(32px, 8.5vw, 48px) !important;
        word-break: break-word !important;
        line-height: 1.1 !important;
      }

      .hero-title {
        font-size: clamp(10px, 3.2vw, 12px) !important;
        max-width: 100% !important;
        word-break: break-word !important;
      }

      .hero-tagline {
        font-size: clamp(13.5px, 4.2vw, 16px) !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 4px !important;
        line-height: 1.5 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
      }

      .hero-tagline br {
        display: none !important;
      }

      /* About section responsive fixes: prevent 483px right-edge overflow */
      .about-inner {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
      }

      .about-left {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        transform: none !important;
      }

      .about-body {
        max-width: 100% !important;
        font-size: 13.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 18px !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
      }

      .about-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }

      .stat-box {
        min-width: 0 !important;
        padding: 10px 4px !important;
        box-sizing: border-box !important;
      }

      .stat-num {
        font-size: 20px !important;
      }

      .stat-label {
        font-size: 8.5px !important;
        letter-spacing: 0.04em !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
      }

      .about-photo-frame {
        max-width: 150px;
        aspect-ratio: 1;
        margin: 0 auto;
      }

      /* Projects section responsive fixes: prevent 690px card stretch */
      .proj-inner {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
      }

      .projects-slider-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
      }

      .projects-slide-page {
        padding-right: 0 !important;
      }

      .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }

      .project-card {
        max-width: 100% !important;
        width: 100% !important;
        padding: 16px 14px !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
      }

      .proj-title {
        font-size: 17px !important;
      }

      .proj-desc {
        font-size: 12px !important;
        line-height: 1.5 !important;
      }

      .proj-actions {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
      }

      .hero-corner {
        display: none !important;
      }

      #slide-counter,
      #scroll-hint {
        display: none !important;
      }
    }

    /* ══════════════════════════════════════════════════════════
       AI TWIN ASSISTANT FLOATING WIDGET & CHAT PANEL
    ══════════════════════════════════════════════════════════ */
    #ai-twin-widget {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 999;
      font-family: var(--font-mono);
    }

    .ai-twin-trigger-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--wine-dark);
      color: var(--white);
      border: 1px solid rgba(255, 255, 255, 0.25);
      padding: 10px 18px;
      border-radius: 30px;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(90, 21, 52, 0.4);
      transition: transform 0.25s var(--ease-out), background 0.25s, box-shadow 0.25s;
    }

    .ai-twin-trigger-btn:hover {
      background: var(--wine);
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 12px 32px rgba(122, 32, 72, 0.5);
    }

    .ai-avatar-badge {
      position: relative;
      width: 26px;
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ai-avatar-badge svg {
      width: 20px;
      height: 20px;
      color: var(--wine-pale);
    }

    .ai-pulse-dot {
      position: absolute;
      top: -1px;
      right: -1px;
      width: 8px;
      height: 8px;
      background: #10B981;
      border: 2px solid var(--wine-dark);
      border-radius: 50%;
      animation: pulseGlow 1.8s infinite;
    }

    @keyframes pulseGlow {
      0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
      }

      70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
      }
    }

    .ai-trigger-label {
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }

    /* Chat Panel */
    .ai-chat-panel {
      position: absolute;
      bottom: 60px;
      right: 0;
      width: 390px;
      height: 560px;
      max-width: 92vw;
      max-height: 80vh;
      background: #181820;
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-top: 4px solid var(--wine);
      border-radius: 12px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translateY(20px) scale(0.95);
      transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    }

    .ai-chat-panel.active {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0) scale(1);
    }

    /* Chat Header */
    .ai-chat-header {
      padding: 12px 16px;
      background: var(--wine-dark);
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      flex-shrink: 0;
    }

    .ai-profile-info {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .ai-header-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--wine);
      color: var(--white);
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .ai-header-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--white);
      line-height: 1.2;
    }

    .ai-header-status {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.65);
      font-family: var(--font-mono);
      display: flex;
      align-items: center;
      gap: 4px;
      margin-top: 2px;
    }

    .status-dot {
      width: 6px;
      height: 6px;
      background: #10B981;
      border-radius: 50%;
    }

    .ai-header-actions {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .ai-icon-btn {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      color: var(--wine-pale);
      font-size: 11px;
      padding: 4px 8px;
      border-radius: 4px;
      cursor: pointer;
      font-family: var(--font-mono);
      transition: background 0.2s;
    }

    .ai-icon-btn:hover {
      background: rgba(255, 255, 255, 0.25);
      color: var(--white);
    }

    .ai-close-btn {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.7);
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      padding: 0 4px;
      transition: color 0.2s;
    }

    .ai-close-btn:hover {
      color: var(--white);
    }

    /* API Key Drawer */
    .ai-key-drawer {
      background: #22222c;
      padding: 12px 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      display: none;
      flex-shrink: 0;
    }

    .ai-key-drawer.open {
      display: block;
    }

    .key-drawer-title {
      font-size: 12px;
      font-weight: 600;
      color: var(--wine-light);
      margin-bottom: 4px;
    }

    .key-drawer-desc {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.6);
      line-height: 1.4;
      margin-bottom: 8px;
    }

    .key-input-row {
      display: flex;
      gap: 6px;
    }

    .key-input-row input {
      flex: 1;
      background: #14141a;
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #fff;
      font-size: 11px;
      padding: 6px 10px;
      border-radius: 4px;
      font-family: var(--font-mono);
    }

    .key-input-row button {
      background: var(--wine);
      color: #fff;
      border: none;
      padding: 6px 12px;
      font-size: 11px;
      font-weight: 600;
      border-radius: 4px;
      cursor: pointer;
    }

    .key-status-text {
      font-size: 10px;
      color: #10B981;
      margin-top: 4px;
      font-family: var(--font-mono);
    }

    /* Chat Messages */
    .ai-chat-messages {
      flex: 1;
      padding: 16px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
      scroll-behavior: smooth;
    }

    .ai-chat-messages::-webkit-scrollbar {
      width: 4px;
    }

    .ai-chat-messages::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 2px;
    }

    .ai-msg {
      display: flex;
      flex-direction: column;
      max-width: 86%;
    }

    .ai-msg.bot {
      align-self: flex-start;
    }

    .ai-msg.user {
      align-self: flex-end;
    }

    .msg-bubble {
      padding: 10px 14px;
      border-radius: 10px;
      font-size: 12px;
      line-height: 1.65;
      word-break: break-word;
    }

    .ai-msg.bot .msg-bubble {
      background: rgba(255, 255, 255, 0.06);
      color: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-top-left-radius: 2px;
    }

    .ai-msg.user .msg-bubble {
      background: var(--wine);
      color: var(--white);
      border-top-right-radius: 2px;
    }

    .msg-bubble strong {
      color: var(--wine-light);
    }

    .ai-msg.user .msg-bubble strong {
      color: #fff;
    }

    .msg-bubble ul {
      margin-left: 16px;
      margin-top: 6px;
    }

    .msg-bubble li {
      margin-bottom: 4px;
    }

    /* Quick Pills removed */

    /* Chat Footer */
    .ai-chat-footer {
      padding: 10px 12px;
      background: #14141a;
      display: flex;
      align-items: center;
      gap: 8px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      flex-shrink: 0;
    }

    .ai-chat-footer input {
      flex: 1;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #fff;
      font-size: 12px;
      padding: 8px 12px;
      border-radius: 20px;
      outline: none;
      transition: border-color 0.2s;
    }

    .ai-chat-footer input:focus {
      border-color: var(--wine-light);
    }

    .ai-send-btn {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--wine);
      border: none;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.2s, background 0.2s;
      flex-shrink: 0;
    }

    .ai-send-btn:hover {
      background: var(--wine-mid);
      transform: scale(1.05);
    }

    .ai-send-btn svg {
      width: 14px;
      height: 14px;
    }

    /* ─── TWO-PANEL EXPERIENCE & EDUCATION LAYOUT (Equal Box Size & Centered Separation) ─ */
    .exp-panels-container {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 32px;
      align-items: stretch;
      width: 100%;
    }

    @media (max-width: 980px) {
      .exp-panels-container {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .exp-card-panel {
        height: auto !important;
      }

      .exp-scroll-track {
        max-height: none !important;
      }
    }

    .exp-card-panel {
      background: var(--white);
      border: 1px solid #ebd9de;
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 4px 20px rgba(122, 32, 72, 0.03);
      position: relative;
      display: flex;
      flex-direction: column;
      height: 560px;
      box-sizing: border-box;
    }

    .exp-card-panel-header {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      color: var(--wine);
      text-transform: uppercase;
      margin-bottom: 18px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--wine-tint);
      flex-shrink: 0;
    }

    .exp-card-panel-icon {
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* Left panel scroll container: only work experience & freelance scrolls! */
    .exp-scroll-track {
      flex: 1;
      height: calc(100% - 40px);
      overflow-y: auto;
      overflow-x: hidden;
      padding-right: 14px;
      scrollbar-width: thin;
      scrollbar-color: var(--wine) transparent;
    }

    /* Minimal dark line on the right that slides as you scroll (no buttons, transparent track) */
    .exp-scroll-track::-webkit-scrollbar {
      width: 3px;
    }

    .exp-scroll-track::-webkit-scrollbar-button {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    .exp-scroll-track::-webkit-scrollbar-track {
      background: transparent !important;
      border: none !important;
    }

    .exp-scroll-track::-webkit-scrollbar-track-piece {
      background: transparent !important;
    }

    .exp-scroll-track::-webkit-scrollbar-thumb {
      background: var(--wine) !important;
      border-radius: 3px;
      min-height: 40px;
    }

    .exp-scroll-track::-webkit-scrollbar-thumb:hover {
      background: var(--wine-dark) !important;
    }

    .exp-scroll-track::-webkit-scrollbar-corner {
      background: transparent !important;
    }

    /* Right panel static container: education stays fixed in place without scrolling, exact same box size! */
    .exp-static-track {
      flex: 1;
      height: calc(100% - 40px);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding-top: 4px;
    }

    .exp-static-track .exp-step-timeline {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .exp-static-track .exp-step-item {
      margin-bottom: 0;
    }

    .exp-step-timeline {
      position: relative;
      padding-left: 36px;
    }

    .exp-step-timeline::before {
      content: '';
      position: absolute;
      left: 12px;
      top: 14px;
      bottom: 24px;
      width: 2px;
      background: var(--border);
      z-index: 1;
    }

    .exp-step-item {
      position: relative;
      margin-bottom: 22px;
    }

    .exp-step-item:last-child {
      margin-bottom: 0;
    }

    .exp-step-badge {
      position: absolute;
      left: -36px;
      top: 0;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: var(--wine);
      color: var(--white);
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--wine-pale);
      z-index: 2;
    }

    .exp-step-badge.icon-badge {
      font-size: 13px;
    }

    .exp-step-top {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 4px;
      gap: 12px;
    }

    .exp-step-tag {
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: var(--wine);
      text-transform: uppercase;
    }

    .exp-step-date {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--gray-light);
      letter-spacing: 0.05em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .exp-step-title {
      font-family: var(--font-serif);
      font-size: 18px;
      font-weight: 700;
      color: var(--charcoal);
      margin-bottom: 3px;
      line-height: 1.25;
    }

    .exp-step-sub {
      font-size: 11px;
      color: var(--gray-mid);
      font-family: var(--font-mono);
      margin-bottom: 8px;
    }

    .exp-step-bullets {
      list-style: none;
      padding: 0;
      margin: 0 0 8px 0;
    }

    .exp-step-bullets li {
      font-size: 12px;
      color: var(--gray-mid);
      line-height: 1.5;
      position: relative;
      padding-left: 14px;
      margin-bottom: 3px;
    }

    .exp-step-bullets li::before {
      content: '•';
      position: absolute;
      left: 0;
      color: var(--wine);
      font-weight: bold;
    }

    .exp-step-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 6px;
    }

    .exp-pill {
      font-family: var(--font-mono);
      font-size: 10px;
      padding: 2px 7px;
      background: var(--wine-tint);
      color: var(--wine-dark);
      border: 1px solid var(--border);
      border-radius: 4px;
    }

    .exp-score-badge {
      font-family: var(--font-serif);
      font-size: 20px;
      font-weight: 700;
      color: var(--wine);
      text-align: right;
      line-height: 1;
    }

    .exp-score-badge em {
      display: block;
      font-family: var(--font-mono);
      font-size: 9px;
      font-style: normal;
      color: var(--gray-mid);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-top: 2px;
    }

    /* ─── LIVE PREVIEW & APK AUDIT MODAL ───────────────────────── */
    .preview-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: rgba(15, 15, 20, 0.85);
      backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .preview-modal-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .preview-modal-container {
      width: 90vw;
      max-width: 1000px;
      height: 85vh;
      background: #181820;
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    }

    .preview-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 20px;
      background: #111116;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .preview-modal-title {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--wine-light);
      font-weight: 600;
      letter-spacing: 0.05em;
    }

    .preview-modal-actions {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .preview-ctrl-btn {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #fff;
      font-family: var(--font-mono);
      font-size: 11px;
      padding: 5px 10px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .preview-ctrl-btn:hover {
      background: rgba(255, 255, 255, 0.18);
    }

    .preview-modal-close-btn {
      background: transparent;
      border: none;
      color: #fff;
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
      padding: 0 4px;
      opacity: 0.7;
    }

    .preview-modal-close-btn:hover {
      opacity: 1;
    }

    .preview-modal-body {
      flex: 1;
      position: relative;
      background: #0d0d12;
      display: flex;
      overflow: hidden;
    }

    .preview-modal-body iframe {
      width: 100%;
      height: 100%;
      border: none;
      background: #fff;
    }

    .proj-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-top: 8px;
    }

    .proj-live-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      background: var(--wine);
      border: 1px solid var(--wine);
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      color: var(--white);
      text-decoration: none;
      letter-spacing: 0.05em;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .proj-live-btn:hover {
      background: var(--wine-dark);
      border-color: var(--wine-dark);
      transform: translateY(-1px);
    }

    /* ─── QUICK QUESTION CHIPS & ANCHOR BUTTONS IN CHAT ──────── */
    .ai-quick-pills-row {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding: 8px 12px;
      background: #1f1f28;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      flex-shrink: 0;
      scrollbar-width: none;
    }

    .ai-quick-pills-row::-webkit-scrollbar {
      display: none;
    }

    .ai-quick-pill {
      font-family: var(--font-mono);
      font-size: 10px;
      padding: 4px 10px;
      background: rgba(122, 32, 72, 0.2);
      border: 1px solid rgba(122, 32, 72, 0.4);
      color: var(--wine-pale);
      border-radius: 12px;
      white-space: nowrap;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .ai-quick-pill:hover {
      background: var(--wine);
      color: #fff;
    }

    .ai-project-anchor-btn {
      margin-top: 6px;
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 4px;
      background: rgba(122, 32, 72, 0.25);
      border: 1px solid var(--wine-light);
      color: var(--wine-pale);
      font-family: var(--font-mono);
      font-size: 11px;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s ease;
    }

    .ai-project-anchor-btn:hover {
      background: var(--wine);
      color: #fff;
    }

    /* Contact page on phones: keep everything clear of the AI Twin button */
    @media (max-width: 600px) {
      #section-label-hud {
        display: none;
      }

      .contact-header {
        margin-bottom: 12px;
      }

      .contact-links {
        gap: 8px;
      }

      .contact-link-row {
        padding: 8px 14px;
        gap: 12px;
      }

      .achievements-strip {
        margin-top: 12px;
      }
    }

    /* ─── SEPARATE PAGES ─────────────────────────────────────── */
    /* The home page (body.one-page) keeps the sliding sections */
    body:not(.one-page) .slide {
      transform: none;
      transition: none;
      will-change: auto;
    }

    #slides-wrapper {
      animation: page-in 0.35s ease-out;
    }

    @keyframes page-in {
      from {
        opacity: 0;
      }
    }

    #navToggle,
    .mobile-pager {
      display: none;
    }

    /* ─── PHONES & SMALL TABLETS: normal scrolling, whole page reachable ── */
    @media (max-width: 980px) {

      /* Skills: 2 per row on tablets and large phones, last card centred */
      .skill-category {
        flex-basis: calc((100% - 16px) / 2);
      }

      /* The page itself is the only scroller: no nested scroll areas on phones */
      html {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
      }

      body {
        height: auto;
        overflow: visible;
      }

      .exp-card-panel {
        height: auto;
      }

      .exp-scroll-track {
        flex: none;
        height: auto;
        overflow: visible;
        padding-right: 0;
      }

      #slides-wrapper {
        position: static;
        height: auto;
        animation: none;
      }

      .slide {
        position: relative;
        inset: auto;
        height: auto;
        min-height: calc(100svh - 64px);
        overflow: visible;
        padding: 90px 0 24px;
      }

      /* Home on phones: every section stacked in one long page */
      .one-page .slide,
      .one-page .slide.active,
      .one-page .slide.above {
        transform: none;
        transition: none;
      }

      /* Content appears at once, even on slow phones */
      .slide * {
        transition-duration: 0s !important;
        transition-delay: 0s !important;
      }

      #nav-dots,
      #section-label-hud,
      #slide-counter,
      #scroll-hint {
        display: none !important;
      }

      .mobile-pager {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 16px 96px;
        border-top: 1px solid var(--border);
      }

      .mobile-pager a {
        color: var(--wine);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        padding: 10px 0;
      }
    }

    @media (max-width: 560px) {
      .skill-category {
        flex-basis: 100%;
      }
    }

    @media (max-width: 768px) {
      #navToggle {
        display: block;
        background: none;
        border: 1px solid rgba(255, 255, 255, 0.4);
        color: var(--white);
        font-size: 20px;
        line-height: 1;
        padding: 6px 10px;
        cursor: pointer;
      }

      .nav-links.open {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 8px 16px 16px;
        background: var(--wine-dark);
      }

      .nav-links.open li a {
        display: block;
        padding: 12px 0;
      }
    }

    /* ─── TOUCH & PRESS FEEDBACK ─────────────────────────────── */
    a,
    button,
    .dot,
    .cert-card {
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    /* Buttons answer the moment they are pressed, not on release */
    .btn-primary:active,
    .btn-outline:active,
    .resume-btn:active,
    .proj-nav-btn:active:not(:disabled),
    .proj-live-btn:active,
    .proj-apk-link:active,
    .proj-link:active,
    .ai-quick-pill:active,
    .contact-link-row:active,
    .cert-card:active,
    #navToggle:active,
    #ai-twin-trigger:active {
      transform: scale(0.97);
      transition: transform 100ms ease-out;
    }

    a:focus-visible,
    button:focus-visible {
      outline: 2px solid var(--wine-light);
      outline-offset: 2px;
    }

    .projects-slider-wrapper {
      touch-action: pan-y;
    }

    /* Nav stays solid dark wine on every page and background */
    #topnav {
      background: var(--wine-dark);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    /* Says where releasing a swipe will go */
    #page-hint {
      position: fixed;
      left: 50%;
      z-index: 998;
      padding: 8px 16px;
      border-radius: 999px;
      background: rgba(90, 21, 52, 0.86);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      backdrop-filter: blur(16px) saturate(180%);
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      opacity: 0;
      pointer-events: none;
      transform: translateX(-50%) scale(0.94);
      transition: transform 120ms ease-out;
    }

    #page-hint[data-side="top"] {
      top: 76px;
    }

    #page-hint[data-side="bottom"] {
      bottom: 88px;
    }

    #page-hint.armed {
      transform: translateX(-50%) scale(1.04);
    }

    @media (max-width: 560px) {
      .skill-category {
        flex-basis: 100%;
      }
    }

    @media (max-width: 768px) {
      #navToggle {
        min-width: 44px;
        min-height: 44px;
      }

      .nav-links.open li a,
      .mobile-pager a,
      .proj-nav-btn {
        min-height: 44px;
      }
    }

    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    @media (prefers-reduced-transparency: reduce) {

      #topnav,
      #page-hint {
        background: var(--wine-dark);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
      }
    }

    @media (prefers-contrast: more) {

      #topnav,
      #page-hint {
        background: var(--wine-dark);
        border-bottom: 1px solid #fff;
      }
    }