/* ═══════════════ NAOMI CREATIVE STUDIO ═══════════════
   Sistema: #FEFEFE + negro + amarillo #FFFD9C highlighter
   Archivo (display) · Inter (texto) · IBM Plex Mono (kickers)
   Movimiento: una sola curva (--ease) y duraciones cortas — sutil, nunca rebote. */

:root {
  --paper: #FEFEFE;
  --ink: #000000;
  --hl: #FFFD9C;
  --gray: #555555;
  --gray-soft: #666666;
  --line: rgba(0,0,0,.12);
  --pad: clamp(20px, 3vw, 40px);
  --font-display: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .3s;
  --t: .55s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.has-smooth { scroll-behavior: auto; }
html.lenis-smooth { scroll-behavior: auto; }
html body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
mark { background: var(--hl); color: inherit; padding: 0 .18em; }
::selection { background: var(--hl); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── utilidades ── */
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--gray-soft);
}
.kicker-light { color: rgba(255,255,255,.85); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.muted { color: var(--gray); }
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 54px);
  letter-spacing: -.02em;
  line-height: 1.12;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -.01em;
  line-height: 1.15;
}

/* ── botones y chips ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  cursor: pointer;
}
.is-typing::after {
  content: "▍";
  animation: caret-blink .7s steps(1) infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--hl); color: var(--ink); border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.chip {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 14px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip-yellow { background: var(--hl); color: var(--ink); }
.chip-yellow:hover { background: var(--ink); color: var(--hl); }
.chip-dark { background: var(--ink); color: var(--paper); }
.chip-dark:hover { background: var(--hl); color: var(--ink); }

/* ═══════════════ CURSOR — la rayita de escribir ═══════════════ */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 1000;
  width: 3px;
  height: 26px;
  background: var(--hl);
  box-shadow: 0 0 0 1px var(--ink);
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
  transition:
    width .38s var(--ease),
    height .38s var(--ease),
    background-color .3s var(--ease),
    opacity .2s ease;
  will-change: transform;
}
.has-cursor .cursor { display: flex; }
.cursor.is-idle { animation: caret-blink 1.05s steps(1) infinite; }
.cursor.is-hidden { opacity: 0; }
.cursor-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
/* sobre algo clicable: la rayita se abre en un bloque de marcador */
.cursor.is-hover {
  mix-blend-mode: multiply;
  animation: none;
}
.cursor.is-hover .cursor-label { opacity: 1; transform: none; transition-delay: .08s; }
.cursor.is-down { background: var(--ink); }
.cursor.is-down .cursor-label { color: var(--hl); }

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 var(--pad);
  gap: 20px;
}
.nav-links { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-link {
  position: relative;
  font-size: 14px;
  color: #fff;
  transition: color .4s var(--ease);
  white-space: nowrap;
}
.nav-link:not(.is-active)::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-link:not(.is-active):hover::before { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { background: var(--hl); color: var(--ink); padding: 3px 9px; }
.nav-lang { font-size: 14px; color: rgba(255,255,255,.6); transition: color .4s var(--ease); }
.nav-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  height: 40px;
  width: 95px; /* 286×120 → 40px de alto */
}
.nav-logo-img {
  position: absolute;
  inset: 0;
  height: 40px;
  width: auto;
  transition: opacity .4s var(--ease);
}
/* logo animado: blanco sobre el hero, negro con la nav sólida */
.nav-logo-img.logo-black { opacity: 0; }
.nav.is-solid .logo-white { opacity: 0; }
.nav.is-solid .logo-black { opacity: 1; }
.nav-cta { color: #fff; border-color: #fff; padding: 11px 24px; font-size: 14px; white-space: nowrap; }
.nav-cta:hover { background: #fff; color: var(--ink); }

.nav.is-solid { background: var(--paper); border-bottom-color: var(--ink); }
.nav.is-solid .nav-link, .nav.is-solid .nav-logo { color: var(--ink); }
.nav.is-solid .nav-link.is-active { color: var(--ink); }
.nav.is-solid .nav-lang { color: var(--gray-soft); }
.nav.is-solid .nav-cta { color: var(--ink); border-color: var(--ink); }
.nav.is-solid .nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav-burger span { width: 24px; height: 2px; background: #fff; transition: background .3s ease; }
.nav.is-solid .nav-burger span { background: var(--ink); }
.nav-mobile { display: none; }

/* ═══════════════ HERO — fijo, la página pasa por encima ═══════════════ */
/* sticky solo con JS: sin JS la página queda en flujo normal y se ve completa */
.js .hero { position: sticky; top: 0; z-index: 1; }
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-bg::-webkit-media-controls,
.hero-bg::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}
.hero-shade { position: absolute; inset: 0; background: #000; opacity: .52; }
.rot-caret {
  color: var(--hl);
  animation: caret-blink .7s steps(1) infinite;
  font-weight: 500;
  margin-left: .04em;
}
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
  padding: 120px var(--pad) 60px;
  color: #fff;
  will-change: transform, opacity;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.5vw, 100px);
  letter-spacing: .01em;
  line-height: 1;
  color: #fff;
}
.hero-directed {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.4vw, 16px);
  letter-spacing: .22em;
}
.hero-credits { display: flex; gap: clamp(24px, 5vw, 70px); flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.credit { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.credit span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.75); }
.credit strong { font-weight: 600; font-size: 17px; }
.hero .btn-solid { border-color: var(--ink); margin-top: 10px; }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .3em;
}
.hero-scroll span {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,.35);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 40%;
  background: var(--hl);
  animation: scroll-line 1.8s var(--ease-io) infinite;
}
@keyframes scroll-line {
  from { transform: translateY(-100%); }
  to { transform: translateY(260%); }
}

/* ═══════════════ PAGE — la capa que tapa al hero ═══════════════ */
.page {
  position: relative;
  z-index: 2;
  background: var(--paper);
  box-shadow: 0 -10px 24px rgba(0,0,0,.22), 0 10px 24px rgba(0,0,0,.14);
}

/* ═══════════════ STATEMENT — se escribe con el scroll ═══════════════ */
.typed { position: relative; height: 260vh; }
.typed-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--pad) 60px;
}
.typed-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(22px, 3vw, 40px);
}
.typed-text {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.9vw, 82px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--ink);
}
.js .typed-text .c { color: rgba(0,0,0,.1); }
.js .typed-text .c.on { color: var(--ink); background: var(--hl); }
.typed-text .w { white-space: nowrap; }
.typed-caret {
  position: absolute;
  left: 0; top: 0;
  width: .1em;
  background: var(--hl);
  box-shadow: 0 0 0 1px var(--ink);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.typed-caret.is-on { opacity: 1; }
.typed-caret.is-blink { animation: caret-blink .9s steps(1) infinite; }

/* ═══════════════ STAGE (selected work) ═══════════════ */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: clamp(60px, 8vw, 110px) var(--pad);
  border-top: 1px solid var(--ink);
}
.stage-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 70px);
  width: 100%;
}
.stage-card {
  position: relative;
  width: min(680px, 90vw);
  border: 1px solid var(--ink);
  background: #F0F0F0;
}
/* imagen central: cambia de foto en corte seco, como un gif */
.stage-main { position: relative; width: 100%; aspect-ratio: 4 / 3.4; overflow: hidden; }
.stage-main img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.stage-main:hover img { transform: scale(1.025); }

.car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  font-family: var(--font-body);
  padding: 0 0 4px 0;
}
.car-arrow:hover { background: var(--hl); }
.car-arrow:active { background: var(--ink); color: var(--paper); }
.car-prev { left: -23px; }
.car-next { right: -23px; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink);
}
.bar-yellow { background: var(--hl); }
.bar-title { font-weight: 600; font-size: 15px; }
.stage-card-foot {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--ink);
  background: var(--paper);
  color: var(--gray-soft);
}
.stage-statement {
  max-width: 900px;
  text-align: center;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.7;
}

/* marcador: el amarillo se pasa como un rotulador cuando aparece */
.js [data-reveal] mark {
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 0 / 0% 100%;
  transition: background-size 1.1s var(--ease-io) .35s;
}
.js [data-reveal].is-in mark { background-size: 100% 100%; }

/* ═══════════════ FILMS ═══════════════ */
.films { padding: clamp(60px, 8vw, 100px) var(--pad); border-top: 1px solid var(--ink); }
.films-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.films-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.film-media { position: relative; overflow: hidden; border: 1px solid var(--ink); }
.film-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
  cursor: pointer;
  transition: transform 1.2s var(--ease);
}
.film-player:not(.is-playing):hover video { transform: scale(1.025); }
.film-media video::-webkit-media-controls { display: none !important; }

/* ── mini player naomi ── */
.fp-big {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 20px;
  padding-left: 4px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform .5s var(--ease);
  font-family: var(--font-body);
}
.fp-big:hover { background: var(--hl); transform: translate(-50%, -50%) scale(1.05); }
.film-player.is-playing .fp-big { display: none; }
.fp-bar {
  position: absolute;
  left: 10px; bottom: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.film-player:hover .fp-bar,
.film-player.is-playing .fp-bar { opacity: 1; transform: none; }
.fp-bar button, .galit-sound {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
  font-family: var(--font-body);
  padding: 0;
}
.fp-bar button:hover, .galit-sound:hover { background: var(--hl); }
.film-player:fullscreen video { object-fit: contain; width: 100%; height: 100%; aspect-ratio: auto; }
.film-player:fullscreen { background: #000; }
.film-player:fullscreen .fp-bar { left: 20px; bottom: 20px; }
.film-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 8px;
}
.film-caption h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; }

/* ═══════════════ SERVICES — ESCRITORIO ═══════════════ */
.services { padding: clamp(60px, 8vw, 100px) var(--pad); border-top: 1px solid var(--ink); }
.desk {
  position: relative;
  background: var(--paper);
  height: 620px;
}
.desk-head {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.desk-folder {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 172px;
  height: 116px;
  background: none;
  border: 2px dashed transparent;
  padding: 10px 8px;
  cursor: grab;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform .45s var(--ease);
  font-family: var(--font-mono);
  touch-action: none;
}
.desk-folder.is-dragging {
  cursor: grabbing;
  transition: border-color .2s ease, background .2s ease;
  z-index: 5;
  transform: scale(1.04);
}
.df-icon { font-size: 56px; line-height: 1; transition: transform .45s var(--ease); }
.desk-folder:hover .df-icon { transform: translateY(-3px); }
.df-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  padding: 2px 7px;
  transition: background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.desk-folder:hover, .desk-folder.is-active {
  border-color: #4A90D9;
  background: #EAF2FB;
}
.desk-folder:hover .df-label, .desk-folder.is-active .df-label { background: var(--hl); }
.desk-trash .df-label { color: var(--gray-soft); }
.desk-trash:hover, .desk-trash.is-active { border-color: var(--ink); background: var(--hl); }

.desk-window {
  position: absolute;
  right: 0;
  top: 0;
  width: min(440px, 40%);
  border: 1px solid var(--ink);
  background: #FFFFFF;
  box-shadow: 8px 8px 0 rgba(0,0,0,.08);
  z-index: 2;
}
.desk-window .bar { cursor: grab; user-select: none; }
.desk-window.is-dragging { z-index: 6; }
.desk-window.is-dragging .bar { cursor: grabbing; }
.desk-media { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #F0F0F0; }
.desk-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s var(--ease), transform .4s var(--ease);
}
.desk-window.is-switching .desk-media img { opacity: 0; transform: translateX(10px); }
.desk-info {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--ink);
  transition: opacity .25s var(--ease), transform .4s var(--ease);
}
.desk-window.is-switching .desk-info { opacity: 0; transform: translateX(8px); }
.desk-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.desk-info p { color: var(--gray); font-size: 14px; line-height: 22px; }

.desk-contact {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 24px;
  background: var(--paper);
}
.desk-contact[hidden] { display: none; }
.desk-contact .mono { color: var(--gray-soft); font-size: 11px; }
.desk-contact h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.desk-contact p { color: var(--gray); font-size: 13px; line-height: 19px; }
.desk-contact .desk-mail {
  font-size: 14px;
  width: fit-content;
  border-bottom: 1px solid var(--ink);
}
.desk-contact .desk-mail:hover { background: var(--hl); }
.desk-contact .chip { width: fit-content; }

@media (max-width: 980px) {
  .desk {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    overflow: visible;
    padding: 24px 0;
  }
  .desk-head { position: static; flex-basis: 100%; margin-bottom: 12px; }
  .desk-folder { position: static !important; }
  .desk-window { position: static; flex-basis: 100%; width: 100%; margin-top: 14px; }
}

/* ═══════════════ IMPACT IN NUMBERS ═══════════════ */
.numbers {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 50px);
  padding: clamp(60px, 7vw, 90px) var(--pad);
  border-top: 1px solid var(--ink);
}
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
}
/* la línea superior se dibuja de izquierda a derecha */
.stat::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--ink);
  transform-origin: left;
  transition: transform 1.1s var(--ease-io);
}
.js .stat::before { transform: scaleX(0); }
.js .stat.is-in::before { transform: scaleX(1); }
.stat:nth-child(2)::before { transition-delay: .1s; }
.stat:nth-child(3)::before { transition-delay: .2s; }
.stat:nth-child(4)::before { transition-delay: .3s; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(60px, 6.4vw, 96px);
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-num mark { padding: 0 .08em; }
.stat-label { color: var(--gray); font-size: 15px; max-width: 280px; transition: color var(--t) var(--ease); }
.stat:hover .stat-label { color: var(--ink); }

/* ═══════════════ PROJECT INDEX ═══════════════ */
.index { position: relative; padding: clamp(60px, 7vw, 90px) var(--pad); border-top: 1px solid var(--ink); }
.index-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.index-list { border-bottom: 1px solid var(--ink); }
.idx-row {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1.6fr) 70px 30px;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  border-top: 1px solid var(--ink);
  transition: opacity var(--t) var(--ease);
}
.idx-num { color: var(--gray-soft); transition: color var(--t) var(--ease); }
.idx-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.3vw, 32px);
  letter-spacing: -.01em;
  transition: transform var(--t) var(--ease);
}
.idx-tags { color: var(--gray); font-size: 11px; transition: color var(--t) var(--ease); }
.idx-year { text-align: right; }
.idx-arrow {
  font-size: 18px;
  text-align: right;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
/* al pasar sobre la lista, las demás filas se apagan */
.index-list:hover .idx-row { opacity: .32; }
.index-list .idx-row:hover { opacity: 1; }
.idx-row:hover .idx-name { transform: translateX(10px); }
.idx-row:hover .idx-num, .idx-row:hover .idx-tags { color: var(--ink); }
.idx-row:hover .idx-arrow { opacity: 1; transform: none; }
.index-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }

/* la imagen que sigue al cursor */
.idx-preview {
  position: fixed;
  left: 0; top: 0;
  z-index: 40;
  width: clamp(220px, 19vw, 290px);
  aspect-ratio: 3 / 4;
  pointer-events: none;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #F0F0F0;
  opacity: 0;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path .7s var(--ease-io), opacity .3s ease;
  will-change: transform, clip-path;
}
.idx-preview.is-on { opacity: 1; clip-path: inset(0 0 0 0); }
.idx-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.14);
  transition: clip-path .75s var(--ease-io), transform 1.1s var(--ease);
}
.idx-preview img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 2; }
.idx-preview img.is-out { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }

/* ═══════════════ GALIT — video ═══════════════ */
.galit { border-top: 1px solid var(--ink); background: var(--paper); }
.galit-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100svh;
  overflow: hidden;
  border: none;
  background: #111;
  clip-path: inset(0 0 0 0);
}
.js .galit-frame { clip-path: inset(7% 11%); transition: clip-path 1.1s var(--ease-io); }
.js .galit-frame.is-open { clip-path: inset(0 0 0 0); }
.galit-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.galit-shade {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.28);
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.galit-frame.is-playing .galit-shade { opacity: 0; }
.galit-frame .fp-big { display: none; }
.galit-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity .5s var(--ease);
}
.galit-frame.is-playing .galit-btn { opacity: 0; pointer-events: none; }
.galit-credit {
  position: absolute;
  right: 16px; bottom: 18px;
  color: rgba(255,255,255,.75);
  transition: opacity .5s var(--ease);
}
.galit-frame.is-playing .galit-credit { opacity: 0; }
.galit-frame .fp-bar { left: 16px; bottom: 16px; }

/* ═══════════════ QUOTE ═══════════════ */
.quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding: clamp(60px, 8vw, 100px) var(--pad);
}
.quote blockquote {
  max-width: 980px;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 400;
  line-height: 1.65;
}

/* ═══════════════ FOUNDERS ═══════════════ */
.founders {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 560px) 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  padding: clamp(50px, 6vw, 90px) var(--pad);
  border-top: 1px solid var(--ink);
}
.founders-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.founders-col .h3 { font-size: clamp(22px, 2.2vw, 30px); }
.founders-photo { overflow: hidden; border: 1px solid var(--ink); }
.founders-photo img { width: 100%; transform: scale(1.08); will-change: transform; }
.founder-quote { font-size: 18px; line-height: 1.65; }
.founder-name { font-weight: 600; font-size: 14px; }

/* ═══════════════ MARQUEE ═══════════════ */
.marquee {
  overflow: hidden;
  background: var(--hl);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.js .marquee-track { animation: none; }
.marquee-track span { font-weight: 500; font-size: 17px; white-space: nowrap; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════ PROJECTS ═══════════════ */
.projects { padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 6vw, 80px); }
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--pad);
  margin-bottom: 30px;
}
.projects-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px var(--pad) 10px;
  scroll-snap-type: x mandatory;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.projects-track::-webkit-scrollbar { display: none; }
.projects-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.projects-track.is-dragging .project-card { pointer-events: none; }
.project-card {
  flex: 0 0 clamp(260px, 24vw, 330px);
  border: 1px solid var(--ink);
  scroll-snap-align: start;
  background: var(--paper);
  user-select: none;
}
.pc-arrow {
  font-size: 15px;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.project-card:hover .pc-arrow { opacity: 1; transform: none; }
.pc-media { overflow: hidden; border-bottom: 1px solid var(--ink); }
.pc-media img {
  width: 100%;
  aspect-ratio: 3/3.9;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 1.1s var(--ease);
}
.project-card:hover .pc-media img { transform: scale(1.04); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
.tags span {
  font-size: 12px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  padding: 5px 12px;
  transition: background .4s var(--ease);
}
.project-card:hover .tags span { background: var(--hl); }
.project-card:hover .tags span:nth-child(2) { transition-delay: .05s; }
.project-card:hover .tags span:nth-child(3) { transition-delay: .1s; }
.project-card:hover .tags span:nth-child(4) { transition-delay: .15s; }
.project-card:hover .tags span:nth-child(5) { transition-delay: .2s; }
.projects-progress {
  margin: 18px var(--pad) 0;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.projects-progress span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 20%;
  background: var(--ink);
}
.projects-cta { display: flex; justify-content: center; margin-top: 30px; }

/* ═══════════════ WHAT YOU LEAVE WITH + JOURNAL ═══════════════ */
.leave {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}
.leave-left, .leave-right {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: clamp(50px, 6vw, 80px) var(--pad);
}
.leave-left { border-right: 1px solid var(--ink); }
.leave-left .kicker, .why .kicker, .journal .kicker { margin-bottom: 14px; }

.pillar-list { border-bottom: 1px solid var(--ink); }
.pillar-item { border-top: 1px solid var(--ink); }
.pillar-head {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.pillar-num { color: var(--gray-soft); transition: color var(--t) var(--ease); }
.pillar-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  transition: transform var(--t) var(--ease);
}
.pillar-head:hover .pillar-name { transform: translateX(6px); }
.pillar-plus { position: relative; width: 14px; height: 14px; justify-self: end; }
.pillar-plus::before, .pillar-plus::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--t) var(--ease);
}
.pillar-plus::after { transform: rotate(90deg); }
.pillar-item.is-open .pillar-plus::after { transform: rotate(0deg); }
.pillar-item.is-open .pillar-num { color: var(--ink); background: var(--hl); width: fit-content; padding: 1px 5px; }
.pillar-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease);
}
.pillar-body p {
  overflow: hidden;
  min-height: 0;
  color: var(--gray);
  font-size: 15px;
  padding-left: 44px;
  max-width: 560px;
  opacity: 0;
  transition: opacity .4s var(--ease), padding-bottom var(--t) var(--ease);
}
.pillar-item.is-open .pillar-body { grid-template-rows: 1fr; }
.pillar-item.is-open .pillar-body p { opacity: 1; padding-bottom: 20px; transition-delay: .08s; }

.pillar-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #F0F0F0;
}
.pillar-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 0 100%);
  transition: clip-path .8s var(--ease-io), transform 1.2s var(--ease);
  transform: scale(1.06);
}
.pillar-media img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 2; }
.pillar-media img.is-out { clip-path: inset(0 0 0 0); z-index: 1; }

.why { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.journal { display: flex; flex-direction: column; align-items: stretch; }
.journal-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 0 / 0% 100%;
  transition: background-size .6s var(--ease-io);
}
.journal-row:last-of-type { border-bottom: 1px solid var(--ink); }
.journal-row:hover { background-size: 100% 100%; }
.jr-text { display: flex; flex-direction: column; gap: 6px; transition: transform var(--t) var(--ease); }
.journal-row:hover .jr-text { transform: translateX(10px); }
.journal-row h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.25; }
.jr-arrow {
  font-size: 18px;
  padding-right: 10px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.journal-row:hover .jr-arrow { opacity: 1; transform: none; }
.journal .chip { margin-top: 24px; width: fit-content; }

/* ═══════════════ CTA — la última escena ═══════════════ */
.cta {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 26px);
  padding: clamp(50px, 5vw, 76px) var(--pad) clamp(50px, 5vw, 80px);
  border-top: 1px solid var(--ink);
  background:
    radial-gradient(ellipse 60% 55% at 85% 20%, rgba(255,253,156,.55), transparent 70%),
    var(--paper);
}
.cta-slate {
  display: flex;
  border: 1px solid var(--ink);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.cta-slate span { padding: 8px 14px; border-right: 1px solid var(--ink); }
.cta-slate span:last-child { border-right: none; background: var(--hl); }
.cta-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 84px);
  line-height: 1.05;
  letter-spacing: -.025em;
  max-width: 1400px;
}
.cta-field {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  min-width: 1.2em;
}
.cta-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  caret-color: var(--ink);
}
.cta-sizer {
  display: inline-block;
  visibility: hidden;
  white-space: pre;
  min-width: 1.2em;
}
.cta-field::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .02em;
  height: .08em;
  background: var(--ink);
  transform-origin: left;
  transition: background var(--t-fast) var(--ease);
}
.cta-field:focus-within::after { background: var(--hl); box-shadow: 0 0 0 1px var(--ink); }
.cta-ghost {
  position: absolute;
  left: 0; top: 0;
  white-space: pre;
  color: rgba(0,0,0,.28);
  pointer-events: none;
  transition: opacity .25s ease;
}
.cta-ghost::after {
  content: "";
  position: absolute;
  right: -.1em;
  top: .16em;
  width: .06em;
  height: .72em;
  background: var(--hl);
  box-shadow: 0 0 0 1px var(--ink);
  animation: caret-blink .9s steps(1) infinite;
}
.cta-field.has-value .cta-ghost, .cta-field:focus-within .cta-ghost { opacity: 0; }
.cta-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-pick {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 30px;
  background: var(--paper);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.cta-pick:hover { background: var(--hl); }
.cta-pick.is-picked { background: var(--ink); color: var(--paper); }
.cta-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 8px; }
.cta-send { font-size: 16px; padding: 18px 34px; }
.cta-alt { font-size: 15px; border-bottom: 1px solid var(--ink); background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 100% / 100% 0%; transition: background-size .4s var(--ease); }
.cta-alt:hover { background-size: 100% 100%; }

/* ═══════════════ FOOTER — aparece por debajo del CTA ═══════════════ */
.js .footer { position: sticky; bottom: 0; z-index: 0; }
.footer {
  position: relative;
  background: var(--paper);
}
.js .footer.no-reveal { position: relative; }
.footer-inner { will-change: transform; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding: 50px var(--pad) 30px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-mail {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 100% / 100% 2px;
  transition: background-size .45s var(--ease);
}
.footer-mail:hover { background-size: 100% 100%; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links a { width: fit-content; transition: transform var(--t) var(--ease); }
.footer-links a:hover { transform: translateX(6px); }
.footer-giant {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 12.5vw, 200px);
  line-height: .94;
  letter-spacing: -.03em;
  padding: 0 var(--pad) 30px;
}
.footer-giant .fl {
  display: inline-block;
  transition: transform .5s var(--ease), background-color .3s var(--ease);
}
.footer-giant .fl:hover { transform: translateY(-.05em); background: var(--hl); }
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--hl);
  padding: 16px var(--pad);
  font-size: 13px;
}

/* ═══════════════ REVEALS (seguro: solo con JS activo) ═══════════════ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ═══════════════ RESPONSIVE ═══════════════ */
/* laptops pequeños: el menú se comprime para no chocar con el logo centrado */
@media (max-width: 1180px) {
  .nav-links { gap: 16px; }
  .nav-link { font-size: 13px; }
  .nav-lang { display: none; }
  .nav-cta { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 1080px) {
  .founders { grid-template-columns: 1fr; align-items: start; }
  .founders-photo { order: -1; max-width: 520px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .idx-row { grid-template-columns: 50px 1fr 60px 24px; }
  .idx-tags { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { justify-content: space-between; }
  .nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px var(--pad) 34px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
  }
  .nav-mobile a { font-size: 18px; color: var(--ink); }
  .nav.is-solid { background: var(--paper); }
  .nav:has(.nav-mobile.is-open) { background: var(--paper); border-bottom-color: var(--ink); }
  .nav:has(.nav-mobile.is-open) .logo-white { opacity: 0; }
  .nav:has(.nav-mobile.is-open) .logo-black { opacity: 1; }
  .nav:has(.nav-mobile.is-open) .nav-burger span { background: var(--ink); }
  .films-grid { grid-template-columns: 1fr; }
  .leave { grid-template-columns: 1fr; }
  .leave-left { border-right: none; border-bottom: 1px solid var(--ink); }
  .stage-row { flex-wrap: wrap; }
  .stage-card { order: 1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .footer-col:first-child { grid-column: 1 / -1; }
  .typed { height: 220vh; }
}
@media (max-width: 560px) {
  .hero-credits { gap: 18px; }
  .footer-giant { font-size: clamp(48px, 15vw, 90px); }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-num { font-size: 56px; }
  .stat-label { font-size: 13px; }
  .idx-row { grid-template-columns: 40px 1fr 44px; min-height: 64px; gap: 12px; }
  .idx-arrow { display: none; }
  .cta-slate span { padding: 6px 10px; font-size: 10px; }
  .car-prev { left: -12px; }
  .car-next { right: -12px; }
}

/* sin hover (táctil): la miniatura del índice va dentro de la fila */
@media (hover: none) {
  .idx-preview { display: none; }
  .index-list:hover .idx-row { opacity: 1; }
}

/* ═══════════════ MOVIMIENTO REDUCIDO ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .typed { height: auto; }
  .typed-sticky { position: relative; height: auto; min-height: 80vh; }
  .js .typed-text .c { color: var(--ink); }
  .hero { position: relative; }
}
