@font-face {
  font-family: "Amsterdam Four";
  src: url("/fonts/amsterdam-four.woff2") format("woff2"), url("/fonts/amsterdam-four.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0A1211;
  --ink-2: #0F1B19;
  --panel: #111D1B;
  --panel-hi: #162825;
  --line: #233834;
  --line-hi: #3A4F4A;
  --paper: #e8e2d7;
  --copy: #cdc8bd;
  --dim: #9b968c;
  --yellow: #ffbd2e;
  --orange: #f47721;
  --red: #d94727;
  --blue: #7299b8;
  --mint: #83a98c;
  --unit: 5px;
  --max: 1440px;
  --sans: "Inter", "Inter FB", "Tiro Devanagari Hindi", sans-serif;
  --serif: "Instrument Serif", "Instrument Serif FB", "Tiro Devanagari Hindi", Georgia, serif;
  --mono: "DM Mono", "DM Mono FB", monospace;
  --display: var(--serif);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--ink); }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { position: fixed; inset: 0; z-index: -1; content: ""; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px); background-size: 20px 20px; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { color: var(--ink); background: var(--yellow); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 99; padding: 10px; background: var(--paper); color: var(--ink); font: 12px var(--mono); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; min-height: 64px; max-width: var(--max); margin: auto; border: 1px solid var(--line); border-top: 0; background: rgba(15,27,25,.94); backdrop-filter: blur(12px); }
.wordmark, .topbar-meta, .menu-button { display: flex; align-items: center; gap: 12px; padding: 0 18px; font: 500 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.pixel-logo { display: grid; grid-template-columns: repeat(3, 5px); gap: 2px; width: 19px; }
.pixel-logo i { width: 5px; height: 5px; background: var(--yellow); }
.pixel-logo i:nth-child(2), .pixel-logo i:nth-child(4), .pixel-logo i:nth-child(6), .pixel-logo i:nth-child(8) { background: var(--orange); }
.pixel-logo i:nth-child(1), .pixel-logo i:nth-child(9) { opacity: 0; }
.nav { display: flex; border-inline: 1px solid var(--line); }
.nav a { display: grid; min-width: 92px; place-items: center; padding: 0 15px; border-right: 1px solid var(--line); color: var(--copy); font: 11px var(--mono); text-transform: uppercase; transition: background .15s, color .15s; }
.nav a:last-child { border: 0; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--paper); }
.topbar-meta { justify-content: flex-end; color: var(--dim); }
.status-dot { width: 7px; height: 7px; background: var(--mint); box-shadow: 0 0 0 3px rgba(131,169,140,.12); animation: blink 2.4s steps(2) infinite; }
.menu-button { display: none; border: 0; background: none; min-width: 44px; min-height: 44px; justify-content: center; }

.hero { max-width: var(--max); min-height: calc(100vh - 64px); margin: auto; border-inline: 1px solid var(--line); }
.hero-kicker { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); color: var(--dim); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero-kicker span { padding: 12px 16px; border-right: 1px solid var(--line); }
.hero-kicker span:last-child { border: 0; text-align: right; }
.hero-title { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: end; gap: 40px; padding: clamp(56px, 9vw, 126px) clamp(22px, 6vw, 88px) 50px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: .86; }
[class*="niche-"] h1, [class*="niche-"] h2 { font-family: var(--display); }
h1 { font-size: clamp(4.3rem, 10.5vw, 10rem); }
h1 em, h2 em { color: var(--yellow); font-weight: 400; }
.hero-title p { padding-bottom: .7em; color: var(--copy); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; }

.pixel-world { position: relative; height: clamp(260px, 34vw, 480px); overflow: hidden; border-block: 1px solid var(--line); background: #171a1b; image-rendering: pixelated; }
.pixel-world::before { position: absolute; inset: 0; content: ""; background-image: linear-gradient(rgba(114,153,184,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(114,153,184,.06) 1px, transparent 1px); background-size: 10px 10px; }
.nebula { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(44px); opacity: .55; }
.nebula-a { top: -25%; left: -15%; width: 65%; aspect-ratio: 1; background: radial-gradient(circle, rgba(114,153,184,.4), transparent 65%); animation: drift-a 26s ease-in-out infinite alternate; }
.nebula-b { right: -18%; bottom: -35%; width: 75%; aspect-ratio: 1; background: radial-gradient(circle, rgba(244,119,33,.24), transparent 65%); animation: drift-b 32s ease-in-out infinite alternate; }

.stars { position: absolute; inset: 0; }
.stars i { position: absolute; width: 3px; height: 3px; background: var(--blue); opacity: .18; animation: twinkle 4s steps(4) infinite; }
.stars i:nth-child(3n) { background: #d9d4c9; }
.stars i:nth-child(5n) { background: rgba(255,189,46,.85); }
.stars i.bright { width: 4px; height: 4px; background: var(--paper); box-shadow: 0 0 6px rgba(232,226,215,.55); animation-duration: 3s; }
.stars i:nth-child(1) { top: 12%; left: 6%; } .stars i:nth-child(2) { top: 8%; left: 18%; animation-delay: .6s; }
.stars i:nth-child(3) { top: 20%; left: 32%; animation-delay: 1.4s; } .stars i:nth-child(4) { top: 9%; left: 46%; animation-delay: 2s; }
.stars i:nth-child(5) { top: 17%; left: 60%; animation-delay: .9s; } .stars i:nth-child(6) { top: 7%; left: 74%; animation-delay: 2.6s; }
.stars i:nth-child(7) { top: 24%; left: 86%; animation-delay: 1.1s; } .stars i:nth-child(8) { top: 33%; left: 92%; animation-delay: 3s; }
.stars i:nth-child(9) { top: 40%; left: 4%; animation-delay: 1.8s; } .stars i:nth-child(10) { top: 47%; left: 14%; animation-delay: .3s; }
.stars i:nth-child(11) { top: 55%; left: 27%; animation-delay: 2.4s; } .stars i:nth-child(12) { top: 42%; left: 38%; animation-delay: 1s; }
.stars i:nth-child(13) { top: 58%; left: 48%; animation-delay: 3.2s; } .stars i:nth-child(14) { top: 49%; left: 62%; animation-delay: .7s; }
.stars i:nth-child(15) { top: 60%; left: 72%; animation-delay: 2.2s; } .stars i:nth-child(16) { top: 44%; left: 84%; animation-delay: 1.6s; }
.stars i:nth-child(17) { top: 66%; left: 95%; animation-delay: .4s; } .stars i:nth-child(18) { top: 72%; left: 9%; animation-delay: 2.8s; }
.stars i:nth-child(19) { top: 78%; left: 22%; animation-delay: 1.2s; } .stars i:nth-child(20) { top: 70%; left: 36%; animation-delay: 3.4s; }
.stars i:nth-child(21) { top: 82%; left: 55%; animation-delay: .5s; } .stars i:nth-child(22) { top: 76%; left: 67%; animation-delay: 2s; }
.stars i:nth-child(23) { top: 85%; left: 81%; animation-delay: 1.5s; } .stars i:nth-child(24) { top: 90%; left: 48%; animation-delay: 2.7s; }
.stars i:nth-child(25) { top: 5%; left: 30%; animation-delay: 3.6s; } .stars i:nth-child(26) { top: 30%; left: 10%; animation-delay: .2s; }
.stars i:nth-child(27) { top: 35%; left: 70%; animation-delay: 2.9s; } .stars i:nth-child(28) { top: 64%; left: 18%; animation-delay: 1.3s; }
.stars i:nth-child(29) { top: 88%; left: 8%; animation-delay: 3.8s; } .stars i:nth-child(30) { top: 26%; left: 94%; animation-delay: .8s; }
.stars i:nth-child(31) { top: 15%; left: 12%; animation-delay: 2.1s; } .stars i:nth-child(32) { top: 68%; left: 88%; animation-delay: 1.7s; }
.stars i:nth-child(33) { top: 52%; left: 92%; animation-delay: 3.1s; } .stars i:nth-child(34) { top: 6%; left: 90%; animation-delay: .1s; }
.stars i:nth-child(35) { top: 92%; left: 60%; animation-delay: 2.5s; } .stars i:nth-child(36) { top: 38%; left: 54%; animation-delay: 1.9s; }
.stars i:nth-child(37) { top: 10%; left: 64%; animation-delay: 3.3s; } .stars i:nth-child(38) { top: 80%; left: 38%; animation-delay: .6s; }
.stars i:nth-child(39) { top: 28%; left: 52%; animation-delay: 2.3s; } .stars i:nth-child(40) { top: 56%; left: 6%; animation-delay: 3.9s; }

.scanline { position: absolute; right: 6%; left: 6%; top: -4%; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(114,153,184,.55), transparent); transition: top .05s linear, opacity .2s; }

.constellation { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; shape-rendering: crispEdges; animation: field-breathe 9s ease-in-out 3.5s infinite; }
.constellation .line { stroke: rgba(114,153,184,.55); stroke-width: 2; stroke-linecap: square; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 3.5s cubic-bezier(.4,0,.2,1) forwards; }
.constellation .l-2 { animation-delay: .35s; } .constellation .l-3 { animation-delay: .7s; }
.constellation .l-4 { animation-delay: 1.05s; } .constellation .l-5 { animation-delay: 1.4s; }
.constellation .ghost { stroke: var(--blue); stroke-width: 2; stroke-linecap: square; stroke-dasharray: 5 13; opacity: 0; animation: ghost-evolve 12s ease-in-out infinite; }
.constellation .node { fill: var(--yellow); animation: node-pulse 3.2s ease-in-out infinite, node-glow 3.2s ease-in-out infinite; }
.constellation .n-1 { animation-delay: 1.6s, 1.6s; } .constellation .n-2 { animation-delay: 1.95s, 1.95s; }
.constellation .n-3 { animation-delay: 2.3s, 2.3s; } .constellation .n-4 { animation-delay: 2.65s, 2.65s; }
.constellation .n-5 { animation-delay: 3s, 3s; } .constellation .dot { fill: var(--orange); animation-delay: 3.35s, 3.35s; }
.constellation .traveller { fill: var(--yellow); offset-path: path('M 240 44 L 312 82 L 336 152 L 244 206 L 192 262 L 196 292'); offset-rotate: 0deg; animation: travel 7s linear infinite; }
.constellation .t-2 { fill: var(--orange); animation-delay: 3.5s; }
.gen-cluster { shape-rendering: crispEdges; }
.gen-line { stroke: rgba(114,153,184,.6); stroke-width: 2; stroke-linecap: square; }
.gen-link { stroke: rgba(114,153,184,.35); stroke-width: 1.5; stroke-linecap: square; stroke-dasharray: 3 9; }
.gen-node { fill: var(--yellow); animation: node-pulse 3.2s ease-in-out infinite, node-glow 3.2s ease-in-out infinite; }
.gen-node.warm { fill: var(--orange); }
.shooting-star { position: absolute; z-index: 3; top: 12%; left: 2%; width: 64px; height: 3px; opacity: 0; background: linear-gradient(90deg, rgba(232,226,215,0), var(--paper)); animation: shoot 9s linear infinite; animation-delay: 2.5s; }
.shooting-star::after { position: absolute; right: -4px; top: -1px; width: 5px; height: 5px; content: ""; background: var(--yellow); box-shadow: 0 0 6px rgba(255,189,46,.8); }
.world-label, .world-readout { position: absolute; z-index: 4; font: 9px var(--mono); letter-spacing: .08em; color: var(--blue); }
.label-a { top: 20px; left: 20px; } .label-b { right: 20px; bottom: 18px; }
.world-readout { right: 20px; top: 20px; display: grid; grid-template-columns: repeat(3, auto); gap: 20px; }
.hero-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.hero-foot p { max-width: 600px; color: var(--dim); font: 12px/1.5 var(--mono); }
.text-link { display: inline-flex; align-items: center; gap: 16px; width: fit-content; padding: 12px 16px; border: 1px solid transparent; color: var(--copy); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; transition: background .18s, color .18s, border-color .18s; }
.text-link:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.text-link span { color: var(--yellow); transition: transform .15s, color .18s; }
.text-link:hover span { color: var(--red); transform: translate(3px, -3px); }

.grid-section, .work-section, .notes-section { max-width: var(--max); margin: auto; border-inline: 1px solid var(--line); }
.about { display: grid; grid-template-columns: 190px 1.25fr 1fr 240px; border-bottom: 1px solid var(--line); }
.about > * { min-height: 330px; padding: 34px; border-right: 1px solid var(--line); }
.about > *:last-child { border: 0; }
.section-index { color: var(--yellow); font: 12px var(--mono); }
.section-index span { color: var(--dim); }
.about-statement { display: flex; align-items: center; }
.about-statement p { font: clamp(2rem, 3.1vw, 3.5rem)/1.05 var(--serif); }
.about-detail { display: flex; flex-direction: column; justify-content: center; gap: 30px; color: var(--copy); font-size: 15px; line-height: 1.7; }
.dial-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--ink-2); }
.dial-marks { color: var(--dim); font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.section-header { display: grid; grid-template-columns: 190px 1fr 340px; gap: 34px; align-items: end; padding: 90px 34px 44px; border-bottom: 1px solid var(--line); }
.section-header h2 { font-size: clamp(4rem, 8vw, 8rem); }
.section-header > p { color: var(--dim); font: 13px/1.6 var(--mono); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); }
.project { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); transition: background .2s; }
.project:nth-child(2n) { border-right: 0; }
.project:hover { background: var(--panel); }
.project-top { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--dim); font: 9px var(--mono); letter-spacing: .1em; }
.project-art { position: relative; display: grid; height: clamp(280px, 36vw, 500px); place-items: center; overflow: hidden; background: #161616; }
.project-featured .project-art { background: #161b1e; }
.radio-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(114,153,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(114,153,184,.08) 1px, transparent 1px); background-size: 16px 16px; }
.radio-node { z-index: 2; width: 18px; height: 18px; background: var(--yellow); box-shadow: 0 0 0 10px rgba(255,189,46,.1); }
.radio-wave { position: absolute; border: 3px solid var(--orange); border-radius: 50%; animation: radio-wave 3s ease-out infinite; }
.wave-a { width: 120px; height: 120px; } .wave-b { width: 260px; height: 260px; animation-delay: 1.2s; }
.chip { display: grid; grid-template-columns: repeat(3, 32px); grid-template-rows: repeat(3, 32px); gap: 5px; transform: rotate(45deg); animation: chip-drift 6s ease-in-out infinite; }
.chip i { background: var(--line-hi); animation: chip-blink 2.2s steps(2) infinite; }
.chip i:nth-child(1) { animation-delay: 0s; } .chip i:nth-child(2) { animation-delay: .2s; }
.chip i:nth-child(3) { animation-delay: .4s; } .chip i:nth-child(4) { animation-delay: .6s; }
.chip i:nth-child(7) { animation-delay: .8s; } .chip i:nth-child(8) { animation-delay: 1s; }
.chip i:nth-child(9) { animation-delay: 1.2s; }
.chip b { grid-area: 2/2; display: grid; place-items: center; background: var(--orange); color: var(--ink); font: 8px var(--mono); text-align: center; transform: rotate(-45deg); animation: chip-pulse 1.6s ease-in-out infinite; }
@keyframes chip-blink { 0%, 90%, 100% { background: var(--line-hi); } 92%, 96% { background: var(--yellow); box-shadow: 0 0 6px rgba(255,189,46,.6); } }
@keyframes chip-pulse { 0%, 100% { filter: brightness(1); box-shadow: 0 0 0 rgba(244,119,33,0); } 50% { filter: brightness(1.2); box-shadow: 0 0 10px rgba(244,119,33,.45); } }
@keyframes chip-drift { 0%, 100% { transform: rotate(45deg) scale(1); filter: drop-shadow(0 0 0 rgba(244,119,33,0)); } 50% { transform: rotate(45deg) scale(1.04); filter: drop-shadow(0 0 16px rgba(244,119,33,.4)); } }
.pixel-flame { display: grid; grid-template-columns: repeat(4, 28px); grid-template-rows: repeat(3, 28px); gap: 3px; transform: rotate(45deg); animation: flame-breathe 2.6s ease-in-out infinite; }
.pixel-flame i { background: var(--orange); animation: flame-flicker 1.2s steps(2) infinite; transform-origin: 50% 100%; }
.pixel-flame i:nth-child(1), .pixel-flame i:nth-child(4), .pixel-flame i:nth-child(9), .pixel-flame i:nth-child(12) { opacity: 0; animation: none; }
.pixel-flame i:nth-child(2) { animation-delay: 0s; } .pixel-flame i:nth-child(3) { animation-delay: .15s; }
.pixel-flame i:nth-child(5) { animation-delay: .08s; } .pixel-flame i:nth-child(6), .pixel-flame i:nth-child(7), .pixel-flame i:nth-child(10) { background: var(--yellow); animation-delay: .22s; }
.pixel-flame i:nth-child(8) { animation-delay: .11s; } .pixel-flame i:nth-child(11) { animation-delay: .18s; }
@keyframes flame-flicker { 0%, 100% { transform: scaleY(1) translateY(0); filter: brightness(1); } 25% { transform: scaleY(1.12) translateY(-2px); filter: brightness(1.25); } 50% { transform: scaleY(.96) translateY(1px); filter: brightness(.95); } 75% { transform: scaleY(1.06) translateY(-1px); filter: brightness(1.15); } }
@keyframes flame-breathe { 0%, 100% { filter: drop-shadow(0 0 4px rgba(244,119,33,.18)); } 50% { filter: drop-shadow(0 0 18px rgba(255,189,46,.45)); } }
.project-copy { display: grid; grid-template-columns: 55px 1fr 30px; gap: 15px; min-height: 145px; padding: 22px 18px; border-top: 1px solid var(--line); }
.project-no { color: var(--dim); font: 10px var(--mono); }
.project-copy h3 { margin-bottom: 8px; font: 2rem var(--serif); }
.project-copy p { max-width: 500px; color: var(--copy); font-size: 13px; line-height: 1.55; }
.project-arrow { color: var(--yellow); font-family: var(--mono); transition: transform .15s; }
.project:hover .project-arrow { transform: translate(3px, -3px); }

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--yellow); color: var(--ink); }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 26px; padding: 13px 0; font: 500 11px var(--mono); animation: ticker 25s linear infinite; }
.ticker-track i { width: 6px; height: 6px; background: var(--red); }
.notes-section .section-header { grid-template-columns: 190px 1fr; }
.notes-list { border-top: 0; }
.note { display: grid; grid-template-columns: 150px 1fr 210px 30px; gap: 20px; align-items: center; min-height: 112px; padding: 18px 34px; border-bottom: 1px solid var(--line); transition: background .18s, padding .18s; }
.note:hover { padding-left: 42px; background: var(--panel); }
.note time, .note span { color: var(--dim); font: 10px var(--mono); text-transform: uppercase; }
.note h3, .note h2 { font: clamp(1.5rem, 3vw, 2.5rem) var(--serif); }
.note b { color: var(--yellow); font: 400 14px var(--mono); }
.note-muted { opacity: .45; }

.contact-section { position: relative; display: grid; min-height: 680px; place-content: center; overflow: hidden; padding: 80px 24px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: center; }
.contact-section > p { margin-bottom: 30px; font: 11px var(--mono); text-transform: uppercase; }
.contact-section h2 { position: relative; z-index: 2; font-size: clamp(6rem, 16vw, 15rem); line-height: .72; }
.contact-section h2 em { color: var(--red); }
.contact-button { position: relative; z-index: 2; display: flex; min-width: 290px; justify-content: space-between; margin: 60px auto 0; padding: 16px 18px; border: 1px solid var(--ink); font: 11px var(--mono); text-transform: uppercase; transition: color .18s, background .18s; }
.contact-button:hover { color: var(--paper); background: var(--ink); }
.contact-pixels { position: absolute; inset: 0; }
.contact-pixels i { position: absolute; width: clamp(25px, 5vw, 70px); aspect-ratio: 1; background: var(--yellow); }
.contact-pixels i:nth-child(1) { top: 12%; left: 8%; } .contact-pixels i:nth-child(2) { top: 24%; left: 13%; background: var(--orange); } .contact-pixels i:nth-child(3) { bottom: 14%; left: 5%; background: var(--red); } .contact-pixels i:nth-child(4) { top: 8%; right: 10%; background: var(--red); } .contact-pixels i:nth-child(5) { top: 18%; right: 5%; background: var(--orange); } .contact-pixels i:nth-child(6) { right: 14%; bottom: 14%; } .contact-pixels i:nth-child(7) { right: 7%; bottom: 25%; background: var(--orange); } .contact-pixels i:nth-child(8) { bottom: 7%; left: 17%; background: var(--blue); }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 100px; max-width: var(--max); margin: auto; padding: 20px 28px; color: var(--dim); font: 10px var(--mono); text-transform: uppercase; }
.footer > div:first-child { display: flex; align-items: center; gap: 10px; }
.footer > div:last-child { text-align: right; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--paper); }

/* blog pages */
.blog-page { max-width: var(--max); margin: auto; border-inline: 1px solid var(--line); }
.blog-hero { display: grid; grid-template-columns: 190px 1fr 340px; gap: 34px; align-items: end; padding: 90px 34px 44px; border-bottom: 1px solid var(--line); }
.blog-hero h1 { font-size: clamp(4rem, 8vw, 8rem); }
.blog-hero > p { color: var(--dim); font: 13px/1.6 var(--mono); }
.back-link { display: inline-block; padding: 8px 0; color: var(--dim); font: 10px var(--mono); text-transform: uppercase; transition: color .15s; }
.back-link:hover { color: var(--yellow); }

.article-head { padding: 90px 34px 60px; border-bottom: 1px solid var(--line); }
.article-meta { display: flex; align-items: center; gap: 24px; margin-bottom: 42px; color: var(--dim); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.article-meta time { margin-left: auto; }
.article-head h1 { max-width: 920px; font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: .92; }
.article-head h1 em { color: var(--yellow); }

.prose { max-width: 760px; margin: auto; padding: 60px 34px 80px; }
.prose p { margin-bottom: 1.4em; color: var(--copy); font-size: 17px; line-height: 1.75; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose h2 { margin: 2.2em 0 .6em; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.6em; padding-left: 1.4em; color: var(--copy); font-size: 16px; line-height: 1.7; }
.prose li { margin-bottom: .8em; }
.prose li:last-child { margin-bottom: 0; }
.prose li p { margin: 0; font-size: 16px; }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--yellow); }
.prose blockquote p { margin-bottom: .4em; color: var(--paper); font: italic 20px/1.6 var(--sans); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose sup a { color: var(--yellow); font: 11px var(--mono); }
.prose sup a:hover { text-decoration: underline; }
.prose a { color: var(--blue); border-bottom: 1px solid rgba(114,153,184,.4); transition: color .15s, border-color .15s; }
.prose a:hover { color: var(--paper); border-color: var(--paper); }

.footnotes { max-width: 760px; margin: auto; padding: 30px 34px 70px; border-top: 1px solid var(--line); }
.footnotes ol { margin: 0; padding-left: 1.3em; color: var(--dim); font: 12px/1.7 var(--mono); }
.footnotes li { margin-bottom: 12px; }
.footnotes li:last-child { margin-bottom: 0; }
.footnotes li::marker { color: var(--yellow); }
.footnotes a { color: var(--dim); }
.footnotes a:hover { color: var(--yellow); }
.footnotes .fn-back { color: var(--yellow); }

.post-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 30px 34px 44px; }
.post-nav a:last-child { text-align: right; }
.post-nav a:first-child { text-align: left; }
.post-nav .back-link { color: var(--copy); }
.post-nav .back-link:hover { color: var(--yellow); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes blink { 50% { opacity: .35; } }
@keyframes twinkle { 0%, 100% { opacity: .1; } 50% { opacity: .55; } }
@keyframes node-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes node-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255,189,46,0)); } 50% { filter: drop-shadow(0 0 8px rgba(255,189,46,.85)); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes field-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
@keyframes ghost-evolve { 0%, 100% { opacity: 0; } 45%, 55% { opacity: .32; } }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(6%, 8%) scale(1.18); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(-7%, -5%) scale(1.24); } }
@keyframes scan {
  0% { top: -4%; opacity: 0; }
  8% { opacity: .9; }
  35% { top: 45%; opacity: .45; }
  60% { top: 85%; opacity: .5; }
  72% { opacity: 0; top: 104%; }
  100% { top: 104%; opacity: 0; }
}
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(24deg); }
  7% { opacity: 1; }
  15% { opacity: 0; transform: translate(1400px, -560px) rotate(24deg); }
  100% { opacity: 0; transform: translate(1400px, -560px) rotate(24deg); }
}
@keyframes radio-wave { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 1000px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar-meta { display: none; }
  .menu-button { display: flex; }
  .nav { position: absolute; top: 63px; right: 0; left: 0; display: none; grid-template-columns: repeat(5,1fr); border: 1px solid var(--line); background: var(--ink); }
  .nav.open { display: grid; }
  .nav a { min-height: 54px; border-right: 1px solid var(--line); }
  .hero-title { grid-template-columns: 1fr; }
  .hero-title p { max-width: 560px; }
  .about { grid-template-columns: 150px 1fr 1fr; }
  .dial-panel { display: none; }
  .about-detail { border: 0; }
  .section-header { grid-template-columns: 150px 1fr; }
  .section-header > p { grid-column: 2; }
  .blog-hero { grid-template-columns: 150px 1fr; }
  .blog-hero > p { grid-column: 2; }
  .article-head { padding: 70px 28px 44px; }
  .article-head h1 { font-size: clamp(2.6rem, 9vw, 5rem); }
  .prose, .footnotes { padding-inline: 28px; }
}

@media (max-width: 700px) {
  .topbar { margin-inline: 10px; }
  .nav { grid-template-columns: repeat(2,1fr); }
  .nav a { border-bottom: 1px solid var(--line); }
  .hero, .grid-section, .work-section, .notes-section { margin-inline: 10px; }
  .hero-kicker { grid-template-columns: 1fr 1fr; }
  .hero-kicker span:last-child { display: none; }
  .hero-title { padding: 64px 20px 34px; }
  h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .pixel-world { height: 330px; }
  .world-readout { display: none; }
  .hero-foot { grid-template-columns: 1fr; padding: 20px; }
  .about { grid-template-columns: 1fr; }
  .about > * { min-height: auto; padding: 28px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-statement p { font-size: 2.2rem; }
  .section-header, .notes-section .section-header { grid-template-columns: 1fr; padding: 70px 20px 32px; }
  .section-header > p { grid-column: 1; }
  .blog-hero { grid-template-columns: 1fr; padding: 60px 20px 28px; }
  .blog-hero h1 { font-size: clamp(2.8rem, 12vw, 5rem); }
  .blog-hero > p { grid-column: 1; }
  .article-meta { flex-wrap: wrap; gap: 10px 18px; margin-bottom: 30px; }
  .article-meta time { margin-left: 0; }
  .prose, .footnotes { padding: 40px 20px 60px; }
  .prose p, .prose li p { font-size: 16px; }
  .post-nav { grid-template-columns: 1fr; padding: 24px 20px 40px; text-align: left !important; }
  .post-nav a { text-align: left !important; }
  .projects { grid-template-columns: 1fr; }
  .project { border-right: 0; }
  .project-art { height: 320px; }
  .note { grid-template-columns: 75px 1fr 20px; min-height: 96px; padding: 16px 20px; }
  .note span { display: none; }
  .contact-section { min-height: 560px; }
  .contact-section h2 { font-size: clamp(6rem, 26vw, 9rem); }
  .footer { grid-template-columns: 1fr; gap: 24px; padding: 30px 20px; }
  .footer-links { flex-wrap: wrap; gap: 15px; }
  .footer > div:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== additions for the Astro rebuild ===== */
.project-caption { color: var(--blue); font: 10px var(--mono); letter-spacing: .06em; margin-bottom: 8px; text-transform: uppercase; }
.project-badge { margin-top: 10px; color: var(--yellow); font: 9px var(--mono); letter-spacing: .1em; }
/* child combinators keep the bar styles off .counter b/.counter i (the outer panel also carries .term-art) */
.project-art.term-art { padding: 24px 18px; }
.term-art { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; justify-content: center; }
.term-art > b { width: 22px; background: var(--dim); animation: term-grow 1.8s ease-in-out infinite; transform-origin: bottom; }
.term-art > b:nth-child(1) { height: 18px; animation-delay: 0s; }
.term-art > b:nth-child(2) { height: 26px; background: var(--blue); animation-delay: .12s; }
.term-art > b:nth-child(3) { height: 34px; background: var(--blue); animation-delay: .24s; }
.term-art > b:nth-child(4) { height: 44px; background: var(--mint); animation-delay: .36s; }
.term-art > b:nth-child(5) { height: 56px; background: var(--yellow); animation-delay: .48s; }
@keyframes term-grow { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.08); } }
@keyframes cursor-blink { 50% { opacity: 0; } }
.creative-teaser { max-width: var(--max); margin: auto; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 90px 34px; }
.creative-teaser h2 { margin-top: 18px; font-size: clamp(3rem, 7vw, 6.5rem); }
.creative-teaser p { max-width: 560px; margin: 18px 0; color: var(--copy); font: 13px/1.6 var(--mono); }
.creative-teaser .text-link { margin-top: 8px; }
.prose h3 { margin: 1.6em 0 .45em; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; }

/* ===== round 2: turntable — circular platter; conic streaks + rotating label make the spin visible ===== */
.turntable { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.turntable .tt-platter { position: relative; width: 150px; height: 150px; flex-shrink: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(232,226,215,.035) 0deg 5deg, transparent 5deg 17deg), repeating-radial-gradient(circle at 50% 50%, #1b1a17 0 2px, #211f1b 2px 4px); border: 1px solid var(--line-hi); box-shadow: 0 0 0 6px var(--ink-2), inset 0 0 22px rgba(255,189,46,.16); animation: tt-spin 9s linear infinite; display: grid; place-items: center; overflow: hidden; }
.turntable .tt-label { width: 58px; height: 58px; border-radius: 50%; background: var(--orange); color: var(--ink); font: 8px/1.5 var(--mono); letter-spacing: .08em; text-align: center; text-transform: uppercase; display: grid; place-content: center; }
.turntable::after { position: absolute; inset: 20px; z-index: 2; border-radius: 50%; content: ""; background: linear-gradient(135deg, rgba(232,226,215,.07), transparent 42%); pointer-events: none; }
.turntable .tt-arm { position: absolute; right: 14px; bottom: 14px; width: 5px; height: 78px; background: var(--line-hi); transform-origin: 50% 100%; transform: rotate(-32deg); animation: arm-settle 7s cubic-bezier(.22,1,.36,1) infinite; }
.turntable .tt-arm b { position: absolute; top: -3px; left: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--line-hi); }
.turntable .tt-arm i { position: absolute; top: 62px; left: 6px; width: 16px; height: 9px; border-radius: 2px; background: var(--yellow); }
@keyframes tt-spin { to { transform: rotate(360deg); } }
@keyframes arm-settle { 0%, 100% { transform: rotate(-32deg); } 16% { transform: rotate(4deg); } 34% { transform: rotate(0deg); } 82% { transform: rotate(0deg); } 96% { transform: rotate(4deg); } }

/* ===== round 2: quote strip + notes ===== */
.quote-strip { max-width: var(--max); margin: auto; display: flex; align-items: center; justify-content: center; min-height: 76px; padding: 24px 34px; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); text-align: center; }
.quote-strip span { color: var(--dim); font: italic clamp(16px, 2vw, 19px)/1.5 var(--sans); transition: opacity .45s; }
.quote-strip span.fade { opacity: 0; }
.notes-more { margin: 28px 34px 44px; }
.creative-teaser blockquote { margin-top: 10px; color: var(--dim); font: italic clamp(1.4rem, 3vw, 2.2rem)/1.2 var(--serif); border-left: 3px solid var(--yellow); padding-left: 20px; }
.creative-teaser blockquote::before { content: "\201C"; color: var(--yellow); }

/* ===== round 2: ginti overlay (the G easter egg) ===== */
.ginti-overlay { position: fixed; z-index: 90; inset: 0; display: grid; place-content: center; background: rgba(18,17,15,.84); backdrop-filter: blur(4px); transition: opacity .4s; }
.ginti-box { min-width: 260px; border: 1px solid var(--line-hi); background: var(--panel); padding: 28px 36px; text-align: center; box-shadow: 0 18px 60px rgba(0,0,0,.5); }
.ginti-box b { display: block; font: 500 clamp(2.4rem, 6vw, 4rem) var(--mono); color: var(--yellow); letter-spacing: -.02em; }
.ginti-box span { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.ginti-box small { display: block; margin-top: 14px; color: var(--mint); font: 11px var(--mono); }
.ginti-box .cursor { display: inline-block; width: 8px; height: 16px; margin-left: 6px; background: var(--yellow); vertical-align: -2px; animation: cursor-blink 1s steps(1) infinite; }

/* ===== round 3: creative hub grid ===== */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.hub-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 240px; padding: 34px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .18s, color .18s; }
.hub-card:nth-child(2n) { border-right: 0; }
.hub-card:hover { background: var(--paper); color: var(--ink); }
.hub-card h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.hub-card p { max-width: 340px; margin-top: auto; color: var(--dim); font: 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.hub-card:hover p { color: #6b655c; }
.hub-card b { position: absolute; top: 26px; right: 28px; color: var(--yellow); font: 400 14px var(--mono); }
.hub-card:hover b { color: var(--ink); }
.hub-no { color: var(--yellow); font: 500 11px var(--mono); }
.hub-card:hover .hub-no { color: var(--orange); }

/* ===== round 3: music page ===== */
.music-stage { display: grid; grid-template-columns: 320px 1fr; gap: 60px; align-items: center; padding: 70px 34px; border-bottom: 1px solid var(--line); }
.vinyl-ornament { position: relative; display: grid; width: 260px; height: 260px; margin: auto; place-items: center; }
.vinyl-ornament .tt-platter { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(232,226,215,.03) 0deg 12deg, transparent 12deg 42deg), repeating-radial-gradient(circle at 50% 50%, #1b1a17 0 2px, #211f1b 2px 4px); border: 1px solid var(--line-hi); box-shadow: 0 0 0 10px var(--ink-2), inset 0 0 40px rgba(255,189,46,.14); animation: tt-spin 3.2s linear infinite; display: grid; place-items: center; overflow: hidden; }
.vinyl-ornament .tt-label { width: 84px; height: 84px; border-radius: 50%; background: var(--orange); color: var(--ink); font: 9px/1.6 var(--mono); letter-spacing: .1em; text-align: center; text-transform: uppercase; display: grid; place-content: center; }
.vinyl-ornament::after { position: absolute; inset: 0; z-index: 2; border-radius: 50%; content: ""; background: linear-gradient(135deg, rgba(232,226,215,.07), transparent 42%); pointer-events: none; }
.music-id h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 18px 0 16px; }
.music-id .dim-line { margin-top: 10px; }
.dim-line { color: var(--dim); font: 12px/1.7 var(--mono); }
.row-label { color: var(--yellow); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.row-section, .album-row, .track-section { padding: 40px 34px 56px; border-bottom: 1px solid var(--line); }
.album-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 22px; }
.album-card { display: grid; grid-template-columns: 88px 1fr auto; grid-template-rows: 1fr auto; gap: 10px 18px; align-items: center; padding: 22px; border: 1px solid var(--line); background: var(--ink-2); transition: border-color .18s, background .18s; }
.album-card:hover { border-color: var(--line-hi); background: var(--panel); }
.album-art { grid-row: 1 / 3; overflow: hidden; width: 88px; height: 88px; border: 1px solid var(--line-hi); }
.album-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-card h4 { font: 400 17px/1.35 var(--serif); letter-spacing: -.01em; }
.album-card p { color: var(--dim); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.album-card b { color: var(--yellow); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.track-list { margin-top: 22px; border-top: 1px solid var(--line); }
.track { display: grid; grid-template-columns: 96px 1fr auto 30px; gap: 18px; align-items: center; min-height: 60px; padding: 0 8px; border-bottom: 1px solid var(--line); transition: background .15s; }
.track:hover { background: var(--ink-2); }
.bpm-chip { width: fit-content; padding: 5px 9px; border: 1px solid var(--line-hi); color: var(--mint); font: 9px var(--mono); letter-spacing: .08em; border-radius: 2px; }
.track-name { font: 500 15px/1 var(--sans); }
.track-year { color: var(--dim); font: 10px var(--mono); }
.track a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--copy); font: 400 13px var(--mono); }
.track:hover a { color: var(--yellow); }
.link-row { display: flex; flex-wrap: wrap; gap: 22px; padding: 34px; border-bottom: 1px solid var(--line); }
.link-row a { color: var(--copy); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.link-row a:hover { color: var(--yellow); }

/* ===== round 3: poetry page ===== */
.poem-dice { display: inline-flex; align-items: center; gap: 10px; margin: 0 34px 26px; padding: 14px 18px; min-height: 44px; border: 1px solid var(--line-hi); background: var(--ink-2); color: var(--paper); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transition: background .18s, color .18s; }
.poem-dice:hover { background: var(--yellow); color: var(--ink); }
.poem-list { border-top: 1px solid var(--line); }
.poem-entry { display: grid; grid-template-columns: 60px 1fr 150px 30px; gap: 20px; align-items: center; min-height: 130px; padding: 20px 34px; border-bottom: 1px solid var(--line); transition: background .18s; }
.poem-entry:hover { background: var(--ink-2); }
.poem-count { color: var(--dim); font: 10px var(--mono); }
.poem-entry h2 { font: clamp(1.9rem, 3.8vw, 3rem)/1.15 var(--display); line-height: 1.15; color: var(--yellow); transition: color .18s; }
.poem-entry:hover h2 { color: var(--paper); }
.poem-meta { color: var(--dim); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.poem-entry b { color: var(--yellow); font: 400 13px var(--mono); }
.poem-empty { padding: 60px 34px; border-bottom: 1px solid var(--line); color: var(--dim); font: 12px/1.7 var(--mono); }

/* ===== round 3: cinema page ===== */
.cinema-row { padding: 44px 34px 56px; border-bottom: 1px solid var(--line); }
.top4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 22px; }
.top4 { position: relative; margin: 0; aspect-ratio: 2/3; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); transition: border-color .18s; }
.top4:hover { border-color: var(--line-hi); }
.top4 img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); transition: transform .35s cubic-bezier(.22,1,.36,1), filter .25s; }
.top4:hover img { transform: scale(1.045); filter: saturate(1); }
.top4 figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 34px 14px 12px; background: linear-gradient(transparent, rgba(18,17,15,.94)); color: var(--paper); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.top4 figcaption b { color: var(--yellow); font-weight: 500; margin-right: 6px; }
.row-note { max-width: 620px; margin-top: 18px; color: var(--dim); font: 12px/1.7 var(--mono); }
.cinema-prose { max-width: 760px; padding: 34px; }
.cinema-prose .dim-line { margin-top: 14px; }
.cinema-prose .text-link { margin-top: 10px; }

/* ===== round 3: experiments page ===== */
.exp-card { display: flex; flex-direction: column; gap: 16px; padding: 34px; border: 1px solid var(--line); background: var(--ink-2); }
.exp-card h2 { font: clamp(2.4rem, 6vw, 4rem) var(--display); line-height: 1; letter-spacing: -.01em; }
.exp-card h2 em { color: var(--yellow); }
.exp-card p { max-width: 640px; color: var(--copy); font-size: 15px; line-height: 1.7; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-tags span { padding: 4px 8px; border: 1px solid var(--line-hi); color: var(--dim); font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.exp-list { list-style: none; margin: 22px 0 0; padding: 0; }
.exp-list li { display: flex; gap: 14px; align-items: baseline; min-height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--copy); font: 13px/2.4 var(--mono); }
.exp-list li::before { content: "\25B8"; color: var(--yellow); }
.exp-blockquote { margin: 0; padding: 70px 34px 80px; border-bottom: 1px solid var(--line); }
.exp-blockquote p { max-width: 760px; font: italic clamp(1.6rem, 4vw, 2.6rem)/1.25 var(--serif); color: var(--paper); }
.exp-blockquote strong { display: block; margin-top: 14px; color: var(--yellow); font-style: normal; }

/* ===== round 3: reading-time + ginti card counter ===== */
.transmission { margin: 18px 0 0; color: var(--dim); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.term-wrap { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.counter { text-align: center; }
.counter i { display: block; color: var(--mint); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.counter b { display: block; color: var(--yellow); font: 500 clamp(2rem, 5vw, 3.4rem) var(--mono); letter-spacing: -.02em; }
.counter span { color: var(--dim); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card { min-height: 190px; border-right: 0; }
  .hub-card b { top: 22px; right: 24px; }
  .music-stage { grid-template-columns: 1fr; gap: 40px; padding: 50px 24px; }
  .vinyl-ornament { width: 220px; height: 220px; margin: auto; }
  .album-cards { grid-template-columns: 1fr; }
  .track { grid-template-columns: 84px 1fr auto; }
  .track-year { display: none; }
  .top4-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hub-card { min-height: 170px; padding: 26px 22px; }
  .music-stage { padding: 40px 20px; }
  .row-label, .row-section, .album-row, .track-section, .cinema-row { padding: 34px 20px 44px; }
  .album-cards { gap: 14px; }
  .album-card { grid-template-columns: 64px 1fr; padding: 16px; }
  .album-art { width: 64px; height: 64px; font-size: 30px; }
  .track { grid-template-columns: 1fr auto; padding: 0 4px; }
  .bpm-chip { display: none; }
  .poem-entry { grid-template-columns: 44px 1fr 20px; padding: 18px 20px; }
  .poem-meta { display: none; }
  .top4-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .exp-list li { font-size: 12px; }
  .link-row { padding: 26px 20px; gap: 16px; }
}

/* ===== round 10: navigation & wayfinding ===== */
/* reading progress on essays */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* pixel back-to-top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-hi);
  background: var(--ink-2);
  color: var(--paper);
  font: 13px var(--mono);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .18s, color .18s, border-color .18s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
body.paper-world .to-top:hover { background: var(--accent); color: #f4efe4; border-color: var(--accent); }

/* focus rings that belong to their world */
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
body.paper-world :focus-visible { outline-color: var(--accent); }

/* full-screen serif takeover menu on small screens */
@media (max-width: 1000px) {
  body.menu-open { overflow: hidden; }
  .nav.open {
    position: fixed;
    inset: 63px 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    padding: 26px clamp(20px, 6vw, 60px) 60px;
    gap: 4px;
    background: var(--ink);
    counter-reset: navitem;
    overflow-y: auto;
  }
  body.paper-world .nav.open { background: #f4efe4; }
  .nav.open a {
    display: flex;
    min-width: 0;
    min-height: 0;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--paper);
    font-family: var(--serif);
    font-size: clamp(2.3rem, 8.5vw, 4.2rem);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1;
    text-transform: none;
    transition: color .15s, padding-left .2s;
  }
  .nav.open a::before {
    content: counter(navitem, decimal-leading-zero);
    counter-increment: navitem;
    margin-right: 18px;
    color: var(--yellow);
    font: 500 12px var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .nav.open a.active,
  .nav.open a:hover {
    background: none;
    padding-left: 12px;
    color: var(--yellow);
  }
}
/* washi-tape corners holding down posters & covers */
body.paper-world .top4::before,
body.paper-world .top4::after,
body.paper-world .album-card .album-art::before {
  content: "";
  position: absolute;
  z-index: 3;
  width: 54px;
  height: 18px;
  background: linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, .32));
  box-shadow: 0 1px 3px rgba(28, 26, 22, .2);
  clip-path: polygon(3% 0, 97% 8%, 100% 92%, 0 100%);
  pointer-events: none;
}
body.paper-world .top4::before { top: 9px; left: 11px; transform: rotate(-35deg); }
body.paper-world .top4::after { top: 9px; right: 11px; transform: rotate(35deg); }
body.paper-world .album-card .album-art { position: relative; }
body.paper-world .album-card .album-art::before {
  top: -7px;
  left: 50%;
  width: 46px;
  height: 15px;
  transform: translateX(-50%) rotate(-3deg);
}

/* watercolour brush-stroke dividers between sections */
body.paper-world :is(.cinema-row, .album-row, .track-section) {
  position: relative;
  border-bottom: 0;
}
body.paper-world :is(.cinema-row, .album-row, .track-section)::after {
  content: "";
  position: absolute;
  inset-inline: 26px;
  bottom: -5px;
  height: 9px;
  pointer-events: none;
  background:
    radial-gradient(90px 8px at 18% 50%, color-mix(in srgb, var(--accent) 36%, transparent), transparent 72%),
    radial-gradient(150px 7px at 55% 45%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 74%),
    radial-gradient(70px 8px at 88% 55%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  filter: blur(1px);
}

/* hand-scribbled ink underline draws itself on link hover */
body.paper-world .prose a,
body.paper-world .link-row a {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='7' viewBox='0 0 120 7'%3E%3Cpath d='M2 4 Q 16 1.5 31 3.8 T 60 3.6 T 89 4.2 T 118 3.4' fill='none' stroke='%232f2a23' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 7px;
  transition: background-size .35s cubic-bezier(.22, 1, .36, 1);
}
body.paper-world .prose a:hover,
body.paper-world .link-row a:hover {
  background-size: 100% 7px;
}
body.paper-world .prose a { border-bottom: 0; }

/* poem entries sit like hand-placed paper strips */
body.paper-world .poem-entry:nth-child(3n + 2) { padding-left: 48px; }
body.paper-world .poem-entry:nth-child(3n) { padding-left: 62px; }
/* pigment washes on hover instead of flat swaps */
body.paper-world .hub-card:hover {
  background: radial-gradient(150% 140% at 20% 12%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 82%);
  color: var(--paper);
}
body.paper-world .hub-card:hover p { color: var(--dim); }
body.paper-world .hub-card:hover b { color: var(--accent); }
body.paper-world .track:hover,
body.paper-world .poem-entry:hover,
body.paper-world .album-card:hover {
  background: radial-gradient(130% 180% at 14% 10%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 80%);
}

/* text selection stains in the niche hue */
body.paper-world ::selection {
  background: var(--accent);
  color: #f4efe4;
}

/* the portal link: slow rainbow shimmer, glow on approach */
.portal-link,
.portal-link:hover,
.portal-link:focus-visible {
  background-color: transparent;
  border-color: transparent;
  color: transparent;
}
.portal-link {
  font-weight: 600;
  background-image: linear-gradient(110deg, #ff5f6d, #ffc371, #7ee8a2, #6db5ff, #c07bee, #ff5f6d);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: portal-shift 5s linear infinite;
  filter: drop-shadow(0 0 7px rgba(255, 150, 110, .3));
  transition: filter .35s;
}
.portal-link span { color: transparent; }
.portal-link:hover,
.portal-link:focus-visible {
  background-image: linear-gradient(110deg, #ff5f6d, #ffc371, #7ee8a2, #6db5ff, #c07bee, #ff5f6d);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 9px rgba(255, 138, 101, .55)) drop-shadow(0 0 24px rgba(122, 162, 255, .38));
}
.portal-link:hover span,
.portal-link:focus-visible span { color: transparent; }
@keyframes portal-shift { to { background-position: -300% 0; } }

.sparkle {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  font-size: 11px;
  animation: sparkle-drift 1s ease-out forwards;
}
@keyframes sparkle-drift {
  from { opacity: 1; transform: translate(0, 0) scale(1); }
  to { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(.3); }
}

@media (prefers-reduced-motion: reduce) {
  .portal-link { animation: none; filter: drop-shadow(0 0 8px rgba(160, 140, 255, .35)); }
  .sparkle { display: none; }
}
.now-readouts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.now-cell { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 24px 26px; border-right: 1px solid var(--line); }
.now-cell:last-child { border-right: 0; }
.now-cell i { color: var(--dim); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.now-cell b { font: 500 clamp(1.3rem, 2.6vw, 2rem) var(--mono); color: var(--paper); letter-spacing: -.01em; }
.now-cell b:nth-child(2) { color: var(--yellow); }
.now-cell span { color: var(--dim); font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 900px) {
  .now-readouts { grid-template-columns: repeat(2, 1fr); }
  .now-cell:nth-child(2) { border-right: 0; }
  .now-cell:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
/* ===== round 11: pixel cursor + 404 ===== */
.sig-404 { max-width: 760px; margin: auto; padding: 120px 34px 60px; text-align: center; }
.sig-404 h1 { font-size: clamp(4rem, 12vw, 9rem); line-height: 1; margin-bottom: 24px; }
.sig-404 p {
  margin-bottom: 40px;
  color: var(--dim);
  font: 13px/1.6 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* pixel cursor companion — square dot echoes the pixel logo, ring trails behind */
html.cursor-on * { cursor: none !important; }
html.cursor-on :is(input, textarea, select) { cursor: auto !important; }
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.cursor-dot {
  left: -5px;
  top: -5px;
  z-index: 9999;
  width: 10px;
  height: 10px;
  background: var(--yellow);
}
.cursor-ring {
  left: -17px;
  top: -17px;
  z-index: 9998;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--yellow) 60%, transparent);
  transition: opacity .25s, width .2s, height .2s, left .2s, top .2s, border-color .2s, border-style .2s;
}
.cursor-dot.on, .cursor-ring.on { opacity: 1; }
.cursor-ring.is-hover { left: -23px; top: -23px; width: 46px; height: 46px; border-color: var(--yellow); }
.cursor-ring.is-media { left: -26px; top: -26px; width: 52px; height: 52px; border-style: dashed; }
body.paper-world .cursor-dot { background: var(--accent); outline: 1px solid rgba(244, 239, 228, .9); }
body.paper-world .cursor-ring { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
body.paper-world .cursor-ring.is-hover { border-color: #c97a8a; animation: ring-hue 3s linear infinite; }
@keyframes ring-hue {
  0% { border-color: #9a86b8; }
  20% { border-color: #c97a8a; }
  40% { border-color: #e0b060; }
  60% { border-color: #7da88f; }
  80% { border-color: #5f9a9a; }
  100% { border-color: #9a86b8; }
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  html.cursor-on * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* metric-matched fallbacks so fonts swapping in never shifts layout (CLS ~ 0) */
@font-face {
  font-family: "Inter FB";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 94%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Serif FB";
  src: local("Georgia");
  size-adjust: 96%;
  ascent-override: 102%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "DM Mono FB";
  src: local("Courier New");
  size-adjust: 100%;
  ascent-override: 100%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* headlines never orphan a single word; prose avoids awkward last lines */
h1, h2, h3, h4 { text-wrap: balance; }
.prose p, .prose li p, .blog-hero > p, .music-id p, .exp-card p { text-wrap: pretty; }

/* niche display faces have no true italics/bolds — never fake them */
[class*="niche-"] h1, [class*="niche-"] h2 { font-synthesis: none; }

/* pull quotes hang their opening mark into the margin where supported */
.creative-teaser blockquote, .exp-blockquote p { hanging-punctuation: first; }

/* dates, counters, BPM chips: digits that align in columns */
:is(time, .poem-count, .bpm-chip, .track-year, .section-index, .article-meta, .hero-kicker, .top4 figcaption b) {
  font-variant-numeric: tabular-nums;
}
/* smooth cross-fade when crossing between the two worlds (must be top-level) */
@view-transition { navigation: auto; }

/* poetry: entries ink themselves in, staggered */
.niche-poetry .blog-hero, .exp-card { position: relative; }

/* equalizer bars wake up on track hover */
body.paper-world .track-name::after {
  content: "";
  display: inline-block;
  width: 13px;
  height: 11px;
  margin-left: 10px;
  vertical-align: -1px;
  background: linear-gradient(to top, var(--accent) 100%, transparent 0);
  -webkit-mask: linear-gradient(90deg, #000 0 2px, transparent 2px 5px, #000 5px 7px, transparent 7px 10px, #000 10px 12px);
  mask: linear-gradient(90deg, #000 0 2px, transparent 2px 5px, #000 5px 7px, transparent 7px 10px, #000 10px 12px);
  transform-origin: bottom;
  opacity: 0;
  transition: opacity .2s;
}
body.paper-world .track:hover .track-name::after {
  opacity: 1;
  animation: eq-bounce .9s ease-in-out infinite;
}
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(.35); }
  30% { transform: scaleY(1); }
  60% { transform: scaleY(.6); }
}

/* drop cap opens every essay */
.dropcap > p:first-of-type::first-letter {
  float: left;
  padding: .04em .12em 0 0;
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: .82;
}

/* handwritten margin annotations on the paper side */
.margin-note {
  position: absolute;
  right: 34px;
  top: 46px;
  max-width: 190px;
  font: 1.3rem/1.25 "Amsterdam Four", cursive;
  color: var(--accent);
  text-align: right;
  transform: rotate(-2deg);
  opacity: .85;
  pointer-events: none;
}

/* per-world scrollbars */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-hi);
  border: 3px solid var(--ink);
  border-radius: 6px;
}
html { scrollbar-width: thin; scrollbar-color: var(--line-hi) transparent; }
html:has(body.paper-world) {
  scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--line-hi)) transparent;
}
body.paper-world ::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 55%, var(--line-hi));
}

@media (max-width: 700px) {
  .margin-note { display: none; }
}
body.paper-world {
  --ink: #f4efe4;
  --ink-2: #ece6d5;
  --panel: #e7dfcb;
  --panel-hi: #ddd2b8;
  --line: #d8cdb4;
  --line-hi: #b3a684;
  --paper: #1c1a16;
  --copy: #454037;
  --dim: #5a5348;
  --orange: #b45a17;
  --red: #b23a20;
  --blue: #2f6484;
  --mint: #4e7d59;
  --accent: #a4741c;
  --hue-a: #d4a03c;
  --hue-b: #c96f50;
  --yellow: var(--accent);
  /* paper ground: pigment blooms + watercolour grain painted as REAL background
     layers on body itself — immune to the negative-z-index stacking trap */
  background:
    radial-gradient(46rem 32rem at 10% -6%, color-mix(in srgb, var(--hue-a) 26%, transparent), transparent 70%),
    radial-gradient(40rem 30rem at 56% -12%, color-mix(in srgb, var(--hue-b) 18%, transparent), transparent 72%),
    radial-gradient(52rem 36rem at 108% 32%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%),
    radial-gradient(46rem 42rem at 22% 112%, color-mix(in srgb, var(--hue-b) 20%, transparent), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"),
    #f4efe4;
  background-size: auto, auto, auto, auto, 240px 240px, auto;
  background-blend-mode: normal, normal, normal, normal, multiply, normal;
  color: #1c1a16;
}
html:has(body.paper-world) { background: #f4efe4; }
body.paper-world.niche-music { --accent: #6f56a4; --hue-a: #9b7fe0; --hue-b: #d48ab0; }
body.paper-world.niche-cinema { --accent: #2f6484; --hue-a: #4e9ec2; --hue-b: #d9a441; }
body.paper-world.niche-poetry { --accent: #b04a4a; --hue-a: #e08a8a; --hue-b: #9a6fc9; }
body.paper-world.niche-experiments { --accent: #5f7442; --hue-a: #86b04c; --hue-b: #5aa0b8; }

body.paper-world .topbar { background: rgba(244, 239, 228, .92); }
.niche-poetry { --display: "Amsterdam Four", "Instrument Serif", cursive; }
.niche-music { --display: "Unbounded", var(--sans); }
.niche-cinema { --display: "Bebas Neue", var(--sans); }
.niche-experiments { --display: "Space Grotesk", var(--sans); }

.niche-poetry h1, .niche-poetry h2 { letter-spacing: 0; line-height: 1.08; }
.niche-poetry .blog-hero h1 { font-size: clamp(3.2rem, 7vw, 6rem); }

.niche-music h1, .niche-music h2 { letter-spacing: -.01em; line-height: 1.06; }
.niche-music .blog-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.niche-music .music-id h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

.niche-cinema h1, .niche-cinema h2 { letter-spacing: .02em; line-height: .95; }
.niche-cinema .blog-hero h1 { font-size: clamp(3.6rem, 8vw, 7.2rem); }

.niche-experiments h1, .niche-experiments h2 { letter-spacing: -.02em; line-height: 1.05; }
@media (max-width: 640px) {
  .now-cell { min-height: 120px; padding: 18px 16px; }
}

/* ===== round 13: Monet watercolour system ===== */
body.paper-world { isolation: isolate; }
.paint-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* whisper trail (v1 restored) */
.rb-trail {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, color-mix(in srgb, var(--c) 82%, white) 0%, var(--c) 44%, transparent 72%);
  animation: rb-fade 1s cubic-bezier(.25,.55,.4,1) forwards;
}
@keyframes rb-fade {
  from { opacity: var(--o,.55); transform: scale(.6); filter: blur(.3px); }
  70% { opacity: calc(var(--o,.55) * .4); }
  to { opacity: 0; transform: scale(2); filter: blur(2.6px); }
}

/* speed-reactive cursor */
body.paper-world .cursor-dot {
  border-radius: 50%;
  width: var(--cs, 10px);
  height: var(--cs, 10px);
  margin: calc(var(--cs, 10px) / -2) 0 0 calc(var(--cs, 10px) / -2);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 40%, transparent);
  outline: none;
  transition: width .15s, height .15s, margin .15s;
}

/* hover stains on hub cards */
body.paper-world .hub-card { position: relative; overflow: hidden; }
body.paper-world .hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  transition: opacity .8s ease;
  pointer-events: none;
  z-index: 0;
}
body.paper-world .hub-card:hover::after { opacity: 1; }

/* scroll washes on section headers */
[data-wash] {
  position: relative;
}
[data-wash]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: radial-gradient(ellipse at 20% 50%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 80%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 1.4s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
[data-wash].washed::after { background-size: 100% 100%; }

/* paint palette widget */
.paint-palette {
  position: fixed;
  bottom: 74px;
  right: 22px;
  z-index: 55;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line-hi);
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .5s, transform .5s;
}
.paint-palette.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.palette-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s, transform .15s;
}
.palette-swatch:hover { transform: scale(1.25); }

/* sound toggle */
.sound-toggle {
  position: fixed;
  bottom: 74px;
  left: 22px;
  z-index: 60;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-hi);
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  backdrop-filter: blur(6px);
  color: var(--dim);
  font-size: 14px;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s, color .2s, background .2s;
}
.sound-toggle:hover { opacity: 1; color: var(--paper); background: var(--panel); }

/* pixel dust (dark side) */
.pd-trail {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  animation: pd-fade 0.5s steps(4) forwards;
}
@keyframes pd-fade {
  from { opacity: 0.85; }
  to { opacity: 0; }
}
.pd-burst {
  position: fixed;
  z-index: 50;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .rb-trail { display: none; }
  .paint-palette { display: none; }
  [data-wash]::after { transition: none; }
  [data-wash].washed::after { background-size: 100% 100%; }
  .pixel-rain { display: none; }
}

/* ===== phase 1: pixel side features ===== */

/* pixel rain positioning */
.pixel-rain {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* glitch hover on project cards */
.project-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255,0,0,.08) 0%, transparent 30%, rgba(0,255,255,.08) 70%, transparent 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity .15s;
}
.project:hover .project-art::before {
  opacity: 1;
  animation: glitch-shift .2s steps(2) forwards;
}
@keyframes glitch-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, 2px); }
  100% { transform: translate(0, 0); opacity: 0; }
}

/* terminal cursor on text links */
.cursor-dot.terminal-mode {
  width: 8px !important;
  height: 16px !important;
  margin: -8px 0 0 -4px !important;
  background: var(--yellow) !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  animation: cursor-blink 0.8s steps(1) infinite !important;
  box-shadow: 0 0 6px rgba(255,189,46,.5) !important;
  outline: none !important;
}

/* ===== phase 2: creative side features ===== */

/* 2b: ink effects on poetry */
.rb-ink {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 35%, color-mix(in srgb, var(--c) 90%, white) 0%, var(--c) 50%, transparent 75%);
  animation: ink-fade 1.2s cubic-bezier(.3,.6,.4,1) forwards;
}
@keyframes ink-fade {
  from { opacity: var(--o,.55); transform: var(--rot, rotate(0deg)) scale(.7); filter: blur(.2px); }
  60% { opacity: calc(var(--o,.55) * .35); }
  to { opacity: 0; transform: var(--rot, rotate(0deg)) scale(1.6); filter: blur(1.8px); }
}

/* 2c: film grain on cinema */
body.niche-cinema main::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.035;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain-shift 0.4s steps(2) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-2px, 1px); }
  100% { transform: translate(1px, -1px); }
}

/* 2a: paint-wipe page transitions */
::view-transition-old {
  animation: paint-wipe-out 0.5s cubic-bezier(.4,0,.2,1) forwards;
}
::view-transition-new {
  animation: paint-wipe-in 0.5s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes paint-wipe-out {
  0% { opacity: 1; filter: blur(0); }
  60% { opacity: 0.6; filter: blur(2px) saturate(1.4); }
  100% { opacity: 0; filter: blur(6px) saturate(0.5); }
}
@keyframes paint-wipe-in {
  0% { opacity: 0; filter: blur(4px); }
  40% { opacity: 0.4; filter: blur(2px); }
  100% { opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old,
  ::view-transition-new { animation: none; }
}

/* 2e: 404 lost painting (creative side) */
body.paper-world .sig-404 h1 {
  font-size: clamp(5rem, 14vw, 12rem);
  color: var(--accent);
  opacity: 0.25;
  filter: blur(1px);
  letter-spacing: -.04em;
}
body.paper-world .sig-404 p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--dim);
}
body.paper-world .sig-404::before {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  margin: 0 auto 24px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 35%, transparent), transparent 80%);
  filter: blur(2px);
}
.sig-404-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
}
.sig-404-links a {
  color: var(--dim);
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color .15s;
}
.sig-404-links a:hover { color: var(--yellow); }

/* ===== phase 4: accessibility ===== */

/* A1: prefers-contrast support */
@media (prefers-contrast: more) {
  :root {
    --copy: #e0dbd0;
    --dim: #b5b0a6;
    --line: #555149;
    --line-hi: #7a756b;
  }
  body.paper-world {
    --copy: #2a2520;
    --dim: #3d3830;
    --line: #a09880;
    --line-hi: #8a8068;
  }
}

/* A4: ticker pause on hover/focus */
.ticker-track:hover,
.ticker-track:focus-within {
  animation-play-state: paused;
}
