/* =========================================================================
   Adam Kubrakiewicz — portfolio
   Colors / spacing live in the :root tokens below; tweak there first.
   ========================================================================= */

:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --line: #26262a;
  --text: #f2f0eb;
  --muted: #8d8b87;
  --accent: #ff4d1c;          /* the one loud color — change it and the whole site follows */
  --accent-ink: #0b0b0c;

  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(6px, 0.8vw, 12px);
  --radius: 4px;

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* type knobs (the in-page design editor sets these) */
  --w-name: 900;
  --w-display: 800;
  --wdth-name: 62;
  --wdth-display: 75;
  --case: uppercase;
  --name-scale: 1;
  --name-lh: .84;
  --name-track: -.02em;
  --hero-dim: .5;

  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-synthesis: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-variation-settings: "wdth" 100;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.mono, .mono-label, .eyebrow { font-family: var(--f-mono); letter-spacing: .02em; }
.eyebrow { font-size: 12px; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; letter-spacing: .12em; }
.mono-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 400; margin: 0 0 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { border-color: var(--text); }
.hero .btn:not(.btn--primary) { border-color: rgba(242,240,235,.3); backdrop-filter: blur(6px); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--primary:hover { background: var(--text); border-color: var(--text); }
.btn--ghost { height: 38px; padding: 0 14px; font-size: 13px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.nav--solid { background: color-mix(in srgb, var(--bg) 92%, transparent); padding-top: 12px; padding-bottom: 12px; }
.nav__logo { font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: -.02em; font-variation-settings: "wdth" 125; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(28px, 5vw, 56px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; background: #000; }
.hero__bg iframe, .hero__bg img {
  position: absolute; top: 50%; left: 50%;
  width: max(100%, 177.78svh); height: max(100%, 56.25vw);
  transform: translate(-50%, -50%) scale(1.08);
  border: 0; pointer-events: none; object-fit: cover;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero__bg .is-on { opacity: .55; }
.hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__bg video.is-on { opacity: var(--hero-dim); }
.hero__bg img.is-on { opacity: .4; filter: blur(3px) saturate(.8); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 30%, color-mix(in srgb, var(--bg) 20%, transparent) 60%, var(--bg) 100%),
    radial-gradient(120% 80% at 0% 100%, color-mix(in srgb, var(--bg) 85%, transparent), transparent 60%);
}
.hero__name {
  font-family: var(--f-display);
  font-weight: var(--w-name);
  font-variation-settings: "wdth" var(--wdth-name);
  font-size: calc(clamp(64px, 15vw, 240px) * var(--name-scale));
  line-height: var(--name-lh);
  letter-spacing: var(--name-track);
  text-transform: var(--case);
  margin: 0;
  max-width: 10ch;
}
.hero__tagline { max-width: 46ch; font-size: clamp(17px, 1.6vw, 21px); color: #cfccc6; margin: 24px 0 28px; }
.hero__tagline:empty { display: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 64px);
  margin: clamp(32px, 6vw, 72px) 0 0; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero__stats:empty { display: none; }
@media (max-width: 560px) {
  .hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; }
  .hero__stats dd { font-size: 24px; }
  .hero__stats dt { font-size: 9.5px; letter-spacing: .06em; }
}
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.hero__stats dd { margin: 0; font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; font-variation-settings: "wdth" var(--wdth-display); }

/* ---------- section scaffolding ---------- */
section { scroll-margin-top: 60px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.section-title {
  font-family: var(--f-display); font-weight: var(--w-display); text-transform: var(--case);
  font-variation-settings: "wdth" var(--wdth-display);
  font-size: clamp(28px, 4vw, 52px); line-height: 1; letter-spacing: -.01em; margin: 0;
  display: flex; align-items: baseline; gap: 14px;
}
.section-title .mono { font-size: 13px; font-weight: 400; color: var(--accent); letter-spacing: .08em; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  transition: all .25s var(--ease);
}
.filters button:hover { color: var(--text); border-color: var(--muted); }
.filters button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters sup { font-size: 9px; margin-left: 3px; opacity: .6; }

/* ---------- the wall ---------- */
.work { padding: clamp(56px, 8vw, 110px) var(--gutter) 0; }
.grid {
  --cols: 1;
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 9 / 16);
  grid-auto-flow: dense;
  gap: var(--gap);
}
@media (min-width: 560px)  { .grid { --cols: 2; } }
@media (min-width: 960px)  { .grid { --cols: 3; } }
@media (min-width: 1500px) { .grid { --cols: 4; } }
@media (min-width: 2200px) { .grid { --cols: 5; } }
@media (min-width: 560px) { .tile--featured { grid-row: span 2; } } /* column span is set by layout() in app.js */

.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-2);
  cursor: pointer;
  transition: opacity .45s var(--ease);
}
.tile.is-hidden { display: none; }
.tile__media { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }

.tile__thumb, .tile__preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border: 0;
}
.tile__thumb { transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.9) brightness(.86); }
.tile__preview { opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
/* YouTube fallback: crop its overlay chrome off the edges */
iframe.tile__preview { transform: scale(1.26); }
.tile__preview.is-on { opacity: 1; }
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.82) 100%);
  transition: opacity .45s var(--ease);
}
.tile__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(12px, 1.4vw, 20px);
  display: flex; flex-direction: column; gap: 4px;
}
.tile__type { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.tile__title {
  font-family: var(--f-display); font-weight: var(--w-display); text-transform: var(--case);
  font-variation-settings: "wdth" var(--wdth-display);
  font-size: clamp(20px, 1.9vw, 28px); line-height: .95; letter-spacing: 0; margin: 0;
}
.tile--featured .tile__title { font-size: clamp(28px, 3.6vw, 56px); }
.tile__meta {
  font-family: var(--f-mono); font-size: 11px; color: #bdbab4; letter-spacing: .04em;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .45s var(--ease), opacity .45s var(--ease);
}
.tile__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  background: var(--accent); color: var(--accent-ink); padding: 5px 8px; border-radius: 2px; font-weight: 500;
}
.tile__play {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11,11,12,.55); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.8); transition: all .35s var(--ease);
}
.tile__play svg { width: 14px; height: 14px; fill: var(--text); margin-left: 2px; }

@media (hover: hover) {
  /* Clean wall of thumbnails; the label slides in on hover (most YT thumbs already carry the game logo). */
  .tile::after { opacity: 0; }
  .tile__info { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .tile:hover::after, .tile:focus-visible::after { opacity: 1; }
  .tile:hover .tile__info, .tile:focus-visible .tile__info { opacity: 1; transform: none; }
  .grid:has(.tile:hover) .tile:not(:hover) { opacity: .38; }
  .tile:hover .tile__thumb { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
  .tile:hover .tile__meta { max-height: 40px; opacity: 1; }
  .tile:hover .tile__play { opacity: 1; transform: scale(1); }
}
/* touch: always show meta so nothing is hidden behind a hover */
@media (hover: none) {
  .tile__meta { max-height: 40px; opacity: 1; }
}
/* phones: caption under the picture; the clip stays inside the picture frame */
@media (max-width: 559px) {
  .grid { grid-auto-rows: auto; row-gap: 26px; }
  .tile { background: none; border-radius: 0; overflow: visible; }
  .tile__media { position: relative; inset: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--bg-2); }
  .tile::after { display: none; }
  .tile__info { position: static; padding: 10px 0 0; gap: 3px; opacity: 1 !important; transform: none !important; }
  .tile__title { font-size: 22px; }
  .tile__meta { max-height: none; opacity: 1; color: var(--muted); }
  .tile__play { opacity: 1; transform: none; }
}

/* ---------- clients marquee ---------- */
.clients { padding: clamp(80px, 10vw, 140px) 0 0; }
.clients .section-title { padding: 0 var(--gutter); margin-bottom: 28px; }
.marquee { overflow: hidden; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--f-display); font-weight: var(--w-display); text-transform: var(--case); font-variation-settings: "wdth" var(--wdth-display);
  font-size: clamp(28px, 4vw, 56px); padding: 18px 0; white-space: nowrap; color: #5d5b58;
  transition: color .3s;
}
.marquee__track span:hover { color: var(--text); }
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: .45em; vertical-align: middle; margin: 0 .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about { padding: clamp(80px, 10vw, 140px) var(--gutter) 0; }
.about__body { display: grid; gap: clamp(28px, 5vw, 72px); margin-top: 32px; }
@media (min-width: 900px) { .about__body:has(.about__photo:not([hidden])) { grid-template-columns: clamp(150px, 14vw, 220px) minmax(0, 1fr); } }
.about__photo { margin: 0; width: clamp(120px, 34vw, 220px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
@media (min-width: 900px) { .about__photo { width: 100%; margin-top: .45em; } }
.about__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about__bio { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.35; letter-spacing: -.005em; max-width: 40ch; font-weight: 400; }
.about__bio p { margin: 0 0 .8em; }
.about__bio p + p { font-size: .7em; color: #bdbab4; max-width: 52ch; }
.about__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 1100px) {
  .about__text { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 120px); align-items: start; }
  .about__cols { margin-top: 8px; padding-top: 0; border-top: 0; grid-template-columns: 1fr 1fr; }
  .about__cols > :first-child { grid-column: 1 / -1; }
}
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.list li strong { color: var(--accent); font-weight: 500; }

/* ---------- archive ---------- */
.archive { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.archive__head {
  display: flex; align-items: baseline; gap: 12px; margin: 0;
  padding: 22px 0; font-family: var(--f-display); font-weight: var(--w-display); text-transform: var(--case);
  font-variation-settings: "wdth" var(--wdth-display); font-size: clamp(20px, 2.2vw, 28px);
}
.archive__head .mono { font-size: 12px; color: var(--muted); font-weight: 400; }
/* collapsed: the first rows show, fading out into the background; the button opens the rest */
.archive__clip { position: relative; overflow: hidden; transition: max-height .7s var(--ease); }
.archive__clip.is-clipped { max-height: 330px; }
.archive__clip::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg) 92%);
  opacity: 0; transition: opacity .4s;
}
.archive__clip.is-clipped:not(.is-open)::after { opacity: 1; }
.archive__list { list-style: none; margin: 0; padding: 0 0 12px; }
.archive__more {
  position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px auto 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--bg-2); color: var(--text);
  transition: border-color .2s, background .2s, color .2s;
}
.archive__more:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.archive__more svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.archive__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.archive__more[aria-expanded="true"] { margin-top: 12px; }
.arow {
  width: 100%; text-align: left; display: grid; gap: 4px 20px; align-items: baseline;
  grid-template-columns: 52px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px;
  transition: color .2s, padding .3s var(--ease);
}
.arow:hover { color: var(--accent); }
.arow__year, .arow__role { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.arow__title { font-weight: 600; }
.arow__type { color: #cfccc6; }
@media (max-width: 700px) {
  .arow { grid-template-columns: 44px minmax(0, 1fr); }
  .arow__type, .arow__role { grid-column: 2; font-size: 13px; }
}

/* ---------- contact ---------- */
.contact { padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(60px, 8vw, 100px); }
.contact .section-title { margin-bottom: 28px; }
.contact__mail {
  display: inline-block; font-size: clamp(22px, 3vw, 40px); font-weight: 500;
  border-bottom: 2px solid var(--accent); padding-bottom: 4px;
  transition: color .25s;
  word-break: break-all;
}
.contact__mail:hover { color: var(--accent); }
.contact__links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
}
.footer a:hover { color: var(--text); }

/* ---------- modal ---------- */
.modal {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text);
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(5,5,6,.92); backdrop-filter: blur(10px); }
.modal[open] { animation: modal-in .45s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal__inner {
  min-height: 100%;
  display: grid; align-content: center; gap: 24px;
  padding: 64px var(--gutter) 40px;
  max-width: 1760px; margin: 0 auto;
}
@media (min-width: 1100px) {
  .modal__inner { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; align-content: center; gap: 36px; }
}
.modal__close {
  position: fixed; top: 14px; right: 14px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: background .25s, transform .25s var(--ease);
}
.modal__close:hover { background: var(--accent); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.modal__player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.modal__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__info { display: flex; flex-direction: column; gap: 22px; }
.modal__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-variation-settings: "wdth" 66;
  font-size: clamp(32px, 3.6vw, 52px); line-height: .92; margin: 0;
}
.modal__meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin: 10px 0 0; letter-spacing: .04em; }
.modal__award { display: inline-flex; gap: 8px; align-items: center; margin: 14px 0 0; font-size: 13px; color: var(--accent); }
.modal__award::before { content: "✦"; }
.modal__desc { margin: 0; color: #cfccc6; font-size: 15px; }
.credits { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); max-height: 46vh; overflow: auto; overscroll-behavior: contain; }
@media (max-width: 1099px) { .credits { max-height: none; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 24px; } }
.credits:empty { display: none; }
.credits > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.credits dt { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.credits dd { margin: 2px 0 0; font-size: 14px; }
.credits dd.is-me { color: var(--accent); font-weight: 600; }
.modal__nav { display: flex; gap: 8px; flex-wrap: wrap; }
.modal__nav a[hidden] { display: none; }

body.modal-open { overflow: hidden; }

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

/* shown only when JavaScript is off (and read by search engines) */
.noscript { padding: 120px var(--gutter) 40px; max-width: 900px; }
.noscript ul { padding-left: 18px; color: #cfccc6; }
.noscript a { text-decoration: underline; }
.tile__badge--soft { background: rgba(11,11,12,.72); color: var(--text); backdrop-filter: blur(6px); border: 1px solid rgba(242,240,235,.18); }

/* phones: name keeps its gutter, stats align, filters scroll in one row */
@media (max-width: 560px) {
  .hero__name { font-size: clamp(44px, 14.6vw, 240px); }
  .hero__stats { align-items: start; }
  .hero__stats div { justify-content: flex-end; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
}

/* ---------- film grain: a canvas redrawn with fresh noise every frame (js: grain()) ---------- */
.grain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: overlay; }
.grain--page { position: fixed; z-index: 40; }
