@font-face {
  font-family: "Departure";
  src: url("../fonts/departure-mono.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-vf.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #0b0c0a;
  --raised: #141512;
  --raised-2: #1c1e19;
  --ink: #eeefe6;
  --muted: #a6a89c;
  --accent: #d8ff3e;
  --accent-hover: #e6ff80;
  --accent-ink: #10130a;
  --scene: #0a1512;
  --scene-back: #12302a;
  --scene-front: #081310;
  --teal: #2d6a57;

  --pixel: "Departure", ui-monospace, monospace; /* taste-skill-ignore: the brand's pixel face, requested */
  --text: "Bricolage", system-ui, sans-serif;

  --step-s: 15px;
  --step-b: 18px;
  --step-l: clamp(20px, 1.75vw, 26px);
  --step-h: clamp(40px, 4.4vw, 68px);
  --step-d2: clamp(64px, 7vw, 104px);

  --m: clamp(20px, 3.4vw, 48px);
  --gap-sec: clamp(96px, 12vw, 192px);
  --n: 4px;
  --notch: polygon(0 var(--n), var(--n) var(--n), var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)));
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-b)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; }
.skip:focus { left: 8px; }

.wrap { padding-inline: var(--m); max-width: 1680px; margin-inline: auto; }
.wrap-narrow { max-width: calc(720px + 2 * var(--m)); padding-inline: var(--m); margin-inline: auto; }

/* ---------- shared type ---------- */

.h2 {
  font: 400 var(--step-h)/0.95 var(--pixel);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 { font: 600 var(--step-l)/1.2 var(--text); letter-spacing: -0.01em; }
.lede { font-size: var(--step-l); line-height: 1.35; max-width: 34ch; text-wrap: pretty; }
.sec-note { color: var(--muted); max-width: 46ch; font-size: var(--step-b); }
.meta { font-size: var(--step-s); color: var(--muted); }
.meta .chip { margin-right: 8px; }
.meta .dot { margin-left: 14px; }

.sec-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 16px 48px; margin-bottom: clamp(32px, 4vw, 56px);
}

.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: var(--accent);
  transition: color .2s, text-underline-offset .2s var(--ease);
}
.text-link:hover { color: var(--accent); text-underline-offset: 8px; }
.more { display: inline-block; margin-top: 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink);
  font: 400 var(--step-b)/1 var(--pixel); text-decoration: none; letter-spacing: 0.01em;
  border: 0; cursor: pointer; clip-path: var(--notch);
  transition: background .15s, transform .15s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: var(--step-s); }
.btn-ghost { background: var(--raised-2); color: var(--ink); }
.btn-ghost:hover { background: #262922; }

.chip {
  display: inline-block; padding: 3px 10px; font-size: var(--step-s); font-weight: 600;
  background: var(--accent); color: var(--accent-ink); clip-path: var(--notch); --n: 2px;
}
.dot { display: inline-flex; align-items: center; gap: 7px; }
.dot::before { content: ""; width: 8px; height: 8px; background: var(--muted); }
.dot.is-live::before { background: var(--accent); }

/* ---------- top bar ---------- */

.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding: 20px var(--m); max-width: 1680px; margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand-j {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: var(--accent); color: var(--accent-ink);
  font: 400 var(--step-b)/1 var(--pixel); clip-path: var(--notch);
  transition: transform .3s var(--ease);
}
.brand:hover .brand-j { transform: rotate(-8deg); }
.brand-word { font: 400 var(--step-b)/1 var(--pixel); letter-spacing: 0.02em; }
.nav { display: flex; gap: 6px; }
.nav a {
  display: block; padding: 10px 16px; text-decoration: none; font-size: var(--step-s); font-weight: 500;
  color: var(--muted); clip-path: var(--notch); transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--raised-2); }
.nav a[aria-current="page"]::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px;
  background: var(--accent); vertical-align: middle; transform: translateY(-1px);
}
.topbar > .btn { justify-self: end; }
.menu-btn, .mobile-nav { display: none; }

/* ---------- wordmark ---------- */

.wordmark {
  font: 400 calc((min(100vw, 1680px) - 2 * var(--m)) / var(--n-ch, 8) / 0.64) / 0.8 var(--pixel);
  letter-spacing: -0.005em;
  margin-left: -0.04em;
  white-space: nowrap;
}
.wm-mask { display: inline-block; vertical-align: top; overflow: hidden; padding-top: 0.06em; }
.ch { display: inline-block; }
.js .ch { animation: rise .9s steps(9, end) both; animation-delay: calc(120ms + var(--i) * 70ms); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

.hero-word .wordmark { --n-ch: 8; }

/* ---------- hero scene ---------- */

.hero { padding-top: clamp(8px, 2vw, 24px); }
.hero-word { padding-inline: var(--m); max-width: 1680px; margin: 0 auto clamp(16px, 2vw, 28px); }

.scene {
  position: relative; overflow: hidden;
  margin-inline: var(--m); height: clamp(480px, 58vh, 640px);
  background: var(--scene); --n: 8px; clip-path: var(--notch);
  display: block; max-width: calc(1680px - 2 * var(--m));
}
@media (min-width: 1680px) { .scene { margin-inline: auto; } }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: 3; pointer-events: none; }
.sun {
  position: absolute; top: 9%; right: 24%; width: clamp(84px, 9vw, 130px); aspect-ratio: 1; z-index: 0;
  background: var(--accent);
  clip-path: polygon(25% 0, 75% 0, 75% 12.5%, 87.5% 12.5%, 87.5% 25%, 100% 25%, 100% 75%, 87.5% 75%, 87.5% 87.5%, 75% 87.5%, 75% 100%, 25% 100%, 25% 87.5%, 12.5% 87.5%, 12.5% 75%, 0 75%, 0 25%, 12.5% 25%, 12.5% 12.5%, 25% 12.5%);
}
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; z-index: 0; }
.sk-back { fill: var(--scene-back); }
.sk-front { fill: var(--scene-front); }
.sk-win { fill: #4f6e1c; }
.sk-win .hot { fill: var(--accent); }

.scene-copy {
  position: relative; z-index: 4; max-width: min(620px, 50%);
  padding: clamp(28px, 4vw, 56px) 0 96px clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 28px;
}
.statement { font: 500 clamp(28px, 3vw, 41px)/1.1 var(--text); letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; }
.statement-sub { font-size: var(--step-l); color: var(--muted); letter-spacing: -0.01em; }
.statement-sub::before { content: ""; display: block; width: 34px; height: 4px; background: var(--accent); margin-bottom: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.street { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; width: 100%; height: 56px; }
.figure {
  position: absolute; z-index: 2; right: clamp(20px, 6vw, 120px); bottom: 30px;
  height: min(88%, 600px); max-height: calc(100% - 58px); margin: 0;
  aspect-ratio: 232 / 537; cursor: pointer; touch-action: manipulation;
}
.figure-still, .figure-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.figure-still { object-fit: contain; }
.breathe { position: relative; height: 100%; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.figure-reflect {
  position: absolute; top: calc(100% - 1px); left: 0; width: 100%; height: 48px;
  object-fit: cover; object-position: bottom; transform: scaleY(-1); opacity: .13;
  -webkit-mask-image: linear-gradient(#000, transparent 82%);
  mask-image: linear-gradient(#000, transparent 82%);
}
.figure-shadow {
  position: absolute; z-index: -1; left: 50%; bottom: -2px; translate: -50% 0;
  width: 132%; height: 18px; background: #030b09; opacity: .9;
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
}
.figure-laptop, .figure-sleep { display: none; width: 100%; height: auto; image-rendering: pixelated; }
.figure.is-laptop, .figure.is-sleep { aspect-ratio: auto; height: auto; }
.figure.is-laptop { width: clamp(230px, 25vw, 400px); }
.figure.is-sleep { width: clamp(280px, 30vw, 460px); }
.figure.is-laptop .figure-laptop, .figure.is-sleep .figure-sleep { display: block; }
.figure.is-laptop .breathe, .figure.is-laptop .figure-reflect, .figure.is-sleep .breathe, .figure.is-sleep .figure-reflect { display: none; }
.now {
  position: absolute; z-index: 3; left: clamp(28px, 4vw, 56px); bottom: 24px;
  font-size: var(--step-s); color: var(--ink);
  background: var(--accent-ink); padding: 8px 14px; clip-path: var(--notch);
  display: block;
}
.now time { font-family: var(--pixel); color: var(--accent); }
.now-dot { display: inline-block; margin-right: 10px; vertical-align: 1px; width: 8px; height: 8px; background: var(--accent); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- stats ---------- */

.stats { margin-top: var(--gap-sec); }
.stats .sec-note { margin: 16px 0 40px; }
.dash { display: grid; grid-template-columns: 1fr 1fr 1fr 1.7fr; gap: 8px; }
.cell { background: var(--raised); padding: clamp(20px, 2.2vw, 32px); clip-path: var(--notch); --n: 6px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; transition: background .2s; }
.cell:hover { background: var(--raised-2); }
.cell-cap { font-size: var(--step-b); font-weight: 600; }
.cell-num { font: 400 var(--step-d2)/0.85 var(--pixel); letter-spacing: -0.03em; margin-top: auto; }
.cell-cap { margin-top: -4px; }
.cell-list { margin-top: auto; display: grid; gap: 6px; font: 400 var(--step-l)/1 var(--pixel); }
.cell-list li { display: flex; gap: 12px; align-items: center; }
.cell-list li::before { content: ""; width: 10px; height: 10px; background: var(--accent); }
.cell-sub { font-size: var(--step-s); color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bars { display: flex; align-items: end; gap: 10px; height: 100%; min-height: 170px; margin-top: auto; margin-bottom: 0; }
.bars li { flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: stretch; height: 100%; gap: 8px; }
.bar { display: block; height: calc(var(--h) * 120px + 8px); background: var(--accent); transform-origin: bottom; clip-path: var(--notch); --n: 3px; }
.js .dash:not(.in) .bar { transform: scaleY(0); }
.js .dash .bar { transition: transform .8s steps(6, end); }
.js .dash .bars li:nth-child(2) .bar { transition-delay: .1s; }
.js .dash .bars li:nth-child(3) .bar { transition-delay: .2s; }
.bar-n { order: -1; font: 400 var(--step-l)/1 var(--pixel); }
.bar-l { font-size: var(--step-s); color: var(--muted); }

/* ---------- projects (home) ---------- */

.projects { margin-top: var(--gap-sec); }
.pj-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.pj-link {
  display: grid; gap: 6px; padding: 20px 24px; text-decoration: none;
  clip-path: var(--notch); transition: background .2s;
}
.pj-link:hover, .pj-link:focus-visible, .pj-link[aria-current="true"] { background: var(--raised); }
.pj-name { font: 600 var(--step-l)/1.15 var(--text); letter-spacing: -0.015em; transition: color .2s, transform .25s var(--ease); }
.pj-link:hover .pj-name, .pj-link[aria-current="true"] .pj-name { color: var(--accent); transform: translateX(6px); }
.pj-meta { display: flex; gap: 16px; font-size: var(--step-s); color: var(--muted); }
.pj-desc { font-size: var(--step-b); color: var(--muted); max-width: 46ch; }
.pj-preview { position: sticky; top: 24px; display: grid; }
.pv { grid-area: 1 / 1; opacity: 0; transition: opacity .35s var(--ease); }
.pv.is-on { opacity: 1; }
.pv img, .pv-art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: var(--notch); --n: 8px; }
.pv-art { background: var(--raised); display: grid; place-items: center; }
.key-art { width: 56%; fill: var(--accent); }
.pv figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: var(--step-s); color: var(--muted); }
.pv figcaption span:first-child { color: var(--ink); font-weight: 600; }

/* ---------- lineup (blog lists) ---------- */

.logbook { margin-top: var(--gap-sec); background: var(--raised); padding-block: clamp(80px, 9vw, 144px); }
.lineup { display: grid; gap: 4px; }
.row a {
  display: grid; grid-template-columns: minmax(0, 1fr) 13em 7.5em; gap: 24px; align-items: baseline;
  padding: 14px 16px; margin-inline: -16px; text-decoration: none;
  font-size: var(--step-l); line-height: 1.25; clip-path: var(--notch);
  transition: background .2s;
}
.row a:hover { background: var(--raised-2); }
.logbook .row a:hover { background: var(--ground); }
.row-title { font-weight: 500; letter-spacing: -0.01em; transition: color .2s; }
.row a:hover .row-title { color: var(--accent); }
.row-kind { color: var(--muted); }
.row-date { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.lineup-thumbs .row a { grid-template-columns: 220px minmax(0, 1fr) 11em 7em; align-items: center; }
.lineup-thumbs .row-kind, .lineup-thumbs .row-date { font-size: var(--step-s); }
.row-thumb { width: 220px; aspect-ratio: 16 / 10; object-fit: cover; clip-path: var(--notch); transition: transform .3s var(--ease); }
.row a:hover .row-thumb { transform: scale(1.04); }
.row[hidden] { display: none; }

/* ---------- about ---------- */

.about { margin-top: var(--gap-sec); }
.about .h2 { margin-bottom: 40px; }
.about-text {
  columns: 2; column-gap: clamp(32px, 4vw, 64px);
  font-size: var(--step-l); line-height: 1.32; color: var(--muted);
  letter-spacing: -0.01em; hyphens: auto;
}
.about-text strong { color: var(--ink); font-weight: 600; }
.about-text mark { color: var(--accent-ink); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.m1 { background: var(--accent); }
.m2 { background: #9fd8c1; }
.m3 { background: var(--ink); }
.m-cta {
  background: var(--accent); color: var(--accent-ink); padding: 0 .15em; text-decoration: none; font-weight: 600;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background .15s;
}
.m-cta:hover { background: var(--accent-hover); }

/* ---------- footer ---------- */

.footer {
  margin-top: var(--gap-sec); background: var(--accent); color: var(--accent-ink);
  min-height: 78svh; display: flex; flex-direction: column; padding: 40px var(--m) 28px;
}
.footer a { color: inherit; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; font-size: var(--step-s); max-width: 1680px; width: 100%; margin-inline: auto; }
.footer-top p { max-width: 32ch; }
.footer-up { font-weight: 600; }
.footer-main { margin-top: auto; padding-block: 64px 40px; max-width: 1680px; width: 100%; margin-inline: auto; }
.footer-h { font: 400 var(--step-l)/1 var(--pixel); margin-bottom: 32px; position: relative; z-index: 1; }
.footer-mail {
  display: block; text-decoration: none;
  font: 400 calc((min(100vw, 1680px) - 2 * var(--m)) / 13 / 0.64)/1.08 var(--pixel);
  letter-spacing: -0.01em; margin-left: -0.04em;
}
.footer-mail span { display: table; transition: transform .3s var(--ease); }
.footer-mail:hover span:last-child { transform: translateX(0.12em); }
.footer-meta { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px 32px; font-size: var(--step-s); align-items: baseline; max-width: 1680px; width: 100%; margin-inline: auto; }
.footer-meta ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-meta p:last-child { text-align: right; }

/* ---------- sub page heads ---------- */

.page-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end;
  gap: 24px 48px; padding-top: clamp(40px, 7vw, 112px); padding-bottom: clamp(56px, 6vw, 96px);
}
.wordmark-page { font-size: clamp(64px, 12vw, 200px); }
.page-head > div { grid-column: 1 / -1; }
.page-head .lede { grid-column: 2; max-width: 34ch; }

/* ---------- blog ---------- */

.feature-link {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 56px);
  align-items: center; text-decoration: none;
}
.feature-link img { width: 100%; clip-path: var(--notch); --n: 8px; transition: transform .5s var(--ease); }
.feature-link:hover img { transform: scale(1.015); }
.feature-text { display: grid; gap: 20px; justify-items: start; }
.feature-h { font: 700 clamp(32px, 3.4vw, 48px)/1.04 var(--text); letter-spacing: -0.03em; text-wrap: balance; }
.feature-link:hover .feature-h { color: var(--accent); }
.feature-text > p:not(.meta) { color: var(--muted); font-size: var(--step-l); line-height: 1.4; max-width: 34ch; }
.archive { margin-top: var(--gap-sec); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: 500 var(--step-s)/1 var(--text); color: var(--ink); background: var(--raised); border: 0;
  padding: 12px 16px; min-height: 44px; cursor: pointer; clip-path: var(--notch); transition: background .15s, color .15s;
}
.filter span { color: var(--muted); margin-left: 4px; }
.filter:hover { background: var(--raised-2); }
.filter[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.filter[aria-pressed="true"] span { color: var(--accent-ink); }

/* ---------- post ---------- */

.post-head { max-width: calc(1280px + 2 * var(--m)); padding-top: clamp(32px, 5vw, 80px); display: grid; gap: 20px; justify-items: start; }
.back { font-size: var(--step-s); color: var(--muted); text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.back::before { content: "<"; font-family: var(--pixel); color: var(--accent); transition: transform .2s var(--ease); }
.back:hover { color: var(--ink); }
.back:hover::before { transform: translateX(-4px); }
.post-h { font: 700 clamp(36px, 4.6vw, 68px)/1.0 var(--text); letter-spacing: -0.035em; text-wrap: balance; max-width: 22ch; }
.deck { font-size: var(--step-l); color: var(--muted); line-height: 1.4; max-width: 44ch; }
.post-cover { margin-top: clamp(40px, 5vw, 72px); max-width: calc(1280px + 2 * var(--m)); }
.post-cover img { width: 100%; clip-path: var(--notch); --n: 8px; }
.prose { margin-top: clamp(48px, 5vw, 80px); font-size: 19px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font: 700 28px/1.2 var(--text); letter-spacing: -0.02em; margin-top: 2em; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose code { font-size: .9em; background: var(--raised-2); padding: .1em .35em; }
.prose strong { color: var(--ink); }
.author { margin-top: 64px; }
.author { display: flex; gap: 20px; align-items: center; background: var(--raised); padding: 20px var(--m); clip-path: var(--notch); max-width: 720px; }
.author img { background: var(--accent); padding: 3px; width: 64px; height: 64px; flex: none; }
.author p { font-size: var(--step-s); color: var(--muted); }
.author strong { color: var(--ink); }
.more-posts { margin-top: var(--gap-sec); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.card { display: grid; gap: 12px; align-content: start; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: var(--notch); --n: 6px; transition: transform .4s var(--ease); }
.card:hover img { transform: translateY(-4px); }
.card-t { font: 600 var(--step-l)/1.2 var(--text); letter-spacing: -0.015em; transition: color .2s; }
.card:hover .card-t { color: var(--accent); }
.card-m { font-size: var(--step-s); color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: var(--gap-sec); }
.pager-a { display: grid; gap: 10px; background: var(--raised); padding: clamp(24px, 3vw, 40px); text-decoration: none; clip-path: var(--notch); transition: background .2s; }
.pager-a:hover { background: var(--raised-2); }
.pager-next { text-align: right; }
.pager-l { font-size: var(--step-s); color: var(--muted); }
.pager-t { font: 600 var(--step-l)/1.2 var(--text); letter-spacing: -0.01em; transition: color .2s; }
.pager-a:hover .pager-t { color: var(--accent); }

/* ---------- projects page ---------- */

.group + .group { margin-top: var(--gap-sec); }
.proj { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.proj + .proj { margin-top: clamp(56px, 7vw, 112px); }
.proj:nth-of-type(even) .proj-media { order: 2; }
.proj-media { display: block; overflow: hidden; clip-path: var(--notch); --n: 8px; }
.proj-media img, .proj-media .pv-art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.proj-media:hover img { transform: scale(1.03); }
.proj-text { display: grid; gap: 20px; justify-items: start; }
.proj-h { font: 400 clamp(36px, 4vw, 64px)/0.95 var(--pixel); letter-spacing: -0.02em; }
.proj-desc { font-size: var(--step-l); line-height: 1.4; max-width: 30ch; }

/* ---------- contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.contact-face { width: 168px; background: var(--accent); padding: 6px; clip-path: var(--notch); }
.contact-face img { width: 100%; aspect-ratio: 1; }
.contact-mail { display: grid; gap: 28px; justify-items: start; }
.big-mail { font: 700 clamp(28px, 3.3vw, 54px)/1.05 var(--text); letter-spacing: -0.03em; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.big-mail:hover { color: var(--accent); }
.contact-mail .h3 { margin-top: 24px; }
.tips { display: grid; gap: 12px; }
.tips li { display: flex; gap: 14px; }
.tips li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .6em; background: var(--accent); }
.composer { background: var(--raised); padding: clamp(24px, 3.5vw, 48px); clip-path: var(--notch); --n: 8px; display: grid; gap: 28px; }
.composer .h2 { font-size: clamp(32px, 3vw, 48px); }
.composer fieldset { border: 0; padding: 0; margin: 0; }
.composer legend { font-weight: 600; margin-bottom: 14px; padding: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span { display: inline-block; padding: 11px 16px; background: var(--raised-2); cursor: pointer; clip-path: var(--notch); font-size: var(--step-s); transition: background .15s, color .15s; }
.topic span:hover { background: #262922; }
.topic input:checked + span { background: var(--accent); color: var(--accent-ink); }
.topic input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.field { display: grid; gap: 10px; font-weight: 600; }
.field textarea, .field input {
  font: 400 18px/1.5 var(--text); color: var(--ink); background: var(--ground);
  border: 2px solid var(--raised-2); padding: 14px 16px; width: 100%; resize: vertical;
  transition: border-color .15s;
}
.field textarea:focus, .field input:focus { outline: none; border-color: var(--accent); }
.composer .btn { justify-self: start; }
.form-note { font-size: var(--step-s); color: var(--muted); }

.nf { min-height: 40vh; }

/* ---------- reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .scene-copy, .js .figure, .js .now { animation: fadeUp .8s var(--ease) both .7s; }
.js .figure { animation-delay: .85s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }

  .figure-canvas { display: none; }
  .js .dash:not(.in) .bar { transform: none; }
}

/* ---------- tablet ---------- */

@media (max-width: 1080px) {
  .dash { grid-template-columns: 1fr 1fr; }
  .cell-chart { grid-column: span 2; }
  .row a { grid-template-columns: minmax(0, 1fr) 7.5em; }
  .row-kind { display: none; }
  .lineup-thumbs .row a { grid-template-columns: 120px minmax(0, 1fr) 7em; }
  .row-thumb { width: 120px; }
  .contact { grid-template-columns: 1fr; }
  .page-head { grid-template-columns: 1fr; }
  .page-head .lede { grid-column: 1; }
}

/* ---------- phone ---------- */

@media (max-width: 760px) {
  :root { --step-b: 17px; --step-l: 21px; }
  .topbar { grid-template-columns: 1fr auto; padding-block: 14px; }
  .topbar > nav, .topbar > .btn { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    background: var(--raised-2); color: var(--ink); border: 0; font: 400 var(--step-s)/1 var(--pixel);
    clip-path: var(--notch); cursor: pointer;
  }
  .menu-btn[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); }
  .mobile-nav:not([hidden]) { display: block; grid-column: 1 / -1; }
  .mobile-nav ul { display: grid; gap: 4px; padding-top: 8px; }
  .mobile-nav a { display: block; padding: 14px 16px; background: var(--raised); text-decoration: none; font: 400 24px/1 var(--pixel); clip-path: var(--notch); }
  .mobile-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

  .scene { height: auto; --n: 6px; }
  .scene-copy { max-width: 100%; padding: 28px 22px 264px; }
  .sun { width: 54px; right: 32%; top: 56%; }
  .figure { height: 236px; right: 10px; bottom: 22px; }
  .figure.is-laptop { height: auto; width: 168px; }
  .figure.is-sleep { height: auto; width: 220px; }
  .street { height: 44px; }
  .skyline { height: 46%; }
  .now { position: relative; left: auto; bottom: auto; margin: 0; width: 100%; clip-path: none; justify-content: center; }

  .dash { grid-template-columns: 1fr 1fr; }
  .cell { min-height: 0; }
  .dash .cell:nth-child(3) { grid-column: span 2; }
  .cell-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .cell-num { font-size: 64px; }
  .pj-grid { grid-template-columns: 1fr; }
  .pj-preview { position: relative; top: 0; order: -1; }
  .pj-link { padding: 16px; margin-inline: -16px; }

  .row a, .lineup-thumbs .row a { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .row-kind { display: inline; }
  .row-kind, .row-date { font-size: var(--step-s); text-align: left; }
  .lineup-thumbs .row-thumb { width: 100%; }
  .lineup .row-date { order: 3; }

  .about-text { columns: 1; line-height: 1.35; hyphens: manual; }

  .footer { min-height: 70svh; }
  .footer-top, .footer-meta { grid-template-columns: 1fr; }
  .footer-meta p:last-child { text-align: left; }

  .feature-link, .proj { grid-template-columns: 1fr; }
  .proj:nth-of-type(even) .proj-media { order: 0; }
  .pager, .cards { grid-template-columns: 1fr; }
  .post-h { font-size: 26px; line-height: 1.08; }
  .pager-next { text-align: left; }
  .prose { font-size: 18px; }
}

/* ---------- post effects ---------- */
.post.fx-accent .prose a { text-decoration-color: var(--post-accent, var(--accent)); }
.post.fx-accent .prose a:hover { color: var(--post-accent, var(--accent)); }
.post.fx-accent .meta { color: var(--post-accent, var(--accent)); }
.post.fx-accent .author strong { color: var(--post-accent, var(--accent)); }
.post.fx-accent .post-cover img { outline: 3px solid var(--post-accent, var(--accent)); outline-offset: -3px; }

/* stamp: outlined title */
.fx-t-stamp .post-h { -webkit-text-stroke: 1.5px var(--post-accent, var(--accent)); color: transparent; text-shadow: 5px 5px 0 rgba(216, 255, 62, .12); }

/* glow: the title breathes */
.fx-t-glow .post-h { text-shadow: 0 0 8px rgba(216, 255, 62, .40), 0 0 30px rgba(216, 255, 62, .22); }
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .fx-t-glow .post-h {
    text-shadow: 0 0 8px color-mix(in srgb, var(--post-accent, var(--accent)) 60%, transparent),
      0 0 34px color-mix(in srgb, var(--post-accent, var(--accent)) 30%, transparent);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .fx-t-glow .post-h { animation: fx-glow 3.6s ease-in-out infinite; }
  @keyframes fx-glow {
    0%, 100% { opacity: .92; }
    50% { opacity: 1; }
  }
}

/* shimmer: a highlight sweeps the title */
.fx-t-shimmer .post-h {
  width: fit-content;
  background-image: linear-gradient(100deg, var(--ink) 0%, var(--ink) 44%, var(--post-accent, var(--accent)) 50%, var(--ink) 56%, var(--ink) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .fx-t-shimmer .post-h { color: var(--ink); background-image: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .fx-t-shimmer .post-h { animation: fx-shimmer 3.5s linear infinite; }
  @keyframes fx-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
}

/* glitch: RGB split, slice tears, bursts */
.fx-t-glitch .post-h { position: relative; text-shadow: 3px 0 rgba(255, 92, 138, .65), -3px 0 rgba(88, 214, 255, .55); }
@media (prefers-reduced-motion: no-preference) {
  .fx-t-glitch .post-h { animation: fx-glitch 3.2s steps(1, end) infinite; }
  @keyframes fx-glitch {
    0%, 84%, 100% { transform: translate(0, 0); clip-path: none; }
    85% { transform: translate(-3px, 1px); }
    87% { transform: translate(3px, -2px); clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%, 0 55%, 100% 55%, 100% 100%, 0 100%); }
    89% { transform: translate(2px, 1px); clip-path: polygon(0 21%, 100% 21%, 100% 46%, 0 46%, 0 72%, 100% 72%, 100% 100%, 0 100%); }
    91% { transform: translate(-2px, 0); clip-path: none; }
  }
}

/* type-in: the title wipes in */
@media (prefers-reduced-motion: no-preference) {
  .fx-t-type .post-h { animation: fx-type 1.4s steps(30, end) both; }
  @keyframes fx-type { from { clip-path: inset(0 100% 0 -2%); } to { clip-path: inset(0 -2% 0 -2%); } }
}

/* body: typewriter (per char) and stream (per word), split by site.js */
.fx-piece { opacity: 0; }
.fx-on .fx-piece { animation: fx-in .18s both; animation-delay: calc(var(--i) * var(--fx-step, 12ms)); }
.fx-b-typewriter { --fx-step: 7ms; }
.fx-b-stream { --fx-step: 26ms; }
.fx-b-typewriter .fx-piece { animation-name: fx-dot; }
@keyframes fx-dot { from { opacity: 0; } to { opacity: 1; } }
.fx-b-stream .fx-piece { animation-name: fx-drift; }
@keyframes fx-drift {
  from { opacity: 0; transform: translateY(7px); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* atmosphere overlays */
.post.fx-a-scanlines, .post.fx-a-grain, .post.fx-a-dither, .post.fx-a-vignette { position: relative; }
.post.fx-a-scanlines::after, .post.fx-a-grain::after, .post.fx-a-dither::after, .post.fx-a-vignette::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
}
.post.fx-a-scanlines::after { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .26) 0 1px, transparent 1px 3px); }
.post.fx-a-grain::after { opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
.post.fx-a-dither::after { background-image: radial-gradient(rgba(216, 255, 62, .10) 1px, transparent 1px); background-size: 4px 4px; }
.post.fx-a-vignette::after { background: radial-gradient(120% 85% at 50% 38%, transparent 55%, rgba(0, 0, 0, .5)); }

.card-art { display: block; aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, var(--raised) 0 12px, #10150f 12px 24px); }
