:root {
  /* Dark palette */
  --bg:        #0A0A0A;
  --surface:   #111111;
  --surface-2: #181818;
  --surface-3: #222222;
  --border:    rgba(255,255,255,0.07);
  --border-md: rgba(255,255,255,0.12);
  --text:      #F0F0F0;
  --text-2:    #C0C0C0;
  --muted:     #707070;

  --accent: #6EE7B7;
  --accent-text: var(--accent);
  --accent-dim: rgba(110,231,183,0.12);
  --accent-mid: rgba(110,231,183,0.30);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Easing */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-layers */
  --z-noise:   1;
  --z-content: 10;
  --z-nav:     100;
  --z-toast:   1000;
  --z-modal:   2000;
  --z-cursor:  9999;

  /* Spacing scale */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --s8: 8rem;
}

[data-theme="light"] {
  --bg:        #F6F6F4;
  --surface:   #FFFFFF;
  --surface-2: #EFEFED;
  --surface-3: #E4E4E2;
  --border:    rgba(0,0,0,0.08);
  --border-md: rgba(0,0,0,0.14);
  --text:      #111111;
  --text-2:    #333333;
  --muted:     #888888;
  --accent-text: color-mix(in srgb, var(--accent) 100%, black 50%);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

body {
  overflow-x: hidden;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 28rem at 8% -8%, var(--accent-dim), transparent 60%),
    radial-gradient(52rem 26rem at 92% 108%, var(--accent-dim), transparent 62%);
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

a { color: inherit; text-decoration: none; cursor: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: none; outline: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
  cursor: auto;
}

@media (max-width: 768px) {
  html, a, button { cursor: auto; }

  .nav-inner { padding: 0 5%; }
  .nav-links { display: none; }
  .nav-actions .btn-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 420px) {
  .logo { font-size: 0.95rem; }
  .hero-status {
    font-size: 0.68rem;
    padding: 0.35rem 0.75rem;
    gap: 6px;
  }
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  position: relative;
  z-index: var(--z-content);
}

section {
  padding: clamp(6.25rem, 12vw, 9.25rem) 0;
  scroll-margin-top: 86px;
}
section:first-of-type { padding-top: 0; }
section + section {
  padding-top: clamp(8rem, 15vw, 11rem);
}
section + section .section-header {
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
footer { padding: 6rem 0 3rem; scroll-margin-top: 86px; }

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%,-50%);
  transition: width .2s var(--ease), height .2s var(--ease), opacity .2s;
}
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--accent-text);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%,-50%);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .35s, opacity .2s;
  opacity: 0.5;
}
#cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: var(--accent-text);
  opacity: 0.9;
  background: var(--accent-dim);
}
#cursor-dot.click { transform: translate(-50%,-50%) scale(0.5); }

@media (max-width: 768px) {
  #cursor-dot, #cursor-ring { display: none !important; }
}

#noise-canvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: var(--z-noise);
  opacity: 0.028;
}
[data-theme="light"] #noise-canvas { opacity: 0.045; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 60ms; }
.d2 { transition-delay: 130ms; }
.d3 { transition-delay: 200ms; }
.d4 { transition-delay: 270ms; }

#navbar {
      position: fixed; top: 0; left: 0; width: 100%;
      height: 64px;
      z-index: var(--z-nav);
      backdrop-filter: blur(24px) saturate(160%);
      -webkit-backdrop-filter: blur(24px) saturate(160%);
      background: rgba(10,10,10,0.72);
      border-bottom: 1px solid var(--border);
      display: flex; align-items: center;
      opacity: 0;
      animation: navIn .7s var(--ease) .25s forwards;
      transition: background .4s var(--ease), border-color .4s var(--ease);
    }
    [data-theme="light"] #navbar {
      background: rgba(246,246,244,0.78);
    }
    @keyframes navIn { to { opacity: 1; } }

    .nav-inner {
      width: 100%; max-width: 1160px;
      margin: 0 auto; padding: 0 5%;
      display: flex; justify-content: space-between; align-items: center;
    }

    /* Logo */
    .logo {
      font-family: var(--font-display);
      font-size: 1.05rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      display: flex; align-items: center;
      color: var(--text);
    }
    .logo-cursor {
      display: inline-block;
      width: 7px; height: 1.1em;
      background: var(--accent);
      margin-left: 3px;
      vertical-align: middle;
      animation: blink 1.1s step-end infinite;
    }
    @keyframes blink { 50% { opacity: 0; } }

    /* Nav links */
    .nav-links {
      display: flex; gap: 2.25rem; align-items: center;
    }
    .nav-links a {
      font-size: 0.8rem;
      color: var(--muted);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      transition: color .25s;
      position: relative;
      padding-bottom: 2px;
    }
    .nav-links a::after {
      content: '';
      position: absolute; bottom: -2px; left: 0;
      width: 0; height: 1px;
      background: var(--accent);
      transition: width .3s var(--ease);
    }
    .nav-links a:hover, .nav-links a.active {
      color: var(--text);
    }
    .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

    /* Nav actions */
    .nav-actions { display: flex; gap: var(--s2); align-items: center; }

    /* Hamburger (mobile menu trigger) */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 34px; height: 34px;
      padding: 0;
      border-radius: 6px;
      flex-shrink: 0;
    }
    .hamburger span {
      display: block;
      width: 20px; height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: transform .3s var(--ease), opacity .3s var(--ease);
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Mobile dropdown menu */
    .mobile-menu {
      position: fixed;
      top: 64px; left: 0; right: 0;
      display: flex;
      flex-direction: column;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 16px 32px rgba(0,0,0,0.18);
      z-index: var(--z-nav);
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height .4s var(--ease), opacity .3s var(--ease);
      pointer-events: none;
    }
    .mobile-menu.open {
      max-height: calc(100vh - 64px);
      opacity: 1;
      pointer-events: auto;
      overflow-y: auto;
    }
    .mobile-link {
      padding: 1.05rem 6%;
      font-size: 0.95rem;
      letter-spacing: 0.02em;
      color: var(--text-2);
      border-bottom: 1px solid var(--border);
      transition: color .2s, background .2s, padding-left .2s;
    }
    .mobile-link:hover, .mobile-link:active {
      color: var(--accent-text);
      background: var(--surface);
      padding-left: 8%;
    }
    .mobile-link-cta {
      color: var(--accent-text);
      font-weight: 600;
      border-bottom: none;
    }

    .theme-toggle {
      width: 34px; height: 34px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--muted);
      transition: color .25s, background .25s;
    }
    .theme-toggle:hover { color: var(--accent-text); background: var(--surface-2); }

    /* CTA Button */
    .btn-cta {
      display: inline-flex; align-items: center; gap: 6px;
      border: 1px solid var(--accent-text);
      color: var(--accent-text);
      padding: 0.45rem 1.2rem;
      font-size: 0.78rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      border-radius: 2px;
      transition: color .35s var(--ease), background .35s var(--ease);
      position: relative; overflow: hidden; z-index: 1;
    }
    .btn-cta::before {
      content: '';
      position: absolute; top: 0; left: -100%;
      width: 100%; height: 100%;
      background: var(--accent);
      z-index: -1;
      transition: left .35s var(--ease);
    }
    .btn-cta:hover { color: var(--bg); }
    .btn-cta:hover::before { left: 0; }

    .btn-solid {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--bg);
    }
    .btn-solid:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      pointer-events: none;
    }
    .btn-solid::before {
      background: var(--surface);
    }
    .btn-solid:hover {
      color: var(--text);
    }

    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      position: relative;
      padding-top: 96px;
    }

    .hero-content {
      max-width: min(820px, calc(100% - clamp(0px, 26vw, 320px)));
      position: relative;
      z-index: 2;
    }

    .hero-portrait {
      position: absolute;
      top: 50%;
      right: clamp(0rem, 1.5vw, 1rem);
      transform: translateY(-50%);
      width: clamp(220px, 28vw, 380px);
      aspect-ratio: 3 / 4;
      border-radius: 14px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
      opacity: 0;
      animation: fadeUp .9s var(--ease) 1.8s forwards;
      z-index: 0;
      perspective: 1400px;
      cursor: pointer;
    }
    .hero-portrait .card-inner {
      border-radius: 14px;
    }
    .hero-portrait .card-front,
    .hero-portrait .card-back {
      border-radius: 14px;
      border: 1px solid var(--border-md);
      overflow: hidden;
    }
    /* Gradient fade on left edge so it bleeds naturally into the bg (front face only) */
    .hero-portrait .card-front::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(to right, var(--bg) 0%, transparent 35%);
      z-index: 2;
      pointer-events: none;
    }
    .hero-portrait .card-front::after {
      content: '';
      position: absolute;
      top: -1px; left: -1px;
      width: 40px; height: 40px;
      border-top: 2px solid var(--accent);
      border-left: 2px solid var(--accent);
      z-index: 3;
      pointer-events: none;
    }
    .hero-portrait img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center 18%;
      filter: grayscale(20%) brightness(0.88);
      transition: filter .5s, transform .6s var(--ease);
    }
    .hero-portrait:hover img {
      filter: grayscale(0%) brightness(1);
      transform: scale(1.03);
    }

    /* Hide portrait on small screens to avoid overlap with text */
    @media (max-width: 860px) { .hero-portrait { display: none; } }

    /* Fly out / fly in transition for sending the card */
    .hero-portrait.flying-out {
      animation: cardFlyOut .6s cubic-bezier(0.4,0,0.6,1) forwards;
    }
    .hero-portrait.flying-in {
      animation: cardFlyIn .6s var(--ease) forwards;
    }
    @keyframes cardFlyOut {
      to { transform: translateY(-50%) translateX(140%) rotate(18deg); opacity: 0; }
    }
    @keyframes cardFlyIn {
      from { transform: translateY(-50%) translateX(140%) rotate(18deg); opacity: 0; }
      to   { transform: translateY(-50%) translateX(0) rotate(0deg); opacity: 1; }
    }

    /* ─── BUSINESS CARD (back face) ─── */
    .hero-portrait .card-back {
      background: var(--surface);
      padding: 1.4rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .bc-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .bc-mark {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 1.1rem;
      color: var(--accent-text);
      letter-spacing: 0.02em;
    }
    .bc-tag {
      font-size: 0.65rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      border: 1px solid var(--border-md);
      padding: 0.2rem 0.55rem;
      border-radius: 100px;
    }
    .bc-mid { margin: var(--s2) 0; }
    .bc-name {
      font-size: 1.3rem;
      margin-bottom: 0.25rem;
      color: var(--text);
    }
    .bc-role {
      font-size: 0.78rem;
      color: var(--muted);
      line-height: 1.4;
    }
    .bc-contact {
      display: flex;
      flex-direction: column;
      gap: 3px;
      font-size: 0.72rem;
      color: var(--text-2);
      margin-bottom: var(--s2);
    }
    .bc-actions {
      display: flex;
      gap: 0.5rem;
    }
    .bc-send-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      flex: 1;
      min-width: 0;
      background: var(--accent);
      color: var(--bg);
      border: 1px solid var(--accent);
      border-radius: 4px;
      padding: 0.55rem 0.9rem;
      font-size: 0.74rem;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      cursor: pointer;
      transition: transform .25s var(--ease), opacity .25s;
    }
    .bc-send-btn:hover { transform: translateY(-2px); opacity: 0.92; }
    .bc-download-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      width: 38px;
      background: transparent;
      color: var(--text-2);
      border: 1px solid var(--border-md);
      border-radius: 4px;
      cursor: pointer;
      transition: transform .25s var(--ease), color .25s, border-color .25s;
    }
    .bc-download-btn:hover {
      transform: translateY(-2px);
      color: var(--accent-text);
      border-color: var(--accent-text);
    }

    /* ─── MODALS ─── */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: var(--z-modal);
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s var(--ease);
      padding: var(--s3);
    }
    .modal-overlay.open { opacity: 1; pointer-events: auto; }
    .modal-box {
      background: var(--surface);
      border: 1px solid var(--border-md);
      border-radius: 10px;
      padding: var(--s5);
      max-width: 420px;
      width: 100%;
      position: relative;
      transform: translateY(16px) scale(0.97);
      transition: transform .35s var(--ease);
      box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    }
    .modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
    .modal-box-lg { max-width: 540px; }
    .modal-close {
      position: absolute;
      top: 14px; right: 14px;
      width: 28px; height: 28px;
      border-radius: 50%;
      font-size: 1.3rem;
      line-height: 1;
      color: var(--muted);
      cursor: pointer;
      transition: color .2s, background .2s;
    }
    .modal-close:hover { color: var(--text); background: var(--surface-2); }
    .modal-title { font-size: 1.4rem; margin-bottom: 0.4rem; padding-right: var(--s4); }
    .modal-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s4); line-height: 1.55; }
    .modal-form { display: flex; flex-direction: column; gap: var(--s3); }
    .modal-form input,
    .modal-form select,
    .modal-form textarea {
      width: 100%;
      padding: 0.7rem 0.85rem;
      background: var(--bg);
      border: 1px solid var(--border-md);
      border-radius: 5px;
      color: var(--text);
      font-family: inherit;
      font-size: 0.88rem;
      outline: none;
      transition: border-color .25s;
    }
    .modal-form input:focus,
    .modal-form select:focus,
    .modal-form textarea:focus { border-color: var(--accent); }
    .modal-form textarea { resize: none; }
    .modal-form .btn-solid {
      border: none;
      border-radius: 5px;
      padding: 0.75rem;
      font-size: 0.85rem;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      cursor: pointer;
    }
    .form-row-split {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--s2);
    }
    @media (min-width: 480px) {
      .form-row-split { grid-template-columns: 1fr 1fr; }
    }

    /* About photo */
    .about-photo-wrap {
      position: relative;
      width: 100%;
      max-width: 320px;
      margin: 0 auto var(--s4);
    }
    @media (min-width: 900px) { .about-photo-wrap { margin: 0 0 var(--s4); } }

    .about-photo {
      width: 100%;
      aspect-ratio: 4 / 5;
      border-radius: 6px;
      overflow: hidden;
      position: relative;
    }
    /* Accent border frame offset */
    .about-photo::before {
      content: '';
      position: absolute;
      inset: -6px;
      border: 1px solid var(--accent-mid);
      border-radius: 8px;
      z-index: -1;
    }
    /* Bottom-right bracket */
    .about-photo::after {
      content: '';
      position: absolute;
      bottom: -1px; right: -1px;
      width: 36px; height: 36px;
      border-bottom: 2px solid var(--accent);
      border-right: 2px solid var(--accent);
      z-index: 3;
      pointer-events: none;
    }
    .about-photo img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center top;
      filter: grayscale(15%) brightness(0.9);
      transition: filter .5s var(--ease), transform .6s var(--ease);
    }
    .about-photo:hover img {
      filter: grayscale(0%) brightness(1);
      transform: scale(1.03);
    }

    .hero-greeting {
      display: inline-flex; align-items: center; gap: 10px;
      font-size: 0.82rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent-text);
      margin-bottom: var(--s2);
      opacity: 0;
      animation: fadeUp .7s var(--ease) .55s forwards;
    }
    .hero-greeting-line {
      width: 32px; height: 1px;
      background: var(--accent);
    }

    .hero-title {
      font-size: clamp(2.8rem, 8vw, 6.5rem);
      line-height: 1.0;
      margin-bottom: var(--s2);
      overflow: hidden;
    }
    .char {
      display: inline-block;
      opacity: 0;
      transform: translateY(110%);
    }
    @keyframes charIn {
      to { opacity: 1; transform: translateY(0); }
    }

    .hero-subtitle {
      font-size: clamp(1.2rem, 3.5vw, 2.4rem);
      color: var(--muted);
      font-family: var(--font-display);
      font-weight: 400;
      margin-bottom: var(--s3);
      opacity: 0;
      transform: translateY(18px);
    }
    .hero-subtitle.a {
      transition: opacity .8s var(--ease) 1.2s, transform .8s var(--ease) 1.2s;
      opacity: 1; transform: translateY(0);
    }

    .hero-tagline {
      font-size: 1rem;
      color: var(--muted);
      max-width: 480px;
      line-height: 1.75;
      margin-bottom: var(--s5);
      opacity: 0; transform: translateY(18px);
    }
    .hero-tagline.a {
      transition: opacity .8s var(--ease) 1.4s, transform .8s var(--ease) 1.4s;
      opacity: 1; transform: translateY(0);
    }

    .hero-ctas {
      display: flex; flex-wrap: wrap; gap: var(--s2);
      opacity: 0; transform: translateY(18px);
    }
    .hero-ctas.a {
      transition: opacity .8s var(--ease) 1.6s, transform .8s var(--ease) 1.6s;
      opacity: 1; transform: translateY(0);
    }

    /* Scroll indicator */
    .scroll-indicator {
      position: absolute; bottom: 40px; left: 5%;
      display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
      color: var(--muted); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
      opacity: 0;
    }
    .scroll-indicator.a { animation: fadeUp .9s var(--ease) 2s forwards; }
    .scroll-line {
      width: 1px; height: 48px;
      background: linear-gradient(to bottom, var(--accent), transparent);
      animation: scrollDrop 2.2s ease-in-out infinite;
    }
    @keyframes scrollDrop {
      0%   { transform: scaleY(0); transform-origin: top; }
      45%  { transform: scaleY(1); transform-origin: top; }
      55%  { transform: scaleY(1); transform-origin: bottom; }
      100% { transform: scaleY(0); transform-origin: bottom; }
    }

    /* hero status pill */
    .hero-status {
      display: inline-flex; align-items: center; gap: 8px;
      border: 1px solid var(--border-md);
      background: var(--surface);
      padding: 0.4rem 0.9rem;
      border-radius: 100px;
      font-size: 0.75rem;
      color: var(--text-2);
      margin-bottom: var(--s3);
      opacity: 0;
      animation: fadeUp .7s var(--ease) .4s forwards;
      max-width: 100%;
    }
    .hero-status span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .status-dot {
      width: 7px; height: 7px;
      background: #4ade80;
      border-radius: 50%;
      animation: pulse-dot 2.5s ease-in-out infinite;
      box-shadow: 0 0 0 0 rgba(74,222,128,0.4);
    }
    @keyframes pulse-dot {
      0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
      50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
    }

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

    .section-header {
      display: flex; align-items: center; gap: var(--s2);
      margin-bottom: var(--s5);
    }
    .section-number {
      font-size: 0.75rem;
      color: var(--accent-text);
      font-family: var(--font-mono);
      letter-spacing: 0.06em;
      opacity: 0.8;
    }
    .section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
    .section-line {
      flex: 1; height: 1px;
      background: linear-gradient(to right, var(--border-md), transparent);
      max-width: 280px;
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--s6);
      align-items: start;
    }
    @media (min-width: 900px) {
      .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s6); }
    }

    .bio-text {
      font-size: 1.05rem;
      color: var(--text-2);
      line-height: 1.85;
      margin-bottom: var(--s4);
    }

    .pull-quote {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 600;
      font-style: italic;
      color: var(--text);
      border-left: 2px solid var(--accent);
      padding-left: var(--s3);
      margin: var(--s3) 0 0;
      line-height: 1.5;
    }

    /* Stats panel */
    .stats-panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: var(--s5);
      position: relative;
      overflow: hidden;
    }
    .stats-panel::after {
      content: '';
      position: absolute; top: 0; left: 0; right: 0; height: 1px;
      background: linear-gradient(to right, transparent, var(--accent), transparent);
    }

    .available-badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--accent-dim);
      border: 1px solid var(--accent-mid);
      color: var(--accent-text);
      padding: 0.4rem 0.9rem;
      border-radius: 100px;
      font-size: 0.75rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: var(--s4);
    }
    .available-dot {
      width: 6px; height: 6px;
      background: var(--accent);
      border-radius: 50%;
      animation: pulse-dot 2.5s ease-in-out infinite;
      box-shadow: 0 0 0 0 var(--accent-mid);
    }
    @keyframes pulse-dot {
      0%,100% { box-shadow: 0 0 0 0 var(--accent-mid); }
      50%      { box-shadow: 0 0 0 5px transparent; }
    }

    .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }

    .stat-item { flex: 1; }
    .stat-number {
      font-family: var(--font-display);
      font-size: 3.2rem; font-weight: 800;
      line-height: 1;
      color: var(--text);
      margin-bottom: 0.3rem;
    }
    .stat-label {
      font-size: 0.78rem;
      color: var(--muted);
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .project-filters {
      display: flex; flex-wrap: wrap; gap: 0.5rem;
      margin-bottom: var(--s4);
    }
    .filter-btn {
      font-size: 0.78rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
      padding: 0.35rem 0.85rem;
      border: 1px solid var(--border);
      border-radius: 2px;
      transition: all .25s;
    }
    .filter-btn:hover { border-color: var(--accent-text); color: var(--accent-text); }
    .filter-btn.active {
      background: var(--accent);
      color: var(--bg);
      border-color: var(--accent-text);
    }

    /* Featured */
    .featured-projects { display: flex; flex-direction: column; gap: var(--s4); margin-bottom: var(--s5); }

    .featured-card {
      display: grid;
      grid-template-columns: 1fr;
      border: 1px solid var(--border);
      border-radius: 6px;
      overflow: hidden;
      background: var(--surface);
      transition: transform .5s var(--ease), border-color .4s;
    }
    @media (min-width: 900px) {
      .featured-card { grid-template-columns: 1.4fr 1fr; }
      .featured-card:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
      .featured-card:nth-child(even) .fc-content { order: -1; }
    }
    .featured-card:hover { transform: translateY(-5px); border-color: var(--accent-text); }
    .featured-card:hover .fc-image img { transform: scale(1.06); }

    .fc-image {
      width: 100%;
      min-height: 0;
      aspect-ratio: 16 / 10;
      overflow: hidden;
      background: var(--surface-2);
    }
    .fc-image img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center;
      transition: transform .9s var(--ease);
      filter: brightness(0.88);
    }
    .featured-card:hover .fc-image img { filter: brightness(1); }

    .fc-content {
      padding: 2.5rem;
      display: flex; flex-direction: column; justify-content: center;
    }
    @media (min-width: 900px) { .fc-content { padding: 3rem; } }

    .fc-label {
      font-size: 0.72rem;
      color: var(--accent-text);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: var(--s2);
    }
    .fc-title {
      font-size: clamp(1.8rem, 3vw, 2.4rem);
      margin-bottom: var(--s2);
    }
    .fc-desc { color: var(--muted); margin-bottom: var(--s3); font-size: 0.95rem; line-height: 1.75; }

    /* Grid cards */
    .grid-projects {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
      gap: var(--s3);
    }

    .project-card {
      background: var(--surface);
      border: 1px solid var(--border);
      padding: var(--s4);
      border-radius: 6px;
      display: flex; flex-direction: column;
      position: relative; overflow: hidden;
      transition: transform .4s var(--ease), border-color .35s;
    }
    .project-card::before {
      content: '';
      position: absolute; top: 0; left: -1px;
      width: 2px; height: 100%;
      background: var(--accent);
      transform: scaleY(0); transform-origin: bottom;
      transition: transform .4s var(--ease);
    }
    .project-card:hover { transform: translateY(-4px); border-color: var(--border-md); }
    .project-card:hover::before { transform: scaleY(1); }

    .pc-title { font-size: 1.35rem; margin-bottom: 0.75rem; }
    .pc-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.7; flex-grow: 1; margin-bottom: var(--s2); }

    /* Shared */
    .tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--s3); }
    .tech-chip {
      font-size: 0.72rem;
      color: var(--text-2);
      background: var(--surface-2);
      border: 1px solid var(--border);
      padding: 0.2rem 0.65rem;
      border-radius: 100px;
    }
    [data-theme="light"] .tech-chip { background: var(--surface-3); }

    .project-links { display: flex; gap: var(--s3); align-items: center; }
    .project-link {
      font-size: 0.82rem;
      color: var(--muted);
      display: inline-flex; align-items: center; gap: 5px;
      transition: color .25s;
    }
    .project-link:hover { color: var(--accent-text); }
    .project-link svg { width: 13px; height: 13px; }

    .project-card.filter-hide,
    .featured-card.filter-hide { display: none; }

    /* View all CTA */
    .projects-footer {
      display: flex;
      justify-content: center;
      margin-top: var(--s4);
    }
    .btn-ghost {
      display: inline-flex; align-items: center; gap: 8px;
      border: 1px solid var(--border-md);
      color: var(--muted);
      padding: 0.65rem 1.6rem;
      font-size: 0.82rem;
      letter-spacing: 0.04em;
      border-radius: 3px;
      transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
    }
    .btn-ghost:hover {
      color: var(--accent-text);
      border-color: var(--accent-text);
      background: var(--accent-dim);
    }
    .btn-ghost svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
    .btn-ghost:hover svg { transform: translateX(3px); }

    .edu-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--s3);
      max-width: 860px;
    }
    @media (min-width: 700px) {
      .edu-grid { grid-template-columns: 1fr 1fr; }
    }

    .edu-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: var(--s3) var(--s4);
      position: relative;
      overflow: hidden;
      transition: border-color .3s, transform .4s var(--ease);
    }
    .edu-card::before {
      content: '';
      position: absolute; top: 0; left: 0;
      width: 100%; height: 2px;
      background: linear-gradient(to right, var(--accent), transparent);
      opacity: 0;
      transition: opacity .35s;
    }
    .edu-card:hover { border-color: var(--border-md); transform: translateY(-3px); }
    .edu-card:hover::before { opacity: 1; }

    .edu-degree {
      font-family: var(--font-display);
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.25rem;
    }
    .edu-institution {
      font-size: 0.88rem;
      color: var(--accent-text);
      margin-bottom: 0.25rem;
    }
    .edu-meta {
      display: flex; align-items: center; gap: 0.75rem;
      flex-wrap: wrap;
      margin-bottom: 0.6rem;
    }
    .edu-field {
      font-size: 0.8rem;
      color: var(--text-2);
    }
    .edu-period {
      font-size: 0.75rem;
      color: var(--muted);
      background: var(--surface-2);
      padding: 0.15rem 0.55rem;
      border-radius: 100px;
    }
    .edu-grade {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 0.8rem;
      color: var(--accent-text);
      font-weight: 500;
    }
    .edu-notes {
      margin-top: 0.6rem;
      display: flex; flex-direction: column; gap: 4px;
    }
    .edu-note {
      font-size: 0.78rem;
      color: var(--muted);
      display: flex; align-items: flex-start; gap: 6px;
    }
    .edu-note::before {
      content: '->';
      color: var(--accent-text);
      flex-shrink: 0;
      margin-top: 1px;
    }

    /* ACHIEVEMENTS + CERTIFICATIONS (side by side) */
    .ach-cert-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--s4);
    }
    @media (min-width: 800px) {
      .ach-cert-grid { grid-template-columns: 1fr 1fr; }
    }
    .split-panel {
      display: flex;
      flex-direction: column;
      gap: var(--s2);
    }
    .split-title {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--accent-text);
      margin: 0;
    }

    /* Achievement list */
    .achievement-list { display: flex; flex-direction: column; gap: var(--s2); }

    .achievement-item {
      display: flex; align-items: flex-start; gap: var(--s2);
      padding: var(--s2) var(--s3);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      transition: border-color .3s, transform .35s var(--ease);
    }
    .achievement-item:hover { border-color: var(--accent-text); transform: translateX(4px); }

    .achievement-icon {
      width: 32px; height: 32px; flex-shrink: 0;
      background: var(--accent-dim);
      border: 1px solid var(--accent-mid);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.85rem;
      color: var(--accent-text);
      margin-top: 2px;
    }
    .achievement-text {
      font-size: 0.9rem;
      color: var(--text-2);
      line-height: 1.55;
    }

    /* Certifications list */
    .cert-list { display: flex; flex-direction: column; gap: 0.6rem; }

    .cert-item {
      display: flex; align-items: flex-start; gap: var(--s2);
      padding: 0.85rem var(--s3);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      transition: border-color .3s;
    }
    .cert-item:hover { border-color: var(--border-md); }

    .cert-dot {
      width: 6px; height: 6px; flex-shrink: 0;
      background: var(--accent);
      border-radius: 50%;
      margin-top: 6px;
    }
    .cert-info { flex: 1; }
    .cert-name {
      font-size: 0.88rem;
      color: var(--text-2);
      font-weight: 500;
      line-height: 1.4;
    }
    .cert-issuer {
      font-size: 0.75rem;
      color: var(--muted);
      margin-top: 2px;
    }

    /* POSITIONS + LANGUAGES (side by side) */
    .pos-lang-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--s5);
    }
    @media (min-width: 800px) {
      .pos-lang-grid { grid-template-columns: 1.4fr 0.6fr; }
    }

    /* Positions */
    .positions-list { display: flex; flex-direction: column; gap: 0.75rem; }

    .position-item {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 0.5rem var(--s3);
      align-items: start;
      padding: var(--s2) var(--s3);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      transition: border-color .3s, transform .35s var(--ease);
    }
    .position-item:hover { border-color: var(--border-md); transform: translateX(4px); }

    .position-role {
      font-size: 0.9rem;
      color: var(--text-2);
      font-weight: 500;
      line-height: 1.4;
    }
    .position-org {
      font-size: 0.78rem;
      color: var(--muted);
      margin-top: 2px;
      grid-column: 1 / -1;
    }
    .position-period {
      font-size: 0.72rem;
      color: var(--accent-text);
      background: var(--accent-dim);
      border: 1px solid var(--accent-mid);
      padding: 0.15rem 0.55rem;
      border-radius: 100px;
      white-space: nowrap;
      align-self: start;
    }

    /* Languages */
    .language-list { display: flex; flex-direction: column; gap: 0.75rem; }

    .language-item {
      padding: var(--s2) var(--s3);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
    }
    .language-name {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 4px;
    }
    .language-level {
      font-size: 0.78rem;
      color: var(--muted);
    }
    .language-bar {
      height: 2px;
      background: var(--border-md);
      border-radius: 2px;
      margin-top: 8px;
      overflow: hidden;
    }
    .language-fill {
      height: 100%;
      background: linear-gradient(to right, var(--accent), var(--accent-mid));
      border-radius: 2px;
      width: 0;
      transition: width 1.2s var(--ease);
    }

    .timeline {
      position: relative;
      padding-left: var(--s4);
      max-width: 780px;
    }
    .timeline::before {
      content: '';
      position: absolute; top: 0; left: 0;
      width: 1px; height: 100%;
      background: linear-gradient(to bottom, var(--accent), var(--border));
    }

    .timeline-item {
      position: relative;
      margin-bottom: var(--s5);
      padding-left: var(--s2);
    }
    .timeline-item:last-child { margin-bottom: 0; }
    .timeline-item::before {
      content: '';
      position: absolute;
      top: 6px; left: calc(-1 * var(--s4));
      width: 9px; height: 9px;
      background: var(--bg);
      border: 2px solid var(--accent);
      border-radius: 50%;
      transform: translateX(-4px);
      transition: background .3s;
    }
    .timeline-item:hover::before { background: var(--accent); }

    .tl-header {
      display: flex; flex-direction: column;
      margin-bottom: var(--s2);
    }
    @media (min-width: 600px) {
      .tl-header { flex-direction: row; justify-content: space-between; align-items: baseline; }
    }

    .tl-role { font-size: 1.4rem; color: var(--text); margin-bottom: 0.25rem; }
    .tl-company { color: var(--accent-text); font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
    .tl-period {
      font-size: 0.78rem; color: var(--muted);
      font-family: var(--font-mono);
      background: var(--surface-2);
      padding: 0.2rem 0.65rem;
      border-radius: 100px;
      white-space: nowrap;
      align-self: flex-start;
      margin-top: 4px;
    }
    @media (min-width: 600px) { .tl-period { margin-top: 0; } }
    .tl-desc { color: var(--muted); font-size: 0.93rem; line-height: 1.75; }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
      gap: var(--s5);
    }

    .skill-category-title {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--accent-text);
      margin-bottom: var(--s2);
      padding-bottom: 0.6rem;
      border-bottom: 1px solid var(--border);
    }

    .skill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
    .skill-chip {
      border: 1px solid var(--border);
      padding: 0.4rem 0.9rem;
      font-size: 0.82rem;
      color: var(--text-2);
      border-radius: 3px;
      transition: all .25s;
    }
    .skill-chip:hover {
      border-color: var(--accent-text);
      color: var(--accent-text);
      background: var(--accent-dim);
    }

    footer { padding: clamp(4rem, 8vw, 6.5rem) 0 var(--s4); }

    .contact-section { text-align: center; }

    .contact-eyebrow {
      font-size: 0.75rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent-text);
      margin-bottom: var(--s2);
      display: block;
    }

    .contact-cta {
      font-family: var(--font-display);
      font-size: clamp(2rem, 5.2vw, 4.1rem);
      font-weight: 800;
      color: var(--text);
      line-height: 1.05;
      margin-bottom: var(--s4);
    }

    .contact-subtext {
      font-size: 1rem;
      color: var(--muted);
      margin-bottom: var(--s5);
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
    }

    .email-block { margin-bottom: var(--s5); }

    .email-btn {
      display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
    }
    .email-text {
      font-family: var(--font-display);
      font-size: clamp(1.3rem, 3.5vw, 2.2rem);
      font-weight: 700;
      color: var(--accent-text);
      position: relative;
    }
    .email-text::after {
      content: '';
      position: absolute; bottom: -3px; left: 0;
      width: 100%; height: 1px;
      background: var(--accent);
      transform: scaleX(0); transform-origin: right;
      transition: transform .4s var(--ease);
    }
    .email-btn:hover .email-text::after { transform: scaleX(1); transform-origin: left; }

    .email-hint {
      font-size: 0.72rem;
      color: var(--muted);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      opacity: 0;
      transition: opacity .25s;
    }
    .email-btn:hover .email-hint { opacity: 1; }

    .social-links {
      display: flex; justify-content: center; flex-wrap: wrap;
      gap: var(--s4); margin-bottom: var(--s6);
    }
    .social-link {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 0.82rem;
      color: var(--muted);
      letter-spacing: 0.04em;
      text-transform: capitalize;
      transition: color .25s;
      position: relative;
      padding-bottom: 2px;
    }
    .social-link::after {
      content: '';
      position: absolute; bottom: -2px; left: 0;
      width: 0; height: 1px;
      background: var(--accent);
      transition: width .3s var(--ease);
    }
    .social-link:hover { color: var(--accent-text); }
    .social-link:hover::after { width: 100%; }

    .footer-divider {
      width: 100%; height: 1px;
      background: var(--border);
      margin-bottom: var(--s3);
    }

    .footer-bottom {
      display: flex; flex-direction: column;
      align-items: center; gap: var(--s2);
      color: var(--muted); font-size: 0.78rem;
    }
    @media (min-width: 600px) {
      .footer-bottom { flex-direction: row; justify-content: space-between; }
    }

    #toast {
      position: fixed;
      bottom: 28px; left: 50%;
      transform: translateX(-50%) translateY(70px);
      background: var(--accent);
      color: var(--bg);
      padding: 0.7rem 1.6rem;
      border-radius: 3px;
      font-size: 0.85rem;
      font-weight: 500;
      letter-spacing: 0.03em;
      z-index: calc(var(--z-modal) + 10);
      opacity: 0;
      display: flex; align-items: center; gap: 8px;
      transition: transform .4s var(--ease), opacity .4s, background .25s;
      pointer-events: none;
      max-width: calc(100vw - 2.5rem);
    }
    #toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
    #toast.error { background: #ef4444; color: #fff; }
    #toast.error svg { display: none; }

    #back-to-top {
      position: fixed; bottom: 28px; right: 28px;
      width: 42px; height: 42px;
      border: 1px solid var(--border-md);
      background: var(--surface);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--muted);
      z-index: 50;
      opacity: 0; pointer-events: none;
      transform: translateY(16px);
      transition: opacity .3s, transform .3s var(--ease), border-color .25s, color .25s;
    }
    #back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
    #back-to-top:hover { border-color: var(--accent-text); color: var(--accent-text); }

    .section-divider {
      display: flex; align-items: center; gap: var(--s2);
      margin: 0 0 var(--s7);
      color: var(--muted); font-size: 0.7rem;
      letter-spacing: 0.1em; text-transform: uppercase;
    }
    .section-divider::before, .section-divider::after {
      content: ''; flex: 1; height: 1px;
      background: var(--border);
    }

    @media (max-width: 900px) {
      .hero {
        min-height: auto;
        padding-top: 92px;
        padding-bottom: clamp(2rem, 8vw, 4rem);
      }

      .hero-content {
        max-width: 100%;
      }

      .scroll-indicator {
        display: none;
      }
    }

    @media (max-width: 700px) {
      .section-header {
        margin-bottom: clamp(1.75rem, 6vw, 2.4rem);
      }

      .section-line {
        max-width: 120px;
      }

      .stats-panel {
        padding: clamp(1.2rem, 5vw, 1.9rem);
      }

      .stats-grid {
        gap: var(--s3);
      }

      .stat-number {
        font-size: clamp(2rem, 13vw, 2.6rem);
      }

      .fc-content {
        padding: clamp(1.2rem, 5vw, 1.75rem);
      }

      .project-links {
        gap: var(--s2);
        flex-wrap: wrap;
      }

      #back-to-top {
        right: 16px;
        bottom: 16px;
      }
    }


/* =========================================================
   FLIP CARD STYLES (REFINED FOR HOVER)
   ========================================================= */

.flip-container {
  perspective: 1200px;
  cursor: pointer;
  display: block;
  padding: 0;
  background: transparent;
  border: none;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.flip-container:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  width: 100%;
  min-height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-back {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}

/* ─── PROJECT GRID SPECIFICS ─── */
.project-card .card-front,
.project-card .card-back {
  display: flex;
  flex-direction: column;
  padding: var(--s4);
}

.pc-front-bg {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin-bottom: 1rem;
  filter: brightness(0.85);
  transition: filter 0.4s var(--ease);
}
.flip-container:hover .pc-front-bg {
  filter: brightness(1);
}

.pc-title { font-size: 1.35rem; margin-bottom: 0.75rem; }
.pc-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.7; flex-grow: 1; margin-bottom: var(--s2); }

/* ─── FEATURED CARD SPECIFICS ─── */
.featured-card .card-front {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .featured-card .card-front { 
    grid-template-columns: 1.4fr 1fr; 
  }
}

.fc-front-overlay {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card .card-back.fc-content {
  padding: 2.5rem;
}

/* ─── EDUCATION WITH IMAGES ─── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
}

.edu-card {
  display: flex;
  gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s3);
  border-radius: 8px;
  transition: border-color .3s, transform .35s var(--ease);
}
.edu-card:hover { border-color: var(--accent-text); transform: translateY(-4px); }

.edu-img {
  width: 120px;
  height: 120px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid var(--border-md);
}

.edu-card-content { flex: 1; }

@media (max-width: 600px) {
  .edu-card { flex-direction: column; }
  .edu-img { width: 100%; height: 180px; }
}

/* ─── TESTIMONIALS CAROUSEL ─── */
.carousel-container {
  position: relative;
  width: 100%;
  padding-bottom: var(--s4);
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--s2) 0;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}
.carousel-track::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */

.testimonial-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}
@media (min-width: 768px) {
  .testimonial-slide { flex: 0 0 calc(50% - 1rem); }
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s5);
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 10px; left: 20px;
  font-size: 5rem;
  color: var(--accent-dim);
  font-family: serif;
  line-height: 1;
}

.testimonial-quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: var(--s3);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: auto;
}
.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.testimonial-role {
  font-size: 0.85rem;
  color: var(--accent-text);
  margin-top: 4px;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s4);
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all .3s var(--ease);
}
.carousel-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: scale(1.1);
}

/* ─── CONTACT FORM ─── */
.contact-form {
  margin-top: var(--s4);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.form-row {
  margin-bottom: var(--s3);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-md);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .3s;
  outline: none;
}
.contact-form textarea {
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}
.contact-form .btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: var(--s4) auto var(--s5);
  padding: 0.8rem 2.2rem;
  cursor: pointer;
}

/* =========================================================
   FIXES & REFINEMENTS
   ========================================================= */

@media (min-width: 860px) {
  #hero .hero-content {
     max-width: 65%;
  }
  .hero-portrait:not(.flying-out):not(.flying-in) {
     right: 2rem !important;
     left: auto !important;
     transform: translateY(-50%) !important;
     width: 340px !important;
  }
  .hero-portrait.flying-out,
  .hero-portrait.flying-in {
     right: 2rem;
     left: auto;
     width: 340px;
  }
}

#projects {
  padding-top: clamp(8rem, 14vw, 11rem) !important;
}

#skills .contact-cta {
  margin-top: var(--s4);
}
