:root {
  --ground-000: #050303;
  --ground-100: #0d0909;
  --ground-200: #17100f;
  --ground-tint: #260607;
  --ink-000: #ece8e0;
  --ink-muted: #8c877e;
  --ink-faint: #54514b;
  --line: rgba(236, 232, 224, 0.12);
  --line-strong: rgba(236, 232, 224, 0.24);
  --acc: #e2362b;
  --acc-rgb: 226, 54, 43;
  --header-h: 72px;
  --font-display: "Archivo", Impact, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

body[data-theme="magenta"] {
  --acc: #e2369c;
  --acc-rgb: 226, 54, 156;
}

body[data-theme="acid"] {
  --acc: #9ef01a;
  --acc-rgb: 158, 240, 26;
}

body[data-theme="amber"] {
  --acc: #f5a623;
  --acc-rgb: 245, 166, 35;
}

body[data-theme="blood"] {
  --acc: #e2362b;
  --acc-rgb: 226, 54, 43;
}

body[data-theme="violet"] {
  --acc: #7b5bff;
  --acc-rgb: 123, 91, 255;
}

body[data-theme="bone"] {
  --acc: #ece8e0;
  --acc-rgb: 236, 232, 224;
}

body[data-world="ritual"] {
  --world-feature-sat: 0.76;
  --world-feature-contrast: 1.24;
  --world-feature-brightness: 0.9;
  --world-card-sat: 0.46;
  --world-card-brightness: 0.78;
  --world-sheet-sat: 0.52;
  --world-mist: 0.13;
}

body[data-world="bloom"] {
  --ground-000: #04100d;
  --ground-100: #071915;
  --ground-200: #10251e;
  --ground-tint: #112f24;
  --acc: #64ff9a;
  --acc-rgb: 100, 255, 154;
  --ink-muted: #a6b4a7;
  --world-feature-sat: 1.24;
  --world-feature-contrast: 1.04;
  --world-feature-brightness: 1.02;
  --world-card-sat: 1.05;
  --world-card-brightness: 0.92;
  --world-sheet-sat: 1;
  --world-mist: 0.19;
}

body[data-world="daylight"] {
  --ground-000: #080b0c;
  --ground-100: #101719;
  --ground-200: #1b2425;
  --ground-tint: #26342f;
  --acc: #d8f3dc;
  --acc-rgb: 216, 243, 220;
  --ink-muted: #aeb7b2;
  --world-feature-sat: 0.98;
  --world-feature-contrast: 0.98;
  --world-feature-brightness: 1.08;
  --world-card-sat: 0.86;
  --world-card-brightness: 0.95;
  --world-sheet-sat: 0.9;
  --world-mist: 0.08;
}

body[data-world="warm"] {
  --ground-000: #070504;
  --ground-100: #120d08;
  --ground-200: #1f160d;
  --ground-tint: #2a1a0d;
  --acc: #ffb36f;
  --acc-rgb: 255, 179, 111;
  --world-feature-sat: 1.06;
  --world-feature-contrast: 1.08;
  --world-feature-brightness: 1.01;
  --world-card-sat: 0.92;
  --world-card-brightness: 0.9;
  --world-sheet-sat: 0.9;
  --world-mist: 0.16;
}

body[data-world="electric"] {
  --ground-000: #03060a;
  --ground-100: #071019;
  --ground-200: #0d1823;
  --ground-tint: #08192b;
  --acc: #66d9ff;
  --acc-rgb: 102, 217, 255;
  --world-feature-sat: 1.08;
  --world-feature-contrast: 1.3;
  --world-feature-brightness: 0.94;
  --world-card-sat: 0.86;
  --world-card-brightness: 0.82;
  --world-sheet-sat: 0.88;
  --world-mist: 0.16;
}

body[data-photo-world="ritual"] {
  --world-feature-sat: 0.76;
  --world-feature-contrast: 1.24;
  --world-feature-brightness: 0.9;
  --world-card-sat: 0.46;
  --world-card-brightness: 0.78;
  --world-sheet-sat: 0.52;
}

body[data-photo-world="bloom"] {
  --world-feature-sat: 1.24;
  --world-feature-contrast: 1.04;
  --world-feature-brightness: 1.02;
  --world-card-sat: 1.05;
  --world-card-brightness: 0.92;
  --world-sheet-sat: 1;
}

body[data-photo-world="daylight"] {
  --world-feature-sat: 0.98;
  --world-feature-contrast: 0.98;
  --world-feature-brightness: 1.08;
  --world-card-sat: 0.86;
  --world-card-brightness: 0.95;
  --world-sheet-sat: 0.9;
}

body[data-photo-world="warm"] {
  --world-feature-sat: 1.06;
  --world-feature-contrast: 1.08;
  --world-feature-brightness: 1.01;
  --world-card-sat: 0.92;
  --world-card-brightness: 0.9;
  --world-sheet-sat: 0.9;
}

body[data-photo-world="electric"] {
  --world-feature-sat: 1.08;
  --world-feature-contrast: 1.3;
  --world-feature-brightness: 0.94;
  --world-card-sat: 0.86;
  --world-card-brightness: 0.82;
  --world-sheet-sat: 0.88;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ground-000);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 52% 28%, rgba(var(--acc-rgb), var(--world-mist, 0.13)), transparent 26rem),
    radial-gradient(circle at 14% 8%, rgba(var(--acc-rgb), 0.10), transparent 28rem),
    linear-gradient(135deg, var(--ground-000), var(--ground-tint) 48%, #020202);
  color: var(--ink-000);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.042;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.13;
  background-image: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.44) 2px 3px);
}

.signal-canvas {
  position: fixed;
  inset: 0;
  z-index: 190;
  width: 100%;
  height: 100%;
  opacity: 0.86;
  pointer-events: none;
  mix-blend-mode: screen;
}

.signal-canvas.is-unavailable {
  display: none;
}

.vision-canvas {
  position: fixed;
  inset: 0;
  z-index: 205;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 220ms ease;
}

body[data-shader="vision"] .vision-canvas {
  opacity: 0.94;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

body.is-cinema-open {
  overflow: hidden;
}

body.is-tune-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 220;
  transform: translateY(-160%);
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  background: var(--ground-200);
  color: var(--ink-000);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 3, 3, 0.72);
  backdrop-filter: blur(18px);
}

main {
  position: relative;
  z-index: 2;
}

body.is-cinema-open main,
body.is-tune-open main {
  z-index: 260;
}

.brand-mark {
  display: inline-grid;
  grid-template-columns: 2.5rem auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.brand-mark span:first-child {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--ground-100);
  color: var(--acc);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.site-nav a {
  padding: 0.75rem 0.85rem;
  color: var(--ink-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-tune:hover,
.nav-tune:focus-visible {
  color: var(--ink-000);
}

.nav-tune {
  padding: 0.75rem 0.85rem;
  border: 0;
  background: transparent;
  color: var(--acc);
  font-family: inherit;
  font-size: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.runway {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-h) + 1.2rem) 1rem 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.runway-depth {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--depth-opacity, 0.9);
  mix-blend-mode: normal;
  transition: opacity 420ms ease;
}

.runway-depth canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.runway-depth.is-depth-unavailable {
  display: none;
}

body[data-depth="off"] .runway-depth {
  display: none;
}

body[data-depth="subtle"] {
  --depth-opacity: 0.58;
}

body[data-depth="runway"] {
  --depth-opacity: 0.82;
}

body[data-depth="deep"] {
  --depth-opacity: 1;
}

.runway::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.17;
  background:
    linear-gradient(rgba(236, 232, 224, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 54, 43, 0.045) 1px, transparent 1px);
  background-size: 8.333% 100%, 100% 8.333%;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.runway::after {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(104deg, transparent 0 42%, rgba(var(--acc-rgb), 0.22) 48%, transparent 54%),
    linear-gradient(90deg, transparent, rgba(236, 232, 224, 0.035), transparent);
  transform: translateX(-34%);
  animation: signalSweep 11s linear infinite;
}

.registration {
  position: absolute;
  z-index: 4;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  pointer-events: none;
}

.registration-top {
  top: calc(var(--header-h) + 1rem);
  right: 1rem;
}

.registration-bottom {
  left: 1rem;
  bottom: 1rem;
}

.hero-copy {
  position: relative;
  z-index: 5;
  align-self: start;
  max-width: 58rem;
  pointer-events: none;
}

.kicker,
.mono-label,
.work-meta p {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero-copy h1 {
  display: grid;
  gap: 0;
  max-width: 12ch;
  margin: 0.45rem 0 0;
  color: rgba(236, 232, 224, 0.94);
  font-family: var(--font-display);
  font-size: 5.35rem;
  font-weight: 900;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero-copy h1 span {
  animation: titleInterference 9s steps(1, end) infinite;
}

.hero-copy h1 span:nth-child(2) {
  animation-delay: 130ms;
}

#heroLineTwo:empty {
  display: none;
}

.project-credit {
  margin: 0.75rem 0 0;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.feature-stage {
  position: relative;
  z-index: 4;
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(18rem, 54rem) minmax(14rem, 22rem);
  align-items: end;
  gap: 1rem;
  width: min(100%, 78rem);
  margin: -3.2rem auto 4.8rem;
}

.feature-media {
  position: relative;
  isolation: isolate;
  min-height: 30rem;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid rgba(236, 232, 224, 0.28);
  background: #050303;
  box-shadow: 0 0 0 1px rgba(var(--acc-rgb), 0.14), 0 2.5rem 7rem rgba(0, 0, 0, 0.52);
  transform-style: preserve-3d;
}

.feature-media::before,
.feature-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.feature-media::before {
  inset: 0;
  opacity: 0.032;
  background-image: radial-gradient(var(--acc) 1px, transparent 1.4px);
  background-size: 7px 7px;
  mix-blend-mode: screen;
}

.feature-media::after {
  inset: 1rem;
  border: 1px solid rgba(236, 232, 224, 0.22);
  box-shadow: inset 0 0 4rem rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(var(--acc-rgb), 0.18);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(var(--world-feature-sat, 0.76)) contrast(var(--world-feature-contrast, 1.24)) brightness(var(--world-feature-brightness, 0.9));
  object-position: 50% 50%;
  transform: scale(1.035) translate3d(var(--tilt-x, 0), var(--tilt-y, 0), 0);
  animation: livingFrame 18s ease-in-out infinite alternate;
  transition: transform 700ms ease, opacity 350ms ease;
}

.feature-media.is-switching img {
  opacity: 0.18;
  transform: scale(1.08);
}

.feature-media.is-glitching {
  box-shadow: 0 0 0 1px rgba(var(--acc-rgb), 0.18), 0 0 38px rgba(var(--acc-rgb), 0.12);
}

.feature-media.is-glitching::before {
  opacity: 0.22;
  animation: glitchMask 420ms steps(2, end);
}

.feature-media.is-glitching img {
  animation: frameGlitch 420ms steps(2, end), livingFrame 18s ease-in-out infinite alternate;
}

.view-trigger {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: grid;
  min-width: 4.7rem;
  min-height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 11, 0.78);
  color: var(--ink-000);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.view-trigger:hover,
.view-trigger:focus-visible {
  border-color: var(--acc);
  color: var(--acc);
  box-shadow: 0 0 24px rgba(var(--acc-rgb), 0.16);
}

.feature-panel {
  position: relative;
  padding: 1rem;
  border: 1px solid rgba(236, 232, 224, 0.16);
  background: rgba(5, 3, 3, 0.78);
  backdrop-filter: blur(14px);
}

.feature-panel::before {
  content: "+";
  position: absolute;
  top: 0.45rem;
  right: 0.65rem;
  color: var(--acc);
  font-family: var(--font-mono);
}

.feature-panel h2 {
  margin: 0.55rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.feature-panel p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.runway-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-command,
.filter,
.primary-action,
.ghost-action {
  display: inline-grid;
  min-height: 2.8rem;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--ground-100);
  color: var(--ink-000);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.icon-command {
  width: 4.2rem;
}

.icon-command:hover,
.filter:hover,
.primary-action:hover,
.ghost-action:hover {
  border-color: var(--acc);
  color: var(--acc);
  box-shadow: 0 0 22px rgba(var(--acc-rgb), 0.14);
}

.counter {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.8rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.72);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

#activeIndex {
  color: var(--acc);
}

.thumb-rail {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 5.1rem;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(6, minmax(3.8rem, 7rem));
  gap: 0.55rem;
  width: max-content;
  max-width: calc(100% - 2rem);
}

.thumb {
  position: relative;
  height: 5.2rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ground-100);
  cursor: pointer;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 180ms ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.35) contrast(1.25);
  opacity: 0.72;
}

.thumb.is-active::after,
.thumb:hover::after {
  border-color: var(--acc);
}

.thumb.is-active img,
.thumb:hover img {
  opacity: 1;
}

.series-section,
.live-sheet-section,
.statement-section,
.contact-section {
  position: relative;
  padding: 6rem 1rem;
}

.section-head,
.live-sheet-head,
.statement-grid,
.contact-shell,
.work-grid {
  width: min(100%, 78rem);
  margin: 0 auto;
}

.live-sheet-section {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(236, 232, 224, 0.055) 1px, transparent 1px),
    linear-gradient(var(--ground-000), rgba(18, 18, 20, 0.72));
  background-size: 8.333% 100%, 100% 100%;
}

.live-sheet-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.live-sheet-head h2 {
  max-width: 9ch;
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: 4.1rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.sheet-readout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.8rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.72);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.sheet-readout span:last-child {
  color: var(--acc);
}

.live-sheet {
  display: grid;
  gap: 0.8rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.sheet-row {
  display: flex;
  gap: 0.8rem;
  width: max-content;
  padding: 0 1rem;
  animation: sheetDrift 44s linear infinite;
}

.sheet-row:nth-child(2) {
  animation-name: sheetDriftReverse;
  animation-duration: 52s;
}

.live-sheet:hover .sheet-row,
.live-sheet:focus-within .sheet-row {
  animation-play-state: paused;
}

.sheet-card {
  position: relative;
  display: grid;
  align-content: end;
  flex: 0 0 clamp(12rem, 19vw, 18rem);
  min-height: clamp(18rem, 31vw, 27rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ground-100);
  color: var(--ink-000);
  cursor: pointer;
}

.sheet-card::before {
  content: attr(data-number);
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  z-index: 3;
  color: var(--acc);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.sheet-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.86), transparent 58%),
    linear-gradient(120deg, rgba(var(--acc-rgb), 0.12), transparent 42%);
}

.sheet-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(var(--world-sheet-sat, 0.52)) contrast(1.18) brightness(var(--world-card-brightness, 0.76));
  transform: scale(1.04);
  transition: transform 520ms ease, filter 520ms ease, opacity 240ms ease;
}

.sheet-card:hover img,
.sheet-card.is-active img {
  filter: saturate(0.84) contrast(1.1) brightness(0.9);
  transform: scale(1.1);
}

.sheet-card.is-active {
  border-color: var(--acc);
  box-shadow: 0 0 0 1px rgba(var(--acc-rgb), 0.28), 0 0 34px rgba(var(--acc-rgb), 0.11);
}

.sheet-card-body {
  position: relative;
  z-index: 3;
  padding: 1rem;
  text-align: left;
}

.sheet-card-body p {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.sheet-card-body h3 {
  max-width: 11ch;
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 0.94;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2,
.statement-section h2,
.contact-section h2 {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: 4.1rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: min(100%, 78rem);
  margin: 0 auto 1.25rem;
}

.filter {
  min-width: 6.4rem;
  padding: 0 1rem;
  color: var(--ink-muted);
}

.filter.is-active {
  border-color: var(--acc);
  color: var(--acc);
  background: rgba(var(--acc-rgb), 0.08);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.work-card {
  position: relative;
  grid-column: span 4;
  min-height: 24rem;
  border: 1px solid var(--line);
  background: var(--ground-100);
  overflow: hidden;
  transition: opacity 240ms ease, transform 240ms ease, border-color 180ms ease;
}

.work-card.wide {
  grid-column: span 8;
}

.work-card.tall {
  min-height: 32rem;
}

.work-card.is-hidden {
  display: none;
}

.work-card a,
.work-card figure {
  display: block;
  height: 100%;
  margin: 0;
}

.work-card figure {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(var(--world-card-sat, 0.46)) contrast(1.18) brightness(var(--world-card-brightness, 0.78));
  transform: scale(1.02);
  transition: transform 520ms ease, filter 520ms ease;
}

.work-card::before {
  content: "+";
  position: absolute;
  top: 0.65rem;
  right: 0.8rem;
  z-index: 2;
  color: var(--acc);
  font-family: var(--font-mono);
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 56%),
    linear-gradient(90deg, rgba(var(--acc-rgb), 0.12), transparent 36%);
}

.work-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.work-card:hover img {
  filter: saturate(0.72) contrast(1.12) brightness(0.9);
  transform: scale(1.08);
}

.work-meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
}

.work-meta h3 {
  max-width: 12ch;
  margin: 0.28rem 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.statement-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(236, 232, 224, 0.06) 1px, transparent 1px),
    linear-gradient(var(--ground-000), var(--ground-100));
  background-size: 8.333% 100%, 100% 100%;
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.95fr) minmax(18rem, 0.8fr);
  gap: 2rem;
}

.statement-copy {
  align-self: end;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.statement-copy p {
  margin: 0 0 1rem;
}

.contact-section {
  min-height: 68svh;
  display: grid;
  place-items: center;
}

.contact-shell {
  padding: 4rem 0;
}

.contact-shell h2 {
  max-width: 11ch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.primary-action,
.ghost-action {
  min-width: 12rem;
  padding: 0 1rem;
}

.primary-action {
  border-color: var(--acc);
  background: rgba(var(--acc-rgb), 0.10);
  color: var(--acc);
}

.cinema {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  --cinema-bg: url("assets/frames/frame-01.jpg");
  --cinema-aura: 0.42;
  --cinema-drift-x: 0px;
  --cinema-drift-x-inverse: 0px;
  --cinema-drift-y: 0px;
  --cinema-drift-y-inverse: 0px;
  --cinema-focus-x: 50%;
  --cinema-focus-y: 50%;
  --cinema-frame-h: 46%;
  --cinema-frame-left: 29%;
  --cinema-frame-top: 27%;
  --cinema-frame-w: 42%;
  --cinema-image-brightness: 0.92;
  --cinema-image-contrast: 1.12;
  --cinema-panel-x: 50%;
  --cinema-panel-y: 50%;
  --cinema-pointer-drift-x: 0px;
  --cinema-pointer-drift-x-inverse: 0px;
  --cinema-pointer-drift-y: 0px;
  --cinema-pointer-drift-y-inverse: 0px;
  --cinema-pointer-tilt-x: 0deg;
  --cinema-pointer-tilt-y: 0deg;
  --cinema-progress: 0%;
  --photo-ratio: 16 / 9;
  --cinema-photo-scale: 1.01;
  --cinema-structure: 0.28;
  --cinema-structure-opacity: 0.12;
  --cinema-tension: 0.62;
  --cinema-tension-opacity: 0.12;
  --cinema-tilt: 0deg;
  --cinema-veil: 0.38;
}

.cinema.is-open {
  visibility: visible;
  pointer-events: auto;
}

.cinema-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: rgba(5, 5, 7, 0.94);
  opacity: 0;
  transition: opacity 260ms ease;
}

.cinema-backdrop::before,
.cinema-backdrop::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.cinema-backdrop::before {
  background-image: var(--cinema-bg);
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.22) brightness(0.24) blur(28px);
  opacity: 0.48;
  transform: scale(1.04);
  animation: cinemaBackdropDrift 9s ease-in-out infinite alternate;
}

.cinema-backdrop::after {
  background:
    radial-gradient(circle at var(--cinema-focus-x) var(--cinema-focus-y), rgba(var(--acc-rgb), 0.24), transparent 30rem),
    linear-gradient(transparent 0 78%, rgba(var(--acc-rgb), 0.18)),
    radial-gradient(rgba(236, 232, 224, 0.16) 0.7px, transparent 1px);
  background-size: auto, auto, 5px 5px;
  mix-blend-mode: screen;
  opacity: var(--cinema-veil);
}

.cinema.is-open .cinema-backdrop {
  opacity: 1;
}

.cinema-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 26rem);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  width: min(100%, 94rem);
  height: min(100svh - 2rem, 56rem);
  min-height: 34rem;
  padding: clamp(0.75rem, 1.4vw, 1.25rem);
  overflow: hidden;
  isolation: isolate;
  perspective: 1400px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(var(--acc-rgb), 0.08), transparent 24%, transparent 64%, rgba(var(--acc-rgb), 0.10)),
    linear-gradient(rgba(236, 232, 224, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 232, 224, 0.045) 1px, transparent 1px),
    rgba(10, 10, 11, 0.82);
  background-size: 100% 100%, 4rem 4rem, 4rem 4rem, 100% 100%;
  box-shadow: 0 0 0 1px rgba(var(--acc-rgb), 0.12), 0 2rem 6rem rgba(0, 0, 0, 0.66);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 300ms ease, transform 300ms ease;
}

.cinema-shell::before,
.cinema-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.cinema-shell::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.95%, rgba(var(--acc-rgb), 0.16) 50%, transparent 50.05%),
    linear-gradient(transparent 0 49.95%, rgba(236, 232, 224, 0.08) 50%, transparent 50.05%);
  opacity: 0.34;
}

.cinema-shell::after {
  inset: 0.78rem;
  border: 1px solid rgba(236, 232, 224, 0.11);
}

.cinema-shell > * {
  position: relative;
  z-index: 1;
}

.cinema.is-open .cinema-shell {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(var(--cinema-pointer-tilt-x)) rotateY(var(--cinema-pointer-tilt-y));
}

.cinema-progress {
  position: absolute;
  right: clamp(0.75rem, 1.4vw, 1.25rem);
  bottom: clamp(0.75rem, 1.4vw, 1.25rem);
  left: clamp(0.75rem, 1.4vw, 1.25rem);
  z-index: 4;
  height: 1px;
  pointer-events: none;
  background: rgba(236, 232, 224, 0.08);
}

.cinema-progress span {
  display: block;
  width: var(--cinema-progress);
  height: 100%;
  background: var(--acc);
  box-shadow: 0 0 18px rgba(var(--acc-rgb), 0.42);
  transition: width 360ms ease;
}

.cinema-aura {
  position: absolute;
  inset: -18% -10%;
  z-index: 0;
  background:
    radial-gradient(circle at var(--cinema-focus-x) var(--cinema-focus-y), rgba(var(--acc-rgb), 0.32), transparent 25rem),
    radial-gradient(circle at 72% 30%, rgba(236, 232, 224, 0.12), transparent 22rem),
    conic-gradient(from 120deg at var(--cinema-panel-x) var(--cinema-panel-y), transparent, rgba(var(--acc-rgb), 0.16), transparent 28%);
  mix-blend-mode: screen;
  opacity: var(--cinema-aura);
  animation: cinemaAuraPulse 5.8s ease-in-out infinite alternate;
}

.cinema-director-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--cinema-structure-opacity);
  transform: translate3d(var(--cinema-pointer-drift-x), var(--cinema-pointer-drift-y), 0) rotate(var(--cinema-tilt));
  transition: opacity 260ms ease, transform 260ms ease;
}

.cinema-director-map::before,
.cinema-director-map::after,
.cinema-director-map span {
  content: "";
  position: absolute;
  border: 1px solid var(--acc);
}

.cinema-director-map::before {
  left: calc(var(--cinema-panel-x) - 14rem);
  top: calc(var(--cinema-panel-y) - 10rem);
  width: var(--cinema-frame-w);
  height: var(--cinema-frame-h);
}

.cinema-director-map::after {
  right: 8%;
  top: 13%;
  width: 18%;
  height: 31%;
  border-left-color: transparent;
}

.cinema-director-map span:nth-child(1) {
  left: 13%;
  top: 19%;
  width: 19rem;
  height: 1px;
  transform-origin: left center;
  transform: rotate(27deg);
}

.cinema-director-map span:nth-child(2) {
  right: 19%;
  bottom: 16%;
  width: 1px;
  height: 23rem;
  transform-origin: bottom center;
  transform: rotate(-18deg);
}

.cinema-director-map span:nth-child(3) {
  left: 9%;
  bottom: 12%;
  width: 16%;
  height: 18%;
}

.cinema-media {
  position: relative;
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1 / -1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at var(--cinema-focus-x) var(--cinema-focus-y), rgba(var(--acc-rgb), 0.11), transparent 28rem),
    var(--ground-000);
  box-shadow: inset 0 0 0 1px rgba(236, 232, 224, 0.04), inset 0 0 5rem rgba(0, 0, 0, 0.48);
  transform-style: preserve-3d;
}

.cinema-media::before,
.cinema-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.cinema-media::before {
  opacity: var(--cinema-tension-opacity);
  background:
    radial-gradient(var(--acc) 0.8px, transparent 1.4px),
    linear-gradient(90deg, transparent 0 48%, rgba(var(--acc-rgb), 0.16) 49%, transparent 51%),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(236, 232, 224, 0.12) 14px, transparent 15px);
  background-size: 8px 8px, 100% 100%;
  mix-blend-mode: screen;
}

.cinema-media::after {
  inset: 1.1rem;
  border: 1px solid rgba(236, 232, 224, 0.18);
  box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), 0.08);
}

.cinema-frame-field {
  position: absolute;
  inset: 1.1rem;
  z-index: 2;
  pointer-events: none;
  opacity: var(--cinema-structure-opacity);
  transform: translate3d(calc(var(--cinema-drift-x) + var(--cinema-pointer-drift-x)), calc(var(--cinema-drift-y) + var(--cinema-pointer-drift-y)), 0);
  transition: opacity 260ms ease, transform 260ms ease;
}

.cinema-frame-field::before,
.cinema-frame-field::after,
.cinema-frame-field span {
  content: "";
  position: absolute;
  border: 1px solid rgba(var(--acc-rgb), 0.88);
}

.cinema-frame-field::before {
  left: var(--cinema-focus-x);
  top: var(--cinema-frame-top);
  width: 1px;
  height: var(--cinema-frame-h);
  border-width: 0 1px 0 0;
  opacity: 0.55;
}

.cinema-frame-field::after {
  left: var(--cinema-frame-left);
  top: var(--cinema-focus-y);
  width: var(--cinema-frame-w);
  height: 1px;
  border-width: 1px 0 0;
  opacity: 0.55;
}

.cinema-frame-field span:nth-child(1) {
  left: var(--cinema-frame-left);
  top: var(--cinema-frame-top);
  width: var(--cinema-frame-w);
  height: var(--cinema-frame-h);
}

.cinema-frame-field span:nth-child(2) {
  left: 5%;
  bottom: 9%;
  width: 18%;
  height: 1px;
  border-width: 1px 0 0;
}

.cinema-frame-field span:nth-child(3) {
  right: 7%;
  top: 13%;
  width: 1px;
  height: 26%;
  border-width: 0 1px 0 0;
}

.cinema-frame-field span:nth-child(4) {
  right: 9%;
  bottom: 12%;
  width: 16%;
  height: 16%;
  opacity: 0.72;
}

.cinema-hotspot {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: min(22%, 12rem);
  border: 0;
  background: linear-gradient(90deg, rgba(var(--acc-rgb), 0.12), transparent);
  color: var(--acc);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  opacity: 0;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.cinema-hotspot span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
}

.cinema-hotspot:hover,
.cinema-hotspot:focus-visible {
  opacity: 1;
}

.cinema-hotspot-prev {
  left: 0;
}

.cinema-hotspot-prev span {
  left: 0.8rem;
  transform: translateY(-50%) rotate(180deg);
}

.cinema-hotspot-next {
  right: 0;
  background: linear-gradient(270deg, rgba(var(--acc-rgb), 0.12), transparent);
}

.cinema-hotspot-next span {
  right: 0.8rem;
}

.cinema-media img {
  position: relative;
  z-index: 1;
  width: var(--photo-fit-width, auto);
  height: var(--photo-fit-height, auto);
  max-width: calc(100% - 2.6rem);
  max-height: calc(100% - 2.6rem);
  object-fit: contain;
  filter: saturate(var(--cinema-image-saturation, 0.68)) contrast(var(--cinema-image-contrast)) brightness(var(--cinema-image-brightness));
  transform: translate3d(calc(var(--cinema-drift-x) + var(--cinema-pointer-drift-x)), calc(var(--cinema-drift-y) + var(--cinema-pointer-drift-y)), 0) scale(var(--cinema-photo-scale)) rotate(var(--cinema-tilt));
  transition: filter 420ms ease, transform 420ms ease;
}

.cinema.is-open .cinema-media img {
  animation: cinemaImageBreathe 7.5s ease-in-out infinite alternate;
}

.cinema.is-shifting .cinema-media img {
  animation: none;
  filter: saturate(0.46) contrast(1.25) brightness(0.72);
  opacity: 0.72;
  transform: translate3d(var(--cinema-pointer-drift-x), var(--cinema-pointer-drift-y), 0) scale(0.985) rotate(var(--cinema-tilt));
}

.cinema.is-shifting .cinema-frame-field {
  opacity: 0.28;
  transform: translate3d(calc(var(--cinema-drift-x-inverse) + var(--cinema-pointer-drift-x)), calc(var(--cinema-drift-y-inverse) + var(--cinema-pointer-drift-y)), 0);
}

.cinema.is-shifting .cinema-meta {
  opacity: 0.72;
  transform: translate3d(var(--cinema-pointer-drift-x-inverse), 0.45rem, 0);
}

.cinema[data-orientation="portrait"] .cinema-media img,
.cinema[data-orientation="square"] .cinema-media img {
  max-width: calc(100% - 2.6rem);
  max-height: calc(100% - 2.6rem);
}

.cinema-meta {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding: 1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(var(--acc-rgb), 0.12), transparent 44%),
    rgba(18, 18, 20, 0.86);
  box-shadow: inset 0 0 0 1px rgba(236, 232, 224, 0.035);
  transform: translate3d(var(--cinema-pointer-drift-x-inverse), var(--cinema-pointer-drift-y-inverse), 0);
  transition: opacity 260ms ease, transform 260ms ease;
}

.cinema-meta h2 {
  margin: 0.55rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.7vw, 3.8rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.cinema-meta > p:not(.mono-label) {
  margin: 0;
  color: var(--ink-muted);
}

.cinema-signal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--acc);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cinema-signal span {
  min-width: 0;
  padding: 0.48rem 0.55rem;
  border: 1px solid rgba(var(--acc-rgb), 0.24);
  background: rgba(var(--acc-rgb), 0.06);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.cinema-specs div {
  display: flex;
  min-height: 4.1rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.62rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.cinema-specs span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.cinema-specs strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.82vw, 0.9rem);
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-register {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(236, 232, 224, 0.10);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.16));
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.cinema-register span:last-child {
  color: var(--acc);
}

.cinema-strip {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  align-self: end;
  gap: 0.55rem;
  max-height: 100%;
  overflow: auto;
  padding-right: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--acc-rgb), 0.55) transparent;
}

.cinema-strip-item {
  display: grid;
  grid-template-columns: 4.25rem 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 4.3rem;
  padding: 0.45rem;
  border: 1px solid rgba(236, 232, 224, 0.11);
  background:
    linear-gradient(90deg, rgba(var(--acc-rgb), 0.07), transparent 54%),
    rgba(0, 0, 0, 0.26);
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease;
}

.cinema-strip-item:hover,
.cinema-strip-item:focus-visible,
.cinema-strip-item.is-active {
  border-color: rgba(var(--acc-rgb), 0.72);
  background:
    linear-gradient(90deg, rgba(var(--acc-rgb), 0.18), transparent 64%),
    rgba(0, 0, 0, 0.38);
  color: var(--ink);
  transform: translateX(-0.18rem);
}

.cinema-strip-item img {
  width: 4.25rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(236, 232, 224, 0.12);
  filter: grayscale(1) contrast(1.12) brightness(0.78);
}

.cinema-strip-item span {
  color: var(--acc);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.cinema-strip-item strong {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.cinema-actions {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.cinema-actions .icon-command {
  width: 100%;
}

@keyframes cinemaBackdropDrift {
  from {
    transform: scale(1.04) translate3d(-0.45rem, -0.25rem, 0);
  }

  to {
    transform: scale(1.08) translate3d(0.45rem, 0.35rem, 0);
  }
}

@keyframes cinemaAuraPulse {
  from {
    opacity: 0.28;
    transform: scale(0.98) translate3d(var(--cinema-drift-x-inverse), var(--cinema-drift-y-inverse), 0);
  }

  to {
    opacity: var(--cinema-aura);
    transform: scale(1.03) translate3d(var(--cinema-drift-x), var(--cinema-drift-y), 0);
  }
}

@keyframes cinemaImageBreathe {
  from {
    transform: translate3d(var(--cinema-pointer-drift-x), var(--cinema-pointer-drift-y), 0) scale(var(--cinema-photo-scale)) rotate(0deg);
  }

  to {
    transform: translate3d(calc(var(--cinema-drift-x) + var(--cinema-pointer-drift-x)), calc(var(--cinema-drift-y) + var(--cinema-pointer-drift-y)), 0) scale(var(--cinema-photo-scale)) rotate(var(--cinema-tilt));
  }
}

.tune-panel {
  position: fixed;
  inset: 0;
  z-index: 240;
  visibility: hidden;
  pointer-events: none;
}

.tune-panel.is-open {
  visibility: visible;
  pointer-events: auto;
}

.tune-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.58);
  opacity: 0;
  transition: opacity 220ms ease;
}

.tune-panel.is-open .tune-scrim {
  opacity: 1;
}

.tune-shell {
  position: absolute;
  top: 0;
  right: 0;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  width: min(100%, 39rem);
  height: 100%;
  padding: clamp(0.85rem, 2vw, 1.2rem);
  overflow-y: auto;
  border-left: 1px solid var(--line-strong);
  background: linear-gradient(158deg, rgba(var(--acc-rgb), 0.16), rgba(9, 9, 10, 0.985) 34%, rgba(3, 3, 4, 0.975) 100%);
  box-shadow:
    inset 1px 0 0 rgba(236, 232, 224, 0.06),
    inset 0 1px 0 rgba(var(--acc-rgb), 0.10),
    -2rem 0 5rem rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(16px) saturate(1.08);
  transform: translateX(100%);
  transition: transform 260ms ease;
}

.tune-shell > * {
  position: relative;
  z-index: 1;
}

.tune-panel.is-open .tune-shell {
  transform: translateX(0);
}

.tune-head,
.tune-actions,
.slot-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tune-head h2 {
  margin: 0.25rem 0 0;
  color: var(--acc);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.tune-close {
  min-height: 2.55rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  background: var(--ground-100);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  cursor: pointer;
}

.tune-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.tune-readout div {
  position: relative;
  min-height: 5.2rem;
  padding: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(var(--acc-rgb), 0.28);
  background: rgba(0, 0, 0, 0.34);
}

.tune-readout div::after {
  content: "";
  position: absolute;
  inset: auto 0.7rem 0.6rem;
  height: 0.18rem;
  background: var(--acc);
  box-shadow: 0 0 1rem rgba(var(--acc-rgb), 0.45);
}

.tune-readout span,
.tune-readout strong {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.tune-readout span {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.tune-readout strong {
  margin-top: 0.5rem;
  color: var(--ink-000);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.65rem);
  line-height: 0.9;
}

.tune-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.tune-presets button {
  min-height: 2.65rem;
  border: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.68);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  cursor: pointer;
}

.tune-presets button:hover,
.tune-presets button:focus-visible,
.tune-presets button.is-active {
  border-color: var(--acc);
  color: var(--acc);
  background: rgba(var(--acc-rgb), 0.1);
  box-shadow: inset 0 0 1.2rem rgba(var(--acc-rgb), 0.08);
}

.tune-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tune-shell label {
  position: relative;
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.tune-field {
  min-height: 8.1rem;
  padding: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(236, 232, 224, 0.12);
  background: rgba(0, 0, 0, 0.26);
}

.tune-field::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  width: 1.65rem;
  height: 0.17rem;
  background: var(--acc);
  box-shadow: 0 0 0.9rem rgba(var(--acc-rgb), 0.42);
}

.tune-field > span {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
  color: var(--ink-000);
}

.tune-field small {
  min-height: 2rem;
  color: rgba(236, 232, 224, 0.52);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.tune-range {
  grid-column: 1 / -1;
  min-height: 6.8rem;
}

.tune-range output {
  color: var(--acc);
  font-family: var(--font-mono);
}

.tune-shell input,
.tune-shell select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid rgba(236, 232, 224, 0.16);
  background: rgba(5, 5, 7, 0.72);
  color: var(--ink-000);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.tune-shell input {
  padding: 0 0.75rem;
}

.tune-shell select {
  padding: 0 0.65rem;
}

.tune-shell select:focus,
.tune-shell input:focus {
  border-color: var(--acc);
  outline: 0;
  box-shadow: 0 0 0 1px rgba(var(--acc-rgb), 0.26);
}

.tune-shell input[type="file"] {
  padding: 0.55rem;
}

.tune-shell input[type="file"]::file-selector-button {
  min-height: 1.7rem;
  margin-right: 0.65rem;
  border: 1px solid var(--line);
  background: var(--ground-200);
  color: var(--ink-000);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.tune-shell input[type="range"] {
  accent-color: var(--acc);
  padding: 0;
}

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

.slot-actions .ghost-action {
  min-width: 7.5rem;
  min-height: 2.5rem;
}

.slot-list {
  display: grid;
  gap: 0.75rem;
}

.slot-editor {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(18, 18, 20, 0.72);
}

.slot-preview {
  min-height: 8.5rem;
  border: 1px solid var(--line);
  background: var(--ground-000);
  overflow: hidden;
}

.slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.12) brightness(0.86);
}

.slot-fields {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.slot-fields .span-2 {
  grid-column: 1 / -1;
}

.slot-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.file-note {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
}

body[data-filter="ruido"] .feature-media img,
body[data-filter="ruido"] .work-card img,
body[data-filter="ruido"] .thumb img,
body[data-filter="ruido"] .cinema-media img {
  filter: grayscale(0.42) saturate(0.78) contrast(1.34) brightness(0.84);
}

body[data-filter="clean"] .feature-media img,
body[data-filter="clean"] .work-card img,
body[data-filter="clean"] .thumb img,
body[data-filter="clean"] .cinema-media img {
  filter: saturate(1.06) contrast(0.98) brightness(1.02);
}

body[data-filter="noir"] .feature-media img,
body[data-filter="noir"] .work-card img,
body[data-filter="noir"] .thumb img,
body[data-filter="noir"] .cinema-media img {
  filter: grayscale(1) contrast(1.52) brightness(0.76);
}

body[data-filter="duotone"] .feature-media img,
body[data-filter="duotone"] .work-card img,
body[data-filter="duotone"] .thumb img,
body[data-filter="duotone"] .cinema-media img {
  filter: grayscale(0.88) sepia(0.58) saturate(2.35) hue-rotate(284deg) contrast(1.32) brightness(0.82);
}

body[data-filter="analog"] .feature-media img,
body[data-filter="analog"] .work-card img,
body[data-filter="analog"] .thumb img,
body[data-filter="analog"] .cinema-media img {
  filter: sepia(0.46) saturate(0.86) contrast(1.2) brightness(0.88) hue-rotate(-8deg);
}

body[data-treatment="raw"] .feature-media img,
.work-card[data-treatment="raw"] img,
.sheet-card[data-treatment="raw"] img,
.thumb[data-treatment="raw"] img,
.cinema[data-treatment="raw"] .cinema-media img,
.cinema-strip-item[data-treatment="raw"] img {
  filter: none !important;
}

.cinema[data-treatment="raw"] .cinema-backdrop::before {
  filter: brightness(0.22) blur(28px);
}

body[data-motion="still"] .feature-media img,
body[data-motion="still"] .hero-copy h1 span,
body[data-motion="still"] .runway::after,
body[data-motion="still"] .cinema-backdrop::before,
body[data-motion="still"] .cinema-aura {
  animation-play-state: paused;
}

body[data-motion="pulse"] .runway::after {
  animation-duration: 18s;
  opacity: 0.28;
}

body[data-motion="pulse"] .hero-copy h1 span {
  animation-duration: 14s;
}

body[data-motion="still"] .sheet-row {
  animation-play-state: paused;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes signalSweep {
  0% {
    transform: translateX(-36%);
    opacity: 0;
  }

  12% {
    opacity: 0.24;
  }

  56% {
    opacity: 0.30;
  }

  100% {
    transform: translateX(36%);
    opacity: 0;
  }
}

@keyframes livingFrame {
  0% {
    object-position: 48% 50%;
  }

  50% {
    object-position: 53% 47%;
  }

  100% {
    object-position: 50% 54%;
  }
}

@keyframes frameGlitch {
  0%,
  100% {
    clip-path: inset(0);
    transform: scale(1.035) translate3d(var(--tilt-x, 0), var(--tilt-y, 0), 0);
  }

  18% {
    clip-path: inset(7% 0 62% 0);
    transform: scale(1.07) translate3d(calc(var(--tilt-x, 0) - 12px), var(--tilt-y, 0), 0);
  }

  36% {
    clip-path: inset(42% 0 28% 0);
    transform: scale(1.055) translate3d(calc(var(--tilt-x, 0) + 9px), calc(var(--tilt-y, 0) + 2px), 0);
  }

  58% {
    clip-path: inset(0 0 78% 0);
    transform: scale(1.08) translate3d(calc(var(--tilt-x, 0) - 4px), calc(var(--tilt-y, 0) - 3px), 0);
  }
}

@keyframes glitchMask {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-14px);
  }

  55% {
    transform: translateX(10px);
  }

  75% {
    transform: translateX(-5px);
  }
}

@keyframes titleInterference {
  0%,
  86%,
  100% {
    transform: translateX(0);
    text-shadow: none;
  }

  88% {
    transform: translateX(1px);
    text-shadow: -2px 0 rgba(var(--acc-rgb), 0.42), 2px 0 rgba(236, 232, 224, 0.16);
  }

  89% {
    transform: translateX(-1px);
    text-shadow: 2px 0 rgba(var(--acc-rgb), 0.38), -1px 0 rgba(236, 232, 224, 0.14);
  }

  90% {
    transform: translateX(0);
    text-shadow: none;
  }
}

@keyframes sheetDrift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.4rem));
  }
}

@keyframes sheetDriftReverse {
  from {
    transform: translateX(calc(-50% - 0.4rem));
  }

  to {
    transform: translateX(0);
  }
}

@media (max-width: 1120px) {
  .feature-stage {
    grid-template-columns: 1fr;
    align-self: stretch;
    margin-top: 0.8rem;
    margin-bottom: 8rem;
  }

  .feature-media {
    min-height: 24rem;
    aspect-ratio: 4 / 5;
  }

  .feature-panel {
    max-width: 28rem;
  }

  .cinema-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(18rem, 1fr) auto auto auto;
    height: min(100svh - 1.5rem, 58rem);
  }

  .cinema-media {
    grid-column: 1;
    grid-row: 1;
    min-height: 18rem;
  }

  .cinema-meta {
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
  }

  .cinema-strip {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    align-self: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 0.15rem;
    scrollbar-width: none;
  }

  .cinema-strip::-webkit-scrollbar {
    display: none;
  }

  .cinema-strip-item {
    flex: 0 0 13rem;
    grid-template-columns: 3.4rem 1.55rem minmax(0, 1fr);
    min-height: 3.85rem;
  }

  .cinema-strip-item img {
    width: 3.4rem;
  }

  .cinema-actions {
    grid-column: 1;
    grid-row: 4;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding-block: 0.7rem;
  }

  :root {
    --header-h: 102px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a,
  .nav-tune {
    flex: 0 0 auto;
    padding: 0.55rem 0.65rem;
  }

  .hero-copy h1 {
    font-size: 4rem;
  }

  .cinema-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(18rem, 1fr) auto auto auto;
    height: min(100svh - 1.5rem, 58rem);
  }

  .cinema-media {
    grid-column: 1;
    grid-row: 1;
    min-height: 18rem;
  }

  .cinema-meta {
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
  }

  .cinema-strip {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    align-self: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 0.15rem;
    scrollbar-width: none;
  }

  .cinema-strip::-webkit-scrollbar {
    display: none;
  }

  .cinema-strip-item {
    flex: 0 0 13rem;
    grid-template-columns: 3.4rem 1.55rem minmax(0, 1fr);
    min-height: 3.85rem;
  }

  .cinema-strip-item img {
    width: 3.4rem;
  }

  .cinema-actions {
    grid-column: 1;
    grid-row: 4;
  }

  .thumb-rail {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .thumb-rail::-webkit-scrollbar {
    display: none;
  }

  .work-card,
  .work-card.wide {
    grid-column: span 6;
  }

  .statement-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .site-header {
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
  }

  .site-nav {
    flex-wrap: wrap;
    row-gap: 0.05rem;
    overflow: visible;
    font-size: 0.64rem;
  }

  .site-nav a,
  .nav-tune {
    padding: 0.32rem 0.42rem;
  }

  .runway {
    min-height: 96svh;
    padding-inline: 0.75rem;
  }

  .registration {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.9rem;
    line-height: 0.9;
  }

  .feature-stage {
    align-self: start;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    margin-bottom: 10.5rem;
  }

  .feature-media {
    min-height: 19rem;
  }

  .view-trigger {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .feature-panel {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .feature-panel p {
    overflow-wrap: break-word;
  }

  .feature-panel h2 {
    font-size: 1.55rem;
  }

  .runway-controls {
    left: 0.75rem;
    right: 0.75rem;
    display: grid;
    grid-template-columns: 4.2rem 1fr 4.2rem;
    justify-content: stretch;
  }

  .counter {
    justify-content: center;
  }

  .thumb-rail {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 5rem;
    grid-template-columns: repeat(6, 4.3rem);
  }

  .thumb {
    height: 4.3rem;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .live-sheet-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-sheet-head h2 {
    font-size: 2.7rem;
  }

  .sheet-card {
    flex-basis: 12rem;
    min-height: 18rem;
  }

  .section-head h2,
  .statement-section h2,
  .contact-section h2 {
    font-size: 2.7rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card.wide,
  .work-card.tall {
    grid-column: auto;
    min-height: 24rem;
  }

  .cinema {
    padding: 0.45rem;
  }

  .cinema-shell {
    grid-template-rows: minmax(15rem, 1fr) auto auto auto;
    height: calc(100svh - 0.9rem);
    min-height: 0;
    gap: 0.6rem;
    padding: 0.65rem;
  }

  .cinema-media {
    min-height: 15rem;
  }

  .cinema-media::after {
    inset: 0.62rem;
  }

  .cinema-meta h2 {
    font-size: 1.75rem;
  }

  .cinema-specs {
    gap: 0.35rem;
    margin-top: 0.8rem;
  }

  .cinema-signal {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-top: 0.7rem;
    font-size: 0.54rem;
  }

  .cinema-specs div {
    min-height: 3.3rem;
    padding: 0.5rem;
  }

  .cinema-specs strong {
    font-size: 0.72rem;
  }

  .cinema-register {
    right: 0.62rem;
    bottom: 0.62rem;
    left: 0.62rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.52rem 0.58rem;
    font-size: 0.56rem;
  }

  .cinema-strip-item {
    flex-basis: 11.2rem;
    gap: 0.45rem;
  }

  .cinema-strip-item strong {
    font-size: 0.62rem;
  }

  .cinema-actions {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.38rem;
  }

  .tune-grid,
  .slot-editor,
  .slot-field-grid {
    grid-template-columns: 1fr;
  }

  .tune-shell {
    width: 100%;
  }

  .tune-readout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .tune-readout div {
    min-height: 4.25rem;
    padding: 0.5rem;
  }

  .tune-readout div::after {
    inset: auto 0.5rem 0.45rem;
  }

  .tune-readout strong {
    font-size: clamp(0.82rem, 4vw, 1.05rem);
  }

  .tune-presets {
    grid-template-columns: 1fr;
  }

  .tune-field {
    min-height: 7.3rem;
  }

  .slot-preview {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

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