/* Shared layout for the combined portfolios (Version A: + Orbit, Version B: + System). Kluster-style grid, fixes from the UI review:
   darker small text (no opacity), hover = thick hot underline (hot-on-grey colour alone was ~1.1:1), scribble circles one word,
   inverted Experience band, phone rail as one scrolling row. */
:root { color-scheme: light; --f-display: Archivo, 'Archivo Black', sans-serif; --f-body: Archivo, system-ui, sans-serif; --f-mono: 'Geist Mono', 'Fragment Mono', ui-monospace, monospace;
  --paper: #efe8dc; --paper-hi: #f7f2e9; --card: #fffaf0; --ink: #393837; --muted: #4a463f; --deep: #131217; --on-deep: #efe8dc; --on-deep-muted: #c9c5bc;
  --rule: rgba(57,56,55,.18); --hot: #ff4b1f; --hot-text: #9e2b07; --k-work: var(--hot); --k-work-text: var(--hot-text); --k-project: #8aa4ff; --k-project-text: #2f43b0; --ring: var(--ink); --bar: 44px; --burst-a: #ff4b1f; --burst-b: #0b0b0b; --rule-strong: rgba(57,56,55,.32); --rule-faint: rgba(57,56,55,.09); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-weight: 500; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; text-decoration-color: var(--hot); text-decoration-thickness: 3px; }
::selection { background: var(--hot); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.slab, .row.invert, .cpanel, .sys-card, .cbar { --ring: var(--on-deep); }
.skip { position: absolute; left: .5rem; top: -200px; z-index: 10001; min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; background: var(--paper-hi); color: var(--ink); border: 1.5px solid var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: .5rem; }
.mono { font-family: var(--f-mono); font-weight: 500; font-size: .75rem; letter-spacing: 0; text-transform: uppercase; }
.tight { font-family: var(--f-display); font-weight: 900; letter-spacing: -.05em; line-height: .9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rules { position: fixed; inset: 0; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr); z-index: 0; }
.rules i { border-left: 1px solid var(--rule-faint); }   /* background grid: quieter than content rules */

main { position: relative; }   /* no z-index: the star canvas sits between section backgrounds and their content */
section { padding: 0 1.1rem; position: relative; }

.hero-band { position: relative; height: clamp(220px, 44vh, 500px); margin: 1.1rem 0 0; overflow: hidden; }
.hero-band canvas, .hero-band svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-text { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 1.1rem; padding: 1.4rem 0 2.5rem; }
.hero-text h1 { grid-column: 1 / span 3; margin: 0; font-size: clamp(2rem, 3.7vw, 3.9rem); position: relative; }
.hero-text h1 .hl { position: relative; white-space: nowrap; }
.hero-text h1 .hl svg { position: absolute; left: -9%; top: -16%; width: 118%; height: 132%; overflow: visible; pointer-events: none; }
.hero-text h1 .hl path { fill: none; stroke: var(--hot); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s .4s cubic-bezier(.6,.05,.3,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-text .tag { grid-column: 4; text-align: right; margin: 0; }
.hero-text .intro { grid-column: 3 / span 2; margin: 1.6rem 0 0; font-weight: 700; font-size: clamp(.95rem, 1.1vw, 1.12rem); line-height: 1.3; letter-spacing: -.01em; }
.hero-text dl { grid-column: 1 / span 2; grid-row: 2 / span 2; margin: 1.6rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; align-self: start; }
.hero-text dl dt { color: var(--ink); } .hero-text dl dd { margin: 0; font-weight: 600; font-size: .92rem; }
.hero-text .acts { grid-column: 3 / span 2; display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.btn { min-height: 46px; display: inline-flex; align-items: center; padding: 0 1.1rem; border: 1.5px solid var(--ink); text-decoration: none !important; font-weight: 700; transition: background-color 150ms, color 150ms; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.hot { background: var(--hot); border-color: var(--hot); color: var(--deep); }
.btn.hot:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 1.1rem; padding: 4.5rem 1.1rem 1.5rem; border-top: 1px solid var(--rule); }
.row h2 { grid-column: 1 / span 3; margin: 0 0 1.4rem; font-size: clamp(2.2rem, 4.6vw, 4.6rem); }
.row .side { grid-column: 4; text-align: right; margin: 0; }
.row .lead { grid-column: 1 / span 3; margin: -.4rem 0 1.4rem; font-weight: 600; max-width: 46rem; line-height: 1.4; }
.row .full { grid-column: 1 / -1; }

/* the interactive centrepiece sits on a dark slab */
.slab { background: var(--deep); color: var(--on-deep); border-radius: 14px; position: relative; overflow: hidden; }
.orbit-box { height: min(74vh, 700px); }
.orbit-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.orbit-box .o-labels, .orbit-box .o-skills { position: absolute; inset: 0; pointer-events: none; }
.orbit-box .lbl { pointer-events: auto; position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem .65rem .35rem .45rem; background: rgba(19,18,23,.7);
  border: 1px solid rgba(236,234,228,.18); border-radius: 8px; color: var(--on-deep); cursor: pointer; backdrop-filter: blur(6px); font: inherit; text-align: left; transition: border-color 150ms; }
.orbit-box .lbl:hover, .orbit-box .lbl[aria-current='true'] { border-color: var(--k); }
.orbit-box .lbl .dot { width: calc(6px + var(--w) * 3px); height: calc(6px + var(--w) * 3px); border-radius: 50%; background: var(--k); box-shadow: 0 0 14px var(--k); flex: none; }
.orbit-box .lbl b { display: block; font: 800 calc(.82rem + var(--w) * .1rem)/1.05 var(--f-display); letter-spacing: -.02em; }
.orbit-box .lbl small { display: block; color: var(--on-deep-muted); font: 500 .66rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; margin-top: .15rem; }
.orbit-box .sk { position: absolute; left: 0; top: 0; font: 500 .7rem var(--f-mono); color: var(--on-deep-muted); padding: .1rem .35rem; border-radius: 4px; transition: color 150ms, background-color 150ms; }
.orbit-box .sk.lit { color: var(--deep); background: #e9ff3a; }
.orbit-box .o-legend { position: absolute; left: 1rem; bottom: 1rem; display: grid; gap: .25rem; color: var(--on-deep-muted); font: 500 .7rem var(--f-mono); letter-spacing: .05em; text-transform: uppercase;
  background: rgba(19,18,23,.6); padding: .55rem .75rem; border: 1px solid rgba(236,234,228,.14); border-radius: 10px; }
.orbit-box .o-legend b { color: var(--on-deep); font-weight: 500; }
.sys-box { padding: 1.2rem 1.2rem 1rem; }
.sys-box .stage { position: relative; width: 100%; aspect-ratio: 1180 / 520; }
.sys-box .stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; } .sys-box .stage svg.over { pointer-events: none; z-index: 2; }
.sys-box .edge { fill: none; stroke: rgba(236,234,228,.18); stroke-width: 1.5; } .sys-box .edge.loop { stroke-dasharray: 5 6; stroke: rgba(255,75,31,.4); }
.sys-box .lanes text { fill: var(--on-deep-muted); font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.sys-box .packets circle { filter: drop-shadow(0 0 6px currentColor); }
.sys-box .node { position: absolute; transform: translate(-50%, -50%); width: 12.6%; min-width: 108px; padding: .65rem .7rem .6rem; border: 1px solid rgba(236,234,228,.16); border-radius: 12px; background: rgba(27,26,32,.92);
  color: var(--on-deep); text-align: left; cursor: pointer; font: inherit; transition: border-color 150ms, box-shadow 150ms; }
.sys-box .node:hover, .sys-box .node[aria-expanded='true'] { border-color: var(--k, #8aa4ff); box-shadow: 0 0 0 1px var(--k, #8aa4ff), 0 10px 40px -10px var(--k, #8aa4ff); }
.sys-box .node.verifier { --k: #ff4b1f; }
.sys-box .node b { display: block; font: 800 clamp(.82rem, 1.05vw, 1rem)/1.05 var(--f-display); letter-spacing: -.02em; }
.sys-box .node .role { display: block; color: var(--on-deep-muted); font-size: .72rem; line-height: 1.3; margin-top: .3rem; }
.sys-box .node .ev { display: flex; gap: 3px; margin-top: .45rem; } .sys-box .node .ev i { height: 3px; flex: 1; border-radius: 3px; background: var(--k, #8aa4ff); opacity: .8; }
.sys-legend { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; color: var(--on-deep-muted); font: 500 .72rem var(--f-mono); letter-spacing: .05em; text-transform: uppercase; margin: .4rem 0 0; }
.sys-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .4rem; vertical-align: -1px; }
.sys-card { position: fixed; z-index: 13; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.98); width: min(560px, 92vw); max-height: 76vh; overflow-y: auto; opacity: 0; pointer-events: none;
  background: rgba(19,18,23,.97); color: var(--on-deep); border: 1px solid rgba(236,234,228,.16); border-radius: 14px; padding: 1.2rem 1.3rem 1.3rem; transition: opacity 150ms, transform 150ms; }
.sys-card.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.sys-card .mono { color: var(--on-deep-muted); } .sys-card h2 { margin: .35rem 0 .3rem; font: 900 2rem/1 var(--f-display); letter-spacing: -.03em; outline: none; }
.sys-card p.what { margin: 0 0 1rem; color: var(--on-deep-muted); line-height: 1.5; }
.sys-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; } .sys-card li { border-left: 2px solid var(--k, #8aa4ff); padding-left: .8rem; }
.sys-card li b { display: block; font-weight: 600; margin-bottom: .15rem; } .sys-card li span { color: #dcd9d2; line-height: 1.45; font-size: .94rem; }
.sys-card li button { margin-top: .4rem; min-height: 36px; padding: 0 .8rem; border: 1px solid rgba(236,234,228,.35); border-radius: 999px; background: transparent; color: var(--on-deep); font: 600 .8rem Inter; cursor: pointer; }
.sys-card .x { position: absolute; top: .8rem; right: .8rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(236,234,228,.16); background: none; color: var(--on-deep); cursor: pointer; }
.cbar.inline { margin-top: .9rem; }

/* inverted Experience band (kayiseisagu idea; still plain text) */
.row.invert { background: var(--deep); color: var(--on-deep); border-top: 0; }
.row.invert .job { border-top-color: rgba(239,232,220,.2); }
.jobs { grid-column: 1 / -1; display: grid; }
.job { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 1.1rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); align-items: start; }
.job h3 { margin: 0; font: 800 1.4rem/1.05 var(--f-display); letter-spacing: -.02em; }
.job ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: .96rem; line-height: 1.45; font-weight: 500; }
.job ul li::before { content: '— '; color: var(--hot); }
.job .when { text-align: right; margin: 0; }
.skills { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 1.1rem; }
.skills > div:last-child:nth-child(3n+1) { grid-column: 1 / -1; }   /* a lone last group (Spoken languages) spans the row */
.skills p { margin: .4rem 0 0; font-weight: 700; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.01em; }
.contact .mail { grid-column: 1 / -1; font-size: clamp(1.6rem, 5vw, 5.2rem); text-decoration: none; }
.contact .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 1.8rem; padding: 1.6rem 0 1rem; font-weight: 700; }
.contact .links a { display: inline-flex; align-items: center; min-height: 44px; }
.bigname { grid-column: 1 / -1; font-size: 19vw; margin: 2rem 0 -1.5rem; color: transparent; -webkit-text-stroke: 1.5px var(--ink); white-space: nowrap; overflow: hidden; transition: color 300ms; user-select: none; }
.bigname:hover { color: var(--ink); }

@media (max-width: 900px) {
  .rules { display: none; }
  .hero-text, .row { grid-template-columns: minmax(0, 1fr); } .hero-text > *, .row > * { min-width: 0; grid-column: 1 !important; grid-row: auto !important; text-align: left !important; }
  .hero-band { height: 44vw; margin-top: .4rem; } .hero-text .tag { order: -1; margin-bottom: .8rem; } .orbit-box { height: 76vh; } .orbit-box .o-legend { display: none; } .orbit-box .lbl small { display: none; }
  .sys-box .stage { aspect-ratio: auto; display: grid; gap: 1.1rem; } .sys-box .stage svg { display: none; }
  .sys-box .node { position: relative; transform: none; width: 100%; left: auto !important; top: auto !important; }
  .job { grid-template-columns: 1fr; } .job .when { text-align: left; } .skills { grid-template-columns: 1fr; } .bigname { font-size: 24vw; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-text h1 .hl path { animation: none; stroke-dashoffset: 0; } }

/* ---- Kluster-style motion (our own code): starburst cursor, [●] menu with sliding sub-menu, ticker in brackets ---- */
.kcursor { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; width: 0; height: 0; opacity: 1; transition: opacity 150ms; }
.kcursor svg { position: absolute; left: -100px; top: -100px; overflow: visible; transition: transform 150ms; }
.kcursor i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1.5px rgba(236,234,228,.6); }
html.kcursor-on, html.kcursor-on * { cursor: none !important; }
html.kcursor-on input, html.kcursor-on textarea { cursor: text !important; }


.tag.ticker { display: flex; justify-content: flex-end; gap: .4em; white-space: nowrap; }
.tag.ticker .win { display: inline-block; width: 30ch; overflow: hidden; vertical-align: bottom; }
.tag.ticker .run { display: inline-flex; animation: ticker 16s linear infinite; }
.tag.ticker .run span { padding-right: 1.5ch; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (max-width: 900px) { .tag.ticker { justify-content: flex-start; } .tag.ticker .win { width: 26ch; } }
@media (prefers-reduced-motion: reduce) { .tag.ticker .run { animation: none; } }

/* ---- Projects: the two builds as plain text (prerendered), blue = project everywhere ---- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.proj { background: var(--card); border: 1px solid var(--rule); border-top: 6px solid var(--k-project); padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.proj .kind { margin: 0; color: var(--k-project-text); }
.proj h3 { margin: 0; font-size: clamp(2rem, 3.4vw, 3.2rem); }
.proj .what { margin: -.3rem 0 0; font-weight: 700; }
.proj .out { margin: 0; line-height: 1.45; max-width: 38rem; }
.proj dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: .4rem 0; padding: .9rem 0; border-block: 1px solid var(--rule); }
.proj dl div { min-width: 0; } .proj dt { font-size: clamp(1.35rem, 2vw, 2.1rem); color: var(--k-project-text); white-space: nowrap; letter-spacing: -.04em; }
.proj dd { margin: .25rem 0 0; font-size: .86rem; line-height: 1.35; color: var(--muted); }
.proj .stack { margin: 0; color: var(--muted); line-height: 1.6; }
.proj .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 900px) { .projects { grid-template-columns: minmax(0, 1fr); } }

/* ---- Pipeline fixes (2026-10-17): equal box heights, packets on a track under the boxes, shape + colour legend ---- */
.sys-box .node { width: 12%; display: flex; flex-direction: column; }
.sys-box .node .ev { margin-top: auto; padding-top: .45rem; }
.sys-box .node:hover, .sys-box .node[aria-expanded='true'] { border-color: var(--on-deep); box-shadow: 0 0 0 1px var(--on-deep), 0 10px 40px -10px rgba(239,232,220,.5); }
.sys-box .node.verifier { --k: #e9ff3a; } .sys-box .node.verifier:hover, .sys-box .node.verifier[aria-expanded='true'] { border-color: #e9ff3a; box-shadow: 0 0 0 1px #e9ff3a, 0 10px 40px -10px #e9ff3a; }
.sys-box .edge.track { stroke: rgba(239,232,220,.12); stroke-dasharray: 2 6; }
.sys-box .edge.loop { stroke: rgba(239,232,220,.45); }
.sys-legend i.dot { background: #efe8dc; } .sys-legend i.ring { background: transparent; box-shadow: inset 0 0 0 2px #efe8dc; } .sys-legend i.ok { background: #e9ff3a; }
.sys-legend i.bar { width: 16px; height: 3px; border-radius: 3px; vertical-align: 2px; } .sys-legend i.bar.w { background: var(--k-work); } .sys-legend i.bar.p { background: var(--k-project); }
@media (max-width: 900px) { .sys-box .node { width: 100%; height: auto !important; } }


/* ---- Experience + Education rows (2026-10-17): role first, hanging bullets, dates and type on the right ---- */
.job { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, .9fr); gap: 1.4rem; padding: 1.7rem 0; }
.job h3 { font: 800 clamp(1.3rem, 1.8vw, 1.6rem)/1.1 var(--f-display); letter-spacing: -.02em; }
.job .org { margin: .45rem 0 0; font-weight: 600; font-size: 1rem; color: var(--muted); }
.row.invert .job .org { color: var(--on-deep-muted); }
.job ul.pts { gap: .7rem; font-size: 1rem; line-height: 1.55; max-width: 44rem; }
.job ul.pts li { position: relative; padding-left: 1.3rem; }
.job ul.pts li::before { content: ''; position: absolute; left: 0; top: .74em; width: .6rem; height: 2px; background: var(--k-work); }
#schools .job ul.pts li::before { background: var(--muted); }
.job ul.pts strong { font-weight: 700; }
.job .meta { margin: 0; display: grid; gap: .35rem; justify-items: end; text-align: right; line-height: 1.4; }
.job .meta span + span { color: var(--muted); } .row.invert .job .meta span + span { color: var(--on-deep-muted); }
@media (max-width: 900px) { .job { grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: 1.4rem 0; } .job .meta { order: -1; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 1rem; } }

/* pipeline motion (2026-10-17): arrows box to box, box lights up while a request is inside */
.sys-box .edge.arrow { stroke: rgba(239,232,220,.45); stroke-width: 1.5; marker-end: url(#sys-arrow); }
.sys-box .node { background: #1b1a20; z-index: 1; transition: border-color 180ms, box-shadow 180ms; }
.sys-box .node.busy { border-color: rgba(239,232,220,.75); box-shadow: 0 0 0 1px rgba(239,232,220,.4), 0 0 28px -6px rgba(239,232,220,.45); }
.sys-box .node.verifier.busy { border-color: #e9ff3a; box-shadow: 0 0 0 1px rgba(233,255,58,.5), 0 0 28px -6px rgba(233,255,58,.5); }
.sys-box .packets circle { filter: drop-shadow(0 0 5px currentColor); }
.job .org strong { color: var(--ink); font-weight: 700; display: inline-block; margin-bottom: .2rem; line-height: 1.35; }
.bigname { font-size: 10.5vw; white-space: normal; line-height: .9; } @media (max-width: 900px) { .bigname { font-size: 15vw; } }

/* ---- UI/UX review fixes (2026-10-17, round 2) ---- */
.tag.ticker .win { -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.2ch, #000 calc(100% - 1.2ch), transparent); mask-image: linear-gradient(90deg, transparent, #000 1.2ch, #000 calc(100% - 1.2ch), transparent); }
.hero-text .who { grid-column: 1 / -1; margin: 0 0 .9rem; font: 700 clamp(1.1rem, 1.5vw, 1.3rem)/1.2 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.hero-text .who span { color: var(--muted); font-weight: 600; }
.hero-text .who { grid-row: 1; } .hero-text h1, .hero-text .tag { grid-row: 2; } .hero-text dl { grid-row: 3 / span 2; }
.row { padding: clamp(4rem, 7vw, 6.5rem) 1.1rem clamp(3rem, 5vw, 4.5rem); }
.contact h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.contact .mail { text-decoration: underline; text-decoration-color: var(--hot-text); text-decoration-thickness: .06em; text-underline-offset: .12em; }
.bigname { margin: 3rem 0 0; padding-bottom: 2rem; }
.proj .stack span { white-space: nowrap; }
.proj .stack span:not(:last-child)::after { content: '\00a0· '; white-space: normal; }   /* the line may break after the dot, never inside an item */
#map .side a { display: inline-flex; align-items: center; min-height: 44px; }
.tap { display: none; }
@media (hover: none) { .tap { display: inline; } .click { display: none; } }
@media (max-width: 900px) {
  .row .side { margin: 0 0 1rem; }
  .hero-text .tag { margin-bottom: .6rem; }
}
.orbit-box .o-labels { z-index: 2; }   /* case labels sit above the skill words */

/* ---- Responsive pass (2026-10-17): phone hero order, stats, legend, pill bar, footer name; pipeline stacks below 1180px ---- */
@media (max-width: 900px) {
  .hero-text .tag.ticker { display: none; }                        /* the name line under NOEL says the same thing, readably */
  .hero-text .who { order: -2; font-size: 1.2rem; line-height: 1.25; margin-bottom: .7rem; }
  .hero-text .who span { display: block; font-size: 1rem; margin-top: .15rem; }
  .hero-text .who .sep { display: none; }                           /* no leading "·" when the role starts its own line */
  .hero-text .acts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; } .hero-text .acts .btn { justify-content: center; } .hero-text .acts .btn.hot { grid-column: 1 / -1; } .hero-text .acts .btn:nth-child(4):last-child { grid-column: 1 / -1; }   /* the Blog button: full width under Résumé + Email */
  .proj dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .sys-legend { display: grid; justify-content: start; gap: .55rem; text-align: left; padding: 0 .2rem; }
  .cbar.inline ul { flex-wrap: wrap; border-radius: 16px; }
  .bigname { font-size: 12.5vw; }
}
@media (max-width: 1180px) {
  .sys-box .stage { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } .sys-box .stage svg { display: none; }
  .sys-box .node { position: relative; transform: none; width: 100%; left: auto !important; top: auto !important; height: auto !important; min-width: 0; }
  .sys-box .nodes { display: contents; }
}
@media (max-width: 1180px) { .sys-legend span:nth-child(-n+3) { display: none; } }   /* stacked boxes have no moving requests */
@media (max-width: 600px) { .sys-box .stage { grid-template-columns: minmax(0, 1fr); } }

/* ---- Review round 3 (2026-10-17): motion stops by itself (no pause button), phone hero order, card limits, toolkit, stacked pipeline ---- */
.clock:not(:empty)::after { content: ' · '; }                 /* no "--:--" without JavaScript: the clock span stays empty */
.proj .limits { margin: 0; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.proj .limits b { font-weight: 700; color: var(--ink); }
.skills > div { border-top: 1px solid var(--rule); padding-top: .9rem; }
.skills p.mono { margin: 0; font-size: .75rem; font-weight: 500; color: var(--muted); }
.skills p:not(.mono) { font-weight: 500; }
.contact .mail { overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .sys-box .nodes { counter-reset: step; }
  .sys-box .node:nth-child(-n+7) { counter-increment: step; }
  .sys-box .node:nth-child(-n+7) b::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: .3rem; font: 500 .7rem var(--f-mono); letter-spacing: .06em; color: var(--on-deep-muted); }
  .sys-box .node.cloud, .sys-box .node.ship { border-style: dashed; border-color: rgba(236,234,228,.32); }   /* runs-on, not a pipeline step */
  .sys-box .node:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hero-text .acts { order: 1; }            /* Résumé + Email on the first phone screen, before the details */
  .hero-text dl { order: 2; } .hero-text .intro { order: 3; }
}
/* CLS: before JS the ticker is one long unbroken line; without min-width 0 it widened its grid column and re-wrapped the h1 */
.hero-text > * { min-width: 0; } .tag.ticker { overflow: hidden; }
@media (max-width: 360px) { .hero-text .acts .btn { padding: 0 .5rem; } }   /* "Résumé (PDF)" stays on one line at 320px */

/* ticker = facts one at a time (2026-10-17): fades between 3 short facts once, then rests */
.tag.ticker .fact { display: inline-block; transition: opacity 220ms, transform 220ms; }
.tag.ticker .fact.out { opacity: 0; transform: translateY(-.3em); }
@media (prefers-reduced-motion: reduce) { .tag.ticker .fact { transition: none; } }

/* ---- v4 (2026-10-18): bottom bar instead of the side rail, page-wide stars, dot-matrix blocks, Toronto-time scene, smooth scroll ---- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }                                   /* Lenis does the smoothing; CSS smooth scroll would fight it */
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }          /* case-study panel open: the page behind stays put */
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }  /* the fixed bar never covers the end of the page */
main:focus, section:focus { outline: none; }                            /* sections take focus after a nav jump (tabindex -1) */

/* stars: fixed canvas above section backgrounds (dark band, pipeline slab) and below every section's content */
.starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
section > :not(.full):not(.hero-band), .full > :not(.slab):not(.dots-box), .sys-legend { position: relative; z-index: 1; }

/* hero: name line + ticker on row 1, star block beside the headline */
.hero-text .tag { align-self: start; }
/* play sections (samgoddard's layout, measured: block 564 px square at 1440, 24 px gap, 1px-ruled status strip above it, text measure 36rem) */
.play { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin: 0 0 2.4rem; }
/* Projects + Education are centred in samgoddard's 72rem column (two 564 px columns at 1440); the title and cards line up with it */
#projects > .play, #projects > .full, #education > .play { grid-column: 1 / -1; width: 100%; max-width: 72rem; justify-self: center; }   /* titles stay on the page edge like every other section */
.play .dots-box { min-width: 0; }
.play .dots-cap { margin: 0; padding: 8px 0; border-block: 1px solid var(--rule-strong); }
.play .dots-box canvas { aspect-ratio: 1 / 1; border-radius: 0; }
.play-info { min-width: 0; max-width: 36rem; }
.play-strip { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1.4rem; padding: 8px 0; border-block: 1px solid var(--rule-strong); color: var(--muted); }
.play-strip .play-n { color: var(--hot-text); }
.play-info .lead { margin: 0 0 1.6rem; }
.play-info .jobs { display: block; }
.play-info .job { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding: 1.2rem 0; }
.play-info .job .head { grid-column: 1 / -1; } .play-info .job .pts { grid-column: 1; } .play-info .job .meta { grid-column: 2; grid-row: 1; align-self: start; }
.play-info .job:first-child { border-top: 0; padding-top: 0; }
.play-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: 0; border-bottom: 1px solid var(--rule-strong); color: var(--muted); }
.play-all { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-transform: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--hot-text); text-underline-offset: 3px; }
.play-all[hidden] { display: none; }
.play-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.play-rows a { display: flex; align-items: baseline; gap: .5rem; min-height: 44px; align-items: center; border-bottom: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none; }
.play-rows b { font-weight: 500; } .play-rows i { font-style: normal; color: var(--muted); } .play-rows span { margin-left: auto; color: var(--muted); text-align: right; }
.play-rows a:hover b { text-decoration: line-through; text-decoration-color: var(--hot-text); }
/* locked = blurred but present (screen readers, search, no layout jump); tab or click into it unlocks it */
.locked { user-select: none; cursor: pointer; }
.locked * { pointer-events: none; }
/* what blurs: the lead whole; on a card everything but its kind / name / one-liner; on a row everything but the name */
.play-info .lead, #projects-list .proj > *, .play-rows li > a > :not(b) { transition: filter .7s ease, opacity .7s ease; }
.play-info .lead.locked, #projects-list .proj.locked > :not(.kind):not(h3):not(.what), .play-rows li.locked > a > :not(b) { filter: blur(7px); opacity: .45; }
.unlocking:not(.proj):not(li) { animation: unlock-in .9s ease; }
@keyframes unlock-in { 0% { filter: blur(7px); opacity: .45; } 100% { filter: none; opacity: 1; } }
#projects > .side, #education > .side { display: none; }
@media (max-width: 900px) { .play { grid-template-columns: minmax(0, 1fr); } .play-info { max-width: none; } }

/* dot-matrix blocks: dark screen, mono caption on cream above (no text sits on the canvas) */
.dots-cap { display: flex; align-items: center; gap: .55rem; margin: 0 0 .45rem; color: var(--ink); min-width: 0; }
.dots-cap .n { margin-left: auto; color: var(--muted); white-space: nowrap; }
.dots-cap .ping { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); flex: none; box-shadow: 0 0 0 3px rgba(255,75,31,.18); }
.dots-box canvas { display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--deep); border-radius: 10px; cursor: none; touch-action: manipulation; }
.dots-box canvas:focus-visible { outline: 3px solid var(--on-deep); outline-offset: -3px; box-shadow: 0 0 0 3px var(--ink); }   /* cream ring on the dark screen, ink ring on the page */
.contact .scene { grid-column: 1 / -1; margin: 0; }   /* sits under the big name, flush on the bottom bar (like samgoddard's) */
#contact { padding-bottom: 0; }
.contact .scene .dots-box canvas { border-radius: 14px 14px 0 0; }
.scene .dots-box canvas { aspect-ratio: 16 / 5; border-radius: 14px; }
.dots-pause { min-height: 44px; min-width: 44px; margin: -10px -8px -10px 0; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.dots-pause:hover, .dots-pause[aria-pressed='true'] { color: var(--hot-text); }
.dots-pause[hidden] { display: none; }

/* bottom bar (samgoddard.co.uk's footer bar: thin, mono uppercase, // separators; ours is 44px tall for touch targets) */
.fbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; min-height: calc(var(--bar) + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink);
  padding: 0 max(.75rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(.75rem, env(safe-area-inset-left));
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 1rem; }
.fbar::before { content: ''; position: absolute; left: .75rem; right: .75rem; top: 0; border-top: 1px solid var(--rule-strong); }
.fbar p { margin: 0; }
.fb-sheet { display: contents; }
.fb-l { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; }
.fb-c { grid-column: 2; grid-row: 1; display: flex; align-items: center; }
.fb-r { grid-column: 3; grid-row: 1; justify-self: end; white-space: nowrap; display: flex; align-items: center; }   /* flex: the switch, Stars and clock share one centre line on phones too */
.fbar.mono { font-size: .69rem; }   /* a touch smaller than other mono labels: the bar holds 3 groups */
.fbar i { font-style: normal; color: var(--muted); margin: 0 .25rem; opacity: .7; }
.fb-c i { margin: 0 .4rem; }   /* links have no min-width, so every // sits the same distance from its words (short ones like Index/Blog used to get 44px of padding) */   /* tight inside each group, so the space sits between the three groups */
.fbar a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 0; padding: 0 .15rem; color: var(--muted); text-decoration: none; white-space: nowrap; position: relative; }
.fbar a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hot); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fb-c a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hot-text); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fb-c a b { display: none; position: absolute; left: 0; transform: translateX(-140%); font-weight: 400; color: var(--hot-text); text-decoration: none; }
.fb-c a[aria-current] b { display: none; }   /* desktop: the orange underline marks the current section; the dot shows in the phone sheet */
.fb-menu, .fb-now { display: none; }
.fbar :focus-visible { outline-offset: -2px; }
@media (max-width: 1399px) {   /* Menu sheet below 1366px: with the Light/Dark switch, the full bar keeps ≥66px between its three groups from 1366px up */
  .fbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fb-menu { display: inline-flex; align-items: center; grid-column: 1; grid-row: 1; min-height: 36px; min-width: 64px; margin: 4px 0; justify-content: center; padding: 0 .8rem; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: inherit; text-transform: inherit; cursor: pointer; }
  .fb-menu { min-height: 44px; margin: 0; }
  .fb-menu[aria-expanded='true'] { background: var(--ink); color: var(--paper); }
  .fb-now { display: block; grid-column: 2; grid-row: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fb-now::before { content: '●\00a0'; color: var(--hot-text); }
  .fb-sheet { display: none; position: absolute; left: 0; right: 0; bottom: 100%; max-height: calc(100vh - 6rem); overflow-y: auto; background: var(--paper); border-top: 1px solid var(--rule-strong);
    padding: .6rem max(.75rem, env(safe-area-inset-left)) .8rem; box-shadow: 0 -18px 40px -24px rgba(19,18,23,.35); }
  .fbar.open .fb-sheet { display: grid; gap: .6rem; }
  .fb-sheet nav { display: flex; flex-direction: column; align-items: stretch; grid-column: 1 !important; grid-row: auto !important; justify-self: stretch !important; }
  .fb-sheet i { display: none; }
  .fb-sheet a { justify-content: flex-start; font-size: .85rem; color: var(--ink); }
  .fb-c a b { display: inline; position: static; transform: none; margin-right: .6em; visibility: hidden; }
  .fb-c a[aria-current] b { visibility: visible; }
  .fb-l { flex-direction: row !important; flex-wrap: wrap; gap: 0 1.4rem; border-top: 1px solid var(--rule); padding-top: .3rem; }
}
@media (max-width: 900px) {
  .scene .dots-box canvas { aspect-ratio: 4 / 3; }
}

/* boot screen (public/lab/boot.js): fixed over everything, so the page underneath never shifts. Hidden unless html.boot.
   A dot-matrix planet with a person on top says "Choose Me"; click it and the world spins ("WOOOO"), grows past the edges,
   slows to a stop and the whole screen fades into the site. */
.boot-screen { display: none; }
html.boot { overflow: hidden; }
html.boot .boot-screen, .boot-screen.fade { display: block; position: fixed; inset: 0; z-index: 10002; background: var(--deep); color: var(--on-deep); overflow: hidden;
  animation: boot-safety 0s linear 3s forwards; }   /* boot.js turns this off once it runs */
@keyframes boot-safety { to { visibility: hidden; } }   /* if boot.js never runs, the screen still goes */
.boot-screen.fade { pointer-events: none; opacity: 0; transition: opacity var(--fade, 1.6s) cubic-bezier(.4, 0, .2, 1); }
.boot-screen { touch-action: none; }   /* touch drags move the space objects, never the page */
.boot-world { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }   /* the canvas is drawn at up to 2x; this keeps it screen-sized on Retina */
.boot-go { position: absolute; left: 0; top: 0; cursor: pointer; touch-action: none; }   /* sits over the person only (boot.js) */
@media (hover: hover) and (pointer: fine) { .boot-screen, .boot-go { cursor: none; } }   /* boot.js draws its own pointer (reticle + trail); Skip keeps the normal hand */
.boot-screen.spin .boot-go { pointer-events: none; cursor: default; }
.boot-say { position: absolute; left: 0; top: 0; margin: 0; padding: .45em .8em; border: 1.5px solid var(--on-deep); border-radius: 14px 14px 14px 3px; background: var(--deep); color: var(--on-deep);
  font-size: .85rem; letter-spacing: .08em; white-space: nowrap; pointer-events: none; transform-origin: 0 100%; opacity: 0; scale: .4; transition: opacity .25s ease, scale .35s cubic-bezier(.3, 1.6, .5, 1); }
.boot-say.on { opacity: 1; scale: var(--s, 1); }
.boot-screen.spin .boot-say { border-color: var(--hot); color: var(--hot); font-weight: 600; transition: opacity .25s ease; }
.boot-say.red, .boot-screen.spin .boot-say.red { border-color: #e4242c; color: #ff5d62; font-weight: 600; }   /* Darkon */
.boot-screen::before, .boot-screen::after { content: ''; position: absolute; inset: 14px; pointer-events: none;   /* corner brackets */
  background: linear-gradient(var(--on-deep-muted), var(--on-deep-muted)) top left / 18px 1px, linear-gradient(var(--on-deep-muted), var(--on-deep-muted)) top left / 1px 18px,
    linear-gradient(var(--on-deep-muted), var(--on-deep-muted)) top right / 18px 1px, linear-gradient(var(--on-deep-muted), var(--on-deep-muted)) top right / 1px 18px,
    linear-gradient(var(--on-deep-muted), var(--on-deep-muted)) bottom left / 18px 1px, linear-gradient(var(--on-deep-muted), var(--on-deep-muted)) bottom left / 1px 18px,
    linear-gradient(var(--on-deep-muted), var(--on-deep-muted)) bottom right / 18px 1px, linear-gradient(var(--on-deep-muted), var(--on-deep-muted)) bottom right / 1px 18px;
  background-repeat: no-repeat; opacity: 0; animation: boot-fade .7s ease .3s forwards; }
.boot-screen::after { display: none; }
@keyframes boot-fade { to { opacity: 1; } }
.boot-tl, .boot-tr { position: absolute; top: 26px; margin: 0; color: var(--on-deep-muted); letter-spacing: .06em; opacity: 0; animation: boot-fade .7s ease .4s forwards; }
.boot-tl { left: 34px; } .boot-tl i { font-style: normal; opacity: .6; } .boot-tr { right: 34px; } .boot-tl, .boot-tr { z-index: 1; }   /* above the canvas, which paints its own background */
.boot-name { margin: .4rem 0 0; font-size: clamp(.8rem, 1.6vw, 1rem); letter-spacing: .14em; color: var(--on-deep); white-space: pre; }
.boot-log { position: absolute; left: 34px; bottom: 30px; max-width: calc(100% - 200px); color: var(--on-deep-muted); }
.boot-log p { margin: .25rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: boot-type .35s steps(24) both; }
.boot-log > p:last-of-type { color: var(--on-deep); } .boot-log > p:last-of-type::after { content: '_'; animation: boot-caret .5s steps(1) infinite; }
.boot-screen { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }   /* nothing on the boot screen gets selected by accident (drags, double clicks, long presses) */
.boot-score { position: absolute; right: 34px; bottom: 30px; text-align: right; color: var(--on-deep-muted); font-variant-numeric: tabular-nums; transition: opacity .35s ease; }   /* the game score, bottom right (where Skip was) */
.boot-score p { margin: .25rem 0 0; white-space: nowrap; } .boot-score p:first-child { color: var(--on-deep); }
@keyframes boot-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes boot-caret { 50% { opacity: 0; } }
.boot-skip { position: absolute; left: 50%; top: 22px; translate: -50% 0; min-height: 44px; min-width: 44px; padding: 0 1rem; border: 1px solid rgba(239,232,220,.4); background: var(--deep); color: var(--on-deep); cursor: pointer; }
.boot-skip:not(:focus-visible) { clip-path: inset(50%); width: 1px; height: 1px; min-width: 0; min-height: 0; padding: 0; overflow: hidden; border: 0; }   /* Noel: no visible Skip. It shows only when someone tabs to it: keyboard and screen-reader users can't click the person */
.boot-skip:hover { border-color: var(--on-deep); } .boot-skip:focus-visible { outline: 2px solid var(--on-deep); outline-offset: 2px; }
.boot-mid { position: absolute; left: 0; right: 0; top: 70%; display: grid; justify-items: center; gap: .55rem; text-align: center; transition: opacity .35s ease; }
.boot-hint { margin: 0; color: var(--on-deep-muted); letter-spacing: .08em; opacity: 0; animation: boot-fade .6s ease 2.2s forwards; }
.boot-screen.spin :is(.boot-mid, .boot-log, .boot-score, .boot-tl, .boot-tr, .boot-sound) { opacity: 0 !important; transition: opacity .35s ease; animation: none; }   /* the words go first, so it's just the planet */
@media (max-width: 600px) { .boot-score { right: 22px; bottom: 22px; font-size: .62rem; } .boot-score p { margin-top: .12rem; } .boot-log { left: 22px; bottom: 82px; max-width: calc(100% - 44px); font-size: .62rem; } .boot-log p { margin-top: .12rem; } .boot-tl { left: 26px; } .boot-tr, .boot-sound { right: 26px; } }

/* section entrances (public/lab/reveal.js). Hidden states only under html.rv (JS on, no reduced motion); --i = stagger index */
html.rv main > section { --ease: cubic-bezier(.2, .7, .2, 1); }
html.rv .row { position: relative; }
html.rv .row:not(.invert) { border-top-color: transparent; }
html.rv .row:not(.invert)::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--rule); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
html.rv .row.in::before { transform: none; }
html.rv .row h2 { clip-path: inset(0 -10% 100% -10%); transform: translateY(.45em); transition: clip-path .9s var(--ease) .1s, transform .9s var(--ease) .1s; }
html.rv .row.in h2 { clip-path: inset(-25% -10% -25% -10%); transform: none; }
/* hero cascade (starts when the boot screen lifts) */
html.rv .hero-text > :not(#glance), html.rv #glance > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) calc(var(--i, 0) * var(--step, 70ms)), transform .8s var(--ease) calc(var(--i, 0) * var(--step, 70ms)); }
html.rv main > section.in .hero-text > :not(#glance), html.rv main > section.in #glance > * { opacity: 1; transform: none; }
html.rv .hero-text h1 { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) .15s, opacity .4s ease .15s, transform 1s var(--ease) .15s; }
html.rv main > section.in .hero-text h1 { clip-path: inset(-10% -5% -20% -5%); }
/* projects: cards rise in turn (translate only: locked cards already use opacity + blur) */
html.rv #projects-list .proj { translate: 0 48px; transition: translate .9s var(--ease) calc(.15s + var(--i, 0) * .16s); }
html.rv #projects.in #projects-list .proj { translate: none; }
html.rv .play .dots-box, html.rv .play-info { translate: 0 28px; transition: translate .9s var(--ease); }
html.rv .play-info { transition-delay: .12s; }
html.rv .row.in .play .dots-box, html.rv .row.in .play-info { translate: none; }
/* experience + education: dashes draw, bullets follow */
html.rv .job ul.pts li::before { transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease) calc(.2s + var(--i, 0) * 90ms); }
html.rv .job ul.pts li { opacity: 0; translate: 12px 0; transition: opacity .6s ease calc(.25s + var(--i, 0) * 90ms), translate .7s var(--ease) calc(.25s + var(--i, 0) * 90ms); }
html.rv .job .head { opacity: 0; translate: -16px 0; transition: opacity .6s ease .15s, translate .8s var(--ease) .15s; }
html.rv .row.in .job ul.pts li::before { transform: none; }
html.rv .row.in .job ul.pts li, html.rv .row.in .job .head { opacity: 1; translate: none; }
/* toolkit: group lines draw, skills pop in one at a time */
html.rv .skills > div { position: relative; border-top-color: transparent; }
html.rv .skills > div::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--rule); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) calc(var(--i, 0) * 90ms); }
html.rv .skills .sk { display: inline-block; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .4s ease calc(.3s + var(--i, 0) * 90ms + var(--j, 0) * 55ms), transform .5s var(--ease) calc(.3s + var(--i, 0) * 90ms + var(--j, 0) * 55ms); }
html.rv .row.in .skills > div::before { transform: none; }
html.rv .row.in .skills .sk { opacity: 1; transform: none; }
/* contact: the underline draws, links rise, the outlined name wipes in */
html.rv .contact .mail { justify-self: start; max-width: 100%; text-decoration: none; background: linear-gradient(var(--hot-text), var(--hot-text)) left 92% / 0 .06em no-repeat; transition: background-size 1.1s var(--ease) .35s; }
html.rv .contact.in .mail { background-size: 100% .06em; }
html.rv .contact .links > a { opacity: 0; translate: 0 14px; transition: opacity .5s ease calc(.5s + var(--i, 0) * 80ms), translate .6s var(--ease) calc(.5s + var(--i, 0) * 80ms); }
html.rv .contact.in .links > a { opacity: 1; translate: none; }
html.rv .bigname { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.7, 0, .2, 1) .5s; }
html.rv .contact.in .bigname { clip-path: inset(-5% -5% -5% -5%); }
@media (max-width: 700px) { html.rv .contact .mail { background: none; text-decoration: underline; text-decoration-color: var(--hot-text); text-decoration-thickness: .06em; text-underline-offset: .12em; } }   /* the email wraps on phones: keep the plain underline */

/* no JS: hide controls that only work with it (the text itself is all there) */
.no-js .dots-box, .no-js .scene, .no-js .play-strip .play-n, .no-js #system .side, .no-js .proj .btn[data-case] { display: none; }

/* dark theme (bottom-bar toggle, saved in localStorage 'nyg-theme'; set before paint by the inline script in <head>).
   Same accents; text and rules flip; the Experience band and dot screens go a step darker than the page so they still read as bands. */
html[data-theme='dark'] { color-scheme: dark; --paper: #16151a; --paper-hi: #1d1c22; --card: #1f1e25; --ink: #ece6da; --muted: #bdb6aa; --deep: #0b0a0e;
  --rule: rgba(236,230,218,.16); --rule-strong: rgba(236,230,218,.3); --rule-faint: rgba(236,230,218,.08); --hot-text: #ff8a63; --k-work-text: #ff8a63; --k-project-text: #a9b9ff;
  --ring: var(--ink); --burst-b: #ece6da; }
html[data-theme='dark'] .dots-box canvas { box-shadow: 0 0 0 1px var(--rule-strong); }   /* dark: the dot screens get an edge so they don't melt into the page */
html.theme-anim, html.theme-anim body, html.theme-anim .fbar, html.theme-anim .row, html.theme-anim .proj, html.theme-anim .job { transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.fb-theme { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; min-width: 44px; padding: 0 .1rem; border: 0; background: none; color: var(--muted); font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.fb-theme { gap: .5em; } .fb-theme[hidden] { display: none; }
/* the switch: "Light [track] Dark", the current word lit, the knob slides to it (screen readers hear "Dark, switch, on/off") */
.fb-theme .tw { color: var(--muted); transition: color .25s ease; } .fb-theme:hover .tw { color: var(--ink); }
.fb-theme[aria-checked='false'] .tl, .fb-theme[aria-checked='true'] .td { color: var(--ink); }
.fb-theme .tk { position: relative; flex: none; width: 28px; height: 16px; border-radius: 8px; border: 1px solid var(--muted); background: var(--rule-faint); transition: background-color .25s ease; }
.fb-theme .tk::after { content: ''; position: absolute; top: 3px; left: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--hot-text); transition: transform .3s var(--ease); }
.fb-theme[aria-checked='true'] .tk::after { transform: translateX(12px); }
.fb-theme:hover .tk { border-color: var(--ink); }
.fb-theme::after { content: '\00a0//\00a0' / ''; color: var(--muted); opacity: .7; }
@media (max-width: 480px) { .fbar .clock { display: none; } }   /* phones: the clock goes so the current-section name fits */
.contact .mail { padding-block: .12em; min-height: 44px; }   /* 768px: the email link was 35px tall */
@media (max-width: 480px) { .fb-theme::after { font-size: .75rem; }
  .fb-theme { gap: .4em; } .fb-theme[aria-checked='true'] .tl { display: none; }
  .fb-theme[aria-checked='false'] .td { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }   /* phones: Stars is an icon (the word stays for screen readers); the switch shows only the current word */
.fbar .clock:not(:empty)::after { content: none; }   /* the bar's clock is last in its group: no trailing dot */

/* page transition into the Blog (cross-document View Transitions; browsers without them just navigate). The Blog opens out of a
   centre box, like the boot screen's exit, while this page settles back. Only for links INTO /blog/ (nav.js skips the rest). */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-old(root) { animation: pt-out .5s ease both; }
::view-transition-new(root) { animation: pt-in .8s cubic-bezier(.65, 0, .25, 1) both; }
@keyframes pt-out { to { opacity: .3; transform: scale(.96); } }
@keyframes pt-in { from { clip-path: inset(44% 44% round 8px); } to { clip-path: inset(0 round 0); } }

/* sound (public/lab/sound.js): our own generated ambient music, off by default. Boot screen: "♪ sound off/on" under the clock.
   Bottom bar: "Sound" + three tiny bars that dance while it plays (still bars with reduced motion). */
.fb-sound { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; min-width: 44px; padding: 0 .1rem; border: 0; background: none; color: var(--muted); font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.fb-sound:hover, .fb-sound[aria-checked='true'] { color: var(--ink); } .fb-sound[hidden] { display: none; }
.fb-sound::after { content: '\00a0//\00a0' / ''; color: var(--muted); opacity: .7; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; } .eq i { width: 2px; height: 3px; background: var(--hot-text); }
html.sound-on .eq i { animation: eq .9s ease-in-out infinite alternate; } html.sound-on .eq i:nth-child(2) { animation-delay: -.3s; } html.sound-on .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 3px; } to { height: 10px; } }
@media (prefers-reduced-motion: reduce) { html.sound-on .eq i { animation: none; } html.sound-on .eq i:nth-child(1) { height: 5px; } html.sound-on .eq i:nth-child(2) { height: 10px; } html.sound-on .eq i:nth-child(3) { height: 7px; } }
@media (max-width: 480px) { .fb-sound { font-size: 0; gap: 0; } .fb-sound::after { content: none; } }   /* phones: the clock is hidden, so no trailing //   /* phones: just the bars (the word stays for screen readers) */

/* review fixes (UX / UI / QA agents, 2026-10-18) */
.boot-screen:not(.ready) .boot-hint { visibility: hidden; }   /* no "click the person" unless boot.js is running (and drawing the person) */
.boot-log, .boot-score, .boot-mid, .boot-tl, .boot-tr, .boot-sound { text-shadow: 0 0 2px var(--deep), 0 0 6px var(--deep); }   /* readable when a ship flies behind */
@media (max-width: 600px) and (max-height: 700px), (max-height: 520px) { .boot-log > p:not(:last-of-type) { display: none; } }   /* short screens: only the last log line, clear of the name */
.boot-sound { position: absolute; top: 38px; right: 34px; z-index: 1; display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--on-deep-muted); font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; opacity: 0; animation: boot-fade .7s ease .5s forwards; }
.boot-sound[hidden] { display: none; } .boot-sound:hover, .boot-sound[aria-checked='true'] { color: var(--on-deep); } .boot-sound .sw { margin-left: .1em; } .boot-sound[aria-checked='true'] .sw { color: var(--hot); }
.boot-sound:focus-visible { outline: 2px solid var(--on-deep); outline-offset: 3px; }
@media (max-width: 600px) { .boot-sound { right: 26px; } }
.fbar .eq i, .boot-sound .eq i { margin: 0; opacity: 1; }   /* the bar's "i" separator style was spacing the bars out into "…" */
.eq i { background: var(--muted); } .eq i:nth-child(1) { height: 4px; } .eq i:nth-child(2) { height: 8px; } .eq i:nth-child(3) { height: 6px; }   /* off: still, grey, uneven (reads as bars) */
.boot-sound .eq i { background: var(--on-deep-muted); }
html.sound-on .eq i { background: var(--hot-text); } html.sound-on .boot-sound .eq i { background: var(--hot); }
:root { --villain: #e4242c; --villain-text: #ff7478; }   /* Darkon only, never on the main site */
.boot-say.red, .boot-screen.spin .boot-say.red { border-color: var(--villain); color: var(--villain-text); }
.fbar a::before { content: ''; position: absolute; inset: 0 -7px; }   /* bigger tap area for short links, same spacing */
@media (max-width: 360px) { .fb-theme .tw { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .fb-theme::after { content: none; } }   /* tiny phones: the switch alone, so the section name fits */
html[data-theme='dark'] .btn.hot:focus-visible { outline-color: var(--deep); }
.hero-text .acts .more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--hot-text); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-text .acts .more:hover { color: var(--hot-text); } .hero-text .acts .more:last-child { grid-column: 1 / -1; justify-content: center; }   /* phones: its own centred row */
