@font-face{font-family:'Hanken Grotesk';src:url('/assets/release/hanken-latin.e3e461195809.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:Syne;src:url('/assets/release/syne-latin.badc16b59a55.woff2') format('woff2');font-weight:400 800;font-style:normal;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('/assets/release/jetbrains-latin.404a8eec34be.woff2') format('woff2');font-weight:100 800;font-style:normal;font-display:swap}
/* Single source of truth for the palette. tools/build.mjs inlines this at the
   top of site.css and space.css, so both halves of the site share one system
   and neither pays for an extra request. */
:root{
  --bg:#0b0b0f;
  --surface:#13131d;--surface-2:#191922;
  --ink:#f4f4f7;--muted:#9a9aab;--faint:#8d8da2;
  --line:rgba(255,255,255,.10);--line2:rgba(255,255,255,.18);
  --accent:#ff5e3a;--accent-2:#ff9d4d;
  /* The stars' colours: ice, mint, amber and violet for the four groups, ember for Audiogram;
     the project pages reuse them. Pearl is the summary's own star, the brightest, and the dome
     itself glows periwinkle. */
  --ember:#ff5e3a;--amber:#ffce4d;--ice:#4d8cff;--mint:#36d399;--violet:#b07bff;--pearl:#ffe4cc;--dome:#8e9cff;
  --display:Syne,sans-serif;
  --sans:'Hanken Grotesk',system-ui,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,monospace;
  --ease:cubic-bezier(.16,1,.3,1);
}
[data-tone=ember]{--c:var(--ember)}[data-tone=amber]{--c:var(--amber)}[data-tone=ice]{--c:var(--ice)}[data-tone=mint]{--c:var(--mint)}[data-tone=violet]{--c:var(--violet)}[data-tone=pearl]{--c:var(--pearl)}
/* Palette tokens are inlined above this line by tools/build.mjs (assets/tokens.css). */
/* Layers, back to front: scene 1 · vignette 3 · flash 7 · warp 8 · light 11 · the summary's
   scrim 12 · dust and the pointer glow 13 · pages and the summary 14 · star names 15 ·
   chrome 30. The dust and the glow sit above the scrim and under the text, so the scene stays
   alive behind the summary. */

/* ---------- Base ---------- */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);height:100dvh;overflow:hidden;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
::selection{background:rgba(255,94,58,.32)}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;-webkit-appearance:none;appearance:none}
h1,h2,h3{font-family:var(--display);letter-spacing:-.02em}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
[hidden]{display:none!important}
.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}
.ld{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--c);vertical-align:middle}

/* ---------- The scene and its atmosphere ---------- */
#scene{position:fixed;inset:0;z-index:1;touch-action:none;cursor:grab;background:var(--bg)}
#scene:active{cursor:grabbing}
#scene canvas{display:block}
#dust{position:fixed;inset:0;width:100%;height:100%;z-index:13;pointer-events:none;opacity:.9;transition:transform .5s var(--ease)}
#vign{position:fixed;inset:0;z-index:3;pointer-events:none;background:radial-gradient(circle at 50% 46%,transparent 50%,rgba(0,0,0,.5) 100%)}
/* the arrival: a point of light blooms as the dome grows out of it */
#flash{position:fixed;inset:0;z-index:7;pointer-events:none;opacity:0;background:radial-gradient(circle at 50% 47%,#fff 0%,#ffe2cf 14%,rgba(255,170,120,.4) 26%,transparent 46%)}
#flash.go{animation:flash 2.6s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes flash{0%{opacity:0;transform:scale(.12)}6%{opacity:1}26%{opacity:.55}100%{opacity:0;transform:scale(1.7)}}
/* streaks on every dive. Twice the screen's size, so even at its smallest it has no edge in view. */
#warp{position:fixed;inset:-50%;z-index:8;pointer-events:none;opacity:0;
  background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.10) 0%,transparent 4.5%),repeating-conic-gradient(from 0deg at 50% 50%,rgba(255,200,170,0) 0deg,rgba(255,200,170,.14) 1deg,rgba(255,200,170,0) 2.4deg);
  -webkit-mask:radial-gradient(circle at 50% 50%,transparent 7%,#000 30%);mask:radial-gradient(circle at 50% 50%,transparent 7%,#000 30%)}
#warp.go{animation:warp .62s ease-out}
@keyframes warp{0%{opacity:0;transform:scale(.55)}22%{opacity:.9}100%{opacity:0;transform:scale(2.1)}}
/* a warm glow that follows the pointer and swells over anything clickable */
#cursor{position:fixed;top:0;left:0;z-index:13;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;pointer-events:none;mix-blend-mode:screen;opacity:0;
  background:radial-gradient(circle,rgba(255,150,90,.55) 0%,rgba(255,94,58,.28) 38%,rgba(255,94,58,0) 70%);
  transition:width .28s var(--ease),height .28s var(--ease),margin .28s var(--ease),opacity .4s}
#cursor.on{opacity:1}
#cursor.hot{width:120px;height:120px;margin:-60px 0 0 -60px}

/* ---------- Chrome: trail, hint, zoom out ---------- */
/* The trail: the name (home, the summary), then the group, the star and the star inside it. Every step is a link back to that depth. */
.trail{position:fixed;top:20px;left:24px;z-index:30;display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px;max-width:calc(50vw - 110px);text-shadow:0 2px 16px rgba(0,0,0,.7);visibility:hidden}
/* shown with the scene, except in the summary, which carries the name itself */
body[data-view]:not(.home) .trail{visibility:visible;animation:hintIn .5s var(--ease)}
.brand{font:800 16px var(--display);transition:color .2s}
.brand:hover{color:var(--accent)}
#crumbs{display:contents}
#crumbs .sep{font:14px var(--mono);color:var(--faint)}
#crumbs a{font:600 15px var(--sans);color:var(--muted);transition:color .2s}
#crumbs a:hover{color:var(--ink)}
#crumbs a[aria-current]{color:var(--c)}
.hint{position:fixed;top:22px;right:24px;z-index:30;font:11.5px var(--mono);color:var(--muted);text-shadow:0 1px 10px rgba(0,0,0,.9);pointer-events:none}
.hint:empty{display:none}
.hint.swap{animation:hintIn .5s var(--ease)}
@keyframes hintIn{from{opacity:0;transform:translateY(-4px)}}
.closebtn{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:31;font:12px var(--mono);color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:7px 15px;background:rgba(11,11,15,.6);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;visibility:hidden;transition:color .2s,border-color .2s}
.closebtn:hover{color:var(--ink);border-color:var(--line2)}

/* ---------- Star names ----------
   The stars are drawn in the scene; their names are real buttons that space.js places beside
   them (top-left corner, in pixels), on the side with room, kept on screen and clear of the page
   you are reading. The summary and the four groups wear a pill; a pointed-at star's name lifts
   in its own colour, and so does its row on its group's page. */
.star{position:fixed;left:0;top:0;z-index:15;display:inline-flex;align-items:center;gap:7px;font:11.5px var(--mono);letter-spacing:.03em;color:var(--muted);white-space:nowrap;
  padding:5px 10px 5px 8px;border-radius:999px;background:rgba(9,9,13,.55);border:1px solid transparent;text-shadow:0 1px 8px rgba(0,0,0,.8);transition:color .2s,border-color .2s,background .2s,box-shadow .2s}
.star:hover,.star.on{color:var(--ink);border-color:color-mix(in srgb,var(--c) 55%,transparent);background:rgba(12,12,18,.8)}
.star.major{font-size:12px;letter-spacing:.04em;color:var(--ink);padding:7px 13px;border-color:var(--line);background:rgba(11,11,15,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.star.major:hover,.star.major.on{border-color:var(--c);background:rgba(20,20,28,.78);box-shadow:0 6px 26px color-mix(in srgb,var(--c) 30%,transparent)}
.star.on .ld{animation:dotPulse 1.1s ease-in-out infinite;box-shadow:0 0 10px var(--c)}
.star.major.on::before{content:'';position:absolute;inset:-4px;border-radius:999px;border:1px solid var(--c);opacity:.6;animation:ringOut 1.4s ease-out infinite;pointer-events:none}
.star:focus-visible{outline-color:var(--c)}
@keyframes dotPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.5)}}
@keyframes ringOut{0%{transform:scale(.9);opacity:.6}100%{transform:scale(1.25);opacity:0}}

/* ---------- Inside a star: its page is the main view ----------
   Zoomed into a star, its light fills the screen and its page is the one thing in focus:
   unboxed, centred, never drawn in perspective. The page grows out of its star: space.js sets
   --gx/--gy (its offset from where it rests) and --gs (its scale) as you arrive and leave. */
/* The light: the star's colour gathered at the edges, and a dark core to read on, in every colour. */
#light{position:fixed;inset:0;z-index:11;pointer-events:none;opacity:0;visibility:hidden;
  background:radial-gradient(ellipse 52% 58% at 50% 50%,rgba(8,8,12,.86) 0%,rgba(8,8,12,.72) 50%,rgba(8,8,12,.3) 80%,rgba(8,8,12,0) 100%),
    radial-gradient(ellipse 92% 88% at 50% 50%,transparent 36%,color-mix(in srgb,var(--c) 17%,transparent) 70%,color-mix(in srgb,var(--c) 34%,transparent) 100%)}
/* Behind the summary, a scrim dims the scene just enough to read over; space.js fades it with the summary. */
#scrim{position:fixed;inset:0;z-index:12;pointer-events:none;opacity:0;visibility:hidden;
  background:radial-gradient(ellipse 78% 74% at 50% 48%,rgba(9,9,13,.74),rgba(9,9,13,.58) 72%,rgba(9,9,13,.4))}
.panel{display:contents}
.card{position:fixed;left:50%;top:50%;z-index:14;width:min(620px,calc(100vw - 48px));max-height:calc(100dvh - 200px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y;
  padding:6px 4px;opacity:0;visibility:hidden;text-shadow:0 1px 14px rgba(0,0,0,.65);scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent;
  transform:translate(-50%,-50%) translate(var(--gx,0px),var(--gy,0px)) scale(var(--gs,1))}
.card.wide{width:min(900px,calc(100vw - 48px))}
body.ring .card{width:min(500px,calc(100vw - 48px))}
.card:focus{outline:none}

/* Every page reads the same way: the kicker (where it sits, in its colour), the title (the
   star's own name), a line of facts, a display line or a lede, the body, then what to do next. */
.panel .card .kicker{display:flex;align-items:center;gap:9px;font:12px var(--mono);letter-spacing:.04em;color:var(--c);margin:0 0 14px}
.panel .card .kicker .ld{width:6px;height:6px;box-shadow:0 0 10px var(--c)}
.panel .card .title{font:700 clamp(30px,3.1vw,44px)/1.04 var(--display);letter-spacing:-.032em;color:var(--ink);margin:0 0 12px}
.panel .card .meta{font-size:15px;line-height:1.5;color:var(--ink);opacity:.84;margin:0 0 18px}
.panel .card .tag{font:600 clamp(18px,1.6vw,22px)/1.3 var(--display);letter-spacing:-.015em;color:var(--ink);margin:0 0 14px}
.panel .card .lede{font-size:17.5px;line-height:1.58;color:var(--ink);margin:0 0 14px}
.panel .card p{color:var(--muted);font-size:16.5px;line-height:1.62;margin:0 0 13px}
.panel .card p b{color:var(--ink);font-weight:600}
.panel .card>:last-child{margin-bottom:0}
.panel .card .stack{font:12.5px/1.7 var(--mono);color:var(--faint);letter-spacing:.02em}
.panel .card .note{font:11px/1.6 var(--mono);color:var(--faint);margin:16px 0 0}
.panel .card .note a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.panel .card .sub{font:600 12px var(--mono);letter-spacing:.04em;color:var(--c);margin:22px 0 2px}
.bullets{list-style:none;margin:4px 0 0}
.bullets li{position:relative;padding-left:18px;color:var(--muted);font-size:15.5px;line-height:1.6}
.bullets li+li{margin-top:9px}
.bullets li::before{content:'';position:absolute;left:2px;top:.8em;width:8px;height:1px;background:var(--c)}
/* A group's members, in the order they ring its page. Each row zooms into its star. */
.index{list-style:none;margin:20px 0 4px;border-top:1px solid var(--line)}
.index li{border-bottom:1px solid var(--line)}
.index a{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 14px;padding:13px 8px 13px 4px;transition:background .25s,padding .25s var(--ease)}
.index .ld{flex:none;align-self:center;width:7px;height:7px;box-shadow:0 0 8px var(--c);transition:transform .25s}
.index b{font:600 17px var(--sans);color:var(--ink)}
.index span{margin-left:auto;font-size:14px;color:var(--muted);text-align:right}
.index a:hover,.index a.on,.index a:focus-visible{background:linear-gradient(90deg,color-mix(in srgb,var(--c) 15%,transparent),transparent 85%);padding-left:12px}
.index a:hover .ld,.index a.on .ld{transform:scale(1.6)}
.steps-list{padding-left:20px;color:var(--muted);font-size:15.5px;line-height:1.6}
.steps-list li+li{margin-top:8px}
.steps-list b{color:var(--ink);font-weight:600}
.shot{margin:0}
.shot img,.shot video{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:3px;background:#000}
.shot figcaption{margin-top:12px;font-size:13.5px;line-height:1.55;color:var(--muted)}
.shot figcaption b{color:var(--ink);font-weight:600}
.pair{display:grid;grid-template-columns:.62fr 1fr;gap:16px;align-items:start}
.pair .shot video[height="1920"]{max-height:calc(100dvh - 380px);width:auto;max-width:100%}
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.chips li{font-size:13px;border:1px solid var(--line);border-radius:7px;padding:5px 10px}
.also-built{list-style:none}
.also-built li{padding:12px 0;border-bottom:1px solid var(--line)}
.also-built li:first-child{padding-top:0}
.also-built li>a{font-weight:600}
.also-built .st{display:block;margin-top:4px;font:11px/1.7 var(--mono);color:var(--faint)}
.also-built .project-summary{display:block;color:var(--muted);font-size:15px;line-height:1.55;margin-top:4px}
.actions{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center;margin:22px 0 0;font-size:14.5px}
.btn{display:inline-block;background:var(--accent);color:var(--bg);padding:11px 19px;border-radius:10px;font-weight:700;text-shadow:none;transition:background .2s}
.btn:hover{background:var(--accent-2)}
.lnk{color:var(--muted);font-weight:600;transition:color .2s}
.lnk:hover{color:var(--ink)}
.links2{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;font-size:16px;margin-top:4px}
.links2 a{color:var(--muted);font-weight:500;transition:color .2s}
.links2 a:hover{color:var(--ink)}
.links2 .lead{color:var(--accent);font-weight:600;overflow-wrap:anywhere}
.email{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.copy{font:11px var(--mono);letter-spacing:.04em;color:var(--muted);border:1px solid var(--line2);border-radius:999px;padding:5px 11px;min-width:68px;min-height:30px;transition:color .2s,border-color .2s}
.copy:hover{color:var(--ink);border-color:var(--accent)}
/* Under the view: a dot per star here, each in its own colour. */
.pointbar{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:30;display:flex;align-items:center;opacity:0;visibility:hidden}
.pdot{width:22px;height:32px;display:grid;place-items:center}
.pdot::before{content:'';width:6px;height:6px;border-radius:50%;background:color-mix(in srgb,var(--c) 40%,rgba(255,255,255,.22));transition:background .25s,transform .25s}
.pdot:hover::before{background:var(--c)}
.pdot[aria-current]::before{background:var(--c);transform:scale(1.5);box-shadow:0 0 8px var(--c)}

/* ---------- The summary: home, all of it on one screen ----------
   The brightest star, zoomed all the way in. It takes the whole screen, edge to edge: a header
   row (name, about, how to reach me) over three columns, each topped by a rule in the colour of
   the star it is condensed from. Type scales with the viewport (--s); space.js lowers --fit a
   step at a time if a screen is still too short. Under 860px wide the four blocks become
   screens side by side that you swipe between (on screens only: on paper they stay columns). */
#summary{inset:0;left:0;top:0;width:auto;max-height:none;transform:translate(var(--gx,0px),var(--gy,0px)) scale(var(--gs,1));opacity:1;visibility:visible;overflow:auto;touch-action:pan-x pan-y;text-shadow:none;
  --s:clamp(12.5px,calc(.42vw + .92vh),18.5px);font-size:calc(var(--s) * var(--fit,1));line-height:1.48;
  padding:clamp(58px,8.2vh,92px) clamp(24px,3.6vw,72px) clamp(20px,3.4vh,44px);
  background:radial-gradient(ellipse 78% 74% at 50% 48%,rgba(9,9,13,.84),rgba(9,9,13,.7) 72%,rgba(9,9,13,.52))}
/* with the scene running, the scrim layer dims it instead, so the dust can drift above it */
body[data-view]:not(.static) #summary{background:none}
#summary .sum-track{display:grid;height:100%;grid-template-columns:1.14fr 1fr .9fr;grid-template-rows:auto minmax(0,1fr);column-gap:clamp(28px,3.6vw,72px);row-gap:clamp(18px,4vh,48px)}
#summary .sum-you{grid-column:1/-1;display:grid;grid-template-columns:1.14fr 1fr .9fr;grid-template-columns:subgrid;align-items:end;column-gap:inherit}
#summary .sum-panel{min-height:0;overflow:auto;scrollbar-width:none}
#summary .sum-panel::-webkit-scrollbar{display:none}
#summary .sum-panel:not(.sum-you){border-top:1px solid color-mix(in srgb,var(--c) 45%,transparent);padding-top:1.1em}
#summary p{color:var(--muted);margin:0}
#summary b{color:var(--ink);font-weight:600}
#summary a{transition:color .2s}
/* the name: the one large thing on the screen */
#summary h1{font:800 calc(clamp(34px,calc(2vw + 3.3vh),82px) * var(--fit,1))/.9 var(--display);letter-spacing:-.035em}
#summary h1 .ln{display:block;background-image:linear-gradient(105deg,#f4f4f7 0%,#f4f4f7 38%,#ffe9d6 47%,#ffb896 50%,#ffe9d6 53%,#f4f4f7 62%,#f4f4f7 100%);background-size:280% 100%;background-position:130% 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:sheen 7.5s ease-in-out 2s infinite}
@keyframes sheen{0%,18%{background-position:130% 0}55%,100%{background-position:-30% 0}}
#summary .sum-role{margin-top:.75em;font-size:1.08em;color:var(--ink)}
#summary .sum-lede{font:600 1.3em/1.25 var(--display);letter-spacing:-.015em;color:var(--ink);margin-bottom:.55em}
#summary .sum-reach p+p{margin-top:.3em}
#summary .sum-avail{display:flex;align-items:center;gap:.55em}
#summary .sum-avail .ld,#summary h2 .ld{width:.48em;height:.48em;flex-shrink:0;box-shadow:0 0 10px var(--c)}
#summary .sum-links{display:flex;flex-wrap:wrap;align-items:center;gap:.35em 1.1em;margin-top:.8em!important}
#summary .sum-links a{color:var(--ink);font-weight:600}
#summary .sum-links a:hover{color:var(--accent-2)}
#summary .sum-links .lead{color:var(--accent)}
#summary .email{gap:.35em .7em}
#summary .copy{min-height:26px;padding:3px 10px}
#summary h2{display:flex;align-items:center;gap:.6em;font:700 1.2em/1.2 var(--display);letter-spacing:-.01em;margin-bottom:.8em}
#summary h3{font:600 1em/1.35 var(--sans);letter-spacing:0;color:var(--ink);margin:0}
/* experience */
#summary .sum-job+.sum-job{margin-top:1em}
#summary .sum-jh{display:flex;justify-content:space-between;align-items:baseline;gap:.4em 1em;flex-wrap:wrap;margin-bottom:.3em}
#summary .sum-jh h3 span{color:var(--c);font-weight:500}
#summary .when{font-size:.86em;color:var(--faint);white-space:nowrap}
#summary .sum-job ul{list-style:none;color:var(--muted)}
#summary .sum-job li{position:relative;padding-left:1em}
#summary .sum-job li+li{margin-top:.22em}
#summary .sum-job li::before{content:'';position:absolute;left:.1em;top:.68em;width:.38em;height:1px;background:color-mix(in srgb,var(--c) 70%,transparent)}
/* projects: each name zooms you into that project's star */
#summary .sum-proj+.sum-proj{margin-top:.95em}
#summary .sum-proj h3{font:700 1.1em/1.25 var(--display);letter-spacing:-.01em}
#summary .sum-proj h3 a{background:linear-gradient(var(--c),var(--c)) 0 100%/0 1.5px no-repeat;transition:background-size .3s var(--ease),color .2s}
#summary .sum-proj h3 a:hover,#summary .sum-proj h3 a:focus-visible{background-size:100% 1.5px}
#summary .sum-meta{font-size:.86em;color:var(--c)!important;margin:.1em 0 .25em!important}
#summary .sum-stack{font-size:.86em;color:var(--faint)!important;margin-top:.2em!important}
#summary .sum-k{font-weight:600;font-size:.86em;color:var(--c)!important;margin:.95em 0 .15em!important}
#summary h2+.sum-k{margin-top:0!important}
#summary .sum-also a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:3px}
#summary .sum-also a:hover{text-decoration-color:var(--c)}
#summary .sum-tabs{display:none}
@media screen and (max-width:859px){
  #summary{--s:clamp(14px,calc(1.6vw + .9vh),16px);padding:0;overflow:hidden;background:rgba(9,9,13,.8)}
  #summary .sum-track{display:flex;column-gap:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
  #summary .sum-track::-webkit-scrollbar{display:none}
  #summary .sum-panel,#summary .sum-panel:not(.sum-you){flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;overflow-y:auto;border-top:0;
    padding:calc(68px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) calc(76px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
  #summary .sum-you{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:1.6em}
  #summary h1{font-size:calc(clamp(32px,10.2vw,56px) * var(--fit,1))}
  #summary .sum-tabs{display:flex;position:absolute;left:0;right:0;bottom:calc(12px + env(safe-area-inset-bottom));justify-content:center;gap:2px}
  #summary .sum-tabs button{font:600 13px var(--sans);color:var(--muted);min-height:40px;padding:0 13px;border-radius:999px;transition:color .2s,background .2s}
  #summary .sum-tabs button[aria-current]{color:var(--ink);background:rgba(255,255,255,.09)}
}
/* Every visit: the scene carries you to the summary, so the summary waits for it (space.js
   removes the class). If the script never runs, it shows anyway. */
html.arriving #summary{animation:arriving 3.4s steps(1,end) both}
@keyframes arriving{from{opacity:0;visibility:hidden}to{opacity:1;visibility:visible}}
/* during the opening move only the names of the stars show: nothing else competes with the travel */
body.flying .chrome{visibility:hidden!important}
/* no scene (reduced motion, no WebGL, or it failed): the summary is the page */
body.static #scene canvas,body.static #scrim,body.static .chrome,body.static .star,body.static #light,body.static .card:not(#summary){display:none!important}
body.static #summary{opacity:1!important;visibility:visible!important;transform:none!important}

/* ---------- Small screens ---------- */
/* Up to tablet width the hint moves under the view, where it cannot run into the zoom-out
   control; inside a star the page needs that room, so it goes. */
@media(max-width:900px){
  .hint{top:auto;right:0;left:0;bottom:62px;text-align:center;font-size:11px;padding:0 16px}
  body[data-view=point] .hint{display:none}
}
@media(max-width:640px){
  .trail{top:14px;left:16px;max-width:calc(100vw - 150px)}
  .brand{font-size:14px}
  /* inside a star the trail starts at its group: the name would crowd the zoom-out button */
  body[data-view=point] .brand,body[data-view=point] #crumbs .sep:first-child{display:none}
  #crumbs a{font-size:14px}
  .panel .card .title{font-size:29px;margin-bottom:10px}
  .panel .card .lede{font-size:16.5px}
  .panel .card p{font-size:15.5px}
  .index b{font-size:16px}
  .index span{margin-left:21px;text-align:left;width:100%}
  .star.major{font-size:11px;padding:6px 11px}
  .closebtn{top:12px;left:auto;right:12px;transform:none;font-size:13px;padding:0 18px;min-height:44px}
}
/* landscape phones */
@media(max-height:560px){
  .card{max-height:calc(100dvh - 130px)}
}
/* Narrow screens (the same 9:10 threshold the scene uses): the page takes the width; inside a
   star with stars of its own, they ring the top of the view and the page sits along the bottom,
   with the dark core of the light beneath it. */
@media(max-aspect-ratio:9/10){
  .card,.card.wide{width:calc(100vw - 36px);max-height:calc(100dvh - 190px)}
  body.ring .card{width:calc(100vw - 36px);top:auto;bottom:66px;transform:translateX(-50%) translate(var(--gx,0px),var(--gy,0px)) scale(var(--gs,1));max-height:42dvh}
  body.ring #light{background:linear-gradient(to bottom,rgba(8,8,12,0) 30%,rgba(8,8,12,.62) 52%,rgba(8,8,12,.86) 66%),
    radial-gradient(ellipse 92% 88% at 50% 40%,transparent 36%,color-mix(in srgb,var(--c) 17%,transparent) 70%,color-mix(in srgb,var(--c) 34%,transparent) 100%)}
  .pair{grid-template-columns:1fr}
  .pair .shot video[height="1920"]{max-height:40dvh;margin-inline:auto}
}

/* notched devices (viewport-fit=cover) */
@supports(top:env(safe-area-inset-top)){
  .trail{top:calc(20px + env(safe-area-inset-top));left:calc(24px + env(safe-area-inset-left))}
  .hint{top:calc(22px + env(safe-area-inset-top));right:calc(24px + env(safe-area-inset-right))}
  .closebtn{top:calc(18px + env(safe-area-inset-top))}
  @media(max-width:900px){
    .hint{top:auto;right:0;bottom:calc(62px + env(safe-area-inset-bottom))}
  }
  @media(max-width:640px){
    .trail{top:calc(14px + env(safe-area-inset-top));left:calc(16px + env(safe-area-inset-left))}
    .closebtn{top:calc(12px + env(safe-area-inset-top))}
  }
}

/* Fine pointers get the glow; touch screens never see it. */
@media(hover:none),(pointer:coarse){#cursor{display:none}}
body.motion-paused *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  #summary h1 .ln{-webkit-text-fill-color:var(--ink)}
  #cursor,#warp,#dust,#flash{display:none}
}

/* Print the summary: the whole portfolio on one page, in ink. */
@media print{
  html,body{height:auto;overflow:visible;background:#fff;color:#111}
  #main>:not(#summary),#announce,.copy,.sum-tabs{display:none!important}
  #summary{position:static;opacity:1!important;visibility:visible!important;animation:none!important;transform:none!important;padding:0;background:none;font-size:9.5pt;overflow:visible}
  #summary .sum-track{height:auto}
  #summary .sum-panel{overflow:visible}
  #summary h1 .ln{-webkit-text-fill-color:#111;background:none;animation:none}
  #summary h1{font-size:28pt}
  #summary p,#summary li,#summary .when{color:#333!important}
  #summary b,#summary h2,#summary h3,#summary a,#summary .sum-lede,#summary .sum-role{color:#111!important}
  #summary .sum-panel:not(.sum-you){border-top-color:#bbb}
}
