/* ── BRAND FONTS ── */
@font-face { font-family:'Satoshi'; src:url('/fonts/Satoshi-Regular.otf') format('opentype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('/fonts/Satoshi-Medium.otf') format('opentype'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('/fonts/Satoshi-Bold.otf') format('opentype'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'DM Mono'; src:url('/fonts/DMMono-Regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'DM Mono'; src:url('/fonts/DMMono-Medium.ttf') format('truetype'); font-weight:500; font-style:normal; font-display:swap; }

:root {
  --bg: #F1F1F1;
  --surf2: #FFFFFF;
  --t1: #181818;
  --t2: #464646;
  --t3: #747474;
  --line: rgba(116,116,116,.35);
  --panel: rgba(255,255,255,.85);
}
/* transición entre páginas (misma que bar: fade + blur + scale) */
.tl-page {
  opacity: 0;
  transform: scale(.99);
  transition: opacity .5s ease, transform .5s ease;
}
.tl-page.ready { opacity: 1; transform: none; }
body.tl-leaving {
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.03);
  transition: opacity .42s ease, filter .42s ease, transform .42s ease;
  pointer-events: none;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
/* iOS: bloquea long-press/arrastrar/guardar imagen y el preview de links */
.tl-card, .tl-card *, .tl-card-media, .tl-card-media img,
.ls-card, .ls-card *, .look-hero-media img, .look-gallery img,
.anim-stage, .anim-stage * {
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}
img { -webkit-user-drag: none; }
html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--t1);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.tl-title, .tl-card-name, .look-title, .ls-name, .anim-overlay .o-title {
  font-family: 'Satoshi', sans-serif;
}

/* ── HOME LOGO (compartido) ── */
.home-logo {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 40;
  display: block;
  width: clamp(82px, 11vw, 120px);
  opacity: 0;
  transition: opacity .5s ease, transform .2s ease;
}
.home-logo.ready { opacity: .92; }
.home-logo:hover { opacity: 1; transform: translateY(-1px); }
.home-logo img { display: block; width: 100%; height: auto; }

/* ════════════════════ GALERÍA (listado) ════════════════════ */
.tl-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(96px, 14vh, 168px) clamp(16px, 4vw, 64px) clamp(60px, 10vh, 120px);
}
.tl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 5vh, 56px);
  flex-wrap: wrap;
}
.tl-label {
  font-size: 12px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--t3);
  margin: 0 0 14px;
}
.tl-title {
  margin: 0;
  font-size: clamp(42px, 9vw, 124px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.02em;
}
.tl-sub {
  max-width: 320px;
  color: var(--t2);
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.55;
  margin: 0;
}

.tl-subsec-lbl {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--t3);
  margin: 0 0 clamp(14px, 2.4vh, 24px);
}

/* masonry — nunca una sola columna en móvil */
.tl-grid {
  columns: 2;
  column-gap: clamp(10px, 1.6vw, 22px);
}
@media (min-width: 720px)  { .tl-grid { columns: 3; } }
@media (min-width: 1100px) { .tl-grid { columns: 4; } }

.tl-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(10px, 1.6vw, 22px);
  break-inside: avoid;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surf2);
  border: .5px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.tl-card.in { opacity: 1; transform: translateY(0); }
.tl-card:hover { box-shadow: 0 24px 60px rgba(24,24,24,.55); }
.tl-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;        /* default antes de cargar la portada (lo ajusta el JS) */
  overflow: hidden;
  background: var(--surf2);
}
.tl-card-media .tl-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.tl-card-grad {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(24,24,24,.74) 0%, rgba(24,24,24,.16) 38%, transparent 62%);
  pointer-events: none;
}
.tl-card-info {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  padding: clamp(12px, 1.6vw, 20px);
  pointer-events: none;
}
.tl-card-name {
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 5px;
  color: #fff;            /* sobre degradado oscuro de la foto: blanco fijo */
}
.tl-card-handle {
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.72);   /* sobre degradado oscuro de la foto */
  text-transform: lowercase;
}
.tl-card-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  font-size: 9.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;             /* pill oscuro: texto blanco fijo */
  background: rgba(24,24,24,.5);
  border: .5px solid var(--line);
  padding: 5px 9px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tl-card.scrubbing .tl-card-info { opacity: 0; transition: opacity .2s ease; }

/* ════════════════════ ARTÍCULO (look) ════════════════════ */
.look-body { background: var(--bg); }
.look-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(96px, 13vh, 150px) clamp(16px, 4vw, 56px) clamp(70px, 12vh, 130px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.look-wrap.ready { opacity: 1; transform: none; }

.look-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 40px);
  margin-bottom: clamp(32px, 6vh, 72px);
}
@media (min-width: 900px) {
  .look-hero { grid-template-columns: 1.15fr .85fr; align-items: end; }
}
.look-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 5px;
  border: .5px solid var(--line);
  background: var(--surf2);
}
.look-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.look-meta { padding-bottom: 6px; }
.look-eyebrow {
  font-size: 11px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--t3);
  margin: 0 0 16px;
}
.look-title {
  margin: 0 0 18px;
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 800;
  line-height: .98;            /* aire para descenders (g, p, y, j) */
  letter-spacing: -.02em;
  white-space: nowrap;         /* una sola línea (JS reduce el tamaño hasta que quepa) */
  padding-bottom: .06em;
}
.look-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--t1);
  text-decoration: none;
  border: .5px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .25s ease, transform .2s ease;
}
.look-ig:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.look-ig i { font-size: 17px; }
.look-desc {
  margin: 22px 0 0;
  color: var(--t2);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.65;
  max-width: 46ch;
}

/* sub-galería: collage editorial */
.look-section-label {
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--t3);
  margin: 0 0 18px;
}
.look-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: clamp(8px, 1.4vw, 18px);
}
.look-gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surf2);
  border: .5px solid var(--line);
  grid-column: span 3;
  aspect-ratio: 3/4;
  opacity: 0;
  transform: translateY(22px) scale(.98);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.look-gallery figure.in { opacity: 1; transform: none; }
.look-gallery figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.look-gallery figure:hover img { transform: scale(1.045); }
/* patrón editorial: tamaños alternados */
.look-gallery figure:nth-child(6n+1) { grid-column: span 4; aspect-ratio: 4/3; }
.look-gallery figure:nth-child(6n+2) { grid-column: span 2; aspect-ratio: 2/3; }
.look-gallery figure:nth-child(6n+4) { grid-column: span 2; aspect-ratio: 3/4; }
.look-gallery figure:nth-child(6n+5) { grid-column: span 4; aspect-ratio: 16/10; }
@media (max-width: 720px) {
  .look-gallery { grid-template-columns: repeat(2, 1fr); }
  .look-gallery figure,
  .look-gallery figure:nth-child(6n+1),
  .look-gallery figure:nth-child(6n+2),
  .look-gallery figure:nth-child(6n+4),
  .look-gallery figure:nth-child(6n+5) { grid-column: span 1; aspect-ratio: 3/4; }
  .look-gallery figure:nth-child(5n+1) { grid-column: span 2; aspect-ratio: 4/3; }
}

/* pocas fotos → grid parejo y simétrico (en vez del collage); hueco impar = adorno */
.look-gallery--even {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.look-gallery--even figure,
.look-gallery--even figure:nth-child(6n+1),
.look-gallery--even figure:nth-child(6n+2),
.look-gallery--even figure:nth-child(6n+4),
.look-gallery--even figure:nth-child(6n+5),
.look-gallery--even figure:nth-child(5n+1) {
  grid-column: span 1 !important;
  aspect-ratio: 4 / 5 !important;
}
.look-orn {
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--surf2);
  border: .5px solid var(--line);
  border-radius: 4px;
}
.look-orn img {
  width: 46%;
  max-width: 150px;
  height: auto;
  opacity: .4;
  object-fit: contain;
}

/* videos */
.look-videos {
  margin-top: clamp(32px, 6vh, 64px);
  display: grid;
  gap: clamp(10px, 1.6vw, 20px);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .look-videos.multi { grid-template-columns: repeat(2, 1fr); } }
.look-videos video {
  width: 100%;
  border-radius: 5px;
  border: .5px solid var(--line);
  background: #181818;
  display: block;
  aspect-ratio: 9/16;
  object-fit: cover;
  max-height: 86vh;
}
/* ── SUGERIDOS ── */
.look-suggested {
  position: relative;
  z-index: 5;
  background: var(--bg);          /* cubre el canvas fijo del anim al llegar abajo */
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) clamp(16px, 4vw, 56px) clamp(60px, 12vh, 120px);
}
.look-suggested-label {
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--t3);
  margin: 0 0 18px;
}
.look-suggested-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.4vw, 18px);
}
.ls-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  border: .5px solid var(--line);
  background: var(--surf2);
}
.ls-media { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.ls-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.ls-card:hover .ls-media img { transform: scale(1.05); }
.ls-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(24,24,24,.74), transparent 56%); }
.ls-info { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(10px, 1.4vw, 16px); }
.ls-name { font-size: clamp(15px, 1.7vw, 20px); font-weight: 700; line-height: 1; margin-bottom: 4px; color: #fff; }
.ls-handle { font-size: 10.5px; letter-spacing: .14em; color: rgba(255,255,255,.72); }

.look-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(36px, 7vh, 72px);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t2);
  text-decoration: none;
  transition: color .25s ease, gap .25s ease;
}
.look-back:hover { color: var(--t1); gap: 14px; }

/* ════════════════════ ANIM (georgeparry) ════════════════════ */
/* —— DESKTOP: caja izquierda mouse-follow + panel derecho —— */
.anim-desktop {
  display: none;
  min-height: 100dvh;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(96px, 12vh, 140px) clamp(24px, 5vw, 72px) 60px;
}
.anim-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1712/2568;
  margin-left: auto;
  border-radius: 6px;
  overflow: hidden;
  border: .5px solid var(--line);
  background: var(--surf2);
  cursor: ew-resize;
  box-shadow: 0 40px 90px rgba(24,24,24,.5);
}
.anim-stage canvas { width: 100%; height: 100%; display: block; }
.anim-hint {
  position: absolute;
  z-index: 3;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);   /* pill oscuro sobre foto: texto claro fijo */
  background: rgba(24,24,24,.5);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity .4s ease;
}
.anim-stage.touched .anim-hint { opacity: 0; }
.anim-info { max-width: 460px; }
/* título de la anim (georgeparry): siempre en una sola línea */
.anim-info .look-title {
  white-space: nowrap;
  word-break: normal;
  font-size: clamp(30px, 4.2vw, 56px);
}

/* —— MÓVIL: anim fixed fullscreen + texto blend invertido que sube —— */
.anim-mobile { display: none; }
.anim-fixed {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 100lvh;   /* RENDERIZADO COMO SI LA BARRA NO ESTUVIERA, EXACTO AL FOOTER */
  z-index: 1;
  background: var(--bg);
  overflow: hidden;
}
.anim-fixed canvas { width: 100%; height: 100lvh; display: block; }
.anim-scroll { position: relative; z-index: 2; }
.anim-overlay {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 100lvh;   /* Igual que el footer, altura total estática anclada abajo */
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 22px max(40px, env(safe-area-inset-bottom));
  mix-blend-mode: difference;
  color: #fff;
}
.anim-overlay .o-eyebrow {
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.anim-overlay .o-title {
  font-size: clamp(30px, 12.5vw, 78px);
  font-weight: 800;
  line-height: 1.04;            /* aire para descenders (g, p, y) */
  letter-spacing: -.03em;
  margin: 0;
  max-width: 100%;
  white-space: nowrap;
  padding-bottom: .08em;        /* evita que se corten por abajo */
}
.anim-overlay .o-word { max-width: 100%; }
.anim-overlay .o-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.anim-overlay .o-desc {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.6;
  max-width: 32ch;
  opacity: 0;
  transform: translateY(24px);
}
.anim-progress {
  position: fixed;
  z-index: 4;
  left: 0; top: 0;
  height: 2px;
  width: 0;
  background: var(--t1);
  pointer-events: none;
}
.anim-mobile .home-logo-spacer { height: 1px; }

@media (min-width: 901px) {
  .anim-desktop { display: grid; }
}
@media (max-width: 900px) {
  .anim-mobile { display: block; }
}

/* ── SWIPE HINT VERTICAL (mobile georgeparry) ── */
.anim-swipe-hint {
  position: fixed;
  left: 50%; bottom: 30%;
  z-index: 9;
  width: clamp(82px, 21vw, 108px);
  height: clamp(82px, 21vw, 108px);
  color: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0) scale(.96);
  filter: drop-shadow(0 10px 26px rgba(24,24,24,.65));
}
.anim-swipe-hint.show {
  animation: anim-swipe-up 2.75s cubic-bezier(.25,.46,.45,.94) both;
}
.anim-swipe-hint svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.anim-swipe-hint .hand-fill { fill: #181818; }
.anim-swipe-hint .hand-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.anim-swipe-hint .touch-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  opacity: 0;
  transform-origin: 31px 15px;
}
.anim-swipe-hint.show .touch-wave {
  animation: anim-touch-wave-v 2.75s ease-out both;
}
@keyframes anim-swipe-up {
  0%   { opacity: 0;   transform: translate(-50%, 14px) scale(.96); }
  18%  { opacity: .92; transform: translate(-50%, 0)    scale(1);   }
  38%  { opacity: .92; transform: translate(-50%, 0)    scale(.98); }
  72%  { opacity: .92; transform: translate(-50%, -58px) scale(1);  }
  100% { opacity: 0;   transform: translate(-50%, -72px) scale(.98);}
}
@keyframes anim-touch-wave-v {
  0%, 24% { opacity: 0;   transform: scale(.55); }
  34%     { opacity: .75; transform: scale(.75); }
  58%     { opacity: 0;   transform: scale(1.8); }
  100%    { opacity: 0;   transform: scale(1.8); }
}
