/* Noir landing page: tokens, type and site chrome.
   Monochrome throughout. Only posters and genre artwork carry colour. */

@font-face { font-family: "Host Grotesk"; src: url("../assets/fonts/host-grotesk.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../assets/fonts/be-vietnam-pro-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../assets/fonts/be-vietnam-pro-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../assets/fonts/be-vietnam-pro-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../assets/fonts/be-vietnam-pro-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #000;
  --surface: #0b0b0c;
  --surface-2: #111113;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f5f5f5;
  --muted: #a1a1a1;
  --faint: #7c7c7c;
  --ghost: rgba(255, 255, 255, .06);
  --panel-bg: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01) 40%, rgba(255, 255, 255, 0));

  --display: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --size-hero: clamp(2.6rem, 1.5rem + 4.2vw, 4.5rem);
  --size-h2: clamp(2rem, 1.3rem + 2.3vw, 3rem);
  --size-h3: clamp(1.7rem, 1.25rem + 1.4vw, 2.4rem);
  --size-body: clamp(.98rem, .95rem + .15vw, 1.06rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-app: cubic-bezier(.22, .82, .2, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--bg);
  font: 400 var(--size-body)/1.65 var(--body); color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Clip wide rails here, not on body: body's overflow passes to the viewport, and phones then zoom out. */
main, .site-footer { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 560; margin: 0; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
::selection { background: #fff; color: #000; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; font: 600 14px var(--display); text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }
.br-wide { display: none; }
@media (min-width: 860px) { .br-wide { display: inline; } }

/* Buttons */
.button {
  --pad: 18px;
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 var(--pad);
  border: 0; border-radius: 999px;
  background: linear-gradient(#fff, #e9e9e9); color: #0a0a0a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(255, 255, 255, .2), 0 8px 24px -10px rgba(255, 255, 255, .35);
  font: 560 14.5px/1 var(--display); letter-spacing: -.005em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s;
}
.button svg { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.button:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, .3), 0 12px 32px -10px rgba(255, 255, 255, .45); }
.button:hover svg { transform: translateX(2px); }
.button:active { transform: translateY(0) scale(.985); }
.button--ghost { background: rgba(255, 255, 255, .04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, .06); }
.button--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .08); }
.button--ghost:hover svg { transform: none; }
.button--small { --pad: 14px; min-height: 34px; font-size: 13px; gap: 7px; }
.button--small svg { width: 13px; height: 13px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .05); color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .25s, opacity .25s, transform .4s var(--ease-out);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn:active { transform: scale(.94); }

/* Header: a quiet frosted pill, after microdose.studio */
.site-header {
  position: fixed; z-index: 50; top: 14px; left: 50%;
  display: flex; align-items: center; gap: 8px;
  width: min(100% - 24px, 920px); height: 52px; padding: 0 8px 0 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(10, 10, 11, .62);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 50px -24px rgba(0, 0, 0, .9);
  transition: transform .7s var(--ease-out), opacity .5s;
}
.site-header.is-hidden { transform: translate(-50%, -96px); }
.site-header__brand { display: block; color: #fff; margin-right: auto; }
.site-header__brand svg { width: 76px; height: 21px; }
.site-header__nav { display: none; gap: 2px; }
.site-header__nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font: 500 13.5px/1 var(--display); text-decoration: none; transition: background-color .25s, color .25s; }
.site-header__nav a:hover { color: #fff; }
.site-header__nav a[aria-current="true"] { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 900px) { .site-header__nav { display: flex; margin-right: 10px; } }


/* Reel: a scroll timecode on the right edge, after microdose's progress ladder */

/* Film grain: low, slow and static under reduced motion */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Scroll reveals */
.js .reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* Toast */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  padding: 11px 16px; border-radius: 12px; background: rgba(20, 20, 22, .92); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 40px -12px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font: 500 13.5px/1.2 var(--display); opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .6s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Dialogs */
dialog { color: #fff; }
dialog::backdrop { background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* The film: always the 16:9 cut, in a widescreen frame. */
.film { width: min(92vw, 1280px, calc(86svh * 16 / 9)); padding: 0; border: 0; background: transparent; overflow: visible; }
.film__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film__close { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .5); }
.film[open] .film__frame { animation: rise .7s var(--ease-out); }
@media (max-width: 600px) { .film__frame { border-radius: 14px; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.97); } }

/* Footer */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-top: clamp(56px, 7vh, 84px); border-top: 1px solid var(--line); background: radial-gradient(70% 50% at 50% 100%, rgba(255, 255, 255, .05), transparent 70%); color: var(--muted); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__brand { display: inline-block; color: #fff; }
.site-footer__intro p { margin: 18px 0 24px; color: var(--muted); font: 450 15px/1.55 var(--display); }
.site-footer__col { display: grid; align-content: start; gap: 12px; }
.site-footer__col h3 { margin-bottom: 6px; color: var(--text); font: 520 13.5px/1 var(--display); letter-spacing: 0; }
.site-footer__col a { justify-self: start; color: var(--muted); font: 450 14.5px/1.3 var(--display); text-decoration: none; transition: color .2s; }
.site-footer__col a:hover { color: #fff; }
.site-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: clamp(56px, 8vh, 88px); padding: 22px 0; border-top: 1px solid var(--line); }
.site-footer__attribution { display: flex; align-items: center; gap: 14px; max-width: 620px; font-size: 12.5px; line-height: 1.55; color: var(--faint); }
.site-footer__attribution img { flex: none; width: 40px; height: auto; opacity: .8; }
.site-footer__legal { color: var(--faint); font-size: 12.5px; }
/* The wordmark, cast large and cut off by the bottom of the page. */
.site-footer__mark { display: flex; justify-content: center; height: clamp(70px, 13vw, 210px); margin-top: 8px; overflow: hidden; pointer-events: none; }
.site-footer__mark svg { flex: none; width: min(1320px, 96vw); height: auto; aspect-ratio: 122 / 33.6; opacity: .1;
  -webkit-mask-image: linear-gradient(#000 10%, transparent 82%); mask-image: linear-gradient(#000 10%, transparent 82%); }
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 16px; }
  .site-footer__intro { grid-column: 1 / -1; }
}
