  :root {
    --black: #000000;
    --panel: #0d0b0a;
    --ink: #F2EDE6;
    --muted: #A39C94;
    --line: #2B2622;
    --orange: #FF6A13;
    --ember: #7A3208;
    --c-research: #FF6A13;
    --c-work: #9B7BFF;
    --c-homelab: #2DD4BF;
    --c-life: #FF4D8D;
    --c-amber: #FFB020;
    --base: #8A8178;
    --measure: 66ch;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    background: var(--black); color: var(--ink);
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-optical-sizing: auto; font-size: 1.125rem; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  #net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
  main, header.top, footer { position: relative; z-index: 1; }

  a { color: var(--ink); text-decoration-color: var(--orange); text-underline-offset: .2em; text-decoration-thickness: 2px; }
  a:hover { color: var(--orange); }
  a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

  .wrap { max-width: 74rem; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
  .icon { width: 1.5em; height: 1.5em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

  /* top bar */
  header.top .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; padding-bottom: 1.5rem; gap: 1rem; }
  .mark { font-weight: 700; text-decoration: none; }
  nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem clamp(.9rem, 2.4vw, 1.8rem); }
  nav a { text-decoration: none; color: var(--muted); }
  nav a:hover { color: var(--orange); }

  /* hero */
  .hero { min-height: calc(100svh - 5rem); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(3rem, 10vh, 7rem); pointer-events: none; text-shadow: 0 0 18px #000, 0 0 6px #000; }
  .hero a { pointer-events: auto; }
  .hero h1 { font-size: clamp(3.2rem, 11.5vw, 11rem); font-weight: 800; font-stretch: 100%; line-height: .9; letter-spacing: -.03em; }
  .hero h1 span { display: block; }
  .hero h1 span + span { padding-left: clamp(2rem, 12vw, 10rem); }
  .hero .lede { margin-top: 2.5rem; max-width: 36ch; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; }
  .hero .seeking { margin-top: 1rem; max-width: 52ch; color: var(--muted); }
  .hero .hint { margin-top: 1.25rem; color: var(--muted); font-size: 1rem; }
  .hero .hint .dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--orange); margin-right: .5em; box-shadow: 0 0 12px var(--orange); }

  /* sections */
  section { padding: clamp(4rem, 12vh, 7.5rem) 0; border-top: 1px solid var(--line); background: rgba(0,0,0,.8); }
  section > .wrap > h2, .split > h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; font-stretch: 100%; letter-spacing: -.02em; line-height: 1; }
  .split { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem 3rem; }
  .split > h2 { position: sticky; top: 2rem; align-self: start; }
  @media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split > h2 { position: static; } }
  .prose p { max-width: var(--measure); }
  .prose p + p { margin-top: 1rem; }
  .big-prose p { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.45; }
  h3 { font-weight: 600; letter-spacing: -.01em; }
  .muted { color: var(--muted); }

  /* about */
  .facts { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2rem; }
  .fact { display: flex; gap: .8rem; align-items: flex-start; }
  .fact .icon { color: var(--orange); margin-top: .1rem; }
  .fact dt { font-weight: 600; }
  .fact dd { color: var(--muted); }

  /* entries: research and work */
  .entry { padding: 2.25rem 0; border-bottom: 1px solid var(--line); }
  .entry:first-child { padding-top: 0; }
  .entry-head { display: grid; grid-template-columns: 3rem minmax(0,1fr); gap: 0 1.25rem; }
  .badge { width: 3rem; height: 3rem; border: 1.5px solid var(--ember); border-radius: 50%; display: grid; place-items: center; color: var(--orange); }
  .badge .icon { width: 1.45rem; height: 1.45rem; }
  .entry h3 { font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.12; max-width: 32ch; }
  .meta { margin-top: .5rem; color: var(--orange); font-weight: 500; }
  .sub { color: var(--muted); font-size: 1rem; }
  .entry .summary-text { margin-top: .9rem; max-width: var(--measure); }
  .links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
  .status { display: inline-block; margin-top: .6rem; font-size: .95rem; color: var(--ink); border: 1px solid var(--ember); border-radius: 999px; padding: .1rem .7rem; }
  @media (max-width: 600px) { .entry-head { grid-template-columns: minmax(0, 1fr); } .badge { margin-bottom: 1rem; } }

  details.more { margin-top: 1.25rem; }
  details.more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .55rem; color: var(--orange); font-weight: 600; }
  details.more > summary::-webkit-details-marker { display: none; }
  details.more > summary::before { content: ""; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
  details.more[open] > summary::before { transform: rotate(45deg); }
  details.more > summary .when-open { display: none; }
  details.more[open] > summary .when-open { display: inline; }
  details.more[open] > summary .when-closed { display: none; }
  .story { margin-top: 1.5rem; padding: 1.75rem; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
  .story h4 { font-size: 1.1rem; font-weight: 600; margin-top: 1.75rem; }
  .story h4:first-child { margin-top: 0; }
  .story p, .story ul { margin-top: .5rem; max-width: var(--measure); }
  .story ul { padding-left: 1.1rem; }
  .story li + li { margin-top: .35rem; }
  .story li::marker { color: var(--orange); }
  .tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; list-style: none; padding: 0 !important; }
  .tags li { margin: 0 !important; font-size: .9rem; padding: .15rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
  @media (max-width: 600px) { .story { padding: 1.1rem; } }

  figure { margin-top: 1.25rem; }
  figure { overflow-x: auto; }
  figure svg.diagram { width: 100%; min-width: 620px; height: auto; display: block; }
  figcaption { margin-top: .6rem; color: var(--muted); font-size: .95rem; max-width: var(--measure); }
  .diagram text { font-family: "Bricolage Grotesque", system-ui, sans-serif; fill: var(--ink); font-size: 14px; }
  .diagram .small { font-size: 12px; fill: var(--muted); }
  .diagram .box { fill: #000; stroke: var(--line); stroke-width: 1.5; }
  .diagram .hot { stroke: var(--orange); }
  .diagram .arrow { stroke: var(--base); stroke-width: 1.5; fill: none; marker-end: url(#arrowhead); }
  .diagram .arrow.hot { stroke: var(--orange); marker-end: url(#arrowhead-hot); }

  /* charts */
  .chart-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
  .chart-controls button { font: inherit; font-size: .95rem; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .9rem; cursor: pointer; }
  .chart-controls button[aria-pressed="true"] { color: var(--ink); border-color: var(--orange); }
  .legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: .75rem; font-size: .95rem; color: var(--muted); }
  .legend span { display: inline-flex; align-items: center; gap: .45rem; }
  .chart { position: relative; margin-top: .5rem; }
  .chart svg { width: 100%; height: auto; display: block; overflow: visible; }
  .chart text { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 12px; fill: var(--muted); }
  .chart .lbl { fill: var(--ink); font-size: 13px; }
  .tip { position: absolute; pointer-events: none; background: #1a1613; border: 1px solid var(--ember); border-radius: 4px; padding: .35rem .6rem; font-size: .9rem; line-height: 1.35; white-space: nowrap; opacity: 0; transition: opacity .1s; z-index: 3; }
  .data-table { margin-top: .75rem; font-size: .95rem; }
  .data-table summary { cursor: pointer; color: var(--muted); }
  .data-table table { margin-top: .5rem; border-collapse: collapse; }
  .data-table th, .data-table td { text-align: left; padding: .2rem 1.25rem .2rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }

  .sample { margin-top: 1.25rem; border-left: 3px solid var(--orange); padding: .75rem 0 .75rem 1.25rem; }
  .sample dt { font-weight: 600; margin-top: .6rem; }
  .sample dt:first-child { margin-top: 0; }
  .sample dd { color: var(--muted); max-width: var(--measure); }
  .sample .flag { color: var(--orange); }

  /* timeline */
  .when { color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; }

  /* education */
  .edu { display: grid; gap: 2rem; }
  .grades { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 1rem; }
  .grade b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; font-stretch: 100%; line-height: 1.1; }
  .grade span { color: var(--muted); font-size: .95rem; }

  /* skills */
  .skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem 3rem; }
  .skills > div { display: flex; gap: .8rem; }
  .skills .icon { color: var(--orange); margin-top: .15rem; }
  .skills dt { font-weight: 600; margin-bottom: .25rem; }
  .skills dd { color: var(--muted); }

  /* life */
  .life-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 3rem; }
  .life-grid h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.35rem; margin-bottom: 1rem; }
  .life-grid h3 .icon { color: var(--orange); }
  .sports { list-style: none; position: relative; padding-left: 1.4rem; }
  .sports::before { content: ""; position: absolute; left: .3rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
  .sports li { position: relative; padding: .35rem 0; }
  .sports li::before { content: ""; position: absolute; left: -1.38rem; top: .9rem; width: .6rem; height: .6rem; border-radius: 50%; background: #000; border: 2px solid var(--base); }
  .sports li.now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 10px var(--orange); }
  .sports .yrs { color: var(--muted); font-size: .95rem; }
  .ratings { list-style: none; }
  .ratings li { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: .75rem; padding: .3rem 0; }
  .ratings .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
  .ratings .bar i { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
  .ratings .note { grid-column: 2; color: var(--muted); font-size: .9rem; margin-top: -.25rem; }
  .caveat { margin-top: .9rem; color: var(--muted); font-size: .9rem; }
  .plain-list { list-style: none; }
  .plain-list li { padding: .3rem 0; }

  /* contact */
  .contact .big { font-size: clamp(1.5rem, 5.2vw, 4rem); font-weight: 700; font-stretch: 100%; letter-spacing: -.025em; line-height: 1.05; word-break: break-word; }
  .contact .intro { max-width: var(--measure); margin-bottom: 1.5rem; font-size: 1.3rem; }
  .contact ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2.5rem; }
  .contact ul a { display: inline-flex; align-items: center; gap: .5rem; }
  .contact ul .icon { width: 1.2em; height: 1.2em; color: var(--orange); }

  footer { background: rgba(0,0,0,.85); border-top: 1px solid var(--line); }
  footer .wrap { padding-top: 2rem; padding-bottom: 2.5rem; color: var(--muted); font-size: .95rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

  /* ---------- multi-page ---------- */
  nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); }
  .page-head { padding-top: clamp(5rem, 16vh, 9rem); padding-bottom: clamp(2.5rem, 7vh, 4rem); text-shadow: 0 0 18px #000, 0 0 6px #000; }
  .page-head h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); font-weight: 800; font-stretch: 100%; line-height: .95; letter-spacing: -.025em; }
  .page-head p { margin-top: 1.5rem; max-width: 46ch; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; }
  .page-head p.muted { margin-top: .75rem; font-size: 1rem; }

  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
  .card { display: block; text-decoration: none; padding: 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); transition: border-color .2s; }
  .card:hover { border-color: var(--orange); color: var(--ink); }
  .card .icon { color: var(--orange); width: 1.8rem; height: 1.8rem; }
  .card h3 { margin-top: 1rem; font-size: 1.35rem; }
  .card p { margin-top: .4rem; color: var(--muted); font-size: 1rem; }
  .card .go { display: inline-block; margin-top: 1rem; color: var(--orange); font-weight: 600; font-size: 1rem; }
  .card.feature { border-color: var(--ember); }

  footer .foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
  footer .foot-links a { color: var(--muted); }

  /* ---------- grammar demo ---------- */
  .demo { margin-top: 2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: clamp(1rem, 3vw, 1.75rem); }
  .demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
  .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
  .seg button { font: inherit; font-size: .95rem; background: transparent; color: var(--muted); border: 0; border-radius: 999px; padding: .3rem .9rem; cursor: pointer; }
  .seg button[aria-pressed="true"] { background: #1f1a16; color: var(--ink); }
  .switch { display: inline-flex; align-items: center; gap: .6rem; font: inherit; font-size: .95rem; color: var(--ink); background: none; border: 0; cursor: pointer; padding: 0; }
  .switch .track { width: 2.6rem; height: 1.45rem; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
  .switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.45rem - 6px); height: calc(1.45rem - 6px); border-radius: 50%; background: var(--ink); transition: transform .2s; }
  .switch[aria-checked="true"] .track { background: var(--orange); }
  .switch[aria-checked="true"] .track::after { transform: translateX(1.15rem); }
  .btn { font: inherit; font-weight: 600; font-size: 1rem; background: var(--orange); color: #000; border: 0; border-radius: 999px; padding: .45rem 1.2rem; cursor: pointer; }
  .btn:disabled { opacity: .45; cursor: default; }
  .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
  .btn.ghost:hover:not(:disabled) { border-color: var(--orange); }
  .demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem; }
  @media (max-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
  .pane { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; background: #000; min-height: 12rem; }
  .pane h3 { font-size: .95rem; font-weight: 600; color: var(--muted); margin-bottom: .6rem; }
  .gd-problem { font-size: 1.05rem; }
  .gd-question { margin-top: .5rem; color: var(--orange); font-weight: 500; }
  .gd-program { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9rem; white-space: pre-wrap; word-break: break-word; min-height: 5.5rem; color: var(--ink); line-height: 1.5; }
  .gd-program:not(.done)::after { content: "▍"; color: var(--orange); animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .gd-program::after { animation: none; } }
  .gd-next { margin-top: .9rem; font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; }
  .gd-cands { list-style: none; margin-top: .4rem; display: grid; gap: .3rem; }
  .gd-cand { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 2.6rem 3.6rem; gap: .5rem; align-items: center; font-size: .88rem; padding: .25rem .45rem; border: 1px solid transparent; border-radius: 5px; }
  .gd-cand code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gd-bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
  .gd-bar i { display: block; height: 100%; background: var(--base); }
  .gd-p { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
  .gd-tag { font-size: .78rem; color: var(--muted); }
  .gd-cand.masked { opacity: .55; }
  .gd-cand.masked code { text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
  .gd-cand.masked .gd-tag { color: var(--orange); }
  .gd-cand.chosen { border-color: var(--orange); }
  .gd-cand.chosen .gd-bar i { background: var(--orange); }
  .gd-cand.chosen .gd-tag { color: var(--ink); }
  .gd-idle { color: var(--muted); font-size: .9rem; }
  .gd-result { display: grid; gap: .4rem; font-size: 1rem; }
  .gd-result b { font-size: 1.25rem; }
  .gd-result span { color: var(--muted); }
  .gd-result.ok b { color: var(--orange); }
  .gd-result.err b { color: var(--ink); }
  .gd-result.err { border-left: 3px solid var(--base); padding-left: .75rem; }
  .gd-result.ok { border-left: 3px solid var(--orange); padding-left: .75rem; }
  .gd-result.running .gd-wait::after { content: "…"; }
  .demo-note { margin-top: 1rem; color: var(--muted); font-size: .92rem; max-width: var(--measure); }

  /* ---------- homelab map ---------- */
  .lab { margin-top: 2rem; }
  .lab-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
  .lab-status { margin-top: 1rem; min-height: 3rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
  .lab-status::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--orange); margin-right: .6rem; box-shadow: 0 0 8px var(--orange); vertical-align: .1em; }
  .lab-map { margin-top: 1rem; overflow-x: auto; }
  .lab-map svg { width: 100%; min-width: 760px; height: auto; display: block; }
  .lab-map text { font-family: "Bricolage Grotesque", system-ui, sans-serif; }
  .lab .zone { fill: rgba(255,255,255,.015); stroke: var(--line); stroke-dasharray: 3 4; }
  .lab .zone-label { fill: var(--muted); font-size: 12px; }
  .lab .link { stroke: #3a332d; stroke-width: 1.5; }
  .lab .node { cursor: default; }
  .lab .node rect { fill: #000; stroke: #3a332d; stroke-width: 1.5; transition: stroke .2s, fill .2s; }
  .lab .node.group > rect { fill: rgba(13,11,10,.9); }
  .lab .node.chip rect { fill: #110e0c; }
  .lab .node.retired rect { stroke-dasharray: 5 4; }
  .lab .node.retired .n-label { fill: var(--muted); }
  .lab .n-label { fill: var(--ink); font-size: 14px; font-weight: 600; }
  .lab .chip .n-label { font-size: 13px; font-weight: 500; }
  .lab .n-sub { fill: var(--muted); font-size: 11.5px; }
  .lab .power { fill: var(--orange); }
  .lab .node:hover > rect { stroke: var(--ink); }
  .lab .node.group:hover > rect { stroke: #3a332d; }
  .lab .node.lit > rect { stroke: var(--orange); fill: #1d120b; }
  .lab .node.blocked > rect { stroke: var(--orange); stroke-width: 3; }
  .lab .node.failed > rect { stroke: var(--ink); stroke-dasharray: 2 3; }
  .lab .node.off { opacity: .35; }
  .lab .node.off .power { fill: #000; stroke: var(--base); stroke-width: 1.5; }
  .lab .trail { stroke: var(--orange); stroke-width: 2; stroke-opacity: .5; }
  .lab .trail.fail { stroke: var(--base); stroke-dasharray: 4 4; }
  .lab .trail.alert { stroke-opacity: .8; }
  .lab .packet { fill: var(--orange); filter: drop-shadow(0 0 6px var(--orange)); }
  .lab .packet.fail { fill: var(--base); filter: none; }
  .lab-info { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; padding: 1rem 1.1rem; border-left: 3px solid var(--orange); }
  .lab-info h3 { font-size: 1.15rem; }
  .lab-info p { color: var(--muted); max-width: var(--measure); }
  .lab-note { margin-top: .75rem; color: var(--muted); font-size: .92rem; }

  /* ---------- colourful theme ---------- */
  /* each page takes its own accent; --orange is the accent everywhere in the stylesheet */
  .p-home     { --orange: #FF6A13; --ember: #7A3208; --glow: 255,106,19; }
  .p-research { --orange: #FF6A13; --ember: #7A3208; --glow: 255,106,19; }
  .p-work     { --orange: #9B7BFF; --ember: #45338A; --glow: 155,123,255; }
  .p-homelab  { --orange: #2DD4BF; --ember: #136B61; --glow: 45,212,191; }
  .p-life     { --orange: #FF4D8D; --ember: #8A1F47; --glow: 255,77,141; }
  .c-research { --orange: #FF6A13; --ember: #7A3208; }
  .c-work     { --orange: #9B7BFF; --ember: #45338A; }
  .c-homelab  { --orange: #2DD4BF; --ember: #136B61; }
  .c-life     { --orange: #FF4D8D; --ember: #8A1F47; }

  body { background: radial-gradient(1200px 700px at 85% -10%, rgba(var(--glow),.10), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(155,123,255,.08), transparent 60%), #000; background-attachment: fixed; }
  section { background: rgba(0,0,0,.72); }

  /* nav: each link hovers in its page colour */
  nav li[class^="c-"] a:hover { color: var(--orange); }
  nav a[aria-current="page"] { text-decoration-color: var(--orange); }

  .hero .hint .dot { background: var(--c-amber); box-shadow: 0 0 12px var(--c-amber); }

  /* page headers glow in the page colour */
  .page-head { position: relative; }
  .page-head::before { content: ""; position: absolute; left: -2rem; top: 18%; width: min(38rem, 80vw); height: 16rem; background: radial-gradient(closest-side, rgba(var(--glow),.22), transparent); filter: blur(10px); z-index: -1; pointer-events: none; }
  .page-head h1 { background: linear-gradient(100deg, var(--ink) 25%, var(--orange) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; padding-bottom: .08em; }

  /* cards: coloured edge and glow */
  .card { border-top: 3px solid var(--orange); }
  .card:hover { border-color: var(--orange); box-shadow: 0 10px 40px -12px rgba(0,0,0,.6), 0 0 0 1px var(--orange) inset; }
  .card .go { color: var(--orange); }

  /* badges and section headings */
  .badge { background: radial-gradient(circle at 30% 30%, rgba(var(--glow),.25), transparent 70%); border-color: var(--orange); }
  section > .wrap > h2, .split > h2 { position: relative; }
  section > .wrap > h2::after, .split > h2::after { content: ""; display: block; width: 2.5rem; height: 4px; border-radius: 2px; margin-top: .9rem; background: var(--orange); }

  /* entries: a coloured rail on open write-ups */
  .story { border-left: 3px solid var(--orange); }

  /* life page: each block its own colour */
  .p-life .life-grid > div:nth-child(1) { --orange: #2DD4BF; }
  .p-life .life-grid > div:nth-child(2) { --orange: #FF6A13; }
  .p-life .life-grid > div:nth-child(3) { --orange: #9B7BFF; }
  .p-life .life-grid > div:nth-child(4) { --orange: #FFB020; }
  .p-life .life-grid > div:nth-child(5) { --orange: #FF4D8D; }
  .p-life .sports li.now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 10px var(--orange); }

  /* work page: grades in amber */
  .grade b { color: var(--ink); }
  .grade:nth-child(1) b { color: var(--c-amber); }

  /* footer stripe */
  footer { border-top: 0; box-shadow: 0 -1px 0 var(--line); position: relative; }
  footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--c-research), var(--c-work), var(--c-homelab), var(--c-life)); opacity: .7; }
