/* ── Tokens ────────────────────────────────────────────────────────── */
    :root {
      --primary:   #1a4d7f;
      --primary-l: #2563a8;
      --gold:      #c99a3d;
      --teal:      #2a8a82;
      --bg:        #f8fafc;
      --card:      #ffffff;
      --border:    #e2e8f0;
      --text:      #1e293b;
      --muted:     #64748b;
      --dim:       #94a3b8;
      --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
      --shadow-md: 0 4px 12px rgba(0,0,0,.10);
      --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
      --radius:    10px;
      --font-sans: 'DM Sans', sans-serif;
      --font-disp: 'Plus Jakarta Sans', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
    }
    /* ── Reset ─────────────────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      background: var(--bg); color: var(--text);
      font-family: var(--font-sans); font-size: 15px; line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }
    img { display: block; max-width: 100%; }
    button { cursor: pointer; font-family: inherit; background: none; border: none; }
    sub, sup { font-size: .7em; line-height: 0; }
    /* ── Utility ────────────────────────────────────────────────────────── */
    .wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
    .section { padding: 4.5rem 0; }
    .section--alt { background: #f1f5f9; }
    .section-head { margin-bottom: 2.5rem; }
    .badge {
      display: inline-flex; align-items: center; gap: .4rem;
      padding: .3rem .85rem; border-radius: 999px;
      background: rgba(26,77,127,.08); border: 1px solid rgba(26,77,127,.18);
      font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
      color: var(--primary); font-family: var(--font-disp); margin-bottom: 1rem;
    }
    h2.section-title {
      font-family: var(--font-disp); font-weight: 800;
      font-size: clamp(1.5rem,3vw,2.4rem); line-height: 1.18;
      letter-spacing: -.02em; margin-bottom: .65rem;
    }
    h2.section-title .accent { color: var(--primary); }
    h2.section-title .gold { color: var(--gold); }
    .section-sub { color: var(--muted); font-size: .97rem; max-width: 680px; }
    .card {
      background: var(--card); border-radius: var(--radius);
      box-shadow: var(--shadow-md); border: 1px solid var(--border);
    }
    .mono { font-family: var(--font-mono); font-size: .88em; }
    .fade-in { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
    .fade-in.visible { opacity: 1; transform: none; }
    .dl1 { transition-delay: .1s; } .dl2 { transition-delay: .2s; }
    .dl3 { transition-delay: .3s; } .dl4 { transition-delay: .4s; }
    .dl5 { transition-delay: .5s; }
    .chip {
      display: inline-flex; align-items: center; gap: .25rem;
      padding: .15rem .55rem; border-radius: 5px; font-size: .68rem;
      font-weight: 600; font-family: var(--font-mono);
    }
    /* ── Progress bar ────────────────────────────────────────────────── */
    #progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg,var(--primary),var(--teal)); z-index: 200; transition: width .1s linear; }
    /* ── Sticky Nav ─────────────────────────────────────────────────── */
    #site-nav {
      position: sticky; top: 0; z-index: 100;
      background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
    }
    .nav-inner {
      display: flex; align-items: center; justify-content: space-between;
      height: 54px; gap: .5rem;
    }
    .nav-logo {
      display: flex; align-items: center; gap: .5rem;
      font-family: var(--font-disp); font-weight: 800; font-size: .95rem;
      letter-spacing: -.01em; white-space: nowrap; flex-shrink: 0;
      color: var(--text);
    }
    .nav-logo svg { color: var(--primary); }
    .nav-links {
      display: flex; align-items: center; gap: .1rem; flex-wrap: nowrap;
      overflow-x: auto; scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a {
      display: flex; align-items: center; gap: .3rem;
      padding: .3rem .6rem; border-radius: 6px; white-space: nowrap;
      font-size: .73rem; font-weight: 500; color: var(--muted);
      transition: color .18s, background .18s;
    }
    .nav-links a:hover { color: var(--text); background: rgba(0,0,0,.04); }
    .nav-links a.active { color: var(--primary); background: rgba(26,77,127,.08); }
    @media (max-width: 640px) { .nav-links { display: none; } }
    /* ── Hero ────────────────────────────────────────────────────────── */
    #hero {
      background: linear-gradient(135deg, #0d2d52 0%, #1a4d7f 45%, #1e6b6b 100%);
      color: #fff; padding: 5rem 0 4.5rem; position: relative; overflow: hidden;
    }
    #hero::before {
      content: ''; position: absolute; inset: 0; opacity: .07;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    .hero-content { position: relative; z-index: 1; }
    .hero-pre {
      display: inline-flex; align-items: center; gap: .4rem;
      padding: .3rem .9rem; border-radius: 999px;
      background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
      font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
      color: #fff; margin-bottom: 1.25rem;
    }
    h1.hero-h1 {
      font-family: var(--font-disp); font-weight: 800;
      font-size: clamp(2rem,5.5vw,3.8rem); line-height: 1.1;
      letter-spacing: -.025em; margin-bottom: 1.1rem;
    }
    h1.hero-h1 .gold { color: #f0c060; }
    .hero-p { font-size: clamp(.9rem,1.8vw,1.08rem); color: rgba(255,255,255,.8); max-width: 700px; line-height: 1.7; margin-bottom: 2.5rem; }
    .hero-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: .9rem; max-width: 780px; }
    .hero-stat {
      background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
      border-radius: 9px; padding: 1rem 1.1rem; text-align: center;
    }
    .hero-stat-val { font-family: var(--font-mono); font-size: 1.65rem; font-weight: 700; color: #f0c060; display: block; line-height: 1.1; }
    .hero-stat-lbl { font-size: .72rem; color: rgba(255,255,255,.7); margin-top: .2rem; }
    /* ── Timeline ────────────────────────────────────────────────────── */
    .timeline { position: relative; }
    .timeline-line { position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: var(--border); }
    .timeline-events { display: flex; flex-direction: column; gap: 0; }
    .timeline-evt { position: relative; display: flex; gap: 1rem; padding: 0 0 1.4rem 3.5rem; }
    .timeline-dot {
      position: absolute; left: 14px; top: 2px;
      width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid;
      background: var(--card); z-index: 2; transition: transform .2s;
    }
    .timeline-evt:hover .timeline-dot { transform: scale(1.3); }
    .timeline-year { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; white-space: nowrap; }
    .timeline-title { font-family: var(--font-disp); font-weight: 700; font-size: .9rem; }
    .timeline-desc { font-size: .8rem; color: var(--muted); line-height: 1.55; margin-top: .15rem; }
    .cat-theory { color: #8b5cf6; }
    .cat-breakthrough { color: #3b82f6; }
    .cat-fab { color: #10b981; }
    .cat-pub { color: #f59e0b; }
    .cat-industry { color: #ef4444; }
    /* ── I-V Section ─────────────────────────────────────────────────── */
    .iv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
    @media (max-width: 760px) { .iv-grid { grid-template-columns: 1fr; } }
    .iv-diagram { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
    /* ── Types Table ─────────────────────────────────────────────────── */
    .types-table-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
    .types-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
    .types-table thead tr { background: var(--primary); color: #fff; }
    .types-table th { padding: .7rem .8rem; font-family: var(--font-disp); font-weight: 600; text-align: left; white-space: nowrap; }
    .types-table th:not(:first-child):not(:nth-child(2)) { text-align: center; }
    .types-table tbody tr { border-top: 1px solid var(--border); transition: background .12s; }
    .types-table tbody tr:nth-child(even) { background: rgba(0,0,0,.015); }
    .types-table tbody tr:hover { background: rgba(26,77,127,.04); }
    .types-table td { padding: .6rem .8rem; }
    .types-table td:not(:first-child):not(:nth-child(2)):not(:last-child) { text-align: center; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
    .maturity-badge {
      display: inline-block; padding: .15rem .5rem; border-radius: 4px;
      font-size: .65rem; font-weight: 700;
    }
    @media (max-width: 900px) { .types-table { font-size: .72rem; } .types-table th, .types-table td { padding: .5rem .5rem; } }
    /* ── Qualities ────────────────────────────────────────────────────── */
    .qualities-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1.1rem; }
    .quality-card {
      padding: 1.4rem 1.25rem; background: var(--card); border-radius: var(--radius);
      box-shadow: var(--shadow-md); border: 1px solid var(--border); transition: box-shadow .2s;
    }
    .quality-card:hover { box-shadow: var(--shadow-lg); }
    .quality-icon {
      width: 40px; height: 40px; border-radius: 9px;
      display: flex; align-items: center; justify-content: center;
      background: rgba(26,77,127,.1); color: var(--primary); margin-bottom: .85rem;
    }
    .quality-icon svg { width: 20px; height: 20px; }
    .quality-card h3 { font-family: var(--font-disp); font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
    .quality-card p { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-bottom: .7rem; }
    .quality-metric {
      display: inline-block; padding: .2rem .6rem; border-radius: 5px;
      background: rgba(26,77,127,.08); color: var(--primary);
      font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
    }
    /* ── Bismuth compounds ────────────────────────────────────────────── */
    .bi-summary {
      display: flex; flex-wrap: wrap; gap: .6rem; padding: 1rem 1.25rem;
      background: rgba(26,77,127,.06); border-radius: 9px; margin-bottom: 1.5rem;
      border: 1px solid rgba(26,77,127,.15);
    }
    .bi-summary-item { font-size: .8rem; }
    .bi-summary-val { font-family: var(--font-mono); font-weight: 700; color: var(--primary); }
    .bi-table-wrap { margin-bottom: 1.5rem; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
    .bi-table-head { padding: .6rem 1rem; font-family: var(--font-disp); font-weight: 700; font-size: .78rem; display: flex; align-items: center; gap: .5rem; }
    .bi-table { width: 100%; border-collapse: collapse; font-size: .79rem; }
    .bi-table thead tr { background: rgba(0,0,0,.04); }
    .bi-table th { padding: .55rem .75rem; text-align: left; font-weight: 600; font-size: .73rem; border-bottom: 1px solid var(--border); }
    .bi-table td { padding: .5rem .75rem; border-top: 1px solid rgba(0,0,0,.05); font-size: .77rem; }
    .bi-table tbody tr:hover { background: rgba(0,0,0,.02); }
    .bi-table td:nth-child(2), .bi-table td:nth-child(4) { font-family: var(--font-mono); text-align: center; }
    .bi-table th:nth-child(2), .bi-table th:nth-child(4) { text-align: center; }
    .bi-crystal-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
    .bi-crystal-img img { width: 100%; height: 100%; object-fit: cover; }
    /* ── Fabrication ─────────────────────────────────────────────────── */
    .fab-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(310px,1fr)); gap: 1.25rem; }
    .fab-card { padding: 1.4rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
    .fab-card h3 { font-family: var(--font-disp); font-weight: 700; font-size: .95rem; margin-bottom: .5rem; color: var(--primary); }
    .fab-card p { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-bottom: .85rem; }
    .fab-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .85rem; }
    .fab-meta-item { background: rgba(0,0,0,.03); border-radius: 6px; padding: .45rem .6rem; }
    .fab-meta-key { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); font-weight: 600; }
    .fab-meta-val { font-family: var(--font-mono); font-size: .74rem; margin-top: .1rem; }
    .fab-pros { display: flex; flex-wrap: wrap; gap: .3rem; }
    .fab-pro { font-size: .68rem; padding: .15rem .5rem; border-radius: 4px; background: #dcfce7; color: #16a34a; font-weight: 600; }
    .fab-con { font-size: .68rem; padding: .15rem .5rem; border-radius: 4px; background: #fee2e2; color: #dc2626; font-weight: 600; }
    /* ── Charts ──────────────────────────────────────────────────────── */
    .chart-tabs { display: flex; gap: .25rem; background: var(--card); padding: .25rem; border-radius: 9px; width: fit-content; margin: 0 auto 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
    .chart-tab { padding: .45rem 1.1rem; border-radius: 7px; font-size: .8rem; font-weight: 500; color: var(--muted); transition: color .18s, background .18s; }
    .chart-tab.active { background: var(--primary); color: #fff; }
    .chart-panel { display: none; }
    .chart-panel.active { display: block; }
    .chart-card { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
    /* ── Crossbar ────────────────────────────────────────────────────── */
    .crossbar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
    @media (max-width: 760px) { .crossbar-grid { grid-template-columns: 1fr; } }
    .crossbar-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
    .crossbar-img img { width: 100%; height: 100%; object-fit: cover; }
    .arch-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1rem; }
    .arch-card { padding: 1.1rem 1.25rem; background: var(--card); border-radius: 9px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
    .arch-card h3 { font-family: var(--font-disp); font-weight: 700; font-size: .85rem; margin-bottom: .4rem; color: var(--primary); }
    .arch-card p { font-size: .78rem; color: var(--muted); line-height: 1.55; margin-bottom: .5rem; }
    .arch-pro-con { display: flex; flex-direction: column; gap: .2rem; }
    .arch-pro, .arch-con { font-size: .72rem; padding: .2rem .5rem; border-radius: 4px; }
    .arch-pro { background: #dcfce7; color: #16a34a; }
    .arch-con { background: #fee2e2; color: #dc2626; }
    /* ── Challenges ──────────────────────────────────────────────────── */
    .challenges-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 1.1rem; }
    .challenge-card { padding: 1.4rem; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
    .challenge-header { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .7rem; }
    .challenge-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .challenge-icon svg { width: 18px; height: 18px; }
    .challenge-card h3 { font-family: var(--font-disp); font-weight: 700; font-size: .9rem; }
    .severity-badge { font-size: .65rem; padding: .15rem .5rem; border-radius: 4px; font-weight: 700; margin-top: .15rem; display: inline-block; }
    .sev-critical { background: #fecaca; color: #b91c1c; }
    .sev-high { background: #fed7aa; color: #c2410c; }
    .sev-moderate { background: #fef08a; color: #a16207; }
    .challenge-card p { font-size: .8rem; color: var(--muted); line-height: 1.6; margin-bottom: .65rem; }
    .mitigation { font-size: .77rem; color: var(--teal); background: rgba(42,138,130,.07); border-radius: 6px; padding: .5rem .7rem; border-left: 3px solid var(--teal); }
    /* ── Market ──────────────────────────────────────────────────────── */
    .market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
    @media (max-width: 760px) { .market-grid { grid-template-columns: 1fr; } }
    .bar-h { display: flex; flex-direction: column; gap: .55rem; }
    .bar-row { display: flex; align-items: center; gap: .75rem; }
    .bar-lbl { font-size: .78rem; font-weight: 500; white-space: nowrap; width: 150px; flex-shrink: 0; }
    .bar-track { flex: 1; height: 22px; background: rgba(0,0,0,.06); border-radius: 4px; overflow: hidden; }
    .bar-fill { height: 100%; border-radius: 4px; display: flex; align-items: center; padding-left: .4rem; }
    .bar-val { font-family: var(--font-mono); font-size: .68rem; color: #fff; font-weight: 600; }
    .pie-legend { display: flex; flex-direction: column; gap: .6rem; }
    .pie-item { display: flex; align-items: center; gap: .6rem; }
    .pie-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
    .pie-lbl { font-size: .8rem; flex: 1; }
    .pie-pct { font-family: var(--font-mono); font-size: .8rem; font-weight: 600; }
    /* ── Commercial Products ─────────────────────────────────────────── */
    .products-table-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
    .products-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
    .products-table thead tr { background: var(--primary); color: #fff; }
    .products-table th { padding: .7rem .85rem; font-family: var(--font-disp); font-weight: 600; text-align: left; white-space: nowrap; }
    .products-table tbody tr { border-top: 1px solid var(--border); transition: background .12s; }
    .products-table tbody tr:nth-child(even) { background: rgba(0,0,0,.015); }
    .products-table tbody tr:hover { background: rgba(26,77,127,.04); }
    .products-table td { padding: .65rem .85rem; }
    .status-badge { display: inline-block; padding: .18rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 700; }
    /* ── Memory Comparison ───────────────────────────────────────────── */
    .mem-table-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); margin-bottom: 2rem; }
    .mem-table { width: 100%; border-collapse: collapse; font-size: .79rem; }
    .mem-table thead tr { background: #1e3a5f; color: #fff; }
    .mem-table th { padding: .65rem .75rem; font-family: var(--font-disp); font-weight: 600; white-space: nowrap; }
    .mem-table th:not(:first-child) { text-align: center; }
    .mem-table tbody tr { border-top: 1px solid var(--border); }
    .mem-table tbody tr:nth-child(even) { background: rgba(0,0,0,.015); }
    .mem-table tbody tr:hover { background: rgba(26,77,127,.04); }
    .mem-table td { padding: .55rem .75rem; }
    .mem-table td:not(:first-child) { text-align: center; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
    .mem-table td.highlight { color: var(--primary); font-weight: 700; }
    /* ── Engineering ─────────────────────────────────────────────────── */
    .stack-layers { display: flex; flex-direction: column; gap: .5rem; }
    .stack-layer { display: flex; gap: .75rem; padding: .75rem; border-radius: 8px; border: 1px solid var(--border); background: rgba(0,0,0,.015); }
    .stack-bar { width: 4px; border-radius: 2px; flex-shrink: 0; }
    .stack-layer-name { font-family: var(--font-disp); font-weight: 700; font-size: .84rem; }
    .stack-layer-mat { font-family: var(--font-mono); font-size: .72rem; color: var(--primary); }
    .stack-layer-desc { font-size: .78rem; color: var(--muted); line-height: 1.5; margin-top: .2rem; }
    .process-flow { display: flex; flex-direction: column; gap: .5rem; }
    .process-step { display: flex; gap: .85rem; align-items: flex-start; padding: .75rem 1rem; background: var(--card); border-radius: 8px; border: 1px solid var(--border); }
    .step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .process-step h4 { font-family: var(--font-disp); font-weight: 700; font-size: .84rem; margin-bottom: .2rem; }
    .process-step p { font-size: .78rem; color: var(--muted); line-height: 1.5; }
    .step-dur { font-family: var(--font-mono); font-size: .68rem; color: var(--gold); font-weight: 600; margin-top: .2rem; }
    /* ── Applications ────────────────────────────────────────────────── */
    .apps-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1.25rem; margin-bottom: 2rem; }
    .app-card { padding: 1.4rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
    .app-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(26,77,127,.09); display: flex; align-items: center; justify-content: center; margin-bottom: .85rem; }
    .app-icon svg { width: 22px; height: 22px; color: var(--primary); }
    .app-card h3 { font-family: var(--font-disp); font-weight: 700; font-size: .97rem; margin-bottom: .4rem; }
    .app-card p { font-size: .82rem; color: var(--muted); line-height: 1.6; }
    .neuro-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 21/9; margin-bottom: 1.5rem; }
    .neuro-img img { width: 100%; height: 100%; object-fit: cover; }
    /* ── Glossary ─────────────────────────────────────────────────────── */
    .glossary-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: .9rem; }
    .gloss-item { padding: .85rem 1rem; background: var(--card); border-radius: 8px; border: 1px solid var(--border); border-left: 3px solid var(--primary); }
    .gloss-term { font-family: var(--font-disp); font-weight: 700; font-size: .85rem; color: var(--primary); margin-bottom: .25rem; }
    .gloss-def { font-size: .8rem; color: var(--muted); line-height: 1.55; }
    /* ── References ──────────────────────────────────────────────────── */
    .ref-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(400px,1fr)); gap: .9rem; }
    @media (max-width: 500px) { .ref-grid { grid-template-columns: 1fr; } }
    .ref-item { padding: .85rem 1rem; background: var(--card); border-radius: 8px; border: 1px solid var(--border); font-size: .78rem; line-height: 1.6; }
    .ref-num { font-family: var(--font-mono); font-weight: 700; color: var(--primary); margin-right: .4rem; }
    .ref-doi { font-family: var(--font-mono); font-size: .68rem; color: var(--teal); margin-top: .2rem; display: block; }
    /* ── Footer ──────────────────────────────────────────────────────── */
    footer { background: #0d2d52; color: rgba(255,255,255,.75); padding: 2.5rem 0 1.5rem; }
    .footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
    .footer-brand { font-family: var(--font-disp); font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: .3rem; }
    .footer-tagline { font-size: .78rem; color: rgba(255,255,255,.55); }
    .footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
    .footer-nav a { font-size: .8rem; color: rgba(255,255,255,.6); transition: color .18s; }
    .footer-nav a:hover { color: #f0c060; }
    .footer-copy { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; font-size: .7rem; color: rgba(255,255,255,.35); text-align: center; }

    @media print {
      #progress, #site-nav { display: none; }
      .section, .section--alt { padding: 1.5rem 0; }
      .card, .quality-card, .fab-card { box-shadow: none; break-inside: avoid; }
    }
