  /* Fonts are served from this site (no third-party requests). Both are under the SIL Open Font License. */
  @font-face { font-family: "Geist"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(fonts/geist.woff2) format("woff2"); }
  @font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/eb-garamond.woff2) format("woff2"); }
  @font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 500; font-display: swap; src: url(fonts/eb-garamond-italic.woff2) format("woff2"); }

  :root {
    --bg: #050505;
    --fg: #f4f4f2;
    --muted: rgb(244 244 242 / 0.6);
    --faint: rgb(244 244 242 / 0.4);
    --ink: 255 255 255;
    --line: rgb(var(--ink) / 0.1);
    --glass: rgb(255 255 255 / 0.035);
    --glass-strong: rgb(255 255 255 / 0.06);
    --glass-border: rgb(255 255 255 / 0.11);
    --nav-bg: rgb(12 12 12 / 0.55);
    --nav-bg-solid: rgb(12 12 12 / 0.85);
    --shadow-soft: rgb(0 0 0 / 0.4);
    --hl: rgb(255 255 255 / 0.06);
    --dot-glow: 0 0 12px rgb(255 255 255 / 0.8);
    --orb-a: 0.5;
    --orb-b: 0.25;
    --grain: 0.05;
    --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --serif: "EB Garamond", "Garamond", ui-serif, Georgia, "Times New Roman", serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --gutter: clamp(20px, 5vw, 64px);
    color-scheme: dark;
  }
  :root[data-theme="light"] {
    --bg: #fafaf8;
    --fg: #0a0a0a;
    --muted: rgb(10 10 10 / 0.62);
    --faint: rgb(10 10 10 / 0.45);
    --ink: 0 0 0;
    --glass: rgb(255 255 255 / 0.55);
    --glass-strong: rgb(255 255 255 / 0.75);
    --glass-border: rgb(0 0 0 / 0.09);
    --nav-bg: rgb(250 250 248 / 0.6);
    --nav-bg-solid: rgb(250 250 248 / 0.92);
    --shadow-soft: rgb(0 0 0 / 0.06);
    --hl: rgb(255 255 255 / 0.9);
    --dot-glow: 0 0 10px rgb(0 0 0 / 0.25);
    --orb-a: 0.16;
    --orb-b: 0.08;
    --grain: 0.035;
    color-scheme: light;
  }

  /* Theme switch: the dark theme is a nanotech "suit" that flows over (or retracts from) the page.
     Per-element transitions are frozen during the swap so nothing lags behind the flow. */
  :root.suiting::view-transition-old(root), :root.suiting::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  /* The new page stays hidden until the flow's clip animation takes over (avoids a first-frame flash) */
  :root.suiting::view-transition-new(root) { clip-path: polygon(0 0, 0 0, 0 0); }
  /* The § emblem rides on its own live layer above the transition, so it never freezes;
     its colour eases between themes instead of being swept by the flow. */
  :root.suiting::view-transition-group(emblem), :root.suiting::view-transition-new(emblem) { animation: none; }
  :root.suiting::view-transition-old(emblem) { display: none; }
  ::view-transition-new(suit-hud), ::view-transition-old(suit-hud) { animation: none; }
  .suit-hud {
    position: fixed; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 200; view-transition-name: suit-hud;
  }
  /* Moving between pages: the menu bar stays put while the page content fades through */
  @view-transition { navigation: auto; }
  :root:not(.suiting)::view-transition-old(root) { animation: page-out 0.3s var(--ease) both; }
  :root:not(.suiting)::view-transition-new(root) { animation: page-in 0.55s var(--ease) 0.08s both; }
  @keyframes page-out { to { opacity: 0; transform: translateY(-10px); filter: blur(6px); } }
  @keyframes page-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

  .theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
  .theme-switching .theme-btn svg > *, .theme-switching .theme-btn .moon-cut { transition: transform 0.7s var(--ease), opacity 0.5s var(--ease) !important; }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--fg); color: var(--bg); }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  em.serif { font-family: var(--serif); font-weight: 400; font-style: italic; }

  /* Film grain overlay */
  .grain {
    position: fixed; inset: -50%;
    pointer-events: none; z-index: 100;
    opacity: var(--grain);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
  }
  @keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -1%); }
    80% { transform: translate(3%, 3%); }
  }

  /* Scroll progress */
  .progress {
    position: fixed; top: 0; left: 0; right: 0; height: 1px;
    background: var(--fg); transform-origin: 0 50%; transform: scaleX(0);
    z-index: 60; opacity: 0.7;
  }

  /* ---------- Nav ---------- */
  .nav {
    position: fixed; z-index: 50;
    top: calc(env(safe-area-inset-top, 0px) + 18px);
    left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: var(--nav-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 10px 40px var(--shadow-soft), inset 0 1px 0 var(--hl);
    view-transition-name: site-nav;
  }
  .nav .mark {
    font-family: var(--serif); font-size: 20px; line-height: 1;
    padding: 8px 14px 8px 12px; letter-spacing: 0.01em;
  }
  .nav-links { display: flex; gap: 2px; position: relative; }
  .nav-links a {
    position: relative; z-index: 1;
    font-size: 13px; color: var(--muted);
    padding: 8px 14px; border-radius: 999px;
    transition: color 0.4s var(--ease);
  }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
  .nav-links .short { display: none; }
  .nav-pill {
    position: absolute; top: 0; height: 100%;
    border-radius: 999px; background: rgb(var(--ink) / 0.08);
    transition: transform 0.6s var(--ease), width 0.6s var(--ease), opacity 0.4s;
    opacity: 0;
  }
  .theme-btn {
    width: 34px; height: 34px; margin-left: 4px; padding: 0;
    display: grid; place-items: center; flex: none;
    border: 0; border-radius: 50%; cursor: pointer;
    background: rgb(var(--ink) / 0.08); color: var(--fg);
    transition: background 0.4s var(--ease);
  }
  :root:not(.js) .theme-btn { display: none; }
  .theme-btn:hover { background: rgb(var(--ink) / 0.14); }
  .theme-btn svg { width: 18px; height: 18px; overflow: visible; }
  .theme-btn svg > * { transition: transform 0.7s var(--ease), opacity 0.5s var(--ease); transform-origin: 12px 12px; transform-box: view-box; }
  .theme-btn .core { fill: currentColor; }
  .theme-btn .rays { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .theme-btn .moon-cut { transition: transform 0.7s var(--ease); }
  /* dark: crescent moon */
  :root[data-theme="dark"] .theme-btn .core { transform: scale(1.55); }
  :root[data-theme="dark"] .theme-btn .rays { transform: rotate(-90deg) scale(0.4); opacity: 0; }
  /* light: sun */
  :root[data-theme="light"] .theme-btn .moon-cut { transform: translate(8px, -8px); }

  /* ---------- Layout ---------- */
  .wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
  section { position: relative; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
  }
  .eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--fg); box-shadow: var(--dot-glow);
  }
  .section-head {
    padding-bottom: 28px; margin-bottom: 56px;
    border-bottom: 1px solid var(--line);
  }
  .section-head h2 {
    margin: 14px 0 0;
    font-size: clamp(40px, 7vw, 96px);
    line-height: 0.95; letter-spacing: -0.035em; font-weight: 500;
  }
  .block { padding-block: clamp(80px, 12vw, 160px); }
  .when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .org { display: block; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.35; color: var(--muted); }

  /* Pulsing dot marking something current */
  .when.now { display: inline-flex; align-items: center; gap: 10px; }
  .when.now::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fg);
    animation: pulse 2.4s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgb(var(--ink) / 0.5); }
    50% { box-shadow: 0 0 0 6px rgb(var(--ink) / 0); }
  }

  /* ---------- Hero ---------- */
  .hero {
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-block: 140px 48px;
    overflow: hidden;
  }
  .hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
  .hero-bg .grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(to right, rgb(var(--ink) / 0.045) 1px, transparent 1px),
      linear-gradient(to bottom, rgb(var(--ink) / 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  }
  .orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: var(--orb-a);
    background: radial-gradient(circle, rgb(var(--ink) / 0.55), rgb(var(--ink) / 0) 70%);
  }
  .orb.a { width: 46vw; height: 46vw; top: -12vw; right: -8vw; animation: drift 22s ease-in-out infinite; }
  .orb.b { width: 30vw; height: 30vw; bottom: 4vw; left: -10vw; opacity: var(--orb-b); animation: drift 28s ease-in-out infinite reverse; }
  @keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-6vw, 5vw) scale(1.12); }
  }
  .spotlight {
    position: absolute; width: 640px; height: 640px; border-radius: 50%;
    left: 0; top: 0; pointer-events: none;
    background: radial-gradient(circle, rgb(var(--ink) / 0.09), transparent 60%);
    transform: translate(-50%, -50%);
  }

  /* § emblem in the hero */
  .emblem {
    position: absolute; right: var(--gutter); top: 18%;
    width: clamp(200px, 28vw, 400px); aspect-ratio: 1;
    view-transition-name: emblem;
    opacity: 0; animation: fadeIn 2s var(--ease) 0.9s forwards;
  }
  .emblem canvas { width: 100%; height: 100%; display: block; }
  @keyframes fadeIn { to { opacity: 1; } }

  .hero .eyebrow { opacity: 0; animation: rise 1s var(--ease) 0.2s forwards; }
  .hero h1 {
    margin: 22px 0 0;
    font-family: var(--serif);
    font-size: clamp(64px, 14.5vw, 220px);
    line-height: 0.9; letter-spacing: -0.03em; font-weight: 600;
  }
  .hero h1 .line { display: block; overflow: hidden; padding: 0 0.1em 0.34em 0; margin-bottom: -0.28em; }
  .hero h1 .revealed .line { overflow: visible; }
  .hero h1 .line:last-child { font-weight: 400; letter-spacing: -0.02em; }
  .char {
    display: inline-block; transform: translateY(110%);
    animation: charUp 1.2s var(--ease) forwards;
  }
  @keyframes charUp { to { transform: translateY(0); } }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-foot {
    margin-top: 56px; padding-top: 32px;
    border-top: 1px solid var(--line);
    display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
    opacity: 0; animation: rise 1.2s var(--ease) 1.1s forwards;
  }
  .statement {
    margin: 0; max-width: 34ch;
    font-size: clamp(22px, 2.6vw, 36px);
    line-height: 1.22; letter-spacing: -0.02em; font-weight: 400;
  }
  .statement em { font-family: var(--serif); font-style: italic; }
  .scroll-cue {
    width: 54px; height: 54px; border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: grid; place-items: center; position: relative; overflow: hidden;
  }
  .scroll-cue::after {
    content: ""; width: 1px; height: 18px; background: var(--fg);
    animation: cue 2.2s var(--ease) infinite;
  }
  @keyframes cue {
    0% { transform: translateY(-30px); }
    50% { transform: translateY(0); }
    100% { transform: translateY(30px); }
  }

  /* ---------- Inner page header ---------- */
  .page-head { padding-block: clamp(140px, 18vw, 220px) clamp(32px, 5vw, 56px); }
  .page-title {
    margin: 18px 0 0; font-size: clamp(56px, 10vw, 150px);
    line-height: 0.92; letter-spacing: -0.045em; font-weight: 500;
  }
  .page-title em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; }
  section[id] { scroll-margin-top: 150px; }
  .page-main { padding-bottom: clamp(40px, 8vw, 100px); }

  /* Section bar on the CV page: stays in view and marks where you are */
  .subnav {
    position: sticky; top: calc(env(safe-area-inset-top, 0px) + 86px); z-index: 40;
    display: flex; gap: 4px; width: max-content; max-width: 100%; overflow-x: auto;
    margin-bottom: clamp(24px, 4vw, 48px); padding: 5px; border-radius: 999px;
    background: var(--nav-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    scrollbar-width: none;
  }
  .subnav a {
    font-size: 13px; color: var(--muted); padding: 7px 14px; border-radius: 999px; white-space: nowrap;
    transition: color 0.4s var(--ease), background 0.4s var(--ease);
  }
  .subnav a:hover { color: var(--fg); }
  .subnav a.on { color: var(--fg); background: rgb(var(--ink) / 0.08); }
  .page-main .block:first-of-type { padding-top: clamp(40px, 6vw, 80px); }

  /* ---------- About ---------- */
  .about { padding-block: clamp(100px, 14vw, 180px) clamp(40px, 6vw, 80px); }
  .about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
    margin-top: 40px;
  }
  .about-grid p { margin: 0 0 1.2em; color: var(--muted); font-size: 17px; max-width: 52ch; }
  .about-grid p:first-child { color: var(--fg); }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }

  /* ---------- Glass card ---------- */
  .glass {
    position: relative; overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 var(--hl);
  }

  .fact { padding: 24px 26px 26px; display: flex; flex-direction: column; }
  .fact small { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
  .fact strong { font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
  .fact span { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: balance; }
  .fact.wide { grid-column: 1 / -1; }
  .interests { margin-top: 36px; }
  .interests small { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
  .tags span {
    font-size: 13px; color: var(--muted);
    border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  }

  /* ---------- Research & teaching: editorial two-column grid ---------- */
  .entries { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); }
  .entry { padding-block: 36px 44px; border-top: 1px solid var(--line); }
  .entry:nth-child(-n+2) { border-top: 0; padding-top: 0; }
  .entry h3 { margin: 14px 0 6px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
  .entry p { margin: 16px 0 0; color: var(--muted); font-size: 15px; max-width: 52ch; }

  /* ---------- Publications: linked list ---------- */
  .pubs { list-style: none; margin: -12px 0 0; padding: 0; }
  .pub {
    position: relative;
    display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: baseline;
    padding: 26px 16px; border-bottom: 1px solid var(--line); border-radius: 4px;
    transition: background 0.5s var(--ease);
  }
  .pub:hover { background: rgb(var(--ink) / 0.035); }
  .pub a::after { content: ""; position: absolute; inset: 0; }      /* the whole row is the link */
  .pub a:focus-visible { outline: none; }
  .pub:has(a:focus-visible) { outline: 1px solid var(--fg); outline-offset: 2px; }
  .pub .yr { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
  .pub h3 { margin: 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
  .pub .org { margin-top: 4px; font-size: 17px; }
  .pub .kind {
    font-size: 12px; color: var(--muted);
    border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
  }
  .arrow { display: inline-block; transition: transform 0.5s var(--ease); }
  .pub:hover .arrow { transform: translate(3px, -3px); }

  /* ---------- Accomplishments: numbered ledger with serif headlines ---------- */
  .ledger { list-style: none; margin: 0; padding: 0; counter-reset: acc; }
  .ledger li {
    counter-increment: acc;
    display: grid; grid-template-columns: 64px 1fr auto; gap: 6px 32px; align-items: baseline;
    padding-block: 26px; border-bottom: 1px solid var(--line);
  }
  .ledger li:first-child { padding-top: 0; }
  .ledger li::before { content: counter(acc, decimal-leading-zero); font-family: var(--serif); font-size: 18px; color: var(--muted); }
  .ledger h3 { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
  .ledger .detail { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 70ch; }
  .ledger .when { white-space: nowrap; }
  .aside {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 40px 0 0;
    font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted);
  }
  .aside span { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

  /* ---------- Experience: vertical timeline ---------- */
  .track { position: relative; padding-left: 44px; }
  .track::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
  .stop { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 8px 48px; padding-bottom: 64px; }
  .stop:last-child { padding-bottom: 0; }
  .stop::before {
    content: ""; position: absolute; left: -44px; top: 6px;
    width: 11px; height: 11px; border-radius: 50%;
    border: 1px solid var(--fg); background: var(--bg);
  }
  .stop .when { padding-top: 3px; }
  .stop h3 { margin: 0; font-size: clamp(26px, 2.8vw, 38px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
  .stop .org { margin-top: 8px; }
  .stop p { margin: 16px 0 0; color: var(--muted); font-size: 15px; max-width: 64ch; }
  .steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; max-width: 64ch; }
  .steps li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); font-size: 15px; }
  .steps li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

  /* ---------- Education: compact table ---------- */
  .degrees { width: 100%; border-collapse: collapse; margin-top: -24px; }
  .degrees th {
    text-align: left; font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted); padding: 0 24px 14px 0; border-bottom: 1px solid var(--line);
  }
  .degrees td { vertical-align: baseline; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
  .degrees th:last-child, .degrees td:last-child { padding-right: 0; }
  .degrees .when { width: 170px; white-space: nowrap; }
  .degrees .deg { font-family: var(--serif); font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
  .degrees .deg small { display: block; margin-top: 2px; font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
  .degrees .inst { font-size: 15px; line-height: 1.45; }
  .degrees .notes { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 46ch; }

  /* ---------- Contact ---------- */
  .contact-card { padding: clamp(32px, 6vw, 80px); }
  .email {
    display: inline-flex; align-items: center; gap: 14px; font-size: clamp(24px, 3.4vw, 44px); letter-spacing: -0.02em;
    position: relative; padding-bottom: 6px; word-break: break-all;
  }
  .email::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--fg); transform-origin: 100% 50%; transition: transform 0.7s var(--ease);
  }
  .email:hover::after { transform: scaleX(0); transform-origin: 0 50%; }
  .copied { font-size: 13px; color: var(--muted); margin-left: 14px; opacity: 0; transition: opacity 0.4s; }
  .copied.show { opacity: 1; }
  .contact-note {
    display: flex; gap: 10px; margin: 28px 0 0; max-width: 62ch;
    font-size: 14px; line-height: 1.55; color: var(--muted);
  }
  .contact-note::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--glass-border); border-radius: 50%; font-size: 11px; font-weight: 600; color: var(--fg); }
  .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px; padding: 12px 20px; border-radius: 999px;
    border: 1px solid var(--fg); background: var(--fg); color: var(--bg);
    transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s;
    will-change: transform;
  }
  .btn:hover { background: transparent; color: var(--fg); border-color: var(--glass-border); }

  .site-footer { overflow: hidden; }
  footer { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
  .foot-links a:hover { color: var(--fg); }
  .disclaimer { margin: 0 0 24px; max-width: 92ch; font-size: 12px; line-height: 1.65; }
  .foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
  /* The big footer name: a safe size that always fits, then scaled by site.js to fill the column exactly */
  .giant {
    margin-top: clamp(60px, 10vw, 140px); text-align: center; white-space: nowrap; overflow: hidden;
    font-family: var(--serif); font-size: min(9vw, 120px); line-height: 0.8; letter-spacing: -0.03em; font-weight: 500;
    user-select: none;
  }
  .giant span {
    display: inline-block; padding-bottom: 0.08em;
    background: linear-gradient(to bottom, rgb(var(--ink) / 0.14), rgb(var(--ink) / 0));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  /* ---------- Reveal on scroll (only when scripts can reveal it again) ---------- */
  .js .reveal {
    opacity: 0; transform: translateY(40px); filter: blur(8px);
    transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .hero-foot { grid-template-columns: 1fr; }
    .scroll-cue { display: none; }
    .emblem { top: 16%; opacity: 0.6; }
    .entries { grid-template-columns: 1fr; }
    .entry:nth-child(2) { border-top: 1px solid var(--line); padding-top: 36px; }
    .stop { grid-template-columns: 1fr; }
    .ledger li { grid-template-columns: 40px 1fr; }
    .ledger .when { grid-column: 2; }
    .degrees thead { display: none; }
    .degrees, .degrees tbody, .degrees tr, .degrees td { display: block; width: auto; }
    .degrees { margin-top: 0; }
    .degrees tr { padding-block: 24px; border-bottom: 1px solid var(--line); }
    .degrees tbody tr:first-child { padding-top: 0; }
    .degrees td { border: 0; padding: 0 0 8px; }
  }
  @media (max-width: 720px) {
    .nav { width: calc(100% - 32px); justify-content: space-between; }
    .nav .mark { padding-inline: 10px 6px; }
    .nav-links a { padding-inline: 10px; }
    .nav-links .long { display: none; }
    .nav-links .short { display: inline; }
    .subnav { gap: 0; }
    .subnav a { font-size: 12px; padding: 7px 9px; }
    .theme-btn { margin-left: 0; }
    .pub { grid-template-columns: 1fr; gap: 6px; }
    .pub .kind { justify-self: start; }
    .facts { grid-template-columns: 1fr; }
    .steps li { flex-direction: column; gap: 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js .reveal { opacity: 1; transform: none; filter: none; }
    .char { transform: none; }
    .grain { animation: none; }
  }
