/* alex-aero.com — v5. A photo behind everything, glass in front of it. */
:root {
  --bg: #05070d;
  --card: rgba(12, 14, 20, .58);
  --card-2: rgba(16, 18, 26, .66);
  --raise: rgba(255, 255, 255, .07);
  --field: rgba(4, 6, 10, .55);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .14);
  --line-hi: rgba(255, 255, 255, .3);
  --text: #f1f3f6;
  --muted: rgba(235, 239, 245, .72);
  --faint: rgba(235, 239, 245, .46);
  --ok: #3ddc97;
  --warn: #f2c14e;
  --err: #ff5a52;
  --bw: #ff6a3d;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --glass: blur(14px) saturate(1.25);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
a { color: inherit; }
[hidden] { display: none !important; }
img { max-width: 100%; }
code { font: .88em var(--mono); padding: .1em .4em; border-radius: 5px; background: rgba(255,255,255,.08); border: 1px solid var(--line); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.dim { color: var(--faint); }
.kicker { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.ver { display: inline-block; font: 500 11px/1 var(--mono); padding: 4px 7px; border-radius: 6px; color: var(--c, var(--ok)); border: 1px solid color-mix(in srgb, var(--c, var(--ok)) 35%, transparent); background: color-mix(in srgb, var(--c, var(--ok)) 10%, transparent); vertical-align: 2px; }
.ver:empty { display: none; }

/* ── the photo: fixed, sharp for the screen it's on, faded in once loaded ── */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg) center / cover no-repeat; }
.bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0; transform: scale(1.04); transition: opacity 1.4s var(--ease), transform 2.6s var(--ease); }
.bg img.in { opacity: 1; transform: none; }
.bg::after { content: ""; position: absolute; inset: 0; background: var(--shade); }
.bg-winter { background-image: url(../bg/winter-tiny.jpg); --pos: 50% 62%; }
.bg-forest { background-image: url(../bg/forest-tiny.jpg); --pos: 50% 40%; }
.bg-winter::before, .bg-forest::before { content: ""; position: absolute; inset: -40px; background: inherit; filter: blur(30px); }
.home .bg { --shade: linear-gradient(90deg, rgba(4,6,12,.62) 0%, rgba(4,6,12,.28) 55%, rgba(4,6,12,0) 100%), linear-gradient(180deg, rgba(4,6,12,.35) 0%, rgba(4,6,12,0) 30%, rgba(4,6,12,.25) 100%); }
.projects .bg { --shade: linear-gradient(180deg, rgba(4,6,12,.45) 0%, rgba(4,6,12,.72) 60%, rgba(4,6,12,.86) 100%); }
.github .bg { --shade: linear-gradient(180deg, rgba(6,10,12,.42) 0%, rgba(6,10,12,.68) 55%, rgba(6,10,12,.84) 100%); }

/* ── glass, the light kind ── */
.glass { background: var(--card); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 80px -40px rgba(0,0,0,.7); }

/* ── nav ── */
.nav { position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 99px; border: 1px solid var(--line); background: rgba(10,12,18,.42); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.nav .me { font: 600 15px var(--mono); letter-spacing: -.03em; text-decoration: none; padding: 7px 12px 7px 14px; }
.nav a.tab { font-size: 14px; color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 99px; transition: color .2s, background .2s; }
.nav a.tab:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav { view-transition-name: nav; }
.nav > a { position: relative; z-index: 1; }
.nav-ind { position: absolute; z-index: 0; left: 0; top: 5px; height: calc(100% - 10px); width: 0; border-radius: 99px; background: rgba(255,255,255,.94);
  transform: translateX(var(--x, 0)); width: var(--w, 0); opacity: 0; transition: transform .55s cubic-bezier(.3,1.25,.4,1), width .55s cubic-bezier(.3,1.25,.4,1), opacity .2s; }
.nav-ind.ready { opacity: 1; }
.nav a.tab.on { color: #05070d; transition: color .25s .1s; }
.nav .live { display: flex; align-items: center; gap: 7px; font: 11.5px var(--mono); color: var(--faint); padding: 0 12px 0 8px; white-space: nowrap; text-decoration: none; }
.nav .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(61,220,151,.18); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 99px; font: 600 15px var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--ease), background .2s, border-color .2s, box-shadow .3s; }
.btn.light { background: #fff; color: #05070d; box-shadow: 0 10px 30px -12px rgba(255,255,255,.55); }
.btn.light:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(255,255,255,.7); }
.btn.ghost { background: rgba(255,255,255,.07); color: var(--text); border-color: var(--line-2); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.btn.ghost:hover { background: rgba(255,255,255,.12); border-color: var(--line-hi); }
.btn.sm { padding: 8px 14px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ── arrival: opacity and transform only, so it's smooth everywhere ── */
.up { animation: up .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── home ── */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 64px; }
.hero .wrap { max-width: 1180px; }
.bio { max-width: 560px; }
.bio .kicker { color: rgba(255,255,255,.62); }
.hi { margin-top: 14px; font-size: clamp(52px, 7.6vw, 96px); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; }
.hi .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin: 0 -.02em -.1em; }
.hi .w > span { display: inline-block; background: linear-gradient(180deg, #fff 35%, #c9d2e3); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(108%) rotate(4deg); transform-origin: 0 100%; animation: word 1.05s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(.45s + var(--i) * .11s); }
@keyframes word { to { transform: none; } }
.rise { opacity: 0; animation: rise .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fam { margin-top: 30px; }
.fam .kicker { color: rgba(255,255,255,.55); }
.fam-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.fam-row a { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); opacity: 0; transform: translateY(14px) scale(.7);
  animation: pop .8s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: calc(1.3s + var(--i) * .07s); transition: background .25s, border-color .25s; }
.fam-row a img { width: 38px; height: 38px; border-radius: 11px; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.fam-row a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); }
.fam-row a:hover img { transform: translateY(-3px) scale(1.08); }
.fam-row a::after { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 5px 9px; border-radius: 8px;
  background: rgba(10,12,18,.85); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; color: var(--text); opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
.fam-row a:hover::after, .fam-row a:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@keyframes pop { to { opacity: 1; transform: none; } }
.snow { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: 0; animation: rise 2.4s ease forwards; animation-delay: .6s; }
.home .bg picture { position: absolute; inset: -24px; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.home .bg img.in { animation: dolly 3.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes dolly { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; transform: none; } }
.bio p.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: rgba(245,247,250,.86); text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.bio p.lead b { color: #fff; font-weight: 600; }
.bio .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.now { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 9px 14px 9px 10px; border-radius: 14px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.now img { width: 24px; height: 24px; border-radius: 6px; }
.now b { color: var(--text); font-weight: 600; }
.now code { background: none; border: 0; padding: 0; color: var(--ok); }
.mail { margin-top: 18px; font-size: 14px; color: rgba(245,247,250,.62); }
.mail a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.mail a:hover { border-color: #fff; }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 13.5px; color: rgba(245,247,250,.7); }
.facts-row span { display: inline-flex; align-items: center; gap: 8px; }
.facts-row i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55); }
.credit { position: fixed; right: 14px; bottom: 10px; z-index: 5; font-size: 11px; color: rgba(255,255,255,.42); text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.credit:hover { color: rgba(255,255,255,.8); }

/* ── projects ── */
.page-head { padding: 128px 0 34px; }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.page-head p { margin-top: 16px; max-width: 60ch; font-size: 18px; color: var(--muted); }
.jump { position: sticky; top: 72px; z-index: 30; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; margin: 0 auto 30px; width: max-content; max-width: 100%; border-radius: 99px; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 13px 6px 7px; border-radius: 99px; font-size: 13.5px; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.jump a img { width: 22px; height: 22px; border-radius: 6px; }
.jump a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.jump a.on { color: var(--text); background: rgba(255,255,255,.12); }
.proj { padding: 34px; margin-bottom: 22px; }
.proj-head { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.proj-head > img { width: 76px; height: 76px; border-radius: 20px; }
.proj-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.proj-head p { margin-top: 6px; color: var(--muted); font-size: 16.5px; }
.proj-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.proj-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 30px; margin-top: 28px; align-items: start; }
.proj-body.wide { grid-template-columns: minmax(0, 1fr); }
.points { list-style: none; display: grid; gap: 14px; }
.points li { padding-left: 22px; position: relative; color: var(--muted); font-size: 15px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--c, #fff); opacity: .8; }
.points b { color: var(--text); font-weight: 600; }
.cmd { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 9px 9px 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); font: 13px var(--mono); }
.cmd span { color: var(--ok); }
.cmd code { flex: 1; background: none; border: 0; padding: 0; overflow-x: auto; scrollbar-width: none; color: #fff; font-size: 13px; }
.cmd code::-webkit-scrollbar { display: none; }
.copy { flex: none; font: 600 12.5px var(--sans); color: #000; background: #fff; border: 0; border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.copy.done { background: var(--ok); }
.demo-cap { margin-top: 10px; font-size: 13.5px; color: var(--faint); }
.shots { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 10; }
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .7s var(--ease); }
.shots img.on { opacity: 1; }
.shot-tabs { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.shot-tabs button { font: 500 13px var(--sans); color: var(--muted); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.shot-tabs button.on { background: #fff; color: #000; border-color: #fff; }
.code-card { border-radius: 14px; border: 1px solid var(--line); background: var(--field); padding: 18px 20px; font: 13px/1.7 var(--mono); color: #cfd4da; overflow-x: auto; white-space: pre; }
.code-card .k { color: #c9b8ff; } .code-card .s { color: #3ddc97; } .code-card .c { color: var(--faint); }
.mini-film .player { border-radius: 14px; }
.mini-film .chap { display: none; }

.try-h { margin-top: 38px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.proj .bwc { margin-top: 16px; }
.proj .burrow-list { margin-top: 30px; }
.flow-card { border-radius: 16px; border: 1px solid var(--line); background: rgba(5,7,12,.55); padding: 20px; }
.fc-row { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fc-row img { width: 34px; height: 34px; border-radius: 9px; }
.fc-row b { flex: 1; font-size: 16px; font-weight: 600; }
.fc-steps { list-style: none; display: grid; gap: 0; margin-top: 6px; }
.fc-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.fc-steps li:last-child { border-bottom: 0; }
.fc-steps span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.fc-steps b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-steps em { font: 12px var(--mono); font-style: normal; color: var(--faint); }
.fc-steps li:last-child b { color: var(--ok); }
.fc-note { margin-top: 10px; font-size: 12px; color: var(--faint); }

.seg { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); }

/* ── github ── */
.gh-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px 26px; }
.gh-top img.av { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line-2); }
.gh-top h1 { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.gh-top p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.gh-nums { display: flex; gap: 8px; flex-wrap: wrap; }
.gh-nums div { padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); min-width: 96px; }
.gh-nums b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.gh-nums span { font-size: 12px; color: var(--faint); }
.gh-sec { margin-top: 30px; }
.gh-sec > h2 { font-size: 15px; font-weight: 600; margin: 0 4px 12px; display: flex; align-items: baseline; gap: 10px; }
.gh-sec > h2 span { font-weight: 400; font-size: 13px; color: var(--faint); }
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.site { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; text-decoration: none; }
.site b { font-size: 16px; font-weight: 600; }
.site .sub { grid-column: 1 / -1; font-size: 13px; color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 7px; font: 500 12px var(--mono); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pill.ok { color: var(--ok); border-color: rgba(61,220,151,.35); background: rgba(61,220,151,.08); } .pill.ok i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pill.warn { color: var(--warn); border-color: rgba(242,193,78,.35); background: rgba(242,193,78,.08); } .pill.warn i { background: var(--warn); }
.pill.err { color: var(--err); border-color: rgba(255,90,82,.4); background: rgba(255,90,82,.08); } .pill.err i { background: var(--err); }
.repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.repo { padding: 20px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: border-color .25s, transform .4s var(--ease), background .25s; text-align: left; color: inherit; font: inherit; }
.repo:hover { border-color: var(--line-hi); transform: translateY(-2px); background: var(--card-2); }
.repo-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.repo-top img { width: 44px; height: 44px; border-radius: 12px; }
.repo-top > div { min-width: 0; }
.repo-top b { display: block; font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo-top small { display: block; font: 12px var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo .msg { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.repo .msg b { font: 600 12.5px var(--mono); color: var(--c); margin-right: 6px; }
.spark { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; height: 20px; }
.spark i { border-radius: 2px; background: rgba(255,255,255,.08); }
.spark i.on { background: var(--c); }
.repo-foot { display: flex; align-items: center; gap: 6px; font: 12px var(--mono); color: var(--faint); }
.repo-foot .sp { flex: 1; }
.repo-foot a { text-decoration: none; }
.dl { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--text); font: 600 12.5px var(--sans); }
.dl:hover { background: rgba(255,255,255,.14); }
.dl svg { width: 14px; height: 14px; }

/* the README sheet */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 70px 20px 20px; background: rgba(4,6,8,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet-in { width: min(920px, 100%); padding: 0; overflow: hidden; animation: up .5s var(--ease) both; background: rgba(12,14,20,.86); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); background: rgba(12,14,20,.92); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.sheet-head img { width: 44px; height: 44px; border-radius: 12px; }
.sheet-head b { font-size: 17px; font-weight: 600; display: block; }
.sheet-head small { font: 12px var(--mono); color: var(--faint); }
.sheet-acts { display: flex; gap: 8px; align-items: center; }
.x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font-size: 18px; cursor: pointer; }
.md { padding: 28px 34px 40px; color: #d9dde3; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.md > * + * { margin-top: 14px; }
.md h1, .md h2, .md h3 { color: #fff; letter-spacing: -.02em; line-height: 1.25; margin-top: 28px; }
.md h1 { font-size: 28px; } .md h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line); } .md h3 { font-size: 17px; }
.md a { color: #8fb8ff; text-decoration: none; } .md a:hover { text-decoration: underline; }
.md img { max-width: 100%; height: auto; border-radius: 8px; }
.md p[align="center"] img { display: inline-block; vertical-align: middle; border-radius: 4px; }
.md pre { background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font: 13px/1.6 var(--mono); }
.md pre code { background: none; border: 0; padding: 0; white-space: pre; }
.md code { white-space: normal; }
.md table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 14px; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.md blockquote { border-left: 3px solid var(--line-hi); padding-left: 14px; color: var(--muted); }
.md ul, .md ol { padding-left: 22px; }
.md kbd { font: 12px var(--mono); padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 4px; }
.md .anchor, .md svg.octicon { display: none; }
.md-load { padding: 60px; text-align: center; color: var(--faint); }

.day-h b { color: #fff; }
.day::before { top: 46px; background: linear-gradient(var(--line-2), transparent); }

/* ── moving between pages: the content moves, the photo stays ── */
#page.leaving > :not(.bg):not(.snow):not(.sheet) { opacity: 0; transform: translateY(-10px); transition: opacity .22s ease, transform .22s ease; }
#page.entering > :not(.bg):not(.snow):not(.sheet):not(.credit) { animation: page-in .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
.bg.bg-out { z-index: -1; transition: opacity .9s ease; }
.bg.bg-out.gone { opacity: 0; }

/* ── footer ── */
.foot { margin-top: 70px; padding: 22px 0 44px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; font-size: 13px; color: var(--faint); }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ── components on glass ── */
.player { border-color: var(--line-2); }
.bwc, .builder, .tunnel-art, .verdict, .b-out, .log-stats, .b-row, .ev a, .kpis > div { backdrop-filter: none; }
.b-row, .ev a { background: rgba(12,14,20,.55); }
.tunnel-art { background: rgba(5,6,10,.65); }
.builder { background: rgba(14,16,22,.6); }

@media (max-width: 980px) {
  .proj-body { grid-template-columns: minmax(0, 1fr); }
  .proj-head { grid-template-columns: 60px minmax(0, 1fr); }
  .proj-head > img { width: 60px; height: 60px; border-radius: 16px; }
  .proj-links { grid-column: 1 / -1; justify-content: flex-start; }
  .burrow-grid { grid-template-columns: minmax(0, 1fr); }
  .bwc-grid { grid-template-columns: minmax(0, 1fr); }
  .b-row { grid-template-columns: 40px minmax(0, 1fr) 76px 90px; }
  .b-days { grid-column: 2 / -1; grid-row: 2; height: 18px; }
  .gh-top { grid-template-columns: auto minmax(0, 1fr); }
  .gh-nums { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav { top: 10px; width: calc(100% - 20px); justify-content: space-between; }
  .nav .live { display: none; }
  .nav { gap: 2px; padding: 4px; }
  .nav .me { padding: 7px 8px 7px 10px; }
  .nav a.tab { padding: 7px 11px; font-size: 13.5px; }
  .hero { justify-content: flex-end; padding: 96px 0 56px; }
  .hi { font-size: 50px; }
  .fam-row { gap: 6px; flex-wrap: nowrap; }
  .fam-row a { width: 44px; height: 44px; border-radius: 13px; flex: none; }
  .fam-row a img { width: 30px; height: 30px; }
  .home .bg { --shade: linear-gradient(180deg, rgba(4,6,12,.2) 0%, rgba(4,6,12,.1) 30%, rgba(4,6,12,.78) 70%, rgba(4,6,12,.9) 100%); }
  .page-head { padding: 96px 0 24px; }
  .page-head p { font-size: 16px; }
  .jump { top: 64px; border-radius: 16px; width: auto; margin: 0 -16px 22px; border-left: 0; border-right: 0; border-radius: 0; }
  .proj { padding: 20px 16px; border-radius: 18px; margin: 0 -6px 16px; }
  .cmd code { font-size: 12px; }
  .burrow-list { grid-template-columns: minmax(0, 1fr); }
  .bwc { margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .bwc-top span:not(.on) { display: none; }
  .bwc-top { height: auto; flex-wrap: wrap; padding: 12px 16px; row-gap: 6px; }
  .bwc-top em { margin-left: 0; width: 100%; }
  .probe { flex-wrap: wrap; } .probe input { order: 3; flex-basis: 100%; } .probe select { flex: 1; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips button { flex: none; }
  .feed .r { grid-template-columns: minmax(0, 1fr) 96px; padding: 0 16px; }
  .feed .r .ip, .feed .r .ct { display: none; }
  .controls { gap: 8px; } .chap, .tot { display: none; }
  .pp, .fs { width: 38px; height: 38px; }
  .gh-top { padding: 18px; gap: 14px; }
  .gh-top img.av { width: 56px; height: 56px; }
  .repos { grid-template-columns: minmax(0, 1fr); }
  .log-stats { width: 100%; grid-template-columns: 1fr 1fr; }
  .board { grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; }
  .b-row { scroll-snap-align: start; grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 12px; }
  .b-ver { grid-column: 3; grid-row: 1; } .b-days { grid-column: 1 / -1; grid-row: 2; height: 22px; } .b-n { grid-column: 1 / -1; grid-row: 3; text-align: left; }
  .day { padding-left: 0; } .day::before, .day-h::before { display: none; } .day-h { margin-left: 0; }
  .ev a { grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 12px; }
  .ev-logo { grid-row: span 2; align-self: start; } .ev-time { grid-column: 2; flex-direction: row; gap: 10px; }
  .sheet { padding: 0; } .sheet-in { border-radius: 0; min-height: 100%; }
  .md { padding: 20px 18px 34px; }
  .sheet-head { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 12px 14px; }
  .sheet-acts .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .bg img { opacity: 1; transform: none; }
}
