*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  /* ── PRELOADER ── */
  #preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #080c14;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), visibility 0.8s;
  }

  #preloader.pl-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
  }

  .preloader-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .pl-first {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.06em;
    opacity: 0;
    transform: translateY(22px);
    animation: plUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.15s forwards;
  }

  .pl-last {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.42);
    letter-spacing: 0.06em;
    opacity: 0;
    transform: translateY(22px);
    animation: plUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.35s forwards;
  }

  @keyframes plUp {
    to { opacity: 1; transform: translateY(0); }
  }

  .preloader-track {
    width: 200px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
    opacity: 0;
    animation: plFade 0.4s ease 0.9s forwards;
  }

  .preloader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #2a4494, #c8a96e);
    animation: plFill 1.5s cubic-bezier(0.4,0,0.2,1) 1s forwards;
  }

  .preloader-tagline {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    opacity: 0;
    animation: plFade 0.6s ease 1.1s forwards;
  }

  @keyframes plFade {
    to { opacity: 1; }
  }

  @keyframes plFill {
    to { width: 100%; }
  }

  :root {
    --off-white: #f8f6f2;
    --cream: #f2ede6;
    --warm-mid: #e8e0d5;
    --navy: #1a2744;
    --navy-light: #253459;
    --ink: #1c1c22;
    --ink-mid: #3a3a44;
    --ink-soft: #6b6b78;
    --ink-muted: #9a9aaa;
    --accent: #2a4494;
    --accent-warm: #c8a96e;
    --line: rgba(26,39,68,0.1);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    background: var(--off-white);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: 72px;
    background: rgba(248,246,242,0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
  }

  .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
  }

  .nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mid);
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--navy); }

  .nav-cta {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    border: 1px solid var(--navy);
    padding: 9px 22px;
    transition: background 0.2s, color 0.2s;
  }

  .nav-cta:hover {
    background: var(--navy);
    color: #fff;
  }

  /* ── HERO ── */
  .hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    overflow: hidden;
    background: var(--navy);
  }

  /* Left text panel */
  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 60px 100px 60px;
    position: relative;
    z-index: 2;
  }

  /* Subtle noise texture on left */
  .hero-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 0% 60%, rgba(42,68,148,0.35) 0%, transparent 65%);
    pointer-events: none;
  }

  /* Right video panel */
  .hero-right {
    position: relative;
    overflow: hidden;
    background: var(--navy);
  }

  .hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--navy) 0%, transparent 28%);
    z-index: 1;
    pointer-events: none;
  }

  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /* Keep old overlay class for compat but unused */
  .hero-overlay { display: none; }

  .hero-content {
    display: contents;
  }

  .hero-text {
    position: relative;
    z-index: 2;
  }

  .hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent-warm);
  }

  .hero-name {
    font-family: var(--font-display);
    font-size: clamp(48px, 5.5vw, 84px);
    font-weight: 300;
    line-height: 1.0;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
  }

  .hero-name em {
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
  }

  .hero-title {
    font-family: var(--font-display);
    font-size: clamp(17px, 1.8vw, 24px);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.55);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
  }

  .hero-desc {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255,255,255,0.62);
    max-width: 460px;
    margin-bottom: 44px;
    text-wrap: pretty;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent-warm);
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
  }

  .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
  }

  /* avatar wrap hidden now — video is the right side */
  .hero-avatar-wrap { display: none; }
  .hero-avatar { display: none; }

  /* Hero scroll hint */
  .scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 25%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.35);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
    animation: scrollLine 1.8s ease-in-out infinite;
  }

  @keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
  }

  /* ── SECTIONS ── */
  section { padding: 100px 60px; }

  .container {
    max-width: 1100px;
    margin: 0 auto;
  }

  .section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .section-label::after {
    content: '';
    flex: 1;
    max-width: 48px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
  }

  .section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
  }

  .section-title em { font-style: italic; color: var(--ink-soft); }

  /* ── ABOUT ── */
  #about { background: var(--cream); }

  .about-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 72px;
    align-items: start;
  }

  .about-photo-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .about-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  .about-photo-accent {
    position: absolute;
    top: -14px;
    left: -14px;
    right: 14px;
    bottom: 100px;
    border: 1px solid var(--accent);
    opacity: 0.2;
    pointer-events: none;
  }

  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 0;
  }

  .stat-item {
    background: var(--cream);
    padding: 20px 18px;
  }

  .stat-num {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 300;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
  }

  .stat-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .about-body p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-mid);
    margin-bottom: 20px;
    text-wrap: pretty;
  }

  .about-pull {
    font-family: var(--font-display);
    font-size: 22px;
    font-style: italic;
    font-weight: 300;
    color: var(--navy);
    border-left: 2px solid var(--accent-warm);
    padding-left: 20px;
    margin: 32px 0;
    line-height: 1.5;
  }

  /* ── EXPERTISE ── */
  #expertise { background: var(--off-white); }

  .expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 56px;
  }

  .expertise-card {
    background: var(--off-white);
    padding: 40px 36px;
    transition: background 0.25s;
    cursor: default;
  }

  .expertise-card:hover {
    background: var(--cream);
  }

  .expertise-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 24px;
    color: var(--accent);
  }

  .expertise-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
  }

  .expertise-card p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ink-soft);
  }

  .expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
  }

  .tag {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--accent);
    border: 1px solid rgba(42,68,148,0.2);
    padding: 4px 10px;
    background: rgba(42,68,148,0.04);
  }

  /* ── EXPERIENCE ── */
  #experience { background: var(--navy); }

  #experience .section-label { color: var(--accent-warm); }
  #experience .section-label::after { background: var(--accent-warm); }
  #experience .section-title { color: #fff; }
  #experience .section-title em { color: rgba(255,255,255,0.45); }

  .timeline {
    margin-top: 56px;
    position: relative;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.12);
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    padding: 40px 0 40px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
  }

  .timeline-item:last-child { border-bottom: none; }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 44px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-warm);
    border: 2px solid var(--navy);
  }

  .timeline-meta {}

  .timeline-period {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 8px;
  }

  .timeline-company {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    font-style: italic;
  }

  .timeline-role {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 300;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .timeline-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    text-wrap: pretty;
  }

  /* ── EDUCATION ── */
  #education { background: var(--cream); }

  .education-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 48px;
    border: 1px solid var(--line);
    background: var(--off-white);
    margin-top: 48px;
    position: relative;
    overflow: hidden;
  }

  .education-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
  }

  .edu-degree {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    color: var(--navy);
    margin-bottom: 8px;
  }

  .edu-institution {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-mid);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }

  .edu-period {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 10px;
  }

  .edu-honours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-warm);
    border: 1px solid rgba(200,169,110,0.35);
    padding: 4px 12px;
    background: rgba(200,169,110,0.08);
  }

  .edu-honours::before {
    content: '★';
    font-size: 9px;
  }

  .edu-badge {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 300;
    font-style: italic;
    color: var(--accent);
    opacity: 0.12;
    white-space: nowrap;
  }

  /* ── CONTACT ── */
  #contact { background: var(--off-white); }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 56px;
  }

  .contact-intro {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-mid);
    margin-bottom: 36px;
    text-wrap: pretty;
  }

  .contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: color 0.2s, padding-left 0.2s;
  }

  .contact-link:first-child { border-top: 1px solid var(--line); }

  .contact-link:hover {
    color: var(--accent);
    padding-left: 6px;
  }

  .contact-link-icon {
    width: 18px;
    height: 18px;
    color: var(--ink-muted);
    flex-shrink: 0;
    transition: color 0.2s;
  }

  .contact-link:hover .contact-link-icon { color: var(--accent); }

  .contact-link-label {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
  }

  .contact-link-value {
    margin-left: auto;
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-soft);
  }

  /* Contact form */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .form-field label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .form-field input,
  .form-field textarea {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
  }

  .form-field input:focus,
  .form-field textarea:focus {
    border-color: var(--accent);
  }

  .form-submit {
    align-self: flex-start;
    padding: 14px 32px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }

  .form-submit:hover {
    background: var(--accent);
    transform: translateY(-1px);
  }

  /* ── PROJECTS ── */
  #projects { background: var(--cream); }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 56px;
  }

  .project-card {
    background: var(--cream);
    padding: 40px 36px;
    position: relative;
    transition: background 0.25s;
    cursor: default;
    overflow: hidden;
  }

  .project-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--card-color, var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
  }

  /* Colored top accent bar */
  .project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-color, var(--accent));
    opacity: 0.55;
  }

  .project-card:hover { background: var(--off-white); }
  .project-card:hover::after { transform: scaleX(1); }
  .project-card:hover::before { opacity: 1; }

  .project-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--card-color, var(--accent));
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 20px;
  }

  .project-type {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 10px;
  }

  .project-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .project-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ink-soft);
    text-wrap: pretty;
  }

  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
  }

  /* Services row */
  .services-section {
    margin-top: 56px;
  }

  .services-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .services-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }

  .services-cta {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid currentColor;
    transition: color 0.2s;
  }
  .services-cta:hover { color: var(--accent-warm); }

  .service-item {
    background: var(--off-white);
    padding: 24px 28px;
    color: var(--ink-mid);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: background 0.3s, color 0.3s;
    cursor: default;
  }

  .service-item:hover {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
  }

  .service-item:hover .service-dot { background: var(--accent-warm); }
  .service-item:hover .service-detail { color: rgba(255,255,255,0.45); }

  .service-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 6px;
    transition: background 0.2s;
  }

  .service-name {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
    color: inherit;
  }

  .service-detail {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-soft);
    transition: color 0.3s;
  }

  @media (max-width: 1024px) {
    .projects-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
    .project-card { padding: 28px 20px; }
    .whatsapp-btn { padding: 13px 16px; }
  }

  /* ── SKILLS ── */
  #skills { background: var(--off-white); }

  .skills-wrapper {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 44px;
  }

  .skill-cat-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .skill-cat-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
  }

  .skill-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
  }

  .skill-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 10px 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    cursor: default;
    transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), border-color 0.2s, box-shadow 0.2s;
  }

  .skill-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(42,68,148,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  }

  .skill-tile img {
    width: 36px;
    height: 36px;
    object-fit: contain;
  }

  .skill-tile span {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    text-align: center;
    line-height: 1.3;
  }

  .skill-badge {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
  }

  body.dark .skill-tile { background: var(--cream); }
  body.dark .skill-tile:hover { border-color: rgba(107,141,232,0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

  /* ── FOOTER ── */
  footer {
    background: var(--navy);
    padding: 36px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
  }

  .footer-copy {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.06em;
  }

  /* ── ANIMATIONS ── */
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* Stagger children */
  .stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  }

  .stagger.visible > * {
    opacity: 1;
    transform: none;
  }

  .stagger.visible > *:nth-child(1) { transition-delay: 0.04s; }
  .stagger.visible > *:nth-child(2) { transition-delay: 0.10s; }
  .stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
  .stagger.visible > *:nth-child(4) { transition-delay: 0.22s; }
  .stagger.visible > *:nth-child(5) { transition-delay: 0.28s; }
  .stagger.visible > *:nth-child(6) { transition-delay: 0.34s; }

  /* Slide in from left */
  .reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
  }
  .reveal-left.visible { opacity: 1; transform: none; }

  /* Slide in from right */
  .reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
  }
  .reveal-right.visible { opacity: 1; transform: none; }

  /* ── DARK MODE ── */
  body.dark {
    --off-white: #0f1117;
    --cream: #161b27;
    --warm-mid: #1e2535;
    --navy: #e8e4de;
    --ink: #f0ece6;
    --ink-mid: #c8c4be;
    --ink-soft: #8a8a96;
    --ink-muted: #5a5a66;
    --accent: #6b8de8;
    --accent-warm: #c8a96e;
    --line: rgba(240,236,230,0.1);
  }
  body.dark nav { background: rgba(15,17,23,0.96) !important; border-bottom-color: rgba(240,236,230,0.08); }
  body.dark .hero { background: #080c14; }
  body.dark .hero-right { background: #080c14; }
  body.dark .hero-right::before { background: linear-gradient(to right, #080c14 0%, transparent 28%); }
  body.dark .stat-item,
  body.dark .expertise-card,
  body.dark .education-card,
  body.dark .project-card,
  body.dark .service-item { background: var(--cream); }
  body.dark .expertise-card:hover,
  body.dark .project-card:hover { background: var(--warm-mid); }
  body.dark .service-item:hover { background: #1a2744; color: rgba(255,255,255,0.8); }
  body.dark footer { background: #080c14; }
  body.dark .form-field input,
  body.dark .form-field textarea { background: var(--cream); color: var(--ink); }
  body.dark .tag { background: rgba(107,141,232,0.1); border-color: rgba(107,141,232,0.25); color: var(--accent); }
  body.dark .about-stats { background: var(--line); }

  /* Dark toggle */
  .dark-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) translateY(-36px);
    z-index: 150;
    width: 44px;
    height: 24px;
    background: rgba(26,39,68,0.15);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 3px;
    transition: background 0.3s;
  }
  .dark-toggle-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-warm);
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  body.dark .dark-toggle-thumb { transform: translateX(20px); }

  /* ── PROGRESS BAR ── */
  .progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(to right, var(--accent), var(--accent-warm));
    z-index: 9999;
    transition: width 0.08s linear;
    box-shadow: 0 0 6px rgba(200,169,110,0.45);
  }

  /* ── BACK TO TOP ── */
  .back-to-top {
    position: fixed;
    bottom: 92px;
    right: 28px;
    z-index: 200;
    width: 44px;
    height: 44px;
    background: var(--navy);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    pointer-events: none;
    color: var(--off-white);
  }
  .back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
  .back-to-top:hover { background: var(--accent); }
  .back-to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  /* ── CURSOR TRAIL ── */
  .cursor-dot {
    position: fixed;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-warm);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s;
    mix-blend-mode: multiply;
  }
  body.dark .cursor-dot { mix-blend-mode: screen; }
  .cursor-ring {
    position: fixed;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-warm);
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    opacity: 0.45;
    transition: width 0.15s, height 0.15s, opacity 0.15s, border-color 0.2s;
  }
  .cursor-ring.hovering { width: 48px; height: 48px; opacity: 0.25; border-color: var(--accent); }
  @media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

  .whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px 12px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(37,211,102,0.35);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
    animation: waBounce 2.5s ease-in-out 2s infinite;
  }

  .whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 32px rgba(37,211,102,0.45);
    animation: none;
  }

  .whatsapp-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .whatsapp-label { white-space: nowrap; }

  @keyframes waBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  /* ── MOBILE HAMBURGER ── */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--navy);
    transition: all 0.25s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-mobile-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(248,246,242,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 24px 24px 28px;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
  }
  .nav-mobile-menu.open { display: flex; }
  .nav-mobile-menu a {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    transition: color 0.2s;
  }
  .nav-mobile-menu a:last-child { border-bottom: none; }
  .nav-mobile-menu a:hover { color: var(--navy); }

  /* ── RESPONSIVE ── */
  @media (max-width: 1024px) {
    nav { padding: 0 24px; }
    section { padding: 72px 24px; }
    footer { padding: 24px; }

    /* Hero: full-screen video background on tablet/mobile */
    .hero {
      display: block;
      position: relative;
      min-height: 100vh;
    }
    .hero-left {
      padding: 120px 24px 80px;
      min-height: 100vh;
    }
    .hero-right {
      position: absolute;
      inset: 0;
      height: 100%;
    }
    .hero-right::before {
      background: linear-gradient(to bottom, rgba(15,20,45,0.82) 0%, rgba(15,20,45,0.6) 50%, rgba(15,20,45,0.7) 100%);
      z-index: 1;
    }
    body.dark .hero-right::before {
      background: linear-gradient(to bottom, rgba(8,12,20,0.88) 0%, rgba(8,12,20,0.65) 50%, rgba(8,12,20,0.75) 100%);
    }
    .scroll-hint { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-photo-wrap { max-width: 420px; margin: 0 auto; }

    .contact-grid { grid-template-columns: 1fr; gap: 48px; }

    .expertise-grid { grid-template-columns: 1fr 1fr; }

    .timeline-item { grid-template-columns: 1fr; gap: 10px; }
    .timeline::before { display: none; }
    .timeline-item { padding-left: 0; }
    .timeline-item::before { display: none; }

    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
  }

  @media (max-width: 640px) {
    nav { padding: 0 20px; }
    section { padding: 60px 20px; }
    footer { padding: 20px; flex-direction: column; gap: 8px; text-align: center; }

    .hero-left { padding: 90px 20px 60px; min-height: 100vh; }

    .expertise-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .about-photo-wrap { max-width: 100%; }

    .education-card { grid-template-columns: 1fr; padding: 32px 24px; }
    .edu-badge { display: none; }

    .contact-link-value { display: none; }

    .hero-actions { gap: 12px; }
    .btn-primary, .btn-outline { padding: 13px 22px; font-size: 12px; }

    .section-title { font-size: clamp(30px, 8vw, 44px); }
  }

  @media (max-width: 400px) {
    .hero-left { padding: 80px 16px 48px; }
  }