@font-face {
  font-family: "Utendo";
  src: url("../fonts/Utendo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Utendo";
  src: url("../fonts/Utendo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f1ec;
  --fg: #111111;
  --muted: #2a2a2a;
  --button-bg: #ffffff;
  --button-fg: #0f0f0f;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --logo-color: #f5f5f5;
  --films-fade: 0;
}

body.theme-dark {
  --bg: #0f0f0f;
  --fg: #f5f5f5;
  --muted: #d7d7d7;
  --button-bg: #0f0f0f;
  --button-fg: #f5f5f5;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --logo-color: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Utendo", "Trebuchet MS", sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  overflow-y: auto;
  transition: background 0.4s ease, color 0.4s ease;
}

.seo-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.studio-page {
  background: #050505;
  color: #f4f1eb;
  min-height: 100%;
}

.studio-topbar {
  right: 84px;
}

.studio-topbar-logo {
  display: inline-flex;
  top: -10px;
}

.studio-nav-link {
  min-width: 126px;
  height: 48px;
  padding: 0 24px;
  border: 2px solid var(--fg);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-fg);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.studio-nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.studio-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.studio-hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  margin: 0 calc(50% - 50vw);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.studio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.16) 0 1.2px, transparent 1.2px) 0 0 / 12px 12px,
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.34));
  opacity: 0.92;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.studio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18));
  transition: opacity 0.3s ease, background 0.3s ease;
}

.studio-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.68) contrast(1.08);
  transform: scale(1.14);
  transition: filter 0.32s ease;
}

body.studio-hero-covered .studio-hero::before {
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.22) 0 1.2px, transparent 1.2px) 0 0 / 12px 12px,
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.48));
}

body.studio-hero-covered .studio-hero::after {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.26));
}

body.studio-hero-covered .studio-hero-video {
  filter: grayscale(1) brightness(0.5) contrast(1.02) blur(4px);
}

.studio-hero-content {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 126px 0 68px;
  max-width: 980px;
  transition: opacity 0.16s linear;
}

.studio-kicker {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.studio-title {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 960px;
}

.studio-lead {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.76);
}

.studio-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.studio-hero-meta span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
}

.studio-list {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 22px;
  margin-top: -22vh;
  padding-top: 10vh;
}

.studio-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: stretch;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(3, 3, 3, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.studio-block-b {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
}

.studio-block-b .studio-copy {
  order: 2;
}

.studio-block-b .studio-visual {
  order: 1;
}

.studio-index {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.studio-copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  line-height: 0.96;
}

.studio-description {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.66;
  font-size: 1rem;
  max-width: 640px;
}

.studio-specs {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.studio-specs li {
  padding-left: 18px;
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.64;
}

.studio-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9b37c;
  box-shadow: 0 0 18px rgba(217, 179, 124, 0.45);
}

.studio-rent-btn {
  width: fit-content;
  min-width: 184px;
  margin: 20px auto 0;
  padding: 13px 22px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 18px 32px rgba(37, 211, 102, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.studio-rent-btn:hover {
  background: #1fbe59;
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(37, 211, 102, 0.3);
}

.studio-rent-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.studio-visual {
  min-height: 300px;
}

.studio-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.46)),
    #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-gallery {
  display: flex;
  align-items: stretch;
}

.studio-gallery-viewport {
  position: relative;
  flex: 1;
  height: 100%;
  cursor: zoom-in;
}

.studio-gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.studio-gallery-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.studio-gallery-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.studio-gallery-btn:hover {
  background: rgba(0, 0, 0, 0.58);
  transform: scale(1.04);
}

.studio-gallery-btn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.studio-gallery-btn-prev {
  left: 14px;
  border-radius: 999px;
}

.studio-gallery-btn-next {
  right: 14px;
  border-radius: 999px;
}

.studio-block-a .studio-frame {
  background: #0d0d0d;
}

.studio-block-b .studio-frame {
  background: #141414;
}

.studio-block-c .studio-frame {
  background: #101010;
}

.studio-equipment {
  margin-top: 44px;
  padding: 40px clamp(22px, 3vw, 36px);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.studio-equipment-head h2 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1;
}

.studio-equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.studio-equipment-card {
  padding: 24px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-equipment-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.studio-equipment-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.72;
}

.equipment-page {
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #050505 0%, #111111 46%, #070707 100%);
  color: #f5f2ec;
}

.equipment-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.equipment-hero {
  position: relative;
  top: 0;
  min-height: 100vh;
  margin: 0 calc(50% - 50vw);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.equipment-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.18) 0 1.2px, transparent 1.2px) 0 0 / 12px 12px,
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.52));
}

.equipment-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.08) 54%, rgba(0, 0, 0, 0.44));
}

.equipment-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.58) contrast(1.08);
  transform: scale(1.08);
}

.equipment-hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 48px));
  max-width: 960px;
  margin: 0 auto;
  padding: 126px 0 76px;
}

.equipment-kicker {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.equipment-title {
  margin: 0;
  max-width: 1040px;
  font-size: clamp(2.4rem, 6.8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.equipment-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.72;
}

.equipment-filters {
  position: sticky;
  top: 18px;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 28px 0 28px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.equipment-filter-btn {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.equipment-filter-btn:hover,
.equipment-filter-btn.is-active {
  border-color: rgba(255, 255, 255, 0.72);
  background: #f5f2ec;
  color: #0b0b0b;
}

.equipment-filter-btn:hover {
  transform: translateY(-1px);
}

.equipment-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.equipment-card {
  position: relative;
  min-width: 0;
}

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

.equipment-card-button {
  width: 100%;
  min-height: 294px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  font: inherit;
  text-align: left;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  padding: 18px 18px 70px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.equipment-card-button:hover,
.equipment-card-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-3px);
  outline: none;
}

.equipment-thumb {
  min-height: 210px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 48%),
    #171717;
}

.equipment-thumb svg {
  width: min(78%, 250px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgba(255, 255, 255, 0.9);
}

.equipment-thumb svg rect,
.equipment-thumb svg circle {
  fill: rgba(255, 255, 255, 0.05);
}

.equipment-thumb-image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  display: block;
  border-radius: inherit;
  padding: 12px;
}

.equipment-thumb-image.is-missing {
  display: none;
}

.equipment-thumb-camera {
  background:
    radial-gradient(circle at 54% 44%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(135deg, #2f3238, #111214);
}

.equipment-thumb-red {
  background: linear-gradient(135deg, #3c1717, #121010);
}

.equipment-thumb-silver {
  background: linear-gradient(135deg, #4a4d50, #171819);
}

.equipment-thumb-lens {
  background:
    radial-gradient(circle at 50% 50%, rgba(36, 110, 170, 0.35), transparent 26%),
    linear-gradient(135deg, #14171d, #050506);
}

.equipment-thumb-gold {
  background:
    radial-gradient(circle at 50% 50%, rgba(190, 142, 56, 0.3), transparent 27%),
    linear-gradient(135deg, #241f14, #070706);
}

.equipment-thumb-blue {
  background:
    radial-gradient(circle at 50% 50%, rgba(81, 136, 210, 0.32), transparent 28%),
    linear-gradient(135deg, #111b2a, #060708);
}

.equipment-thumb-light {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 240, 183, 0.34), transparent 30%),
    linear-gradient(135deg, #302b1b, #090908);
}

.equipment-thumb-pink {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 95, 172, 0.28), transparent 32%),
    linear-gradient(135deg, #2a1420, #070607);
}

.equipment-thumb-green {
  background:
    radial-gradient(circle at 50% 42%, rgba(104, 255, 178, 0.28), transparent 30%),
    linear-gradient(135deg, #12251c, #060807);
}

.equipment-thumb-grip {
  background: linear-gradient(135deg, #282828, #0a0a0a);
}

.equipment-thumb-orange {
  background: linear-gradient(135deg, #3a2413, #0d0906);
}

.equipment-thumb-cyan {
  background: linear-gradient(135deg, #102a2e, #060809);
}

.equipment-name {
  min-height: 2.4em;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.12;
}

.equipment-quote-add {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  min-height: 38px;
  max-width: calc(100% - 28px);
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.equipment-quote-add:hover,
.equipment-quote-add.is-added {
  border-color: rgba(37, 211, 102, 0.82);
  background: #25d366;
  color: #07140c;
  transform: translateY(-1px);
}

.equipment-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  color: #ffffff;
}

.equipment-modal.is-open {
  display: block;
}

body.equipment-modal-open {
  overflow: hidden;
}

.equipment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.equipment-modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1120px, calc(100% - 36px));
  max-height: min(88vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.68fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #0d0d0d;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
  overflow: auto;
}

.equipment-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.equipment-modal-gallery {
  position: relative;
  min-height: 470px;
  border-radius: 8px;
  overflow: hidden;
  background: #151515;
}

.equipment-modal-viewport {
  position: absolute;
  inset: 0;
}

.equipment-modal-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 56px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.equipment-modal-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.equipment-modal-slide .equipment-thumb {
  width: min(100%, 560px);
  min-height: min(54vh, 360px);
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.equipment-modal-slide .equipment-thumb svg {
  transition: transform 0.22s ease;
}

.equipment-modal-view-2 svg {
  transform: scale(1.22);
}

.equipment-modal-view-3 svg {
  transform: translateY(8px) scale(0.86);
}

.equipment-modal-view-3 {
  background-blend-mode: screen, normal;
}

.equipment-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #ffffff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.equipment-modal-prev {
  left: 16px;
}

.equipment-modal-next {
  right: 16px;
}

.equipment-modal-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.equipment-modal-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.equipment-modal-dot.is-active {
  background: #ffffff;
}

.equipment-modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 3vw, 34px) clamp(10px, 2vw, 20px);
}

.equipment-modal-category {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.equipment-modal-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.55rem);
  line-height: 1;
}

.equipment-modal-description {
  margin: 20px 0 0;
  max-height: min(34vh, 310px);
  overflow: auto;
  padding-right: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  line-height: 1.72;
}

.equipment-modal-description p {
  margin: 0;
}

.equipment-modal-description p + p,
.equipment-modal-description p + ul {
  margin-top: 16px;
}

.equipment-modal-description ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.equipment-modal-description li {
  padding-left: 2px;
}

.equipment-modal-add {
  width: fit-content;
  min-height: 48px;
  margin-top: 26px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: #f5f2ec;
  color: #0b0b0b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.equipment-modal-add:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.equipment-modal-add.is-added {
  background: #25d366;
  color: #07140c;
}

.equipment-modal-whatsapp {
  width: fit-content;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 20px;
  border-radius: 999px;
  background: #25d366;
  color: #07140c;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.equipment-modal-whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.equipment-modal-whatsapp img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.quote-cart-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  min-height: 50px;
  padding: 0 18px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: #f5f2ec;
  color: #0b0b0b;
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.quote-cart-toggle-count {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #0b0b0b;
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  font-size: 0.82rem;
}

.quote-cart {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
}

.quote-cart.is-open {
  display: block;
}

.quote-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.quote-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 100%);
  height: 100%;
  padding: 24px;
  background: #0d0d0d;
  color: #ffffff;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -22px 0 70px rgba(0, 0, 0, 0.46);
  display: flex;
  flex-direction: column;
}

.quote-cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.quote-cart-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-cart-title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  line-height: 0.98;
}

.quote-cart-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.quote-cart-items {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.quote-cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.quote-cart-item-name {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

.quote-cart-item-category {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-cart-remove {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.quote-cart-empty {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.quote-cart-send {
  min-height: 52px;
  margin-top: auto;
  border-radius: 999px;
  background: #25d366;
  color: #07140c;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quote-cart-send.is-disabled {
  pointer-events: none;
  filter: grayscale(1);
  opacity: 0.44;
}

.studio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.studio-lightbox.is-open {
  display: block;
}

.studio-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.studio-lightbox-dialog {
  position: absolute;
  inset: 40px;
  display: grid;
  place-items: center;
}

.studio-lightbox-image {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 22px;
  display: block;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.studio-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 8, 8, 0.8);
  color: #ffffff;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

body.logo-expanded {
  background: var(--fg);
  color: var(--bg);
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.video-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: var(--films-fade);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.2s linear;
}

.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.18) 0,
      rgba(0, 0, 0, 0.18) 1px,
      transparent 1px,
      transparent 3px
    ),
    rgba(255, 255, 255, 0.22);
  mix-blend-mode: screen;
  opacity: 0;
}

body.logo-expanded .video-bg {
  opacity: 1;
}

body.theme-dark .video-bg {
  filter: grayscale(1) brightness(0.45);
}

body.video-transitioning .video-bg {
  filter: grayscale(1) brightness(0.45);
}

body.theme-dark .video-bg::after {
  opacity: 0;
}

.video-bg video,
.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 120vw;
  height: 120vh;
  transform: translate(-50%, -50%);
}

.video-bg-local {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.video-bg iframe {
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.mode-lab .video-bg-local {
  opacity: 1;
}

body.mode-lab .video-bg iframe {
  opacity: 0;
}

.topbar {
  position: fixed;
  top: 32px;
  right: 78px;
  display: flex;
  align-items: center;
  gap: 42px;
  z-index: 60;
}

.topbar-logo {
  position: fixed;
  top: -30px;
  left: 84px;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.topbar-logo img {
  width: 152px;
  height: auto;
  display: block;
}

body.mode-lab.lab-unlocked .topbar-logo {
  display: inline-flex;
}

.mode-toggle {
  position: relative;
  width: 164px;
  height: 54px;
  border: none;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.mode-track {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px solid var(--fg);
  border-radius: inherit;
  background: linear-gradient(90deg, #f8f8f8 0 50%, #111111 50% 100%);
  box-shadow: var(--shadow);
  display: block;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

body.theme-dark .mode-track {
  background: linear-gradient(90deg, #ffffff 0 50%, #050505 50% 100%);
}

.mode-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 48.5%, rgba(255, 255, 255, 0.85) 49.8%, rgba(255, 255, 255, 0.25) 50.2%, transparent 51.5%),
    repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 11px);
  opacity: 0.75;
  mix-blend-mode: overlay;
  animation: switch-grain 8s linear infinite;
}

.mode-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.34), transparent 48%);
  opacity: 0.6;
  transform: translateX(0);
  transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.18, 1), opacity 0.4s ease;
}

body.theme-dark .mode-track::after {
  transform: translateX(64%);
  opacity: 0.35;
}

.mode-label {
  position: absolute;
  top: 50%;
  z-index: 1;
  font-family: "Utendo", "Trebuchet MS", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(-50%);
  transition: color 0.35s ease, opacity 0.35s ease;
}

.mode-label-films {
  left: 16px;
  color: rgba(0, 0, 0, 0.86);
}

.mode-label-lab {
  right: 16px;
  color: rgba(255, 255, 255, 0.65);
}

body.theme-dark .mode-label-films {
  color: rgba(0, 0, 0, 0.45);
}

body.theme-dark .mode-label-lab {
  color: rgba(255, 255, 255, 0.94);
}

.mode-orb {
  position: absolute;
  top: 5px;
  left: 6px;
  z-index: 3;
  width: 70px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(125deg, #303030 6%, #141414 56%, #000000 95%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  transform: translateX(0) scale(1) rotate(-5deg);
  transform-origin: center;
  transition: transform 0.65s cubic-bezier(0.2, 1, 0.3, 1);
}

.mode-orb::before {
  content: "";
  position: absolute;
  width: 94%;
  height: 78%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.55);
  opacity: 0.58;
}

.mode-orb::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.55), transparent 72%);
  filter: blur(7px);
  opacity: 0.52;
  z-index: -1;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.mode-orb-logo {
  width: 22px;
  height: 22px;
  display: block;
  filter: invert(0);
  transition: filter 0.4s ease;
}

body.theme-dark .mode-orb {
  background: linear-gradient(115deg, #ffffff 10%, #dbdbdb 52%, #b8b8b8 92%);
  border-color: rgba(17, 17, 17, 0.2);
  transform: translateX(82px) scale(1.06) rotate(8deg);
}

body.theme-dark .mode-orb::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 68%);
  opacity: 0.36;
  transform: scale(1.08);
}

body.theme-dark .mode-orb-logo {
  filter: invert(1);
}

.mode-toggle:hover .mode-track {
  transform: translateY(-2px);
}

.mode-toggle:active .mode-orb {
  transform: translateX(2px) scale(0.96);
}

body.theme-dark .mode-toggle:active .mode-orb {
  transform: translateX(80px) scale(0.96);
}

.mode-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
}

@keyframes switch-grain {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(46px);
  }
}

.contact-btn {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--fg);
  color: var(--button-fg);
  background: var(--button-bg);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.rental-menu-wrap {
  position: relative;
}

.rental-menu-wrap::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 16px;
}

.rental-menu-btn {
  min-width: 126px;
  height: 48px;
  padding: 0 24px;
  border: 2px solid var(--fg);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-fg);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.rental-menu-btn:hover,
.rental-menu-wrap:hover .rental-menu-btn,
.rental-menu-wrap:focus-within .rental-menu-btn {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.rental-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 9, 12, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px;
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.16s ease 1s, transform 0.16s ease 1s, visibility 0s linear 1.16s;
}

.rental-menu.is-open,
.rental-menu-wrap:hover .rental-menu,
.rental-menu-wrap:focus-within .rental-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s, 0s, 0s;
}

.rental-menu-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
}

.rental-menu-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-social-link {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.topbar-social-link:hover {
  transform: translateY(-2px) scale(1.04);
  opacity: 0.92;
}

.topbar-social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.lab-logout-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.mode-lab.lab-unlocked .lab-logout-btn {
  display: inline-flex;
}

.hamburger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--fg);
  background: var(--button-bg);
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px 10px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--button-fg);
}

.hero {
  position: fixed;
  inset: 0;
  height: 100vh;
  width: 100%;
  z-index: 2;
  transition: opacity 0.35s ease;
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.screen-films {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.screen-lab {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

body.mode-lab .screen-films {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

body.mode-lab .screen-lab {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.logo-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
}

.logo-wrap .logo-svg {
  width: min(42vw, 390px);
  max-width: 90vw;
  filter: brightness(0) saturate(100%) invert(98%) sepia(1%) saturate(45%) hue-rotate(275deg) brightness(117%) contrast(92%);
  height: auto;
  animation: float-logo 6s ease-in-out infinite;
  transform-origin: center;
  display: block;
}

body.scrolling .logo-wrap .logo-svg {
  animation: none;
}

body:not(.logo-expanded) .logo-wrap .logo-svg {
  mix-blend-mode: overlay;
}

.lab-auth {
  width: min(88vw, 420px);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 12, 12, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.lab-auth-label {
  color: #f5f5f5;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.lab-auth-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 13px 14px;
  font: inherit;
}

.lab-auth-input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.lab-auth-input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.lab-auth-message {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
}

.scroll-space {
  height: 320vh;
}

body.mode-lab .scroll-space {
  height: 100vh;
}

.portfolio {
  position: fixed;
  inset: 0;
  z-index: 4;
  padding: 0;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow: hidden;
}

body.logo-expanded:not(.mode-lab) .portfolio {
  opacity: 1;
  pointer-events: auto;
}

.monitor-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1800px;
}

.portfolio-showcase {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(94vw, 1280px);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 62px);
}

.portfolio-brand-logo {
  position: absolute;
  top: -30px;
  left: 84px;
  width: 168px;
  height: auto;
  z-index: 3;
  filter: brightness(0) invert(1);
}

.portfolio-title-main {
  position: absolute;
  top: 8vh;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.22s linear;
}

.video-meta {
  position: relative;
  width: min(32vw, 430px);
  z-index: 2;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.22s linear;
}

.video-meta-heading {
  margin: 0 0 18px;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.video-meta-line {
  margin: 0 0 10px;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  color: rgba(255, 255, 255, 0.86);
}

.video-meta-line span {
  color: rgba(255, 255, 255, 0.62);
  margin-right: 4px;
}

.video-meta-line strong {
  font-weight: 700;
  color: #ffffff;
}

.video-meta-heading.decoding,
.video-meta-line strong.decoding {
  text-shadow: 0 0 10px rgba(127, 255, 212, 0.45);
  opacity: 0.95;
}

.monitor-rig {
  position: relative;
  width: min(52vw, 680px);
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.2s linear;
}

.monitor-frame {
  display: none;
}

.monitor-screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #101216;
  cursor: pointer;
  --g-duration: 420ms;
  --g-shift-1: -12px;
  --g-shift-2: 11px;
  --g-shift-3: -8px;
  --g-cut1-top: 0%;
  --g-cut1-bottom: 62%;
  --g-cut2-top: 31%;
  --g-cut2-bottom: 28%;
  --g-cut3-top: 63%;
  --g-cut3-bottom: 0%;
  --g-scan-x1: 14px;
  --g-scan-y1: -3px;
  --g-scan-x2: -11px;
  --g-scan-y2: 4px;
  --g-scan-skew1: 8deg;
  --g-scan-skew2: -8deg;
  --g-grid-a: 31px;
  --g-grid-b: 56px;
  --g-grid-c: 5px;
  --g-grid-d: 7px;
  --g-pos1-x: 0px;
  --g-pos1-y: 0px;
  --g-pos2-x: 0px;
  --g-pos2-y: 0px;
}

.monitor-screen::before,
.monitor-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.monitor-screen::before {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 0, 255, 0.82) 0 8px,
      rgba(0, 255, 255, 0.82) 8px 16px,
      rgba(255, 255, 0, 0.82) 16px 24px,
      rgba(0, 0, 0, 0.04) 24px 31px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 64, 64, 0.72) 0 14px,
      rgba(64, 255, 128, 0.72) 14px 28px,
      rgba(64, 128, 255, 0.72) 28px 42px,
      transparent 42px 56px
    );
  mix-blend-mode: screen;
  background-size: 100% var(--g-grid-a), var(--g-grid-b) 100%;
  background-position: var(--g-pos1-x) var(--g-pos1-y), var(--g-pos2-x) var(--g-pos2-y);
}

.monitor-screen::after {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.5) 0 1px,
      transparent 1px 5px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.32) 0 2px,
      transparent 2px 7px
    );
  mix-blend-mode: difference;
  background-size: var(--g-grid-c) 100%, 100% var(--g-grid-d);
  background-position: var(--g-pos2-x) var(--g-pos1-y), var(--g-pos1-x) var(--g-pos2-y);
}

.monitor-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.monitor-thumb.is-glitching {
  animation: thumb-glitch var(--g-duration) steps(3, end) both;
}

.monitor-screen.is-glitching::before {
  opacity: 0.95;
  animation: glitch-blocks var(--g-duration) steps(2, end) both;
}

.monitor-screen.is-glitching::after {
  opacity: 0.85;
  animation: glitch-scan var(--g-duration) steps(3, end) both;
}

@keyframes thumb-glitch {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: contrast(1) saturate(1);
  }
  14% {
    transform: translate3d(-12px, 4px, 0) scale(1.03);
    filter: contrast(1.8) saturate(2.2) hue-rotate(-22deg);
  }
  29% {
    transform: translate3d(11px, -5px, 0) scale(0.98);
    filter: contrast(2) saturate(2.4) hue-rotate(18deg);
  }
  48% {
    transform: translate3d(-8px, 3px, 0) scale(1.02);
    filter: contrast(1.65) saturate(2.1) hue-rotate(-15deg);
  }
  69% {
    transform: translate3d(7px, -3px, 0) scale(1);
    filter: contrast(1.75) saturate(2) hue-rotate(12deg);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: contrast(1) saturate(1);
  }
}

@keyframes glitch-blocks {
  0% {
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 0 0 0);
  }
  22% {
    transform: translate3d(var(--g-shift-1), 0, 0);
    clip-path: inset(var(--g-cut1-top) 0 var(--g-cut1-bottom) 0);
  }
  45% {
    transform: translate3d(var(--g-shift-2), 0, 0);
    clip-path: inset(var(--g-cut2-top) 0 var(--g-cut2-bottom) 0);
  }
  71% {
    transform: translate3d(var(--g-shift-3), 0, 0);
    clip-path: inset(var(--g-cut3-top) 0 var(--g-cut3-bottom) 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes glitch-scan {
  0% {
    transform: translate3d(0, 0, 0) skewX(0deg);
  }
  30% {
    transform: translate3d(var(--g-scan-x1), var(--g-scan-y1), 0) skewX(var(--g-scan-skew1));
  }
  58% {
    transform: translate3d(var(--g-scan-x2), var(--g-scan-y2), 0) skewX(var(--g-scan-skew2));
  }
  100% {
    transform: translate3d(0, 0, 0) skewX(0deg);
  }
}

.monitor-play-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(52px, 7vw, 88px);
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  opacity: 0.72;
  animation: play-hint-pulse 1.85s ease-in-out infinite;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.monitor-screen:hover .monitor-play-hint {
  transform: translate(-50%, -50%) scale(1.05);
}

@keyframes play-hint-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.62;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.62;
  }
}

.monitor-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.monitor-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

body.monitor-expanded .monitor-thumb {
  opacity: 0;
}

body.monitor-expanded .monitor-play-hint {
  opacity: 0;
  display: none !important;
  animation: none;
}

body.monitor-expanded .monitor-player {
  opacity: 1;
  pointer-events: auto;
}

body.monitor-expanded .monitor-close {
  opacity: 1;
  pointer-events: auto;
}

body.monitor-expanded .portfolio-title-main,
body.monitor-expanded .monitor-controls,
body.monitor-expanded .video-meta {
  opacity: 0 !important;
  pointer-events: none;
}

body.monitor-expanded .portfolio-showcase {
  justify-content: center;
  gap: 0;
}

body.monitor-expanded .video-meta {
  display: none !important;
}

.monitor-controls {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  display: flex;
  gap: 34px;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.22s linear;
}

.monitor-btn {
  border: 0;
  background: transparent;
  width: auto;
  height: auto;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.monitor-btn-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.monitor-btn:hover {
  background: transparent;
}

.monitor-btn:hover .monitor-btn-icon {
  transform: scale(1.06);
  opacity: 0.92;
}

@keyframes float-logo {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  html,
  body,
  .hero,
  .screen,
  .video-bg {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    height: 100dvh;
  }

  .video-bg {
    inset: 0;
    background: #000;
  }

  .video-bg video {
    width: 104vw;
    width: 104dvw;
    height: 104vh;
    height: 104dvh;
    min-width: 104%;
    min-height: 104%;
    object-fit: cover;
    object-position: center center;
    background: #000000;
  }

  .video-bg iframe {
    width: 100vw;
    height: 100vh;
  }

  .topbar {
    top: 20px;
    right: 20px;
    gap: 12px;
  }

  .topbar-logo {
    top: -24px;
    left: 52px;
  }

  .topbar-logo img {
    width: 124px;
  }

  .contact-btn {
    padding: 10px 18px;
  }

  .mode-toggle {
    width: 152px;
    height: 50px;
  }

  .mode-orb {
    width: 64px;
    height: 36px;
  }

  .mode-orb-logo {
    width: 19px;
    height: 19px;
  }

  body.theme-dark .mode-orb {
    transform: translateX(76px) scale(1.06) rotate(8deg);
  }

  .logo-wrap .logo-svg {
    width: min(70vw, 360px);
  }

  .portfolio-showcase {
    width: min(96vw, 900px);
    gap: clamp(14px, 3vw, 26px);
  }

  .monitor-rig {
    width: min(70vw, 680px);
  }

  .portfolio-title-main {
    top: 7vh;
  }

  .video-meta {
    width: min(34vw, 300px);
  }

  .portfolio-brand-logo {
    top: -24px;
    left: 52px;
    width: 136px;
  }

  .studio-topbar {
    left: 16px;
    right: 16px;
    justify-content: center;
    gap: 10px;
  }

  .studio-topbar .topbar-socials {
    gap: 8px;
  }

  .studio-topbar .topbar-social-link {
    width: 24px;
    height: 24px;
  }

  .studio-topbar-logo {
    top: -6px;
    left: 52px;
  }

  .studio-shell {
    width: min(100%, calc(100% - 32px));
    padding-top: 0;
  }

  .studio-hero {
    position: relative;
    min-height: 100svh;
  }

  .studio-block,
  .studio-block-b {
    grid-template-columns: 1fr;
  }

  .studio-list {
    margin-top: 0;
    padding-top: 28px;
  }

  .studio-block {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .studio-copy,
  .studio-description,
  .studio-specs,
  .studio-visual,
  .studio-frame {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .studio-description,
  .studio-specs li {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .studio-copy {
    order: 2;
    display: flex;
    flex-direction: column;
  }

  .studio-visual {
    order: 1;
  }

  .studio-rent-btn {
    order: 5;
    align-self: stretch;
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  .studio-equipment-grid {
    grid-template-columns: 1fr;
  }

  .studio-hero-content {
    width: min(100%, calc(100% - 32px));
    padding-top: 132px;
    padding-bottom: 72px;
  }

  .equipment-shell {
    width: min(100%, calc(100% - 32px));
    padding-top: 0;
  }

  .equipment-hero-content {
    width: min(100%, calc(100% - 32px));
    padding-top: 132px;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipment-card-button {
    min-height: 260px;
  }

  .equipment-thumb {
    min-height: 178px;
  }

  .equipment-modal-dialog {
    grid-template-columns: 1fr;
  }

  .equipment-modal-gallery {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .equipment-modal-slide {
    padding: 12px;
  }

  .equipment-modal-slide .equipment-thumb {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

}

@media (max-width: 700px) {
  /* Lenguaje visual movil inspirado en apertura de lente y cambio de plano. */
  .hero::before,
  .hero::after {
    content: none;
  }

  .video-bg-local {
    animation: cinema-focus-in 1.35s cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }

  .video-bg::after {
    inset: -5%;
    opacity: 0.2;
    mix-blend-mode: soft-light;
    background:
      radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.78) 100%),
      repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 4px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.3));
    animation: mobile-film-grain 480ms steps(2, end) infinite;
  }

  .logo-wrap .logo-svg {
    animation: cinema-title-in 900ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    mix-blend-mode: normal;
    will-change: transform, opacity;
  }

  .portfolio {
    transition: opacity 320ms ease;
  }

  body.logo-expanded:not(.mode-lab) .portfolio {
    animation: cinema-scene-cut 420ms ease-out both;
  }

  .monitor-screen {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 24px 65px rgba(0, 0, 0, 0.72);
  }

  .monitor-screen::before {
    opacity: 0;
    animation: none;
  }

  .monitor-screen::after {
    opacity: 0.16;
    mix-blend-mode: soft-light;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.2));
    animation: none;
  }

  .monitor-thumb.is-film-cut {
    animation: film-cut 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .monitor-play-hint {
    animation: none;
    opacity: 0.76;
  }

  .portfolio-title-main,
  .video-meta,
  .monitor-controls {
    transition: opacity 260ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .portfolio-showcase {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(94vw, 640px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .video-meta {
    width: min(88vw, 520px);
    text-align: center;
  }

  .video-meta-heading {
    margin-bottom: 12px;
  }

  .monitor-rig {
    width: min(84vw, 420px);
  }

  .monitor-controls {
    bottom: 6vh;
  }

  .portfolio-title-main {
    top: 112px;
    width: min(88vw, 360px);
    text-align: center;
    font-size: clamp(1.18rem, 6vw, 1.7rem);
    line-height: 1.08;
  }

  .video-meta {
    width: min(88vw, 420px);
    text-align: center;
  }

  .studio-nav-link,
  .rental-menu-btn {
    min-width: 108px;
    height: 44px;
    padding: 0 16px;
  }

  .studio-title {
    line-height: 1;
  }

  .studio-list {
    padding-top: 18px;
    gap: 18px;
  }

  .studio-block {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .studio-copy h3 {
    font-size: clamp(1.45rem, 8vw, 2.2rem);
  }

  .studio-description,
  .studio-specs li {
    font-size: 0.92rem;
    line-height: 1.58;
    overflow-wrap: anywhere;
  }

  .studio-visual {
    min-height: 0;
  }

  .studio-frame {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .studio-hero-content {
    width: min(100%, calc(100% - 28px));
    padding-top: 124px;
    padding-bottom: 56px;
  }

  .equipment-shell {
    width: min(100%, calc(100% - 28px));
    padding-top: 0;
    padding-bottom: 44px;
  }

  .equipment-hero-content {
    width: min(100%, calc(100% - 28px));
    padding-top: 126px;
    padding-bottom: 56px;
  }

  .equipment-title {
    font-size: clamp(2.2rem, 12vw, 4.6rem);
    line-height: 0.94;
  }

  .equipment-filters {
    position: relative;
    top: auto;
    margin-top: 8px;
  }

  .equipment-filter-btn {
    flex: 1 1 calc(50% - 8px);
    padding: 0 12px;
  }

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

  .equipment-card-button {
    min-height: 250px;
  }

  .equipment-modal-dialog {
    width: min(100% - 20px, 680px);
    max-height: 90vh;
    gap: 18px;
    padding: 10px;
  }

  .equipment-modal-gallery {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .equipment-modal-slide {
    padding: 10px;
  }

  .equipment-modal-slide .equipment-thumb {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .equipment-modal-copy {
    position: relative;
    z-index: 2;
    padding: 30px 8px 8px;
  }

  .equipment-modal-category {
    margin-top: 0;
  }

  .equipment-modal-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .equipment-modal-add {
    width: 100%;
    justify-content: center;
  }
}

@keyframes cinema-focus-in {
  0% { filter: blur(14px) brightness(0.12) saturate(0.5); transform: translate(-50%, -50%) scale(1.14); }
  58% { filter: blur(2px) brightness(1.28) saturate(0.85); }
  to { filter: blur(0) brightness(1); transform: translate(-50%, -50%) scale(1); }
}

@keyframes cinema-title-in {
  from { opacity: 0; transform: scale(1.08); filter: blur(7px) brightness(2); }
  to { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); }
}

@keyframes cinema-scene-cut {
  0% { opacity: 0; filter: brightness(3) contrast(0.6); }
  35% { opacity: 0.82; filter: brightness(1.65) contrast(0.82); }
  to { opacity: 1; filter: brightness(1); }
}

@keyframes film-cut {
  0% { opacity: 0; filter: brightness(2.2) contrast(0.75); transform: scale(1.025); }
  45% { opacity: 0.72; filter: brightness(1.35) contrast(0.9); }
  100% { opacity: 1; filter: brightness(1) contrast(1.04); transform: scale(1); }
}

@keyframes mobile-film-grain {
  0% { transform: translate3d(-1%, 0, 0); }
  50% { transform: translate3d(1%, -1%, 0); }
  100% { transform: translate3d(0, 1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .video-bg-local,
  .logo-wrap .logo-svg,
  .video-bg::after,
  body.logo-expanded:not(.mode-lab) .portfolio,
  .monitor-thumb.is-film-cut,
  .monitor-play-hint {
    animation: none !important;
  }
}

@media (max-width: 600px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .topbar.studio-topbar {
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 12px;
    justify-content: center;
    flex-wrap: nowrap;
  }
}

.lab-secret {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: #0b0b0b;
  color: #f4f4f4;
  overflow-y: auto;
}

body.mode-lab.lab-unlocked .lab-secret {
  display: block;
}

body.mode-lab.lab-unlocked {
  overflow: hidden;
}

.lab-secret-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 90px 34px 100px;
  text-align: center;
}

.lab-secret-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.lab-secret-dot {
  color: #ffffff;
}

.lab-secret-subtitle {
  max-width: 700px;
  margin: 20px auto 0;
  color: #b9b9b9;
  line-height: 1.6;
}

.lab-carousel {
  margin-top: 68px;
  perspective: 1700px;
  perspective-origin: center center;
  height: clamp(380px, 58vh, 540px);
  overflow: hidden;
  cursor: default;
}

.lab-carousel-controls {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 3;
}

.lab-carousel-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lab-carousel-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
}

.lab-ring {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.68s cubic-bezier(0.22, 0.78, 0.2, 1);
}

.lab-ring.is-dragging {
  transition: none;
}

.lab-service-card {
  padding: 20px 16px;
}

.lab-service-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(32vw, 360px);
  min-height: 250px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 18px;
  background: rgba(12, 12, 12, 0.95);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
  backface-visibility: hidden;
  transform-origin: center center;
  overflow: hidden;
  cursor: pointer;
}

.lab-service-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.22s ease;
  transform-origin: center center;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform;
}

.lab-service-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 14px;
  font-size: 1.45rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.lab-service-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.28;
  min-height: calc(1.28em * 3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.lab-service-card p {
  margin: 0;
  color: #b9b9b9;
  line-height: 1.55;
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .lab-service-item {
    width: min(64vw, 360px);
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .lab-secret-inner {
    padding-top: 76px;
  }

  .lab-carousel {
    margin-top: 42px;
    height: 430px;
  }

  .lab-carousel-controls {
    bottom: 2px;
    gap: 20px;
  }

  .lab-carousel-btn img {
    width: 34px;
    height: 34px;
  }

  .lab-service-item {
    width: min(86vw, 340px);
    min-height: 210px;
  }
}

/* Cuenta regresiva inspirada en los líderes de película analógica. */
.film-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #000000;
  opacity: 1;
  visibility: visible;
  transition: opacity 600ms ease, visibility 0s linear 600ms;
  isolation: isolate;
}

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

.film-loader::before {
  z-index: 3;
  opacity: 0.38;
  background:
    repeating-radial-gradient(circle at 24% 32%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(92deg, transparent 0 13px, rgba(255, 255, 255, 0.12) 14px, transparent 15px 31px);
  mix-blend-mode: screen;
  animation: film-loader-grain 180ms steps(2, end) infinite;
}

.film-loader::after {
  z-index: 4;
  box-shadow: inset 0 0 15vmax 5vmax rgba(0, 0, 0, 0.58);
  animation: film-loader-flicker 240ms steps(2, end) infinite;
}

.film-loader-frame {
  position: relative;
  width: min(22.2vw, 129px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.film-loader-rings {
  position: absolute;
  inset: 7%;
  border: clamp(2px, 0.5vw, 5px) solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 clamp(8px, 2vw, 18px) #000, 0 0 0 clamp(10px, 2.5vw, 23px) #fff;
  z-index: 2;
}

.film-loader-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -20deg, rgba(255, 255, 255, 0.26) 0deg 48deg, transparent 48deg 360deg);
  animation: film-loader-sweep 1s linear 3;
}

.film-loader-line {
  position: fixed;
  z-index: 1;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.film-loader-line-h { left: 0; right: 0; top: 50%; height: 2px; }
.film-loader-line-v { top: 0; bottom: 0; left: 50%; width: 2px; }

.film-loader-count {
  position: relative;
  z-index: 5;
  width: 1em;
  height: 1.15em;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.7rem, 11.4vw, 4.8rem);
  line-height: 1;
  text-align: center;
}

.film-loader-count span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: film-loader-number 1s steps(1, end) forwards;
}

.film-loader-count span:nth-child(2) { animation-delay: 1s; }
.film-loader-count span:nth-child(3) { animation-delay: 2s; }

.film-loader.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.film-is-loading {
  overflow: hidden;
}

@keyframes film-loader-number {
  0%, 99% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes film-loader-sweep {
  to { transform: rotate(360deg); }
}

@keyframes film-loader-grain {
  0% { transform: translate3d(-2%, 1%, 0) scale(1.04); }
  50% { transform: translate3d(2%, -2%, 0) scale(1.02); }
  100% { transform: translate3d(0, 2%, 0) scale(1.05); }
}

@keyframes film-loader-flicker {
  0% { opacity: 0.72; }
  50% { opacity: 0.95; }
  100% { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .film-loader::before,
  .film-loader::after,
  .film-loader-sweep {
    animation: none;
  }
}


.lab-service-item:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.lab-service-item:hover .lab-service-content {
  transform: translate3d(0, 0, 0) scale(1.06);
}

.lab-service-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.lab-service-modal.is-open {
  display: block;
}

.lab-service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.lab-service-modal-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 980px);
  max-height: min(86vh, 860px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f0f10;
  color: #ffffff;
  padding: 28px 24px 24px;
}

.lab-service-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lab-service-modal-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
}

.lab-service-modal-description {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.lab-service-modal-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lab-service-modal-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 640px) {
  .lab-service-modal-dialog {
    width: min(94vw, 680px);
    padding: 22px 16px 16px;
  }

  .lab-service-modal-gallery {
    grid-template-columns: 1fr;
  }
}







/* Portada de entrada: permanece visible hasta pulsar el logo. */
.film-loader {
  background: #000;
  cursor: default;
}

.film-loader::before,
.film-loader::after,
.film-loader-frame,
.film-loader-rings,
.film-loader-sweep,
.film-loader-line,
.film-loader-count {
  display: none;
}

.film-loader-enter {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: min(52vw, 320px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: loader-logo-enter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.film-loader-enter img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.film-loader-enter:hover img,
.film-loader-enter:focus-visible img {
  transform: scale(1.06);
  filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.32));
}

.film-loader-enter:active img {
  transform: scale(0.96);
  opacity: 0.78;
}

.film-loader-enter:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 14px;
}

@keyframes loader-logo-enter {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 700px) {
  .film-loader-enter {
    width: min(58vw, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .film-loader-enter {
    animation: none;
  }
}
/* Logo protagonista y destello minimalista del cursor. */
.film-loader-enter {
  width: min(68vw, 500px);
}

@media (hover: hover) and (pointer: fine) {
  .film-loader,
  .film-loader-enter {
    cursor: none;
  }

  .film-loader::after {
    content: "";
    position: fixed;
    display: block;
    left: var(--cursor-x, 50%);
    top: var(--cursor-y, 50%);
    width: 5px;
    height: 5px;
    z-index: 20;
    border-radius: 50%;
    pointer-events: none;
    background: #fff;
    box-shadow:
      0 0 5px 1px rgba(255, 255, 255, 0.9),
      0 0 12px 3px rgba(255, 255, 255, 0.22);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 120ms ease, transform 120ms ease;
    animation: none;
  }

  .film-loader.has-pointer::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .film-loader:has(.film-loader-enter:hover)::after {
    box-shadow:
      0 0 6px 1px rgba(255, 255, 255, 1),
      0 0 16px 4px rgba(255, 255, 255, 0.32);
  }
}

@media (max-width: 700px) {
  .film-loader-enter {
    width: min(76vw, 380px);
  }
}
/* Destello amplio: centro definido y borde suave. */
@media (hover: hover) and (pointer: fine) {
  .film-loader::after {
    width: 34px;
    height: 34px;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.92) 0 7%,
      rgba(255, 255, 255, 0.5) 8% 16%,
      rgba(255, 255, 255, 0.16) 32%,
      rgba(255, 255, 255, 0.05) 54%,
      transparent 76%
    );
    box-shadow: none;
    filter: blur(0.35px);
  }

  .film-loader:has(.film-loader-enter:hover)::after {
    box-shadow: none;
    filter: brightness(1.12) blur(0.35px);
  }
}
/* Luz ambiental amplia que acompaña el cursor. */
@media (hover: hover) and (pointer: fine) {
  .film-loader::after {
    width: 190px;
    height: 190px;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.19) 14%,
      rgba(255, 255, 255, 0.1) 32%,
      rgba(255, 255, 255, 0.035) 52%,
      transparent 72%
    );
    box-shadow: none;
    filter: blur(7px);
    mix-blend-mode: screen;
  }

  .film-loader:has(.film-loader-enter:hover)::after {
    box-shadow: none;
    filter: brightness(1.08) blur(7px);
  }
}
/* Aura residual de la luz del cursor. */
@media (hover: hover) and (pointer: fine) {
  .film-cursor-aura {
    position: fixed;
    width: 112px;
    height: 112px;
    z-index: 19;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.09) 0%,
      rgba(255, 255, 255, 0.045) 32%,
      rgba(255, 255, 255, 0.015) 54%,
      transparent 74%
    );
    filter: blur(8px);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%) scale(0.72);
    animation: film-cursor-aura-fade 900ms ease-out forwards;
  }
}

@keyframes film-cursor-aura-fade {
  0% {
    opacity: 0.68;
    transform: translate(-50%, -50%) scale(0.72);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .film-cursor-aura {
    display: none;
  }
}
/* Estela más presente y continua. */
@media (hover: hover) and (pointer: fine) {
  .film-cursor-aura {
    width: 158px;
    height: 158px;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.105) 26%,
      rgba(255, 255, 255, 0.052) 46%,
      rgba(255, 255, 255, 0.018) 64%,
      transparent 80%
    );
    filter: blur(9px);
    animation-duration: 1350ms;
  }
}

@keyframes film-cursor-aura-fade {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.76);
  }
  58% {
    opacity: 0.38;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.22);
  }
}
/* Control de acumulación luminosa durante el movimiento. */
@media (hover: hover) and (pointer: fine) {
  .film-cursor-aura {
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.085) 0%,
      rgba(255, 255, 255, 0.046) 28%,
      rgba(255, 255, 255, 0.021) 48%,
      rgba(255, 255, 255, 0.007) 66%,
      transparent 80%
    );
    animation-duration: 1100ms;
  }
}

@keyframes film-cursor-aura-fade {
  0% {
    opacity: 0.48;
    transform: translate(-50%, -50%) scale(0.76);
  }
  58% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18);
  }
}
/* Estela estable: una sola aura sigue al cursor con inercia. */
.film-cursor-aura {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .film-loader::before {
    content: "";
    position: fixed;
    display: block;
    left: var(--aura-x, 50%);
    top: var(--aura-y, 50%);
    width: 260px;
    height: 260px;
    z-index: 18;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.105) 0%,
      rgba(255, 255, 255, 0.06) 25%,
      rgba(255, 255, 255, 0.026) 48%,
      rgba(255, 255, 255, 0.008) 66%,
      transparent 79%
    );
    filter: blur(11px);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 180ms ease;
    animation: none;
  }

  .film-loader.has-pointer::before {
    opacity: 1;
  }
}
/* Mayor presencia para la estela estable. */
@media (hover: hover) and (pointer: fine) {
  .film-loader::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.17) 0%,
      rgba(255, 255, 255, 0.105) 24%,
      rgba(255, 255, 255, 0.052) 45%,
      rgba(255, 255, 255, 0.016) 65%,
      transparent 80%
    );
    filter: blur(10px);
  }
}
/* Estela continua dibujada a lo largo de todo el recorrido. */
.film-loader::before {
  display: none !important;
}

.film-cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 19;
  pointer-events: none;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .film-cursor-trail {
    display: none;
  }
}
/* Luz principal con caída amplia y sin borde circular perceptible. */
@media (hover: hover) and (pointer: fine) {
  .film-loader::after {
    width: 290px;
    height: 290px;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.165) 12%,
      rgba(255, 255, 255, 0.115) 27%,
      rgba(255, 255, 255, 0.068) 43%,
      rgba(255, 255, 255, 0.032) 59%,
      rgba(255, 255, 255, 0.012) 74%,
      rgba(255, 255, 255, 0.003) 88%,
      transparent 100%
    );
    filter: blur(15px);
  }

  .film-loader:has(.film-loader-enter:hover)::after {
    filter: brightness(1.04) blur(15px);
  }
}
/* Trazo orgánico continuo: sin foco radial ni cadena de círculos. */
@media (hover: hover) and (pointer: fine) {
  .film-loader::after {
    display: none !important;
  }

  .film-cursor-trail {
    filter: blur(17px);
    opacity: 0.9;
  }
}
/* Haz de luz más amplio. */
@media (hover: hover) and (pointer: fine) {
  .film-cursor-trail {
    filter: blur(24px);
  }
}
/* Deformación magnética y líquida del logo de entrada. */
.film-loader-liquid-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .film-loader-enter img {
    transform-origin: var(--magnet-origin-x, 50%) var(--magnet-origin-y, 50%);
    transform:
      perspective(700px)
      translate3d(var(--magnet-x, 0), var(--magnet-y, 0), 0)
      rotateX(var(--magnet-rotate-x, 0deg))
      rotateY(var(--magnet-rotate-y, 0deg))
      skewX(var(--magnet-skew, 0deg))
      scaleX(var(--magnet-scale-x, 1))
      scaleY(var(--magnet-scale-y, 1));
    filter: url(#loaderLiquidFilter) brightness(0) invert(1);
    transition: transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1), opacity 220ms ease, filter 220ms ease;
    will-change: transform, filter;
  }

  .film-loader-enter.is-magnetic img {
    transition-duration: 90ms, 220ms, 220ms;
  }

  .film-loader-enter:hover img,
  .film-loader-enter:focus-visible img {
    filter: url(#loaderLiquidFilter) brightness(0) invert(1) drop-shadow(0 0 24px rgba(255, 255, 255, 0.26));
  }
}

@media (prefers-reduced-motion: reduce) {
  .film-loader-enter img {
    filter: brightness(0) invert(1) !important;
    transform: none !important;
  }
}
/* Distorsión localizada: el logo base no se deforma. */
.film-loader-enter {
  isolation: isolate;
}

.film-loader-enter .film-loader-logo-base {
  position: relative;
  z-index: 1;
  transform: none;
  transform-origin: center;
  filter: brightness(0) invert(1);
}

.film-loader-enter .film-loader-liquid-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transform: none;
  filter: url(#loaderLiquidFilter) brightness(0) invert(1);
  -webkit-mask-image: radial-gradient(
    circle 82px at var(--liquid-x, 50%) var(--liquid-y, 50%),
    #000 0%,
    #000 38%,
    rgba(0, 0, 0, 0.72) 58%,
    rgba(0, 0, 0, 0.24) 76%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 82px at var(--liquid-x, 50%) var(--liquid-y, 50%),
    #000 0%,
    #000 38%,
    rgba(0, 0, 0, 0.72) 58%,
    rgba(0, 0, 0, 0.24) 76%,
    transparent 100%
  );
  transition: opacity 150ms ease;
  will-change: filter, mask-image;
}

.film-loader-enter.is-magnetic .film-loader-liquid-layer {
  opacity: 1;
}

.film-loader-enter:hover .film-loader-logo-base,
.film-loader-enter:focus-visible .film-loader-logo-base {
  transform: none;
  filter: brightness(0) invert(1);
}

@media (prefers-reduced-motion: reduce) {
  .film-loader-liquid-layer {
    display: none !important;
  }
}
/* Recorta el logo base bajo la deformación para evitar la imagen duplicada. */
.film-loader-enter.is-magnetic .film-loader-logo-base {
  -webkit-mask-image: radial-gradient(
    circle 82px at var(--liquid-x, 50%) var(--liquid-y, 50%),
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.28) 58%,
    rgba(0, 0, 0, 0.76) 76%,
    #000 100%
  );
  mask-image: radial-gradient(
    circle 82px at var(--liquid-x, 50%) var(--liquid-y, 50%),
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.28) 58%,
    rgba(0, 0, 0, 0.76) 76%,
    #000 100%
  );
}
/* Mezcla líquida amplia para conservar contornos continuos. */
.film-loader-enter .film-loader-liquid-layer {
  -webkit-mask-image: radial-gradient(
    circle 120px at var(--liquid-x, 50%) var(--liquid-y, 50%),
    #000 0%,
    #000 28%,
    rgba(0, 0, 0, 0.88) 45%,
    rgba(0, 0, 0, 0.52) 65%,
    rgba(0, 0, 0, 0.18) 82%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 120px at var(--liquid-x, 50%) var(--liquid-y, 50%),
    #000 0%,
    #000 28%,
    rgba(0, 0, 0, 0.88) 45%,
    rgba(0, 0, 0, 0.52) 65%,
    rgba(0, 0, 0, 0.18) 82%,
    transparent 100%
  );
}

.film-loader-enter.is-magnetic .film-loader-logo-base {
  -webkit-mask-image: radial-gradient(
    circle 120px at var(--liquid-x, 50%) var(--liquid-y, 50%),
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.12) 28%,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0.52) 65%,
    rgba(0, 0, 0, 0.82) 82%,
    #000 100%
  );
  mask-image: radial-gradient(
    circle 120px at var(--liquid-x, 50%) var(--liquid-y, 50%),
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.12) 28%,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0.52) 65%,
    rgba(0, 0, 0, 0.82) 82%,
    #000 100%
  );
}
/* Una sola geometría deformable: sin capas duplicadas. */
.film-loader-enter {
  aspect-ratio: 595.3 / 592.9;
}

.film-loader-enter .film-loader-logo-base,
.film-loader-enter .film-loader-liquid-layer {
  position: absolute !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.film-loader-logo-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .film-loader-logo-canvas {
    display: block;
  }
}
/* El canvas dispone de margen transparente para recibir la deformación. */
.film-loader-logo-canvas {
  inset: auto;
  max-width: none;
  max-height: none;
  overflow: visible;
}
/* Flotación y pulso cinematográfico del logo. */
.film-loader-logo-canvas {
  transform-origin: center;
  animation: loader-logo-floating-pulse 4.2s ease-in-out infinite;
  will-change: transform, filter;
}

@keyframes loader-logo-floating-pulse {
  0%, 100% {
    transform: translate3d(0, 4px, 0) scale(0.985);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  45% {
    transform: translate3d(0, -7px, 0) scale(1.018);
    filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.08));
  }
  60% {
    transform: translate3d(0, -5px, 0) scale(1.01);
    filter: drop-shadow(0 5px 14px rgba(255, 255, 255, 0.05));
  }
}

@media (prefers-reduced-motion: reduce) {
  .film-loader-logo-canvas {
    animation: none;
    transform: none;
    filter: none;
  }
}
/* Portada consistente y adaptable en cualquier viewport. */
.film-loader {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.film-loader-enter {
  width: min(68vw, 68dvh, 500px);
  max-width: calc(100vw - 36px);
  max-height: calc(100dvh - 36px);
  flex: 0 0 auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 700px) {
  .film-loader-enter {
    width: min(78vw, 62dvh, 390px);
    max-width: calc(100vw - 28px);
    max-height: calc(100dvh - 28px);
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .film-loader-enter {
    width: min(54vw, 76dvh, 330px);
  }
}
/* Aura localizada detrás de la zona deformada. */
.film-loader-enter::after {
  content: "";
  position: absolute;
  left: var(--deform-aura-x, 50%);
  top: var(--deform-aura-y, 50%);
  z-index: 2;
  width: clamp(120px, 32%, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.19) 0%,
    rgba(255, 255, 255, 0.105) 24%,
    rgba(255, 255, 255, 0.046) 48%,
    rgba(255, 255, 255, 0.014) 68%,
    transparent 86%
  );
  filter: blur(13px);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
  will-change: left, top, opacity, transform;
}

.film-loader-enter.is-magnetic::after {
  opacity: 0.78;
  transform: translate(-50%, -50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .film-loader-enter::after {
    display: none;
  }
}
/* Aura visible sobre el lienzo transparente y sin recorte. */
.film-loader-enter {
  overflow: visible !important;
}

.film-loader-enter::after {
  z-index: 4;
  width: clamp(180px, 46%, 250px);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.21) 18%,
    rgba(255, 255, 255, 0.12) 38%,
    rgba(255, 255, 255, 0.055) 58%,
    rgba(255, 255, 255, 0.016) 76%,
    transparent 94%
  );
  filter: blur(9px);
}

.film-loader-enter.is-magnetic::after {
  opacity: 0.92;
}

@media (max-width: 700px) {
  .film-loader-enter::after {
    width: clamp(150px, 52%, 220px);
  }
}
/* El aura pertenece a la silueta del logo, no al cursor. */
.film-loader-enter::after {
  display: none !important;
}

.film-loader-enter {
  filter: none;
  transition: filter 240ms ease;
}

.film-loader-enter.is-magnetic {
  filter:
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.48))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.22))
    drop-shadow(0 0 38px rgba(255, 255, 255, 0.1));
}

@media (prefers-reduced-motion: reduce) {
  .film-loader-enter {
    filter: none;
  }
}
/* Aura limitada exclusivamente a los fragmentos deformados. */
.film-loader-enter,
.film-loader-enter.is-magnetic {
  filter: none !important;
}

.film-loader-logo-glow-canvas {
  position: absolute;
  inset: auto;
  z-index: 2;
  display: block;
  max-width: none;
  max-height: none;
  pointer-events: none;
  filter: blur(17px);
  opacity: 0.78;
  mix-blend-mode: screen;
  transform-origin: center;
  animation: loader-logo-floating-pulse 4.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .film-loader-logo-glow-canvas {
    display: none;
  }
}
/* Mantiene el desenfoque del aura durante toda la flotación. */
.film-loader-logo-glow-canvas {
  opacity: 1;
  filter: blur(14px);
  animation: loader-logo-glow-floating-pulse 4.2s ease-in-out infinite;
}

@keyframes loader-logo-glow-floating-pulse {
  0%, 100% {
    transform: translate3d(0, 4px, 0) scale(0.985);
    filter: blur(14px);
  }
  45% {
    transform: translate3d(0, -7px, 0) scale(1.018);
    filter: blur(16px);
  }
  60% {
    transform: translate3d(0, -5px, 0) scale(1.01);
    filter: blur(15px);
  }
}
/* Ajuste final de intensidad del aura localizada. */
.film-loader-logo-glow-canvas {
  opacity: 0.78;
}
/* Evita cualquier destello del loader cuando la introducción ya fue vista. */
html.film-loader-seen .film-loader {
  display: none !important;
}
/* Encabezado del index: el menú se reemplaza por un único logo. */
.topbar.index-logo-only {
  top: 24px;
  right: 58px;
  display: block;
  width: 260px;
  height: 72px;
  z-index: 60;
}

.index-header-logo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.index-header-logo img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-39.5%);
  filter: brightness(0) invert(1);
  transition: opacity 180ms ease, transform 220ms ease;
}

.index-header-logo:hover img,
.index-header-logo:focus-visible img {
  opacity: 0.78;
  transform: translateY(-39.5%) scale(1.025);
}

.index-header-logo:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.75);
  outline-offset: 5px;
}

@media (max-width: 700px) {
  .topbar.index-logo-only {
    top: 18px;
    right: 18px;
    width: 205px;
    height: 58px;
  }
}

@media (max-width: 380px) {
  .topbar.index-logo-only {
    width: 178px;
    height: 52px;
  }
}
/* Menú cinematográfico central inspirado en la referencia. */
.hero-cinema-menu {
  position: absolute;
  left: 50%;
  top: 63%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(78vw, 360px);
  padding: 30px 44px 30px 72px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  isolation: isolate;
  transition: opacity 260ms ease;
}

.hero-cinema-frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-left: 1px solid rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  transform: skewX(-39deg);
  transform-origin: bottom left;
}

.hero-cinema-frame::before,
.hero-cinema-frame::after {
  content: "";
  position: absolute;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-cinema-frame::before {
  left: -1px;
  top: 0;
  width: 48%;
  transform: rotate(-42deg);
  transform-origin: left center;
}

.hero-cinema-frame::after {
  right: -1px;
  bottom: -1px;
  width: 44%;
  transform: rotate(-42deg);
  transform-origin: right center;
}

.hero-cinema-item {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Utendo", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(34px);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms ease;
}

.hero-cinema-item + .hero-cinema-item { margin-top: 7px; }

.hero-cinema-item.is-active,
.hero-cinema-item:hover,
.hero-cinema-item:focus-visible {
  color: #fff;
  font-weight: 700;
  transform: translateX(0);
}

.hero-cinema-company span:last-child { font-weight: 400; }

.hero-cinema-item:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 5px;
}

body.scrolling .hero-cinema-menu {
  opacity: calc(1 - var(--portfolio-progress, 0));
  pointer-events: none;
}

@media (max-width: 700px) {
  .hero-cinema-menu {
    top: 66%;
    width: min(84vw, 310px);
    padding: 25px 34px 25px 57px;
  }

  .hero-cinema-item {
    font-size: clamp(1.05rem, 5.4vw, 1.42rem);
    letter-spacing: 0.14em;
    transform: translateX(25px);
  }

  .hero-cinema-item.is-active,
  .hero-cinema-item:hover,
  .hero-cinema-item:focus-visible { transform: translateX(0); }
}
/* Index de una sola sección: el contenido posterior queda conservado pero fuera de la vista. */
html:has(body.index-menu-page) {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body.index-menu-page {
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
}

body.index-menu-page .hero,
body.index-menu-page .screen {
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
}

body.index-menu-page .portfolio,
body.index-menu-page .scroll-space,
body.index-menu-page .lab-secret {
  display: none !important;
}

body.index-menu-page .hero-cinema-menu {
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* El menú queda limpio, sin marco geométrico posterior. */
.hero-cinema-frame {
  display: none !important;
}
/* Menú anclado cerca del borde inferior del viewport. */
.hero-cinema-menu {
  top: auto;
  bottom: max(34px, env(safe-area-inset-bottom));
  padding-bottom: 0;
  transform: translateX(-50%);
}
/* Las opciones permanecen alineadas; DYPA funciona como indicador móvil. */
.hero-cinema-menu {
  --hero-marker-y: 30px;
  padding-left: 142px;
  padding-right: 28px;
}

.hero-cinema-marker {
  position: absolute;
  left: 34px;
  top: 0;
  display: block;
  color: #fff;
  font-family: "Utendo", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.17em;
  pointer-events: none;
  transform: translateY(var(--hero-marker-y));
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-cinema-item,
.hero-cinema-item.is-active,
.hero-cinema-item:hover,
.hero-cinema-item:focus-visible {
  width: 100%;
  font-weight: 400;
  transform: none;
}

.hero-cinema-item.is-active {
  color: #fff;
}

@media (max-width: 700px) {
  .hero-cinema-menu {
    --hero-marker-y: 25px;
    padding-left: 116px;
    padding-right: 18px;
  }

  .hero-cinema-marker {
    left: 25px;
    font-size: clamp(1.05rem, 5.4vw, 1.42rem);
    letter-spacing: 0.14em;
  }
}
/* El indicador usa coordenadas visuales reales de cada opción. */
.hero-cinema-marker {
  transform: translate3d(0, var(--hero-marker-y), 0);
  will-change: transform;
}
/* Fondo monocromático con trama cinematográfica de puntos. */
body.index-menu-page .video-bg {
  filter: grayscale(1) brightness(0.72) contrast(1.1);
}

body.index-menu-page .video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.62) 0 1.15px, transparent 1.35px) 0 0 / 6px 6px,
    rgba(0, 0, 0, 0.12);
  mix-blend-mode: multiply;
  animation: none;
}

@media (max-width: 700px) {
  body.index-menu-page .video-bg::after {
    background:
      radial-gradient(circle, rgba(0, 0, 0, 0.58) 0 1px, transparent 1.2px) 0 0 / 5px 5px,
      rgba(0, 0, 0, 0.1);
  }
}
@font-face {
  font-family: "Mosvita";
  src: url("../fonts/Mosvita-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mosvita";
  src: url("../fonts/Mosvita-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Tipografía Mosvita para el menú principal. */
.hero-cinema-item,
.hero-cinema-marker {
  font-family: "Mosvita", sans-serif;
}
/* DYPA más próximo a la columna de opciones. */
.hero-cinema-marker {
  left: 50px;
}

@media (max-width: 700px) {
  .hero-cinema-marker {
    left: 38px;
  }
}
/* Separación intermedia para el indicador DYPA. */
.hero-cinema-marker {
  left: 41px;
}

@media (max-width: 700px) {
  .hero-cinema-marker {
    left: 31px;
  }
}
/* Firma superior DYPA COMP. */
body.index-menu-page .topbar.index-logo-only {
  top: 22px;
  right: 40px;
  width: auto;
  height: auto;
}

body.index-menu-page .index-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  overflow: visible;
  color: #fff;
}

body.index-menu-page .index-header-logo img {
  display: block;
  width: clamp(126px, 11.5vw, 168px);
  height: auto;
  transform: none;
  filter: brightness(0) invert(1);
  transition: opacity 180ms ease;
}

body.index-menu-page .index-header-logo span {
  font-family: "Mosvita", sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

body.index-menu-page .index-header-logo:hover img,
body.index-menu-page .index-header-logo:focus-visible img {
  opacity: 0.78;
  transform: none;
}

@media (max-width: 700px) {
  body.index-menu-page .topbar.index-logo-only {
    top: 17px;
    right: 17px;
    width: auto;
    height: auto;
  }

  body.index-menu-page .index-header-logo {
    gap: 6px;
  }

  body.index-menu-page .index-header-logo img {
    width: 112px;
  }

  body.index-menu-page .index-header-logo span {
    font-size: 0.98rem;
  }
}
/* Ajuste de altura para la firma superior */
body.index-menu-page .index-header-logo img {
  width: auto;
  height: 1.5rem;
}

body.index-menu-page .index-header-logo span {
  font-size: 1.5rem;
}

@media (max-width: 700px) {
  body.index-menu-page .index-header-logo img {
    width: auto;
    height: 1.5rem;
  }

  body.index-menu-page .index-header-logo span {
    font-size: 1.5rem;
  }
}
/* Menú principal centrado en el viewport */
body.index-menu-page .hero-cinema-menu {
  top: 50%;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 700px) {
  body.index-menu-page .hero-cinema-menu {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
}
/* Transicion cinematografica hacia FILMS */
body.page-glitch-out {
  overflow: hidden;
  pointer-events: none;
}

body.page-glitch-out::before,
body.page-glitch-out::after,
body.films-page::before,
body.films-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

body.page-glitch-out::before {
  background: #000;
  animation: dypa-glitch-cover 560ms cubic-bezier(.76, 0, .24, 1) both;
}

body.page-glitch-out::after {
  background:
    linear-gradient(to bottom,
      transparent 0 18%, rgba(255,255,255,.52) 18% 18.5%, transparent 18.5% 43%,
      rgba(255,255,255,.18) 43% 44%, transparent 44% 71%,
      rgba(255,255,255,.38) 71% 71.4%, transparent 71.4% 100%);
  mix-blend-mode: screen;
  animation: dypa-glitch-lines 560ms steps(1, end) both;
}

body.films-page {
  margin: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100%;
  overflow: hidden;
  background: #000;
}

body.films-page::before {
  background: #000;
  animation: dypa-glitch-reveal 680ms cubic-bezier(.76, 0, .24, 1) both;
}

body.films-page::after {
  background: linear-gradient(to bottom,
    transparent 0 31%, rgba(255,255,255,.32) 31% 31.5%, transparent 31.5% 64%,
    rgba(255,255,255,.17) 64% 65%, transparent 65% 100%);
  mix-blend-mode: screen;
  animation: dypa-glitch-reveal-lines 680ms steps(1, end) both;
}

body.films-page .video-bg {
  filter: grayscale(1) brightness(.72) contrast(1.1);
}

@keyframes dypa-glitch-cover {
  0% { opacity: 0; clip-path: inset(48% 0 48% 0); }
  28% { opacity: .32; clip-path: inset(36% 0 35% 0); transform: translateX(0); }
  45% { opacity: .72; clip-path: inset(18% 0 17% 0); transform: translateX(-5px); }
  62% { opacity: .9; clip-path: inset(8% 0 7% 0); transform: translateX(3px); }
  100% { opacity: 1; clip-path: inset(0); transform: translateX(0); }
}

@keyframes dypa-glitch-lines {
  0%, 20% { opacity: 0; transform: translateX(0); }
  21% { opacity: .2; transform: translateX(7px); }
  33% { opacity: 0; }
  46% { opacity: .32; transform: translateX(-8px); }
  58% { opacity: .08; transform: translateX(3px); }
  72%, 100% { opacity: 0; }
}

@keyframes dypa-glitch-reveal {
  0% { opacity: 1; clip-path: inset(0); }
  42% { opacity: .92; clip-path: inset(7% 0 8% 0); transform: translateX(0); }
  58% { opacity: .68; clip-path: inset(19% 0 20% 0); transform: translateX(4px); }
  76% { opacity: .3; clip-path: inset(37% 0 38% 0); transform: translateX(-3px); }
  100% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: translateX(0); }
}

@keyframes dypa-glitch-reveal-lines {
  0%, 25% { opacity: 0; }
  26% { opacity: .22; transform: translateX(-6px); }
  40% { opacity: 0; }
  53% { opacity: .25; transform: translateX(8px); }
  67% { opacity: .08; transform: translateX(-2px); }
  82%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-glitch-out::before { animation: dypa-fade-cover 240ms ease both; }
  body.page-glitch-out::after,
  body.films-page::after { display: none; }
  body.films-page::before { animation: dypa-fade-reveal 320ms ease both; }
}

@keyframes dypa-fade-cover { from { opacity: 0; } to { opacity: 1; } }
@keyframes dypa-fade-reveal { from { opacity: 1; } to { opacity: 0; } }
/* Firma superior centrada de Dypa Films */
.films-header {
  position: fixed;
  top: 44px;
  left: 50%;
  z-index: 60;
  transform: translateX(-50%);
}

.films-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.films-header-logo img {
  display: block;
  width: auto;
  height: 1.5rem;
  filter: brightness(0) invert(1);
  transition: opacity 180ms ease;
}

.films-header-logo span {
  font-family: "Mosvita", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.025em;
}

.films-header-logo:hover img,
.films-header-logo:focus-visible img {
  opacity: 0.78;
}

@media (max-width: 700px) {
  .films-header {
    top: max(34px, env(safe-area-inset-top));
  }

  .films-header-logo {
    gap: 6px;
  }
}
/* Menu desplegable de la firma FILMS */
.films-header-logo {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.films-header-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 5.8rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(.22, 1, .36, 1),
    visibility 220ms;
}

.films-header-menu a {
  position: relative;
  color: rgba(255, 255, 255, .72);
  font-family: "Mosvita", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .025em;
  text-decoration: none;
  transition: color 160ms ease, transform 180ms ease;
}

.films-header-menu a:hover,
.films-header-menu a:focus-visible {
  color: #fff;
  transform: translateX(3px);
  outline: none;
}

.films-header:hover .films-header-menu,
.films-header:focus-within .films-header-menu,
.films-header.is-open .films-header-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 700px) {
  .films-header-menu {
    top: calc(100% + 10px);
    gap: 6px;
  }

  .films-header-menu a {
    font-size: .95rem;
  }
}

@media (hover: none) {
  .films-header:hover:not(.is-open) .films-header-menu,
  .films-header:focus-within:not(.is-open) .films-header-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    pointer-events: none;
  }
}
/* Alineacion y permanencia del submenu de FILMS */
.films-header-menu {
  left: calc(6rem + 8px);
  right: auto;
}

@media (hover: hover) {
  .films-header-menu {
    transition-delay: 2s, 2s, 2s;
  }

  .films-header:hover .films-header-menu,
  .films-header:focus-within .films-header-menu,
  .films-header.is-open .films-header-menu {
    transition-delay: 0s, 0s, 0s;
  }
}

@media (max-width: 700px) {
  .films-header-menu {
    left: calc(6rem + 6px);
    right: auto;
  }
}
/* Mantiene interactivo el submenu durante su espera de cierre */
@media (hover: hover) {
  .films-header-menu {
    pointer-events: auto;
  }

  .films-header-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s, 0s, 0s;
  }
}
/* Degradado superior para mejorar la lectura del logo en FILMS */
body.films-page .films-gallery-bg::before {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  height: min(34vh, 290px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .9) 0%,
    rgba(0, 0, 0, .68) 30%,
    rgba(0, 0, 0, .3) 66%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 1;
}

@media (max-width: 700px) {
  body.films-page .films-gallery-bg::before {
    height: min(30vh, 230px);
  }
}
/* Galeria fullscreen de proyectos FILMS */
body.films-page .video-bg.films-gallery-bg {
  filter: none;
  background: #000;
  touch-action: pan-x;
}

.films-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 7%, 0) scale(1.075);
  filter: blur(9px) brightness(.82);
  visibility: hidden;
  will-change: transform, opacity, filter;
  transition:
    transform 820ms cubic-bezier(.22, 1, .36, 1),
    opacity 580ms ease,
    filter 760ms ease,
    visibility 820ms;
}

.films-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.films-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.001);
  filter: none;
  visibility: visible;
}

.films-slide.is-preparing {
  transition: none;
}

.films-slide.from-top {
  transform: translate3d(0, -7%, 0) scale(1.075);
}

.films-slide.from-bottom {
  transform: translate3d(0, 7%, 0) scale(1.075);
}

.films-slide.to-top,
.films-slide.to-bottom {
  opacity: 0;
  filter: blur(8px) brightness(.86);
  visibility: visible;
}

.films-slide.to-top {
  transform: translate3d(0, -6%, 0) scale(1.035);
}

.films-slide.to-bottom {
  transform: translate3d(0, 6%, 0) scale(1.035);
}

@media (max-width: 700px) {
  .films-slide img {
    object-position: center center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .films-slide {
    transform: none !important;
    filter: none !important;
    transition-duration: 260ms;
  }
}
/* Velocidad variable para la entrada tipo slot de FILMS */
.films-gallery-bg .films-slide {
  transition:
    transform var(--film-transition-speed, 820ms) cubic-bezier(.22, 1, .36, 1),
    opacity var(--film-transition-speed, 580ms) ease,
    filter var(--film-transition-speed, 760ms) ease,
    visibility var(--film-transition-speed, 820ms);
}
/* Desplazamiento vertical continuo de cada fotograma */
body.films-page .films-gallery-bg::before {
  z-index: 5;
}

.films-gallery-bg .films-slide.is-active {
  z-index: 2;
}

.films-gallery-bg .films-slide.is-preparing.from-bottom,
.films-gallery-bg .films-slide.is-preparing.from-top {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  filter: blur(2px) brightness(.94);
}

.films-gallery-bg .films-slide.from-bottom {
  transform: translate3d(0, 100%, 0) scale(1.015);
}

.films-gallery-bg .films-slide.from-top {
  transform: translate3d(0, -100%, 0) scale(1.015);
}

.films-gallery-bg .films-slide.to-top,
.films-gallery-bg .films-slide.to-bottom {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  filter: blur(2px) brightness(.88);
}

.films-gallery-bg .films-slide.to-top {
  transform: translate3d(0, -100%, 0) scale(1.015);
}

.films-gallery-bg .films-slide.to-bottom {
  transform: translate3d(0, 100%, 0) scale(1.015);
}
/* Rollo continuo de entrada: todos los fotogramas comparten un solo movimiento */
.films-intro-roll {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.films-intro-frame {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #000;
}

.films-intro-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
}

body.films-intro-running .films-gallery-bg {
  cursor: wait;
}
/* Ficha editorial de cada proyecto FILMS */
.films-slide::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 54%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .2) 38%, rgba(0, 0, 0, .82) 100%);
  pointer-events: none;
}

.films-project-info {
  position: absolute;
  left: 50%;
  bottom: clamp(70px, 13vh, 145px);
  z-index: 2;
  width: min(88vw, 820px);
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translate3d(-50%, 14px, 0);
  transition: opacity 420ms ease 180ms, transform 520ms cubic-bezier(.22, 1, .36, 1) 180ms;
}

.films-slide.is-active .films-project-info {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.films-project-info h2 {
  margin: 0 0 8px;
  font-family: "Mosvita", sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 3.4rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .42);
}

.films-project-credits {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(18px, 3.2vw, 52px);
  margin: 0;
  font-family: "Mosvita", sans-serif;
  text-transform: uppercase;
}

.films-project-credits div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 390px;
}

.films-project-credits dt,
.films-project-credits dd {
  margin: 0;
}

.films-project-credits dt {
  color: rgba(255, 255, 255, .58);
  font-size: clamp(.48rem, .55vw, .62rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .13em;
}

.films-project-credits dd {
  color: #fff;
  font-size: clamp(.6rem, .72vw, .78rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .025em;
}

@media (max-width: 700px) {
  .films-slide::after {
    height: 62%;
  }

  .films-project-info {
    bottom: max(52px, calc(env(safe-area-inset-bottom) + 34px));
    width: min(88vw, 430px);
  }

  .films-project-info h2 {
    margin-bottom: 12px;
    font-size: clamp(1.55rem, 8vw, 2.25rem);
    line-height: .95;
  }

  .films-project-credits {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
  }

  .films-project-credits dt {
    font-size: .46rem;
  }

  .films-project-credits dd {
    font-size: .58rem;
  }
}
/* Creditos apilados sin etiquetas, siguiendo la referencia */
.films-project-credits,
.films-project-credits div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: none;
}

.films-project-credits {
  gap: 2px;
}

.films-project-credits dd {
  font-size: clamp(.58rem, .7vw, .76rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .035em;
}

@media (max-width: 700px) {
  .films-project-credits {
    display: flex;
    gap: 3px;
  }

  .films-project-credits dd {
    font-size: .58rem;
  }
}
/* Los creditos viajan junto a cada fotograma del rollo inicial */
.films-intro-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 54%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .2) 38%, rgba(0, 0, 0, .82) 100%);
  pointer-events: none;
}

.films-intro-frame .films-project-info {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  transition: none;
}

@media (max-width: 700px) {
  .films-intro-frame::after {
    height: 62%;
  }
}
/* Controles de proyecto y vistas PLAY / GRID */
.films-project-info {
  bottom: clamp(105px, 18vh, 195px);
}

.films-project-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
  pointer-events: auto;
}

.films-play-button,
.films-grid-button {
  border: 0;
  color: #fff;
  background: transparent;
  font-family: "Mosvita", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.films-play-button {
  padding: 2px 3px;
  border-bottom: 1px solid rgba(255, 255, 255, .82);
  font-size: .67rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .045em;
}

.films-play-button span {
  display: inline-block;
  margin-right: 3px;
  font-size: .48rem;
  transform: translateY(-1px);
}

.films-grid-button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 5px;
}

.films-grid-icon {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  gap: 2px;
}

.films-grid-icon i {
  display: block;
  width: 3px;
  height: 3px;
  background: currentColor;
}

.films-play-button:hover,
.films-play-button:focus-visible,
.films-grid-button:hover,
.films-grid-button:focus-visible {
  color: rgba(255, 255, 255, .64);
  outline: none;
}

.films-intro-roll {
  pointer-events: none;
}

.films-grid-overlay,
.films-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(54px, 7vw, 96px);
  background: rgba(0, 0, 0, .96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 360ms ease, transform 480ms cubic-bezier(.22, 1, .36, 1), visibility 360ms;
}

.films-grid-overlay.is-open,
.films-player-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.films-overlay-close {
  position: absolute;
  top: 28px;
  right: 34px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: 300 2rem/1 "Mosvita", sans-serif;
  cursor: pointer;
}

.films-grid-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 28px);
  width: min(1180px, 100%);
  max-height: 78vh;
}

.films-grid-list button {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #090909;
  color: #fff;
  cursor: pointer;
}

.films-grid-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1), filter 300ms ease;
}

.films-grid-list span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 1;
  font: 700 clamp(.72rem, 1vw, 1rem)/1 "Mosvita", sans-serif;
  text-align: left;
  text-shadow: 0 2px 12px #000;
}

.films-grid-list button:hover img,
.films-grid-list button:focus-visible img {
  transform: scale(1.045);
  filter: brightness(.72);
}

.films-player-overlay iframe {
  width: min(90vw, 1280px);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

@media (max-width: 700px) {
  .films-project-info {
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 68px));
  }

  .films-project-actions {
    gap: 12px;
    margin-top: 14px;
  }

  .films-grid-overlay,
  .films-player-overlay {
    padding: 66px 16px 24px;
  }

  .films-overlay-close {
    top: max(18px, env(safe-area-inset-top));
    right: 16px;
  }

  .films-grid-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    max-height: 82vh;
    overflow-y: auto;
  }

  .films-player-overlay iframe {
    width: 100%;
  }
}
.films-intro-roll .films-project-actions {
  pointer-events: none;
}
/* Tipografia expandida del menu superior FILMS */
@font-face {
  font-family: "Mosvita Black Expanded";
  src: url("../fonts/Mosvita-BlackExpanded.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

.films-header-logo span,
.films-header-menu a {
  font-family: "Mosvita Black Expanded", "Mosvita", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

@media (max-width: 700px) {
  .films-header-logo span,
  .films-header-menu a {
    font-size: 1.5rem;
  }
}
/* Transicion continua de HOME a FILMS mediante rollo vertical */
body.films-roll-leaving {
  overflow: hidden;
  pointer-events: none;
}

.home-films-roll-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.home-films-roll-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
  backface-visibility: hidden;
}

.home-films-roll-frame {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.home-films-roll-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  backface-visibility: hidden;
}

/* La transición glitch anterior queda desactivada en la llegada a FILMS. */
body.films-page::before,
body.films-page::after {
  display: none !important;
  animation: none !important;
}
/* Transicion vertical de la vista completa HOME hacia la vista completa FILMS */
body.films-page-leaving {
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

body.films-page-leaving > :not(.home-films-page-panel):not(script) {
  animation: dypa-home-page-up 480ms cubic-bezier(.42, 0, .82, .58) both;
}

.home-films-page-panel {
  position: fixed;
  top: 100vh;
  top: 100dvh;
  right: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  color: #fff;
  pointer-events: none;
  animation: dypa-films-page-up 480ms cubic-bezier(.42, 0, .82, .58) both;
  will-change: transform;
}

.home-films-page-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-films-page-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .35) 17%, transparent 38%),
    linear-gradient(to top, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .23) 31%, transparent 55%);
}

.home-films-page-header {
  position: absolute;
  top: 44px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  font-family: "Mosvita Black Expanded", "Mosvita", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.home-films-page-header img {
  width: auto;
  height: 1.5rem;
  filter: brightness(0) invert(1);
}

.home-films-page-info {
  position: absolute;
  left: 50%;
  bottom: clamp(105px, 18vh, 195px);
  width: min(88vw, 820px);
  transform: translateX(-50%);
  font-family: "Mosvita", sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.home-films-page-info h2 {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 3.2vw, 3.4rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.025em;
}

.home-films-page-info p {
  margin: 2px 0 0;
  font-size: clamp(.58rem, .7vw, .76rem);
  line-height: 1.12;
  letter-spacing: .035em;
}

.home-films-page-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
  font-size: .67rem;
  font-weight: 700;
}

.home-films-page-actions > span:first-child {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .82);
}

.home-films-page-grid {
  font-size: 1rem;
  line-height: 1;
}

@keyframes dypa-home-page-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -100vh, 0); }
}

@keyframes dypa-films-page-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -100vh, 0); }
}

@supports (height: 100dvh) {
  @keyframes dypa-home-page-up {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, -100dvh, 0); }
  }

  @keyframes dypa-films-page-up {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, -100dvh, 0); }
  }
}

@media (max-width: 700px) {
  .home-films-page-header {
    top: max(34px, env(safe-area-inset-top));
    gap: 6px;
  }

  .home-films-page-info {
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 68px));
  }

  .home-films-page-info h2 {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

  .home-films-page-actions {
    gap: 12px;
    margin-top: 14px;
  }
}
/* Cinta unica y continua: INDEX + cinco proyectos FILMS */
body.films-seamless-leaving {
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.home-films-seamless-transition {
  position: fixed;
  inset: 0;
  z-index: 11000;
  overflow: hidden;
  background: #000;
  pointer-events: none;
  contain: strict;
}

.home-films-seamless-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.home-films-seamless-frame {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  contain: layout paint;
}

.home-index-live-frame > .video-bg {
  position: absolute;
}

.home-index-live-frame > .topbar,
.home-index-live-frame > .hero {
  position: absolute;
}

.home-films-project-frame .home-films-page-image,
.home-films-project-frame .home-films-page-shade {
  position: absolute;
}

@media (prefers-reduced-motion: reduce) {
  .home-films-seamless-track {
    scroll-behavior: auto;
  }
}
/* Color estable de los textos durante toda la cinta HOME-FILMS */
.home-films-seamless-transition,
.home-films-seamless-transition .home-films-project-frame,
.home-films-seamless-transition .home-films-page-header,
.home-films-seamless-transition .home-films-page-info,
.home-films-seamless-transition .home-films-page-info h2,
.home-films-seamless-transition .home-films-page-info p,
.home-films-seamless-transition .home-films-page-actions,
.home-films-seamless-transition .home-films-page-actions span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1;
}

.home-films-seamless-transition .home-films-page-info,
.home-films-seamless-transition .home-films-page-header {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
/* Glitch cinematografico al regresar de FILMS a COMPANY */
body.films-returning-home {
  overflow: hidden;
  pointer-events: none;
}

.films-return-glitch,
.films-return-glitch::before,
.films-return-glitch::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.films-return-glitch {
  z-index: 20000;
}

.films-return-glitch::before,
.films-return-glitch::after {
  content: "";
}

.films-return-glitch::before {
  background: #000;
  animation: dypa-glitch-cover 560ms cubic-bezier(.76, 0, .24, 1) both;
}

.films-return-glitch::after {
  background:
    linear-gradient(to bottom,
      transparent 0 18%, rgba(255,255,255,.52) 18% 18.5%, transparent 18.5% 43%,
      rgba(255,255,255,.18) 43% 44%, transparent 44% 71%,
      rgba(255,255,255,.38) 71% 71.4%, transparent 71.4% 100%);
  mix-blend-mode: screen;
  animation: dypa-glitch-lines 560ms steps(1, end) both;
}

@media (prefers-reduced-motion: reduce) {
  .films-return-glitch::before {
    animation: dypa-fade-cover 240ms ease both;
  }

  .films-return-glitch::after {
    display: none;
  }
}
/* Archivo visual de proyectos inspirado en la referencia */
.films-grid-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(92px, 12vh, 132px) 24px 34px;
  background:
    radial-gradient(circle at 64% -12%, rgba(112, 50, 135, .5), transparent 38%),
    radial-gradient(circle at 76% 17%, rgba(141, 0, 18, .48), transparent 34%),
    radial-gradient(circle at 42% 108%, rgba(210, 57, 0, .65), transparent 33%),
    radial-gradient(circle at 104% 102%, rgba(0, 91, 76, .42), transparent 28%),
    #020202;
}

.films-grid-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .28);
  pointer-events: none;
}

.films-grid-brand {
  position: absolute;
  top: clamp(38px, 6vh, 58px);
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
  color: #fff;
  font-family: "Mosvita Black Expanded", "Mosvita", sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.films-grid-brand img {
  display: block;
  width: auto;
  height: 1.15rem;
  filter: brightness(0) invert(1);
}

.films-grid-overlay .films-overlay-close {
  color: rgba(255, 255, 255, .72);
}

.films-grid-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  width: min(72vw, 720px);
  max-height: none;
}

.films-grid-list button {
  grid-column: span 2;
  aspect-ratio: 4 / 5;
  outline: 1px solid rgba(255, 255, 255, .12);
  outline-offset: -1px;
}

.films-grid-list button:nth-child(4) {
  grid-column: 2 / span 2;
}

.films-grid-list button:nth-child(5) {
  grid-column: 4 / span 2;
}

.films-grid-list img {
  filter: saturate(.88) contrast(1.04) brightness(.9);
}

.films-grid-list button::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .72));
  pointer-events: none;
}

.films-grid-list span {
  right: 14px;
  bottom: 13px;
  left: 14px;
  z-index: 2;
  font-family: "Mosvita Black Expanded", "Mosvita", sans-serif;
  font-size: clamp(.64rem, .82vw, .84rem);
  letter-spacing: .01em;
}

@media (max-width: 700px) {
  .films-grid-overlay {
    align-items: flex-start;
    padding: max(94px, calc(env(safe-area-inset-top) + 76px)) 12px 28px;
    overflow-y: auto;
  }

  .films-grid-brand {
    top: max(34px, calc(env(safe-area-inset-top) + 18px));
    font-size: 1rem;
  }

  .films-grid-brand img {
    height: 1rem;
  }

  .films-grid-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    width: min(94vw, 520px);
    overflow: visible;
  }

  .films-grid-list button {
    grid-column: span 2;
    aspect-ratio: 4 / 5;
  }

  .films-grid-list button:nth-child(4) {
    grid-column: span 2;
  }

  .films-grid-list button:nth-child(5) {
    grid-column: 2 / span 2;
  }
}
/* Cuadricula definitiva: 4 columnas y formato vertical 1080x1350 */
.films-grid-overlay {
  overflow-y: auto;
}

.films-grid-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 2px;
  width: min(76vw, 1080px);
  max-height: none;
  overflow: visible;
}

.films-grid-list button,
.films-grid-list button:nth-child(4),
.films-grid-list button:nth-child(5) {
  grid-column: auto;
  aspect-ratio: 1080 / 1350;
  width: 100%;
  min-width: 0;
}

@media (max-width: 700px) {
  .films-grid-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    width: 96vw;
  }

  .films-grid-list button,
  .films-grid-list button:nth-child(4),
  .films-grid-list button:nth-child(5) {
    grid-column: auto;
    aspect-ratio: 1080 / 1350;
  }

  .films-grid-list span {
    right: 5px;
    bottom: 6px;
    left: 5px;
    font-size: clamp(.42rem, 2vw, .6rem);
  }
}
/* Separacion sutil entre proyectos de la cuadricula */
.films-grid-list {
  gap: 6px;
}

@media (max-width: 700px) {
  .films-grid-list {
    gap: 4px;
  }
}
/* Cuadricula de dos columnas en dispositivos moviles */
@media (max-width: 700px) {
  .films-grid-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(94vw, 520px);
  }

  .films-grid-list button,
  .films-grid-list button:nth-child(4),
  .films-grid-list button:nth-child(5) {
    grid-column: auto;
    aspect-ratio: 1080 / 1350;
  }

  .films-grid-list span {
    right: 10px;
    bottom: 10px;
    left: 10px;
    font-size: clamp(.58rem, 3vw, .78rem);
  }
}
/* Las miniaturas cubren por completo cada tarjeta vertical */
.films-grid-list button {
  position: relative;
  overflow: hidden;
  background: #000;
}

.films-grid-list button > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
/* Glitch cinematografico breve para los titulos de cada proyecto */
.films-project-info h2[data-title] {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.films-project-info h2[data-title]::before,
.films-project-info h2[data-title]::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: #fff;
  pointer-events: none;
  opacity: 0;
}

.films-slide.is-active .films-project-info h2[data-title] {
  animation: films-title-focus 820ms cubic-bezier(.22, 1, .36, 1) both;
}

.films-slide.is-active .films-project-info h2[data-title]::before {
  animation: films-title-glitch-top 920ms steps(1, end) 90ms both;
}

.films-slide.is-active .films-project-info h2[data-title]::after {
  animation: films-title-glitch-bottom 920ms steps(1, end) 120ms both;
}

@keyframes films-title-focus {
  0% {
    opacity: 0;
    letter-spacing: .12em;
    filter: blur(7px) brightness(1.65);
    transform: translateY(7px) scaleX(1.035);
  }
  38% {
    opacity: 1;
    filter: blur(1.2px) brightness(1.25);
  }
  68% {
    letter-spacing: -.005em;
    filter: blur(.2px);
    transform: translateY(0) scaleX(.995);
  }
  100% {
    opacity: 1;
    letter-spacing: -.025em;
    filter: none;
    transform: none;
  }
}

@keyframes films-title-glitch-top {
  0%, 18%, 28%, 46%, 58%, 76%, 100% {
    opacity: 0;
    transform: translateX(0);
  }
  19% {
    opacity: .7;
    clip-path: inset(5% 0 68% 0);
    transform: translateX(-7px);
  }
  29% {
    opacity: .38;
    clip-path: inset(22% 0 54% 0);
    transform: translateX(5px);
  }
  47% {
    opacity: .52;
    clip-path: inset(8% 0 73% 0);
    transform: translateX(-3px);
  }
  59% {
    opacity: .24;
    clip-path: inset(37% 0 43% 0);
    transform: translateX(2px);
  }
}

@keyframes films-title-glitch-bottom {
  0%, 23%, 36%, 51%, 67%, 82%, 100% {
    opacity: 0;
    transform: translateX(0);
  }
  24% {
    opacity: .46;
    clip-path: inset(67% 0 8% 0);
    transform: translateX(6px);
  }
  37% {
    opacity: .68;
    clip-path: inset(73% 0 4% 0);
    transform: translateX(-5px);
  }
  52% {
    opacity: .3;
    clip-path: inset(48% 0 27% 0);
    transform: translateX(3px);
  }
  68% {
    opacity: .18;
    clip-path: inset(81% 0 2% 0);
    transform: translateX(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .films-slide.is-active .films-project-info h2[data-title],
  .films-slide.is-active .films-project-info h2[data-title]::before,
  .films-slide.is-active .films-project-info h2[data-title]::after {
    animation: none;
  }
}