/* 500x Engineer homepage (redesign-android, round 3). Dark-first: graphite with a faint 7g-style grid and
   500x yellow as the single accent; cream only behind the channel list. Big Shoulders Display for display type,
   JetBrains Mono for everything else. Base styles are the static hero (no JS or reduced motion: a split
   portrait with static eye reticles); html.fx turns on the scroll-driven hero, html.gl the WebGL renderer. */
@font-face { font-family: "Big Shoulders Display"; src: url("https://cdn.jsdelivr.net/npm/@fontsource/big-shoulders-display@5.2.5/files/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jbmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #0E0F0E; --ink2: #161816; --cream: #F1EEE6; --cream2: #D9D5CB; --y: #FFD60A;
  --mute: #8B908A; --mid: #5E625D; --rule: rgba(241, 238, 230, .14); --rule-ink: rgba(14, 15, 14, .16); --grid: rgba(255, 214, 10, .05);
  --cond: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif; --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --side: clamp(16px, 3.4vw, 48px); --wrap: 1240px; --bar: 48px;
  --pw: min(138svh, 92vw); /* portrait width: a 3:2 frame about 92svh tall */
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 16px/1.6 var(--mono); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:where(a, button, summary):focus-visible { outline: 3px solid var(--y); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--y); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--side); }
.gridbg { background-color: var(--ink); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }

/* ---------- buttons ---------- */
.hb { display: inline-flex; align-items: baseline; gap: 9px; padding: 14px 18px 13px; text-decoration: none; font: 700 14px/1 var(--mono); border: 1.5px solid currentColor; transition: background-color .2s, color .2s, border-color .2s; }
.hb small { font-size: 12px; font-weight: 400; opacity: .7; }
.hb--y { background: var(--y); color: var(--ink); border-color: var(--y); }
.hb--y:hover { background: var(--cream); border-color: var(--cream); }
.hb--line { color: var(--cream); }
.hb--line:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- header: a compact terminal command bar ---------- */
.hh { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--bar); display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); padding: 0 var(--side);
  background: rgba(14, 15, 14, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); font: 500 13px/1 var(--mono); }
.hh__brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--cream); white-space: nowrap; }
.hh__brand b { color: var(--y); font-weight: 800; }
.hh__brand i { font-style: normal; color: var(--mute); }
.hh__nav { display: flex; gap: clamp(10px, 1.8vw, 24px); }
.hh__nav a { color: var(--cream2); text-decoration: none; padding: 16px 0; }
.hh__nav a:hover { color: var(--y); }
.hh__cta { margin-left: auto; display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 12px 7px; background: var(--y); color: var(--ink); text-decoration: none; font: 700 13px/1 var(--mono); white-space: nowrap; }
.hh__cta small { font-weight: 400; font-size: 11px; opacity: .7; }
.hh__cta:hover { background: var(--cream); }
@media (max-width: 640px) { .hh__nav { display: none; } }

/* ---------- hero (static base: dark, split portrait, static reticles) ---------- */
.hero { position: relative; }
.hero__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.hero__stage { background-color: var(--ink); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.hero__gl, .hero__hud { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero__gl { z-index: 0; } .hero__hud { z-index: 2; pointer-events: none; }
.hcur { position: absolute; z-index: 4; left: -7px; top: -7px; width: 14px; height: 14px; border: 1.5px solid var(--y); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; display: none; }
.hcur::before, .hcur::after { content: ""; position: absolute; background: var(--y); }
.hcur::before { left: 50%; top: -6px; bottom: -6px; width: 1.5px; margin-left: -.75px; clip-path: polygon(0 0, 100% 0, 100% 22%, 0 22%, 0 78%, 100% 78%, 100% 100%, 0 100%); }
.hcur::after { top: 50%; left: -6px; right: -6px; height: 1.5px; margin-top: -.75px; clip-path: polygon(0 0, 22% 0, 22% 100%, 0 100%, 0 0, 78% 0, 100% 0, 100% 100%, 78% 100%); }
.hero__portrait { position: absolute; z-index: 1; left: 62%; bottom: 0; width: var(--pw); aspect-ratio: 3 / 2; transform: translateX(-50%); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; user-select: none; -webkit-user-drag: none;
  -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.hero__img--android { clip-path: inset(0 0 0 50%); }
.ret { position: absolute; z-index: 2; width: 100%; aspect-ratio: 1; transform: translate(-50%, -50%); overflow: visible; fill: none; stroke: var(--y); stroke-width: .22; pointer-events: none; }
.ret text { fill: var(--y); stroke: none; font: 500 1.9px var(--mono); letter-spacing: .05px; }

.hero__t { position: absolute; z-index: 2; left: var(--side); top: 16%; margin: 0; pointer-events: none; font: 800 min(7.5vw, 13svh)/.9 var(--cond); text-transform: uppercase; letter-spacing: .005em; color: var(--cream); }
.hero__a, .hero__b { display: block; }
.hero__w { display: block; width: min-content; }
.hero__b { margin-top: .25em; }
.hero__b em { font-style: normal; color: var(--y); }
.hero__foot { position: absolute; z-index: 3; left: var(--side); bottom: 11svh; width: min(440px, 40vw); color: var(--cream); }
.hero__lede { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--cream2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hud { position: absolute; z-index: 3; left: var(--side); bottom: 18px; margin: 0; font: 500 10.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(241, 238, 230, .62); }
.hud p { margin: 0; }
.hero__hint { position: absolute; z-index: 3; right: var(--side); bottom: 18px; margin: 0; display: none; flex-direction: column; align-items: flex-end; font: 500 10.5px/1.6 var(--mono); letter-spacing: .08em; color: rgba(241, 238, 230, .62); }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }

@media (max-width: 760px) {
  :root { --pw: min(175vw, 104svh); }
  .hero__stage { min-height: 600px; }
  .hero__portrait { left: 50%; bottom: 24svh; }
  .hero__t { top: calc(var(--bar) + 22px); font-size: min(12.5vw, 7.5svh); white-space: nowrap; }
  .hero__w { width: auto; }
  .hero__b { margin-top: 0; }
  .hero__foot { left: 0; right: 0; bottom: 0; width: auto; padding: 56px var(--side) 22px; background: linear-gradient(transparent, rgba(14,15,14,.88) 34%, var(--ink)); }
  .hero__lede { font-size: 13px; margin-bottom: 14px; }
  .hud, .fx .hero__hint { display: none; }
}

/* ---------- hero, motion on (html.fx); html.gl once the WebGL renderer is up ---------- */
.fx .hero { height: 420svh; }
.fx .hero__stage { position: sticky; top: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fx .hero__img--android, .fx .ret { display: none; }
.fx .hero__b { opacity: 0; }
.fx .hero__hint { display: flex; }
@media (max-width: 760px) { .fx .hero__hint { display: none; } }
.gl .hero__gl, .gl .hero__hud { display: block; }
.gl .hero__portrait { visibility: hidden; }
.gl .hero__t { clip: rect(0 0 0 0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
@media (hover: hover) { .gl .hcur { display: block; } .gl .hero__stage { cursor: none; } }
.gl .hero__stage a, .gl .hero__stage button { cursor: pointer; }

/* ---------- section kit ---------- */
.kick { margin: 0 0 14px; font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.kick::before { content: "$ "; color: var(--y); }
.big { margin: 0 0 clamp(28px, 4vw, 56px); font: 800 clamp(48px, 8.8vw, 140px)/.88 var(--cond); text-transform: uppercase; letter-spacing: .005em; }
.big em { font-style: normal; display: block; -webkit-text-stroke: 2px var(--stroke, var(--ink)); color: transparent; }

/* ---------- story: a commit log on a git graph ---------- */
.story { position: relative; color: var(--cream); background-color: var(--ink); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.story__pin { padding: clamp(96px, 14svh, 150px) var(--side) 72px; max-width: var(--wrap); margin: 0 auto; }
.story__k { margin: 0 0 12px; font: 500 13px/1 var(--mono); color: var(--y); }
.story__t { margin: 0 0 48px; font: 800 clamp(52px, 9vw, 140px)/.86 var(--cond); text-transform: uppercase; }
.story__t span { display: block; }
.story__t .o { -webkit-text-stroke: 2px var(--cream); color: transparent; }
.git { position: relative; list-style: none; margin: 0; padding: 0 0 0 34px; display: grid; gap: 34px; }
.git::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--y); }
.cm { position: relative; }
.cm__node { position: absolute; left: -34px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--y); }
.cm--branch .cm__node { border-style: dashed; left: -22px; }
.cm--branch::before { content: ""; position: absolute; left: -26px; top: -26px; width: 2px; height: 30px; border-left: 2px dashed var(--y); transform: translateX(14px) skewX(-24deg); transform-origin: bottom; }
.cm__meta { display: flex; gap: 14px; margin: 0 0 6px; font: 500 12px/1.4 var(--mono); color: var(--mute); }
.cm__meta code { color: var(--y); font: inherit; }
.cm__art { display: block; width: 100%; max-width: 220px; height: auto; margin: 2px 0 14px; overflow: visible; }
.cm__art .a, .cm__art .d { fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.cm__art .a { stroke: var(--y); }
.cm__art .d { stroke: rgba(241, 238, 230, .4); }
.cm__art .f { fill: #1b1d1b; }
.cm__art .dash { stroke-dasharray: 3 3; }
.cm__art .cur { fill: var(--y); }
.cm__art .t { fill: var(--y); font: 700 7px var(--mono); }
@media (prefers-reduced-motion: no-preference) {
  .js .cm__art [pathLength] { transition: stroke-dashoffset 1.2s cubic-bezier(.3, .6, .2, 1); }
  .js .cm__art .a { transition-delay: .25s; }
  .js .cm__art .f, .js .cm__art .cur, .js .cm__art .t, .js .cm__art .dash, .js .cm__art rect:not([class]) { opacity: 0; transition: opacity .6s ease .9s; }
  .js .cm.is-in .cm__art .f, .js .cm.is-in .cm__art .cur, .js .cm.is-in .cm__art .t, .js .cm.is-in .cm__art .dash, .js .cm.is-in .cm__art rect:not([class]) { opacity: 1; }
}
.cm__y { margin: 0; font: 800 clamp(64px, 7vw, 116px)/.86 var(--cond); color: var(--cream); letter-spacing: .005em; }
.cm__y small { font: 500 12px/1 var(--mono); color: var(--mute); vertical-align: top; margin-left: 6px; }
.cm--soon .cm__y { color: transparent; -webkit-text-stroke: 1.5px var(--y); }
.cm__t { margin: 6px 0 8px; font: 700 15px/1.3 var(--mono); color: var(--y); }
.cm__t::before { content: "feat: "; color: var(--mute); font-weight: 500; }
.cm__b { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.65; color: var(--cream2); }
.sc__shorts, .sc__long { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; max-width: 420px; }
.sc__shorts { grid-template-columns: repeat(3, 1fr); }
.sc__shorts a { display: block; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink2); border: 1px solid var(--rule); }
.sc__long { grid-template-columns: repeat(3, 1fr); }
.sc__long a { display: block; text-decoration: none; font: 700 10.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--cream2); }
.sc__long a:hover span { color: var(--y); }
.sc__long img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; margin-bottom: 6px; background: var(--ink2); border: 1px solid var(--rule); }
.sc__shorts img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sc__shorts a:hover img { transform: scale(1.06); }
.story__bar { display: none; }

/* desktop + motion: the heading keeps its own column; the graph runs left to right in a clipped viewport beside it */
@media (min-width: 900px) {
  .fx .story__pin { position: sticky; top: 0; height: 100svh; max-width: none; overflow: hidden; padding: calc(var(--bar) + 6svh) 0 0;
    display: grid; grid-template-columns: minmax(260px, 30vw) minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .fx .story__k { grid-column: 1; grid-row: 1; margin: 0 0 12px; padding-left: var(--side); }
  .fx .story__t { grid-column: 1; grid-row: 2; align-self: start; margin: 0; padding: 0 24px 0 var(--side); font-size: clamp(48px, 4.6vw, 104px); }
  .fx .story__view { grid-column: 2; grid-row: 1 / 3; align-self: center; overflow: hidden; padding: 12px 0 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px); mask-image: linear-gradient(90deg, transparent 0, #000 56px); }
  .fx .git { display: flex; align-items: flex-start; gap: 0; width: max-content; padding: 0 var(--side) 0 56px; will-change: transform; margin: 0; }
  .fx .git::before { left: 56px; right: var(--side); top: 7px; bottom: auto; width: auto; height: 2px; }
  .fx .cm { width: clamp(280px, 24vw, 380px); flex: none; padding: 40px 32px 0 0; }
  .fx .cm__node { left: 0; top: 0; }
  .fx .cm--branch { margin-top: 64px; }
  .fx .cm--branch .cm__node { left: 0; top: 0; }
  .fx .cm--branch::before { left: -60px; top: -56px; width: 70px; height: 64px; border-left: 0; border-top: 2px dashed var(--y); border-right: 2px dashed var(--y); transform: none; border-radius: 0 28px 0 0; }
  .fx .story__bar { display: block; grid-column: 1 / -1; grid-row: 3; height: 3px; margin: 0 var(--side) 34px; background: var(--rule); }
  .fx .story__bar i { display: block; height: 100%; width: 100%; background: var(--y); transform-origin: left; transform: scaleX(0); }
}

/* ---------- channels ---------- */
.chan { background: var(--cream); color: var(--ink); padding: clamp(80px, 12vw, 160px) 0; }
.chan__list { list-style: none; margin: 0 0 clamp(56px, 7vw, 96px); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); border-top: 2px solid var(--ink); }
.ch { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: 18px 4px 16px; border-bottom: 2px solid var(--ink); text-decoration: none; overflow: hidden; isolation: isolate; }
.ch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--y); transform: scaleY(0); transform-origin: bottom; transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
.ch:hover::before, .ch:focus-visible::before { transform: scaleY(1); }
.ch__p { font: 800 clamp(32px, 4.2vw, 60px)/1 var(--cond); text-transform: uppercase; }
.ch__h { grid-column: 1; font: 500 13px/1.3 var(--mono); color: var(--mid); }
.ch__go { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 400 28px/1 var(--mono); transition: transform .28s; }
.ch:hover .ch__go { transform: translate(4px, -4px); }
.chan__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 16px; }
.chan__k { margin: 0; font: 700 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.chan__more { font: 700 13px/1 var(--mono); text-decoration: none; border-bottom: 2px solid var(--y); padding-bottom: 3px; }
.chan__long, .chan__shorts { list-style: none; margin: 0 0 clamp(44px, 6vw, 72px); padding: 0; display: grid; gap: clamp(12px, 1.6vw, 20px); }
.chan__long { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chan__shorts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.vc, .vs { display: block; text-decoration: none; }
.vc__img, .vs__img { display: block; overflow: hidden; background: var(--ink); border: 2px solid var(--ink); }
.vc__img { aspect-ratio: 16 / 9; } .vs__img { aspect-ratio: 9 / 16; }
.vc__img img, .vs__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.vc:hover img, .vs:hover img { transform: scale(1.05); }
.vc__t, .vs__t { display: block; margin-top: 10px; font: 700 14px/1.35 var(--mono); }
.vs__t { font-size: 12.5px; }
.vc:hover .vc__t, .vs:hover .vs__t { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 3px; }
@media (max-width: 900px) { .chan__shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .chan__list { grid-template-columns: 1fr; }
  .chan__long { grid-template-columns: 1fr; }
  .chan__shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- join ---------- */
.join .big em { font-size: .52em; margin-top: .12em; }
/* Read: the written feed (latest six posts) on graphite */
.rd { --stroke: var(--cream); background: var(--ink); color: var(--cream); padding: clamp(80px, 12vw, 160px) 0 clamp(64px, 9vw, 120px); }
.rd__lede { max-width: 60ch; margin: calc(-1 * clamp(8px, 2vw, 28px)) 0 clamp(28px, 4vw, 48px); color: var(--cream2); font-size: 15px; }
.rd__list { list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(14px, 1.8vw, 24px); }
.rdc { display: grid; gap: 10px; text-decoration: none; }
.rdc__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink2); border: 2px solid var(--rule); transition: border-color .2s; }
.rdc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.rdc__b { position: absolute; left: 8px; top: 8px; padding: 4px 7px 3px; font: 700 10.5px/1 var(--mono); letter-spacing: .12em; background: var(--y); color: var(--ink); }
.rdc__b--longform { background: var(--ink); color: var(--y); outline: 2px solid var(--y); outline-offset: -2px; }
.rdc__t { font: 700 15px/1.35 var(--mono); }
.rdc__m { font: 500 12px/1.4 var(--mono); color: var(--mute); }
.rdc:hover .rdc__img { border-color: var(--y); } .rdc:hover img { transform: scale(1.04); }
.rdc:hover .rdc__t { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 3px; }
.rd__more { display: flex; gap: 24px; margin: 0; }
@media (max-width: 900px) { .rd__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rd__list { grid-template-columns: 1fr; } }
.join { --stroke: var(--cream); background: var(--ink); color: var(--cream); border-top: 1px solid var(--rule); padding: clamp(80px, 12vw, 160px) 0; }
.tiers { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.tier { display: flex; flex-direction: column; padding: 26px 24px; border: 2px solid var(--rule); background: var(--ink2); }
.tier--hot { background: var(--y); color: var(--ink); border-color: var(--y); }
.tier__n { margin: 0; font: 700 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.tier__p { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.tier__p b { font: 800 clamp(56px, 6vw, 84px)/1 var(--cond); }
.tier__p span { font: 700 15px/1 var(--mono); }
.tier__note { margin: 0 0 18px; font-size: 13px; opacity: .78; }
.tier__f { list-style: none; margin: 0 0 24px; padding: 0; font-size: 14px; line-height: 1.5; flex: 1; }
.tier__f li { padding: 8px 0; border-top: 1px solid var(--rule); }
.tier--hot .tier__f li { border-color: var(--rule-ink); }
.tier__f li::before { content: "→ "; color: var(--y); }
.tier--hot .tier__f li::before { color: var(--ink); }
.tier__cta { display: block; text-align: center; padding: 15px 16px 14px; background: var(--cream); color: var(--ink); text-decoration: none; font: 700 15px/1 var(--mono); border: 2px solid var(--cream); }
.tier__cta small { font-weight: 400; font-size: 12px; opacity: .7; }
.tier__cta:hover { background: var(--y); border-color: var(--y); }
.tier--hot .tier__cta { background: var(--ink); color: var(--y); border-color: var(--ink); }
.tier--hot .tier__cta:hover { background: var(--cream); color: var(--ink); }
.join__strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0; margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--cream2); }
.join__strip p { margin: 0; }
.join__strip b { color: var(--y); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

/* newsletter (markup from lib/newsletter.mjs) */
.nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 24px 48px; align-items: center; padding: clamp(24px, 3vw, 40px); background: var(--cream); color: var(--ink); margin-bottom: clamp(48px, 6vw, 80px); }
.nl__k { margin: 0 0 8px; font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.nl__t { margin: 0 0 10px; font: 800 clamp(30px, 3.4vw, 48px)/1 var(--cond); text-transform: uppercase; }
.nl__b { margin: 0 0 10px; font-size: 14px; }
.nl__alt { margin: 0; font-size: 13px; }
.nl__frame { background: #fff; border: 2px solid var(--ink); min-width: 0; }
.nl__frame iframe { display: block; width: 100%; height: 150px; border: 0; }
@media (max-width: 860px) { .nl { grid-template-columns: 1fr; } }

.faq { max-width: 860px; }
.faq .chan__k { margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font: 800 clamp(20px, 2vw, 26px)/1.15 var(--cond); text-transform: uppercase; letter-spacing: .01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--y); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; font-size: 14px; color: var(--cream2); max-width: 70ch; }

/* ---------- footer ---------- */
.hf { background: var(--ink); color: var(--cream); padding: 0 0 28px; border-top: 1px solid var(--rule); overflow-x: clip; }
.hf__in { position: relative; }
/* Xy: 24x24 sprite at a whole-number scale (--u is one sprite pixel). In the footer he's large; out on the page he
   floats at --xs 3 along the bottom edge, below the nav (z 30). Eyes and effects are drawn in sprite pixels. */
.xyw { --xs: 5; --u: calc(var(--xs) * 1px); --ex: 0; --ey: 1; position: absolute; z-index: 2; top: 48px; right: var(--side); width: calc(24px * var(--xs)); height: calc(24px * var(--xs)); }
.xy { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: grab; transform-origin: 50% 100%; touch-action: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.xy img, .xyg { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; pointer-events: none; }
.xy__eye { position: absolute; display: none; width: var(--u); height: var(--u); background: #0E0F0E; left: calc((8 + var(--ex)) * var(--u)); top: calc((9 + var(--ey)) * var(--u)); pointer-events: none; }
.xy__eye--r { left: calc((14 + var(--ex)) * var(--u)); }
.xyw[data-pose="look"] .xy__eye { display: block; }
.xyw--flip .xy img { transform: scaleX(-1); }
/* disco: the hip moves one sprite pixel to the side on every other beat (whole pixels, no rotation) */
.xyw--hip .xy img { transform: translateX(var(--u)); }
.xyw--disco { z-index: 23; } /* above the party's light layer (22) while he dances in the footer */
.xyw--wait .xy { opacity: 0; }
.xyw--out { position: fixed; z-index: 25; left: 0; top: 0; right: auto; --xs: 3; will-change: transform; }
.xyw--drag .xy { cursor: grabbing; }
.xy__x { position: absolute; top: -10px; right: -12px; width: 22px; height: 22px; padding: 0; border: 2px solid var(--ink); background: var(--y); color: var(--ink); font: 700 14px/16px var(--mono); cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 2px 2px 0 var(--ink); }
.xyw--out:hover .xy__x, .xy__x:focus-visible, .xyw--out:focus-within .xy__x { opacity: 1; }
@media (hover: none) { .xy__x { opacity: 1; } }
.xyw--drag .xy__x, .xyw--fast .xy__x { opacity: 0 !important; }
.xyg[hidden] { display: none; }
.xyg { position: fixed; left: 0; top: 0; z-index: 24; pointer-events: none; }
/* speed lines behind him while he's flung */
.xyw--fast::before { content: ""; position: absolute; top: 30%; left: 100%; width: calc(10 * var(--u)); height: calc(var(--u) * 7); pointer-events: none;
  background: linear-gradient(var(--y) 0 0) 0 0 / 100% var(--u) no-repeat, linear-gradient(var(--cream) 0 0) calc(3 * var(--u)) calc(3 * var(--u)) / 70% var(--u) no-repeat, linear-gradient(var(--y) 0 0) var(--u) calc(6 * var(--u)) / 80% var(--u) no-repeat; opacity: .8; }
.xyw--fast.xyw--left::before { left: auto; right: 100%; }
/* effects layer: Zzz (doze), stars (dizzy), sparkles (party), all in sprite pixels */
.xy__fx { position: absolute; inset: 0; pointer-events: none; }
.xy__fx::before, .xy__fx::after { content: ""; position: absolute; width: var(--u); height: var(--u); opacity: 0; }
.xyw--doze .xy__fx::before, .xyw--doze .xy__fx::after { background: transparent; left: 72%; top: 6%; color: var(--cream);
  box-shadow: 0 0, var(--u) 0, calc(2 * var(--u)) 0, var(--u) var(--u), 0 calc(2 * var(--u)), var(--u) calc(2 * var(--u)), calc(2 * var(--u)) calc(2 * var(--u));
  animation: xy-z 2.4s steps(6, end) infinite; }
.xyw--doze .xy__fx::after { left: 86%; top: -10%; animation-delay: 1.2s; }
@keyframes xy-z { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(3 * var(--u)), calc(-6 * var(--u))); } }
.xyw--dizzy .xy__fx::before, .xyw--dizzy .xy__fx::after { background: transparent; left: 46%; top: 2%; color: var(--y);
  box-shadow: var(--u) 0, 0 var(--u), var(--u) var(--u), calc(2 * var(--u)) var(--u), var(--u) calc(2 * var(--u)); animation: xy-orbit 0.9s steps(8, end) infinite; }
.xyw--dizzy .xy__fx::after { color: var(--cream); animation-delay: -.45s; }
@keyframes xy-orbit { 0% { opacity: 1; transform: translate(calc(-8 * var(--u)), 0); } 25% { transform: translate(0, calc(-2 * var(--u))); } 50% { transform: translate(calc(8 * var(--u)), 0); } 75% { transform: translate(0, calc(2 * var(--u))); } 100% { opacity: 1; transform: translate(calc(-8 * var(--u)), 0); } }
.xyw--party .xy__fx::before, .xyw--party .xy__fx::after { background: transparent; left: 48%; top: 20%; color: var(--y);
  box-shadow: calc(-9 * var(--u)) calc(-4 * var(--u)), calc(9 * var(--u)) calc(-5 * var(--u)), calc(-7 * var(--u)) calc(5 * var(--u)), calc(8 * var(--u)) calc(4 * var(--u)), 0 calc(-9 * var(--u));
  animation: xy-burst .9s steps(5, end) forwards; }
.xyw--party .xy__fx::after { color: var(--cream); transform: rotate(45deg); }
@keyframes xy-burst { 0% { opacity: 1; scale: .3; } 70% { opacity: 1; } 100% { opacity: 0; scale: 1.5; } }
/* dialogue box: a retro handheld-RPG text box. Off-white panel, a thick dark border with stepped (pixel-rounded) corners
   drawn from four offset shadows, a thin inner rule, three rows of a self-hosted OFL pixel font (Press Start 2P; 12px
   is a whole number of device pixels per font pixel at 2x), and a blinking ▼ when there's more to read. */
@font-face { font-family: "Press Start 2P"; src: url("/assets/fonts/press-start-2p-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
.xyb { --bd: #1F2123; --pp: #FBFAF4; position: fixed; left: 0; top: 0; z-index: 26; width: min(372px, calc(100vw - 36px)); margin: 0; padding: 18px 20px 16px; background: var(--pp); color: var(--bd); cursor: pointer;
  box-shadow: 0 -4px 0 var(--bd), 0 4px 0 var(--bd), -4px 0 0 var(--bd), 4px 0 0 var(--bd), 0 0 0 8px var(--pp), 0 0 0 10px var(--bd), 10px 14px 0 4px rgba(0, 0, 0, .45); }
.xyb[hidden] { display: none; }
.xyb__t { margin: 0; height: calc(3 * 22px); overflow: hidden; white-space: pre; font: 400 12px/22px "Press Start 2P", ui-monospace, monospace; letter-spacing: 0;
  -webkit-font-smoothing: none; -moz-osx-font-smoothing: grayscale; font-smooth: never; text-rendering: optimizeSpeed; }
.xyb__next { position: absolute; right: 14px; bottom: 9px; font: 400 10px/1 "Press Start 2P", monospace; font-style: normal; color: var(--bd); opacity: 0; -webkit-font-smoothing: none; }
.xyb--more .xyb__next { opacity: 1; animation: xyb-blink 1s steps(1, end) infinite; }
@keyframes xyb-blink { 50% { opacity: 0; } }
.xyb__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { .xyw { --xs: 4; top: 32px; } .xyw--out { --xs: 3; } }
/* Xy's context menu (right-click / long-press), above the nav (30): an ink panel with a hard yellow offset shadow, a pixel-font title, and
   one row per move with the gesture that does it. The active row is yellow on ink. */
.xym { position: fixed; left: 0; top: 0; z-index: 40; width: max-content; min-width: 236px; max-width: calc(100vw - 16px); margin: 0; padding: 6px; background: var(--ink); color: var(--cream);
  border: 2px solid var(--cream); box-shadow: 6px 6px 0 var(--y); font: 500 13px/1.2 var(--mono); }
.xym[hidden] { display: none; }
.xym__h { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 6px; padding: 8px 10px 9px; border-bottom: 1px solid var(--rule);
  font: 400 10px/1 "Press Start 2P", ui-monospace, monospace; color: var(--y); -webkit-font-smoothing: none; }
.xym__h span { color: var(--mute); }
.xym__i { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 24px; padding: 9px 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xym__i[hidden] { display: none; }
.xym__i kbd { font: 400 11px/1 var(--mono); color: var(--mute); }
.xym__i:hover, .xym__i:focus { outline: none; background: var(--y); color: var(--ink); }
.xym__i:hover kbd, .xym__i:focus kbd { color: var(--ink); }
.xym__i:focus-visible { outline: 2px solid var(--cream); outline-offset: -4px; }
.xym__n { width: 0; min-width: 100%; margin: 6px 0 0; padding: 9px 10px 6px; border-top: 1px solid var(--rule); font-size: 11px; line-height: 1.5; color: var(--mute); }
.hf__big { position: relative; width: fit-content; margin: 0 0 24px; padding-top: .1em; font: 800 clamp(120px, 30vw, 420px)/.86 var(--cond); letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 2px rgba(241, 238, 230, .22); }
.hf__big em { font-style: normal; -webkit-text-stroke-color: var(--y); }
/* hover effect (src/hf500.js): a canvas over the word takes over its drawing while it plays */
.hf__big.is-fx, .hf__big.is-fx em { -webkit-text-stroke-color: transparent; }
.hf__fx { position: absolute; pointer-events: none; image-rendering: pixelated; }
.hf__fx[hidden] { display: none; }
.hf__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-bottom: 36px; }
.hf__name { margin: 0; font: 800 30px/1 var(--cond); text-transform: uppercase; }
.hf__tag { margin: 8px 0 18px; font-size: 14px; color: var(--cream2); max-width: 44ch; }
.hf__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; font-size: 14px; }
.hf__list a { display: inline-block; padding: 5px 0; text-decoration: none; }
.hf__list a:hover { color: var(--y); }
.hf__fine { margin: 0; font-size: 12px; color: var(--mute); }
.hf__fine a { color: var(--mute); }
.hf__fine .legal-links a { margin-left: 14px; }
.hf__fine .legal-links a:hover { color: var(--y); }
@media (max-width: 640px) { .hf__cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.hf__tag a { color: var(--y); text-decoration: none; }
.hf__tag a:hover, .hf__tag a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Disco party (src/disco.js): fixed overlays that never catch the pointer. The light layer (a soft veil plus additive
   light) sits under Xy (25); the ball and its string hang above the nav (30). The two buttons are the only targets. */
.disco { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
.disco--back { z-index: 22; }
.disco--front { z-index: 31; }
.disco__ui { position: fixed; z-index: 32; right: var(--side); top: calc(var(--bar) + 14px); display: flex; gap: 8px; transition: opacity .4s; }
.disco__ui--out { opacity: 0; pointer-events: none; }
.disco__b { padding: 8px 12px; border: 2px solid var(--cream); background: var(--ink); color: var(--cream); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; box-shadow: 3px 3px 0 var(--y); }
.disco__b[aria-pressed="true"] { background: var(--y); color: var(--ink); border-color: var(--y); box-shadow: 3px 3px 0 var(--cream); }
.disco__sr { position: fixed; left: 0; top: 0; margin: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
