/* ihatelinks.fun/mqnx: night film. Notes in DESIGN.md. */

@font-face {
  font-family: "mqnx mono";
  src: url("/assets/fonts/CascadiaMono.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #05070f;
  --ink: #0a0e1d;
  --text: #eaf0ff;
  --soft: #c6cfe6;
  --muted: #8f9bbb;
  --line: rgba(206, 220, 255, .14);
  --line-strong: rgba(206, 220, 255, .26);
  --neon: #ff5ccf;
  --neon-hot: #ffe3f6;
  --violet: #a58bff;

  --font: "mqnx mono", "Cascadia Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(20px, 5vw, 64px);
  --column: 1120px;
  --bar: clamp(14px, 4.4vh, 48px);

  /* Driven by mqnx.js on scroll */
  --hp: 0;     /* 0 at the top, 1 once the hero has scrolled away */
  --bars: 1;   /* letterbox scale */
}

* { box-sizing: border-box; }

html {
  background: var(--night);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(255, 92, 207, .38); color: #fff; }

a { color: inherit; }
img, video { display: block; max-width: 100%; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ───────── The plate: the film behind everything ───────── */

.plate {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--night) url("/assets/bg-poster.webp") center / cover no-repeat;
}

.plate-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: saturate(.92) brightness(.8) contrast(1.06);
  scale: calc(1.06 + var(--hp) * .08);
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift {
  from { translate: -1.2% -.6%; }
  to   { translate: 1.2% .8%; }
}

/* A slow pink and violet light leak, like light hitting the lens */
.plate-leak {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 34% at 80% 20%, rgba(255, 92, 207, .26), transparent 70%),
    radial-gradient(44% 40% at 12% 88%, rgba(165, 139, 255, .22), transparent 70%);
  mix-blend-mode: screen;
  animation: leak 24s ease-in-out infinite alternate;
}
@keyframes leak {
  from { translate: -3% 2%; rotate: -2deg; }
  to   { translate: 3% -2%; rotate: 2deg; }
}

/* Grade: darker at the top for the HUD, at the left for the text, at the bottom */
.plate-grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 15, .6) 0%, rgba(5, 7, 15, .08) 26%, rgba(5, 7, 15, .3) 62%, rgba(5, 7, 15, .94) 100%),
    linear-gradient(90deg, rgba(5, 7, 15, .72) 0%, rgba(5, 7, 15, .2) 55%, rgba(5, 7, 15, 0) 100%);
}

/* The sky deepens into night as the visitor scrolls */
.plate-night {
  position: absolute;
  inset: 0;
  background: var(--night);
  opacity: calc(var(--hp) * .8);
}

.plate-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 52%, rgba(0, 0, 0, .62) 100%);
}

/* Film grain: a noise tile made in mqnx.js, jittered a few times a second */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 50;
  pointer-events: none;
  background-image: var(--grain, none);
  background-size: 160px 160px;
  opacity: .085;
  mix-blend-mode: overlay;
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0%   { translate: 0 0; }
  20%  { translate: -4% 3%; }
  40%  { translate: 3% -5%; }
  60%  { translate: -6% -2%; }
  80%  { translate: 5% 4%; }
  100% { translate: -2% 6%; }
}

/* Letterbox: full at the top of the page, gone once the hero scrolls away */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--bar);
  background: #000;
  pointer-events: none;
  transform: scaleY(var(--bars));
}
.bar-top { top: 0; transform-origin: top; }
.bar-bottom { bottom: 0; transform-origin: bottom; }

/* ───────── Opening titles (first visit per session) ───────── */

.intro,
.intro-skip { display: none; }

.intro-run .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.intro-gate {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: #000;
}
.intro-gate-top { top: 0; animation: gate-top 1.05s var(--ease-in-out) .95s both; }
.intro-gate-bottom { bottom: 0; animation: gate-bottom 1.05s var(--ease-in-out) .95s both; }
@keyframes gate-top { to { translate: 0 -100%; } }
@keyframes gate-bottom { to { translate: 0 100%; } }

/* A line of light opens across the black, then the frame splits along it */
.intro-flare {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--neon) 28%, #fff 50%, var(--violet) 72%, transparent);
  box-shadow: 0 0 26px 4px rgba(255, 92, 207, .55);
  animation: intro-flare 1.6s var(--ease-out) .1s both;
}
@keyframes intro-flare {
  0%   { scale: 0 1; opacity: 0; }
  25%  { opacity: 1; }
  55%  { scale: 1 1; opacity: 1; }
  100% { scale: 1.25 1; opacity: 0; }
}

.intro-run .plate { animation: plate-push 2.8s var(--ease-out) .7s both; }
@keyframes plate-push {
  from { transform: scale(1.16); filter: brightness(.35); }
  to   { transform: none; filter: none; }
}

.intro-run .hud { animation: fade-in .9s ease 1.9s both; }
.intro-run .cue { animation: fade-in .9s ease 2.4s both; }
@keyframes fade-in { from { opacity: 0; } }

.intro-run .intro-skip {
  display: inline-flex;
  align-items: center;
  position: fixed;
  right: var(--gutter);
  bottom: calc(var(--bar) + 18px);
  z-index: 61;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(0, 0, 0, .55);
  color: rgba(255, 255, 255, .8);
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
  animation: fade-in .6s ease .3s both;
}
.intro-run .intro-skip:hover { color: #fff; border-color: var(--neon); }

/* ───────── HUD: the slate at the top ───────── */

.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: max(var(--bar), 52px);
  padding: 8px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .5s ease, border-color .5s ease, backdrop-filter .5s ease;
}
.hud.is-solid {
  background: rgba(5, 7, 15, .62);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.hud-mark { color: var(--muted); font-size: .78rem; letter-spacing: .02em; }
.hud-mark span { color: var(--text); }

.hud-right { display: flex; align-items: center; gap: 18px; }
.hud-clock { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-clock time { color: var(--text); }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(5, 7, 15, .5);
}
.lang button {
  min-width: 40px;
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .25s ease, background .35s var(--ease-out);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--night); }

/* ───────── Hero ───────── */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(max(var(--bar), 52px) + 56px) var(--gutter) calc(var(--bar) + 96px);
  overflow-x: clip;
}

/* Soft light that follows the pointer */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--px, 28%) var(--py, 42%), rgba(255, 92, 207, .09), transparent 62%);
}

.hero-inner {
  position: relative;
  width: min(var(--column), 100%);
  margin: 0 auto;
  translate: 0 calc(var(--hp) * -10vh);
  opacity: calc(1 - var(--hp) * 1.15);
}

.title-wrap {
  position: relative;
  margin: 0 0 clamp(34px, 6vw, 64px);
}

/* The sign: thin strokes read as glass tubes. Behind it, the unlit tube. */
.title {
  position: relative;
  margin: 0;
  font-size: clamp(4.6rem, 17vw, 13.5rem);
  font-weight: 250;
  line-height: .86;
  letter-spacing: -.055em;
  cursor: default;
}
.title::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 214, 240, .07);
  -webkit-text-stroke: 1px rgba(255, 140, 220, .14);
}
.neon {
  position: relative;
  display: inline-block;
  color: var(--neon-hot);
  text-shadow:
    0 0 1px #fff,
    0 0 6px var(--neon),
    0 0 16px var(--neon),
    0 0 36px rgba(255, 92, 207, .75),
    0 0 80px rgba(255, 92, 207, .45),
    0 0 150px rgba(165, 139, 255, .35);
}

/* Its reflection, as if on wet glass below */
.title-reflection {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: .02em;
  font-size: clamp(4.6rem, 17vw, 13.5rem);
  font-weight: 250;
  line-height: .86;
  letter-spacing: -.055em;
  color: var(--neon);
  opacity: .2;
  transform: scaleY(-1);
  transform-origin: top;
  filter: blur(5px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 60%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 60%);
  pointer-events: none;
  user-select: none;
}
.title-reflection span { display: inline-block; }

/* Flicker on once, buzz on hover (mqnx.js swaps the classes) */
.neon-anim:not(.lit) { animation: neon-on 1.15s linear .3s both; }
.intro-run .neon-anim:not(.lit) { animation-delay: 1.25s; }
.neon-anim.lit.buzz { animation: neon-buzz .55s linear; }

@keyframes neon-on {
  0%, 9%   { opacity: 0; }
  10%      { opacity: 1; }
  13%      { opacity: 0; }
  20%      { opacity: .9; }
  22%      { opacity: .08; }
  30%, 34% { opacity: 1; }
  36%      { opacity: .3; }
  42%, 100% { opacity: 1; }
}
@keyframes neon-buzz {
  0%, 100% { opacity: 1; }
  18% { opacity: .3; }
  24% { opacity: 1; }
  58% { opacity: .55; }
  63% { opacity: 1; }
}

/* Anamorphic streak through the sign */
.flare-line {
  position: absolute;
  left: calc(-1 * var(--gutter) - 12vw);
  right: -40vw;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 92, 207, .5) 24%, rgba(255, 244, 252, .95) 36%, rgba(165, 139, 255, .5) 52%, transparent 80%);
  box-shadow: 0 0 14px 2px rgba(255, 92, 207, .32);
  opacity: .5;
  pointer-events: none;
  animation: flare-breathe 7s ease-in-out infinite alternate;
}
@keyframes flare-breathe {
  from { opacity: .32; scale: .92 1; }
  to   { opacity: .6; scale: 1.04 1; }
}
.intro-run .flare-line { animation: flare-in 1.4s var(--ease-out) 1.3s both; }
@keyframes flare-in {
  from { opacity: 0; scale: 0 1; }
  to   { opacity: .5; scale: 1 1; }
}

/* Who */
.who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.avatar { position: relative; flex: none; width: 56px; height: 56px; }
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 30px -6px rgba(255, 92, 207, .45);
}
.dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--night);
  border-radius: 50%;
  background: #80848e;
}
.dot.online  { background: #23a55a; --glow: rgba(35, 165, 90, .75); }
.dot.idle    { background: #f0b232; --glow: rgba(240, 178, 50, .7); }
.dot.dnd     { background: #f23f43; --glow: rgba(242, 63, 67, .7); }
.dot.online,
.dot.idle,
.dot.dnd { animation: status-pulse 2.8s ease-in-out infinite; }
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--glow); }
  50%      { box-shadow: 0 0 18px 3px var(--glow); }
}
.dot.offline { background: #80848e; }

.who-name { font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.who-handle { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.who-status { margin-top: 2px; color: var(--soft); font-size: .8rem; line-height: 1.4; }
.who-status:empty { display: none; }

.bio {
  max-width: 54ch;
  margin-bottom: 30px;
  color: var(--soft);
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
}

.nw { white-space: nowrap; }

/* Contacts */
.contacts { display: flex; flex-wrap: wrap; gap: 10px; }

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 11, 24, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  transition: border-color .35s ease, box-shadow .45s ease, translate .45s var(--ease-out), transform .6s var(--ease-out);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(255, 92, 207, .16), rgba(165, 139, 255, .08) 60%, transparent);
  opacity: 0;
  transition: opacity .45s ease;
}
.contact:hover,
.contact:focus-visible {
  border-color: rgba(255, 92, 207, .55);
  box-shadow: 0 10px 34px -14px rgba(255, 92, 207, .7);
  translate: 0 -2px;
}
.contact:hover::before,
.contact:focus-visible::before { opacity: 1; }
.contact:active { translate: 0 0; }
.contact svg,
.contact img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.contact svg { fill: currentColor; transition: color .35s ease; }
.contact:hover svg { color: var(--neon); }
.contact-text { display: flex; flex-direction: column; line-height: 1.3; }
.contact-label { font-size: .88rem; font-weight: 600; }
.contact-handle { color: var(--muted); font-size: .76rem; }

/* Scroll cue */
.cue {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar) + 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  translate: -50% 0;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
  opacity: calc(1 - var(--hp) * 4);
}
.cue i {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--text), transparent);
  transform-origin: top;
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue {
  0%   { scale: 1 0; opacity: 1; }
  50%  { scale: 1 1; opacity: 1; translate: 0 0; }
  100% { scale: 1 1; opacity: 0; translate: 0 12px; }
}

/* ───────── Scenes ───────── */

.scene {
  position: relative;
  z-index: 1;
  width: min(var(--column), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: clamp(96px, 16vh, 180px);
}

.scene-title {
  margin: 0 0 clamp(26px, 4vw, 46px);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.04em;
}

/* Commissions */
.statement {
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(1.3rem, 2.6vw, 2.05rem);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -.02em;
}
.statement strong { color: var(--text); font-weight: 500; }

.hire-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(32px, 5vw, 52px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hire-body { max-width: 50ch; color: var(--soft); font-size: .9rem; }
.hire-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hire-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 92, 207, .5);
  border-radius: 14px;
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .4s ease, border-color .3s ease, box-shadow .45s ease, transform .6s var(--ease-out);
}
/* A fill that sweeps across on hover and focus, behind the label */
.hire-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--neon), #d06bff);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s var(--ease-out);
}
.hire-btn:hover::before,
.hire-btn:focus-visible::before { transform: scaleX(1); }
.hire-btn:hover,
.hire-btn:focus-visible {
  color: #fff;
  border-color: var(--neon);
  box-shadow: 0 12px 40px -14px rgba(255, 92, 207, .85);
}
.hire-btn svg { flex: none; width: 16px; height: 16px; fill: currentColor; }

/* Portfolio */
.group-title {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
}

.reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 32px);
  align-items: start;
}

.reel { position: relative; min-width: 0; }

.reel-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #03050b;
  box-shadow:
    0 0 0 1px var(--line),
    0 34px 80px -34px rgba(0, 0, 0, .9),
    0 0 70px -26px rgba(255, 92, 207, .28);
}

/* Light that follows the pointer over the frame */
.reel-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .09), transparent 60%);
  opacity: 0;
  transition: opacity .5s ease;
}
.reel-frame:hover::before { opacity: 1; }

.shots {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #03050b;
  touch-action: pan-y;
  transition: aspect-ratio .8s var(--ease-out);
}
.shots:focus-visible { outline-offset: -3px; }

/* Each frame sits at its offset from the current one (--o) and glides there:
   a short slide, a settle from a slight zoom, and a focus pull, all at once.
   2D only: 3D transforms or will-change make the video look grainy on desktop. */
.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  opacity: var(--op, 0);
  transform: translateX(calc(var(--o, 0) * 34%)) scale(var(--sc, 1));
  filter: none;
  transition:
    transform 1.15s var(--ease-out),
    opacity .85s cubic-bezier(.4, 0, .2, 1),
    filter .95s var(--ease-out);
}
.shot.is-out { filter: blur(10px); }

.counter {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 4;
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.counter b { display: inline-block; color: #fff; font-weight: 600; }
.counter b.tick { animation: tick .65s var(--ease-out); }
@keyframes tick {
  from { opacity: 0; translate: 0 70%; filter: blur(3px); }
}

.nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(5, 7, 15, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: opacity .35s ease, visibility .35s ease, background .25s ease, border-color .25s ease, scale .35s var(--ease-out), transform .6s var(--ease-out);
}
.nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-prev { left: 14px; }
.nav-next { right: 14px; }
.nav:hover { background: var(--neon); border-color: var(--neon); scale: 1.07; }
.nav.is-off { opacity: 0; visibility: hidden; pointer-events: none; }

.dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 4;
  display: flex;
  gap: 6px;
  translate: -50% 0;
}
.dot-btn {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
  transition: width .4s var(--ease-out), background .3s ease;
}
.dot-btn[aria-pressed="true"] { width: 24px; background: var(--neon); }

.reel-caption { padding: 20px 4px 0; }
.reel-name {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.reel-desc {
  max-width: 58ch;
  margin-bottom: 14px;
  color: var(--soft);
  font-size: .88rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .72rem;
}

/* Credits */
.credits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(64px, 10vw, 112px);
}
.credit-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.credit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.credit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 92, 207, .14), rgba(165, 139, 255, .05) 55%, transparent 80%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s var(--ease-out);
}
.credit:hover::before,
.credit:focus-visible::before { transform: scaleX(1); }
.credit-logo {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.credit-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: translate .55s var(--ease-out);
}
.credit:hover .credit-name { translate: 6px 0; }
.credit-meta { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.credit-arrow {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  transition: translate .55s var(--ease-out), color .3s ease;
}
.credit:hover .credit-arrow { translate: 3px -3px; color: var(--neon); }

.empty { color: var(--muted); font-size: .85rem; padding: 14px 8px; }

/* ───────── End credits ───────── */

.end {
  position: relative;
  z-index: 1;
  padding: clamp(140px, 24vh, 260px) var(--gutter) 56px;
  text-align: center;
}
.end-line { color: var(--muted); font-size: .78rem; }

/* ───────── Reveals ───────── */

/* Text comes into focus. Fill mode "backwards": once done, the element is back
   to its own styles, so hover effects on it keep working. */
.js .reveal:not(.in) { opacity: 0; }
.js .reveal.in { animation: focus-in 1.15s var(--ease-out) var(--d, 0ms) backwards; }
@keyframes focus-in {
  from { opacity: 0; filter: blur(12px); translate: 0 22px; }
}
.intro-run .hero .reveal.in { animation-delay: calc(var(--d, 0ms) + 1.75s); }

/* Split text: words rise into focus one after another */
.js [data-split].reveal.in { animation: none; }
.js [data-split] .w { display: inline-block; }
.js [data-split].in .w { animation: word-in 1s var(--ease-out) calc(var(--d, 0ms) + var(--i, 0) * 32ms) backwards; }
.intro-run .hero [data-split].in .w { animation-delay: calc(1.75s + var(--d, 0ms) + var(--i, 0) * 32ms); }
@keyframes word-in {
  from { opacity: 0; translate: 0 .6em; filter: blur(8px); }
}

/* Media opens like a shutter, then its caption comes into focus.
   The observed card itself is never clipped: IntersectionObserver would see a
   zero-size target and never fire. Only the frame inside it is. */
.js .reveal-shutter:not(.in) .reel-frame { clip-path: inset(50% 0 50% 0); opacity: 0; }
.js .reveal-shutter.in .reel-frame { animation: shutter 1.35s var(--ease-out) var(--d, 0ms) backwards; }
.js .reveal-shutter:not(.in) .reel-caption { opacity: 0; }
.js .reveal-shutter.in .reel-caption { animation: focus-in 1.15s var(--ease-out) calc(var(--d, 0ms) + 350ms) backwards; }
@keyframes shutter {
  from { clip-path: inset(50% 0 50% 0); opacity: .3; }
  to   { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* Buttons lean toward the pointer (mqnx.js sets --tx and --ty) */
.magnet { transform: translate(var(--tx, 0px), var(--ty, 0px)); }

/* Playback line: how far through the page you are */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 46;
  height: 2px;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--neon));
  box-shadow: 0 0 12px rgba(255, 92, 207, .7);
  transform: scaleX(var(--sp, 0));
  transform-origin: left center;
}

/* Language switch: the page dips out of focus and back */
.swap .hero-inner,
.swap .scene { animation: swap .7s var(--ease-out); }
@keyframes swap {
  from { opacity: .2; filter: blur(5px); }
}

/* ───────── Small screens ───────── */

@media (max-width: 760px) {
  body { font-size: 15px; }
  .hud-mark { display: none; }
  .hud { justify-content: flex-end; }
  .hero { align-items: flex-end; padding-bottom: calc(var(--bar) + 40px); }
  .title,
  .title-reflection { font-size: clamp(4.6rem, 24vw, 7.5rem); }
  .cue { display: none; }
  .contacts { display: grid; grid-template-columns: 1fr 1fr; }
  .contact { padding: 10px 12px; }
  .reels,
  .credits { grid-template-columns: minmax(0, 1fr); }
  .hire-foot { flex-direction: column; align-items: flex-start; }
  .grain { opacity: .06; animation-duration: 1.6s; }
  .flare-line { right: -20vw; }
}

@media (hover: none) {
  .hero::before { display: none; }
}
