:root {
  --blue: #1f3cff;
  --ink: #111;
  --paper: #fff;
  --muted: #9da8ec;
  --margin: clamp(20px, 4vw, 48px);
  color: var(--blue);
  background: var(--paper);
  font-family: "Inter Tight", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: clip;
  scroll-padding-top: 20px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--blue);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 42;
  top: max(env(safe-area-inset-top), 16px);
  right: var(--margin);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 7px 7px 7px 17px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 32px rgb(31 60 255 / 13%);
  color: var(--blue);
  transition: transform 450ms cubic-bezier(.2, .8, .2, 1), opacity 350ms ease;
}

.brand-control {
  position: fixed;
  z-index: 43;
  top: max(env(safe-area-inset-top), 16px);
  left: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 450ms cubic-bezier(.2, .8, .2, 1), opacity 350ms ease,
    background 180ms ease, box-shadow 180ms ease;
}

.brand-control:hover {
  background: #fff;
  box-shadow: 0 8px 32px rgb(31 60 255 / 13%);
}

.brand-control:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.brand-control canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header.oculto,
.brand-control.oculto {
  transform: translateY(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
}

#actual {
  min-width: 62px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

#burger {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  cursor: pointer;
}

#burger::before,
#burger::after,
#burger span {
  position: absolute;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, top 180ms ease;
}

#burger::before {
  transform: translateY(-6px);
}

#burger::after {
  transform: translateY(6px);
}

.site-header.abierto #burger::before {
  transform: rotate(45deg);
}

.site-header.abierto #burger::after {
  transform: rotate(-45deg);
}

.site-header.abierto #burger span {
  transform: scaleX(0);
}

.site-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  min-width: 230px;
  gap: 2px;
  padding: 17px 22px 19px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgb(31 60 255 / 20%);
}

.site-menu[hidden] {
  display: none;
}

.site-menu a {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.18;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-menu a:hover {
  color: #6476ff;
}

.menu-socials {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgb(31 60 255 / 20%);
}

.site-menu .menu-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--blue);
  transition: color 160ms ease, transform 160ms ease;
}

.site-menu .menu-socials a:hover {
  color: #0e29e9;
  transform: translateY(-2px);
}

.menu-socials .social-icon {
  width: 24px;
  height: 24px;
}

.social-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-progress {
  position: fixed;
  z-index: 45;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.zoom-sequence {
  position: relative;
  height: calc(100svh + 190svh);
  background: #fff;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.tele3d,
#viewer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}

#screen-wipe {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: #fff;
  clip-path: ellipse(var(--wipe-rx, 0px) var(--wipe-ry, 0px) at 50% 50%);
  opacity: 0;
  pointer-events: none;
}

#viewer canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.explorar {
  position: absolute;
  z-index: 3;
  bottom: calc(env(safe-area-inset-bottom) + 32px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 180ms ease, background 180ms ease;
}

.explorar:hover {
  background: #0e29e9;
}

.explorar span {
  font-size: 18px;
  line-height: 0.7;
}

.sec {
  padding: clamp(72px, 10vw, 140px) var(--margin);
}

.crema {
  background: #fff;
  color: var(--blue);
}

.section-shell {
  width: 100%;
  margin: 0 auto;
}

.rotulo {
  margin-inline: calc(var(--margin) * -1);
  padding: clamp(18px, 3vw, 38px) 0;
  border-block: 1px solid currentColor;
  text-align: center;
}

.rotulo small {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.display {
  font-family: "Inter Tight", "Arial Black", sans-serif;
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.rotulo h2 {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 8rem);
  letter-spacing: -0.045em;
}

.rotulo h2 > span {
  display: block;
  overflow: hidden;
  padding: 0.12em 0;
}

.rotulo h2 i {
  display: block;
  font-style: normal;
  transition: transform 750ms cubic-bezier(.2, .8, .2, 1);
}

.rotulo.reveal:not(.in) h2 i {
  transform: translateY(110%);
}

.project-scene {
  position: relative;
  height: calc(var(--project-count, 8) * 100svh + 50svh);
  margin: clamp(28px, 4vw, 56px) calc(var(--margin) * -1) calc(clamp(72px, 10vw, 140px) * -1);
  background: #fff;
}

.project-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #fff;
}

.project-card {
  position: absolute;
  top: var(--margin);
  right: var(--margin);
  left: var(--margin);
  height: calc(100svh - var(--margin) * 2);
  overflow: hidden;
  border-radius: clamp(18px, 2.5vw, 30px);
  background: #202127;
  color: #fff;
  box-shadow: 0 -12px 40px rgb(0 0 0 / 18%);
}

.project-card::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: rgb(0 0 0 / var(--shade, 0));
  content: "";
  pointer-events: none;
}

.project-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #11141b;
}

.project-thumbnail,
.project-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumbnail {
  z-index: 0;
  object-fit: cover;
}

.project-preview {
  z-index: 1;
  opacity: 0;
  transition: opacity 400ms ease;
}

.project-card.suena .project-preview {
  opacity: 1;
}

.project-card:hover .project-preview {
  transform: scale(1.015);
}

.project-media-dark {
  background:
    radial-gradient(ellipse at 70% 40%, rgb(62 111 145 / 65%), transparent 44%),
    linear-gradient(135deg, #111b22, #080a0d 72%);
}

.project-upcoming .project-media {
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 7%) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 48% 48%, #596172, #202127 70%);
}

.vineta,
.lineas-tv {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vineta {
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 42%, rgb(0 0 0 / 52%) 100%);
  box-shadow: inset 0 0 70px 10px rgb(0 0 0 / 32%);
}

.project-card:has(.photo-gallery) .vineta {
  background: linear-gradient(to top, rgb(0 0 0 / 66%), transparent 56%);
}

.lineas-tv {
  z-index: 2;
  opacity: 0.35;
  background: repeating-linear-gradient(to bottom, rgb(0 0 0 / 30%) 0 1px, transparent 1px 3px);
}

.project-info {
  position: absolute;
  z-index: 3;
  inset: 0;
  color: #fff;
  text-shadow: 0 1px 3px rgb(0 0 0 / 60%);
  pointer-events: none;
}

.project-type {
  position: absolute;
  top: clamp(24px, 7vh, 60px);
  left: clamp(22px, 3vw, 44px);
  margin: 0;
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 700;
}

.project-info h3 {
  position: absolute;
  bottom: clamp(76px, 6.4vw, 82px);
  left: clamp(22px, 3vw, 44px);
  max-width: 68%;
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
  transition: transform 750ms cubic-bezier(.2, .8, .2, 1);
}

.project-info h3 {
  transform: translateY(120%);
}

.project-category {
  display: block;
  margin-top: 0.35em;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.project-card.activa .project-info h3 {
  transform: none;
}

.project-role {
  position: absolute;
  bottom: clamp(24px, 4vw, 46px);
  left: clamp(22px, 3vw, 44px);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgb(241 236 224 / 45%);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-link {
  position: absolute;
  right: clamp(22px, 3vw, 44px);
  bottom: clamp(24px, 4vw, 46px);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  pointer-events: auto;
}

.project-link:not(.muted):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-link.muted {
  opacity: 0;
  transition: opacity 500ms ease;
}

.project-card.activa .project-link.muted,
.project-card.activa .project-link:not(.muted) {
  opacity: 1;
}

.project-number {
  position: absolute;
  bottom: clamp(24px, 4vw, 46px);
  left: 50%;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 500ms ease;
}

.project-card.activa .project-number {
  opacity: 1;
}

.project-type,
.project-role,
.project-link:not(.muted) {
  opacity: 0;
  transition: opacity 600ms 180ms ease;
}

.project-card.activa .project-type,
.project-card.activa .project-role,
.project-card.activa .project-link:not(.muted) {
  opacity: 1;
}

.about-section {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(90px, 12vw, 150px);
  background: #fff;
  color: var(--blue);
}

.about-columns {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
  margin-top: clamp(42px, 6vw, 76px);
}

.credential-column {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  overflow: visible;
  clip-path: inset(0 -100vw -100vh -100vw);
}

.credential-hanger {
  position: relative;
  width: clamp(210px, 24vw, 300px);
}

.credential-swing {
  position: relative;
  width: 100%;
  transform-origin: 50% 4%;
  will-change: transform;
  animation: credential-sway 5s ease-in-out infinite alternate;
}

@keyframes credential-sway {
  from {
    transform: rotate(-2deg);
  }

  to {
    transform: rotate(2deg);
  }
}

.credential-cord {
  position: absolute;
  top: -110px;
  left: 50%;
  width: 1px;
  height: 120px;
  background: rgb(31 60 255 / 42%);
}

.credential-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 28px rgb(0 0 0 / 22%));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.about-copy {
  min-width: 0;
}

.arco {
  display: grid;
  min-height: clamp(290px, 31vw, 390px);
  place-items: center;
  padding: 17% 12% 10%;
  border: 1px solid rgb(31 60 255 / 35%);
  border-radius: 999px 999px 18px 18px;
  container-type: inline-size;
  text-align: center;
}

.frase {
  max-width: 640px;
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.05rem, 5.8cqw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
}

.frase .word {
  opacity: 0.25;
  transition: opacity 300ms ease;
}

.frase .word.lit {
  opacity: 1;
}

.sobre {
  max-width: 760px;
  margin: 28px 0 0;
  color: #3447d6;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.7;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tool-list span {
  padding: 7px 10px;
  border: 1px solid rgb(31 60 255 / 25%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.formacion {
  margin-top: 38px;
  container-type: inline-size;
}

.formacion ul,
.contact-work ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.formacion .etq,
.etq {
  margin: 0 0 9px;
  color: rgb(31 60 255 / 72%);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.formacion li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: baseline;
  padding: 14px 0;
}

.formacion li + li {
  border-top: 1px solid rgb(31 60 255 / 18%);
}

.f-tit {
  display: block;
  color: var(--blue);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.f-lugar {
  display: block;
  margin-top: 4px;
  color: #3447d6;
  font-size: 0.9rem;
}

.f-fecha {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.formacion-sec {
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid rgb(31 60 255 / 35%);
}

.formacion-sec .f-tit {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.contact-section {
  padding: 0 var(--margin) 24px;
  background: #fff;
  color: var(--blue);
}

.contact-section .section-shell {
  width: 100%;
}

.contact-section .rotulo {
  padding-block: clamp(26px, 4vw, 54px);
}

.contact-section .rotulo h2 {
  max-width: 1100px;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
  gap: clamp(24px, 6vw, 90px);
  padding: clamp(48px, 7vw, 82px) 0 clamp(56px, 8vw, 94px);
}

.contact-work li {
  margin: 4px 0;
  font-size: 15px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.social-links .social-icon {
  width: 22px;
  height: 22px;
}

.social-links a:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

.social-links a:focus-visible,
.site-menu .menu-socials a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.contact-location > p:last-child {
  margin: 0;
  font-size: 15px;
  text-transform: lowercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 4px;
  border-top: 1px solid rgb(31 60 255 / 55%);
  font-size: 12px;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

#screen-video {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .site-header {
    top: max(env(safe-area-inset-top), 12px);
    right: 14px;
  }

  .brand-control {
    top: max(env(safe-area-inset-top), 12px);
    left: 14px;
  }

  .site-menu {
    min-width: 205px;
  }

  .project-card {
    top: 16px;
    right: 16px;
    left: 16px;
    height: calc(100svh - 32px);
  }

  .project-info h3 {
    right: 20px;
    bottom: clamp(60px, 17vw, 68px);
    max-width: calc(100% - 40px);
    font-size: clamp(1.7rem, 7.4vw, 2.7rem);
  }

  .project-role {
    bottom: 27px;
    max-width: 56%;
    font-size: 0.62rem;
    line-height: 1.5;
  }

  .project-link {
    right: 20px;
    bottom: 27px;
    max-width: 36%;
    font-size: 0.65rem;
    text-align: right;
  }

  .project-number {
    display: none;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .credential-column {
    order: 1;
    margin-top: -40px;
  }

  .credential-hanger {
    width: clamp(190px, 58vw, 245px);
  }

  .credential-cord {
    top: -55px;
    height: 65px;
  }

  .about-copy {
    order: 0;
  }

  .arco {
    min-height: clamp(250px, 72vw, 320px);
    padding: 18% 12% 12%;
  }

  .formacion li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .f-fecha {
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 34px;
  }

  .contact-location {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  .project-scene {
    height: auto;
    margin-bottom: 0;
  }

  .project-stage {
    position: static;
    height: auto;
    overflow: visible;
  }

  .project-card {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    height: min(78svh, 720px);
    min-height: 420px;
    margin: 0 var(--margin) 24px;
    transform: none !important;
    filter: none !important;
  }

  .project-info h3,
  .project-type,
  .project-role,
  .project-link,
  .project-number {
    opacity: 1 !important;
    transform: none !important;
  }

  .credential-swing {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
