      /* ─── VARIABLES ─────────────────────────────── */
      :root {
        --bg: #0e0f11;
        --surface: #16181c;
        --border: #2a2d35;
        --accent: #c9a96e;
        --accent2: #7eb8b8;
        --text: #e8e6e0;
        --muted: #8a8880;
        --serif: "Cormorant Garamond", Georgia, serif;
        --sans: "DM Sans", sans-serif;
      }

      *,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      html {
        scroll-behavior: smooth;
      }
      body {
        background: var(--bg);
        color: var(--text);
        font-family: var(--sans);
        font-size: 16px;
        line-height: 1.7;
        overflow-x: hidden;
      }
      a {
        color: var(--accent);
        text-decoration: none;
        transition: opacity 0.2s;
      }
      a:hover {
        opacity: 0.75;
      }
      img {
        max-width: 100%;
        display: block;
      }

      /* ─── NAV ────────────────────────────────────── */
      nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: rgba(14, 15, 17, 0.92);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 3rem;
        height: 62px;
      }
      .nav-logo {
        font-family: var(--serif);
        font-size: 1.15rem;
        font-weight: 300;
        letter-spacing: 0.04em;
        color: var(--text);
        text-decoration: none;
      }
      .nav-logo span {
        color: var(--accent);
      }
      .lang-switcher {
        position: relative;
      }
      .lang-globe {
        background: none;
        border: 1px solid var(--border);
        border-radius: 3px;
        font-size: 1rem;
        padding: 0.2rem 0.4rem;
        cursor: pointer;
        line-height: 1;
        transition: border-color 0.2s;
      }
      .lang-globe:hover {
        border-color: var(--accent);
      }
      .lang-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 4px;
        min-width: 120px;
        z-index: 200;
        overflow: hidden;
      }
      .lang-switcher.open .lang-dropdown {
        display: block;
      }
      .lang-option {
        display: block;
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
        color: var(--muted);
        transition: background 0.15s, color 0.15s;
      }
      .lang-option:hover {
        background: rgba(201, 169, 110, 0.08);
        color: var(--text);
        opacity: 1;
      }
      .lang-option.active {
        color: var(--accent);
      }
      [dir="rtl"] .lang-dropdown {
        right: auto;
        left: 0;
      }
      .nav-links {
        display: flex;
        gap: 1.6rem;
        list-style: none;
      }
      .nav-links a {
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--muted);
        transition: color 0.2s;
      }
      .nav-links a:hover {
        color: var(--accent);
        opacity: 1;
      }
      .nav-links a.active {
        color: var(--accent);
      }

      .hamburger {
        display: none;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
      }
      .hamburger span {
        width: 24px;
        height: 2px;
        background: var(--text);
        transition: 0.3s;
      }

      /* ─── SECTIONS ──────────────────────────────── */
      section {
        min-height: 100vh;
        padding: 100px 3rem 80px;
        max-width: 1100px;
        margin: 0 auto;
      }
      .section-label {
        font-size: 0.72rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 0.6rem;
      }
      .section-title {
        font-family: var(--serif);
        font-size: clamp(2rem, 4vw, 3.2rem);
        font-weight: 300;
        line-height: 1.15;
        margin-bottom: 2.5rem;
      }
      .divider {
        width: 48px;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), transparent);
        margin-bottom: 2.5rem;
      }

      /* ─── HERO ──────────────────────────────────── */
      #home {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding-top: 62px;
        max-width: 100%;
        position: relative;
      }
      .hero-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        background:
          radial-gradient(
            ellipse 60% 60% at 70% 50%,
            rgba(201, 169, 110, 0.06) 0%,
            transparent 60%
          ),
          radial-gradient(ellipse 40% 50% at 20% 80%, rgba(126, 184, 184, 0.05) 0%, transparent 50%);
      }
      .hero-inner {
        position: relative;
        z-index: 1;
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 3rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        width: 100%;
      }
      .hero-text .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--accent2);
        margin-bottom: 1rem;
        opacity: 0;
        animation: fadeUp 0.8s 0.2s forwards;
      }
      .hero-text h1 {
        font-family: var(--serif);
        font-size: clamp(2.8rem, 5vw, 4.5rem);
        font-weight: 300;
        line-height: 1.1;
        margin-bottom: 1rem;
        opacity: 0;
        animation: fadeUp 0.8s 0.4s forwards;
      }
      .hero-text h1 em {
        font-style: italic;
        color: var(--accent);
      }
      .hero-text .role {
        font-size: 1rem;
        color: var(--muted);
        margin-bottom: 1.8rem;
        opacity: 0;
        animation: fadeUp 0.8s 0.55s forwards;
      }
      .hero-text .bio {
        font-size: 0.95rem;
        color: #b0ada6;
        max-width: 480px;
        margin-bottom: 2rem;
        opacity: 0;
        animation: fadeUp 0.8s 0.7s forwards;
      }
      .hero-ctas {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        opacity: 0;
        animation: fadeUp 0.8s 0.85s forwards;
      }
      .btn {
        padding: 0.65rem 1.6rem;
        font-size: 0.82rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        border-radius: 2px;
        cursor: pointer;
        transition: all 0.25s;
        display: inline-block;
      }
      .btn-primary {
        background: var(--accent);
        color: #0e0f11;
        border: 1px solid var(--accent);
      }
      .btn-primary:hover {
        background: transparent;
        color: var(--accent);
        opacity: 1;
      }
      .btn-ghost {
        background: transparent;
        color: var(--text);
        border: 1px solid var(--border);
      }
      .btn-ghost:hover {
        border-color: var(--accent);
        color: var(--accent);
        opacity: 1;
      }

      .hero-photo {
        opacity: 0;
        animation: fadeIn 1.2s 0.5s forwards;
      }
      .photo-frame {
        position: relative;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
      }
      .photo-frame::before {
        content: "";
        position: absolute;
        inset: -12px -12px auto auto;
        width: 60%;
        height: 60%;
        border-top: 1px solid var(--accent);
        border-right: 1px solid var(--accent);
        pointer-events: none;
      }
      .photo-frame::after {
        content: "";
        position: absolute;
        inset: auto auto -12px -12px;
        width: 60%;
        height: 60%;
        border-bottom: 1px solid var(--accent2);
        border-left: 1px solid var(--accent2);
        pointer-events: none;
      }
      .photo-frame img,
      .photo-placeholder {
        width: 100%;
        aspect-ratio: 3/4;
        object-fit: cover;
        object-position: top center;
        filter: grayscale(20%);
      }
      .photo-placeholder {
        background: var(--surface);
        border: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: var(--muted);
        font-size: 0.82rem;
        letter-spacing: 0.05em;
      }
      .photo-placeholder svg {
        opacity: 0.3;
      }

      /* ─── STATS ROW ────────────────────────────── */
      .stats-row {
        display: flex;
        gap: 2rem;
        flex-wrap: wrap;
        margin-bottom: 3rem;
      }
      .stat-box {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 1.2rem 1.8rem;
        min-width: 130px;
        text-align: center;
        position: relative;
        overflow: hidden;
        transition: border-color 0.3s;
      }
      .stat-box:hover {
        border-color: var(--accent);
      }
      .stat-box::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), var(--accent2));
      }
      .stat-num {
        font-family: var(--serif);
        font-size: 2.2rem;
        font-weight: 300;
        color: var(--accent);
        line-height: 1;
      }
      .stat-label {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--muted);
        margin-top: 0.3rem;
      }
      .stat-source {
        font-size: 0.65rem;
        color: #555;
        margin-top: 0.2rem;
      }
      .loading-spinner {
        width: 20px;
        height: 20px;
        border: 2px solid var(--border);
        border-top-color: var(--accent);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0.3rem auto;
      }

      /* ─── PUBLICATIONS ──────────────────────────── */
      .pub-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 1.6rem 2rem;
        margin-bottom: 1.2rem;
        transition:
          border-color 0.3s,
          transform 0.2s;
        position: relative;
      }
      .pub-card:hover {
        border-color: var(--accent);
        transform: translateX(4px);
      }
      .pub-num {
        position: absolute;
        top: 1.6rem;
        right: 1.8rem;
        font-family: var(--serif);
        font-size: 2rem;
        font-weight: 300;
        color: var(--border);
        line-height: 1;
      }
      .pub-title {
        font-family: var(--serif);
        font-size: 1.1rem;
        font-weight: 400;
        margin-bottom: 0.4rem;
        padding-right: 3rem;
        color: var(--text);
      }
      .pub-authors {
        font-size: 0.82rem;
        color: var(--muted);
        margin-bottom: 0.4rem;
      }
      .pub-journal {
        font-size: 0.82rem;
        color: var(--accent2);
        font-style: italic;
        margin-bottom: 0.8rem;
      }
      .pub-summary {
        font-size: 0.88rem;
        color: #9e9c96;
        border-left: 2px solid var(--accent);
        padding-left: 1rem;
        margin-top: 0.8rem;
        display: none;
      }
      .pub-card.expanded .pub-summary {
        display: block;
        animation: fadeUp 0.3s ease forwards;
      }
      .pub-toggle {
        margin-top: 0.9rem;
        background: none;
        border: 1px solid var(--border);
        color: var(--accent);
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        padding: 0.3rem 1rem;
        border-radius: 2px;
        cursor: pointer;
        transition:
          border-color 0.2s,
          background 0.2s;
        font-family: var(--sans);
      }
      .pub-toggle:hover {
        border-color: var(--accent);
        background: rgba(201, 169, 110, 0.07);
      }
      .pub-tags {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-top: 0.8rem;
      }
      .tag {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 0.2rem 0.7rem;
        border: 1px solid var(--border);
        border-radius: 2px;
        color: var(--muted);
      }

      /* ─── CARDS GRID ────────────────────────────── */
      .cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.2rem;
      }
      .card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 1.6rem;
        transition: border-color 0.3s;
      }
      .card:hover {
        border-color: var(--accent);
      }
      .card-icon {
        width: 36px;
        height: 36px;
        background: rgba(201, 169, 110, 0.1);
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
        color: var(--accent);
        font-size: 1.1rem;
      }
      .card h3 {
        font-family: var(--serif);
        font-size: 1.1rem;
        font-weight: 400;
        margin-bottom: 0.5rem;
      }
      .card p {
        font-size: 0.88rem;
        color: var(--muted);
      }
      .card .meta {
        font-size: 0.78rem;
        color: var(--accent2);
        margin-top: 0.5rem;
      }

      /* ─── TIMELINE ──────────────────────────────── */
      .timeline {
        position: relative;
        padding-left: 2rem;
      }
      .timeline::before {
        content: "";
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 1px;
        background: var(--border);
      }
      .tl-item {
        position: relative;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border);
      }
      .tl-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
      }
      .tl-dot {
        position: absolute;
        left: -2.42rem;
        top: 6px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent);
        border: 2px solid var(--bg);
      }
      .tl-year {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 0.3rem;
      }
      .tl-title {
        font-family: var(--serif);
        font-size: 1.1rem;
        font-weight: 400;
        margin-bottom: 0.3rem;
      }
      .tl-org {
        font-size: 0.88rem;
        color: var(--accent2);
        margin-bottom: 0.5rem;
      }
      .tl-desc {
        font-size: 0.88rem;
        color: var(--muted);
      }

      /* ─── COLLAB ────────────────────────────────── */
      .collab-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
      }
      .collab-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 1.2rem 1.4rem;
        transition: border-color 0.3s;
      }
      .collab-card:hover {
        border-color: var(--accent2);
      }
      .collab-card .inst {
        font-size: 0.88rem;
        font-weight: 500;
        margin-bottom: 0.2rem;
      }
      .collab-card .person {
        font-size: 0.8rem;
        color: var(--muted);
      }
      .collab-card .country {
        font-size: 0.72rem;
        color: var(--accent2);
        margin-top: 0.3rem;
        letter-spacing: 0.05em;
      }

      /* ─── TALKS ────────────────────────────────── */
      .talk-item {
        display: grid;
        grid-template-columns: 160px 1fr;
        gap: 1.5rem;
        padding: 1.2rem 0;
        border-bottom: 1px solid var(--border);
      }
      .talk-item:last-child {
        border-bottom: none;
      }
      .talk-date {
        font-size: 0.78rem;
        color: var(--accent);
        letter-spacing: 0.05em;
        padding-top: 0.15rem;
      }
      .talk-venue {
        font-size: 0.88rem;
        font-weight: 500;
        margin-bottom: 0.2rem;
      }
      .talk-title {
        font-size: 0.85rem;
        color: var(--muted);
        font-style: italic;
      }
      .talk-location {
        font-size: 0.78rem;
        color: var(--accent2);
        margin-top: 0.2rem;
      }

      /* ─── CONTACT ───────────────────────────────── */
      .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
      }
      .contact-info p {
        font-size: 0.92rem;
        color: var(--muted);
        margin-bottom: 1.5rem;
      }
      .contact-detail {
        display: flex;
        align-items: flex-start;
        gap: 0.8rem;
        margin-bottom: 1rem;
        font-size: 0.88rem;
      }
      .contact-detail .icon {
        color: var(--accent);
        font-size: 1rem;
        margin-top: 2px;
      }
      .contact-links {
        display: flex;
        gap: 1rem;
        margin-top: 1.5rem;
        flex-wrap: wrap;
      }
      .social-btn {
        padding: 0.5rem 1.1rem;
        border: 1px solid var(--border);
        border-radius: 2px;
        font-size: 0.78rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
        transition: all 0.2s;
      }
      .social-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
        opacity: 1;
      }

      /* ─── FOOTER ────────────────────────────────── */
      footer {
        border-top: 1px solid var(--border);
        padding: 2rem 3rem;
        max-width: 1100px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.78rem;
        color: var(--muted);
      }

      /* ─── ANIMATIONS ─────────────────────────────── */
      @keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      /* ─── RESPONSIVE ─────────────────────────────── */
      @media (max-width: 768px) {
        nav {
          padding: 0 1.5rem;
        }
        .nav-links {
          display: none;
        }
        .hamburger {
          display: flex;
        }
        .nav-links.open {
          display: flex;
          flex-direction: column;
          position: fixed;
          top: 62px;
          left: 0;
          right: 0;
          background: var(--bg);
          padding: 1.5rem;
          border-bottom: 1px solid var(--border);
          gap: 1.2rem;
        }
        .hero-inner {
          grid-template-columns: 1fr;
          padding: 0 1.5rem;
        }
        .hero-photo {
          order: -1;
        }
        .photo-frame {
          max-width: 240px;
          margin: 0 auto;
        }
        section {
          padding: 80px 1.5rem 60px;
        }
        .contact-grid {
          grid-template-columns: 1fr;
        }
        .talk-item {
          grid-template-columns: 1fr;
          gap: 0.5rem;
        }
        footer {
          flex-direction: column;
          gap: 1rem;
          text-align: center;
        }
      }

      /* ─── MISC ──────────────────────────────────── */
      .badge {
        display: inline-block;
        padding: 0.15rem 0.6rem;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        border-radius: 2px;
        margin-left: 0.5rem;
        vertical-align: middle;
      }
      .badge-gold {
        background: rgba(201, 169, 110, 0.15);
        color: var(--accent);
      }

      /* ─── PRONUNCIATION BUTTON ───────────────── */
      .name-m-wrap {
        position: relative;
        display: inline-block;
      }
      .pronounce-btn {
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
        margin-left: 8px;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background: none;
        border: 0.2px solid var(--border);
        color: var(--muted);
        font-family: var(--sans);
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        padding: 0.3rem 0.6rem;
        border-radius: 1px;
        cursor: pointer;
        transition:
          border-color 0.2s,
          color 0.2s;
        white-space: nowrap;
        z-index: 10;
        opacity: 0;
        animation: fadeUp 0.8s 1s forwards;
      }
      .pronounce-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
      }
      .pronounce-btn.speaking {
        border-color: var(--accent2);
        color: var(--accent2);
      }
      .pronounce-btn:disabled {
        cursor: default;
        pointer-events: none;
      }
      .pronounce-btn svg {
        flex-shrink: 0;
      }
      .hear-label {
        display: inline-block;
        max-width: 0;
        overflow: hidden;
        white-space: nowrap;
        opacity: 0;
        vertical-align: middle;
        transition:
          max-width 0.35s ease,
          opacity 0.25s ease;
      }
      .pronounce-btn:hover .hear-label,
      .pronounce-btn.speaking .hear-label {
        max-width: 200px;
        opacity: 1;
      }
      @media (hover: none) {
        .pronounce-btn .hear-label {
          max-width: 200px;
          opacity: 1;
        }
      }
      .badge-blue {
        background: rgba(126, 184, 184, 0.15);
        color: var(--accent2);
      }
      .alert-banner {
        background: rgba(201, 169, 110, 0.08);
        border: 1px solid rgba(201, 169, 110, 0.2);
        border-radius: 4px;
        padding: 0.8rem 1.2rem;
        font-size: 0.82rem;
        color: var(--muted);
        margin-bottom: 2rem;
      }
      .alert-banner strong {
        color: var(--accent);
      }

      /* ─── SKILLS GRID (cv.html) ──────────────── */
      .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.2rem;
        margin-top: 0.5rem;
      }
      .skill-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 1.2rem 1.4rem;
        transition: border-color 0.3s;
      }
      .skill-card:hover {
        border-color: var(--accent);
      }
      .skill-card-title {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 0.7rem;
      }
      .skill-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
      }
      .skill-tag {
        font-size: 0.72rem;
        background: rgba(201, 169, 110, 0.08);
        border: 1px solid rgba(201, 169, 110, 0.18);
        color: var(--muted);
        padding: 0.2rem 0.55rem;
        border-radius: 2px;
        letter-spacing: 0.04em;
      }

      /* ─── HERO AWARD LINE ────────────────────── */
      .hero-award {
        font-size: 0.78rem;
        color: var(--muted);
        letter-spacing: 0.06em;
        margin-top: -0.3rem;
        margin-bottom: 1rem;
      }
      .hero-award a {
        color: var(--accent);
        text-decoration: none;
        border-bottom: 1px solid rgba(201, 169, 110, 0.3);
      }
      .hero-award a:hover {
        border-bottom-color: var(--accent);
      }

      /* ─── THEME TOGGLE ──────────────────────── */
      .nav-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }
      .theme-toggle {
        background: none;
        border: 1px solid var(--border);
        border-radius: 3px;
        padding: 0.25rem 0.45rem;
        cursor: pointer;
        color: var(--muted);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: border-color 0.2s, color 0.2s;
        flex-shrink: 0;
      }
      .theme-toggle:hover {
        border-color: var(--accent);
        color: var(--accent);
      }
      .icon-sun { display: flex; }
      .icon-moon { display: none; }
      [data-theme="light"] .icon-sun { display: none; }
      [data-theme="light"] .icon-moon { display: flex; }

      /* ─── LIGHT MODE ─────────────────────────── */
      [data-theme="light"] {
        --bg: #f5f3ef;
        --surface: #ffffff;
        --border: #dedad3;
        --accent: #b8873a;
        --accent2: #4e9090;
        --text: #1c1a17;
        --muted: #6b6760;
      }
      [data-theme="light"] nav {
        background: rgba(245, 243, 239, 0.92);
      }
      [data-theme="light"] .nav-links.open {
        background: var(--bg);
      }
      [data-theme="light"] .hero-bg {
        background:
          radial-gradient(ellipse 60% 60% at 70% 50%, rgba(184, 135, 58, 0.08) 0%, transparent 60%),
          radial-gradient(ellipse 40% 50% at 20% 80%, rgba(78, 144, 144, 0.07) 0%, transparent 50%);
      }
      [data-theme="light"] .hero-text .bio { color: #5a5650; }
      [data-theme="light"] .pub-summary { color: var(--muted); }
      [data-theme="light"] .btn-primary { color: #ffffff; }
      [data-theme="light"] .card-icon { background: rgba(184, 135, 58, 0.08); }
      [data-theme="light"] .skill-tag {
        background: rgba(184, 135, 58, 0.07);
        border-color: rgba(184, 135, 58, 0.2);
      }
      [data-theme="light"] .badge-gold { background: rgba(184, 135, 58, 0.12); }
      [data-theme="light"] .badge-blue { background: rgba(78, 144, 144, 0.12); }
      [data-theme="light"] .alert-banner {
        background: rgba(184, 135, 58, 0.06);
        border-color: rgba(184, 135, 58, 0.2);
      }
      /* Override hardcoded dark-mode colors used in inline styles */
      [data-theme="light"] [style*="#b0ada6"] { color: var(--muted) !important; }
      [data-theme="light"] [style*="#9e9c96"] { color: var(--muted) !important; }

      /* ─── REDUCED MOTION ─────────────────────── */
      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      }

      /* ─── EXPERIMENT LINK TOOLTIPS ──────────── */
      .exp-link {
        position: relative;
        text-decoration-style: dotted;
        text-underline-offset: 3px;
      }
      .exp-link::before {
        content: attr(data-info);
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: var(--surface);
        border: 1px solid var(--accent);
        color: var(--text);
        font-family: var(--sans);
        font-size: 0.74rem;
        font-weight: 400;
        font-style: normal;
        line-height: 1.6;
        width: 260px;
        padding: 0.6rem 0.85rem;
        border-radius: 4px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
        z-index: 500;
        white-space: normal;
        text-align: left;
        letter-spacing: 0;
        text-transform: none;
        text-decoration: none;
      }
      [dir="rtl"] .exp-link::before { text-align: right; }
      .exp-link:hover::before { opacity: 1; }
      @media (max-width: 768px) { .exp-link::before { display: none; } }

      /* ─── BIDI: force LTR for English content in RTL pages ── */
      [dir="rtl"] .pub-title,
      [dir="rtl"] .pub-authors,
      [dir="rtl"] .pub-journal,
      [dir="rtl"] .tag,
      [dir="rtl"] .badge,
      [dir="rtl"] .stat-num,
      [dir="rtl"] .stat-source,
      [dir="rtl"] .talk-title,
      [dir="rtl"] .talk-venue,
      [dir="rtl"] .talk-location,
      [dir="rtl"] .talk-date,
      [dir="rtl"] .collab-name,
      [dir="rtl"] .skill-tag {
        direction: ltr;
        unicode-bidi: embed;
        text-align: left;
      }
      /* inline tags and badges need embed but not block text-align */
      [dir="rtl"] .tag,
      [dir="rtl"] .badge,
      [dir="rtl"] .stat-num,
      [dir="rtl"] .stat-source,
      [dir="rtl"] .skill-tag {
        text-align: unset;
      }

      /* ─── PRINT (CV page) ────────────────────── */
      @media print {
        nav,
        footer,
        .hamburger,
        .btn {
          display: none !important;
        }
        body {
          background: #fff;
          color: #111;
          font-size: 11pt;
        }
        section {
          padding: 1.5rem 0;
          max-width: 100%;
        }
        a {
          color: #111;
          text-decoration: underline;
        }
        .tl-dot {
          background: #111;
          border-color: #111;
          box-shadow: none;
        }
        .tl-line {
          background: #ccc;
        }
        .skill-card,
        .tl-item {
          break-inside: avoid;
        }
      }
