:root {
  color-scheme: dark;
  --black: #050505;
  --white: #f7f4ef;
  --bone: #f1eee7;
  --portfolio-ink: #171717;
  --mist: rgba(247, 244, 239, 0.72);
  --accent: #f1eee7;
  --soft-gray: #d9d7d0;
  --portfolio-progress: 0;
  --portfolio-glow-rgb: 146, 105, 202;
  --neon-green: #f1eee7;
  --neon-green-rgb: 241, 238, 231;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

body.is-preloading {
  cursor: wait;
}

button,
a {
  font: inherit;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #101010;
  color: var(--bone);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 620ms ease, visibility 620ms ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-frames {
  position: relative;
  width: min(52vw, 640px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  transform: translateY(-2vh);
}

.preloader-frames img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96);
  filter: drop-shadow(0 0 34px rgba(255, 255, 255, 0.08));
  transition: opacity 92ms linear, transform 150ms ease;
}

.preloader-frames img.is-active {
  opacity: 1;
  transform: scale(1);
}

.preloader-bottom {
  position: absolute;
  left: clamp(22px, 4vw, 72px);
  right: clamp(22px, 4vw, 72px);
  bottom: clamp(22px, 4vh, 56px);
  display: grid;
  gap: 12px;
  font-family: "Courier New", monospace;
  text-transform: uppercase;
}

.preloader-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(241, 238, 231, 0.86);
  font-size: clamp(11px, 1vw, 15px);
  letter-spacing: 0.02em;
}

.preloader-meta strong {
  font-size: clamp(16px, 2vw, 34px);
  line-height: 0.8;
  color: #b7ff18;
  font-weight: 700;
}

.preloader-bar {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(241, 238, 231, 0.16);
}

.preloader-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--loader-progress, 0%);
  background: linear-gradient(90deg, rgba(183, 255, 24, 0.28), #b7ff18);
  box-shadow:
    0 0 14px rgba(183, 255, 24, 0.92),
    0 0 34px rgba(183, 255, 24, 0.58);
  transition: width 90ms linear;
}

.site-header {
  position: fixed;
  top: 30px;
  left: clamp(20px, 3vw, 52px);
  right: clamp(20px, 3vw, 52px);
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 66px;
  align-items: center;
  gap: 22px;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-header::after {
  content: none;
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 76px;
  height: 1px;
  background: rgba(255, 255, 255, 0.46);
  pointer-events: none;
}

.header-brand,
.header-whatsapp {
  pointer-events: auto;
}

.header-brand {
  display: block;
  width: 148px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, filter 180ms ease;
}

.header-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.menu-pill {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 52px);
  align-items: center;
  max-width: calc(100vw - 28px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
}

.menu-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(24px, 2vw, 36px);
  height: clamp(34px, 2.8vw, 50px);
  pointer-events: auto;
}

.menu-icon-img {
  display: block;
  transition:
    transform 360ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 220ms ease;
  will-change: transform, opacity;
}

.menu-icon-img--base {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate3d(0, 0, 0);
}

.menu-icon-img--reyes {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: clamp(15px, 1.3vw, 20px);
  opacity: 0;
  transform: translate3d(-50%, 30%, 0);
  filter: brightness(0) saturate(1) invert(95%) sepia(8%) saturate(294%) hue-rotate(347deg) brightness(104%) contrast(90%);
  pointer-events: none;
}

.menu-icon:hover .menu-icon-img--base {
  opacity: 0;
  transform: translate3d(0, -120%, 0);
}

.menu-icon:hover .menu-icon-img--reyes {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0);
}

.nav-link {
  position: relative;
  min-width: 0;
  padding: 9px 0 11px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: color 180ms ease;
}

.nav-link-label {
  display: grid;
  grid-template: "text" 1em / auto;
  overflow: hidden;
  align-items: center;
}

.nav-link-text {
  grid-area: text;
  display: block;
  transform: translate3d(0, 0, 0);
  transition:
    transform 360ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 220ms ease;
  will-change: transform;
}

.nav-link-text--base {
  font-weight: 500;
}

.nav-link-text--active {
  font-weight: 800;
  transform: translate3d(0, 115%, 0);
}

.nav-link:hover .nav-link-text--base,
.nav-link.active .nav-link-text--base {
  opacity: 0.18;
  transform: translate3d(0, -115%, 0);
}

.nav-link:hover .nav-link-text--active,
.nav-link.active .nav-link-text--active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.nav-link::after {
  content: none;
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--neon-green-rgb), 0.15), var(--neon-green), rgba(var(--neon-green-rgb), 0.15), transparent);
  box-shadow:
    0 0 8px rgba(var(--neon-green-rgb), 0.92),
    0 0 22px rgba(var(--neon-green-rgb), 0.7);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: transparent;
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-whatsapp {
  justify-self: end;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--neon-green);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.header-whatsapp img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: filter 180ms ease, opacity 180ms ease;
}

.header-whatsapp:hover {
  background: rgba(var(--neon-green-rgb), 0.16);
  border-color: var(--neon-green);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.header-whatsapp:hover img,
.whatsapp-card:hover .whatsapp-icon img {
  filter: none;
}

body:not([data-section="inicio"]) .header-brand {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body[data-section="inicio"] .header-brand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

body[data-section="contacto"] .nav-link {
  color: rgba(247, 244, 239, 0.9);
}

body[data-section="contacto"] .header-whatsapp {
  border-color: var(--neon-green);
  color: #f7f4ef;
}

body[data-section="contacto"] .nav-link:hover,
body[data-section="contacto"] .nav-link.active {
  background: transparent;
  color: #f7f4ef;
}

body[data-section="portafolio"] .site-header {
  mix-blend-mode: normal;
}

body[data-section="portafolio"] .menu-pill {
  mix-blend-mode: normal;
}

body[data-section="portafolio"] .nav-link {
  color: rgba(23, 23, 23, 0.82);
  text-shadow: none;
}

body[data-section="portafolio"] .nav-link:hover,
body[data-section="portafolio"] .nav-link.active {
  background: transparent;
  color: var(--portfolio-ink);
}

body[data-section="portafolio"] .header-brand img,
body[data-section="portafolio"] .menu-icon img,
body[data-section="portafolio"] .header-whatsapp img {
  filter: brightness(0) saturate(1) opacity(0.92);
}

body[data-section="portafolio"] .header-whatsapp {
  border-color: rgba(23, 23, 23, 0.82);
  color: var(--portfolio-ink);
}

body[data-section="portafolio"] .header-whatsapp:hover {
  background: rgba(23, 23, 23, 0.08);
  border-color: var(--portfolio-ink);
  color: var(--portfolio-ink);
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

body[data-section="portafolio"].portfolio-menu-dark .nav-link {
  color: rgba(23, 23, 23, 0.82);
}

body[data-section="portafolio"].portfolio-menu-dark .nav-link:hover,
body[data-section="portafolio"].portfolio-menu-dark .nav-link.active {
  color: var(--portfolio-ink);
}

body[data-section="portafolio"].portfolio-menu-dark .header-brand img,
body[data-section="portafolio"].portfolio-menu-dark .menu-icon img,
body[data-section="portafolio"].portfolio-menu-dark .header-whatsapp img {
  filter: brightness(0) saturate(1) opacity(0.92);
}

body[data-section="portafolio"].portfolio-menu-dark .header-whatsapp {
  border-color: rgba(23, 23, 23, 0.82);
  color: var(--portfolio-ink);
}

body[data-section="sobre-mi"] .nav-link {
  color: rgba(23, 23, 23, 0.82);
  text-shadow: none;
}

body[data-section="sobre-mi"] .nav-link:hover,
body[data-section="sobre-mi"] .nav-link.active {
  color: #171717;
}

body[data-section="sobre-mi"] .site-header {
  mix-blend-mode: normal;
}

body[data-section="sobre-mi"] .header-brand img,
body[data-section="sobre-mi"] .menu-icon img,
body[data-section="sobre-mi"] .header-whatsapp img {
  filter: brightness(0) saturate(1) opacity(0.92);
}

body[data-section="sobre-mi"] .header-whatsapp {
  border-color: rgba(23, 23, 23, 0.82);
  color: #171717;
}

body[data-section="sobre-mi"] .header-whatsapp:hover {
  background: rgba(23, 23, 23, 0.08);
  border-color: #171717;
  color: #171717;
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

body[data-section="contacto"] .header-whatsapp:hover {
  background: rgba(var(--neon-green-rgb), 0.16);
  border-color: var(--neon-green);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.site-main {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
}

body.reel-open:not(.reel-ready) .site-main,
body.reel-closing .site-main {
  z-index: 1001;
}

.page-section {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 520ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-section.is-active {
  z-index: 2;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-section {
  overflow: hidden;
  isolation: isolate;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  transform: none;
  filter: none;
}

.hero-shade {
  z-index: 1;
  display: none;
  background: transparent;
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 116px clamp(20px, 3vw, 52px) 34px;
  z-index: 2;
  border-top: 0;
  border-bottom: 0;
  pointer-events: none;
}

.hero-lines::before {
  content: "";
  position: absolute;
  top: 80px;
  bottom: -34px;
  width: 1px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-lines::before {
  left: 13.3%;
}

.hero-lines::after {
  content: none;
  display: none;
}

.hero-side-copy {
  position: absolute;
  left: clamp(26px, 3.8vw, 64px);
  top: 25vh;
  bottom: 19vh;
  z-index: 3;
  width: min(18vw, 245px);
  display: grid;
  align-content: start;
  gap: clamp(18px, 4.2vh, 46px);
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  text-align: left;
  text-transform: uppercase;
  font-family: "Courier New", monospace;
  font-size: clamp(10px, 0.78vw, 13px);
  font-weight: 700;
  line-height: 1.48;
  pointer-events: none;
}

.hero-side-copy p {
  margin: 0;
}

.side-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-mark {
  font-size: clamp(18px, 1.7vw, 28px);
}

.hero-center {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  align-content: center;
  gap: 0;
  padding: 116px 24px 118px;
  text-align: center;
}

.hero-logo-wrap {
  position: relative;
  width: max-content;
  max-width: min(58vw, 740px);
  max-height: 28vh;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  animation: none;
  justify-self: center;
}

.hero-logo-wrap::after {
  content: none;
}

.hero-logo {
  grid-area: 1 / 1;
  position: relative;
  width: min(58vw, 740px);
  max-height: 28vh;
  object-fit: contain;
  transform: translate3d(0, 0, 0);
  transition: transform 420ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.hero-logo--white {
  z-index: 1;
  filter: brightness(0) saturate(1) invert(95%) sepia(8%) saturate(294%) hue-rotate(347deg) brightness(104%) contrast(90%);
}

.hero-logo--green {
  z-index: 2;
  filter: brightness(0) saturate(100%) invert(88%) sepia(98%) saturate(1271%) hue-rotate(20deg) brightness(105%) contrast(106%);
  transform: translate3d(0, 115%, 0);
}

.hero-logo-wrap:hover .hero-logo--white {
  transform: translate3d(0, -115%, 0);
}

.hero-logo-wrap:hover .hero-logo--green {
  transform: translate3d(0, 0, 0);
}

.hero-tagline {
  display: grid;
  justify-items: center;
  width: min(92vw, 980px);
  margin: clamp(2px, 0.4vw, 6px) 0 0;
  color: var(--bone);
  text-transform: uppercase;
  text-shadow: none;
  text-align: center;
  letter-spacing: 0;
  justify-self: center;
  clip-path: none;
  animation: none;
}

.hero-title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.3vw, 22px);
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5.75vw, 98px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--bone);
  text-shadow: none;
}

.hero-title-line span {
  color: var(--bone);
  text-shadow: none;
}

.hero-title-line--top {
  transform: translateX(clamp(4px, 1.2vw, 18px));
}

.hero-title-line--bottom {
  gap: clamp(12px, 1.8vw, 28px);
  margin-top: clamp(2px, 0.35vw, 7px);
  padding-left: 0;
  transform: translateX(clamp(-28px, -2.6vw, -10px));
}

.hero-slash {
  display: inline-block;
  margin: 0 clamp(-10px, -0.5vw, -4px);
  color: rgba(241, 238, 231, 0.86);
  transform: skewX(-7deg);
}

.hero-and {
  display: inline-block;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.44em;
  line-height: 1;
  text-shadow: none;
  transform: translateX(clamp(12px, 1.7vw, 28px));
}

.hero-note {
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: min(620px, 78vw);
  margin: clamp(18px, 2vw, 30px) 0 0;
  padding-left: clamp(12px, 1.2vw, 18px);
  border-left: 3px solid rgba(var(--neon-green-rgb), 0.86);
  color: var(--bone);
  text-align: left;
  font-family: "Courier New", monospace;
  font-size: clamp(10px, 0.92vw, 15px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.02em;
  text-shadow: none;
  justify-self: center;
  transform: none;
}

.reel-trigger,
.back-button {
  position: relative;
  border: 1px solid rgba(var(--neon-green-rgb), 0.78);
  border-radius: 7px;
  background: rgba(var(--neon-green-rgb), 0.06);
  box-shadow: none;
  color: #f7f4ef;
  cursor: pointer;
  overflow: hidden;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.reel-trigger::before,
.back-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--neon-green-rgb), 0.08), rgba(var(--neon-green-rgb), 0.34), rgba(var(--neon-green-rgb), 0.08));
  opacity: 0.34;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.reel-trigger span {
  position: relative;
  z-index: 1;
}

.reel-trigger {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: clamp(26px, 3.2vw, 46px);
  padding: 18px 54px;
  font-family: "Courier New", monospace;
  font-size: clamp(15px, 1.3vw, 20px);
  border-color: var(--neon-green);
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.reel-trigger::before,
.back-button::before {
  opacity: 0;
}

.reel-trigger:hover,
.back-button:hover {
  transform: translateY(-2px);
  border-color: var(--neon-green);
  background: rgba(var(--neon-green-rgb), 0.16);
  box-shadow: none;
  color: #fff;
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.reel-trigger:hover::before,
.back-button:hover::before {
  opacity: 0;
}

.home-cursor-label,
.section-cursor-label {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 24;
  width: clamp(50px, 3.7vw, 72px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--cursor-x, -120px), var(--cursor-y, -120px), 0);
  transition: opacity 140ms ease;
  mix-blend-mode: difference;
  will-change: transform, opacity;
}

.home-cursor-label.is-visible,
.section-cursor-label.is-visible {
  opacity: 1;
}

.home-cursor-label img,
.section-cursor-label img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.22))
    drop-shadow(0 0 12px rgba(var(--neon-green-rgb), 0.12));
}

.section-cursor-label {
  z-index: 45;
}

.home-cursor-label {
  width: clamp(108px, 8.6vw, 154px);
}

.scroll-cue {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  transform: translateX(-50%);
  text-transform: uppercase;
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.hero-bottom-copy {
  position: absolute;
  left: clamp(26px, 3.8vw, 64px);
  right: clamp(26px, 3.8vw, 64px);
  bottom: 34px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.94);
  text-transform: uppercase;
  font-family: "Courier New", monospace;
  font-size: clamp(10px, 0.78vw, 13px);
  font-weight: 700;
  line-height: 1.55;
  pointer-events: none;
}

.hero-bottom-copy span {
  min-height: 110px;
  display: flex;
  align-items: center;
  padding: 0 24px 0 0;
}

.hero-bottom-copy span + span {
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.38);
}

.reel-stage {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.reel-stage.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.reel-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.reel-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 8px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.reel-stage.glitching::after {
  animation: none;
}

.reel-video {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  object-fit: contain;
  background: #000;
}

.reel-stage.glitching .reel-video {
  animation: none;
}

.back-button {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 4;
  padding: 13px 28px;
  border-color: var(--neon-green);
  background: transparent;
  box-shadow: none;
  color: #fff;
  transform: translateX(-50%);
}

.back-button:hover {
  transform: translateX(-50%) translateY(-2px);
}

body.reel-open .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
}

body.reel-open .site-main {
  pointer-events: none;
}

body.reel-open #inicio.is-active {
  opacity: 1;
  transform: translateX(100vw);
  transition: transform 880ms cubic-bezier(0.77, 0, 0.18, 1), opacity 420ms ease;
}

body.reel-closing #inicio.is-active {
  opacity: 1;
  transform: translateX(0);
  transition: transform 880ms cubic-bezier(0.77, 0, 0.18, 1), opacity 420ms ease;
}

body.viewer-open .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
}

.portfolio-section {
  overflow: hidden;
  background: var(--bone);
  color: var(--portfolio-ink);
}

.portfolio-scroll {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

.portfolio-scroll.is-card-hovered {
  cursor: pointer;
}

.portfolio-track {
  height: 100%;
  min-height: 100%;
}

.portfolio-sticky {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  perspective: 1600px;
  -webkit-perspective: 1600px;
  background:
    radial-gradient(circle at 64% 48%, rgba(var(--portfolio-glow-rgb), 0.42), rgba(var(--portfolio-glow-rgb), 0.2) 25%, rgba(var(--portfolio-glow-rgb), 0.08) 46%, transparent 64%),
    linear-gradient(180deg, #f5f1ea 0%, var(--bone) 54%, #e8e3da 100%);
}

.portfolio-title {
  position: absolute;
  top: 50%;
  left: clamp(24px, 4.6vw, 78px);
  right: clamp(16px, 3vw, 42px);
  z-index: 4;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: var(--portfolio-ink);
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
  transform: translateY(-50%);
  text-shadow: none;
}

.portfolio-title span {
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.86;
  font-weight: 400;
}

.portfolio-side {
  position: absolute;
  z-index: 5;
  bottom: clamp(18px, 4vw, 44px);
  display: grid;
  gap: clamp(18px, 6vw, 72px);
  color: #080808;
  pointer-events: none;
}

.portfolio-side.left {
  left: clamp(16px, 3vw, 42px);
}

.portfolio-side.right {
  right: clamp(16px, 3vw, 42px);
  text-align: right;
}

.portfolio-side span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 86px);
  line-height: 0.82;
}

.motion-gallery {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.motion-gallery::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(90vw, 1320px);
  aspect-ratio: 16 / 9;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 48%, rgba(var(--portfolio-glow-rgb), 0.5), rgba(var(--portfolio-glow-rgb), 0.28) 34%, rgba(var(--portfolio-glow-rgb), 0.1) 58%, transparent 78%);
  filter: blur(46px);
  opacity: 0.86;
  transform: translate3d(6vw, -1vh, -240px);
  transition: background 260ms ease;
  pointer-events: none;
}

.gallery-card {
  --y: 0px;
  --flip: 0deg;
  --scale: 1;
  --shade: 1;
  --opacity: 1;
  --hover-opacity: 0;
  position: absolute;
  z-index: var(--z, 1);
  width: min(62vw, 920px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: clamp(10px, 1.1vw, 18px);
  box-shadow: none;
  clip-path: none;
  opacity: var(--opacity);
  pointer-events: none;
  transform-origin: center center;
  transform:
    translate3d(var(--x, 0px), var(--y), var(--z-depth, 0px))
    rotateX(var(--flip))
    scale(var(--scale));
  transition: opacity 180ms ease, filter 200ms ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout;
  isolation: isolate;
}

.gallery-card:nth-child(even) {
  clip-path: none;
}

.gallery-card img,
.gallery-card video {
  display: block;
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  object-fit: cover;
  border-radius: inherit;
  filter: saturate(0.9) contrast(1.08) brightness(var(--shade));
  transform: translateZ(0) scale(1.065);
  -webkit-transform: translateZ(0) scale(1.065);
  transition: filter 180ms ease;
}

.gallery-card::before,
.gallery-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, var(--hover-opacity));
  text-transform: uppercase;
  text-align: center;
  font-family: "Courier New", monospace;
  letter-spacing: 0;
  text-shadow: none;
  pointer-events: none;
  transition: color 180ms ease;
}

.gallery-card::before {
  content: attr(data-project);
  padding-bottom: clamp(10px, 1.1vw, 18px);
  transform: translateY(clamp(-16px, -1.25vw, -10px));
  background: transparent;
  color: rgba(229, 220, 216, var(--hover-opacity));
  text-transform: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 78px);
  font-weight: 400;
  line-height: 0.92;
}

.gallery-card::after {
  content: "Ver";
  padding-top: clamp(30px, 3.2vw, 46px);
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 300;
  line-height: 1;
}

.gallery-card.is-visible.is-hovered {
  --hover-opacity: 1;
}

.gallery-card.is-visible.is-hovered img,
.gallery-card.is-visible.is-hovered video,
.gallery-card.is-visible:hover img,
.gallery-card.is-visible:hover video {
  filter: saturate(0.9) contrast(1.08) brightness(0.68);
}

.gallery-card.is-visible {
  pointer-events: auto;
}

.gallery-card.is-visible:hover {
  --hover-opacity: 1;
}

.portfolio-intro {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: block;
  overflow: hidden;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms linear, visibility 120ms linear;
}

.portfolio-intro.is-active {
  opacity: 1;
  visibility: visible;
}

.portfolio-intro.is-active:not(.is-exiting) {
  background: #101010;
}

.portfolio-intro-frame {
  position: fixed;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: transparent;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform 620ms cubic-bezier(0.78, 0, 0.18, 1),
    opacity 360ms ease;
  will-change: transform, opacity;
}

.portfolio-intro-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.08);
  transition:
    opacity 74ms linear,
    transform 130ms cubic-bezier(0.2, 0.84, 0.32, 1);
}

.portfolio-intro.is-switching .portfolio-intro-image {
  opacity: 1;
  transform: scale(1.09);
}

.portfolio-intro.is-exiting .portfolio-intro-frame {
  opacity: 0.98;
  transform: translate3d(-104%, 0, 0) scale(1.02);
}

.project-viewer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: #050505;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
  isolation: isolate;
}

.project-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.viewer-frame {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  transform: scale(0.94);
  background: #050505;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-viewer.is-open .viewer-frame {
  transform: scale(1);
}

.viewer-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.44);
  opacity: 0;
  transition: opacity 520ms ease;
  will-change: opacity;
}

.viewer-image.is-visible {
  opacity: 1;
}

.viewer-close,
.viewer-arrow {
  position: fixed;
  z-index: 2;
  border: 1px solid currentColor;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  mix-blend-mode: difference;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  transition: transform 180ms ease, opacity 180ms ease;
}

.viewer-close:hover,
.viewer-arrow:hover {
  opacity: 0.72;
}

.viewer-close {
  top: 22px;
  right: 22px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 11px;
}

.viewer-arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 28px;
  line-height: 1;
}

.viewer-prev {
  left: 22px;
}

.viewer-next {
  right: 22px;
}

@keyframes logoGlitch {
  0%, 34%, 58%, 100% {
    transform: translate3d(0, 0, 0);
    filter: none;
  }
  36% {
    transform: translate3d(13px, -3px, 0) skewX(7deg);
    filter: contrast(1.85) saturate(1.45);
  }
  39% {
    transform: translate3d(-16px, 3px, 0) skewX(-9deg);
    filter: contrast(2.1);
  }
  44% {
    transform: translate3d(8px, 0, 0);
  }
  72% {
    transform: translate3d(-10px, -1px, 0) skewX(5deg);
    filter: brightness(1.35);
  }
  76% {
    transform: translate3d(15px, 2px, 0);
  }
  80% {
    transform: translate3d(-6px, 0, 0);
  }
}

@keyframes logoGhost {
  0%, 26%, 50%, 66%, 100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }
  29% {
    opacity: 0.95;
    clip-path: inset(8% 0 68% 0);
    transform: translate3d(28px, -4px, 0);
  }
  33% {
    opacity: 0.72;
    clip-path: inset(38% 0 42% 0);
    transform: translate3d(-32px, 5px, 0);
  }
  38% {
    opacity: 0.86;
    clip-path: inset(72% 0 7% 0);
    transform: translate3d(20px, 2px, 0);
  }
  55% {
    opacity: 0.68;
    clip-path: polygon(0 0, 100% 0, 96% 18%, 8% 22%, 12% 36%, 100% 34%, 100% 48%, 0 46%);
    transform: translate3d(-24px, 0, 0);
  }
  74% {
    opacity: 1;
    clip-path: inset(18% 0 55% 0);
    transform: translate3d(34px, -2px, 0);
  }
  79% {
    opacity: 0.76;
    clip-path: inset(56% 0 24% 0);
    transform: translate3d(-30px, 3px, 0);
  }
}

@keyframes taglineWrite {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes reelGlitch {
  0% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }
  8% {
    opacity: 1;
    clip-path: inset(4% 0 80% 0);
    transform: translate3d(-34px, 0, 0);
  }
  18% {
    opacity: 0.96;
    clip-path: inset(18% 0 60% 0);
    transform: translate3d(42px, 0, 0);
  }
  29% {
    clip-path: inset(46% 0 36% 0);
    transform: translate3d(-52px, 0, 0);
  }
  43% {
    clip-path: inset(66% 0 12% 0);
    transform: translate3d(38px, 0, 0);
  }
  56% {
    opacity: 0.8;
    clip-path: polygon(0 0, 100% 0, 100% 18%, 0 25%, 0 44%, 100% 36%, 100% 54%, 0 62%);
    transform: translate3d(-28px, 0, 0);
  }
  72% {
    opacity: 0.55;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
  }
}

@keyframes reelVideoGlitch {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: none;
  }
  12% {
    transform: translate3d(16px, 0, 0) scale(1.015);
    filter: contrast(1.8) saturate(1.5) hue-rotate(10deg);
  }
  20% {
    transform: translate3d(-22px, 3px, 0) scale(1.018);
    filter: contrast(2.05) saturate(1.8) hue-rotate(-16deg);
  }
  34% {
    transform: translate3d(30px, -2px, 0) scale(1.012);
  }
  48% {
    transform: translate3d(-14px, 0, 0) scale(1.02);
    filter: brightness(1.28) contrast(1.75);
  }
  70% {
    transform: translate3d(8px, 0, 0) scale(1.006);
    filter: none;
  }
}

.about-section {
  overflow: hidden;
  background: #f1eee7;
  color: #171717;
  isolation: isolate;
}

.about-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  pointer-events: none;
}

.about-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at calc(18% + var(--about-progress, 0) * 48%) 38%, rgba(241, 238, 231, 0.1), transparent 30%),
    linear-gradient(90deg, rgba(241, 238, 231, 0.08), transparent 48%, rgba(241, 238, 231, 0.06));
  opacity: 0.42;
}

.about-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(23, 23, 23, 0.035), transparent);
  transform: translateX(calc((var(--about-progress, 0) - 0.5) * 22vw));
}

.about-stage {
  position: relative;
  z-index: 2;
  width: min(1320px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 clamp(22px, 7vw, 118px);
  mix-blend-mode: normal;
}

.about-text-reel {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-line {
  position: absolute;
  left: clamp(22px, 7vw, 118px);
  top: 48vh;
  width: min(1180px, 84vw);
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(26px, 2.35vw, 42px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  color: #171717;
  text-transform: none;
  opacity: var(--line-opacity, 0);
  filter: blur(var(--line-blur, 0));
  transform: translate3d(
    calc((1 - var(--line-opacity, 0)) * 18px),
    var(--line-y, 0),
    0
  ) scale(var(--line-scale, 1));
  transform-origin: left center;
  will-change: transform, opacity, filter;
}

.about-line--title {
  width: min(1260px, 88vw);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 9.4vw, 158px);
  font-weight: 400;
  line-height: 0.82;
  color: #171717;
  text-transform: uppercase;
  text-shadow: none;
}

.about-line--line {
  max-width: min(1120px, 82vw);
}

.about-line--section-1 {
  left: auto;
  right: clamp(22px, 7vw, 118px);
  text-align: right;
  transform-origin: right center;
  transform: translate3d(
    calc((1 - var(--line-opacity, 0)) * -18px),
    var(--line-y, 0),
    0
  ) scale(var(--line-scale, 1));
}

.about-line--section-1.about-line--title {
  margin-left: auto;
}

.about-line--section-2 {
  left: clamp(22px, 10vw, 168px);
  right: auto;
  text-align: left;
  transform-origin: left center;
  transform: translate3d(
    calc((1 - var(--line-opacity, 0)) * 18px),
    var(--line-y, 0),
    0
  ) scale(var(--line-scale, 1));
}

.about-line--section-2.about-line--line {
  width: min(1040px, 78vw);
}

.about-line--section-3 {
  left: clamp(22px, 10vw, 168px);
  width: min(1080px, 80vw);
}

.about-panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  width: 100%;
  padding: clamp(120px, 15vh, 180px) clamp(26px, 7vw, 120px) clamp(70px, 9vh, 116px);
  opacity: var(--panel-opacity, 0);
  filter: blur(var(--panel-blur, 0));
  transform: translate3d(0, var(--panel-y, 0), 0) scale(var(--panel-scale, 1));
  transform-origin: center center;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.about-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(86px, 9.6vw, 180px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
  color: #171717;
  text-transform: uppercase;
  text-shadow: none;
}

.about-panel h2 span {
  display: block;
}

.about-copy-lines,
.about-intro,
.about-meta p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.15vw, 38px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
  color: #171717;
  text-shadow: none;
}

.about-copy-lines span,
.about-meta p span {
  display: block;
}

.about-panel::after {
  content: "";
  width: clamp(48px, 4vw, 72px);
  height: 2px;
  margin: clamp(22px, 3vh, 42px) 0 clamp(18px, 2.4vh, 34px);
  background: linear-gradient(90deg, rgba(23, 23, 23, 0.86), transparent);
  box-shadow: none;
  order: 1;
}

.about-panel > .about-copy-lines,
.about-panel > .about-intro {
  order: 2;
}

.about-panel--mirada,
.about-panel--enfoque,
.about-panel--creencia {
  justify-items: start;
}

.about-panel--mirada h2,
.about-panel--enfoque h2,
.about-panel--creencia h2 {
  width: min(820px, 60vw);
}

.about-panel--mirada .about-copy-lines,
.about-panel--enfoque .about-copy-lines,
.about-panel--creencia .about-copy-lines {
  width: min(720px, 48vw);
}

.about-panel--trabajo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.52fr);
  column-gap: clamp(56px, 7vw, 132px);
  align-items: start;
}

.about-work-copy {
  grid-column: 1;
  align-self: start;
  width: min(980px, 58vw);
  margin-top: clamp(42px, 8vh, 104px);
  transform: none;
}

.about-panel--trabajo h2 {
  width: 100%;
  font-size: clamp(86px, 9.6vw, 180px);
  line-height: 0.78;
}

.about-panel--trabajo h2::after {
  content: "";
  display: block;
  width: clamp(48px, 4vw, 72px);
  height: 2px;
  margin: clamp(12px, 1.7vh, 24px) 0 clamp(12px, 1.7vh, 22px);
  background: linear-gradient(90deg, rgba(23, 23, 23, 0.86), transparent);
  box-shadow: none;
}

.about-panel--trabajo::after {
  content: none;
}

.about-work-copy::after {
  content: none;
}

.about-panel--trabajo .about-intro {
  width: min(720px, 46vw);
  font-size: clamp(25px, 2.28vw, 40px);
}

.about-panel--trabajo .about-intro em {
  font-style: italic;
}

.about-meta {
  grid-column: 2;
  justify-self: end;
  align-self: start;
  display: grid;
  width: min(560px, 36vw);
  margin-top: clamp(390px, 46vh, 500px);
  transform: none;
  gap: clamp(28px, 5vh, 62px);
  align-content: center;
}

.about-meta-group {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 24px;
  align-items: center;
}

.about-pill {
  display: inline-grid;
  place-items: center;
  min-width: 98px;
  min-height: 30px;
  padding: 4px 18px;
  border: 1px solid rgba(23, 23, 23, 0.74);
  border-radius: 999px;
  color: #171717;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.about-meta-group i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(23, 23, 23, 0.52), transparent);
}

.about-meta p {
  grid-column: 1 / -1;
  font-size: clamp(22px, 1.9vw, 34px);
  line-height: 1.16;
}

.about-panel--enfoque {
  padding-left: clamp(34px, 9vw, 150px);
}

.about-panel--enfoque .about-copy-lines,
.about-panel--creencia .about-copy-lines {
  font-size: clamp(24px, 2.05vw, 36px);
  line-height: 1.18;
}

@media (max-width: 1520px) and (max-height: 980px) and (min-width: 761px) {
  .gallery-card {
    width: min(54vw, 780px);
  }

  .motion-gallery::before {
    width: min(78vw, 1040px);
    filter: blur(36px);
  }

  .portfolio-title span {
    font-size: clamp(46px, 7vw, 106px);
  }

  .about-line {
    top: 49vh;
    font-size: clamp(25px, 2vw, 36px);
    line-height: 1;
  }

  .about-line--title {
    font-size: clamp(58px, 7.4vw, 118px);
    line-height: 0.86;
  }

  .about-line--section-1 {
    right: clamp(28px, 6vw, 92px);
  }

  .about-line--section-2,
  .about-line--section-3 {
    left: clamp(28px, 7vw, 108px);
  }

  .about-panel {
    padding: 112px clamp(30px, 6vw, 92px) 70px;
  }

  .about-panel h2 {
    font-size: clamp(74px, 8.4vw, 128px);
  }

  .about-copy-lines,
  .about-intro,
  .about-meta p {
    font-size: clamp(21px, 1.85vw, 29px);
  }

  .about-panel--trabajo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.52fr);
    column-gap: clamp(42px, 5.8vw, 92px);
  }

  .about-work-copy {
    width: min(820px, 58vw);
    margin-top: clamp(20px, 5vh, 56px);
    transform: none;
  }

  .about-panel--trabajo h2 {
    font-size: clamp(74px, 8.4vw, 128px);
  }

  .about-panel--trabajo .about-intro {
    width: min(560px, 40vw);
    font-size: clamp(21px, 1.85vw, 29px);
  }

  .about-meta {
    width: min(440px, 36vw);
    margin-top: clamp(340px, 45vh, 430px);
    transform: none;
  }

  .about-meta p {
    font-size: clamp(18px, 1.55vw, 25px);
  }
}

@media (max-width: 1180px) and (min-width: 761px) {
  .about-panel--trabajo {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    row-gap: 0;
  }

  .about-work-copy {
    grid-column: 1;
    width: min(760px, 82vw);
    margin-top: 0;
    transform: none;
  }

  .about-panel--trabajo h2 {
    width: 100%;
    font-size: clamp(74px, 9.2vw, 118px);
  }

  .about-panel--trabajo h2::after {
    margin: 10px 0 12px;
  }

  .about-panel--trabajo .about-intro {
    width: min(560px, 58vw);
    font-size: clamp(19px, 2vw, 25px);
  }

  .about-meta {
    grid-column: 1;
    width: min(620px, 64vw);
    justify-self: start;
    margin-top: clamp(28px, 5vh, 52px);
    transform: none;
    gap: 24px;
  }

  .about-meta p {
    font-size: clamp(18px, 2.05vw, 25px);
  }
}

.contact-section {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding: clamp(96px, 10vh, 130px) clamp(32px, 6vw, 100px) clamp(34px, 6vh, 70px);
  background: #050505;
  color: var(--white);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}

.contact-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.96);
  pointer-events: none;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 4.6vw, 68px);
  align-items: stretch;
  width: min(1580px, 100%);
  margin: 0 auto;
  min-height: min-content;
}

.contact-copy {
  position: relative;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(12px, 2vw, 28px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: "Courier New", monospace;
  color: var(--white);
  overflow: visible;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: -1px;
  right: clamp(42px, 8vw, 160px);
  width: clamp(80px, 14vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
  box-shadow:
    0 0 8px rgba(var(--neon-green-rgb), 0.24),
    0 0 18px rgba(var(--neon-green-rgb), 0.12);
  pointer-events: none;
}

.contact-form::after {
  content: "";
  position: absolute;
  right: clamp(34px, 7vw, 140px);
  bottom: -1px;
  width: clamp(80px, 13vw, 170px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--neon-green-rgb), 0.86), transparent);
  box-shadow:
    0 0 8px rgba(var(--neon-green-rgb), 0.2),
    0 0 18px rgba(var(--neon-green-rgb), 0.1);
  pointer-events: none;
}

.contact-mark,
.contact-kicker,
.contact-intro {
  margin: 0;
  text-transform: uppercase;
}

.contact-mark {
  font-size: 22px;
  color: var(--neon-green);
  text-shadow: none;
}

.contact-kicker {
  width: max-content;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(var(--neon-green-rgb), 0.7);
  box-shadow: none;
  font-size: 18px;
}

.contact-copy h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 4.8vw, 82px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: #e5dcd8;
  text-transform: none;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.46);
}

.contact-intro {
  max-width: 620px;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.28;
}

.whatsapp-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px auto;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
  border: 1px solid var(--neon-green);
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: #f7f4ef;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Courier New", monospace;
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.45;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease, backdrop-filter 180ms ease;
}

.whatsapp-card .whatsapp-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 54px;
  border: 0;
  border-right: 1px solid var(--neon-green);
  border-radius: 0;
  font-size: 0;
}

.whatsapp-card .whatsapp-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.whatsapp-card strong {
  padding: 0 18px;
  white-space: nowrap;
  font-size: clamp(11px, 0.9vw, 15px);
  font-weight: 700;
}

.whatsapp-card:hover {
  transform: translateY(-1px);
  border-color: var(--neon-green);
  background: rgba(var(--neon-green-rgb), 0.16);
  box-shadow: none;
  color: #fff;
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: clamp(26px, 3.2vw, 54px);
  border: 1px solid rgba(247, 244, 239, 0.11);
  border-radius: clamp(18px, 2vw, 32px);
  background: rgba(247, 244, 239, 0.032);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 0 1px rgba(var(--neon-green-rgb), 0.015),
    0 18px 70px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  color: var(--white);
  overflow: hidden;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: clamp(12px, 0.88vw, 14px);
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease;
}

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

.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.field-label em {
  font-style: normal;
  font-size: 0.78em;
  font-weight: 400;
  color: rgba(var(--neon-green-rgb), 0.86);
  text-transform: lowercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(247, 244, 239, 0.26);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.14);
  color: #f7f4ef;
  font: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-form input {
  min-height: 42px;
  padding: 8px 12px;
}

.contact-form textarea {
  min-height: 82px;
  resize: vertical;
  padding: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(var(--neon-green-rgb), 0.78);
  background: rgba(247, 244, 239, 0.08);
  box-shadow:
    0 0 14px rgba(var(--neon-green-rgb), 0.18),
    inset 0 0 0 1px rgba(var(--neon-green-rgb), 0.12);
}

.contact-form label.is-field-missing .field-label {
  color: #fff;
}

.contact-form label.is-field-missing .field-label em {
  color: var(--neon-green);
}

.contact-form label.is-field-missing input,
.contact-form label.is-field-missing textarea {
  border-color: rgba(var(--neon-green-rgb), 0.95);
  background: rgba(var(--neon-green-rgb), 0.08);
  box-shadow: inset 0 0 0 1px rgba(var(--neon-green-rgb), 0.14);
}

.contact-form label:hover {
  color: #fff;
  transform: translateY(-1px);
}

.contact-form label:hover input,
.contact-form label:hover textarea {
  border-color: rgba(var(--neon-green-rgb), 0.64);
  background: rgba(247, 244, 239, 0.06);
}

.contact-form button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid rgba(var(--neon-green-rgb), 0.78);
  border-radius: 7px;
  background: transparent;
  color: #f7f4ef;
  cursor: pointer;
  text-transform: uppercase;
  font-family: "Courier New", monospace;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 700;
  box-shadow: none;
  overflow: hidden;
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-form button::before {
  content: none;
}

.contact-form button span {
  position: relative;
  z-index: 1;
}

.contact-form button:hover {
  transform: translateY(-1px);
  border-color: var(--neon-green);
  background: rgba(var(--neon-green-rgb), 0.16);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.contact-form.is-sending button,
.contact-form.is-sent button {
  border-color: var(--neon-green);
  background: rgba(var(--neon-green-rgb), 0.16);
  color: #fff;
}

.contact-form.is-error button {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
}

.contact-form button:hover::before {
  opacity: 0;
}

@media (max-width: 760px) {
  .site-header {
    top: 12px;
    left: 10px;
    right: 10px;
    grid-template-columns: 1fr 46px;
    gap: 10px;
  }

  .preloader-frames {
    width: min(76vw, 360px);
  }

  .preloader-bottom {
    left: 18px;
    right: 18px;
    bottom: 28px;
  }

  .site-header::after,
  .header-brand {
    display: none;
  }

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

  .menu-pill::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    min-width: max-content;
    padding: 10px 0 12px;
    font-size: 11px;
  }

  .menu-icon {
    width: 20px;
    height: 28px;
    flex: 0 0 auto;
  }

  .header-whatsapp {
    width: 46px;
    height: 46px;
  }

  .header-whatsapp img {
    width: 24px;
    height: 24px;
  }

  .hero-lines {
    inset: 82px 16px 22px;
  }

  .hero-lines::before,
  .hero-lines::after {
    display: none;
  }

  .hero-side-copy {
    left: 22px;
    right: 22px;
    top: 142px;
    bottom: auto;
    width: auto;
    display: block;
    font-size: 10px;
  }

  .side-rule {
    margin: 14px 0;
  }

  .hero-bottom-copy {
    left: 16px;
    right: 16px;
    bottom: 22px;
    grid-template-columns: 1fr 1fr;
    font-size: 10px;
  }

  .hero-bottom-copy span {
    min-height: 58px;
    padding: 10px 8px 0 0;
  }

  .hero-logo {
    width: 100%;
    max-height: 22vh;
  }

  .hero-logo-wrap {
    width: max-content;
    max-width: min(76vw, 500px);
  }

  .hero-tagline {
    width: min(94vw, 620px);
    margin-top: 4px;
  }

  .hero-title-line {
    gap: 8px;
    font-size: clamp(29px, 8.8vw, 48px);
    line-height: 0.9;
    letter-spacing: 0.01em;
  }

  .hero-title-line--top,
  .hero-title-line--bottom {
    flex-wrap: wrap;
  }

  .hero-title-line--bottom {
    gap: 12px;
    margin-top: 4px;
    padding-left: 0;
    transform: none;
  }

  .hero-title-line--top {
    transform: none;
  }

  .hero-spark {
    display: none;
  }

  .hero-and {
    order: 0;
    width: auto;
    min-width: 0;
    font-size: 0.44em;
    transform: none;
  }

  .hero-note {
    width: min(84vw, 430px);
    margin-top: 18px;
    font-size: 9px;
    line-height: 1.25;
    transform: none;
  }

  .reel-trigger {
    margin-top: 24px;
    padding: 15px 36px;
    font-size: 13px;
  }

  .portfolio-title {
    top: 108px;
    left: 16px;
    right: 16px;
    display: block;
    transform: none;
  }

  .portfolio-title span {
    font-size: clamp(38px, 13vw, 62px);
  }

  .portfolio-title strong {
    display: block;
    max-width: 180px;
    margin-top: 8px;
    text-align: left;
  }

  .portfolio-side {
    display: none;
  }

  .gallery-card {
    width: 88vw;
    aspect-ratio: 16 / 9;
  }

  .gallery-card::before {
    transform: translateY(-13px);
    font-size: clamp(36px, 11vw, 54px);
  }

  .gallery-card::after {
    padding-top: 34px;
  }

  .about-stage {
    padding: 0 20px;
  }

  .about-line,
  .about-line--section-1,
  .about-line--section-2,
  .about-line--section-3 {
    left: 20px;
    right: 20px;
    top: 47vh;
    width: auto;
    max-width: calc(100vw - 40px);
    text-align: left;
    transform-origin: left center;
    transform: translate3d(
      calc((1 - var(--line-opacity, 0)) * 12px),
      var(--line-y, 0),
      0
    ) scale(var(--line-scale, 1));
  }

  .about-line--title {
    font-size: clamp(48px, 14vw, 76px);
    line-height: 0.88;
  }

  .about-line--line {
    font-size: clamp(21px, 5.5vw, 30px);
    line-height: 1;
  }

  .about-panel {
    padding: 98px 20px 56px;
    align-content: center;
  }

  .about-panel h2,
  .about-panel--trabajo h2 {
    width: auto;
    max-width: calc(100vw - 40px);
    font-size: clamp(50px, 15vw, 76px);
    line-height: 0.84;
  }

  .about-panel::after {
    width: 52px;
    margin: 18px 0 16px;
  }

  .about-copy-lines,
  .about-intro,
  .about-meta p,
  .about-panel--trabajo .about-intro,
  .about-panel--enfoque .about-copy-lines,
  .about-panel--creencia .about-copy-lines {
    width: auto;
    max-width: calc(100vw - 40px);
    font-size: clamp(22px, 6vw, 31px);
    line-height: 1.12;
  }

  .about-panel--trabajo {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    row-gap: 0;
  }

  .about-work-copy {
    width: auto;
    max-width: calc(100vw - 40px);
    margin-top: 0;
    transform: none;
  }

  .about-panel--trabajo h2,
  .about-panel--trabajo .about-intro,
  .about-meta {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }

  .about-panel--trabajo h2,
  .about-panel--trabajo .about-intro {
    transform: none;
  }

  .about-panel--trabajo h2::after {
    transform: none;
    margin: 14px 0 14px;
  }

  .about-meta {
    margin-top: 22px;
    gap: 22px;
    transform: none;
  }

  .about-meta-group {
    row-gap: 14px;
  }

  .about-pill {
    min-height: 26px;
    min-width: 84px;
    padding: 3px 12px;
    font-size: 10px;
  }

  .about-meta p {
    font-size: clamp(17px, 4.8vw, 24px);
    line-height: 1.15;
  }

  .home-cursor-label,
  .section-cursor-label {
    display: none;
  }

  .motion-gallery::before {
    width: 96vw;
    filter: blur(20px);
    transform: translate3d(0, 0, -220px);
  }

  .contact-section,
  .contact-section.is-active {
    align-items: start;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    padding: 82px 16px 72px;
    transform: none;
  }

  .contact-video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100lvh;
    min-height: 100vh;
    object-fit: cover;
    object-position: center center;
    transform: translateZ(0);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    min-height: auto;
    padding-bottom: 18px;
  }

  .contact-copy {
    padding: 22px;
    gap: 16px;
  }

  .contact-copy h2 {
    margin-top: 4px;
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .contact-kicker {
    padding-bottom: 16px;
    font-size: 15px;
  }

  .contact-intro {
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.32;
  }

  .whatsapp-card {
    grid-template-columns: 52px auto;
    width: max-content;
    max-width: 100%;
    margin-top: 12px;
  }

  .whatsapp-card .whatsapp-icon {
    width: 52px;
    height: 52px;
  }

  .whatsapp-card strong {
    grid-column: auto;
    padding: 0 14px;
    border-top: 0;
  }

  .contact-form {
    gap: 12px;
    padding: 16px;
  }

  .contact-form label {
    gap: 7px;
    font-size: 12px;
  }

  .contact-form input {
    min-height: 44px;
  }

  .contact-form textarea {
    min-height: 88px;
  }

  .contact-form button {
    min-height: 54px;
    font-size: 13px;
  }
}
