/* Mr. Lee-Williams — Home */

@font-face {
  font-family: "Constantia";
  src: url("../fonts/constantia.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --bg-2: #131416;
  --fg: #fff;
  --muted: #8a8a8a;
  --dim: #1d1d1d;
  --line: rgba(255, 255, 255, .14);
  --pad: clamp(16px, 2.4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(.76, 0, .24, 1);
  --word-size: 10.5vw;
  --word-h: 9.5vw;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  font-synthesis: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Constantia", "Palatino Linotype", Georgia, serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.underline {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .5s var(--ease);
}
.underline:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js, .js a, .js button { cursor: none; }
  .cursor {
    display: block;
    position: fixed;
    left: 0; top: 0;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease);
    will-change: transform;
  }
  .cursor.is-on { opacity: 1; }
  .cursor.is-big { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  transition: transform .6s var(--ease), background-color .4s;
  font-size: 15px;
}
.site-header.is-solid { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header.is-hidden { transform: translateY(-101%); }

.brand { justify-self: start; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 1.8vw, 30px); justify-self: center; }
.nav a { transition: color .35s; white-space: nowrap; }
.nav:hover a { color: #5d5d5d; }
.nav:hover a:hover { color: #fff; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tagline { justify-self: end; color: var(--muted); white-space: nowrap; }
.menu-btn { display: none; justify-self: end; grid-column: 3; }

@media (max-width: 1180px) { .tagline { display: none; } }

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .menu-btn { display: block; grid-column: 2; }
}

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: #000;
  display: flex; flex-direction: column; justify-content: center;
  gap: 6px;
  padding: calc(var(--header-h) + 20px) var(--pad) var(--pad);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: clamp(32px, 9vw, 54px); line-height: 1.15; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.hero__body {
  position: absolute;
  left: var(--pad); right: var(--pad);
  top: var(--header-h);
  bottom: calc(var(--word-h) + var(--pad) * .6);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.hero__title {
  font-size: clamp(28px, 3.7vw, 68px);
  line-height: 1.05;
  padding-bottom: var(--pad);
}
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: block; }

.hero__media {
  position: relative;
  display: block;
  flex: none;
  width: min(56vw, 900px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(14px, 1.6vw, 28px);
  background: var(--bg-2);
}
.hero__media img, .hero__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero__media .is-on { opacity: 1; }

.hero__word {
  position: absolute;
  left: var(--pad); right: var(--pad);
  bottom: 0;
  font-size: var(--word-size);
  line-height: .9;
  height: var(--word-h);
  white-space: nowrap;
  letter-spacing: 0;
  display: flex; align-items: flex-end;
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero__band { display: none; }

@media (max-width: 899px) {
  .hero { --band-h: 46px; min-height: 520px; }
  /* Móvil: el contenido fluye desde arriba (frase, vídeo a la altura que sobra), el nombre queda abajo
     entre dos líneas finas y debajo un faldón con FW26 y Prêt-à-couture. */
  .hero::before {
    content: ""; position: absolute; left: 0; right: 0;
    bottom: calc(var(--band-h) + var(--word-h) + 22px);
    height: 1px; background: var(--line); transition: opacity .8s ease;
  }
  .hero__body {
    flex-direction: column; justify-content: flex-start; align-items: stretch; border-bottom: 0;
    bottom: calc(var(--band-h) + var(--word-h) + 22px + 16px);
  }
  .hero__title { font-size: clamp(30px, 9vw, 52px); padding: 22px 0 18px; }
  .hero__media { align-self: stretch; flex: 1 1 auto; min-height: 0; width: 100%; height: auto; aspect-ratio: auto; max-width: none; border-radius: 18px; }
  .hero__word { bottom: calc(var(--band-h) + 10px); }
  .hero__band {
    display: flex; justify-content: space-between; align-items: center;
    position: absolute; left: 0; right: 0; bottom: 0; height: var(--band-h);
    padding: 0 var(--pad); font-size: 15px; line-height: 1;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    transition: opacity .8s ease;
  }
  .hero__band span:last-child { color: var(--muted); }
  .js.is-intro .hero__band, .js.is-intro .hero::before { opacity: 0; }
}

/* Estados iniciales de la animación (solo con JS) */
.js.is-intro .hero__word { opacity: 0; }
.js.is-intro .hero__media { clip-path: inset(50% 50% 50% 50%); }
.js.is-intro .line > span { transform: translateY(115%); }
.js.is-intro .site-header { opacity: 0; }
.js.is-intro .hero__body { border-bottom-color: transparent; }

/* ---------- Pilas de tarjetas ---------- */
@media (max-width: 899px) {
  .collection__title { display: flex; flex-direction: column; align-items: flex-start; gap: .12em; }
  .ct-a { font-size: .42em; color: var(--muted); letter-spacing: .01em; }
  .ct-b { font-size: 1.15em; }
  .ct-q { display: none; }
}
.collection__title {
  font-size: clamp(40px, 8vw, 150px);
  line-height: 1;
  padding: 22vh var(--pad) 8vh;
}

.stack { position: relative; --strip: 44px; }

.card {
  position: sticky;
  top: calc(min(var(--i), 3) * var(--strip));
  height: calc(100svh - 3 * var(--strip));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  padding-top: var(--strip);
  background: var(--bg-2);
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
}
.card__media { min-height: 0; min-width: 0; overflow: hidden; background: #0b0b0c; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Fotos verticales 2:3: cada foto conserva su proporción, centrada y a la altura útil de la tarjeta
   (100svh menos la franja superior y las tres franjas de la pila). Sin recortes. */
.card__media {
  align-self: center; justify-self: center;
  width: min(100%, calc((100svh - 4 * var(--strip)) * 2 / 3));
  aspect-ratio: 2 / 3;
}

.card__num, .card__name {
  position: absolute;
  top: 0;
  height: var(--strip);
  line-height: var(--strip);
  font-size: 15px;
  z-index: 2;
  pointer-events: none;
}
.card__num { left: var(--pad); }
.card__name { right: var(--pad); }

.card__shade {
  position: absolute; inset: 0;
  background: #000;
  opacity: var(--shade, 0);
  pointer-events: none;
  z-index: 3;
}

/* Escritorio: tarjetas a pantalla completa. Las verticales van de 3 en 3 (hueco sutil de 2px) y rellenan
   la tarjeta de arriba abajo; las horizontales ocupan la tarjeta entera. Sin franjas ni desenfoques. */
@media (min-width: 900px) {
  .card { gap: 2px; }
  .card__media { width: 100%; aspect-ratio: auto; align-self: stretch; justify-self: stretch; }
  .card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .card--wide .card__media picture, .card--wide .card__media img { width: 100%; height: 100%; }
  .stack .card--round { padding-left: 0; padding-right: 0; }
  .card--round .card__num, .card--round .card__name { color: #fff; mix-blend-mode: difference; }
}
picture { display: contents; }

/* Galería redondeada */
.stack--gallery { --strip: 22px; margin-top: 0; }
.card--round {
  border-radius: 28px 28px 0 0;
  background: #0d0d0e;
  padding: var(--strip) clamp(0px, 9vw, 150px) 0;
}
.card--round .card__media { border-radius: 0; }
.card--round .card__num, .card--round .card__name {
  top: 50%; height: auto; line-height: 1;
  transform: translateY(-50%);
  color: var(--muted);
}
.card--round .card__num { left: clamp(10px, 2vw, 36px); }
.card--round .card__name { right: clamp(10px, 2vw, 36px); }
.card--mix { grid-auto-columns: unset; grid-template-columns: 2fr 3fr; }

.gallery { padding-bottom: 0; }

@media (max-width: 899px) {
  .stack { --strip: 30px; }
  .stack--gallery { --strip: 14px; }
  .card--round { padding-left: 0; padding-right: 0; border-radius: 20px 20px 0 0; }
  .card--round .card__name { display: none; }
  .card--round .card__num { top: 22px; left: 14px; transform: none; color: #fff; mix-blend-mode: difference; }
  .card--tri:not(.card--round) .card__media:nth-child(n+2) { display: none; }
  .card--three { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .card--three .card__media:first-child { grid-column: 1 / -1; }
  .card__num, .card__name { font-size: 13px; }

  /* Galería móvil: cada foto a ancho completo y con sus proporciones */
  .stack--gallery { --strip: 14px !important; }
  .stack--gallery .card { display: contents; }
  .stack--gallery .card__num, .stack--gallery .card__name, .stack--gallery .card__shade { display: none; }
  .stack--gallery .card__media {
    width: 100%; aspect-ratio: auto; align-self: auto; justify-self: auto;
    position: sticky;
    top: calc(min(var(--k, 0), 3) * var(--strip));
    border-radius: 20px 20px 0 0;
    background: #0d0d0e;
    margin-top: 0;
    padding-top: 0;
  }
  .stack--gallery .card__media img { width: 100%; height: auto; display: block; border-radius: 20px 20px 0 0; }
  .stack--gallery .card__media::after {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 13px; line-height: 1; color: #fff; mix-blend-mode: difference; pointer-events: none; z-index: 2;
  }
  .stack--gallery .card__media::after { content: "FW26"; right: 14px; }
}

/* ---------- Frase de Madrid ---------- */
.manifesto { height: 300vh; position: relative; }
.manifesto__sticky {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 40px;
  padding: var(--header-h) var(--pad) var(--pad);
}
.manifesto__text {
  font-size: clamp(24px, 3.5vw, 64px);
  line-height: 1.15;
  max-width: 26em;
  color: rgb(29, 29, 29);
}
.js .manifesto__text { color: inherit; }
.manifesto__text .w { display: inline-block; white-space: nowrap; }
.manifesto__text .ch { color: rgb(29, 29, 29); }
.manifesto .underline { font-size: 18px; }

/* ---------- Banda deslizante ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 6vw, 90px) 0 clamp(36px, 7vw, 110px);
  background: var(--bg);
  user-select: none;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  font-size: clamp(64px, 13vw, 230px);
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.marquee__dot {
  flex: none;
  width: clamp(14px, 2.4vw, 40px);
  height: clamp(14px, 2.4vw, 40px);
  margin: 0 clamp(28px, 5vw, 90px);
  border-radius: 50%;
  background: #fff;
}
@keyframes marquee { to { transform: translateX(-25%); } }
@media (max-width: 899px) { .marquee__track { animation-duration: 19s; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  padding: 14vh var(--pad) var(--pad);
  border-top: 1px solid var(--line);
}
.footer__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer__row > * { min-width: 0; }
.footer__cta { font-size: clamp(54px, 11vw, 200px); line-height: .95; transition: color .35s; }
.footer__cta:hover { color: var(--muted); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 28px clamp(28px, 5vw, 90px); font-size: 16px; max-width: 100%; }
.footer__cols a { display: block; }
.footer__cols .underline { display: inline-block; }
.footer__label { color: var(--muted); margin-bottom: 10px; font-size: 14px; }
.footer__legal { margin-top: 12vh; color: var(--muted); font-size: 14px; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
}
