  :root {
    --ink: #1b1c2a;
    --muted: #6a6c7e;
    --accent: #3a4a7a;
    --accent-soft: #eef0f7;
    --line: #e6e6ec;
    --bg: #ffffff;
    --bg-tint: #f7f7fa;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; height: 100%; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased;
    min-height: 100%; display: flex; flex-direction: column;
  }
  a { color: var(--accent); }

  header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .org-bar {
    position: absolute; top: 50%; left: 24px; transform: translateY(-50%); z-index: -1;
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; overflow: hidden;
  }
  .mbzuai-logo-header { height: 34px; width: auto; flex-shrink: 0; }
  .module-tag {
    font-family: var(--sans); font-size: 0.54rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
    padding: 3px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent);
    flex-shrink: 0;
  }
  .nav-inner {
    max-width: 1080px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
  .brand {
    font-family: var(--serif); font-weight: 600; font-size: 1.85rem;
    color: var(--ink); cursor: pointer; background: none; border: none; padding: 0;
  }
  .nav-links { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .nav-links button {
    font-family: var(--sans); font-size: 0.85rem; color: var(--muted);
    background: none; border: none; padding: 7px 11px; border-radius: 7px;
    cursor: pointer; transition: background 0.12s ease, color 0.12s ease;
  }
  .nav-links button:hover { background: var(--bg-tint); color: var(--ink); }
  .nav-links button.active { color: var(--accent); background: var(--accent-soft); }
  .menu-toggle {
    display: none; font-family: var(--sans); font-size: 0.85rem;
    background: none; border: 1px solid var(--line); border-radius: 8px;
    padding: 8px 12px; cursor: pointer; color: var(--ink);
  }

  main { max-width: 820px; margin: 0 auto; padding: 0 24px; width: 100%; flex: 1 0 auto; }
  .page { display: none; padding: 56px 0; }
  .page.active { display: block; }

  .eyebrow {
    font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); font-weight: 600; text-align: center; margin-bottom: 20px;
  }
  h1 {
    font-family: var(--serif); font-weight: 500; font-size: 2.5rem;
    line-height: 1.15; margin: 0 0 26px; letter-spacing: -0.01em; text-align: center;
  }
  h2 {
    font-family: var(--serif); font-weight: 500; font-size: 1.5rem;
    text-align: center; margin: 0 0 22px;
  }
  h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; }
  p { margin: 0 0 16px; }
  .lead { font-size: 1.1rem; color: #2a2b3a; text-align: center; }

  .mt-lg { margin-top: 32px; }

  code {
    background: var(--bg-tint); border: 1px solid var(--line); border-radius: 4px;
    padding: 1px 6px; font-size: 0.88em; color: #2a2b3a;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  }
  .figure-img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }

  .authors { text-align: center; font-size: 1.1rem; line-height: 1.9; margin-bottom: 10px; }
  .authors .corr { color: var(--accent); }
  .authors a { color: var(--ink); text-decoration: none; }
  .authors a:hover { color: var(--accent); text-decoration: underline; }
  .affil { text-align: center; color: var(--muted); font-size: 0.98rem; margin-bottom: 6px; }
  .affil a, footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
  .affil a:hover, footer a:hover { color: var(--accent); }
  .corr-note { text-align: center; color: var(--muted); font-size: 0.88rem; }

  .tagline { text-align: center; font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }

  .links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none;
    font-size: 0.95rem; font-weight: 500;
    transition: transform 0.12s ease, background 0.12s ease;
  }
  .btn:hover { transform: translateY(-1px); background: var(--accent); }
  .btn .ico { font-size: 1.05rem; line-height: 1; }
  .btn-soon { opacity: 0.5; pointer-events: none; }

  .teaser {
    width: 100%; aspect-ratio: 16 / 8; border: 2px dashed #c7c9d6; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: var(--muted); background: var(--bg-tint); padding: 24px; margin: 8px 0 4px;
    font-size: 0.95rem;
  }
  figcaption { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

  .keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; justify-content: center; }
  .kw {
    font-size: 0.82rem; color: #3a3d47; background: var(--bg-tint);
    border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
  }

  .cite-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
  .cite-head h2 { margin: 0; }
  .copy-btn {
    border: 1px solid var(--line); background: #fff; color: var(--accent);
    padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; font-family: var(--sans);
    font-weight: 500; cursor: pointer; transition: background 0.12s ease;
  }
  .copy-btn:hover { background: var(--accent-soft); }
  pre {
    background: var(--bg-tint); border: 1px solid var(--line); border-radius: 10px;
    padding: 18px; overflow-x: auto; font-size: 0.85rem; line-height: 1.55; margin: 0;
    color: #2a2b3a; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  }

  .badge {
    display: inline-block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft); padding: 4px 12px;
    border-radius: 999px; font-weight: 600; vertical-align: middle; margin-left: 8px;
  }

  .hint {
    display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--accent);
    background: var(--accent-soft); padding: 7px 14px; border-radius: 8px; margin: 4px 0 10px;
  }

  .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 8px; }
  .person {
    border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 0.95rem;
    height: 112px; display: flex; flex-direction: row; align-items: flex-start; gap: 10px;
    position: relative;
  }
  .pi-badge {
    position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 3px;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.03em; color: var(--accent);
    background: var(--accent-soft); padding: 3px 8px; border-radius: 999px;
  }
  .pi-badge svg { width: 10px; height: 10px; }
  .avatar {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
  }
  .person-name { flex: 1; }
  .person-name a { color: inherit; text-decoration: none; }
  .person-name a:hover { color: var(--accent); text-decoration: underline; }
  .person .role { color: var(--muted); font-size: 0.72rem; margin-top: 2px; }

  .pub { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-top: 8px; }
  .pub h3 { margin-bottom: 4px; }
  .pub .meta { color: var(--muted); font-size: 0.9rem; }

  .chamber-row { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
  .chamber { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
  .chamber-media { position: relative; width: 40%; flex-shrink: 0; aspect-ratio: 8/5; overflow: hidden; }
  .chamber-photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.12s ease; }
  .chamber-model {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; pointer-events: none; transition: opacity 0.12s ease; background-color: var(--bg);
  }
  .chamber-media.model-ready:hover .chamber-photo { opacity: 0; }
  .chamber-media.coming-soon { border: 2px dashed #c7c9d6; border-radius: 10px; }
  .chamber-media.coming-soon .chamber-photo { opacity: 0.4; }
  .chamber-media.model-ready:hover .chamber-model { opacity: 1; }
  .chamber-text { flex: 1; padding: 20px 24px; }
  .chamber-text h3 { margin: 0 0 6px; letter-spacing: -0.01em; }
  .chamber-text .meta { font-size: 0.9rem; line-height: 1.55; color: var(--muted); margin: 0; }
  @media (max-width: 700px) {
    .chamber { flex-direction: column; align-items: stretch; }
    .chamber-media { width: 100%; }
  }
  .chamber-list {
    list-style: none; margin: 10px 0 0; padding-left: 0; color: #2a2b3a; font-size: 0.92rem;
  }
  .chamber-list li { position: relative; padding-left: 16px; margin-bottom: 6px; }
  .chamber-list li::before {
    content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px;
    border-radius: 2px; background: var(--accent); opacity: 0.55;
  }

  .mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
  .mission-card {
    display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px;
    overflow: hidden;
  }
  .mission-card .mission-photo { width: 42%; flex-shrink: 0; object-fit: cover; display: block; }
  .mission-card .mission-text { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
  .mission-card h3 { margin: 0 0 6px; letter-spacing: -0.01em; }
  .mission-card .meta { font-size: 0.9rem; line-height: 1.5; color: var(--muted); margin: 0; }
  .mission-media { position: relative; width: 42%; flex-shrink: 0; overflow: hidden; }
  .mission-media .mission-photo { width: 100%; height: 100%; transition: opacity 0.15s ease; }
  .mission-media[data-video]::after {
    content: ''; position: absolute; bottom: 12px; right: 14px; width: 0; height: 0;
    border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid #fff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
    transition: opacity 0.15s ease;
  }
  .mission-media[data-video]:hover::after { opacity: 0; }
  .mission-media .mission-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
  }
  .mission-media.video-ready:hover .mission-photo { opacity: 0; }
  .mission-media.video-ready:hover .mission-video { opacity: 1; }
  @media (max-width: 820px) {
    .mission-grid { grid-template-columns: 1fr; }
    .figure-row-2 { grid-template-columns: 1fr; }
  }

  .figure-row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
  .figure-row-2 figure { margin: 0; }
  .figure-row-2 img.figure-img { height: 420px; width: 100%; object-fit: contain; }

  .info-list { list-style: none; margin: 0 0 16px; padding-left: 4px; }
  .info-list li { position: relative; padding-left: 20px; margin-bottom: 10px; }
  .info-list li::before {
    content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px;
    border-radius: 2px; background: var(--accent); opacity: 0.55;
  }
  .info-list b { color: var(--ink); }

  .term-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 16px 0 20px; }
  .term-box-header {
    background: #3a3d47; color: #fff; padding: 7px 18px; font-family: var(--serif);
    font-weight: 600; font-size: 1.05rem;
  }
  .term-box-body { background: var(--bg-tint); padding: 20px 24px; font-family: var(--serif); }
  .term-box-body p { margin: 0 0 10px; line-height: 1.35; text-align: justify; }
  .term-box-body p:last-child { margin-bottom: 0; }

  .figure-caption-note {
    font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: -20px; margin-bottom: 32px;
  }

  .data-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.92rem; }
  .data-table th {
    text-align: left; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.02em;
    color: var(--muted); text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--line);
  }
  .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .data-table tr:last-child td { border-bottom: none; }
  .data-table .link-cell a {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none;
  }
  .data-table .link-cell a:hover { text-decoration: underline; }

  footer {
    border-top: 1px solid var(--line); text-align: center; color: var(--muted);
    font-size: 0.85rem; padding: 32px 0 48px; margin-top: 20px;
  }

  .lightbox-overlay {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(12,13,20,0.92); align-items: center; justify-content: center;
    padding: 40px; cursor: zoom-out;
  }
  .lightbox-overlay.open { display: flex; }
  .lightbox-overlay img, .lightbox-overlay video {
    max-width: 100%; max-height: 100%; border-radius: 8px; cursor: default;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  }
  .lightbox-close {
    position: absolute; top: 18px; right: 24px; color: #fff; font-size: 2.2rem;
    background: none; border: none; cursor: pointer; line-height: 1; opacity: 0.75;
    font-family: var(--sans);
  }
  .lightbox-close:hover { opacity: 1; }

  @media (max-width: 820px) {
    .nav-links {
      display: none; position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
      padding: 8px 16px 16px; gap: 2px;
    }
    .nav-links.open { display: flex; }
    .nav-links button { text-align: left; width: 100%; padding: 11px 12px; font-size: 0.95rem; }
    .menu-toggle { display: block; }
    .nav-inner { position: relative; }
    h1 { font-size: 1.9rem; }
  }

  .rwt p { text-align: left; }
  .rwt .ref { color: var(--muted); }
  details.qa {
    border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px;
    background: #fff; overflow: hidden;
  }
  details.qa summary {
    cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none;
    font-family: var(--sans); font-size: 1rem;
  }
  details.qa summary::-webkit-details-marker { display: none; }
  details.qa summary::after { content: '+'; float: right; color: var(--accent); font-weight: 600; }
  details.qa[open] summary::after { content: '\2013'; }
  details.qa .qa-body { padding: 0 18px 16px; color: #33343f; }
  .ack { color: var(--muted); font-size: 0.95rem; text-align: center; }
