@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,300..700;1,6..72,300..700&display=swap');

/* ==========================================================================
   Design notes
   - Graphite "vacuum chamber" ground with faint, randomly
     scattered specks of light.
   - One serif (Newsreader) for names, headings and prose; one sans (IBM Plex
     Sans) for interface text and data.
   - Cyan is the working accent (links, rules, focus). Gold appears only where
     the rubidium valence electron does: the atom, the current-role marker,
     the active page dot.
   - The orbiting rubidium atom is the one expressive element. Everything
     else stays quiet.
   ========================================================================== */

:root {
    --bg-0: #080a0f;
    --bg-1: #0c0f15;
    --bg-2: #11151c;
    --cyan: #62d9dd;
    --cyan-soft: #9fdcdf;
    --purple: #8f86d6;
    --gold: #f0b94a;
    --text: #eceff4;
    --text-dim: #a2abb8;
    --text-faint: #7b8696;
    --prose: #c6cdd7;
    --border: rgba(165, 190, 215, 0.14);
    --border-strong: rgba(165, 200, 225, 0.30);
    --card: rgba(255, 255, 255, 0.022);

    --font-serif: 'Newsreader', 'Charter', 'Bitstream Charter', Georgia, serif;
    --font-sans: 'IBM Plex Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection { background: rgba(240, 185, 74, 0.32); color: #fff; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* ---------- Ground: soft light plus scattered specks ---------- */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60rem 38rem at 85% -6%, rgba(98, 217, 221, 0.075), transparent 62%),
        radial-gradient(46rem 30rem at 0% 100%, rgba(143, 134, 214, 0.045), transparent 60%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1) 55%, var(--bg-0));
}
.bg-aurora::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='760'%3E%3Ccircle cx='246.1' cy='114.6' r='1.2' fill='%23bed7eb' fill-opacity='0.17'/%3E%3Ccircle cx='277.9' cy='44.1' r='1' fill='%23bed7eb' fill-opacity='0.25'/%3E%3Ccircle cx='329.6' cy='53.1' r='0.6' fill='%23bed7eb' fill-opacity='0.40'/%3E%3Ccircle cx='628.4' cy='94.1' r='0.8' fill='%23bed7eb' fill-opacity='0.43'/%3E%3Ccircle cx='438.6' cy='301.5' r='0.8' fill='%23bed7eb' fill-opacity='0.17'/%3E%3Ccircle cx='220.1' cy='109.6' r='0.6' fill='%23bed7eb' fill-opacity='0.41'/%3E%3Ccircle cx='78.3' cy='434.1' r='0.8' fill='%23bed7eb' fill-opacity='0.32'/%3E%3Ccircle cx='428.9' cy='470.4' r='1' fill='%2362d9dd' fill-opacity='0.46'/%3E%3Ccircle cx='590.7' cy='353.9' r='1' fill='%23bed7eb' fill-opacity='0.31'/%3E%3Ccircle cx='603.7' cy='531.2' r='0.8' fill='%23bed7eb' fill-opacity='0.19'/%3E%3Ccircle cx='399.1' cy='665.1' r='1.2' fill='%23bed7eb' fill-opacity='0.35'/%3E%3Ccircle cx='89.7' cy='317.8' r='1.5' fill='%238f86d6' fill-opacity='0.30'/%3E%3Ccircle cx='320.5' cy='731.1' r='0.6' fill='%23bed7eb' fill-opacity='0.49'/%3E%3Ccircle cx='258.5' cy='266.1' r='1' fill='%238f86d6' fill-opacity='0.41'/%3E%3Ccircle cx='52.3' cy='71.1' r='0.8' fill='%23bed7eb' fill-opacity='0.36'/%3E%3Ccircle cx='46.1' cy='533.1' r='1.2' fill='%238f86d6' fill-opacity='0.41'/%3E%3Ccircle cx='216.3' cy='293.2' r='1.2' fill='%238f86d6' fill-opacity='0.31'/%3E%3Ccircle cx='270.2' cy='464.3' r='1' fill='%23bed7eb' fill-opacity='0.18'/%3E%3Ccircle cx='98.3' cy='188.2' r='1' fill='%238f86d6' fill-opacity='0.56'/%3E%3Ccircle cx='61.2' cy='341.4' r='1' fill='%23bed7eb' fill-opacity='0.28'/%3E%3Ccircle cx='622.7' cy='656.6' r='0.8' fill='%23bed7eb' fill-opacity='0.47'/%3E%3Ccircle cx='518.9' cy='289.1' r='0.8' fill='%23bed7eb' fill-opacity='0.22'/%3E%3Ccircle cx='115.0' cy='500.5' r='0.6' fill='%23bed7eb' fill-opacity='0.37'/%3E%3Ccircle cx='199.7' cy='3.1' r='1' fill='%23bed7eb' fill-opacity='0.39'/%3E%3Ccircle cx='724.4' cy='524.8' r='1' fill='%23bed7eb' fill-opacity='0.58'/%3E%3Ccircle cx='347.0' cy='661.9' r='1.5' fill='%2362d9dd' fill-opacity='0.46'/%3E%3Ccircle cx='302.5' cy='299.5' r='1' fill='%23bed7eb' fill-opacity='0.44'/%3E%3Ccircle cx='144.9' cy='748.3' r='1' fill='%23bed7eb' fill-opacity='0.22'/%3E%3Ccircle cx='456.6' cy='77.8' r='1' fill='%23bed7eb' fill-opacity='0.22'/%3E%3Ccircle cx='721.2' cy='466.4' r='0.6' fill='%2362d9dd' fill-opacity='0.54'/%3E%3Ccircle cx='112.9' cy='191.7' r='0.8' fill='%238f86d6' fill-opacity='0.42'/%3E%3Ccircle cx='93.4' cy='645.2' r='1' fill='%23bed7eb' fill-opacity='0.37'/%3E%3Ccircle cx='65.3' cy='77.7' r='0.8' fill='%238f86d6' fill-opacity='0.48'/%3E%3Ccircle cx='629.9' cy='122.7' r='0.6' fill='%23bed7eb' fill-opacity='0.24'/%3E%3Ccircle cx='111.4' cy='412.8' r='0.6' fill='%23bed7eb' fill-opacity='0.49'/%3E%3Ccircle cx='743.7' cy='656.1' r='1.2' fill='%23bed7eb' fill-opacity='0.53'/%3E%3Ccircle cx='690.3' cy='270.3' r='0.8' fill='%23bed7eb' fill-opacity='0.39'/%3E%3Ccircle cx='483.7' cy='466.1' r='1.5' fill='%23bed7eb' fill-opacity='0.59'/%3E%3Ccircle cx='612.6' cy='621.9' r='1.2' fill='%23bed7eb' fill-opacity='0.51'/%3E%3Ccircle cx='393.4' cy='270.2' r='0.6' fill='%23bed7eb' fill-opacity='0.60'/%3E%3Ccircle cx='358.9' cy='147.2' r='1' fill='%238f86d6' fill-opacity='0.58'/%3E%3Ccircle cx='614.5' cy='549.6' r='0.8' fill='%23bed7eb' fill-opacity='0.58'/%3E%3Ccircle cx='61.2' cy='77.6' r='1' fill='%23bed7eb' fill-opacity='0.24'/%3E%3Ccircle cx='366.8' cy='748.8' r='1' fill='%238f86d6' fill-opacity='0.53'/%3E%3Ccircle cx='691.0' cy='261.4' r='1.2' fill='%23bed7eb' fill-opacity='0.19'/%3E%3Ccircle cx='691.4' cy='594.6' r='1.5' fill='%23bed7eb' fill-opacity='0.24'/%3E%3Ccircle cx='329.8' cy='483.2' r='0.6' fill='%2362d9dd' fill-opacity='0.51'/%3E%3Ccircle cx='352.0' cy='564.9' r='0.6' fill='%23bed7eb' fill-opacity='0.48'/%3E%3Ccircle cx='754.8' cy='20.9' r='1' fill='%23bed7eb' fill-opacity='0.56'/%3E%3Ccircle cx='464.8' cy='452.9' r='1' fill='%23bed7eb' fill-opacity='0.45'/%3E%3Ccircle cx='118.5' cy='416.7' r='0.6' fill='%23bed7eb' fill-opacity='0.16'/%3E%3Ccircle cx='400.2' cy='709.6' r='1' fill='%23bed7eb' fill-opacity='0.59'/%3E%3Ccircle cx='627.9' cy='160.4' r='0.8' fill='%23bed7eb' fill-opacity='0.25'/%3E%3Ccircle cx='580.4' cy='247.8' r='1' fill='%23bed7eb' fill-opacity='0.34'/%3E%3Ccircle cx='46.3' cy='562.3' r='1' fill='%2362d9dd' fill-opacity='0.45'/%3E%3Ccircle cx='628.6' cy='667.4' r='0.8' fill='%23bed7eb' fill-opacity='0.39'/%3E%3Ccircle cx='663.3' cy='590.1' r='1' fill='%23bed7eb' fill-opacity='0.15'/%3E%3Ccircle cx='131.0' cy='359.9' r='1.2' fill='%23bed7eb' fill-opacity='0.20'/%3E%3Ccircle cx='247.7' cy='393.9' r='1' fill='%23bed7eb' fill-opacity='0.37'/%3E%3Ccircle cx='671.3' cy='43.2' r='0.8' fill='%23bed7eb' fill-opacity='0.27'/%3E%3Ccircle cx='385.9' cy='426.9' r='1.5' fill='%23bed7eb' fill-opacity='0.55'/%3E%3Ccircle cx='336.9' cy='465.5' r='1' fill='%23bed7eb' fill-opacity='0.42'/%3E%3Ccircle cx='526.5' cy='343.8' r='1' fill='%23bed7eb' fill-opacity='0.51'/%3E%3Ccircle cx='531.4' cy='666.2' r='0.8' fill='%23bed7eb' fill-opacity='0.57'/%3E%3Ccircle cx='638.4' cy='104.2' r='0.6' fill='%23bed7eb' fill-opacity='0.33'/%3E%3Ccircle cx='55.1' cy='182.9' r='0.6' fill='%23bed7eb' fill-opacity='0.25'/%3E%3Ccircle cx='595.8' cy='681.7' r='0.8' fill='%23bed7eb' fill-opacity='0.57'/%3E%3Ccircle cx='108.7' cy='671.0' r='1' fill='%23bed7eb' fill-opacity='0.25'/%3E%3Ccircle cx='302.7' cy='370.3' r='1.2' fill='%23bed7eb' fill-opacity='0.52'/%3E%3Ccircle cx='536.8' cy='755.5' r='1' fill='%23bed7eb' fill-opacity='0.30'/%3E%3Ccircle cx='271.0' cy='70.1' r='0.8' fill='%238f86d6' fill-opacity='0.16'/%3E%3Ccircle cx='334.7' cy='13.7' r='0.8' fill='%23bed7eb' fill-opacity='0.38'/%3E%3Ccircle cx='389.3' cy='48.9' r='1.5' fill='%23bed7eb' fill-opacity='0.25'/%3E%3Ccircle cx='63.9' cy='206.7' r='1.5' fill='%23bed7eb' fill-opacity='0.23'/%3E%3Ccircle cx='623.0' cy='645.7' r='1.2' fill='%23bed7eb' fill-opacity='0.52'/%3E%3Ccircle cx='308.5' cy='407.8' r='1' fill='%23bed7eb' fill-opacity='0.41'/%3E%3Ccircle cx='68.0' cy='43.7' r='1.2' fill='%23bed7eb' fill-opacity='0.23'/%3E%3Ccircle cx='204.4' cy='12.8' r='0.6' fill='%23bed7eb' fill-opacity='0.51'/%3E%3Ccircle cx='462.2' cy='169.0' r='0.8' fill='%238f86d6' fill-opacity='0.54'/%3E%3Ccircle cx='8.8' cy='755.7' r='1' fill='%23bed7eb' fill-opacity='0.57'/%3E%3Ccircle cx='472.5' cy='32.8' r='1.2' fill='%23bed7eb' fill-opacity='0.26'/%3E%3Ccircle cx='736.6' cy='199.0' r='0.8' fill='%23bed7eb' fill-opacity='0.24'/%3E%3Ccircle cx='477.8' cy='403.6' r='0.8' fill='%23bed7eb' fill-opacity='0.28'/%3E%3Ccircle cx='205.6' cy='610.8' r='0.8' fill='%23bed7eb' fill-opacity='0.17'/%3E%3Ccircle cx='557.1' cy='418.8' r='0.8' fill='%23bed7eb' fill-opacity='0.38'/%3E%3Ccircle cx='710.3' cy='80.8' r='1.5' fill='%238f86d6' fill-opacity='0.44'/%3E%3Ccircle cx='414.9' cy='675.4' r='1' fill='%23bed7eb' fill-opacity='0.29'/%3E%3Ccircle cx='746.7' cy='260.5' r='1.5' fill='%23bed7eb' fill-opacity='0.55'/%3E%3Ccircle cx='307.6' cy='264.1' r='0.6' fill='%23bed7eb' fill-opacity='0.53'/%3E%3Ccircle cx='53.7' cy='563.1' r='0.8' fill='%23bed7eb' fill-opacity='0.34'/%3E%3Ccircle cx='64.2' cy='639.4' r='1.5' fill='%23bed7eb' fill-opacity='0.38'/%3E%3Ccircle cx='455.1' cy='526.4' r='0.6' fill='%23bed7eb' fill-opacity='0.36'/%3E%3Ccircle cx='204.5' cy='2.8' r='0.8' fill='%23bed7eb' fill-opacity='0.58'/%3E%3Ccircle cx='185.8' cy='733.9' r='0.8' fill='%23bed7eb' fill-opacity='0.25'/%3E%3Ccircle cx='0.8' cy='290.0' r='1' fill='%23bed7eb' fill-opacity='0.28'/%3E%3Ccircle cx='188.6' cy='589.9' r='0.6' fill='%23bed7eb' fill-opacity='0.27'/%3E%3Ccircle cx='109.3' cy='446.0' r='1' fill='%23bed7eb' fill-opacity='0.16'/%3E%3Ccircle cx='478.5' cy='64.2' r='1' fill='%23bed7eb' fill-opacity='0.53'/%3E%3Ccircle cx='499.7' cy='544.2' r='1' fill='%23bed7eb' fill-opacity='0.33'/%3E%3Ccircle cx='547.7' cy='375.6' r='0.8' fill='%23bed7eb' fill-opacity='0.48'/%3E%3Ccircle cx='33.3' cy='634.8' r='1' fill='%23bed7eb' fill-opacity='0.43'/%3E%3Ccircle cx='691.5' cy='572.2' r='1' fill='%23bed7eb' fill-opacity='0.53'/%3E%3Ccircle cx='628.1' cy='443.9' r='1.2' fill='%23bed7eb' fill-opacity='0.46'/%3E%3Ccircle cx='64.7' cy='31.8' r='1.2' fill='%23bed7eb' fill-opacity='0.31'/%3E%3Ccircle cx='286.2' cy='343.1' r='0.6' fill='%23bed7eb' fill-opacity='0.43'/%3E%3Ccircle cx='371.9' cy='2.5' r='1.5' fill='%23bed7eb' fill-opacity='0.18'/%3E%3Ccircle cx='501.1' cy='50.2' r='1.2' fill='%23bed7eb' fill-opacity='0.36'/%3E%3Ccircle cx='643.1' cy='178.4' r='1.5' fill='%238f86d6' fill-opacity='0.24'/%3E%3Ccircle cx='375.4' cy='290.7' r='1' fill='%23bed7eb' fill-opacity='0.56'/%3E%3Ccircle cx='582.9' cy='468.9' r='1.2' fill='%23bed7eb' fill-opacity='0.24'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1130' height='1130'%3E%3Ccircle cx='765.2' cy='886.9' r='1' fill='%23bed7eb' fill-opacity='0.20'/%3E%3Ccircle cx='444.7' cy='1126.4' r='0.8' fill='%23bed7eb' fill-opacity='0.41'/%3E%3Ccircle cx='121.7' cy='465.4' r='0.8' fill='%23bed7eb' fill-opacity='0.53'/%3E%3Ccircle cx='1013.8' cy='25.8' r='1' fill='%23bed7eb' fill-opacity='0.24'/%3E%3Ccircle cx='1040.1' cy='128.7' r='1' fill='%23bed7eb' fill-opacity='0.32'/%3E%3Ccircle cx='907.5' cy='468.3' r='0.6' fill='%2362d9dd' fill-opacity='0.41'/%3E%3Ccircle cx='853.9' cy='447.6' r='1.2' fill='%23bed7eb' fill-opacity='0.60'/%3E%3Ccircle cx='894.9' cy='1077.9' r='0.8' fill='%23bed7eb' fill-opacity='0.50'/%3E%3Ccircle cx='905.7' cy='441.0' r='0.8' fill='%238f86d6' fill-opacity='0.21'/%3E%3Ccircle cx='118.2' cy='797.1' r='0.6' fill='%238f86d6' fill-opacity='0.58'/%3E%3Ccircle cx='671.4' cy='587.8' r='1.5' fill='%23bed7eb' fill-opacity='0.38'/%3E%3Ccircle cx='484.0' cy='612.4' r='0.8' fill='%23bed7eb' fill-opacity='0.55'/%3E%3Ccircle cx='103.4' cy='526.6' r='1' fill='%23bed7eb' fill-opacity='0.20'/%3E%3Ccircle cx='1057.0' cy='537.5' r='1' fill='%23bed7eb' fill-opacity='0.33'/%3E%3Ccircle cx='521.0' cy='340.3' r='1.2' fill='%23bed7eb' fill-opacity='0.49'/%3E%3Ccircle cx='236.4' cy='776.8' r='1.5' fill='%238f86d6' fill-opacity='0.34'/%3E%3Ccircle cx='75.1' cy='571.5' r='1.2' fill='%23bed7eb' fill-opacity='0.58'/%3E%3Ccircle cx='493.6' cy='310.5' r='0.6' fill='%2362d9dd' fill-opacity='0.21'/%3E%3Ccircle cx='323.0' cy='527.8' r='0.6' fill='%238f86d6' fill-opacity='0.24'/%3E%3Ccircle cx='993.0' cy='772.9' r='0.6' fill='%23bed7eb' fill-opacity='0.34'/%3E%3Ccircle cx='9.9' cy='434.7' r='1.2' fill='%23bed7eb' fill-opacity='0.28'/%3E%3Ccircle cx='643.6' cy='665.4' r='0.8' fill='%23bed7eb' fill-opacity='0.24'/%3E%3Ccircle cx='69.5' cy='875.3' r='1.2' fill='%23bed7eb' fill-opacity='0.53'/%3E%3Ccircle cx='222.7' cy='591.8' r='1.5' fill='%23bed7eb' fill-opacity='0.38'/%3E%3Ccircle cx='908.7' cy='907.9' r='1' fill='%23bed7eb' fill-opacity='0.55'/%3E%3Ccircle cx='724.3' cy='769.8' r='0.8' fill='%2362d9dd' fill-opacity='0.44'/%3E%3Ccircle cx='933.4' cy='1057.3' r='1.5' fill='%23bed7eb' fill-opacity='0.53'/%3E%3Ccircle cx='44.3' cy='964.0' r='0.6' fill='%23bed7eb' fill-opacity='0.38'/%3E%3Ccircle cx='294.4' cy='527.5' r='1' fill='%23bed7eb' fill-opacity='0.46'/%3E%3Ccircle cx='417.4' cy='503.1' r='1.5' fill='%23bed7eb' fill-opacity='0.30'/%3E%3Ccircle cx='718.6' cy='744.9' r='1' fill='%23bed7eb' fill-opacity='0.34'/%3E%3Ccircle cx='985.1' cy='105.8' r='1' fill='%23bed7eb' fill-opacity='0.32'/%3E%3Ccircle cx='50.8' cy='296.1' r='0.6' fill='%2362d9dd' fill-opacity='0.59'/%3E%3Ccircle cx='35.9' cy='192.5' r='1' fill='%23bed7eb' fill-opacity='0.45'/%3E%3Ccircle cx='802.2' cy='581.3' r='1.5' fill='%2362d9dd' fill-opacity='0.17'/%3E%3Ccircle cx='52.7' cy='771.4' r='1' fill='%23bed7eb' fill-opacity='0.30'/%3E%3Ccircle cx='313.2' cy='167.7' r='0.8' fill='%238f86d6' fill-opacity='0.20'/%3E%3Ccircle cx='145.0' cy='785.1' r='0.8' fill='%23bed7eb' fill-opacity='0.40'/%3E%3Ccircle cx='399.8' cy='887.4' r='1.2' fill='%23bed7eb' fill-opacity='0.26'/%3E%3Ccircle cx='391.5' cy='1045.6' r='0.8' fill='%23bed7eb' fill-opacity='0.40'/%3E%3Ccircle cx='67.4' cy='959.7' r='1' fill='%23bed7eb' fill-opacity='0.21'/%3E%3Ccircle cx='694.6' cy='557.4' r='1' fill='%238f86d6' fill-opacity='0.38'/%3E%3Ccircle cx='395.8' cy='1088.4' r='0.6' fill='%23bed7eb' fill-opacity='0.39'/%3E%3Ccircle cx='651.2' cy='747.3' r='1' fill='%2362d9dd' fill-opacity='0.26'/%3E%3Ccircle cx='471.2' cy='154.0' r='1' fill='%238f86d6' fill-opacity='0.25'/%3E%3Ccircle cx='210.3' cy='687.1' r='0.6' fill='%2362d9dd' fill-opacity='0.28'/%3E%3Ccircle cx='495.9' cy='72.7' r='1.2' fill='%23bed7eb' fill-opacity='0.60'/%3E%3Ccircle cx='834.5' cy='950.8' r='0.6' fill='%238f86d6' fill-opacity='0.27'/%3E%3Ccircle cx='185.1' cy='588.2' r='0.8' fill='%2362d9dd' fill-opacity='0.59'/%3E%3Ccircle cx='909.0' cy='157.7' r='0.8' fill='%23bed7eb' fill-opacity='0.34'/%3E%3Ccircle cx='303.8' cy='886.3' r='1' fill='%23bed7eb' fill-opacity='0.57'/%3E%3Ccircle cx='281.4' cy='203.7' r='0.6' fill='%23bed7eb' fill-opacity='0.39'/%3E%3Ccircle cx='29.4' cy='81.9' r='1.2' fill='%23bed7eb' fill-opacity='0.50'/%3E%3Ccircle cx='603.6' cy='71.2' r='0.6' fill='%2362d9dd' fill-opacity='0.19'/%3E%3Ccircle cx='777.9' cy='350.7' r='0.8' fill='%23bed7eb' fill-opacity='0.28'/%3E%3Ccircle cx='135.1' cy='688.2' r='0.6' fill='%23bed7eb' fill-opacity='0.31'/%3E%3Ccircle cx='131.4' cy='379.7' r='0.8' fill='%238f86d6' fill-opacity='0.26'/%3E%3Ccircle cx='120.8' cy='1111.1' r='1.5' fill='%23bed7eb' fill-opacity='0.41'/%3E%3Ccircle cx='673.4' cy='306.8' r='1' fill='%23bed7eb' fill-opacity='0.32'/%3E%3Ccircle cx='237.5' cy='554.5' r='0.6' fill='%238f86d6' fill-opacity='0.16'/%3E%3Ccircle cx='257.0' cy='676.6' r='0.8' fill='%2362d9dd' fill-opacity='0.23'/%3E%3Ccircle cx='192.1' cy='604.1' r='1.5' fill='%23bed7eb' fill-opacity='0.57'/%3E%3Ccircle cx='115.8' cy='730.9' r='1' fill='%2362d9dd' fill-opacity='0.56'/%3E%3Ccircle cx='234.0' cy='81.9' r='1' fill='%23bed7eb' fill-opacity='0.39'/%3E%3Ccircle cx='688.3' cy='358.7' r='0.8' fill='%23bed7eb' fill-opacity='0.43'/%3E%3Ccircle cx='1025.8' cy='938.9' r='0.6' fill='%23bed7eb' fill-opacity='0.46'/%3E%3Ccircle cx='951.0' cy='481.0' r='0.8' fill='%23bed7eb' fill-opacity='0.46'/%3E%3Ccircle cx='783.5' cy='457.8' r='0.6' fill='%238f86d6' fill-opacity='0.54'/%3E%3Ccircle cx='656.3' cy='588.0' r='1.2' fill='%238f86d6' fill-opacity='0.40'/%3E%3Ccircle cx='1027.8' cy='438.5' r='1' fill='%238f86d6' fill-opacity='0.29'/%3E%3Ccircle cx='149.7' cy='960.8' r='1' fill='%23bed7eb' fill-opacity='0.57'/%3E%3Ccircle cx='53.8' cy='853.9' r='1' fill='%23bed7eb' fill-opacity='0.25'/%3E%3Ccircle cx='841.3' cy='953.6' r='1.2' fill='%2362d9dd' fill-opacity='0.22'/%3E%3Ccircle cx='417.3' cy='122.7' r='1' fill='%238f86d6' fill-opacity='0.56'/%3E%3Ccircle cx='47.5' cy='1104.1' r='1.5' fill='%238f86d6' fill-opacity='0.16'/%3E%3Ccircle cx='179.6' cy='550.6' r='1' fill='%23bed7eb' fill-opacity='0.22'/%3E%3Ccircle cx='144.3' cy='319.1' r='0.8' fill='%238f86d6' fill-opacity='0.29'/%3E%3Ccircle cx='436.6' cy='1109.0' r='1' fill='%23bed7eb' fill-opacity='0.57'/%3E%3Ccircle cx='899.3' cy='622.4' r='0.8' fill='%23bed7eb' fill-opacity='0.31'/%3E%3Ccircle cx='14.8' cy='149.4' r='1' fill='%23bed7eb' fill-opacity='0.17'/%3E%3Ccircle cx='1123.5' cy='396.8' r='1.2' fill='%238f86d6' fill-opacity='0.30'/%3E%3Ccircle cx='722.4' cy='601.2' r='1' fill='%23bed7eb' fill-opacity='0.35'/%3E%3Ccircle cx='75.4' cy='1081.3' r='0.8' fill='%23bed7eb' fill-opacity='0.51'/%3E%3Ccircle cx='221.7' cy='171.0' r='0.8' fill='%23bed7eb' fill-opacity='0.58'/%3E%3Ccircle cx='583.5' cy='558.0' r='0.8' fill='%23bed7eb' fill-opacity='0.30'/%3E%3Ccircle cx='480.7' cy='1021.0' r='1.2' fill='%23bed7eb' fill-opacity='0.38'/%3E%3Ccircle cx='499.7' cy='88.9' r='1' fill='%23bed7eb' fill-opacity='0.17'/%3E%3Ccircle cx='697.9' cy='957.2' r='0.8' fill='%2362d9dd' fill-opacity='0.21'/%3E%3Ccircle cx='1073.1' cy='931.0' r='0.8' fill='%23bed7eb' fill-opacity='0.58'/%3E%3Ccircle cx='199.6' cy='976.2' r='1.2' fill='%23bed7eb' fill-opacity='0.51'/%3E%3Ccircle cx='923.8' cy='919.5' r='0.6' fill='%238f86d6' fill-opacity='0.23'/%3E%3Ccircle cx='657.7' cy='1079.8' r='0.8' fill='%23bed7eb' fill-opacity='0.55'/%3E%3Ccircle cx='7.3' cy='489.7' r='0.8' fill='%23bed7eb' fill-opacity='0.59'/%3E%3Ccircle cx='999.1' cy='198.9' r='1' fill='%238f86d6' fill-opacity='0.20'/%3E%3Ccircle cx='832.6' cy='311.1' r='0.8' fill='%23bed7eb' fill-opacity='0.41'/%3E%3Ccircle cx='293.6' cy='157.9' r='0.6' fill='%23bed7eb' fill-opacity='0.31'/%3E%3Ccircle cx='905.9' cy='891.7' r='1' fill='%23bed7eb' fill-opacity='0.29'/%3E%3Ccircle cx='496.7' cy='534.4' r='0.8' fill='%23bed7eb' fill-opacity='0.30'/%3E%3Ccircle cx='64.6' cy='955.9' r='0.8' fill='%238f86d6' fill-opacity='0.20'/%3E%3Ccircle cx='967.7' cy='775.0' r='1' fill='%23bed7eb' fill-opacity='0.36'/%3E%3Ccircle cx='972.6' cy='297.1' r='1.5' fill='%2362d9dd' fill-opacity='0.48'/%3E%3Ccircle cx='452.8' cy='859.1' r='1' fill='%23bed7eb' fill-opacity='0.42'/%3E%3Ccircle cx='124.9' cy='129.0' r='1.5' fill='%23bed7eb' fill-opacity='0.30'/%3E%3Ccircle cx='892.1' cy='766.2' r='1' fill='%238f86d6' fill-opacity='0.53'/%3E%3Ccircle cx='337.2' cy='859.9' r='1.5' fill='%238f86d6' fill-opacity='0.46'/%3E%3Ccircle cx='533.2' cy='733.3' r='1.5' fill='%23bed7eb' fill-opacity='0.59'/%3E%3Ccircle cx='705.8' cy='930.0' r='0.8' fill='%2362d9dd' fill-opacity='0.53'/%3E%3Ccircle cx='591.0' cy='51.0' r='1.2' fill='%23bed7eb' fill-opacity='0.56'/%3E%3Ccircle cx='626.6' cy='1055.5' r='1' fill='%23bed7eb' fill-opacity='0.39'/%3E%3Ccircle cx='1064.1' cy='1038.8' r='0.8' fill='%23bed7eb' fill-opacity='0.24'/%3E%3Ccircle cx='457.8' cy='494.4' r='1.5' fill='%238f86d6' fill-opacity='0.43'/%3E%3Ccircle cx='87.2' cy='534.1' r='1.2' fill='%23bed7eb' fill-opacity='0.59'/%3E%3Ccircle cx='846.1' cy='505.7' r='1.2' fill='%23bed7eb' fill-opacity='0.16'/%3E%3Ccircle cx='741.5' cy='813.3' r='0.8' fill='%23bed7eb' fill-opacity='0.45'/%3E%3Ccircle cx='406.2' cy='6.0' r='0.8' fill='%23bed7eb' fill-opacity='0.23'/%3E%3Ccircle cx='958.4' cy='517.0' r='1.2' fill='%23bed7eb' fill-opacity='0.24'/%3E%3Ccircle cx='139.2' cy='1046.1' r='1' fill='%2362d9dd' fill-opacity='0.37'/%3E%3Ccircle cx='395.8' cy='354.1' r='0.8' fill='%23bed7eb' fill-opacity='0.39'/%3E%3Ccircle cx='691.4' cy='251.2' r='0.8' fill='%23bed7eb' fill-opacity='0.53'/%3E%3Ccircle cx='648.0' cy='1098.2' r='1.5' fill='%2362d9dd' fill-opacity='0.33'/%3E%3Ccircle cx='6.0' cy='207.5' r='1.2' fill='%23bed7eb' fill-opacity='0.57'/%3E%3Ccircle cx='409.5' cy='916.7' r='1' fill='%2362d9dd' fill-opacity='0.37'/%3E%3Ccircle cx='411.5' cy='955.2' r='0.8' fill='%23bed7eb' fill-opacity='0.25'/%3E%3Ccircle cx='962.6' cy='974.7' r='1.2' fill='%23bed7eb' fill-opacity='0.35'/%3E%3Ccircle cx='121.1' cy='944.1' r='1.2' fill='%23bed7eb' fill-opacity='0.29'/%3E%3Ccircle cx='286.9' cy='846.1' r='0.8' fill='%23bed7eb' fill-opacity='0.59'/%3E%3Ccircle cx='635.1' cy='622.8' r='0.8' fill='%23bed7eb' fill-opacity='0.40'/%3E%3Ccircle cx='620.6' cy='4.5' r='0.6' fill='%23bed7eb' fill-opacity='0.16'/%3E%3Ccircle cx='125.1' cy='911.8' r='1.5' fill='%23bed7eb' fill-opacity='0.46'/%3E%3Ccircle cx='464.8' cy='903.8' r='1.5' fill='%23bed7eb' fill-opacity='0.37'/%3E%3Ccircle cx='60.3' cy='214.3' r='1.5' fill='%23bed7eb' fill-opacity='0.16'/%3E%3Ccircle cx='1039.5' cy='348.6' r='1' fill='%23bed7eb' fill-opacity='0.58'/%3E%3Ccircle cx='398.5' cy='236.1' r='0.6' fill='%2362d9dd' fill-opacity='0.32'/%3E%3Ccircle cx='806.9' cy='94.8' r='1' fill='%23bed7eb' fill-opacity='0.34'/%3E%3Ccircle cx='495.1' cy='128.4' r='0.8' fill='%2362d9dd' fill-opacity='0.15'/%3E%3Ccircle cx='655.4' cy='161.9' r='0.8' fill='%23bed7eb' fill-opacity='0.23'/%3E%3Ccircle cx='170.1' cy='320.5' r='1' fill='%23bed7eb' fill-opacity='0.21'/%3E%3Ccircle cx='997.8' cy='220.9' r='1' fill='%238f86d6' fill-opacity='0.59'/%3E%3Ccircle cx='933.1' cy='291.8' r='1.2' fill='%23bed7eb' fill-opacity='0.32'/%3E%3Ccircle cx='759.1' cy='792.5' r='1.5' fill='%2362d9dd' fill-opacity='0.43'/%3E%3Ccircle cx='796.9' cy='729.7' r='0.8' fill='%23bed7eb' fill-opacity='0.23'/%3E%3Ccircle cx='416.8' cy='662.0' r='0.8' fill='%23bed7eb' fill-opacity='0.54'/%3E%3Ccircle cx='730.7' cy='335.5' r='0.8' fill='%23bed7eb' fill-opacity='0.50'/%3E%3Ccircle cx='191.8' cy='261.8' r='1' fill='%23bed7eb' fill-opacity='0.52'/%3E%3Ccircle cx='608.7' cy='809.1' r='1' fill='%23bed7eb' fill-opacity='0.41'/%3E%3Ccircle cx='36.1' cy='46.5' r='1.2' fill='%23bed7eb' fill-opacity='0.30'/%3E%3Ccircle cx='336.0' cy='245.8' r='1.5' fill='%23bed7eb' fill-opacity='0.57'/%3E%3Ccircle cx='397.2' cy='785.4' r='1' fill='%23bed7eb' fill-opacity='0.26'/%3E%3Ccircle cx='865.5' cy='142.7' r='1.2' fill='%2362d9dd' fill-opacity='0.28'/%3E%3Ccircle cx='827.3' cy='392.0' r='1' fill='%2362d9dd' fill-opacity='0.21'/%3E%3C/svg%3E");
    background-size: 760px 760px, 1130px 1130px;
    background-position: 0 0, 310px 190px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 95%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 95%);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    width: 100%;
}

main.container { flex: 1 0 auto; }

/* Scroll progress bar */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0%;
    background: var(--cyan);
    z-index: 2000;
    transition: width 0.1s linear;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 36px); max-width: 1180px;
    background: rgba(9, 11, 16, 0.78);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 8px 10px 8px 16px;
    z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.nav-brand {
    font-family: var(--font-serif); font-weight: 500; font-size: 1.2rem; line-height: 1;
    letter-spacing: -0.005em;
    color: var(--text);
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}
/* Trim the text box to cap-height and baseline so it centres on the logo by its letters, not its line box */
.nav-brand span { display: block; }
@supports (text-box: trim-both cap alphabetic) {
    .nav-brand span { text-box: trim-both cap alphabetic; }
}
.nav-brand:hover { color: var(--cyan-soft); }
.nav-brand img { width: 24px; height: 24px; display: block; flex: none; }

/* ---------- Menu toggle ---------- */
.nav-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    width: 38px; height: 38px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px;
    cursor: pointer; padding: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
    z-index: 1002; flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--border-strong); }
.hamburger-bar {
    width: 16px; height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.nav-toggle.is-active .hamburger-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-active .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-active .hamburger-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Menu ---------- */
.nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: rgba(11, 14, 20, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    padding: 6px;
    list-style: none;
    display: flex; flex-direction: column; gap: 2px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    z-index: 1001;
}
.nav-menu.is-active { opacity: 1; visibility: visible; transform: none; }
.nav-menu .nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem; font-weight: 400;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: space-between;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu .nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-menu .nav-link.active { color: var(--text); font-weight: 500; background: rgba(255, 255, 255, 0.05); }
.nav-menu .nav-link.active::after {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
}

/* ---------- Page header (sub-pages) ---------- */
.page-header {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 148px 24px 20px;
    text-align: left;
    position: relative;
    z-index: 1;
}
.page-header .section-title {
    font-size: clamp(2.5rem, 6.4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.022em;
    margin-bottom: 4px;
}
.page-header .section-sub { max-width: 58ch; font-size: 1.12rem; margin-top: 16px; }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; min-height: min(100vh, 880px);
    display: flex; flex-direction: column; justify-content: center;
    padding: 130px 24px 90px; overflow: hidden;
}
.hero-inner {
    position: relative; z-index: 1;
    width: 100%; max-width: 1132px; margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(32px, 7vw, 96px);
    align-items: start;
    align-content: center;
}
.hero-inner > *:not(.atom) { position: relative; z-index: 1; grid-column: 1; }
.hero-inner > .atom { grid-column: 2; grid-row: 1 / span 6; align-self: center; }

/* Rubidium atom: the headshot is the nucleus */
.atom {
    position: relative; width: 200px; height: 200px;
    display: flex; align-items: center; justify-content: center; z-index: 0;
}
.atom .shells { position: absolute; top: 50%; left: 50%; width: 0; height: 0; z-index: 0; pointer-events: none; opacity: 0.6; }
.atom .shell {
    position: absolute; top: 50%; left: 50%; border-radius: 50%;
    border: 1px solid rgba(98, 217, 221, 0.13);
    transform: translate(-50%, -50%);
    animation: orbitSpin var(--dur) linear infinite;
}
.atom .shell.rev { animation-direction: reverse; border-color: rgba(143, 134, 214, 0.14); }
.atom .electron {
    position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%;
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r));
    background: var(--cyan);
    box-shadow: 0 0 6px 1px rgba(98, 217, 221, 0.45);
}
.atom .shell.rev .electron {
    background: var(--purple);
    box-shadow: 0 0 6px 1px rgba(143, 134, 214, 0.45);
}
.atom .electron.valence {
    width: 9px; height: 9px;
    background: radial-gradient(circle at 35% 35%, #fff3cc, var(--gold));
    box-shadow: 0 0 14px 3px rgba(240, 185, 74, 0.7);
}
@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-avatar {
    width: 200px; height: 200px; border-radius: 50%; margin: 0 auto;
    border: 1px solid var(--border-strong); overflow: hidden; position: relative; z-index: 1;
    box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.028), 0 0 70px rgba(98, 217, 221, 0.14);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Eyebrow: a quiet lead-in line, not a label */
.eyebrow {
    display: block;
    font-size: 1rem; font-weight: 400;
    letter-spacing: 0; text-transform: none;
    color: var(--text-dim); margin-bottom: 10px;
}

.hero-name {
    font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(3.1rem, 8.4vw, 6.6rem); line-height: 0.96; letter-spacing: -0.028em;
    color: var(--text);
    margin-bottom: 26px;
}
.hero-role {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.25; letter-spacing: -0.005em;
    color: var(--text); font-weight: 400; margin-bottom: 12px; max-width: 30ch;
}
.hero-affil { font-size: 1.02rem; color: var(--text-dim); margin-bottom: 30px; max-width: 52ch; }
.hero-affil strong { color: var(--text); font-weight: 500; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; max-width: 640px; }
.badge {
    font-size: 0.84rem; font-weight: 400; padding: 5px 12px; border-radius: var(--r-sm);
    color: var(--text-dim); background: transparent;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.badge:hover { border-color: var(--border-strong); color: var(--text); }

.hero-links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 0.92rem;
    padding: 10px 16px; border-radius: var(--r-sm);
    border: 1px solid var(--border-strong);
    color: var(--text); background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(165, 200, 225, 0.55); }
.btn-primary { background: var(--text); border-color: var(--text); color: #080a0f; }
.btn-primary:hover { background: #fff; border-color: #fff; }

/* Emoji in buttons and icon tiles are muted so they sit inside the palette */
.emo { filter: grayscale(1); opacity: 0.85; font-size: 0.95em; line-height: 1; }

.scroll-cue {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-faint);
    font-size: 0.8rem; letter-spacing: 0.02em;
}
.scroll-mouse { width: 18px; height: 30px; border: 1px solid var(--text-faint); border-radius: 10px; position: relative; }
.scroll-mouse::before {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 2px; height: 6px; border-radius: 2px; background: var(--cyan);
    animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 11px); } }

/* ---------- Stats: one ruled strip ---------- */
.stats-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin: 0 auto; width: 100%; max-width: 1180px; position: relative; z-index: 2;
    padding: 0 24px;
}
.stat-card {
    text-align: left; padding: 30px 28px 30px 0;
    background: none; border: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    border-radius: 0;
}
.stat-card + .stat-card { padding-left: 28px; border-left: 1px solid var(--border); }
.stat-num {
    font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 350; line-height: 1;
    letter-spacing: -0.02em; color: var(--text);
    font-variant-numeric: lining-nums tabular-nums;
}
.stat-label { font-size: 0.92rem; color: var(--text-dim); margin-top: 10px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0 24px; }
.section-head { text-align: left; max-width: 820px; margin: 0 0 36px; }
.section-title {
    font-family: var(--font-serif); font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 400;
    line-height: 1.1; letter-spacing: -0.018em;
    color: var(--text);
}
.section-sub { color: var(--text-dim); margin-top: 12px; font-size: 1.05rem; }
.section-subtitle {
    font-family: var(--font-serif); font-style: italic;
    font-size: 1.2rem; font-weight: 400; letter-spacing: 0;
    color: var(--text-dim);
    margin-top: 16px; line-height: 1.5;
}

.about-text {
    font-family: var(--font-serif);
    color: var(--prose); font-size: 1.22rem; line-height: 1.68; font-weight: 400;
    max-width: 64ch; margin: 0 0 1.1em; text-align: left;
}
.about-text.align-left { text-align: left; }
.about-text strong { color: var(--text); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
    position: relative; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 28px; overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.card:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.034); }

.card h2, .card h3, .card h4 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.005em; }
.card-title-lg { font-size: 1.7rem; color: var(--text); margin-bottom: 18px; line-height: 1.2; }
.card-title-md { font-size: 1.45rem; color: var(--text); margin-bottom: 16px; line-height: 1.2; }
.card-h4 { font-size: 1.18rem; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.card-kicker { color: var(--cyan-soft); font-size: 0.88rem; font-weight: 500; }
.card-date { color: var(--cyan-soft); font-size: 0.9rem; font-weight: 500; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.note { color: var(--text-dim); font-size: 0.93rem; margin-top: 8px; }
.note-flush { margin-top: 0; }
.note-md { font-size: 0.97rem; }

.subcard {
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 18px 18px 20px;
}
.subcard .card-h4 { margin-bottom: 8px; }

.mb-lg { margin-bottom: 40px; }
.mb-md { margin-bottom: 14px; }
.mb-0 { margin-bottom: 0; }

.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ico {
    width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
}
.expertise-item h3 { color: var(--text); font-size: 1.4rem; margin-bottom: 12px; line-height: 1.22; }
.expertise-grid .card h3 { font-size: 1.4rem; color: var(--text); margin-bottom: 10px; line-height: 1.22; }
.expertise-grid .card p { color: var(--text-dim); font-size: 0.96rem; line-height: 1.7; }
.expertise-grid .card p.card-date { color: var(--cyan-soft); font-size: 0.9rem; line-height: 1.4; }
.expertise-grid .card p.note { font-size: 0.93rem; }
.expertise-item p { color: var(--text-dim); font-size: 0.96rem; line-height: 1.7; }
.expertise-item ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.expertise-item ul li { color: var(--text-dim); font-size: 0.9rem; display: flex; align-items: baseline; gap: 10px; }
.expertise-item ul li::before {
    content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%;
    background: var(--cyan); opacity: 0.7; transform: translateY(-2px);
}

.expertise-grid .card:not(.expertise-item) ul { margin-top: 14px; padding-left: 18px; color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }
.expertise-grid .card:not(.expertise-item) li { margin-bottom: 7px; padding-left: 4px; }
.expertise-grid .card:not(.expertise-item) li::marker { color: var(--cyan); }

/* Quick link cards */
.gateway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.gateway-card { text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; }
.gateway-card h3 { color: var(--text); font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.gateway-card p { color: var(--text-dim); font-size: 0.9rem; margin: 10px 0 14px; line-height: 1.6; }
.gateway-card .arrow { color: var(--cyan); font-size: 0.9rem; font-weight: 600; align-self: flex-start; }

/* ---------- Timeline: a rail with dated entries, no boxes ---------- */
.timeline { position: relative; max-width: 920px; margin: 0; padding-left: 32px; }
.timeline::before {
    content: ''; position: absolute; left: 4px; top: 12px; bottom: 12px; width: 1px;
    background: var(--border-strong);
}
.tl-item.card {
    position: relative; margin-bottom: 0; padding: 0 0 44px;
    background: none; border: 0; border-radius: 0; overflow: visible;
}
.tl-item.card:hover { background: none; }
.tl-item:last-child { padding-bottom: 8px; }
.tl-item::before {
    content: ''; position: absolute; left: -32px; top: 9px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--bg-0); border: 1px solid var(--cyan);
    box-shadow: 0 0 0 4px var(--bg-0);
}
.section > .timeline:first-child > .tl-item:first-child::before { background: var(--gold); border-color: var(--gold); }
.tl-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 2px; margin-bottom: 8px; }
.tl-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.008em; color: var(--text); max-width: 34ch; }
.tl-date {
    font-size: 0.88rem; color: var(--text-faint); font-weight: 500; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.tl-org { color: var(--cyan-soft); font-weight: 500; font-size: 0.98rem; margin-bottom: 10px; }
.tl-desc { color: var(--text-dim); font-size: 0.98rem; line-height: 1.72; max-width: 72ch; }
.tl-meta { color: var(--text-faint); font-size: 0.92rem; margin-top: 12px; line-height: 1.7; max-width: 72ch; }
.tl-meta strong { color: var(--text-dim); font-weight: 500; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.skills-grid--narrow { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.skill-category h4 { color: var(--text); font-size: 1.3rem; margin-bottom: 18px; line-height: 1.2; }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
    background: rgba(255, 255, 255, 0.04); color: var(--text); padding: 5px 11px; border-radius: var(--r-sm);
    font-size: 0.84rem; font-weight: 400; border: 1px solid var(--border);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.skill-tag:hover { background: rgba(98, 217, 221, 0.09); border-color: rgba(98, 217, 221, 0.4); }

/* ---------- Publications: a ledger ---------- */
.pub-grid { display: grid; gap: 0; border-top: 1px solid var(--border); }
.pub-item.card {
    padding: 28px 0 28px 68px;
    background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
    overflow: visible;
}
.pub-item.card:hover { background: none; }
.pub-num {
    position: absolute; left: 0; top: 31px;
    font-family: var(--font-sans); font-size: 0.92rem; font-weight: 500;
    color: var(--text-faint); font-variant-numeric: tabular-nums;
}
.pub-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.pub-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; line-height: 1.34; letter-spacing: -0.008em; color: var(--text); max-width: 56ch; }
.pub-link-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
    font-size: 0.82rem; font-weight: 500; color: var(--text-dim); white-space: nowrap;
    padding: 5px 11px; border-radius: var(--r-sm); border: 1px solid var(--border);
    background: transparent; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    margin-top: 3px;
}
.pub-link-btn:hover { color: var(--text); background: rgba(98, 217, 221, 0.08); border-color: rgba(98, 217, 221, 0.45); }
.pub-authors { color: var(--text-dim); font-size: 0.93rem; margin-bottom: 6px; max-width: 80ch; line-height: 1.6; }
.pub-venue { color: var(--text-faint); font-size: 0.9rem; font-style: italic; }

/* ---------- References ---------- */
.references-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ref-card { padding: 24px; }
.ref-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--text); margin-bottom: 4px; line-height: 1.25; }
.ref-role { color: var(--cyan-soft); font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; }
.ref-org { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; margin-bottom: 14px; }
.ref-email {
    display: inline-flex; align-items: center; gap: 6px; color: var(--cyan);
    font-size: 0.86rem; text-decoration: underline; text-decoration-color: rgba(98, 217, 221, 0.35); text-underline-offset: 3px;
    overflow-wrap: anywhere; transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.ref-email:hover { color: var(--text); text-decoration-color: var(--text); }

.sub-heading {
    font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 400; letter-spacing: -0.012em; color: var(--text);
    margin: 64px 0 26px; display: flex; align-items: center; gap: 20px; line-height: 1.15;
}
.sub-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.center-link { text-align: left; margin-top: 36px; }
.text-link {
    color: var(--cyan); text-decoration: none; font-weight: 500; font-size: 0.97rem;
    border-bottom: 1px solid rgba(98, 217, 221, 0.35); padding-bottom: 2px; transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link:hover { color: var(--text); border-color: var(--text); }

/* ---------- Footer ---------- */
.footer {
    text-align: left;
    padding: 80px max(24px, calc((100vw - 1132px) / 2)) 56px;
    margin-top: 80px; border-top: 1px solid var(--border); width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 60%);
}
.footer .hero-name { font-size: clamp(2.2rem, 5.6vw, 3.8rem); margin-bottom: 16px; line-height: 1.02; }
.footer .about-text { font-size: 1.15rem; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 34px; }
.footer-copy { color: var(--text-faint); font-size: 0.86rem; margin-top: 6px; }
.footer-copy:nth-of-type(1) { display: none; }
.footer-copy:nth-of-type(2) { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--text-dim); margin-top: 0; }
.footer-copy:nth-of-type(3) { margin-top: 18px; }

/* ---------- Reveal: a plain, short fade ---------- */
.reveal { opacity: 0; transition: opacity 0.6s ease; }
.reveal.is-visible { opacity: 1; }
.reveal.d1 { transition-delay: 0.05s; }
.reveal.d2 { transition-delay: 0.1s; }
.reveal.d3 { transition-delay: 0.15s; }
.reveal.d4 { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transition: none; }
    .atom .shell, .scroll-mouse::before, .nav-menu, .hamburger-bar { animation: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .hero { padding: 120px 24px 116px; min-height: 0; }
    .scroll-cue { bottom: 30px; }
    .hero-inner { display: block; }
    .hero-inner > .atom { margin: 0 0 40px; width: 168px; height: 168px; }
    .hero-avatar { width: 168px; height: 168px; margin: 0; }
    .atom .shells { opacity: 0.3; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-card:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat-card:nth-child(n+3) { border-top: 0; }
}
@media (max-width: 580px) {
    .navbar { width: calc(100% - 24px); top: 12px; padding: 6px 8px 6px 12px; }
    .nav-brand { font-size: 1.02rem; gap: 8px; }
    .nav-brand img { width: 20px; height: 20px; }
    .nav-menu { width: 100%; right: 0; left: 0; }
    .page-header { padding: 118px 20px 12px; }
    .section { padding: 52px 0 12px; }
    .card { padding: 20px; }
    .about-text { font-size: 1.12rem; }
    .stat-card { padding: 22px 16px 22px 0; }
    .stat-card + .stat-card { padding-left: 16px; }
    .stat-card:nth-child(3) { padding-left: 0; }
    .tl-title { font-size: 1.3rem; }
    .pub-item.card { padding-left: 40px; }
    .pub-num { font-size: 0.84rem; top: 33px; }
    .pub-title { font-size: 1.15rem; }
    .pub-title-row { flex-direction: column; gap: 12px; }
    .sub-heading { margin-top: 48px; }
}
