﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: "Instrument Serif", serif;
  scroll-behavior: smooth;
  cursor: none;
}

:root {
  --logo-nav-offset: clamp(80px, 11vw, 160px);
  --home-floor-offset: clamp(32px, 7vh, 120px);
}

body {
  overflow-x: hidden;
  background-color: #f4f4f4;
  color: #000;
  transition: background-color 0.6s ease, color 0.6s ease;
}

video,
figure,
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  font-weight: 400;
  font-style: normal;
  font-size: 60px;
  letter-spacing: -0.2rem;
  line-height: 0.85;
}

h2 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 30px;
  letter-spacing: 0.6rem;
}

h3 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  letter-spacing: -0.03rem;
  text-transform: uppercase;
}

a {
  color: inherit;
}

p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
}

.intro {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.welcome-logo {
  width: 80vw;
  height: auto;
}

.home {
  position: absolute;
  top: 100vh;
  left: 0;
  width: 100vw;
  background-color: inherit;
  color: inherit;
  transition: background-color 0.6s ease, color 0.6s ease;
  z-index: 2;
}

.alonso {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding-left: 3%;
  padding-right: 3%;
  box-sizing: border-box;
  max-width: none;
  height: auto;
  transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  clip-path: inset(0% 0% 0% 0%);
  -webkit-clip-path: inset(0% 0% 0% 0%);
  will-change: clip-path;
  z-index: 9999998;
  pointer-events: none;
  opacity: 1;
}

.alonso.is-hidden {
  clip-path: inset(0% 0% 100% 0%);
  -webkit-clip-path: inset(0% 0% 100% 0%);
}

body:not(.app-ready) .alonso,
body:not(.app-ready) .home_header-copy {
  visibility: hidden;
  opacity: 0;
}

body.app-ready .alonso,
body.app-ready .home_header-copy {
  visibility: visible;
  opacity: 1;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999999;
  padding-left: 3%;
  padding-right: 3%;
  padding-top: 1%;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

body.logo-visible nav {
  top: var(--logo-nav-offset);
}

body.logo-hidden nav {
  top: 0;
}

body.intro-active {
  overflow: hidden;
}

body.intro-active nav,
body.intro-active .alonso {
  opacity: 0;
  pointer-events: none;
}

body.intro-active .alonso {
  --alonso-mask: 1;
}

nav>div {
  flex: 1;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 8vw, 160px);
}

nav>div:last-child>h3 {
  text-align: end;
}

#home>div:first-of-type {
  padding-left: 3%;
  padding-right: 3%;
}

.home_header {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  padding: 0;
  overflow: visible;
}
@supports (height: 100dvh) {
  .intro,
  .home_header {
    min-height: 100dvh;
    height: 100dvh;
  }
}

.home_header-media {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translate3d(-50%, 0, 0);
  width: clamp(220px, 32vw, 420px);
  padding: 0;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  display: block;
  max-width: 100vw;
  overflow: hidden;
  will-change: width, height, transform;
  z-index: 1;
}

.home_header-media-track {
  display: flex;
  align-items: stretch;
  column-gap: 3%;
  height: 100%;
  min-width: 100%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.home_header-media-card {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home_header-media-card[data-clone="true"] {
  pointer-events: none;
}

.home_header-media-card[data-clone="true"] img {
  pointer-events: none;
}

.home_header-media--expanded {
  z-index: 9999991;
}

.home_header-copy {
  position: fixed;
  bottom: 3%;
  width: clamp(220px, 24vw, 360px);
  pointer-events: none;
  z-index: 9999990;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.home_header-copy.is-released {
  position: absolute;
  bottom: 3%;
  pointer-events: auto;
}

.home_header-copy--left {
  left: 3%;
  text-align: left;
}

.home_header-copy--right {
  right: 3%;
  text-align: right;
}

.home_header-media a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home_header-media-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.home_header-media-image--current {
  z-index: 2;
}

.home_header-media-image--transition {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.home_header-media-title {
  position: absolute;
  top: clamp(12px, 2vw, 32px);
  left: clamp(12px, 2vw, 32px);
  font-family: "Instrument Sans", sans-serif;
  font-size: clamp(12px, 1.4vw, 20px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 3;
  max-width: 70%;
  line-height: 1.1;
  display: none;
}

.home_header-media--expanded .home_header-media-title {
  opacity: 1;
  transform: translateY(0);
}

footer {
  padding: clamp(120px, 18vh, 220px) 3% clamp(60px, 12vh, 140px);
  background-color: inherit;
  color: inherit;
  transition: background-color 0.6s ease, color 0.6s ease;
  min-height: 100vh;
}



.footer-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "Instrument Sans", sans-serif;
}

body.footer-theme {
  background-color: #000;
  color: #fff;
}

body.footer-theme .home {
  background-color: #000;
  color: #fff;
}

body.footer-theme nav h3,
body.footer-theme nav a {
  color: #fff;
}

body.footer-theme a {
  color: #fff;
}

body.footer-theme footer {
  background-color: #000;
  color: #fff;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: #fff;
  mix-blend-mode: difference;
  border-radius: 50%;
  backface-visibility: hidden;
  z-index: 10000000;
  pointer-events: none;
}

@media only screen and (max-width: 1024px) {
  :root {
    --home-floor-offset: clamp(28px, 9vh, 96px);
  }

  .home_header-copy {
    width: clamp(220px, 34vw, 360px);
  }
}

@media only screen and (max-width: 640px) {
  :root {
    --home-floor-offset: clamp(24px, 12vw, 80px);
  }

  .home_header-copy {
    width: 46vw;
  }

  .home_header-copy--left {
    left: 5%;
  }

  .home_header-copy--right {
    right: 5%;
  }
}

@media only screen and (max-width: 480px) {
  .home_header-copy {
    width: 48vw;
  }
}

body.project-page {
  overflow-y: auto;
  background-color: #e5e5e5;
  color: #1a1a1a;
}

.project {
  position: relative;
  max-width: none;
  margin: 0 auto;
  padding: max(45vh, var(--logo-nav-offset, 120px)) 3% 0;
  display: flex;
  flex-direction: column;
}

.project-cover:first-of-type {
  margin-top: 3%;
}

.project-hero {
  position: sticky;
  top: max(20vh, var(--logo-nav-offset, 120px));
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
  z-index: 5;
  mix-blend-mode: difference;
  color: #fff;
}

@media (min-width: 900px) {
  .project-hero {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }
}

.project-eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: "Instrument Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  padding-top: 3%;
}

.project-hero h1 {
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
}

.project-hero__summary {
  font-family: "Instrument Sans", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: inherit;
}

.project-hero__summary p+p {
  margin-top: 1.1em;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 24px);
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-family: "Instrument Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4a4a4a;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 6;
}

.project-meta span {
  white-space: nowrap;
}

.project-hero__heading .project-meta {
  display: block;
  padding: 0;
  border: 0;
  margin-top: clamp(16px, 2vw, 24px);
  width: 100%;
  max-width: none;
  position: static;
}

.project-hero__heading .project-meta .project-eyebrow {
  margin: 0;
}

.project-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-cover img {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  display: block;
  object-fit: cover;
}

.project-cover video {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  display: block;
  object-fit: cover;
}

.project-cover>figure {
  min-height: 100vh;
}

.project-cover:first-of-type img,
.project-cover:first-of-type video {
  height: 100%;
}

.project-slider {
  position: relative;
  width: 100%;
  min-height: clamp(480px, 100vh, 1080px);
  padding: clamp(24px, 6vh, 72px) 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.project-slider__media {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translate3d(-50%, 0, 0);
  width: clamp(220px, 36vw, 480px);
  aspect-ratio: 1 / 1;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: clamp(16px, 3vw, 40px);
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08);
  will-change: width, height, transform;
  max-width: 100vw;
  z-index: 1;
}

.project-slider__media--expanded {
  z-index: 2;
}

.project-slider__track {
  display: flex;
  align-items: stretch;
  column-gap: 3%;
  height: 100%;
  min-width: 100%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.project-slider__card {
  position: relative;
  margin: 0;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-slider__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .project-meta {
    flex-direction: column;
    gap: 8px;
  }

  .project-meta span {
    white-space: normal;
  }
}

.footer-about {
  display: grid;
  gap: clamp(48px, 8vw, 96px);
  padding-top: 6%;
}

.footer-about__experience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 40px);
  grid-auto-rows: 1fr;
}

.footer-about__details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 32px);
  padding-top: 8%;
}

.footer-about__item {
  display: grid;
  align-content: start;
  gap: clamp(10px, 1.8vw, 18px);
  font-family: "Instrument Sans", sans-serif;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.6;
}

.footer-about__experience .footer-about__item {
  grid-template-rows: minmax(calc(1.2em * 2), auto) minmax(1.2em, auto) 1fr;
}

.footer-about__item h2 {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer-about__item span,
.footer-about__meta {
  margin: 0;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.footer-about__item p,
.footer-about__item ul {
  margin: 0;
}

.footer-about__experience .footer-about__item span {
  align-self: start;
}

.footer-about__experience .footer-about__item p,
.footer-about__experience .footer-about__item ul {
  align-self: start;
  margin-top: clamp(12px, 2vw, 18px);
}

.footer-about__item ul {
  display: grid;
  gap: clamp(6px, 1.2vw, 12px);
  list-style: none;
  padding: 0;
}


@media (max-width: 1100px) {
  .footer-about__experience {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-auto-rows: auto;
  }

  .footer-about__details {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 700px) {
  .footer-about__experience {
    grid-auto-rows: auto;
  }
}

@media (max-width: 900px) {
  nav {
    padding-top: 4%;
  }

  .home_header-media {
    top: 50% !important;
    bottom: auto !important;
    transform: translate3d(-50%, -50%, 0) !important;
    width: min(88vw, 420px);
    padding-left: 0;
    padding-right: 0;
  }

  .menu {
    width: auto;
    gap: clamp(16px, 6vw, 64px);
    flex-wrap: nowrap;
    justify-content: center;
  }

  .cursor{
    display: none;
  }

  .project-hero {
    position: static !important;
    top: auto !important;
  }

  .project {
    padding: 20vh 3% 0;
  }

  .footer-about__details{
     grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-about__item>ul>li {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  text-transform: uppercase;
}

.footer-about__item>ul>li>a {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  text-transform: uppercase;
}

.footer-about__item>p {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  text-transform: uppercase;
}



@media (max-width: 768px) {
  h3 {
    font-size: 11px;
  }

  .footer-about__item {
    padding-top: 8%;
  }

}

@media (max-width: 500px) {
  .footer-about__details{
     grid-template-columns: repeat(1, minmax(0, 1fr));
  }

}

.h3-crossfade {
  position: relative;
}

.h3-crossfade .layer {
  transition: opacity 200ms ease;
  will-change: opacity;
}

.h3-crossfade .layer.back {
  position: absolute;
  inset: 0;
  /* ocupa todo el h3 */
  pointer-events: none;
  white-space: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .h3-crossfade .layer {
    transition: none;
  }
}




.home_header-copy {
  text-wrap: pretty;
  text-wrap: balance;
  hyphens: auto;
}

/* Asegura herencia tipográfica del contenedor (h1–h6, p, etc.) */
.home_header-copy .no-widow {
  white-space: nowrap;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  word-spacing: inherit;
  line-height: inherit;
}

.home_header-copy .home_header-copy-last {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  word-spacing: inherit;
  line-height: inherit;
  white-space: inherit;
}



/* NAV con blend invertido */
nav {
  mix-blend-mode: difference;
  color: #fff;
  /* blanco + difference = invierte el fondo */
  background: transparent;
  /* importante: sin fondo sólido */
  z-index: 1000;
  /* que quede por encima de la imagen/hero */
}

/* Asegura que el color se herede */
nav a,
nav h1,
nav h2,
nav h3,
nav p,
nav span,
nav svg {
  color: inherit;
  fill: currentColor;
  /* para iconos SVG */
  background: transparent;
}

/* Si algún hijo tenía fondo, lo anulamos */
nav * {
  background: transparent;
}
