/* Site chrome for the library homepage. A dark gallery wall: graphite, hairlines, fine grain.
   The chrome has no accent of its own — every color on the page comes from the Style Packs.
   Not part of any pack. */
:root {
  --bg: #0F0F11;
  --bg-raise: #151518;
  --bg-card: #18181C;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #F3F3F1;
  --muted: #A1A1A8;
  --faint: #8A8A93; /* ≥ 5:1 on --bg: it carries small text (notes, captions, counts) */
  --radius: 18px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --top-h: 64px; /* sticky header height: the wall's sticky bar and anchor offsets follow it */
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; } /* fallback; site/smooth-scroll.js takes over when it runs */
body {
  margin: 0;
  /* Pre-baked 64x64 noise PNG tile (zero per-frame SVG feTurbulence filter cost) + ambient washes */
  background:
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAMbklEQVR42nWb227suq5EZesuWfr/v+2DeWAFYw14PwRJun2RqWKRLNLh9/uF3+/3/H6/+P6k3+83fr/f+v1+/f1svD/lPf7fZ/X9nd9z+vv3uc6/Y/f7WX2vl3Du9f6s99j7XcfzHhfezxPWEd9zzjWe97t/f0+su733Pd/d79/7/b+9123h/bLgxvd7QMHv+X63sOj7/XxigWdR410AH2bixsfQF655vefk97hjgPoeO9/zGj6rMG7BWoqMcL/XW+9PeI0xz+6394v5frHez/N78llsxa6297Pxft5x3A0EnN0+1yvvOTcMdY7jDsb3nImNuPH5MdB5yLOWg+CGNXGTzrr+HV/Ce/AFq288ZAc0Jx7uLOog4xiD50Uc1wHH/gH7gYc/5wy4De97Y2MubN4FtzzIzPjunLuxCTUIQuld0Mb/3JkKaF/gDkOQvHIWS9/j9Rug/OAn43eHIR8giPet4KsgNz7GW3Dzf9e5A0jqgjG6COjCDlcZp4AAD+Hwp2OxGxAvH6R7OGHAUOP93YGsG4T8vH8vrOE8x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SBLnGH3HsUPDUVWo/ZsPuJQDMJdeIsWGXQ6CfNTLC+7NDzVR44dUfWsCtSumc9bYQ5Qc0q5qsfGtGEp3MYj0hmb1th6wit0Zi5taX0V1+8K1kgqrJtUo6uXKpknToASIsw2sNrOMRlT9RxKjVhfVs89SZJZi6xBsy4fvRbhZU4rcJH4WJTxJblQkqRcUVhX3ih85BTvT+YTBS295FjVGp5Ie1wsMX4/S6Kb6+9HLUA9yiFvzAhmoZMc5gC8eqVdF8wZFc4ELPNNPGNzK6KjxWSkaCkVDE95RLyyTxRfiOydUw8dE+vp402vJMFvDnV2ttI4NJfkGIGYFlZLh46WHoTbUrX57VkRIGqziuwYNxo1KiPaHqsTBS84d3xqM2KoFmFs0kPGSRjCDkppHcz5VXd+ieUKmzFkvYAclJltvd4+PrK5rimxJ7Cjq7YWPV+qZHmcleVPckv4PptpDYrjRPdQAAAAASUVORK5CYII="),
    radial-gradient(900px 520px at 78% -8%, rgba(124, 85, 255, 0.16), transparent 60%),
    radial-gradient(700px 480px at 8% 4%, rgba(168, 230, 207, 0.10), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: none; /* a pack's body transition (Atelier) must not reach the site chrome */
}
/* Clear any pack's body::before backdrop (e.g. Atelier) so site chrome stays neutral. */
body::before { content: none; }
:where(a) { color: inherit; text-decoration: none; }
:where(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
:where(img) { display: block; max-width: 100%; }
:where(button) { font: inherit; color: inherit; }
:where(code, pre) { font-family: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace; }
/* Site-chrome focus ring only — never override border-radius or leak into live pack stages. */
:focus-visible:not(.wstage, .wstage *, .same__inner, .same__inner *) { outline: 2px solid #fff; outline-offset: 3px; }
.top nav a, .names a, .foot a { border-radius: 4px; }
::selection { background: rgba(255, 255, 255, 0.9); color: #111; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 40px, 1280px); margin: 0 auto; }
main { overflow-x: clip; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.top.is-scrolled { background: rgba(15, 15, 17, 0.72); border-color: var(--line); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.top__in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand__dots { display: grid; grid-template-columns: repeat(3, 6px); gap: 2.5px; }
.brand__dots i { width: 6px; height: 6px; border-radius: 50%; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.02); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.pill:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.28); }
.pill:active { transform: scale(0.97); transition-duration: .12s; }
.pill--solid { background: var(--ink); border-color: var(--ink); color: #111; }
.pill--solid:hover { background: #fff; border-color: #fff; transform: translateY(-1px); }
.pill--solid:active { transform: scale(0.97); }
.pill--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.pill svg { width: 16px; height: 16px; }
.pill.is-copied { border-color: rgba(168, 230, 207, 0.6); }
.pill.is-failed { border-color: rgba(255, 138, 128, 0.6); }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 32px; align-items: center; min-height: 680px; padding: 36px 0 56px; }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--muted); }
.chip b { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: #111; font-size: 11.5px; font-weight: 600; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(46px, 6.6vw, 88px); line-height: 0.96; letter-spacing: -0.05em; font-weight: 600; }
.hero h1 > span:not(.w) { display: block; color: var(--muted); }
.hero__lede { max-width: 50ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__cta .pill { height: 44px; padding: 0 20px; font-size: 15px; }
.names { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.names a { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; color: var(--muted); transition: color .2s; }
.names a:hover { color: var(--ink); }
.names i { width: 8px; height: 8px; border-radius: 50%; }

/* Perspective wall of real page renders: flat 2D columns on a tilted plane with a single radial
   feather mask (no preserve-3d, no mask-composite intersect, no opaque box edge over the aurora). */
.wall {
  position: relative;
  pointer-events: none;
  height: 700px;
  margin: -40px 0;
  overflow: hidden;
  contain: layout style paint;
  -webkit-mask-image: radial-gradient(ellipse 68% 66% at 54% 50%, #000 50%, rgba(0, 0, 0, 0.72) 70%, transparent 98%);
  mask-image: radial-gradient(ellipse 68% 66% at 54% 50%, #000 50%, rgba(0, 0, 0, 0.72) 70%, transparent 98%);
}
/* Each column holds two identical 8-card sets and translates by -50% for a mathematically seamless loop. */
.wall__plane { position: absolute; left: 50%; top: -120px; display: grid; grid-template-columns: repeat(6, 168px); gap: 12px; transform-origin: 50% 470px; transform: translate3d(-48%, 0, 0) perspective(1800px) rotateX(16deg) rotateZ(14deg); will-change: transform; }
.wall__col { display: flex; flex-direction: column; gap: 12px; contain: layout style paint; animation: wall-up 74s linear infinite; will-change: transform; }
.wall__col:nth-child(2) { animation-name: wall-down; animation-duration: 60s; margin-top: -60px; }
.wall__col:nth-child(3) { animation-duration: 54s; margin-top: -30px; }
.wall__col:nth-child(4) { animation-name: wall-down; animation-duration: 66s; margin-top: -80px; }
.wall__col:nth-child(5) { animation-duration: 78s; margin-top: -20px; }
.wall__col:nth-child(6) { animation-name: wall-down; animation-duration: 68s; margin-top: -50px; }
.wall figure { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: #222; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.58); }
.wall img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.wall figcaption { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; font-size: 11px !important; border-radius: 999px; background: rgba(15, 15, 17, 0.86); color: var(--ink); }
@keyframes wall-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes wall-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }

/* ---------- Section heads ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
[id] { scroll-margin-top: calc(var(--top-h) + 8px); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; align-items: end; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.section__head p { color: var(--muted); font-size: 16px; max-width: 52ch; }

/* ---------- Style showcases ---------- */
.shows { display: flex; flex-direction: column; gap: 120px; }
.show { --c: #fff; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.show:nth-child(even) .show__media { order: 2; }
.show__media { position: relative; isolation: isolate; }
/* Soft ambient glow using layered radial-gradient (zero filter: blur cost) */
.show__media::before { content: ""; position: absolute; inset: -4% -2% -14%; z-index: -1; border-radius: 48px; background: radial-gradient(62% 62% at 50% 56%, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 10%, transparent) 46%, transparent 74%); opacity: 0.9; pointer-events: none; }
.frame { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--bg-raise); box-shadow: 0 38px 72px -32px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(0, 0, 0, 0.4); transition: box-shadow .45s var(--ease); }
.show:hover .frame { box-shadow: 0 46px 88px -36px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08); }
/* Scroll-linked: smooth 2D lift & scale (no 3D perspective warp over live 1280x800 iframes) */
.show__media .frame { transform: translate3d(0, calc((1 - var(--p, 1)) * 34px), 0) scale(calc(0.955 + var(--p, 1) * 0.045)); transform-origin: 50% 20%; }
.show__body { opacity: calc(0.18 + var(--p, 1) * 0.82); transform: translate3d(0, calc((1 - var(--p, 1)) * 36px), 0); }
.frame__bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }
.frame__dots { display: flex; gap: 6px; }
.frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.frame__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12.5px/1 "Geist Mono", ui-monospace, monospace; color: var(--faint); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); }
.seg button { height: 26px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.seg button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
.seg button:active { transform: scale(0.96); transition-duration: .12s; }
.seg button:disabled { opacity: .4; cursor: default; }
.frame__open { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.frame__open:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.frame__open:active { transform: scale(0.94); }
.frame__open svg { width: 16px; height: 16px; }
.frame__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-card); contain: layout size style; }
.frame__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .25s ease; }
.frame__view iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.frame__view.is-live iframe { opacity: 1; pointer-events: auto; }
.frame__view.is-live .frame__poster { opacity: 0; pointer-events: none; }

.show__name { font-size: clamp(48px, 6vw, 80px); line-height: 0.95; letter-spacing: -0.03em; color: var(--ink); }
.show__lede { margin-top: 18px; color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 46ch; }
.swatches { display: flex; gap: 8px; margin-top: 26px; }
.swatches span { position: relative; width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.swatches span::after { content: attr(data-hex); position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); font: 11px "Geist Mono", monospace; color: var(--faint); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.swatches:hover span::after { opacity: 1; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.meta dt { color: var(--faint); }
.meta dd { color: var(--ink); }
.show__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ---------- Same markup ---------- */
.same { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.same figure { display: flex; flex-direction: column; gap: 12px; flex: 0 1 calc((100% - 4 * 14px) / 5); min-width: 0; }
.same__view { position: relative; overflow: hidden; min-height: 300px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255, 255, 255, 0.04); transition: border-color .3s var(--ease), transform .4s var(--ease); }
.same figure:hover .same__view { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.same__inner { display: flex; flex-direction: column; justify-content: center; width: 360px; min-height: 456px; transform-origin: 0 0; }
/* The compare pages' own layout helpers, scoped to the inline cards */
.same__inner .spec { display: flex; flex-direction: column; gap: 16px; }
.same__inner .line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.same__inner .line--start { justify-content: flex-start; flex-wrap: wrap; }
.same figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; }
.same figcaption code { font-size: 12px; color: var(--faint); }

/* ---------- Use ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); }
.way h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.way p { color: var(--muted); font-size: 14.5px; }
.code { position: relative; margin-top: auto; }
.code pre { margin: 10px 0 0; min-height: 128px; padding: 40px 16px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #0B0B0D; color: #D7D7DA; font-size: 12.5px; line-height: 1.65; white-space: pre; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
.code .pill { position: absolute; top: 18px; right: 8px; z-index: 1; height: 26px; padding: 0 10px; font-size: 12px; background: #1C1C20; }

.legal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: 14px; color: var(--muted); }
.legal strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 32px 0 56px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.foot a:hover { color: var(--ink); }

/* ---------- Motion system (shared with the component wall) ---------- */
/* Aurora: nine slow, blurred lights in the nine languages' colors */
.hero__copy { position: relative; isolation: isolate; }
.aurora { position: absolute; inset: -120px -140px -100px; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0.62; -webkit-mask-image: radial-gradient(closest-side at 50% 48%, #000 20%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 48%, #000 20%, transparent 100%); }
/* Each light is a soft radial gradient moved on the compositor: no blur filter, no blend mode, so it costs nothing per frame. */
.aurora i { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 78%, transparent), color-mix(in srgb, var(--c) 26%, transparent) 55%, transparent); will-change: transform; animation: aurora 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { --c: #A8E6CF; left: -4%; top: -2%; }
.aurora i:nth-child(2) { --c: #7C55FF; right: -2%; top: -12%; animation-duration: 31s; animation-delay: -7s; }
.aurora i:nth-child(3) { --c: #2F7BF5; left: 24%; top: 26%; animation-duration: 23s; animation-delay: -13s; }
.aurora i:nth-child(4) { --c: #2C8C8F; left: -14%; top: 44%; animation-duration: 29s; animation-delay: -4s; }
.aurora i:nth-child(5) { --c: #A9C7EC; right: 10%; top: 42%; animation-duration: 34s; animation-delay: -10s; }
.aurora i:nth-child(6) { --c: #FF4F00; width: 40%; right: 30%; top: -18%; opacity: .55; animation-duration: 37s; animation-delay: -16s; }
.aurora i:nth-child(7) { --c: #38BDF8; width: 46%; left: 44%; top: 8%; opacity: .7; animation-duration: 28s; animation-delay: -21s; }
.aurora i:nth-child(8) { --c: #C8FF00; width: 34%; left: 8%; top: 64%; opacity: .45; animation-duration: 33s; animation-delay: -6s; }
.aurora i:nth-child(9) { --c: #C85A32; width: 42%; right: -8%; top: 62%; opacity: .6; animation-duration: 30s; animation-delay: -12s; }
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(14%, -10%, 0) scale(1.18); } 100% { transform: translate3d(-12%, 12%, 0) scale(0.88); } }

/* Pointer light over the hero — full-bleed across the viewport so it never clips at the .wrap gutter */
.hero__glow { position: absolute; top: -120px; bottom: -120px; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent); }
.hero__glow i { position: absolute; left: 0; top: 0; width: 960px; height: 960px; margin: -480px 0 0 -480px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent); opacity: 0; transition: opacity .6s; }
.hero__glow.is-on i { opacity: 1; will-change: transform; }

/* Words rise out of a mask, one after another (compositor-only transform + opacity, no per-frame blur) */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.02em 0.1em; margin: -0.06em -0.02em -0.1em; }
.reveal-words .w > span { display: inline-block; transform: translate3d(0, 108%, 0) rotate(3deg); opacity: 0; transition: transform .85s cubic-bezier(0.16, 1, 0.3, 1), opacity .65s ease; transition-delay: calc(var(--i, 0) * 55ms); }
.reveal-words.is-revealed .w > span { transform: none; opacity: 1; }

/* Blocks rise in after the headline, or when they scroll into view (compositor-only) */
.js .rise { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .75s ease, transform .85s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--d, 0) * 70ms); }
.js .rise.is-in { opacity: 1; transform: none; }

/* A slow ring of the nine colors around the main call to action — pure GPU transform rotation (0 main-thread paint) */
.pill--beam { position: relative; isolation: isolate; box-shadow: 0 0 24px -4px rgba(124, 85, 255, 0.38), 0 0 24px -8px rgba(168, 230, 207, 0.32); transition: background-color .2s, border-color .2s, transform .2s var(--ease), box-shadow .3s var(--ease); }
.pill--beam:hover { box-shadow: 0 0 32px -2px rgba(124, 85, 255, 0.52), 0 0 28px -4px rgba(56, 189, 248, 0.38); }
.pill__beam { position: absolute; inset: -3px; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; padding: 2px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.pill__beam i { position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; background: conic-gradient(#A8E6CF, #7C55FF, #2F7BF5, #2C8C8F, #A9C7EC, #FF4F00, #38BDF8, #C8FF00, #C85A32, #A8E6CF); will-change: transform; animation: beam-spin 5s linear infinite; }
@keyframes beam-spin { to { transform: rotate(360deg); } }

/* Live component stages: layout only — color, radius, borders and shadows come from the pack's own class */
:where(.wstage) { border-radius: 22px; }
.wstage { position: relative; display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: 16px 20px; min-height: 220px; margin: 0; padding: 44px 28px 74px; overflow: hidden; }
.wstage > * { position: relative; z-index: 1; }

/* ---------- Live components (homepage marquee) ---------- */
.live { position: relative; padding: 40px 0 96px; overflow: hidden; }
.live__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) auto; gap: 18px 40px; align-items: end; margin-bottom: 40px; }
.live__head h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.live__head h2 > span:not(.w) { display: block; color: var(--muted); }
.live__head p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.marquee { position: relative; overflow: hidden; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee + .marquee { margin-top: 8px; }
.marquee__track { display: flex; width: max-content; will-change: transform; animation: marquee var(--mq-dur, 70s) linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-dragging .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.mq-card { position: relative; display: flex; flex: none; min-width: 320px; max-width: 440px; margin-right: 18px; contain: layout style; transition: transform .5s var(--ease); }
.mq-card::after { content: ""; position: absolute; inset: 0; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; z-index: 2; }
.mq-card:has(.sketch-flow) { width: 620px; max-width: 620px; }
.mq-card:has(.zine-board, .sketch-doodle) { width: 400px; }
.mq-card .wstage { flex: 1; min-height: 244px; padding: 28px 28px 66px; }
.mq-card:hover { transform: translateY(-4px); }
.mq-tag { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; background: rgba(18, 18, 21, 0.9); color: #F3F3F1; font: 500 12.5px/1 "Geist", system-ui, sans-serif; }
.mq-tag i { width: 7px; height: 7px; border-radius: 50%; }
.mq-tag b { font-size: 13.5px; }
.mq-tag span { color: #B8B8BE; }
.mq-tag:hover { background: rgba(30, 30, 34, 0.92); }
/* One quiet strip with hairline dividers, not four boxes */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-block: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .wall { height: 460px; margin: 0 -20px; }
  .show, .show:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .show:nth-child(even) .show__media { order: 0; }
  .same figure { flex-basis: calc((100% - 2 * 14px) / 3); }
  .section__head { grid-template-columns: minmax(0, 1fr); }
  .legal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aurora { inset: -80px -40px -60px; }
}
@media (max-width: 1000px) {
  .live__head { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  /* The page links become a second header row (scrolls sideways if it must); --top-h follows. */
  :root { --top-h: 100px; }
  .top__in { flex-wrap: wrap; height: auto; row-gap: 0; column-gap: 12px; }
  .brand { height: 64px; }
  .top nav { order: 3; flex: 0 0 100%; align-items: center; gap: 20px; height: 35px; margin: 0; overflow-x: auto; scrollbar-width: none; font-size: 13.5px; white-space: nowrap; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { padding: 6px 0; }
  .top nav a:focus-visible { outline-offset: -2px; }
  .top__in .pill { margin-left: auto; }
  .ways, .legal { grid-template-columns: minmax(0, 1fr); }
  .same figure { flex-basis: calc((100% - 14px) / 2); }
  .section { padding: 72px 0; }
  .shows { gap: 80px; }
  .wall { height: 360px; }
  .wall__plane { grid-template-columns: repeat(6, 120px); }
  .frame__url { display: none; }
  .mq-card { min-width: 280px; max-width: min(360px, calc(100vw - 40px)); }
  .mq-card:has(.sketch-flow), .mq-card:has(.zine-board, .sketch-doodle) { width: min(340px, calc(100vw - 40px)); max-width: min(340px, calc(100vw - 40px)); }
}
/* Touch: small controls keep their look but get a ≥ 36px hit area. */
@media (pointer: coarse) {
  .seg button { position: relative; }
  .seg button::after { content: ""; position: absolute; inset: -6px -2px; }
}

/* Sections out of view stop their loops and release compositor layers (home.js toggles .is-paused). */
.is-paused .wall__col, .is-paused .aurora i, .is-paused .marquee__track, .is-paused .marquee__track *, .is-paused .marquee__track *::before, .is-paused .marquee__track *::after, .is-paused .pill__beam i { animation-play-state: paused !important; }
.is-paused .wall__plane, .is-paused .wall__col, .is-paused .aurora i, .is-paused .marquee__track, .is-paused .pill__beam i { will-change: auto; }
/* Marquee cards scrolled out of their row (home.js toggles .is-offscreen) pause their own loops, like the wall's cards. */
.mq-card.is-offscreen *, .mq-card.is-offscreen *::before, .mq-card.is-offscreen *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall__col, .aurora i, .marquee__track, .pill__beam i { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: 20px; }
  .reveal-words .w > span, .js .rise { opacity: 1; transform: none; }
  .show__media .frame, .show__body { transform: none; opacity: 1; }
  /* Site chrome only: live pack stages keep their own reduced-motion rules. */
  :not(.wstage, .wstage *, .same__inner, .same__inner *) { transition: none !important; }
}
