:root {
  --bg: #1d3ce3;       /* azul del afiche de Nike */
  --bg-2: #1832c4;
  --fg: #f2f0ea;
  --muted: #b7c4ff;
  --line: #3f5af0;
  --accent: #f2f0ea;
  --folder: #cfdcff;
  --gutter: clamp(16px, 2.4vw, 32px);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;               /* grotesca tipo "NEW ARCHIVE" */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;            /* bold expandida, tipo "RISE ABOVE" */
  --serif: "Instrument Serif", Georgia, serif;                       /* acentos en itálica */
  --mono: "VT323", ui-monospace, Menlo, monospace;                    /* detalles tipo menú VCR */
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  /* azul con textura de serigrafía, como el afiche de Nike: casi plano, trama fina y manchas muy suaves */
  background-color: var(--bg);
  background-image:
    /* trama fina (malla de serigrafía) */
    repeating-linear-gradient(0deg, rgba(0, 10, 80, .045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px),
    /* grano fino */
    url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%27220%27 height=%27220%27><filter id=%27g%27><feTurbulence type=%27fractalNoise%27 baseFrequency=%27.9%27 numOctaves=%272%27 seed=%275%27 stitchTiles=%27stitch%27/><feColorMatrix values=%270 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .09 0%27/></filter><rect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23g)%27/></svg>"),
    /* banda horizontal clara y fondo levemente más oscuro abajo */
    linear-gradient(180deg, transparent 30%, rgba(255, 255, 255, .035) 38%, transparent 47%, transparent 62%, rgba(6, 18, 120, .14) 100%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 16px; letter-spacing: 0.02em; line-height: 1.1; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }

.upper { text-transform: uppercase; }

/* ───────── Preloader ───────── */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
}
#preloader .wordmark { font-size: clamp(52px, 12vw, 230px); }
.no-preload #preloader { display: none; }

/* ───────── Curtain (page transitions) ───────── */
#curtain {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  pointer-events: none;
  opacity: 1;
  transition: opacity .5s var(--ease);
}
#curtain.out { opacity: 0; }
#curtain.in { opacity: 1; }

/* ───────── Header ───────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter);
  text-transform: uppercase;
  font-size: 12px;
  color: var(--fg);
  text-shadow: 0 0 14px rgba(10, 10, 40, .35);
}
.site-header nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.site-header a { position: relative; white-space: nowrap; }
.site-header .nav-work { display: none; }
@media (max-width: 640px) {
  .site-header .nav-cat { display: none; }
  .site-header .nav-work { display: inline; }
}
.site-header a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.site-header a:hover::after, .site-header a.active::after { transform: scaleX(1); transform-origin: left; }

/* ───────── Wordmark: grotesca bold apretada con tinta de serigrafía (ref "RISE ABOVE") ───────── */
.wordmark {
  font-family: var(--display);
  font-weight: 800; font-stretch: 100%;
  line-height: .9;
  white-space: nowrap;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: -0.045em;
}
.wordmark sup {
  font-family: var(--mono); font-size: 0.14em; font-weight: 400; position: absolute; top: .15em; right: -1em; letter-spacing: 0;
}
/* tinta que se corre + motas del papel dentro de la letra */
.print { color: var(--fg); filter: url(#print); }
/* tinta blanca que se corre sobre el papel */
.ink { color: var(--fg); filter: url(#ink); text-shadow: 0 0 .05em rgba(255, 255, 255, .45), 0 0 .18em rgba(160, 175, 255, .25); }
/* gofrado: mismo azul del papel, con luz arriba-izquierda y sombra abajo-derecha */
.emboss {
  color: var(--bg);
  text-shadow: -.014em -.014em .01em rgba(255, 255, 255, .26), .016em .018em .022em rgba(4, 0, 60, .6);
}
.stack { display: flex; flex-direction: column; align-items: center; }
.stack .line { display: block; }

/* ───────── Home stage: logo → liquid blob → infinite zoom ───────── */
.reel { position: relative; height: 900vh; }
.reel .stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

/* Portada: tu foto con tratamiento duotono azul + grano (ref "Mouthwash") */
/* mazo de cartas cuadradas con bordes redondeados, centrado sobre el azul */
.hero-deck {
  position: absolute; left: 50%; top: 53%; z-index: 1; transform: translate(-50%, -50%);
  width: min(64vh, 86vw); aspect-ratio: 1;
}
.deck-card {
  position: absolute; inset: 0;
  border-radius: clamp(18px, 2.4vw, 34px); overflow: hidden;
  background: #0b0826;
  box-shadow: 0 30px 80px rgba(6, 10, 80, .35);
  will-change: transform;
}
.deck-card > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-poster { container-type: inline-size; }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 63% 35%;
  filter: url(#duo) contrast(1.15) brightness(1.05) blur(.5px);
  transform: scale(1.04);
}
/* luz de atrás (contraluz) + viñeta abajo */
.hero-poster::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(50% 55% at 8% 32%, rgba(95, 175, 255, .7), transparent 72%),
    radial-gradient(40% 30% at 100% 0%, rgba(120, 195, 255, .6), transparent 70%);
  mix-blend-mode: screen;
}
.hero-poster::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 4, 30, .5) 100%);
}
.hero-grain {
  position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: overlay; opacity: .55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%27200%27 height=%27200%27><filter id=%27g%27><feTurbulence type=%27fractalNoise%27 baseFrequency=%27.95%27 numOctaves=%272%27 stitchTiles=%27stitch%27/><feColorMatrix values=%270 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .7 0%27/></filter><rect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23g)%27/></svg>");
  animation: heroGrain 1s steps(5) infinite;
}
@keyframes heroGrain { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -2%); } 75% { transform: translate(-2%, -4%); } 100% { transform: translate(0, 0); } }
.hero-text {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.6cqw; text-align: center; color: #f2f0ea; padding: 0 6cqw;
  text-shadow: 0 0 20px rgba(10, 6, 40, .25);
}
.hero-text p, .hero-text h1 { margin: 0; }
.hero-text .big {
  font-family: var(--sans); font-weight: 700; font-stretch: 88%; text-transform: uppercase;
  font-size: 6.6cqw; line-height: .94; letter-spacing: -0.025em;
}
.hero-text .name { font-size: 12.5cqw; font-stretch: 85%; letter-spacing: -0.035em; line-height: .88; }
.hero-text .tiny { font-family: var(--sans); font-weight: 800; text-transform: uppercase; font-size: 1.55cqw; line-height: 1.1; letter-spacing: 0; }
.hero-text .serif { font-family: var(--serif); font-style: normal; font-size: 6.4cqw; line-height: 1; letter-spacing: -0.01em; }
.reel .zoom { position: absolute; inset: 0; z-index: 2; }
.reel .zoom .item {
  position: absolute; inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
  visibility: hidden;
  overflow: hidden;
}
.reel .zoom .item img { width: 100%; height: 100%; object-fit: cover; }
.reel .zoom .item .bgvideo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.reel .zoom .item .bgvideo iframe {
  position: absolute; left: 50%; top: 50%; border: 0;
  width: max(100%, 177.78vh); height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
}
.reel canvas.blob {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  pointer-events: none;
}
.reel .tagline {
  position: absolute; bottom: 32px; left: 0; right: 0; z-index: 5; margin: 0;
  text-align: center; text-transform: uppercase; font-size: 12px;
}
.reel .caption {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 5;
  color: #fff; mix-blend-mode: difference;
  display: flex; gap: 12px; align-items: baseline;
  text-transform: uppercase; font-size: 12px;
  opacity: 0; transition: opacity .4s;
}
.reel .counter {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 5;
  color: #fff; mix-blend-mode: difference;
  opacity: 0; transition: opacity .4s;
}
.reel.revealed .caption, .reel.revealed .counter { opacity: 1; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: #0d0d0d;
  text-transform: uppercase; font-size: 12px; font-weight: 500;
  transition: transform .4s var(--ease), background .3s;
}
.pill:hover { transform: scale(1.06); background: var(--fg); }
.pill-wrap {
  position: sticky; bottom: 28px; z-index: 20;
  display: flex; justify-content: center;
  margin-top: -68px; height: 68px; align-items: flex-end;
  pointer-events: none;
}
.pill-wrap .pill { pointer-events: auto; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease), background .3s; }
.pill-wrap.show .pill { opacity: 1; transform: none; }
.pill-wrap.show .pill:hover { transform: scale(1.06); }

/* ───────── Intro block ───────── */
.intro {
  padding: clamp(100px, 18vh, 200px) var(--gutter);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.intro .label { grid-column: 1 / span 3; }
.intro p {
  grid-column: 4 / span 8; margin: 0;
  font-size: clamp(24px, 3.2vw, 48px); line-height: 1.12; font-weight: 300; letter-spacing: -0.02em;
}
@media (max-width: 760px) {
  .intro .label, .intro p { grid-column: 1 / -1; }
}

/* ───────── Page title (projects / about) ───────── */
.page-head {
  padding: 140px var(--gutter) 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end;
}
.page-head h1 {
  margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; line-height: .86; letter-spacing: -0.02em;
  font-size: clamp(44px, 8vw, 170px);
}
.page-head .lede { justify-self: end; text-align: right; max-width: 340px; color: var(--muted); line-height: 1.4; }
@media (max-width: 760px) {
  .page-head { grid-template-columns: 1fr; }
  .page-head .lede { justify-self: start; text-align: left; }
}

/* ───────── Filters ───────── */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding: 0 var(--gutter) 32px;
}
.filters button {
  background: none; border: 0; padding: 0;
  color: var(--muted); font: inherit; text-transform: uppercase;
  transition: color .3s;
}
.filters button sup { font-family: var(--mono); font-size: 9px; margin-left: 3px; }
.filters button:hover, .filters button.active { color: var(--fg); }

/* ───────── Toolbar (filtros + vista) ───────── */
.toolbar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-right: var(--gutter); }
.toolbar .filters { padding-bottom: 32px; }
.views { display: flex; gap: 14px; padding-bottom: 32px; }
.views button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-transform: uppercase;
}
.views button.active, .views button:hover { color: var(--fg); }
[hidden] { display: none !important; }

/* ───────── Desktop: ventanas tipo QuickTime ───────── */
.desktop { position: relative; z-index: 1; isolation: isolate; margin: 0 var(--gutter) 140px; min-height: 60vh; }
.qt {
  position: absolute;
  border-radius: 9px;
  background: #111;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 18px 50px rgba(5, 2, 60, .45);
  user-select: none; -webkit-user-select: none;
  touch-action: none;
  transition: box-shadow .3s;
}
.qt.dragging { cursor: grabbing; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 30px 80px rgba(5, 2, 60, .6); }
.qt.hidden { display: none; }
.qt-bar {
  position: relative; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#ececec, #d9d9d9);
  border-bottom: 1px solid #b9b9b9;
  padding: 0 64px;
  color: #4a4a4a; font-size: 12px; font-weight: 500;
}
.qt-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-dots { position: absolute; left: 9px; top: 6px; display: flex; gap: 6px; }
.qt-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.qt-dots .r { background: #ff5f57; } .qt-dots .y { background: #febc2e; } .qt-dots .g { background: #28c840; }
.qt-screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.qt-screen img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.qt-live { position: absolute; inset: 0; }
.qt-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.qt.min .qt-screen { display: none; }
.qt-hud {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: min(92%, 380px);
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 8px;
  background: rgba(30, 30, 30, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; opacity: 0; transition: opacity .25s;
}
.qt:hover .qt-hud, .qt.paused .qt-hud, .desktop.stacked .qt-hud { opacity: 1; }
.qt-hud .mono { font-size: 13px; }
.qt-play { background: none; border: 0; color: #fff; font-size: 12px; padding: 0 2px; width: 18px; }
.qt-scrub { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); position: relative; }
.qt-scrub i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: #fff; }

.qt-vol { background: none; border: 0; padding: 0; font-size: 12px; line-height: 1; }
/* esquinas para agrandar la ventana (como en Mac) */
.qt-resize { position: absolute; bottom: 0; width: 18px; height: 18px; z-index: 3; }
.qt-resize.l { left: 0; cursor: nesw-resize !important; }
.qt-resize.r { right: 0; cursor: nwse-resize !important; }
.qt.resizing { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 30px 80px rgba(5, 2, 60, .6); }
.qt.resizing iframe { pointer-events: none; }
.desktop.stacked .qt-resize { display: none; }

/* En celular: ventanas apiladas, sin arrastrar */
.desktop.stacked { display: grid; gap: 28px; }
.desktop.stacked .qt { position: relative; left: auto !important; top: auto !important; width: 100% !important; cursor: default; touch-action: auto; }

/* ───────── Grid ───────── */
.grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px var(--gutter);
  padding: 0 var(--gutter) 140px;
}
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; gap: 40px; } }
.card .media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2);
}
.card .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s;
  filter: grayscale(.15);
}
.card:hover .media img { transform: scale(1.05); filter: none; }
.card .media .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.8);
  background: var(--fg); color: #111; border-radius: 999px; padding: 10px 18px;
  font-size: 11px; text-transform: uppercase; opacity: 0;
  transition: opacity .4s, transform .5s var(--ease);
}
.card:hover .media .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card .meta {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-top: 14px;
}
.card .meta .name { font-size: clamp(16px, 1.6vw, 22px); letter-spacing: -0.01em; }
.card .meta .name .t { color: var(--muted); }
.card.hidden { display: none; }

/* ───────── Project page ───────── */
.project-head { padding: 140px var(--gutter) 32px; }
.project-head .kicker { display: flex; gap: 16px; margin-bottom: 20px; }
.project-head h1 {
  margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; line-height: .88; letter-spacing: -0.02em;
  font-size: clamp(44px, 8vw, 140px);
}
.project-head h2 {
  margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--muted);
  font-size: clamp(20px, 2.4vw, 34px); letter-spacing: -0.02em;
}
.player { padding: 0 var(--gutter); }
.player .frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player + .player { margin-top: var(--gutter); }

.project-info {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: 56px var(--gutter) 120px;
}
.project-info .credits { grid-column: 1 / span 4; display: grid; gap: 14px; align-content: start; }
.project-info .credits div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.project-info .credits dt { color: var(--muted); }
.project-info .credits dd { margin: 0; text-transform: uppercase; }
.project-info .desc {
  grid-column: 6 / span 7; margin: 0;
  font-size: clamp(18px, 1.8vw, 26px); line-height: 1.3; font-weight: 300; letter-spacing: -0.01em;
}
/* afiche (películas) */
.project-info .poster { grid-column: 1 / span 4; margin: 0; }
.project-info .poster img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(6, 14, 90, .4); }
.project-info.has-poster .credits { grid-column: 5 / span 3; }
.project-info.has-poster .desc { grid-column: 8 / span 5; }
@media (max-width: 760px) {
  .project-info .credits, .project-info .desc, .project-info .poster,
  .project-info.has-poster .credits, .project-info.has-poster .desc { grid-column: 1 / -1; }
}

.next {
  display: block; position: relative; overflow: hidden;
  height: 70vh; min-height: 380px;
  border-top: 1px solid var(--line);
}
.next img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .45; transition: opacity .6s, transform 1.2s var(--ease);
}
.next:hover img { opacity: .75; transform: scale(1.03); }
.next .inner {
  position: absolute; inset: auto var(--gutter) 32px var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.next .big { font-family: var(--display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(40px, 7vw, 120px); line-height: .88; letter-spacing: -0.02em; }

/* ───────── About ───────── */
.about-body {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: 40px var(--gutter) 140px;
}
.about-body .bio {
  grid-column: 4 / span 9;
  font-size: clamp(22px, 2.6vw, 40px); line-height: 1.15; font-weight: 300; letter-spacing: -0.02em;
}
.about-body .bio p { margin: 0 0 .8em; }
.about-body .side { grid-column: 1 / span 3; display: grid; gap: 28px; align-content: start; }
.about-body .side ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; text-transform: uppercase; }
@media (max-width: 760px) {
  .about-body .bio, .about-body .side { grid-column: 1 / -1; }
}

/* ───────── Footer ───────── */
.site-footer {
  padding: 56px var(--gutter) 28px;
  border-top: 1px solid var(--line);
}
.site-footer .cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-transform: uppercase;
}
.site-footer .cols > div:last-child { text-align: right; }
.site-footer ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.site-footer a:hover { color: var(--muted); }
.site-footer .bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(80px, 14vh, 160px);
  text-transform: uppercase; font-size: 11px;
}
@media (max-width: 760px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > div:last-child { text-align: left; }
}

/* ───────── Home: carpeta final ───────── */
.reel .folder {
  position: absolute; left: 50%; top: 50%; z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0; pointer-events: none;
}
.reel .folder.on { pointer-events: auto; }
.reel .folder svg { width: clamp(72px, 7vw, 110px); height: auto; overflow: visible; transition: transform .5s var(--ease); }
.reel .folder .back { fill: color-mix(in srgb, var(--folder) 78%, #000); }
.reel .folder .front { fill: var(--folder); transition: transform .5s var(--ease); transform-origin: 50% 100%; }
.reel .folder:hover .front { transform: skewX(-8deg) scaleY(.92); }
.reel .folder .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(14, 34, 168, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* ───────── Stills: nube de fotos flotando (ref adamjakubowski.pl) ───────── */
.cloud { position: relative; z-index: 1; isolation: isolate; height: 100vh; height: 100svh; overflow: hidden; margin-top: 60px; }   /* isolation: la foto abierta queda siempre arriba */
.photo {
  position: absolute; left: 0; top: 0; transform-origin: 50% 50%; backface-visibility: hidden;
  padding: 0; margin: 0; border: 0; background: none; color: var(--fg); text-align: left;
  will-change: transform; transition: filter .3s;
}
.photo img { width: 100%; height: auto; display: block; box-shadow: 0 10px 30px rgba(6, 14, 90, .35); }
.photo span { display: block; padding-top: 4px; font-size: 12px; opacity: .8; }
.photo:hover { filter: none !important; opacity: 1 !important; z-index: 999 !important; }
.photo:hover img { outline: 1px solid var(--fg); }

/* Cita final */
.quote {
  min-height: 90vh; display: grid; place-content: center; gap: 1.6em;
  padding: 80px var(--gutter);
  font-family: "IBM Plex Mono", var(--mono); font-weight: 500;
  font-size: clamp(16px, 2.1vw, 30px); line-height: 1.35; letter-spacing: .01em;
  text-transform: uppercase; text-align: center;
}
.quote p { margin: 0; }

.lightbox {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(20, 46, 200, .97);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: calc(100vw - 2 * var(--gutter) - 120px); max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox button {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--fg); font: inherit; font-size: 12px; text-transform: uppercase; padding: 20px;
}
.lightbox .prev { left: var(--gutter); }
.lightbox .next-btn { right: var(--gutter); }
.lightbox .count { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; }

/* ───────── Info ───────── */
.info-body {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: 40px var(--gutter) 140px;
}
.info-photo { grid-column: 1 / span 4; aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; position: relative; }
.info-photo img { width: 100%; height: 100%; object-fit: cover; }
.info-photo.empty img { display: none; }
.info-photo.empty::after {
  content: "tu foto → assets/info/tomas.jpg"; position: absolute; inset: 0;
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.info-text { grid-column: 6 / span 7; }
.info-text .bio { font-size: clamp(18px, 1.6vw, 25px); line-height: 1.32; font-weight: 300; letter-spacing: -0.02em; }
.info-text .bio p { margin: 0 0 .8em; }
.info-text .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin-top: 56px; }
.info-text .facts ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; text-transform: uppercase; }
@media (max-width: 760px) {
  .info-photo, .info-text { grid-column: 1 / -1; }
}

/* ───────── Reveal ───────── */
.reveal { opacity: 0; transform: translateY(40px); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  #preloader { display: none; }
  * { transition-duration: 0s !important; }
}

/* ───────── Cursor: blanco con contorno negro ───────── */
html, body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M4 2.5v16.8l4.3-4.1 2.9 6.4 2.9-1.3-2.9-6.3h6.1z' fill='%23fff' stroke='%23000' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto;
}
a, button, [role="button"], label, .qt-screen, .qt-dots i, .qt-scrub, .photo, .reel.revealed .stage, .folder {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M9.5 2.5c-.9 0-1.6.7-1.6 1.6v8.4L6.6 11.2c-.6-.7-1.7-.8-2.3-.1-.6.6-.6 1.5-.1 2.2l3.8 5c1.2 1.6 3 2.6 5 2.6h1.2c3 0 5.4-2.4 5.4-5.4V11c0-.9-.7-1.6-1.6-1.6s-1.6.7-1.6 1.6v-.6c0-.9-.7-1.6-1.6-1.6s-1.6.7-1.6 1.6v-.4c0-.9-.7-1.6-1.6-1.6-.4 0-.8.2-1.1.4V4.1c0-.9-.7-1.6-1.6-1.6z' fill='%23fff' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 9 3, pointer;
}
.qt { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M4 2.5v16.8l4.3-4.1 2.9 6.4 2.9-1.3-2.9-6.3h6.1z' fill='%23fff' stroke='%23000' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, grab; }
.qt.youtube .qt-hud { display: none; }

/* ───────── Títulos: versión serif al pasar el mouse (ref Burberry) ───────── */
.page-head h1 { white-space: nowrap; }
.page-head h1 .ch { display: inline-block; transition: transform .25s; }
.page-head h1 .ch.alt {
  font-family: var(--serif); font-weight: 400; font-stretch: 100%; font-style: normal;
  text-transform: none; letter-spacing: -0.03em; filter: none;
}

/* ───────── Info: frase en cursiva que flota (ref "who we vibe with") ───────── */
.handwritten {
  font-family: "Homemade Apple", cursive; font-weight: 400; text-transform: none; color: var(--fg);
  font-size: clamp(30px, 4.4vw, 72px); line-height: 1.1; margin: 0 0 .2em -.1em;
  display: inline-block; transform-origin: 20% 60%;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  50% { transform: translate(6px, -10px) rotate(-3deg); }
}
.deck-card.deck-white { background: #f6f4f0; }
.deck-card.deck-white > img { object-fit: contain; transform: scale(.92); }

/* ───────── Home: info que aparece sola al scrollear (sin foto) ───────── */
.hero-info {
  position: absolute; left: 50%; top: 53%; z-index: 1; transform: translate(-50%, -50%);
  width: min(64vh, 86vw); aspect-ratio: 1; container-type: inline-size; pointer-events: none;
}
.hero-info .hero-text { text-shadow: none; }
.hero-info .hero-text > * { opacity: 0; }

/* ───────── Projects: afiches ───────── */
.qt-screen.poster { aspect-ratio: 2 / 3; }
.card .media.poster { aspect-ratio: 2 / 3; max-width: 70%; }
.card.poster-card .media img { filter: none; }

/* ───────── Amor Sin Sentido: "written by" bien claro debajo del video ───────── */
.byline { padding: 36px var(--gutter) 0; display: grid; gap: 10px; }
.byline .by-main { margin: 0; font-weight: 700; font-stretch: 110%; text-transform: uppercase; font-size: clamp(26px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.byline .by-main em { text-transform: none; font-weight: 400; font-size: 1.12em; }

/* ───────── Info: still de Venecia ───────── */
.info-still { margin: 40px 0 0; max-width: 520px; }
.info-still img { width: 100%; height: auto; border-radius: 6px; }
.info-still figcaption { padding-top: 8px; font-size: 14px; }

/* ventanas: redondeo en barra y pantalla (la ventana no recorta, así la flecha puede salir) */
.qt-bar { border-radius: 9px 9px 0 0; }
.qt > .qt-screen { border-radius: 0 0 9px 9px; overflow: hidden; }

/* ───────── Afiche: ventana estilo Photoshop ───────── */
.ps-win { background: #262626; color: #cfcfcf; font-size: 10px; }
.ps-bar { background: linear-gradient(#3a3a3a, #2f2f2f); border-bottom: 1px solid #1b1b1b; color: #bdbdbd; justify-content: flex-start; padding-left: 64px; }
.ps-menu { white-space: nowrap; overflow: hidden; font-size: 10px; letter-spacing: .02em; word-spacing: 6px; }
.ps-menu b { background: #001e36; color: #31a8ff; border: 1px solid #31a8ff; border-radius: 3px; padding: 0 3px; margin-right: 6px; font-size: 9px; }
.ps-tab { display: flex; justify-content: space-between; align-items: center; height: 20px; padding: 0 8px; background: #3c3c3c; border-bottom: 1px solid #1b1b1b; color: #e6e6e6; white-space: nowrap; overflow: hidden; }
.ps-tab .ps-x { color: #999; }
.ps-body { display: grid; grid-template-columns: 22px 1fr 74px; background: #282828; }
.ps-tools { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 8px 0; background: #323232; border-right: 1px solid #1b1b1b; }
.ps-tools i { font-style: normal; font-size: 10px; color: #bdbdbd; line-height: 1; }
.ps-canvas { aspect-ratio: auto !important; display: grid; place-items: center; padding: 10% 12%; background: #1f1f1f; border-radius: 0 !important; }
.ps-canvas img { width: 100%; height: auto; box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0, 0, 0, .5); }
.ps-panel { background: #323232; border-left: 1px solid #1b1b1b; padding: 6px 0; }
.ps-ph { padding: 0 6px 5px; color: #e6e6e6; border-bottom: 1px solid #1b1b1b; margin-bottom: 4px; }
.ps-layer { display: flex; align-items: center; gap: 5px; padding: 4px 6px; color: #bdbdbd; white-space: nowrap; overflow: hidden; }
.ps-layer i { width: 14px; height: 10px; background: #555; flex: none; border: 1px solid #1b1b1b; }
.ps-layer.on { background: #4b4b4b; color: #fff; }
.ps-status { height: 18px; padding: 0 8px; display: flex; align-items: center; background: #2b2b2b; border-top: 1px solid #1b1b1b; border-radius: 0 0 9px 9px; color: #9a9a9a; }

/* ───────── Nota a mano con flecha (Amor Sin Sentido) ───────── */
.qt-note {
  position: absolute; left: 8%; top: calc(100% + 4px); z-index: 5; pointer-events: none;
  display: flex; flex-direction: column-reverse; align-items: flex-start; color: #fff;
  transform: rotate(-4deg);
}
.qt-note span { font-family: "Homemade Apple", cursive; font-size: 19px; white-space: nowrap; margin-left: 30px; text-shadow: 0 0 8px rgba(18, 40, 190, .95), 0 0 2px rgba(18, 40, 190, .9); }
.qt-note .note-arrow { width: 64px; height: 64px; margin-bottom: -4px; transform: rotate(200deg); }
.qt-note .note-arrow { filter: drop-shadow(0 0 3px rgba(18, 40, 190, .9)); }
.qt-note .note-arrow path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.card { position: relative; }
.card-note { left: auto; right: 4%; top: -84px; }
.card-note .note-arrow { transform: rotate(10deg) scaleX(-1); }
.desktop.stacked .qt-note { left: auto; right: 0; top: -92px; }
.desktop.stacked .qt-note .note-arrow { transform: rotate(10deg) scaleX(-1); }

/* ───────── Info: columna izquierda con tu foto + poster en desarrollo ───────── */
.info-side { grid-column: 1 / span 4; display: grid; gap: 96px; align-content: start; }
.info-side .info-photo { grid-column: auto; }
.info-poster { margin: 0; }
.info-poster img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(6, 14, 90, .4); }
.info-poster figcaption { padding-top: 8px; font-size: 14px; }
@media (max-width: 760px) { .info-side { grid-column: 1 / -1; } }

/* ───────── Stills (proyectos en desarrollo) ───────── */
.still-win .qt-screen { background: #000; }
.still-win .qt-screen img { object-fit: contain; }
.player .frame.still { aspect-ratio: auto; background: none; }
.player .frame.still img { width: 100%; height: auto; display: block; }
