/* home.css — página de inicio (versión bold editorial) */

/* ---------- HERO BOLD ---------- */
.hero {
  position: relative;
  padding: 0;
  height: clamp(700px, 92vh, 1000px);
  overflow: hidden;
  border-bottom: 1px solid var(--ink-12);
}

.hero__type {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: clamp(var(--s-5), 6vh, var(--s-7)) var(--gutter) clamp(var(--s-5), 5vh, var(--s-6));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-4);
  color: var(--cream);
}

@media (max-width: 720px) {
  .hero__type {
    padding: var(--s-5) var(--gutter);
    gap: var(--s-4);
  }

  .hero__statement {
    margin-bottom: auto;
  }
}

/* Overlay sobre la imagen para legibilidad del texto blanco */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(27, 24, 22, 0.25) 0%,
    rgba(27, 24, 22, 0.35) 50%,
    rgba(27, 24, 22, 0.55) 100%
  );
  pointer-events: none;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 240, 234, 0.75);
  margin-bottom: auto;
}

.hero__top span {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .hero__top {
    margin-bottom: var(--s-3);
  }
}

.hero__statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.022em;
  text-wrap: balance;
  color: var(--cream);
  max-width: 14ch;
}

.hero__statement .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: word-rise 900ms cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

.hero__statement .word:nth-child(1) { animation-delay: 100ms; }
.hero__statement .word:nth-child(2) { animation-delay: 220ms; }
.hero__statement .word:nth-child(3) { animation-delay: 340ms; }
.hero__statement .word:nth-child(4) { animation-delay: 460ms; }
.hero__statement .word:nth-child(5) { animation-delay: 580ms; }
.hero__statement .word:nth-child(6) { animation-delay: 700ms; }
.hero__statement .word:nth-child(7) { animation-delay: 820ms; }

.hero__statement em {
  font-style: italic;
}

@keyframes word-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__statement .word {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.hero__bottom p {
  font-size: 0.9375rem;
  color: rgba(244, 240, 234, 0.85);
  max-width: 32ch;
  line-height: 1.5;
  margin: 0;
}

.hero__cta {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex-shrink: 0;
}

.hero__cta .btn {
  background: var(--cream);
  color: var(--ink);
}

.hero__cta .btn:hover {
  background: var(--bone);
}

.hero__cta .btn-arrow {
  color: var(--cream);
  border-bottom-color: rgba(244, 240, 234, 0.6);
}

.hero__cta .btn-arrow:hover {
  border-bottom-color: var(--cream);
  opacity: 0.85;
}

@media (max-width: 560px) {
  .hero__cta {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }
}

/* Hero media — fondo full a través del hero entero */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ink);
  overflow: hidden;
  margin: 0;
}

.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  display: block;
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
}

/* Hero zoom-in/zoom-out — controlado por JS via inline transform.
   Solo prefers-reduced-motion respeta esto. */
@media (prefers-reduced-motion: reduce) {
  .hero__media img {
    transform: none !important;
  }
}

/* Tag flotante en hero (esquina inferior derecha) */
.hero__tag {
  position: absolute;
  bottom: var(--s-3);
  right: var(--s-3);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-text);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 240, 234, 0.85);
  text-align: right;
}

.hero__tag strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.125rem;
  color: var(--cream);
}

/* ========== FEATURED HORIZONTAL (Lumio-style) ========== */
.featured-h {
  position: relative;
  height: 360vh;
  background: var(--cream);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.featured-h__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.featured-h__head {
  padding-top: calc(var(--s-5) + 60px);
  padding-bottom: var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  flex-shrink: 0;
}

.featured-h__head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(1.875rem, 4.2vw, 3.25rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
}

.featured-h__head-right {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
}

.featured-h__head .meta {
  font-family: var(--font-text);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.featured-h__viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.featured-h__track {
  display: flex;
  gap: clamp(var(--s-3), 3vw, var(--s-5));
  height: 100%;
  align-items: center;
  padding: 0 var(--gutter);
  will-change: transform;
}

.featured-h__card {
  flex: 0 0 auto;
  width: clamp(280px, 40vw, 560px);
  height: 80%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.featured-h__media {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--bone);
  margin-bottom: var(--s-3);
}

.featured-h__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.featured-h__card:hover .featured-h__media img {
  transform: scale(1.03);
}

.featured-h__num {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 2;
  font-family: var(--font-text);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
}

.featured-h__meta {
  flex-shrink: 0;
}

.featured-h__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 60;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-bottom: 0.25rem;
}

.featured-h__typology {
  font-family: var(--font-text);
  font-size: 0.875rem;
  color: var(--ink-60);
}

@media (max-width: 720px) {
  .featured-h {
    height: 280vh;
  }
  .featured-h__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }
  .featured-h__head-right {
    flex-wrap: wrap;
  }
  .featured-h__card {
    width: 75vw;
  }
}

/* ---------- FEATURED ASIMÉTRICO (legacy, no se usa pero queda por si revertimos) ---------- */
.featured {
  padding-top: clamp(var(--s-6), 9vw, var(--s-9));
  padding-bottom: var(--s-7);
}

.featured__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-7);
  gap: var(--s-3);
}

.featured__head h2 {
  flex: 1;
  font-size: clamp(1.875rem, 4.2vw, 3.25rem);
  line-height: 1.05;
}

.featured__head .meta {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .featured__head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--s-5);
  }
}

.featured__rows {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.featured__row {
  display: grid;
  gap: var(--s-3);
  align-items: stretch;
  min-height: 0;
}

.featured__row--01 {
  grid-template-columns: 1.4fr 1fr;
}

.featured__row--02 {
  grid-template-columns: 1fr 1.4fr;
}

@media (max-width: 760px) {
  .featured__row,
  .featured__row--01,
  .featured__row--02 {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
}

.featured__col {
  display: grid;
  gap: var(--s-3);
  grid-template-rows: 1fr 1fr;
  min-height: 0;
}

@media (max-width: 760px) {
  .featured__col {
    grid-template-rows: auto auto;
  }
}

/* Card variantes para layout asimétrico — uniformamos altura por fila */
.featured__big,
.featured__small {
  display: flex;
  flex-direction: column;
}

.featured__big .piece-card__media {
  flex: 1;
  margin-bottom: var(--s-2);
}

.featured__small .piece-card__media {
  flex: 1;
  margin-bottom: var(--s-1);
}

/* Mobile: cada media respeta una aspect-ratio para no estirar feo */
@media (max-width: 760px) {
  .featured__big .piece-card__media,
  .featured__small .piece-card__media {
    aspect-ratio: 4 / 5;
    flex: none;
  }
}

.featured__big .piece-card__name {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 300;
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.018em;
  line-height: 1.0;
}

.featured__small .piece-card__name {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 300;
  font-variation-settings: 'opsz' 36;
  letter-spacing: -0.012em;
  line-height: 1.05;
}

/* Más aire entre la imagen y el meta de cada card */
.featured__big .piece-card__media {
  margin-bottom: var(--s-3);
}
.featured__small .piece-card__media {
  margin-bottom: var(--s-2);
}

/* Card hover (más sutil con foto real) */
.piece-card {
  position: relative;
  overflow: visible;
}

.piece-card__media {
  position: relative;
  overflow: hidden;
  background: var(--bone);
}

.piece-card__media img {
  transition: transform 800ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.piece-card:hover .piece-card__media img {
  transform: scale(1.03);
}

.piece-card .placeholder-img {
  transition: transform 600ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.piece-card:hover .placeholder-img {
  transform: scale(1.02);
}

/* Sello visible en card (número) */
.piece-card__num {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 2;
  font-family: var(--font-text);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
}

/* ---------- TALLER ---------- */
.taller {
  padding-top: var(--s-8);
  padding-bottom: var(--s-9);
  border-top: 1px solid var(--ink-12);
}

.taller__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-7);
  align-items: center;
}

@media (max-width: 920px) {
  .taller__grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}

.taller__media {
  aspect-ratio: 4 / 5;
  background: var(--bone);
  overflow: hidden;
}

@media (max-width: 920px) {
  .taller__media {
    aspect-ratio: 5 / 4;
    max-height: 60vh;
  }
}

.taller__text .eyebrow {
  margin-bottom: var(--s-2);
  display: inline-block;
}

.taller__text h2 {
  margin-bottom: var(--s-3);
  max-width: 14ch;
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
}

.taller__text p {
  color: var(--ink-60);
  margin-bottom: var(--s-3);
  max-width: 50ch;
  font-size: 1rem;
}

/* ========== PULL QUOTE EDITORIAL ========== */
.pull-quote {
  padding-top: clamp(var(--s-7), 11vw, var(--s-9));
  padding-bottom: clamp(var(--s-7), 11vw, var(--s-9));
}

.pull-quote__figure {
  margin: 0;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

.pull-quote__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(2.25rem, 5.6vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.pull-quote__text em {
  font-style: italic;
}

.pull-quote__cite {
  margin-top: clamp(var(--s-3), 2.4vw, var(--s-4));
  font-family: var(--font-text);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

@media (max-width: 720px) {
  .pull-quote__text {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

/* ========== STATEMENT EDITORIAL (puente antes del taller) ========== */
.statement {
  padding-top: clamp(var(--s-7), 9vw, var(--s-9));
  padding-bottom: clamp(var(--s-6), 7vw, var(--s-8));
  border-top: 1px solid var(--ink-12);
}

.statement__inner {
  max-width: 50ch;
  margin-inline: auto;
  text-align: center;
}

.statement__inner p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink-80);
  text-wrap: pretty;
}

/* ========== SCROLL VIDEO (Patio · Ensamble) ========== */
.scroll-video {
  position: relative;
  height: 320vh;
  background:
    linear-gradient(to bottom,
      var(--cream) 0%,
      #e1dcd2 18%,
      #e1dcd2 82%,
      var(--cream) 100%);
  /* Detener inercia del swipe al llegar al inicio de la sección.
     Obliga al usuario a hacer un scroll nuevo para empezar el ensamble. */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.scroll-video__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scroll-video__inner {
  width: 100%;
  max-width: 1400px;
  padding: 0 var(--s-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}

.scroll-video__copy {
  position: relative;
  width: 100%;
  max-width: 60ch;
  min-height: 5.5rem;
  text-align: center;
  pointer-events: none;
}

.scroll-video__copy p {
  position: absolute;
  inset: 0;
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.125rem, 2.1vw, 1.75rem);
  line-height: 1.35;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-video__copy p.is-active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-video__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: transparent;
  overflow: hidden;
}

.scroll-video__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at center, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 85% at center, black 40%, transparent 100%);
}

@media (max-width: 720px) {
  .scroll-video {
    height: 280vh;
  }
  .scroll-video__inner {
    padding: 0;
    gap: var(--s-2);
  }
  .scroll-video__frame {
    aspect-ratio: 4 / 5;
  }
  .scroll-video__copy {
    padding: 0 var(--s-3);
    min-height: 5rem;
  }
}
