/* ==========================================================================
   WuBu — shared styles
   Single column, numbered nav, particle river flowing from a live orb clock
   around each page's headline, label/value rows. Purple studio palette.
   Pages link this file and the scripts with ?v=N. After changing site.css,
   site.js or home.js, bump "version" in site.json and run
   python3 tools/build-site.py, so browsers never pair a new page with a
   cached old file (GitHub Pages caches for 10 minutes).
   ========================================================================== */
:root {
  --bg: #0a0a0a;
  --surface: #16091f;
  --line: rgba(150, 104, 194, .22);
  --fg: #e6def0;
  --muted: #b8b8b8;
  --accent: #c49eef;
  --deep: #7b3fbf;
  --warm: #ffb870;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pixel: "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-clear: 80px; /* sticky nav height plus breathing room, for in-page jumps */
  color-scheme: dark;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { overflow-x: hidden; }
/* clip, unlike hidden, doesn't make body a scroll container, so the sticky nav actually sticks */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.6; padding-inline: 20px; -webkit-font-smoothing: antialiased; }
#river { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.page { position: relative; z-index: 1; }
.wrap { max-width: 920px; margin-inline: auto; }
main.wrap { min-height: calc(100vh - 68px); display: flex; flex-direction: column; }
main.wrap > footer { margin-top: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
em { font: inherit; font-style: normal; color: var(--accent); }
code { font-family: var(--mono); font-size: .88em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }

/* Nav */
header.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(10,10,10,.72); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); border-bottom: 1px solid var(--line); margin-inline: -20px; padding: 16px 20px; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.mark { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-decoration: none; }
.mark span { color: var(--accent); }
/* the four blinking squares, carried over from the original WuBu mark */
.mark { display: inline-flex; align-items: center; gap: 11px; }
.mark b { font-weight: inherit; }
.squares { display: grid; grid-template-columns: repeat(2, 7px); gap: 2px; }
.squares i { width: 7px; height: 7px; background: var(--accent); animation: squarePulse 3.2s ease-in-out infinite; }
.squares i:nth-child(2) { background: var(--deep); animation-delay: .3s; }
.squares i:nth-child(3) { background: #5b2d8e; animation-delay: .6s; }
.squares i:nth-child(4) { background: var(--warm); animation-delay: .9s; }
@keyframes squarePulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.nav ul { display: flex; gap: 8px 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a.link { text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 6px; align-items: baseline; transition: color .2s; }
.nav a.link sup { font-size: 10px; color: var(--accent); }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--fg); }
.nav a.link[aria-current="page"] { box-shadow: 0 1px 0 var(--accent); }

/* Orb clock + orbits (every page) */
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.orbit-1 { width: 500px; height: 500px; top: -60px; right: -150px; }
.orbit-2 { width: 340px; height: 340px; top: 20px; right: -70px; }
.orbit-3 { width: 180px; height: 180px; top: 100px; right: 10px; }
.orb { position: absolute; top: 138px; right: 48px; width: 104px; height: 104px; border-radius: 50%; padding: 0; cursor: pointer; z-index: 3; overflow: hidden; isolation: isolate; color: #f4eefc;
  background: radial-gradient(circle at 50% 40%, #2a1240 0%, #16091f 60%, #0e0716 100%); border: 1px solid rgba(196,158,239,.55);
  box-shadow: 0 0 24px rgba(123,63,191,.55), inset 0 0 18px rgba(123,63,191,.45); transition: transform .3s var(--ease), box-shadow .3s; }
.orb:hover { transform: scale(1.06); box-shadow: 0 0 34px rgba(196,158,239,.6), inset 0 0 18px rgba(123,63,191,.5); }
.orb::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px); }
.orb::after { content: ""; position: absolute; left: 0; right: 0; height: 45%; top: -45%; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(196,158,239,.16), transparent); animation: sweep 3.5s linear infinite; }
.orb svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.orb .trk { fill: none; stroke: rgba(196,158,239,.15); stroke-width: 3; }
.orb .prg { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(196,158,239,.9)); }
.orb .tk { stroke: rgba(244,238,252,.28); stroke-width: 1; }
.orb .tk.q { stroke: rgba(244,238,252,.85); stroke-width: 2; }
.orb-face { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--mono); line-height: 1; font-variant-numeric: tabular-nums; }
.orb-time { font-weight: 300; font-size: 21px; letter-spacing: -.04em; color: #fff; text-shadow: 0 0 8px rgba(196,158,239,.8), 0 0 20px rgba(123,63,191,.6); }
.orb-time .colon { animation: blink 1s steps(2) infinite; }
.orb-sec { margin-top: 5px; font-size: 9px; letter-spacing: .16em; color: var(--warm); text-shadow: 0 0 6px rgba(255,184,112,.6); }
.orb-led { position: absolute; top: 20%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #7cf2a4; box-shadow: 0 0 6px #7cf2a4; animation: pulse 1s steps(2) infinite; }

/* Home hero */
.hero { position: relative; padding-block: 96px 120px; min-height: 620px; }
.greeting { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; animation: slideIn .8s var(--ease) .3s both; }
.hero h1 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(64px, 12vw, 116px); line-height: .88; letter-spacing: -.035em; margin: 0; display: inline-block; position: relative; z-index: 4; }
.hero h1 .line { display: block; animation: nameReveal 1s var(--ease) both; }
/* Hero headline as a digital clock display: 14-segment LCD lettering with the unlit segments showing faintly behind */
@font-face { font-family: "DSEG14"; src: url("fonts/DSEG14Classic-Italic.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
.hero h1 { font-family: "DSEG14", var(--serif); font-size: clamp(46px, 9.5vw, 92px); line-height: 1.08; letter-spacing: .02em; color: #f1e8fb; text-shadow: 0 0 6px rgba(196,158,239,.7), 0 0 24px rgba(123,63,191,.55); }
.hero h1 .line { position: relative; isolation: isolate; }
.hero h1 .line::before { content: attr(data-ghost); position: absolute; left: 0; top: 0; z-index: -1; color: rgba(196,158,239,.08); text-shadow: none; pointer-events: none; }
.hero h1 .line + .line { margin-top: .12em; }
.hero h1 .line:first-child { animation-delay: .5s; }
.hero h1 .line:nth-child(2) { animation-delay: .65s; }
/* Coming-soon neon sign, hung off the headline's top-right corner; shrinks toward that corner on phones */
.hero-title { position: relative; display: inline-block; }
.neon { position: absolute; left: 100%; bottom: 100%; z-index: 5; display: grid; justify-items: center; padding: 12px 18px 14px; border: 2px solid #e7cdff; border-radius: 14px; background: rgba(22,9,31,.55); box-shadow: 0 0 4px var(--accent), 0 0 16px var(--deep), 0 0 34px rgba(123,63,191,.5), inset 0 0 10px rgba(123,63,191,.7); transform-origin: left bottom; transform: translate(-22%, 40%) rotate(-4deg); animation: neonOn .7s var(--ease) 1.2s both; }
.neon b { display: block; font: italic 500 30px/1 var(--serif); letter-spacing: .02em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.3px #f8ecff; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 14px var(--deep)); }
.neon b + b { -webkit-text-stroke-color: #ffe3c6; filter: drop-shadow(0 0 1.5px #fff6ec) drop-shadow(0 0 6px var(--warm)) drop-shadow(0 0 14px #e0772f); animation: flicker 6s linear 2s infinite; }
.neon::before, .neon::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--warm); filter: drop-shadow(0 0 5px var(--warm)); }
.neon::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.neon::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.neon i { position: absolute; top: -17px; right: 18px; display: flex; gap: 5px; }
.neon i::before, .neon i::after, .neon i span { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); box-shadow: 0 0 6px var(--accent); }
.role-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 30px; animation: slideIn .7s var(--ease) .85s both; }
.role-tag { background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 9px 20px; cursor: default; transition: background .25s; }
.role-tag:hover { background: var(--warm); }
.role-sub { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); }
.bio { max-width: 40ch; color: var(--muted); font-size: 18px; line-height: 1.75; margin: 26px 0 0; animation: slideIn .7s var(--ease) 1s both; }
.scroll-arrow { display: inline-flex; margin-top: 34px; color: var(--muted); animation: slideIn .7s var(--ease) 1.15s both; transition: color .2s; }
.scroll-arrow:hover { color: var(--accent); }
@keyframes neonOn { 0% { opacity: 0; } 30% { opacity: .8; } 40% { opacity: .15; } 55%, 100% { opacity: 1; } }
@keyframes flicker { 0%, 88%, 91%, 94%, 100% { opacity: 1; } 89%, 92.5% { opacity: .25; } }
@keyframes nameReveal { from { opacity: 0; transform: translateY(60px) skewY(3deg); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sweep { to { top: 100%; } }
@keyframes pulse { 50% { opacity: .25; } }
@keyframes blink { 50% { opacity: .2; } }

/* Desktop mockup (home) */
.stage { position: relative; padding-block: 0 56px; }
.badge { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: var(--surface); margin-bottom: 18px; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(196,158,239,.25); }
.desk { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 18% 110%, #5b2d8e 0%, transparent 55%), radial-gradient(90% 80% at 95% -10%, #4a1f7a 0%, transparent 60%), linear-gradient(160deg, #16091f, #0a0a0a); }
.menubar { position: absolute; inset: 0 0 auto 0; height: 26px; display: flex; justify-content: space-between; align-items: center; padding-inline: 14px; font-size: 12px; color: #e9e4f0; background: rgba(20,12,28,.55); backdrop-filter: blur(8px); }
.menubar b { font-weight: 600; margin-right: 14px; }
.menubar span { opacity: .8; margin-right: 12px; }
.win { position: absolute; left: 6%; bottom: 9%; width: 44%; height: 46%; border-radius: 10px; background: rgba(230,222,240,.06); border: 1px solid rgba(230,222,240,.08); }
.clock { position: absolute; right: 4%; top: 11%; width: min(54%, 460px); padding: clamp(12px, 2.2vw, 20px); border-radius: 18px; color: #f4eefc; overflow: hidden; isolation: isolate;
  background: rgba(14,7,22,var(--glass, .55)); border: 1px solid rgba(196,158,239,calc(var(--glass, .55) * .55)); backdrop-filter: blur(calc(var(--glass, .55) * 16px)) saturate(calc(1 + var(--glass, .55) * .3)); -webkit-backdrop-filter: blur(calc(var(--glass, .55) * 16px)) saturate(calc(1 + var(--glass, .55) * .3));
  box-shadow: 0 24px 60px rgba(0,0,0,calc(var(--glass, .55) * .7)), inset 0 0 40px rgba(123,63,191,calc(var(--glass, .55) * .35)); transition: background .2s, box-shadow .2s; }
.clock { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.clock.dragging { cursor: grabbing; box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(196,158,239,.5), inset 0 0 40px rgba(123,63,191,calc(var(--glass, .55) * .35)); transition: none; }
.clock:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.clock::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
.clock .sweep { position: absolute; left: 0; right: 0; height: 40%; top: -40%; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(196,158,239,.12), transparent); animation: sweep 4.5s linear infinite; }
.ck-top { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: clamp(8px, 1vw, 10.5px); letter-spacing: .14em; text-transform: uppercase; color: rgba(244,238,252,.65); }
.ck-top .led { width: 7px; height: 7px; border-radius: 50%; background: #7cf2a4; box-shadow: 0 0 8px #7cf2a4; animation: pulse 1s steps(2) infinite; }
.ck-top .sp { margin-left: auto; font-variant-numeric: tabular-nums; }
.ck-core { display: flex; align-items: center; gap: clamp(10px, 2vw, 18px); margin-block: clamp(8px, 1.6vw, 14px); }
.ring { width: clamp(58px, 10vw, 104px); aspect-ratio: 1; max-width: 100%; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.ring .trk { fill: none; stroke: rgba(196,158,239,.15); stroke-width: 3; }
.ring .prg { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(196,158,239,.85)); }
.ring .tk { stroke: rgba(244,238,252,.28); stroke-width: 1; }
.ring .tk.q { stroke: rgba(244,238,252,.85); stroke-width: 2; }
.sec-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--mono); line-height: 1; }
.sec-num b { font-weight: 400; font-size: clamp(14px, 2.4vw, 24px); color: #fff; text-shadow: 0 0 10px rgba(196,158,239,.75); font-variant-numeric: tabular-nums; }
.sec-num small { font-size: clamp(6px, .8vw, 9px); letter-spacing: .18em; color: rgba(244,238,252,.55); margin-top: 3px; }
.readout { min-width: 0; }
.ck-time { display: flex; align-items: baseline; font-family: var(--mono); font-weight: 300; font-size: clamp(30px, 6.6vw, 64px); line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(196,158,239,.65), 0 0 32px rgba(123,63,191,.55); }
.ck-time .colon { animation: blink 1s steps(2) infinite; }
.ck-time small { font-size: .28em; letter-spacing: .08em; margin-left: .4em; color: var(--warm); text-shadow: 0 0 10px rgba(255,184,112,.6); }
.dg { display: inline-block; }
.dg.flip { animation: flip .45s var(--ease); }
@keyframes flip { from { transform: translateY(-35%); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
.ck-date { font-family: var(--mono); font-size: clamp(8px, 1.05vw, 11px); letter-spacing: .16em; color: rgba(244,238,252,.7); margin-top: 6px; }
.meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-family: var(--mono); font-size: clamp(8px, 1vw, 10.5px); letter-spacing: .12em; color: rgba(244,238,252,.6); font-variant-numeric: tabular-nums; }
.bar { display: block; height: 4px; border-radius: 2px; background: rgba(196,158,239,.15); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--deep), var(--accent)); box-shadow: 0 0 8px rgba(196,158,239,.7); }
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: clamp(8px, 1.4vw, 12px); padding-top: clamp(8px, 1.4vw, 12px); border-top: 1px dashed rgba(196,158,239,.3); font-family: var(--mono); font-size: clamp(8px, 1.1vw, 11px); font-variant-numeric: tabular-nums; }
.zones div { display: grid; gap: 2px; min-width: 0; }
.zones span { display: flex; align-items: center; gap: 5px; opacity: .6; letter-spacing: .1em; }
.dn { width: 6px; height: 6px; border-radius: 50%; flex: none; border: 1px solid rgba(244,238,252,.6); }
.dn.day { background: var(--warm); border-color: var(--warm); box-shadow: 0 0 6px var(--warm); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: clamp(8px, 1.4vw, 12px); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: clamp(8px, 1.05vw, 11px); padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.08); font-variant-numeric: tabular-nums; }
.chip.focus { color: #16091f; background: var(--accent); }
.chip.focus .bar { width: clamp(24px, 4vw, 46px); background: rgba(22,9,31,.25); }
.chip.focus .bar i { background: #16091f; box-shadow: none; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.controls label { display: flex; align-items: center; gap: 12px; }
.controls input[type=range] { width: 160px; accent-color: var(--accent); }
.controls output { color: var(--fg); min-width: 4ch; font-variant-numeric: tabular-nums; }
.caption { margin-left: auto; }

/* Home sections */
section.block { position: relative; padding-block: 64px; border-top: 1px solid var(--line); scroll-margin-top: var(--nav-clear); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
/* Back-to-top caret, set like a superscript right after a section label */
.to-top { display: inline-block; margin-left: 3px; padding: 2px 3px; vertical-align: .55em; line-height: 0; color: var(--muted); border-radius: 4px; transition: color .2s, transform .25s var(--ease); }
.to-top svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { color: var(--accent); transform: translateY(-2px); }
h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -.025em; line-height: 1.08; margin: 0 0 18px; text-wrap: balance; }
.intro { color: var(--muted); max-width: 58ch; margin: 0 0 36px; }
/* Feature tiles: a 6-column bento, each tile opening with a small live preview of its feature */
.feats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.feat { grid-column: span 2; display: grid; align-content: start; gap: 6px; padding: 16px 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(22,9,31,.75), rgba(10,10,10,.3)); transition: border-color .25s, transform .25s var(--ease); }
.feat:hover { border-color: rgba(196,158,239,.45); transform: translateY(-2px); }
.feat-wide { grid-column: span 4; }
.feat h3 { font-size: 17px; font-weight: 600; margin: 12px 0 0; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.fv { position: relative; height: 88px; display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; border-radius: 10px; border: 1px solid rgba(150,104,194,.16); font-family: var(--mono); color: #f4eefc; background: radial-gradient(120% 140% at 15% 130%, rgba(91,45,142,.55), transparent 60%), #0e0614; }
.fv-float .w { position: absolute; border-radius: 6px; background: rgba(230,222,240,.06); border: 1px solid rgba(230,222,240,.09); }
.fv-float .w1 { left: 5%; top: 30px; width: 40%; height: 70px; }
.fv-float .w2 { left: 24%; top: 14px; width: 26%; height: 40px; }
.fv-float .mini { position: relative; margin-left: 34%; padding: 8px 16px; border-radius: 10px; font-size: 22px; letter-spacing: .04em; font-variant-numeric: tabular-nums; background: rgba(14,7,22,.55); border: 1px solid rgba(196,158,239,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 12px 26px rgba(0,0,0,.5), 0 0 18px rgba(123,63,191,.35); animation: hover 4s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-5px); } }
.fv-zones { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 8px 16px; padding-inline: 16px; font-size: 11px; }
.fv-zones div { display: flex; justify-content: space-between; align-items: center; }
.fv-zones span { display: flex; align-items: center; gap: 6px; letter-spacing: .1em; opacity: .7; }
.fv-zones b { font-weight: 500; font-variant-numeric: tabular-nums; }
.fv-focus svg { width: 58px; height: 58px; transform: rotate(-90deg); }
.fv-focus circle { fill: none; stroke: rgba(196,158,239,.15); stroke-width: 4; }
.fv-focus circle.on { stroke: var(--accent); stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(196,158,239,.8)); }
.fv-focus span { font-size: 20px; letter-spacing: .04em; }
.fv-wx .sun { width: 26px; height: 26px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 7px rgba(255,184,112,.14), 0 0 26px rgba(255,184,112,.7); }
.fv-wx span { font-size: 14px; letter-spacing: .08em; }
.fv-look { background: repeating-linear-gradient(135deg, rgba(196,158,239,.28) 0 6px, transparent 6px 12px), #0e0614; }
.fv-look span { padding: 7px 10px; border-radius: 8px; font-size: 14px; font-variant-numeric: tabular-nums; background: rgba(14,7,22,var(--a)); border: 1px solid rgba(196,158,239,calc(var(--a) * .6 + .1)); }
.releases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rel { display: grid; align-content: start; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.rel.now { background: var(--surface); border-color: rgba(196,158,239,.4); }
.rel .when { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.rel h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; line-height: 1.15; }
.rel h3.brand { position: relative; isolation: isolate; align-self: start; justify-self: start; font-family: "DSEG14", var(--serif); font-size: 24px; letter-spacing: .02em; line-height: 1.25; text-transform: uppercase; color: #f1e8fb; text-shadow: 0 0 5px rgba(196,158,239,.7), 0 0 16px rgba(123,63,191,.5); }
.rel h3.brand::before { content: attr(data-ghost); position: absolute; left: 0; top: 0; z-index: -1; color: rgba(196,158,239,.08); text-shadow: none; pointer-events: none; }
.rel h3.race { font-family: "Racing Sans One", var(--sans); font-size: 32px; letter-spacing: .03em; line-height: 1.1; color: #fff; }
.rel h3.race .l3 { color: #ff3b30; text-shadow: 0 0 10px rgba(255,59,48,.6); }
.rel h3.race .l2 { color: #ffd60a; text-shadow: 0 0 10px rgba(255,214,10,.5); }
.rel h3.race .l1 { color: #30d158; text-shadow: 0 0 10px rgba(48,209,88,.55); }
.rel .plat { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rel p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }
.rel p.tag { color: var(--fg); font-weight: 500; font-size: 16.5px; }
blockquote.note { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.2vw, 31px); line-height: 1.35; max-width: 34ch; text-wrap: pretty; }
blockquote.note::before { content: "\201C"; color: var(--accent); }
blockquote.note::after { content: "\201D"; color: var(--accent); }
.about-body { display: grid; gap: 14px; margin-top: 30px; max-width: 60ch; color: var(--muted); }
.about-body p { margin: 0; }
.sig { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.mono-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; color: #16091f; background: var(--accent); }
.sig div { line-height: 1.3; }
.sig span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mail .addr { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.1; word-break: break-all; }
.mail a.addr { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .2s, text-decoration-color .2s; }
.mail a.addr:hover { color: var(--accent); text-decoration-color: var(--accent); }
.copy { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: none; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: border-color .2s, color .2s; }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; }
.links a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s; }
.links a:hover { border-color: var(--accent); }

/* Sub pages: the same orb and river, scaled to a page header */
.sub { padding-block: 72px 80px; }
.sub-head { position: relative; padding: 0 160px 36px 0; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.sub-head .orbit-1 { width: 300px; height: 300px; top: -114px; right: -82px; }
.sub-head .orbit-2 { width: 200px; height: 200px; top: -64px; right: -32px; }
.sub-head .orbit-3 { width: 130px; height: 130px; top: -29px; right: 3px; }
.sub-head .orb { width: 88px; height: 88px; top: -8px; right: 24px; }
.sub-head .orb-time { font-size: 18px; }
.sub-head .orb-sec { font-size: 8px; margin-top: 4px; }
.sub-head .eyebrow { font-size: 12px; color: var(--accent); max-width: none; margin: 0 0 10px; animation: slideIn .8s var(--ease) .1s both; }
.sub-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 8vw, 84px); line-height: .98; letter-spacing: -.03em; margin: 0 0 20px; text-wrap: balance; display: inline-block; position: relative; z-index: 4; animation: nameReveal .9s var(--ease) both; }
.sub-head p { color: var(--muted); max-width: 54ch; margin: 0; font-size: 18px; }
.sub-head .stamp { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-top: 18px; }
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose [id] { scroll-margin-top: var(--nav-clear); }
.prose h3, .prose h4 { font-size: 19px; font-weight: 600; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; }
.prose pre code { background: none; border: 0; padding: 0; color: var(--fg); }
.prose blockquote { margin: 24px 0; padding-left: 20px; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--fg); }
.prose .mail { margin: 4px 0 20px; }
.empty { color: var(--muted); }

/* Blog */
.posts { display: grid; }
.post-row { display: grid; gap: 6px; padding-block: 28px; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-row:first-child { padding-top: 0; }
.post-row .when { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.post-row h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.6vw, 34px); margin: 0; transition: color .2s; }
.post-row p { margin: 0; color: var(--muted); max-width: 62ch; }
.post-row .more { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--fg); display: flex; gap: 14px; margin-top: 6px; }
.post-row .more i { font-style: normal; color: var(--muted); }
.post-row:hover h2 { color: var(--accent); }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav:empty { display: none; }
.post-nav a { text-decoration: none; display: grid; gap: 4px; font-family: var(--serif); font-size: 20px; }
.post-nav a span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.post-nav .older { text-align: right; grid-column: 2; }
.back { display: inline-block; margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }

footer { position: relative; background: var(--bg); border-top: 1px solid var(--line); padding-block: 28px 40px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat { grid-column: span 1; }
  .feat-wide { grid-column: span 2; }
  .releases { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --nav-clear: 150px; } /* the nav wraps to two lines */
  .hero { padding-block: 150px 90px; min-height: 0; }
  .orbit-1 { width: 300px; height: 300px; top: -40px; right: -110px; }
  .orbit-2 { width: 200px; height: 200px; top: 10px; right: -60px; }
  .orbit-3 { width: 110px; height: 110px; top: 55px; right: -5px; }
  .orb { width: 72px; height: 72px; top: 74px; right: 14px; }
  .orb-time { font-size: 15px; }
  .orb-sec { font-size: 7px; margin-top: 3px; }
  .neon { transform: translate(-4%, 60%) rotate(-4deg) scale(.62); }
  .sub { padding-top: 132px; }
  .sub-head { padding-right: 0; }
  .sub-head .orbit-1 { width: 220px; height: 220px; top: -170px; right: -70px; }
  .sub-head .orbit-2 { width: 150px; height: 150px; top: -135px; right: -35px; }
  .sub-head .orbit-3 { width: 96px; height: 96px; top: -108px; right: -8px; }
  .sub-head .orb { width: 64px; height: 64px; top: -92px; right: 8px; }
  .sub-head .orb-time { font-size: 14px; }
  .sub-head .orb-sec { font-size: 7px; margin-top: 3px; }
  .desk { aspect-ratio: 4 / 5; }
  .clock { width: 88%; right: 6%; top: 10%; }
  .ck-time { font-size: 38px; }
  .ring { width: 64px; }
  .ck-top, .ck-date, .meter, .zones, .chip { font-size: 10px; }
  .win { width: 70%; height: 30%; bottom: 7%; }
  .caption { margin-left: 0; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .older { grid-column: auto; text-align: left; }
}
@media (max-width: 480px) {
  .feats { grid-template-columns: minmax(0, 1fr); }
  .feat, .feat-wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
