/* ==========================================================================
   Scott Crawford · VFX & CG Artist
   Tokens first; everything else reads from them.
   ========================================================================== */
:root {
  --bg: #0a0a0b;
  --bg-2: #121215;
  --bg-3: #1a1a1f;
  --line: #26262c;
  --fg: #ededee;
  --fg-2: #a3a3ab;
  --fg-3: #6e6e78;
  --accent: #ff5b2e;
  --accent-ink: #160803;

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1640px;
  --radius: 10px;
  --glow: .3;            /* strength of the coloured glow behind images; 0 turns it off */
  --grain: .05;          /* film grain on the page background; 0 turns it off */
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--fg); color: var(--bg); border-radius: var(--radius); }
.skip:focus { top: 12px; }

.eyebrow, .label, .card-meta, .section-note, .project-meta dt, .pn-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.label { margin-bottom: 14px; color: var(--fg-3); font-weight: 400; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
body:not(.is-home) .site-header,
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.wordmark { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); font-size: 15px; }
.site-nav a { color: var(--fg-2); transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav .nav-cta { color: var(--fg); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, background-color .2s; }
.site-nav .nav-cta:hover { border-color: var(--fg); }
.menu-toggle { display: none; width: 40px; height: 40px; margin-right: -8px; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 1.5px; background: var(--fg); margin: auto; transition: transform .3s var(--ease), opacity .2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

@media (max-width: 760px) {
  .menu-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 22px;
    background: var(--bg); font-size: 30px; font-weight: 500;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .site-nav a { color: var(--fg); }
  .site-nav .nav-cta { border: 0; padding: 0; color: var(--accent); }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open .menu-icon { background: transparent; }
  .menu-open .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
  .menu-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 16px;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); }
.btn-ghost:hover { border-color: var(--fg); }
.btn:active { transform: scale(.97); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate;
  min-height: max(560px, 100svh);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(48px, 9vh, 110px);
  overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: var(--bg); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10,10,11,.55) 38%, rgba(10,10,11,.15) 70%, rgba(10,10,11,.45) 100%),
    radial-gradient(ellipse at 20% 100%, rgba(10,10,11,.6), transparent 60%);
}
.hero-content { max-width: 1100px; }
.hero-title {
  font-size: clamp(3.2rem, 11vw, 10.5rem);
  font-weight: 600; line-height: .88; letter-spacing: -.045em;
  margin: 14px 0 22px;
}
.hero-lede { max-width: 34ch; font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.4; color: var(--fg-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-scroll { position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 110px); width: 22px; height: 36px; border: 1.5px solid var(--fg-3); border-radius: 12px; }
.hero-scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--fg); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 640px) { .hero-scroll { display: none; } }

/* ---------------------------------------------------------------- sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--gutter) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.link-arrow { color: var(--fg-2); transition: color .2s; }
.link-arrow:hover { color: var(--fg); }
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------------------------------------------------------------- work grid */
.grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.grid-featured { grid-template-columns: 1fr; margin-bottom: clamp(36px, 4vw, 56px); }
.grid-rest { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-rest { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-featured { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-rest { grid-template-columns: repeat(3, 1fr); } }

.card-link { display: block; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.card-media video { opacity: 0; }
.card-media video.is-playing { opacity: 1; }
.card-link:hover .card-media img, .card-link:focus-visible .card-media img { transform: scale(1.04); }
.card-text { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.card-title { font-size: 19px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.card-lg .card-title { font-size: clamp(20px, 1.8vw, 26px); }
.card-meta { font-size: 11.5px; color: var(--fg-3); }
.card-link:hover .card-title { color: #fff; }

/* ---------------------------------------------------------------- credits */
.credits { display: grid; gap: 40px; border-top: 1px solid var(--line); margin-top: clamp(56px, 9vw, 120px); }
@media (min-width: 900px) { .credits { grid-template-columns: 1fr 1fr; gap: 64px; } }
.credit-list { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.credit-list li:not(:last-child)::after { content: "/"; margin: 0 .45em; color: var(--fg-3); font-weight: 300; }

/* ---------------------------------------------------------------- lab strip */
.lab-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .lab-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .lab-strip { grid-template-columns: repeat(6, 1fr); } }
.lab-tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.lab-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lab-tile:hover img { transform: scale(1.06); }
.lab-tile span { position: absolute; left: 12px; bottom: 10px; font-size: 14px; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.7); }

/* ---------------------------------------------------------------- contact */
.contact-band { text-align: left; padding-bottom: clamp(56px, 9vw, 120px); }
.contact-title { font-size: clamp(2.4rem, 7vw, 6rem); font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.contact-link { display: inline-flex; align-items: center; gap: .4em; margin-top: 24px; font-size: clamp(1.2rem, 2.4vw, 2rem); color: var(--accent); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; word-break: break-all; }
.contact-link span[aria-hidden] { transition: transform .25s var(--ease); }
.contact-link:hover span[aria-hidden] { transform: translateX(6px); }
.contact-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: var(--fg-2); }
.contact-links a:hover { color: var(--fg); }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; font-size: 14px; color: var(--fg-2); }
.footer-name { color: var(--fg); font-weight: 500; }
.footer-name span { color: var(--fg-3); font-weight: 400; margin-left: 8px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--fg); }
.footer-copy { color: var(--fg-3); }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); }
.page-title { font-size: clamp(2.2rem, 5.5vw, 4.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-top: 14px; max-width: 18ch; }
.page-lede { margin-top: 18px; max-width: 52ch; color: var(--fg-2); font-size: 1.15rem; }
.not-found { padding-bottom: 120px; }
.not-found .btn { margin-top: 32px; }

.prose { max-width: 64ch; font-size: 18px; line-height: 1.7; color: #d4d4d8; }
.prose p + p { margin-top: 1.1em; }
.prose em { color: var(--fg); }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---------------------------------------------------------------- project */
.project { max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + clamp(36px, 6vw, 80px)) var(--gutter) 0; }
.project-head { max-width: 1100px; }
.project-head .eyebrow a:hover { color: var(--fg); }
.project-title { font-size: clamp(2.1rem, 5.6vw, 5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-top: 14px; }
.project-summary { margin-top: 18px; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--fg-2); max-width: 48ch; line-height: 1.45; }
.project-lead { margin-top: clamp(28px, 4vw, 52px); }
.project-lead .media img, .project-lead .media video { width: 100%; }
.project-body { display: grid; gap: 36px; margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .project-body { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 64px; } }
.project-meta { display: grid; gap: 18px; align-content: start; padding-top: 4px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .project-meta { border-top: 0; border-left: 1px solid var(--line); padding-left: 32px; } }
.project-meta div { display: grid; gap: 4px; }
.project-meta dt { color: var(--fg-3); font-size: 11px; }
.project-meta dd { margin: 0; font-size: 16px; }

.project-gallery { display: grid; gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(48px, 6vw, 80px); }
@media (min-width: 700px) {
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .project-gallery .media-video, .project-gallery .media-embed { grid-column: 1 / -1; }
}

.media { position: relative; }
.media img, .media video { width: 100%; border-radius: var(--radius); background: var(--bg-2); }
.media-image a { position: relative; display: block; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.media-image a img { transition: transform .8s var(--ease); }
.media-image a:hover img { transform: scale(1.02); }
.media figcaption { margin-top: 10px; font-size: 14px; color: var(--fg-3); }
.project-gallery .media-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.media-video video { max-height: 86vh; object-fit: contain; background: #000; }
.video-sound { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); opacity: .7; transition: opacity .2s; }
.video-sound:hover { opacity: 1; }

/* shots: the final next to its breakdown, or a final with its caption beside it */
.media-shot { display: grid; gap: 10px; }
.shot-clip { position: relative; }
.shot-clip video { aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.shot-tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); pointer-events: none; }
.media-shot figcaption { margin-top: 2px; }
.shot-spot { display: block; margin-bottom: 4px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2); }
.project-gallery:has(.media-shot) { row-gap: clamp(28px, 4vw, 48px); }
@media (min-width: 700px) {
  .project-gallery .media-shot { grid-column: 1 / -1; }
  .media-shot { grid-template-columns: 1fr 1fr; column-gap: clamp(12px, 1.6vw, 20px); align-items: center; }
  .media-shot.is-pair figcaption { grid-column: 1 / -1; }
  .media-shot:not(.is-pair) figcaption { margin: 0; padding-left: clamp(0px, 2vw, 24px); max-width: 38ch; font-size: 16px; color: var(--fg-2); }
}

.embed { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.embed .embed-poster, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.embed .embed-poster { transition: transform 1s var(--ease), opacity .3s; opacity: .9; }
.embed:hover .embed-poster { transform: scale(1.02); opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; width: clamp(64px, 7vw, 88px); aspect-ratio: 1; margin: 0; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: rgba(10,10,11,.55); border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(8px); transition: background-color .25s, transform .25s var(--ease), border-color .25s; }
.play svg { width: 38%; fill: #fff; margin-left: 6%; }
.embed:hover .play { background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.embed:hover .play svg { fill: var(--accent-ink); }

.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); margin: clamp(72px, 9vw, 130px) 0 clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.pn { position: relative; display: grid; gap: 6px; }
.pn img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); opacity: .7; transition: opacity .3s; margin-bottom: 10px; }
.pn:hover img { opacity: 1; }
.pn-next { text-align: right; }
.pn-title { font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- masonry (lab, photos) */
.masonry { columns: 1; column-gap: 16px; padding-bottom: clamp(56px, 8vw, 110px); }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; } }
.masonry-item { position: relative; display: block; break-inside: avoid; margin-bottom: 16px; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.masonry-item img { width: 100%; transition: transform 1s var(--ease); }
.masonry-item:hover img { transform: scale(1.03); }
.masonry-caption { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); font-size: 15px; }
.masonry-caption strong { font-weight: 500; }
.masonry-caption span { font: 12px var(--mono); color: var(--fg-2); }

/* ---------------------------------------------------------------- about */
.about { display: grid; gap: 48px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 80px; } }
.about-text { font-size: clamp(18px, 1.5vw, 21px); }
.about-side .label:not(:first-child) { margin-top: 32px; }
.plain-list { display: grid; gap: 4px; color: var(--fg-2); }

/* ---------------------------------------------------------------- lightbox + reel dialogs */
dialog { padding: 0; border: 0; color: var(--fg); }
.lightbox, .reel-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: rgba(5,5,6,.96); }
.lightbox[open], .reel-dialog[open] { display: grid; place-items: center; animation: fadein .25s var(--ease); }
dialog::backdrop { background: transparent; }
@keyframes fadein { from { opacity: 0; } }
.lb-figure { display: grid; justify-items: center; gap: 12px; padding: 64px 72px; }
.lb-figure img { max-width: calc(100vw - 144px); max-height: calc(100dvh - 160px); width: auto; object-fit: contain; border-radius: 4px; }
.lb-figure figcaption { font-size: 14px; color: var(--fg-2); min-height: 1em; }
.lb-close, .lb-prev, .lb-next, .reel-close { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 32px; line-height: 1; color: var(--fg-2); transition: color .2s, background-color .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover, .reel-close:hover { color: var(--fg); background: var(--bg-3); }
.lb-close, .reel-close { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-figure { padding: 64px 0; }
  .lb-figure img { max-width: 100vw; border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}
.reel-frame { width: min(92vw, calc((100dvh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; }
.reel-frame iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); background: #000; }

/* ---------------------------------------------------------------- frames
   Every image and video sits in a frame: a hairline edge that catches a little light along the top, and a
   soft glow underneath in the image's own colours (--tint is set per image by the build). */
:is(.card-media, .lab-tile, .masonry-item, .media-image a, .media-cover, .embed, .shot-clip, .media-video) {
  --tint: 120 120 135;
  border-radius: var(--radius);
  box-shadow:
    0 26px 70px -34px rgb(var(--tint) / var(--glow)),
    0 0 46px -18px rgb(var(--tint) / calc(var(--glow) * .45));
  transition: box-shadow .7s var(--ease), transform .7s var(--ease);
}
:is(.card-media, .lab-tile, .masonry-item, .media-image a, .media-cover, .embed, .shot-clip, .media-video)::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(to bottom, rgb(255 255 255 / .2), rgb(255 255 255 / .05) 30%, rgb(255 255 255 / .03) 70%, rgb(255 255 255 / .08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.card-link:hover .card-media, .card-link:focus-visible .card-media, .lab-tile:hover, .masonry-item:hover, .media-image a:hover, .embed:hover {
  box-shadow:
    0 30px 80px -30px rgb(var(--tint) / calc(var(--glow) * 1.7)),
    0 0 56px -16px rgb(var(--tint) / calc(var(--glow) * .8));
}
.card-link:hover .card-media, .card-link:focus-visible .card-media { transform: translateY(-3px); }

/* film grain on the background only (it sits behind everything, so images stay clean) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
