/* ================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--player-h);
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
#view { display: block; min-height: 100vh; } /* reserve space so the footer does not jump when views render */
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, input, select, label { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: var(--s-2) var(--s-4); border-radius: var(--r-1); font-weight: 700; }
.skip-link:focus { top: var(--s-3); }
.accent { color: var(--accent); }

.display {
  font-family: var(--font-sans);
  font-variation-settings: "wdth" 125;
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
}
.mono { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.02em; }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ================================================================ header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--s-5);
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 800; font-size: 1.6rem; letter-spacing: -0.05em; text-decoration: none; line-height: 1;
  font-variation-settings: "wdth" 100;
}
.logo .dot { color: var(--accent); }
.main-nav ul { display: flex; gap: var(--s-1); }
.main-nav a {
  display: block; padding: 6px 12px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.global-search { position: relative; }
.global-search input {
  width: clamp(160px, 22vw, 300px); height: 38px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); font-size: var(--fs-sm);
  transition: border-color var(--t-fast), width var(--t-med) var(--ease);
}
.global-search input::placeholder { color: var(--muted); }
.global-search input:focus { outline: none; border-color: var(--accent); }
.global-search input:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.global-search kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; pointer-events: none;
}
.global-search input:focus + kbd { display: none; }
.icon-btn.menu-btn { display: none; }
.mobile-nav { position: sticky; top: var(--header-h); z-index: 39; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-3) var(--gutter) var(--s-4); }
.mobile-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.mobile-nav a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-2); text-decoration: none; font-weight: 700; }
.mobile-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.mobile-nav form input { width: 100%; height: 44px; margin-bottom: var(--s-3); padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); }

/* ================================================================ buttons, pills, badges */
.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  text-decoration: none;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.icon-btn--accent:hover { border-color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 3px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  font: 700 11px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--muted);
  transition: border-color var(--t-fast);
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-pill); transition: background var(--t-fast), color var(--t-fast); }
:root[lang="en"] .lang-btn [data-l="en"], :root[lang^="pt"] .lang-btn [data-l="pt"] { background: var(--accent); color: var(--accent-ink); }
.attr-box .attr-note { display: block; margin-top: 8px; font-style: normal; font-family: var(--font-sans); font-size: 11px; color: var(--muted); }
.board-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink);
  font: 700 10px/18px var(--font-mono); text-align: center;
}
.board-count[data-zero] { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 42px; padding: 0 6px 0 18px;
  border: 1px solid var(--ink); border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn .btn-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--ink); transition: transform var(--t-med) var(--ease); }
.btn .btn-ico svg { width: 14px; height: 14px; }
.btn:hover .btn-ico { transform: rotate(45deg); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost .btn-ico { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent .btn-ico { background: var(--accent-ink); color: var(--accent); }
.btn--plain { padding: 0 18px; }
.btn:active { transform: scale(0.97); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: var(--fs-sm); text-decoration: none;
  padding-bottom: 4px; border-bottom: 1.5px solid currentColor;
}
.link-arrow svg { width: 13px; height: 13px; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

.pill {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border: 1px solid currentColor; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em;
}
.pill--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; flex: none;
  border-radius: 5px; border: 1px solid var(--line-strong);
  font: 700 10px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.badge--cc0 { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge--pd { color: var(--ink); }
.badge--by { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.circle-arrow {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1.5px solid currentColor; border-radius: 50%;
  transition: transform var(--t-med) var(--ease), background var(--t-fast), color var(--t-fast);
}
.circle-arrow svg { width: 16px; height: 16px; }

/* ================================================================ boot / errors */
.boot { min-height: 60vh; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }
.boot-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 8px; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: 0.2; } }
.notice { max-width: 640px; margin: var(--s-9) auto; padding: var(--s-6); border: var(--border) solid var(--frame); border-radius: var(--r-3); }
.notice h1 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.notice code, .notice pre { font-family: var(--font-mono); font-size: var(--fs-sm); background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.notice pre { padding: var(--s-3); margin: var(--s-3) 0; overflow-x: auto; }

/* ================================================================ HOME — hero (full-bleed film) */
.hero { padding-top: var(--s-4); padding-bottom: var(--s-7); }
.hero-frame {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 560px; height: calc(100svh - var(--header-h) - var(--s-4) - var(--s-3)); max-height: 1300px;
  border-radius: var(--r-3); background: #120f1c;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7);
  color: #f3f0ea;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; z-index: -2; }
/* legibility: soft top + strong bottom gradient, plus a light film grain like the reference */
.hero-shade {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(8 6 14 / 0.45) 0%, transparent 22%, transparent 45%, rgb(8 6 14 / 0.55) 75%, rgb(8 6 14 / 0.82) 100%),
    var(--grain);
  background-blend-mode: normal, overlay;
}
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-5) 0; }
.hero-top .barcode svg { color: #f3f0ea; }
.hero-top .barcode .mono { color: rgb(243 240 234 / 0.85); }
.hero-motion, .hero-motion[aria-pressed] { position: absolute; top: 18px; right: 18px; z-index: 2; width: 38px; height: 38px; background: rgb(10 8 16 / 0.45); color: #fff; border-color: rgb(255 255 255 / 0.35); backdrop-filter: blur(6px); }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 24vw, 480px); align-items: end; gap: var(--s-6); padding: 0 var(--s-5) var(--s-5); }
.hero-word {
  font-size: clamp(5.5rem, 1rem + 22vw, 30rem); font-weight: 600; letter-spacing: -0.065em; line-height: 0.74;
  font-variation-settings: "wdth" 100; margin: 0 0 -0.04em -0.05em; user-select: none; position: relative; width: fit-content;
  text-shadow: 0 6px 40px rgb(0 0 0 / 0.25);
}
.hero-word .dot { color: var(--accent); }
.hero-side { display: flex; flex-direction: column; gap: var(--s-4); padding-bottom: var(--s-2); }
.hero-side h1 { font-size: clamp(1.25rem, 0.6rem + 1vw, 2.1rem); line-height: 1; }
.hero-side p { color: rgb(243 240 234 / 0.82); font-size: clamp(0.84rem, 0.62rem + 0.35vw, 1.1rem); }
.hero-side .hero-lead-short { display: none; }
.hero-actions { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
.hero-actions .link-arrow { color: #f3f0ea; }
.btn--light { background: #f3f0ea; border-color: #f3f0ea; color: #0b0b0a; }
.btn--light .btn-ico { background: #0b0b0a; color: #f3f0ea; }
.counter {
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r-2); padding: var(--s-4) var(--s-5);
}
.counter--band { margin-top: var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.counter-head { display: flex; align-items: center; gap: var(--s-4); }
.counter .orb { width: 34px; height: 34px; border-radius: 50%; background: var(--metal); flex: none; }
.counter .eyebrow { color: inherit; opacity: 0.8; }
.counter-title { font-size: 1.5rem; margin-top: 2px; }
.counter-digits { display: flex; align-items: flex-start; gap: 8px; }
.counter-digits div { text-align: center; }
.counter-digits b { display: block; font: 500 2rem/1 var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.counter-digits small { display: block; font: 500 10px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.counter-digits .sep { font-size: 1.5rem; line-height: 1.1; opacity: 0.6; }

/* ================================================================ HOME — steps */
/* borders on the list, not the padded wrapper, so the lines align with everything else */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-5) 0; }
.steps li + li { border-left: 1px solid var(--line); padding-left: var(--s-5); }
.steps .num { font: 500 2.4rem/1 var(--font-sans); color: var(--accent); letter-spacing: -0.04em; font-variation-settings: "wdth" 110; }
.steps .txt { font-weight: 700; text-transform: uppercase; font-size: var(--fs-sm); line-height: 1.25; font-variation-settings: "wdth" 115; }

/* ================================================================ HOME — section headers & bento */
.section { padding-block: var(--s-9) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head .aside { max-width: 30ch; font-size: var(--fs-sm); color: var(--ink-2); display: flex; gap: var(--s-4); align-items: flex-end; }
.section-head .aside .circle-arrow { color: var(--ink); }
.section-head .aside a:hover .circle-arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(45deg); }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(150px, auto); gap: var(--s-4); }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4);
  min-height: 240px; padding: var(--s-5);
  border: var(--border) solid var(--frame); border-radius: var(--r-3);
  background: var(--surface); text-decoration: none; overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile:hover .circle-arrow { transform: rotate(45deg); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); position: relative; z-index: 1; }
.tile-count { font: 400 clamp(3.5rem, 2rem + 4vw, 6rem)/0.85 var(--font-sans); letter-spacing: -0.05em; position: relative; z-index: 1; }
.tile-label { font-size: var(--fs-lg); position: relative; z-index: 1; }
.tile-sub { font-size: var(--fs-sm); opacity: 0.85; max-width: 28ch; position: relative; z-index: 1; }
.tile-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); position: relative; z-index: 1; }
.tile--images { grid-column: span 5; grid-row: span 2; color: #fff; background: #000; }
.tile--images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 1.2s var(--ease); }
.tile--images:hover img { transform: scale(1.04); }
.tile--images::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.35), transparent 40%, rgb(0 0 0 / 0.75)); }
.tile--videos { grid-column: span 4; color: #fff; background: #000; }
.tile--videos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.tile--videos .play-chip { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; z-index: 1; }
.tile--videos .play-chip svg { width: 22px; height: 22px; margin-left: 3px; }
.tile--textures { grid-column: span 3; background: var(--surface); }
.tile--textures .hatch { position: absolute; inset: 0 0 55% 0; background: repeating-linear-gradient(135deg, var(--accent) 0 1.5px, transparent 1.5px 11px); opacity: 0.9; border-bottom: var(--border) solid var(--frame); }
.tile--textures .swatches { display: flex; position: relative; z-index: 1; }
.tile--textures .swatches img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--surface); object-fit: cover; margin-right: -12px; }
.tile--sfx { grid-column: span 4; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tile--sfx canvas { width: 100%; height: 56px; position: relative; z-index: 1; }
.tile--music { grid-column: span 3; background: var(--cobalt); color: var(--cobalt-ink); border-color: var(--cobalt); }
.tile--music .disc { position: absolute; right: -50px; bottom: -50px; width: 190px; height: 190px; border-radius: 50%; background: var(--metal); box-shadow: inset 0 0 0 26px rgb(0 0 0 / 0.08); animation: spin 14s linear infinite; }
.tile--music .disc::after { content: ""; position: absolute; inset: 42%; border-radius: 50%; background: var(--cobalt); }
@keyframes spin { to { transform: rotate(1turn); } }
.tile--about { grid-column: span 5; background: var(--bg); border-style: dashed; border-color: var(--line-strong); }
.tile--about p { color: var(--ink-2); font-size: var(--fs-sm); }
.tile--about h3 { font-size: var(--fs-lg); }

/* ================================================================ HOME — category strips */
.strip { padding-top: var(--s-8); }
.strip-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: var(--s-5); padding-bottom: var(--s-4); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.strip-head .num { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent-text); }
.strip-head h3 { font-size: var(--fs-2xl); }
.strip-head h3 sup { font: 500 var(--fs-sm) var(--font-mono); vertical-align: top; margin-left: 6px; color: var(--muted); letter-spacing: 0; }
/* desktop: full-width grid of whole cards (extra cards hidden by fitRails); phones: horizontal rail (see 640px block) */
.rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-4); }
.rail--audio { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.rail > [hidden] { display: none !important; }

/* ================================================================ LIBRARY page */
.page-head { padding-top: var(--s-7); padding-bottom: var(--s-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
/* sized to the viewport so the longest title (BIBLIOTECA / MOODBOARD) always fits on one line */
.page-head h1 { font-size: clamp(3rem, 8.4vw, 8.5rem); line-height: 0.82; }
/* description + licence pills / actions sit in a strip under the title, never beside it */
.page-head > div:last-child { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4) var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.page-head > div:last-child > * { margin-top: 0 !important; }
.page-head h1 sup { font: 500 var(--fs-md) var(--font-mono); vertical-align: top; letter-spacing: 0; color: var(--accent-text); margin-left: 8px; }
.page-head > * { min-width: 0; }
.page-head p { color: var(--ink-2); max-width: 44ch; font-size: var(--fs-sm); }
.page-head .lic-summary { display: flex; gap: var(--s-2); flex-wrap: wrap; justify-content: flex-end; }

.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
  padding-block: var(--s-3);
}
.toolbar-row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.toolbar-row + .toolbar-row { margin-top: var(--s-3); }
.field { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.field:focus-within { border-color: var(--accent); }
.field label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.field select, .field input { border: 0; background: transparent; height: 100%; font-size: var(--fs-sm); min-width: 0; }
.field select:focus, .field input:focus { outline: none; }
.field select option { background: var(--surface); color: var(--ink); }
.field--search { flex: 1 1 220px; }
.field--search input { width: 100%; }
.field svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: transparent;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: lowercase; color: var(--ink-2);
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip--cat { text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; }
.chips[data-tags] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips[data-tags]::-webkit-scrollbar { display: none; }
.chips[data-tags] .chip { flex: none; }
.chip .n { opacity: 0.6; margin-left: 4px; }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-block: var(--s-4); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.result-line button { background: none; border: 0; text-decoration: underline; color: var(--ink-2); font-size: inherit; font-family: inherit; }
.empty { padding: var(--s-9) 0; text-align: center; color: var(--muted); }
.empty .display { font-size: var(--fs-2xl); color: var(--ink); margin-bottom: var(--s-3); }
.group + .group { margin-top: var(--s-8); }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.group-head h2 { font-size: var(--fs-xl); }

/* grids */
.grid { display: grid; gap: var(--s-4); }
.grid--masonry { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); grid-auto-rows: 4px; column-gap: var(--s-4); row-gap: 0; align-items: start; }
.grid--masonry > * { margin-bottom: var(--s-4); }
.grid--video { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--texture { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.grid--audio { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--music { grid-template-columns: 1fr; gap: var(--s-3); }

/* ================================================================ cards */
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-2);
  background: var(--surface); overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-med) var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.card-media img, .card-media video { width: 100%; height: auto; transition: transform 700ms var(--ease), opacity var(--t-med); }
.card:hover .card-media img { transform: scale(1.03); }
.card-media:focus-visible { outline-offset: -3px; }
.card--video .card-media, .card--texture .card-media { aspect-ratio: 16 / 9; }
.card--texture .card-media { aspect-ratio: 1; }
.card--video .card-media img, .card--video .card-media video, .card--texture .card-media img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.card--video .card-media { cursor: pointer; }
.card--video video { opacity: 0; }
.card--video.is-previewing video { opacity: 1; }
.card-dur {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  font: 700 11px/1 var(--font-mono); padding: 5px 7px; border-radius: 5px;
  background: rgb(0 0 0 / 0.65); color: #fff;
}
.card-play { position: absolute; right: 10px; bottom: 10px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.card-play svg { width: 14px; height: 14px; margin-left: 2px; }
.media-flags { position: absolute; left: 10px; top: 10px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.media-flags .badge--pd { background: rgb(0 0 0 / 0.65); color: #fff; border-color: transparent; }
.media-flags .badge--cc0 { background: #f3f0ea; color: #0b0b0a; border-color: #f3f0ea; }
.tile-flag { font: 700 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 7px; border-radius: 5px; background: rgb(0 0 0 / 0.65); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-width: 0; }
.card-title { font-weight: 700; font-size: var(--fs-sm); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-author { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-actions { display: flex; gap: 6px; flex: none; }
.card-actions .icon-btn { width: 32px; height: 32px; }
.card-actions .icon-btn svg { width: 15px; height: 15px; }
.fav-float { position: absolute; right: 10px; top: 10px; z-index: 2; width: 34px; height: 34px; background: rgb(0 0 0 / 0.55); color: #fff; border-color: rgb(255 255 255 / 0.35); opacity: 0; transition: opacity var(--t-fast), background var(--t-fast); }
.fav-float svg { width: 15px; height: 15px; }
.card:hover .fav-float, .card:focus-within .fav-float, .fav-float[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .fav-float { opacity: 1; } }

/* audio cards */
.card--audio { padding: var(--s-4); gap: var(--s-3); }
.audio-top { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.audio-top .play-btn { width: 46px; height: 46px; }
.audio-top .play-btn svg { width: 16px; height: 16px; }
.audio-text { min-width: 0; flex: 1; }
.audio-title { display: block; max-width: 100%; padding: 0; border: 0; background: none; font-weight: 700; font-size: var(--fs-sm); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-title:hover { text-decoration: underline; }
.wave { position: relative; height: 44px; }
.wave canvas { width: 100%; height: 100%; }
.wave input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; touch-action: pan-y; }
.wave:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.audio-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.audio-foot .tags { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card--audio.is-current { border-color: var(--accent); }
.card--music { display: grid; grid-template-columns: auto minmax(160px, 1.1fr) minmax(160px, 2fr) auto; align-items: center; gap: var(--s-5); padding: var(--s-3) var(--s-4); }
.card--music .num { font: 500 var(--fs-sm) var(--font-mono); color: var(--muted); width: 2ch; }
.card--music .audio-top { gap: var(--s-4); }
.card--music .meta-col { display: flex; gap: var(--s-4); align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.genre { color: var(--accent-text); text-transform: uppercase; }

/* ================================================================ credits */
.credits-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-bottom: var(--s-7); }
.lic-card { border: var(--border) solid var(--frame); border-radius: var(--r-3); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); background: var(--surface); }
.lic-card:nth-child(3) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lic-card:nth-child(3) a { color: inherit; }
.lic-card:nth-child(3) .badge { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.lic-card h3 { font-size: var(--fs-lg); }
.lic-card .count { font: 400 3rem/1 var(--font-sans); letter-spacing: -0.04em; }
.lic-card ul { font-size: var(--fs-sm); display: grid; gap: 4px; }
.lic-card li::before { content: "→ "; font-family: var(--font-mono); }
.lic-card .other { font-size: var(--fs-sm); opacity: 0.85; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); }
table.credits { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 860px; }
.credits th, .credits td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits th { position: sticky; top: 0; background: var(--surface-2); font: 700 11px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.credits th button { all: unset; cursor: pointer; }
.credits th button:focus-visible { outline: 2px solid var(--accent); }
.credits tbody tr:hover { background: var(--surface); }
.credits td.mono { white-space: nowrap; }
.credits a { color: var(--ink); }
.credits .title-btn { all: unset; cursor: pointer; font-weight: 700; }
.credits .title-btn:hover { text-decoration: underline; }
.credits .title-btn:focus-visible { outline: 2px solid var(--accent); }
.credits .attr { color: var(--muted); font-size: 12px; max-width: 46ch; }

/* ================================================================ moodboard */
.board-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ================================================================ footer */
.site-footer { margin-top: var(--s-10); background: #0a0a09; color: #f3f0ea; border-top: 1px solid #2e2d2a; }
.footer-inner { max-width: var(--maxw); margin-inline: auto; padding: var(--s-7) var(--gutter) var(--s-8); }
.footer-pills { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.footer-pills .pill--accent { color: #0b0b0a; }
.footer-mega {
  margin: var(--s-6) 0;
  font-size: clamp(3.2rem, 1rem + 11vw, 12rem); font-weight: 800; text-transform: uppercase; line-height: 0.84; letter-spacing: -0.03em;
  font-variation-settings: "wdth" 125; font-stretch: 125%;
}
.footer-mega .accent { color: #ff5a1f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); border-top: 1px solid #2e2d2a; padding-top: var(--s-5); }
.footer-grid p { color: #b9b5ad; max-width: 56ch; font-size: var(--fs-sm); }
.footer-links { display: grid; gap: 2px; justify-items: start; font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-links a:hover { color: #ff5a1f; }

/* ================================================================ mini player */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(0); transition: transform var(--t-med) var(--ease);
}
.player[hidden] { display: block; transform: translateY(110%); visibility: hidden; }
.player-progress { position: absolute; top: -1px; left: 0; right: 0; height: 2px; }
.player-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.player-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 2fr) auto auto; gap: var(--s-5); align-items: center; }
.player-transport { display: flex; gap: 6px; align-items: center; }
.player-play { width: 46px; height: 46px; }
.player-meta { display: flex; gap: var(--s-3); align-items: center; min-width: 0; }
.player-viz { width: 96px; height: 36px; flex: none; }
.player-text { min-width: 0; display: flex; flex-direction: column; }
.player-title { all: unset; cursor: pointer; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title:hover { text-decoration: underline; }
.player-title:focus-visible { outline: 2px solid var(--accent); }
.player-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub a { color: var(--ink-2); }
.player-seek { display: flex; gap: var(--s-3); align-items: center; }
.player-time { font: 500 11px var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4ch; }
.player-volume { display: flex; align-items: center; gap: 6px; }
.player-volume input { width: 90px; }

/* range inputs */
input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; height: 22px; flex: 1; min-width: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--line-strong) var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5px; border-radius: 50%; background: var(--ink); border: 0; }
input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 0; }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ================================================================ viewer dialog */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--overlay); color: var(--ink);
  display: none; grid-template-columns: minmax(0, 1fr) 360px;
}
.viewer[open] { display: grid; animation: fade var(--t-med) var(--ease); }
.viewer::backdrop { background: rgb(0 0 0 / 0.5); }
@keyframes fade { from { opacity: 0; } }
.viewer-stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: var(--s-7) var(--s-9); min-height: 0; }
.viewer-stage img.zoomable { max-width: 100%; max-height: calc(100dvh - 2 * var(--s-7)); object-fit: contain; cursor: zoom-in; transition: transform var(--t-med) var(--ease); border-radius: var(--r-1); }
.viewer-stage img.zoomable.is-zoomed { cursor: zoom-out; }
.viewer-stage video { max-width: 100%; max-height: calc(100dvh - 2 * var(--s-7)); border-radius: var(--r-2); background: #000; }
.viewer-stage .tiled { position: absolute; inset: 0; background-repeat: repeat; touch-action: none; }
.viewer-stage img.zoomable { touch-action: none; user-select: none; -webkit-user-drag: none; }
.viewer-stage.is-swiping img.zoomable { transition: none; }
.stage-tools { position: absolute; left: 50%; bottom: var(--s-4); transform: translateX(-50%); display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); z-index: 2; }
.stage-tools .icon-btn { width: 34px; height: 34px; }
.stage-tools .zoom-val { font: 700 11px var(--font-mono); min-width: 5ch; text-align: center; }
.stage-tools label { font: 700 11px var(--font-mono); padding: 0 6px; display: flex; align-items: center; gap: 6px; }
.stage-tools input[type="range"] { width: 110px; }
.viewer-info { border-left: 1px solid var(--line); background: var(--bg-elev); padding: var(--s-7) var(--s-5) var(--s-5); overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-4); }
.viewer-info h2 { font-size: var(--fs-xl); line-height: 0.95; }
.viewer-info .desc { color: var(--ink-2); font-size: var(--fs-sm); }
.viewer-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s-4); margin: 0; font-size: var(--fs-sm); }
.viewer-info dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.viewer-info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.attr-box { border: 1px dashed var(--line-strong); border-radius: var(--r-2); padding: var(--s-3); font-size: 12px; font-family: var(--font-mono); color: var(--ink-2); overflow-wrap: anywhere; }
.attr-box strong { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-text); margin-bottom: 6px; }
.viewer-info .actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: auto; padding-top: var(--s-3); }
.viewer-info .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.viewer-close { position: absolute; top: var(--s-4); right: var(--s-4); z-index: 3; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; }
.viewer-nav--prev { left: var(--s-4); }
.viewer-nav--next { right: calc(360px + var(--s-4)); }
.viewer-counter { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.audio-stage { width: min(720px, 100%); display: flex; flex-direction: column; gap: var(--s-5); align-items: center; text-align: center; }
.audio-stage .big-disc { width: min(280px, 50vw); aspect-ratio: 1; border-radius: 50%; background: var(--metal); position: relative; }
.audio-stage .big-disc::after { content: ""; position: absolute; inset: 40%; border-radius: 50%; background: var(--accent); }
.audio-stage.is-playing .big-disc { animation: spin 6s linear infinite; }
.audio-stage .wave { width: 100%; height: 80px; }
.audio-stage .play-btn { width: 64px; height: 64px; }

/* ================================================================ back to top */
.to-top { position: fixed; right: var(--s-4); bottom: calc(var(--player-h) + var(--s-4) + env(safe-area-inset-bottom)); z-index: 55; width: 46px; height: 46px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity var(--t-med), transform var(--t-med) var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.icon-btn.search-btn { display: none; }

/* ================================================================ toasts */
.toasts { position: fixed; left: 50%; bottom: calc(var(--player-h) + 20px); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: var(--bg); border-radius: var(--r-2); padding: 12px 16px; font-size: var(--fs-sm); box-shadow: var(--shadow); animation: toast-in var(--t-med) var(--ease); }
.toast strong { display: block; }
.toast small { display: block; font-family: var(--font-mono); font-size: 11px; opacity: 0.75; margin-top: 4px; overflow-wrap: anywhere; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ================================================================ responsive */
@media (pointer: coarse) {
  .card-actions .icon-btn, .fav-float { width: 40px; height: 40px; }
  .chip { height: 36px; padding: 0 14px; }
  .stage-tools .icon-btn { width: 40px; height: 40px; }
  .player-volume input, .player-seek input { height: 32px; }
}
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .icon-btn.menu-btn { display: inline-grid; }
  .tile--images { grid-column: span 6; }
  .tile--videos { grid-column: span 6; }
  .tile--textures, .tile--sfx, .tile--music { grid-column: span 4; }
  .tile--about { grid-column: span 12; }
}
@media (max-width: 900px) {
  .hero-frame { height: auto; min-height: min(88svh, 760px); }
  /* portrait screens: the film fills the top, the copy sits on a dark fade below it (keeps the subject's face clear) */
  .hero-bg { height: 62%; object-position: 36% 50%; }
  .hero-shade { background: linear-gradient(180deg, rgb(8 6 14 / 0.4) 0%, transparent 18%, transparent 36%, #120f1c 62%), var(--grain); }
  .hero-bottom { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-side { max-width: 46ch; }
  .steps ol { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .steps li { padding: var(--s-4) 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--images, .tile--videos, .tile--about { grid-column: span 2; }
  .tile--textures, .tile--sfx, .tile--music { grid-column: span 1; }
  .tile--sfx { grid-column: span 2; }
  .page-head { grid-template-columns: 1fr; }
  .toolbar { position: static; }
  .toolbar-row[data-filters] .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .page-head h1 { font-variation-settings: "wdth" 110; font-size: clamp(2.2rem, 10vw, 6rem); }
  .toolbar-row[data-filters] .field:not(.field--search) { flex: 1 1 0; min-width: 0; padding: 0 10px; }
  .toolbar-row[data-filters] .field select { width: 100%; }
  .chips[aria-label="Categories"] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips[aria-label="Categories"] .chip { flex: none; }
  .page-head .lic-summary { justify-content: flex-start; }
  .credits-intro { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .viewer { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .viewer-stage { padding: var(--s-8) var(--s-4) var(--s-9); }
  .viewer-info { border-left: 0; border-top: 1px solid var(--line); max-height: 42dvh; padding: var(--s-5) var(--s-4); }
  .viewer-nav { top: 30%; }
  .viewer-nav--next { right: var(--s-4); }
  .card--music { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4); }
  .card--music .num { display: none; }
  .card--music .meta-col { justify-content: flex-start; }
  .card--music .meta-col .card-actions { margin-left: auto; }
  /* 16px inputs stop iOS Safari from zooming on focus */
  .global-search input, .field input, .field select, .mobile-nav input { font-size: 16px; }
  .viewer { background: var(--bg); }
  .viewer-info .actions { position: sticky; bottom: calc(-1 * var(--s-5)); margin: auto calc(-1 * var(--s-4)) calc(-1 * var(--s-5)); padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--bg-elev); border-top: 1px solid var(--line); z-index: 1; }
  .viewer-nav { width: 40px; height: 40px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
  .viewer-close { background: var(--surface); }
  .player-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); }
  .player-seek { grid-column: 1 / -1; grid-row: 2; }
  .player-volume { display: none; }
  .player-viz { display: none; }
}
@media (max-width: 640px) {
  /* first screen on phones = film + wordmark + one short line + the main button (nothing else above the fold) */
  .hero { padding-top: var(--s-3); }
  .hero-frame { border-radius: var(--r-2); min-height: 0; height: calc(100svh - var(--header-h) - 2 * var(--s-3)); }
  .hero-top .barcode, .hero-side .hero-lead, .hero-actions .link-arrow { display: none; }
  .hero-top { justify-content: flex-end; }
  .hero-bg { height: 70%; }
  .hero-shade { background: linear-gradient(180deg, rgb(8 6 14 / 0.35) 0%, transparent 16%, transparent 46%, #120f1c 70%), var(--grain); }
  .hero-side h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-side .hero-lead-short { display: block; font-size: var(--fs-md); line-height: 1.45; max-width: 30ch; color: rgb(243 240 234 / 0.88); }
  .hero-bottom { justify-items: center; text-align: center; gap: var(--s-4); padding-bottom: var(--s-6); }
  .hero-word { margin: 0 auto -0.02em; }
  .hero-side { align-items: center; padding-bottom: 0; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { height: 48px; padding-left: 22px; }
  .hero-word { font-size: 31vw; }
  .hero-top { padding: var(--s-4) var(--s-4) 0; }
  .hero-bottom { padding: 0 var(--s-4) var(--s-4); }
  .counter--band { flex-direction: column; align-items: flex-start; }
  .counter-digits b { font-size: 1.5rem; }
  :root { --header-h: 58px; }
  .global-search { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile { grid-column: 1 / -1 !important; min-height: 200px; }
  .strip-head { grid-template-columns: 1fr auto; }
  .strip-head .num { display: none; }
  .grid--masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-3); }
  .grid--masonry > * { margin-bottom: var(--s-3); }
  .grid--texture { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .grid--video { gap: var(--s-3); }
  .card-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .icon-btn.search-btn { display: inline-grid; }
  .site-header { gap: var(--s-3); padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
  .header-tools { gap: 6px; }
  .audio-foot { flex-wrap: wrap; row-gap: 4px; }
  .rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-3); scrollbar-width: thin; }
  .rail > * { scroll-snap-align: start; }
  .rail--audio { grid-template-columns: none; grid-auto-columns: 88%; }
  /* credits table becomes stacked cards */
  table.credits { min-width: 0; }
  .credits thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .credits tbody, .credits tr, .credits td { display: block; }
  .credits tr { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
  .credits td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: var(--s-3); }
  .credits td::before { content: attr(data-label); font: 700 10px/1.8 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
  .credits .attr { max-width: none; }
  .card-body { padding: 10px; }
  .field--search { flex-basis: 100%; }
  .page-head h1 { font-variation-settings: "wdth" 100; font-stretch: 100%; font-size: clamp(2.2rem, 11vw, 4.5rem); }
  .viewer-stage .stage-tools input[type="range"] { width: 80px; }
}
