/* ==========================================================
   DARKFUN — website styles
   Colours, fonts and rules follow the DarkFun Brand Bible.
   Change colours in one place: the :root block below.
   ========================================================== */

:root {
  /* Brand colours (Brand Bible, page 08) */
  --grave: #151A15;   /* our night: the main ground */
  --ink: #0C0D0B;     /* letterbox bars, deepest dark */
  --moss: #5E7149;    /* logo green, big type */
  --sage: #A9B394;    /* daylight ground */
  --bone: #DDE2C0;    /* text and logo on dark. Never pure white */
  --blood: #6E1C1B;   /* red ink on light grounds */
  --lichen: #8A9C70;  /* small green text on dark */
  --ash: #A39C84;     /* second text on dark */
  --fresh: #C8352B;   /* one hot dot. Never body text */

  --line: rgba(221, 226, 192, 0.14);
  --line-strong: rgba(221, 226, 192, 0.32);

  /* Brand type (Brand Bible, page 10) */
  --f-title: "Big Shoulders", "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-whisper: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --header-h: 64px;
  --max: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--grave);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The grain: nothing we make is perfectly clean */
body::after {
  content: "";
  position: fixed;
  inset: -120px;
  z-index: 700;
  pointer-events: none;
  background: url("images/brand/grain.png");
  opacity: 0.5;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body::after { animation: grain 1.1s steps(5) infinite; }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-37px, 22px); }
  40% { transform: translate(41px, -18px); }
  60% { transform: translate(-19px, -45px); }
  80% { transform: translate(28px, 39px); }
  100% { transform: translate(0, 0); }
}

img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }

::selection { background: var(--moss); color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 900;
  padding: 0.75rem 1.25rem;
  background: var(--bone);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(5.5rem, 11vw, 9.5rem);
}

/* ---------- Brand marks (drawn, never typed: always from the files) ---------- */

.logo-mark,
.bug,
.drop,
.card__grin,
.subscribe__grin {
  display: block;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.logo-mark {
  aspect-ratio: 672.4 / 111.6;
  -webkit-mask-image: url("images/brand/wordmark.svg");
  mask-image: url("images/brand/wordmark.svg");
}

.bug {
  aspect-ratio: 249.1 / 149.8;
  -webkit-mask-image: url("images/brand/stack.svg");
  mask-image: url("images/brand/stack.svg");
}

.card__grin,
.subscribe__grin {
  aspect-ratio: 186.1 / 168.6;
  -webkit-mask-image: url("images/brand/grin.svg");
  mask-image: url("images/brand/grin.svg");
}

.drop {
  aspect-ratio: 28.45 / 79.45;
  -webkit-mask-image: url("images/brand/drop.svg");
  mask-image: url("images/brand/drop.svg");
  color: var(--fresh);
}

/* ---------- Type ---------- */

.title {
  margin-top: 1rem;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(3.1rem, 7.8vw, 7.25rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.title--ink { color: var(--ink); }

.title-m {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.whisper {
  font-family: var(--f-whisper);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
  text-wrap: pretty;
}

.whisper--ash { color: var(--ash); }
.whisper--small { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }

.whisper--xl {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1;
  color: var(--lichen);
}

.label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lichen);
}

.label__floor {
  font-family: var(--f-data);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ash);
}

.label__floor::after {
  content: "—";
  margin-left: 0.9rem;
  color: var(--moss);
}

.label--blood { color: var(--blood); }

.data {
  font-family: var(--f-data);
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.text-link {
  display: inline-flex;
  gap: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: border-color 0.3s var(--ease);
}

.text-link:hover { border-color: var(--bone); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.2rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn svg { width: 0.95rem; height: 0.95rem; flex: none; }

.btn--bone { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--bone:hover { background: var(--sage); border-color: var(--sage); }

.btn--ghost { border-color: var(--line-strong); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); }

/* ---------- The frame (2.39:1, between black bars) ---------- */

.frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.39 / 1;
  max-width: 100%;
  background: #000;
}

.frame img,
.frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame.no-bug .bug { display: none; }

.frame .bug {
  position: absolute;
  left: 3.2%;
  bottom: 6%;
  width: max(46px, 7%);
  color: var(--bone);
  opacity: 0.9;
  z-index: 2;
}

.hot-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--fresh);
  vertical-align: 0.05em;
}

/* ---------- Scroll reveals (only when JavaScript runs) ---------- */

.can-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.can-reveal .title.reveal,
.can-reveal .title-m.reveal {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transform: translateY(0.35em);
  transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease);
}

.can-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(-20% -5% -20% -5%);
}

/* ==========================================================
   COLD OPEN
   ========================================================== */

.coldopen { display: none; }

.is-opening .coldopen {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 800;
  animation: co-end 0s linear 4.4s forwards;
}

.coldopen__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: var(--ink);
  animation: co-open 1.1s var(--ease-io) 3.2s forwards;
}

.coldopen__bar--top { top: 0; --dir: -100%; }
.coldopen__bar--bottom { bottom: 0; --dir: 100%; }

.coldopen__card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  text-align: center;
  animation: co-fade 0.5s ease 2.85s forwards;
}

.coldopen__grin {
  width: clamp(120px, 17vw, 220px);
  clip-path: inset(0 0 100% 0);
  animation: co-drip 1.6s cubic-bezier(0.3, 0.6, 0.2, 1) 0.3s forwards;
}

.coldopen__wordmark {
  width: clamp(230px, 40vw, 540px);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--moss);
  opacity: 0;
  animation: co-in 1s ease 1.4s forwards;
}

.coldopen__whisper {
  margin-top: 1.4rem;
  font-family: var(--f-whisper);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--ash);
  opacity: 0;
  animation: co-in 0.9s ease 1.95s forwards;
}

.coldopen.is-skipping { animation: co-end 0s linear 0.75s forwards; }
.coldopen.is-skipping .coldopen__card { animation: co-fade 0.2s ease forwards; }
.coldopen.is-skipping .coldopen__bar { animation: co-open 0.6s var(--ease-io) 0.1s forwards; }

@keyframes co-drip {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-6px); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes co-in { to { opacity: 1; } }
@keyframes co-fade { to { opacity: 0; } }
@keyframes co-open { to { transform: translateY(var(--dir)); } }
@keyframes co-end { to { visibility: hidden; pointer-events: none; } }

/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(21, 26, 21, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header__logo {
  width: 112px;
  color: var(--bone);
  transition: opacity 0.4s var(--ease);
}

.js .site-header:not(.is-past-hero) .site-header__logo {
  opacity: 0;
  pointer-events: none;
}

.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 1.8vw, 1.8rem);
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.5rem 0;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.3s var(--ease);
}

.site-nav__floor {
  font-family: var(--f-body);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--moss);
  transition: color 0.3s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.2em;
  bottom: 0.15rem;
  height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--bone); }
.site-nav a.is-active .site-nav__floor { color: var(--bone); }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.sound {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0;
  font-family: var(--f-whisper);
  font-size: 1.15rem;
  color: var(--bone);
  white-space: nowrap;
}

.sound .drop { width: 0.42rem; transform: translateY(0.2rem); }
.sound[aria-pressed="true"] .drop { animation: drip 2.4s var(--ease) infinite; }

@keyframes drip {
  0%, 60%, 100% { transform: translateY(0.2rem); }
  75% { transform: translateY(0.45rem) scaleY(1.15); }
}

.menu-toggle {
  display: none;
  padding: 0.6rem 0;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (max-width: 1079.98px) {
  .site-nav { display: none; }
  .sound { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}

/* ==========================================================
   ELEVATOR: floor display, whisper, floor panel
   ========================================================== */

.lift {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.5rem;
  min-width: 4.6rem;
  padding: 0.5rem 0.75rem 0.55rem;
  background: var(--ink);
  border: 1px solid rgba(94, 113, 73, 0.7);
  color: var(--bone);
  transition: border-color 0.3s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s;
}

.lift:hover { border-color: var(--bone); }

.lift.is-away {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}

@media (max-width: 599.98px) {
  .lift { min-width: 4rem; padding: 0.4rem 0.6rem 0.45rem; }
  .lift__floor { font-size: 1.3rem; }
}
.is-opening .lift { opacity: 0; }

.lift__arrow {
  width: 0;
  height: 0;
  border-left: 0.32rem solid transparent;
  border-right: 0.32rem solid transparent;
  border-top: 0.42rem solid var(--lichen);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.lift.is-down .lift__arrow { opacity: 1; }
.lift.is-up .lift__arrow { opacity: 1; transform: rotate(180deg); }

.lift__floor {
  font-family: var(--f-data);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1;
  min-width: 1ch;
  text-align: center;
}

.lift__floor.is-changing { animation: floor-tick 0.4s var(--ease); }

@keyframes floor-tick {
  0% { opacity: 0; transform: translateY(-40%); }
  100% { opacity: 1; transform: none; }
}

.lift.is-haunted .lift__floor { color: var(--fresh); animation: haunt 0.9s steps(2) 2; }

@keyframes haunt {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.lift__label {
  grid-column: 1 / -1;
  font-family: var(--f-data);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lichen);
  text-align: center;
}

.lift-whisper {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 4.6rem);
  z-index: 60;
  max-width: min(21rem, calc(100vw - 32px));
  padding: 0.9rem 1.1rem;
  background: var(--ink);
  border: 1px solid var(--line);
  font-family: var(--f-whisper);
  font-size: 1.3rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.lift-whisper:empty { display: none; }
.lift-whisper.is-shown { opacity: 1; transform: none; }

.lift-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(12, 13, 11, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: panel-in 0.45s var(--ease);
}

.lift-panel[hidden] { display: none; }

@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }

.lift-panel__plate {
  width: min(100%, 26rem);
  max-height: 100%;
  overflow-y: auto;
  padding: 1.6rem 1.6rem 1.4rem;
  background: var(--grave);
  border: 1px solid rgba(94, 113, 73, 0.6);
  animation: plate-in 0.55s var(--ease);
}

@keyframes plate-in { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

.lift-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.lift-panel__close {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 0.5rem 0;
}

.lift-panel__close:hover { color: var(--bone); }

.lift-panel__buttons a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.45rem 0;
}

.lift-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(138, 156, 112, 0.7);
  border-radius: 50%;
  font-family: var(--f-data);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--bone);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.lift-panel__name {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.25s var(--ease);
}

.lift-panel__buttons a:hover .lift-btn,
.lift-panel__buttons a:focus-visible .lift-btn { border-color: var(--bone); }
.lift-panel__buttons a:hover .lift-panel__name,
.lift-panel__buttons a.is-current .lift-panel__name { color: var(--bone); }

.lift-panel__buttons a.is-current .lift-btn {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

.lift-panel__buttons a.is-lit .lift-btn {
  border-color: var(--fresh);
  box-shadow: inset 0 0 0 2px var(--fresh);
}

.lift-panel__foot {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
}

/* ==========================================================
   FLOOR 6 · HOME (hero)
   ========================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 0.75rem) var(--gutter) clamp(1.5rem, 4vh, 3rem);
  background: var(--ink);
}

.hero__inner {
  width: min(100%, calc((100svh - 300px) * 2.39), 1560px);
  margin-inline: auto;
}

.hero__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.hero__bar--top { padding-bottom: 0.9rem; }

.hero__live { color: var(--bone); }
.hero__live:hover .hero__live-text,
.hero__live:focus-visible .hero__live-text { text-decoration: underline; text-underline-offset: 0.35em; }

.hero__frame { width: 100%; }

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.hero__slide.is-active { opacity: 1; }

.hero__slide img,
.hero__slide video { transform: scale(1.02); }

.hero__slide.is-active img { animation: kenburns 11s linear forwards; }
.hero__slide video { transform: none; }

@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}

.hero__bar--bottom {
  align-items: flex-end;
  padding-top: clamp(1.2rem, 3vh, 2rem);
}

.hero__title {
  width: clamp(230px, 34vw, 520px);
  color: var(--bone);
  /* clear space: half the logo height on every side */
  padding-block: 0.15rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.hero__whisper {
  font-family: var(--f-whisper);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1;
  color: var(--ash);
}

@media (max-width: 899.98px) {
  .hero__inner { width: 100%; }
  .hero__frame { aspect-ratio: 16 / 10; }
}

@media (max-width: 599.98px) {
  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 1rem); }
  .hero__frame { aspect-ratio: 4 / 5; }
  .hero__bar--top { flex-direction: column; align-items: flex-start; }
  .hero__bar--bottom { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .hero__title { width: min(78vw, 320px); }
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: 100%; }
}

/* ==========================================================
   FLOOR 5 · ABOUT
   ========================================================== */

.about__grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1000px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.about__main .title { max-width: 11ch; }

.about__copy {
  display: grid;
  gap: 1.4rem;
  max-width: 36rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.about__still figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  font-size: 0.7rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin-top: 2.25rem;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 1.15rem 0 1.4rem;
  border-top: 1px solid var(--line);
}

.stat dd {
  font-family: var(--f-data);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.stat dt {
  font-family: var(--f-data);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.about__side > .whisper { margin-top: 1.5rem; }

.can-reveal .stat:nth-child(2) { transition-delay: 0.08s; }
.can-reveal .stat:nth-child(3) { transition-delay: 0.16s; }
.can-reveal .stat:nth-child(4) { transition-delay: 0.24s; }

/* What we stand for: horror in daylight */

.creed {
  background: var(--bone);
  color: var(--ink);
}

.creed :focus-visible { outline-color: var(--ink); }

.creed__head {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 1000px) {
  .creed__head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; }
}

.creed__head .title { max-width: 10ch; }

.creed__strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 900px) {
  .creed__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

.creed__frame {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.creed__frame img { width: 100%; height: 100%; object-fit: cover; }

.creed__strip figcaption {
  margin-top: 0.65rem;
  font-size: 0.62rem;
  color: var(--ink);
}

.can-reveal .creed__strip li:nth-child(2) { transition-delay: 0.08s; }
.can-reveal .creed__strip li:nth-child(3) { transition-delay: 0.16s; }
.can-reveal .creed__strip li:nth-child(4) { transition-delay: 0.24s; }

.creed__list {
  display: grid;
  gap: 2.5rem 2rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

@media (min-width: 640px) { .creed__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .creed__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.creed__list li {
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}

.creed__list .data { color: var(--blood); }

.creed__list h3 {
  margin-top: 0.6rem;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.creed__list p {
  margin-top: 0.8rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.can-reveal .creed__list li:nth-child(2) { transition-delay: 0.08s; }
.can-reveal .creed__list li:nth-child(3) { transition-delay: 0.16s; }
.can-reveal .creed__list li:nth-child(4) { transition-delay: 0.24s; }

.creed__for {
  display: grid;
  gap: 1.2rem 2rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(12, 13, 11, 0.25);
}

@media (min-width: 900px) {
  .creed__for { grid-template-columns: 0.7fr repeat(3, minmax(0, 1fr)); align-items: start; }
}

.creed__for b {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.creed__for .whisper { display: block; margin-top: 0.2rem; font-size: 1.35rem; }

/* ==========================================================
   FLOOR 4 · FILMS
   ========================================================== */

.films__head,
.team__head {
  display: grid;
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 1000px) {
  .films__head,
  .team__head { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
}

/* Featured: list + stage */

.feature {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 4vw, 4rem);
    align-items: start;
  }
}

.feature__item {
  --quiet: var(--grave);
  --loud: var(--moss);
  position: relative;
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.2rem 1rem;
  padding: 0.95rem 0 1rem;
  border-top: 1px solid var(--line);
}

.feature__list li:last-child .feature__item { border-bottom: 1px solid var(--line); }

.feature__item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--loud);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.feature__no {
  font-family: var(--f-data);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ash);
}

.feature__title {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: rgba(221, 226, 192, 0.3);
  transition: color 0.35s var(--ease), transform 0.5s var(--ease);
}

.feature__meta {
  grid-column: 2;
  font-family: var(--f-data);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.feature__thumb { display: none; }

.feature__item.is-active::before { transform: scaleX(1); }
.feature__item.is-active .feature__title,
.feature__item:hover .feature__title,
.feature__item:focus-visible .feature__title { color: var(--bone); }
.feature__item.is-active .feature__title { transform: translateX(0.4rem); }

.feature__stage {
  --quiet: #171729;
  --loud: #3F3562;
  --on-quiet: var(--bone);
  --on-quiet-soft: rgba(221, 226, 192, 0.7);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--quiet);
  color: var(--on-quiet);
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
}

.stage__slate {
  margin-bottom: 0.8rem;
  color: var(--on-quiet-soft);
}

.stage__frame img,
.stage__frame video {
  position: absolute;
  inset: 0;
  transition: opacity 0.7s var(--ease);
}

.stage__frame .is-leaving { opacity: 0; }

.stage__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--loud);
  transition: background-color 0.7s var(--ease);
  z-index: 3;
}

.stage__info { padding-top: 1.2rem; }

.stage__line { font-style: italic; }

.stage__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.3rem;
}

.stage__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.66rem;
  color: var(--on-quiet-soft);
}

.swatch {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.45rem;
  vertical-align: -0.12rem;
  border: 1px solid currentColor;
}

.feature__stage .btn--bone { background: var(--on-quiet); border-color: var(--on-quiet); color: var(--quiet); }
.feature__stage .btn--bone:hover { opacity: 0.85; }

/* Phones & tablets: swipe through film cards instead */
@media (max-width: 899.98px) {
  .feature__stage { display: none; }

  .feature__list {
    display: flex;
    gap: 0.9rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .feature__list::-webkit-scrollbar { display: none; }

  .feature__list li {
    flex: 0 0 min(82%, 26rem);
    scroll-snap-align: start;
  }

  .feature__item,
  .feature__list li:last-child .feature__item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 0 1.2rem;
    border: 0;
    background: var(--quiet);
    color: var(--on-quiet, var(--bone));
  }

  .feature__item::before { top: auto; bottom: 0; height: 3px; transform: none; z-index: 2; }

  .feature__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .feature__no,
  .feature__title,
  .feature__meta,
  .feature__line { padding-inline: 1rem; }

  .feature__no { margin-top: 1rem; color: inherit; opacity: 0.75; }
  .feature__title { margin-top: 0.3rem; color: inherit; font-size: 2.3rem; }
  .feature__item.is-active .feature__title { transform: none; }
  .feature__meta { color: inherit; opacity: 0.75; margin-top: 0.4rem; }

  .feature__line {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--f-whisper);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.2;
  }
}

@media (min-width: 900px) {
  .feature__line { display: none; }
}

/* The catalog */

.catalog { margin-top: clamp(5rem, 10vw, 8rem); scroll-margin-top: calc(var(--header-h) + 1.5rem); }

.catalog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.catalog__count { margin-top: 0.7rem; }

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line-strong);
  font-family: var(--f-data);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.chip:hover { border-color: var(--bone); color: var(--bone); }
.chip.is-on { background: var(--bone); border-color: var(--bone); color: var(--ink); }

.catalog__cols,
.cat-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 10rem 5.5rem 5rem 1.5rem;
  align-items: center;
  gap: 1rem;
}

.catalog__cols {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.64rem;
  color: var(--lichen);
}

.cat-row {
  position: relative;
  padding: 1rem 0.5rem 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}

.cat-row > span:not(.cat-title) {
  font-family: var(--f-data);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}

.cat-title {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.45s var(--ease);
}

.cat-go { text-align: right; transition: color 0.3s var(--ease), transform 0.3s var(--ease); }

.cat-row:hover,
.cat-row:focus-visible { background: rgba(94, 113, 73, 0.12); }
.cat-row:hover .cat-title,
.cat-row:focus-visible .cat-title { transform: translateX(0.5rem); }
.cat-row:hover .cat-go { color: var(--bone); transform: translateX(-0.2rem); }

.cat-sub { display: none; }

@media (max-width: 759.98px) {
  .catalog__cols { display: none; }
  .cat-row { grid-template-columns: 4.6rem minmax(0, 1fr) 1.2rem; gap: 0.25rem 0.8rem; }
  .cat-label, .cat-run, .cat-views { display: none; }
  .cat-sub {
    display: block;
    grid-column: 2;
    font-family: var(--f-data);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ash);
  }
  .cat-no { align-self: start; padding-top: 0.25rem; }
  .cat-go { grid-row: 1; grid-column: 3; }
}

.catalog__more { margin-top: 1.5rem; }
.catalog__more + .catalog__empty { padding-top: 1rem; }

.catalog__empty { padding: 2rem 0; color: var(--ash); }
.catalog__empty a { color: var(--bone); border-bottom: 1px solid var(--line-strong); }

.catalog .text-link { margin-top: 2.5rem; }

/* Thumbnail that follows the pointer over the catalog */
.peek {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 260px;
  aspect-ratio: 862 / 480;
  border: 1px solid var(--line-strong);
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek.is-on { opacity: 1; }

/* ==========================================================
   FLOOR 3 · WHERE TO WATCH
   ========================================================== */

.watch .title { max-width: 12ch; }

.platforms { margin-top: clamp(3rem, 6vw, 4.5rem); }

.platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name name" "media media" "meta go";
  align-items: end;
  gap: 1rem 2rem;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  border-top: 1px solid var(--line);
}

.platforms li:last-child .platform { border-bottom: 1px solid var(--line); }

.platform__name {
  grid-area: name;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(4.2rem, 16vw, 13.5rem);
  line-height: 0.8;
  text-transform: uppercase;
  color: var(--bone);
}

.platform__meta {
  grid-area: meta;
  display: grid;
  gap: 0.3rem;
}

.platform__meta .whisper { font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--ash); }

.platform__media {
  grid-area: media;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.6rem;
  align-self: center;
}

.shot { display: grid; gap: 0.45rem; min-width: 0; }

.shot__frame {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}

.platform__media .shot:only-child .shot__frame { aspect-ratio: 2.6 / 1; }

.shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.platform:hover .shot__frame img,
.platform:focus-visible .shot__frame img { transform: scale(1.04); filter: none; }

.shot .data {
  font-size: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 900px) {
  .platform {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) auto;
    grid-template-areas: "name media go" "meta media go";
    column-gap: 2.5rem;
  }
}

.platform__go {
  grid-area: go;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--ash);
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}

.platform:hover .platform__go,
.platform:focus-visible .platform__go { color: var(--bone); transform: translate(4px, -4px); }

/* Hover: a frame from our films fills the letters */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .platform__name {
    color: transparent;
    background-image: linear-gradient(var(--bone), var(--bone)), var(--still);
    background-size: 100% 100%, cover;
    background-position: center bottom, center 40%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-size 0.8s var(--ease-io);
  }

  .platform:hover .platform__name,
  .platform:focus-visible .platform__name {
    background-size: 100% 0%, cover;
  }
}

/* ==========================================================
   FLOOR 2 · SUBMIT
   ========================================================== */

.submit { background: var(--ink); }

.submit__grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1000px) {
  .submit__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
}

.presents {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
  color: var(--bone);
}

.presents .logo-mark { width: clamp(150px, 16vw, 200px); }

.presents__label {
  padding-left: 0.5em;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ash);
}

.submit .title { margin-top: 2.2rem; max-width: 9ch; }
.submit .whisper--xl { margin-top: 0.8rem; }

.submit__body {
  max-width: 32rem;
  margin-top: 1.6rem;
  color: var(--ash);
}

.submit__count { margin-top: 1rem; }
.submit__count a { color: var(--bone); border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s var(--ease); }
.submit__count a:hover { border-color: var(--bone); }

.submit__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-top: 2.2rem;
}

.submit__actions a { color: var(--bone); border-bottom: 1px solid var(--line-strong); text-transform: none; letter-spacing: 0.04em; }

/* The title card */
.titlecard,
.form-dialog__card {
  display: block;
  width: 100%;
  padding-block: 9%;
  background: #000;
  border: 1px solid var(--line);
  text-align: center;
  transition: border-color 0.4s var(--ease);
}

.titlecard:hover { border-color: rgba(94, 113, 73, 0.8); }

.titlecard__frame,
.form-dialog__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.titlecard__frame {
  aspect-ratio: 2.39 / 1;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(12, 13, 11, 0.72), rgba(12, 13, 11, 0.72)),
    url("images/films/submit-frame.jpg") center 55% / cover no-repeat,
    var(--grave);
}

.titlecard__top { color: var(--lichen); letter-spacing: 0.3em; }

.titlecard__title {
  max-width: 100%;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--bone);
  overflow-wrap: anywhere;
}

.titlecard__slate { font-size: 0.68rem; }

/* ==========================================================
   FLOOR 1 · TEAM (business cards)
   ========================================================== */

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
}

/* A portrait on top, the business card below */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, 0.8);
}

.card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--grave);
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.card:hover .card__photo img { transform: scale(1.03); }

.card__panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
}

.card__grin { flex: none; width: 2.6rem; color: var(--blood); }

.card__name {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.card__role {
  margin-top: 0.7rem;
  font-weight: 700;
  font-size: 0.66rem;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blood);
}

/* Phones: portrait beside the card */
@media (max-width: 699.98px) {
  .card { flex-direction: row; }
  .card__photo { flex: none; width: 42%; }
  .card__panel { flex-direction: column-reverse; justify-content: flex-end; }
  .card__grin { width: 2.1rem; }
}

.can-reveal .card:nth-child(2) { transition-delay: 0.1s; }
.can-reveal .card:nth-child(3) { transition-delay: 0.2s; }

/* ==========================================================
   GROUND FLOOR · CONTACT (end screen)
   ========================================================== */

.contact {
  padding-bottom: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.contact__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.contact__grid {
  display: grid;
  gap: 3rem;
  margin-top: 1rem;
}

@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 5rem; align-items: end; }
}

.contact__grid .whisper { margin-top: 1.6rem; max-width: 28rem; color: var(--ash); }

.contact__email {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--moss);
  font-family: var(--f-whisper);
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  transition: border-color 0.3s var(--ease);
}

.contact__email:hover { border-color: var(--bone); }

.contact__side {
  display: grid;
  gap: 2.5rem;
}

.contact__list { border-top: 1px solid var(--line); }

.contact__list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.3rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact__list a { overflow-wrap: anywhere; transition: color 0.3s var(--ease); }
.contact__list a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--moss); text-underline-offset: 0.3em; }

.subscribe {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  justify-self: start;
}

.subscribe__ring {
  display: grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  border: 1px solid var(--moss);
  border-radius: 50%;
  background: var(--ink);
  transition: border-color 0.3s var(--ease);
}

.subscribe__grin { width: 3.2rem; color: var(--bone); }
.subscribe:hover .subscribe__ring { border-color: var(--bone); }
.subscribe .label { color: var(--bone); }

.watch-next { margin-top: clamp(4rem, 8vw, 6rem); }

.watch-next__grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.2rem;
}

@media (min-width: 700px) {
  .watch-next__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

.next-film { display: grid; gap: 0.6rem; }

.next-film__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}

.next-film__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }

.next-film__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  margin: auto;
  border: 1px solid rgba(221, 226, 192, 0.7);
  border-radius: 50%;
  background: rgba(12, 13, 11, 0.55);
  color: var(--bone);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.next-film__play svg { width: 1.3rem; height: 1.3rem; margin-left: 0.15rem; }

.next-film:hover .next-film__frame,
.next-film:focus-visible .next-film__frame { border-color: var(--bone); }
.next-film:hover img,
.next-film:focus-visible img { transform: scale(1.04); }
.next-film:hover .next-film__play,
.next-film:focus-visible .next-film__play { opacity: 1; }

.next-film__title {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.contact__sign {
  margin-top: clamp(4rem, 8vw, 6rem);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2rem calc(2rem + 5rem);
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer__logo { width: 104px; color: var(--bone); }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.site-footer__links a {
  color: var(--bone);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-footer__links a:hover { border-color: var(--bone); }

/* ==========================================================
   FILM PLAYER
   ========================================================== */

.player {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  border: 0;
  background: var(--ink);
  color: var(--bone);
}

.player[open] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  animation: panel-in 0.4s var(--ease);
}

.player::backdrop { background: rgba(0, 0, 0, 0.9); }

.player__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, calc((100vh - 220px) * 16 / 9));
  margin-inline: auto;
}

.player__frame {
  width: min(100%, calc((100vh - 220px) * 16 / 9));
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  background: #000;
}

.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.player__close,
.form-dialog__close {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 0.6rem 0;
}

.player__close:hover,
.form-dialog__close:hover { color: var(--bone); }

.player__line { font-style: italic; font-size: 1.4rem; }

/* ==========================================================
   SUBMISSION FORM (slides in from the right)
   ========================================================== */

.form-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 40rem);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  padding-left: max(clamp(1.25rem, 3vw, 2.25rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.25rem, 3vw, 2.25rem), env(safe-area-inset-right, 0px));
  border: 0;
  border-left: 1px solid rgba(94, 113, 73, 0.6);
  background: var(--grave);
  color: var(--bone);
  overflow-y: auto;
}

.form-dialog[open] { animation: drawer-in 0.55s var(--ease); }
.form-dialog::backdrop { background: rgba(12, 13, 11, 0.75); }

@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.form-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-dialog__card {
  margin-top: 1.2rem;
  padding: 2.4rem 1.2rem;
  background: radial-gradient(70% 90% at 50% 50%, #1f261f, #000 75%);
}

.form-dialog__card .titlecard__title { font-size: clamp(2rem, 6vw, 3.2rem); }

.submit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1rem;
  margin-top: 1.8rem;
}

.field { display: grid; gap: 0.45rem; min-width: 0; align-content: start; }
.field--wide { grid-column: 1 / -1; }

@media (max-width: 519.98px) {
  .field { grid-column: 1 / -1; }
}

.field label {
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lichen);
}

.field label span { color: var(--ash); font-weight: 400; letter-spacing: 0.12em; margin-left: 0.4rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.25s var(--ease);
}

.field textarea { resize: vertical; min-height: 5.5rem; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(163, 156, 132, 0.6); }

.field input:focus,
.field textarea:focus { outline: none; border-color: var(--bone); }

.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--fresh); }

.field__hint { font-size: 0.82rem; color: var(--ash); line-height: 1.45; }

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.field--check input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: var(--moss);
}

.field--check label {
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone);
}

.field--check.is-invalid label { text-decoration: underline; text-decoration-color: var(--fresh); text-underline-offset: 0.3em; }

.field--honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 0.4rem;
}

.submit-form__status { color: var(--bone); text-transform: none; letter-spacing: 0.04em; }
.submit-form__status a { border-bottom: 1px solid var(--line-strong); }

.submit-form.is-sending .submit-form__send { opacity: 0.6; pointer-events: none; }

.form-done { padding-top: 2.5rem; }
.form-done[hidden] { display: none; }
.form-done .whisper { margin-top: 1rem; }
.form-done .btn { margin-top: 2rem; }

/* ==========================================================
   Respect "reduce motion"
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .can-reveal .reveal,
  .can-reveal .title.reveal,
  .can-reveal .title-m.reveal { opacity: 1; transform: none; clip-path: none; }
}
