:root {
  --bg: #0b0d11;
  --bg-2: #0f1626;
  --bg-3: #161d2b;
  --fg: #ebe7df;
  --muted: #8b8f98;
  --line: rgba(235, 231, 223, 0.14);
  --paper: #ece4d4;
  --ink: #171513;
  --amber: #e3a34a;
  --blue: #2f5bd3;
  --navy: #13213f;
  --red: #d2432f;
  --display: "Anton", "Impact", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 1px dashed var(--amber); outline-offset: 4px; }

.mono { font-family: var(--mono); }
.hand { font-family: var(--hand); font-weight: 500; line-height: 1.05; color: var(--amber); }

/* Grano de película */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Cinta adhesiva: el guiño fanzine */
.tape {
  position: absolute; top: -11px; left: 50%; z-index: 3;
  width: 88px; height: 24px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(236, 228, 212, 0.55); backdrop-filter: blur(1px);
  clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 45%);
}

/* Portada */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 0 var(--gutter);
}
.hero__reel { position: absolute; inset: 0; }
.hero__reel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.8s ease, transform 9s linear;
  filter: saturate(0.85) contrast(1.05);
}
.hero__reel img.is-on { opacity: 1; transform: scale(1); }
.hero__reel::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(11, 13, 17, 0.72) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 17, 0.55) 38%, rgba(19, 33, 63, 0.12) 70%, rgba(11, 13, 17, 0.5) 100%);
}

.slate {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 18px 0 14px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(235, 231, 223, 0.75);
  border-bottom: 1px solid var(--line);
}
.slate b, .topbar b { color: var(--fg); letter-spacing: 0.2em; }
.slate { align-items: center; align-self: start; }
.slate__links { display: flex; gap: 8px; }
.slate__links a {
  text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg); letter-spacing: 0.12em; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.slate__links a:hover { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.slate__links a:last-child { border-color: var(--amber); color: var(--amber); }
.slate__links a:last-child:hover { background: var(--amber); color: var(--ink); }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px var(--gutter);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  background: rgba(11, 13, 17, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform 0.5s var(--ease);
}
.topbar.is-shown, .topbar.is-menu { transform: none; }
.topbar__menu, .swipe-hint { display: none; }
.topbar__menu {
  font: inherit; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--fg); color: var(--ink);
}
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--gutter) 40px; animation: menuIn 0.45s var(--ease);
}
.menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }
.menu__list { list-style: none; display: grid; gap: 14px; }
.menu__list { gap: 18px; }
.menu__list a {
  display: block; text-decoration: none; white-space: nowrap;
  font: 400 clamp(34px, 10.5vw, 56px)/1 var(--display); text-transform: uppercase;
}
.menu__list span { display: inline-block; width: 34px; font-size: 12px; color: var(--amber); letter-spacing: 0.12em; vertical-align: 0.9em; }
.menu__list em { font: italic 400 1.05em/0.8 var(--serif); text-transform: none; color: var(--amber); margin-left: 0.2em; }
.menu__page {
  display: block; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
  text-decoration: none; font: italic 400 clamp(30px, 9vw, 46px)/1 var(--serif);
}
.menu__page em { color: var(--amber); }
.menu__foot { margin-top: auto; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; overflow-wrap: anywhere; }
.topbar a { text-decoration: none; }

.hero__body { position: relative; z-index: 2; align-self: end; padding-bottom: 28px; }
.hero__name { line-height: 0.84; }
.hero__first {
  display: block;
  font: 400 clamp(76px, 19vw, 300px)/0.84 var(--display);
  text-transform: uppercase; letter-spacing: -0.005em;
}
.hero__polaroid {
  position: absolute; z-index: 2; right: 1vw; bottom: calc(100% - 150px);
  width: min(clamp(210px, 25vw, 380px), 30svh); padding: 10px 10px 36px; background: var(--paper);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6); transform: rotate(5deg);
  animation: rise 1.2s var(--ease) 0.5s both;
}
.hero__polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
@media (min-width: 601px) and (max-width: 1000px) {
  .hero__polaroid { width: min(30vw, 28svh); bottom: calc(100% + 32px); right: 1vw; }
}
@media (max-width: 600px) {
  .hero__polaroid { width: min(44vw, 190px, 24svh); padding: 7px 7px 22px; right: 0; bottom: calc(100% + 22px); }
}
.hero__last {
  display: block; margin-top: 0.06em;
  font: italic 400 clamp(40px, 8.4vw, 132px)/1 var(--serif);
}
.hero__last em { color: var(--amber); }
.hero__note { margin-top: 16px; font-size: clamp(24px, 2.6vw, 32px); transform: rotate(-2deg); transform-origin: left; display: inline-block; }
.hero__index {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero__index a { text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.hero__index a:hover { border-color: var(--amber); }
.hero__index b { color: var(--amber); margin-right: 4px; font-weight: 400; }
.hero__caption {
  position: relative; z-index: 2; padding: 0 0 22px;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  transition: opacity 0.6s;
}
.hero__body > * { animation: rise 1.2s var(--ease) both; }
.hero__body > :nth-child(2) { animation-delay: 0.2s; }
.hero__body > :nth-child(3) { animation-delay: 0.35s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Tira de película */
.strip {
  position: relative; overflow: hidden; background: var(--navy);
  padding: 16px 0;
  border-block: 1px solid #000;
}
.strip::before, .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(11, 13, 17, 0.9) 10px 22px, transparent 22px 32px);
  border-radius: 2px; opacity: 0.85;
}
.strip::before { top: 4px; }
.strip::after { bottom: 4px; }
.strip__track { display: flex; width: max-content; animation: strip 40s linear infinite; }
.strip span { font: 400 clamp(18px, 2.2vw, 26px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; padding: 8px 0; color: var(--fg); }
@keyframes strip { to { transform: translateX(-50%); } }

/* Bloques */
.block { padding: clamp(72px, 11vw, 150px) var(--gutter); position: relative; }
.block--deep { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.block__head {
  display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 18px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.block__num { align-self: start; padding-top: 0.6em; font-size: 12px; letter-spacing: 0.14em; color: var(--amber); }
.block__title { font: 400 clamp(52px, 9.5vw, 140px)/0.86 var(--display); text-transform: uppercase; }
.block__title em { font: italic 400 1.04em/0.8 var(--serif); text-transform: none; color: var(--amber); }
.block__aside { grid-column: 1 / -1; margin-top: 14px; font-size: 26px; transform: rotate(-1.5deg); transform-origin: left; max-width: 22ch; }
@media (min-width: 900px) {
  .block__head { grid-template-columns: auto 1fr auto; }
  .block__aside { grid-column: 3; margin: 0; text-align: right; transform-origin: right; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.chip {
  font-size: 12px; letter-spacing: 0.06em; padding: 7px 15px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.chip:hover { color: var(--fg); border-color: var(--blue); }
.chip.is-active { background: var(--fg); color: var(--ink); border-color: var(--fg); }

/* Proyectos */
.board {
  list-style: none; display: grid; gap: 64px 36px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.card[hidden] { display: none; }
.card__link { display: block; text-decoration: none; position: relative; }
.card__shot {
  position: relative; background: var(--paper); padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transform: rotate(var(--tilt));
  transition: transform 0.6s var(--ease);
}
.card__shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(0.9); transition: filter 0.6s; }
.card__link:hover .card__shot { transform: rotate(0) translateY(-6px); }
.card__link:hover .card__shot img { filter: saturate(1.05); }
.card__num {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font: 400 11px/1 var(--mono); letter-spacing: 0.1em; color: var(--fg);
  background: rgba(11, 13, 17, 0.75); padding: 5px 7px;
}
.card__year {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  font: 400 11px/1 var(--mono); letter-spacing: 0.14em; color: var(--fg);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); opacity: 0.85;
}
.card__fest {
  position: absolute; right: -8px; top: -12px; z-index: 4;
  font: 700 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--amber); color: var(--ink); padding: 7px 10px; transform: rotate(5deg);
}
.card__title { font: 400 clamp(30px, 3vw, 42px)/0.95 var(--display); text-transform: uppercase; margin: 22px 0 12px; transition: color 0.3s; }
.card__link:hover .card__title { color: var(--amber); }
.card__credits { display: grid; gap: 4px; font-size: 12px; }
.card__credits div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.card__credits dt { color: var(--muted); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.1em; padding-top: 1px; }

/* Portada tipográfica (proyectos sin imagen) */
.title-card {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 10px;
  aspect-ratio: 16 / 9; padding: 24px; text-align: center; overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 45%, rgba(227, 163, 74, 0.14), transparent 70%), radial-gradient(60% 60% at 15% 100%, rgba(47, 91, 211, 0.22), transparent 70%),
    var(--bg-3);
  color: var(--fg);
}
.title-card__top { position: absolute; top: 14px; left: 16px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.title-card__prod { position: absolute; bottom: 14px; right: 16px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.title-card__genre { font: italic 400 clamp(34px, 4.2vw, 56px)/1 var(--serif); color: var(--amber); }
.title-card--big { aspect-ratio: 2.39 / 1; min-height: 44svh; max-height: 80svh; width: 100%; }
.title-card--big .title-card__genre { font-size: clamp(56px, 10vw, 150px); }
.title-card--big .title-card__top, .title-card--big .title-card__prod { font-size: 12px; padding: 5% var(--gutter) 0; left: 0; }
.title-card--big .title-card__prod { padding: 0 var(--gutter) 5%; right: 0; }
.card__shot .title-card__top { left: 14px; }

/* Letterboxd */
.films {
  list-style: none; display: grid; gap: 44px 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(44%, 190px), 1fr));
}
.films__empty { grid-column: 1 / -1; color: var(--muted); }
.films__empty a { color: var(--amber); }
.film a { display: block; text-decoration: none; position: relative; }
.film__poster {
  display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg-3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s var(--ease);
}
.film__poster img { width: 100%; height: 100%; object-fit: cover; }
.film a:hover .film__poster { transform: translateY(-6px); }
.film__heart { position: absolute; top: 10px; right: 10px; color: var(--red); font-size: 18px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.film__title { display: block; margin-top: 16px; font: 400 19px/1.05 var(--display); text-transform: uppercase; }
.film__title small { font: 400 11px var(--mono); color: var(--muted); margin-left: 4px; }
.film__stars { display: block; margin-top: 6px; color: var(--amber); font-size: 15px; letter-spacing: 2px; }
.film__review { display: block; margin-top: 8px; font: italic 400 17px/1.3 var(--serif); color: #c9cbd2; }
.outline-link {
  display: inline-block; margin-top: 56px; padding: 11px 18px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; transition: border-color 0.25s, color 0.25s;
}
.outline-link:hover { border-color: var(--amber); color: var(--amber); }

/* Notas: fichas de papel */
.notes { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.note {
  position: relative; padding: 30px 24px 28px; min-height: 210px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(44, 73, 207, 0.12) 27px 28px);
  background-position: 0 58px;
}
.note:nth-child(1) { transform: rotate(-1.4deg); }
.note:nth-child(2) { transform: rotate(1deg); }
.note:nth-child(3) { transform: rotate(-0.6deg); }
.note:nth-child(4) { transform: rotate(1.6deg); }
.note h3 { font: 400 26px/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.note p { font: 400 20px/1.4 var(--serif); }
.note a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.note--accent { background-color: var(--amber); }
.note__stars { white-space: nowrap; }

a.note { display: block; text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
a.note:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55); }
.note--link { background-color: var(--fg); }
.note__arrow { display: inline-block; margin-top: 18px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid currentColor; }

/* Botón «Ver todos los proyectos» */
.board-more { display: table; margin: 64px auto 0; cursor: pointer; }
.board-more[hidden] { display: none; }

/* 3 notas en fila */
@media (min-width: 601px) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .note { padding: 28px 20px 26px; } }

/* Sección 04: avance de la bio que lleva a la página completa */
.teaser-block { border-top: 1px solid var(--line); }
.teaser { display: grid; gap: 40px; align-items: center; text-decoration: none; }
.teaser__photo { position: relative; background: var(--paper); padding: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); transform: rotate(-1.5deg); transition: transform 0.6s var(--ease); max-width: 420px; }
.teaser__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.teaser:hover .teaser__photo { transform: rotate(0) translateY(-6px); }
.teaser__body { display: grid; gap: 22px; justify-items: start; }
.teaser__body .block__num { padding-top: 0; }
.teaser__title { font: 400 clamp(52px, 8.5vw, 128px)/0.86 var(--display); text-transform: uppercase; }
.teaser__title em { font: italic 400 1.04em/0.8 var(--serif); text-transform: none; color: var(--amber); }
.teaser__text { font: 400 clamp(20px, 2vw, 26px)/1.4 var(--serif); color: #d6d6d8; max-width: 36ch; }
.teaser__cta { margin-top: 6px; }
.teaser:hover .teaser__cta { border-color: var(--amber); color: var(--amber); }
@media (min-width: 700px) { .teaser { grid-template-columns: minmax(220px, 0.8fr) 1.2fr; gap: 6vw; } }

/* Franja hacia la bio */
.bio-strip {
  display: flex; align-items: center; gap: 22px; margin-top: 56px;
  padding: 18px 26px 18px 18px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color 0.3s, background 0.3s;
}
.bio-strip:hover { border-color: var(--amber); background: rgba(227, 163, 74, 0.06); }
.bio-strip img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; }
.bio-strip__text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.bio-strip__title { font: 400 clamp(24px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; }
.bio-strip__title em { font: italic 400 1.05em/0.8 var(--serif); text-transform: none; color: var(--amber); }
.bio-strip__sub { font: 400 17px/1.35 var(--serif); color: var(--muted); }
.bio-strip__arrow { font-size: 28px; color: var(--amber); transition: transform 0.4s var(--ease); }
.bio-strip:hover .bio-strip__arrow { transform: translateX(6px); }

/* Contacto: cartón final */
.contact { text-align: center; padding-block: clamp(100px, 16vw, 220px); border-top: 1px solid var(--line); }
.contact__kicker { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact__title { margin: 0.42em 0 10px; font: 400 clamp(56px, 12vw, 190px)/0.86 var(--display); text-transform: uppercase; }
.contact__title em { font: italic 400 1.05em/0.8 var(--serif); text-transform: none; color: var(--amber); }
.contact__hint { font-size: 28px; margin-bottom: 30px; }
.contact__mail {
  display: inline-block; text-decoration: none; overflow-wrap: anywhere;
  font: italic 400 clamp(24px, 4.4vw, 60px)/1.1 var(--serif);
  background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease), color 0.3s;
}
.contact__mail:hover { background-size: 100% 1px; color: var(--amber); }
.contact__links { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.contact__links a {
  display: inline-block; padding: 9px 18px; text-decoration: none;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.contact__links a:hover { background: var(--fg); color: var(--ink); border-color: var(--fg); }

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 22px var(--gutter); border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

/* Ficha de proyecto */
.sheet {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  border: 0; background: var(--bg); color: var(--fg);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet[open] { animation: sheetIn 0.6s var(--ease); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.75); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px); } }
.sheet__close {
  position: fixed; top: 14px; right: var(--gutter); z-index: 5;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(11, 13, 17, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sheet__close:hover { background: var(--fg); color: var(--ink); }
.sheet__hero { position: relative; }
.sheet__hero img { width: 100%; aspect-ratio: 2.39 / 1; min-height: 44svh; max-height: 80svh; object-fit: cover; }
.sheet__hero::before, .sheet__hero::after { content: ""; position: absolute; left: 0; right: 0; height: 5%; background: #000; z-index: 1; }
.sheet__hero::before { top: 0; }
.sheet__hero::after { bottom: 0; }
.sheet__body { padding: 0 var(--gutter); max-width: 1300px; margin: 0 auto; }
.sheet__kicker { margin-top: 40px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sheet__title { font: 400 clamp(56px, 11vw, 160px)/0.86 var(--display); text-transform: uppercase; margin-top: 10px; }
.sheet__grid { display: grid; gap: 40px; margin-top: 40px; }
.sheet__label { font-size: 26px; margin-bottom: 10px; display: inline-block; transform: rotate(-2deg); }
.sheet__text p:not(.sheet__label) { font: 400 clamp(22px, 2.4vw, 30px)/1.32 var(--serif); max-width: 34ch; }
.sheet__credits { display: grid; gap: 16px; align-content: start; font-size: 13px; }
.sheet__credits > div { border-top: 1px solid var(--line); padding-top: 10px; }
.sheet__credits dt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
@media (min-width: 900px) { .sheet__grid { grid-template-columns: 1.6fr 1fr; column-gap: 7vw; } }
.sheet__gallery { display: grid; gap: 32px; margin-top: 64px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.sheet__gallery figure { position: relative; background: var(--paper); padding: 7px; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5); transform: rotate(var(--tilt)); }
.sheet__gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sheet__next {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  margin-top: clamp(64px, 9vw, 120px); padding: 44px var(--gutter);
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.sheet__next .mono { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.sheet__next span:last-child { font: 400 clamp(40px, 7vw, 96px)/1 var(--display); text-transform: uppercase; transition: transform 0.5s var(--ease); }
.sheet__next:hover span:last-child { transform: translateX(14px); }

/* Aparición */
.card, .note, .film, .block__head { opacity: 0; translate: 0 24px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); }
.is-in { opacity: 1; translate: 0 0; }

@media (max-width: 600px) {
  :root { --gutter: 24px; }

  /* Navegación: barra fija siempre visible con menú */
  .topbar { transform: none; background: linear-gradient(rgba(11, 13, 17, 0.85), rgba(11, 13, 17, 0.6)); }
  .topbar__desk { display: none; }
  .topbar__menu { display: inline-block; }
  .hero .slate { visibility: hidden; }
  .hero__reel { bottom: auto; height: 68svh; }
  .hero__reel::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 17, 0.35) 30%, rgba(11, 13, 17, 0) 60%, rgba(11, 13, 17, 0.55) 100%);
  }

  /* Carruseles horizontales */
  .rail {
    display: flex !important; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 18px var(--gutter) 26px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; flex: 0 0 auto; opacity: 1 !important; translate: none !important; }
  .swipe-hint { display: block; margin-top: 2px; font-size: 22px; text-align: right; }
  .board > .card { width: 80%; }
  .board > .card[hidden] { display: none; }
  .films > .film { width: 44%; }
  .notes > .note { width: 82%; }
  .board-more { margin-top: 28px; }
  .teaser { gap: 32px; }
  .teaser__photo { max-width: 260px; }
  .teaser__text { font-size: 19px; }
  .bio-strip { margin-top: 28px; border-radius: 20px; padding: 14px 18px 14px 14px; gap: 14px; }
  .bio-strip img { width: 52px; height: 52px; }
  .bio-strip__sub { font-size: 15px; }

  body { font-size: 14px; }
  .slate__hide { display: none; }
  .slate__links a { padding: 6px 11px; }
  .hero__body { padding-bottom: 20px; }
  .hero__note { margin-top: 18px; }
  .hero__index { gap: 12px 20px; margin-top: 30px; }

  .block { padding-block: 80px; }
  .block__head { margin-bottom: 36px; column-gap: 12px; }
  .block__aside { font-size: 22px; margin-top: 16px; }
  .chips { gap: 8px 6px; margin-bottom: 48px; }
  .chip { padding: 6px 13px; }


  .card__shot { padding: 6px; }
  .card__fest { right: 0; top: -14px; }
  .card__title { margin: 28px 0 14px; }
  .card__credits { gap: 8px; font-size: 12.5px; line-height: 1.5; }
  .card__credits div { grid-template-columns: 84px 1fr; }

  .film__title { font-size: 18px; margin-top: 14px; }
  .film__review { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .outline-link { margin-top: 28px; }


  .note { padding: 34px 26px 32px; min-height: 0; }
  .note h3 { font-size: 23px; margin-bottom: 16px; }
  .note p { font-size: 18px; line-height: 1.55; }

  .contact { padding-block: 120px; }
  .contact__hint { font-size: 24px; padding: 0 8px; }
  .contact__links { gap: 10px 8px; }

  .sheet__grid { gap: 48px; }
  .sheet__text p:not(.sheet__label) { font-size: 21px; line-height: 1.45; }
  .sheet__credits { gap: 18px; }

  .bio-body { gap: 44px; }
  .bio-text { font-size: 18px; line-height: 1.6; gap: 22px; }
  .bio-facts { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card, .note, .film, .block__head { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}

/* Página de bio */
.bio-top { padding: 0 var(--gutter); }
.bio-top .slate { padding-top: 18px; }
.bio-top a { text-decoration: none; }
.bio-back:hover { color: var(--amber); }
.bio-hero { padding: clamp(40px, 7vw, 100px) var(--gutter) 0; display: grid; gap: 40px; align-items: end; }
.bio-hero__title { font: 400 clamp(72px, 16vw, 240px)/0.84 var(--display); text-transform: uppercase; }
.bio-hero__title em { font: italic 400 1.04em/0.8 var(--serif); text-transform: none; color: var(--amber); }
.bio-hero__still { position: relative; background: var(--paper); padding: 8px 8px 0; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); transform: rotate(1.2deg); }
.bio-hero__still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bio-hero__still figcaption { color: var(--ink); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 2px; }
.bio-hero__still--portrait { max-width: 520px; transform: rotate(-1.5deg); }
.bio-hero__still--portrait img { aspect-ratio: 1297 / 1400; height: auto; }
@media (min-width: 900px) { .bio-hero { grid-template-columns: 1fr 0.9fr; } .bio-hero__still--portrait { justify-self: end; width: 100%; } }
.bio-body { padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(80px, 10vw, 140px); display: grid; gap: 48px; }
.bio-lead { font: italic 400 clamp(30px, 3.8vw, 54px)/1.12 var(--serif); max-width: 22ch; }
.bio-text { display: grid; gap: 18px; max-width: 62ch; font: 400 clamp(19px, 1.6vw, 22px)/1.5 var(--serif); color: #d6d6d8; }
.bio-label { font: 400 clamp(30px, 3.4vw, 44px)/1 var(--display); text-transform: uppercase; color: var(--fg); border-top: 1px solid var(--line); padding-top: 32px; align-self: start; }
.bio-text a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bio-text a:hover { color: var(--amber); }
.bio-text__first { font-style: italic; color: var(--fg); }
.bio-facts { display: grid; gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.bio-facts dt { font: 400 clamp(24px, 2.4vw, 30px)/1 var(--display); text-transform: uppercase; color: var(--fg); margin-bottom: 16px; }
.bio-facts dd { font: 400 20px/1.45 var(--serif); margin-bottom: 8px; color: #d6d6d8; }
.bio-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.bio-cta .outline-link { margin-top: 0; }
@media (min-width: 900px) {
  .bio-body { grid-template-columns: 0.9fr 1.1fr; column-gap: 7vw; }
  .bio-facts, .bio-cta { grid-column: 1 / -1; }
  .bio-facts { grid-template-columns: 2fr 1fr; }
  .bio-label + .bio-text { border-top: 1px solid var(--line); padding-top: 32px; }
}

/* Línea entre «Lo que me mueve» y «Lo que hago» (mismo fondo) */
#hago { border-top: 1px solid var(--line); }

/* «Ahora leyendo» dentro de la ficha amarilla */
.note__part { margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed rgba(23, 21, 19, 0.35); }
.note__part[hidden] { display: none; }
.note__author { display: block; margin-top: 4px; font: 400 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* Selector de idioma */
.slate__links a.lang-switch { border-color: var(--line); color: var(--muted); }
.slate__links a.lang-switch:hover { color: var(--ink); background: var(--fg); border-color: var(--fg); }
.menu__lang { display: inline-block; margin-top: 36px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); text-decoration: none; }

/* Página de enlaces (/links) */
.links-page { min-height: 100svh; display: grid; place-items: center; background:
  radial-gradient(90% 60% at 50% 0%, rgba(47, 91, 211, 0.18), transparent 70%), var(--bg); }
.links { width: min(100%, 440px); padding: 56px 24px 48px; text-align: center; }
.links__name { font: 400 clamp(40px, 12vw, 56px)/0.92 var(--display); text-transform: uppercase; }
.links__name em { display: block; margin-top: 6px; font: italic 400 0.6em/1 var(--serif); text-transform: none; color: var(--amber); }
.links__list { list-style: none; display: grid; gap: 12px; margin-top: 40px; }
.links__item {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
  padding: 15px 20px; text-align: left; text-decoration: none;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(235, 231, 223, 0.03);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.links__item:hover { border-color: var(--amber); background: rgba(227, 163, 74, 0.08); transform: translateY(-2px); }
.links__icon { display: grid; place-items: center; width: 40px; height: 28px; }
.links__icon svg { width: 26px; height: 26px; }
.links__icon--wide svg { width: 40px; height: 20px; }
.links__label { font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.links__arrow { font-size: 22px; color: var(--amber); }
.links__item--main { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.links__item--main:hover { background: var(--amber); border-color: var(--amber); }
.links__item--main .links__arrow { color: var(--ink); }
.links__mail { display: inline-block; margin-top: 30px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.links__mail:hover { color: var(--amber); border-color: var(--amber); }

/* Estado «Ahora» en /links */
.status { margin: 30px auto 0; padding: 14px 18px 12px; text-align: left; border: 1px dashed rgba(227, 163, 74, 0.45); border-radius: 16px; background: rgba(227, 163, 74, 0.05); }
.status[hidden], .status__row[hidden] { display: none; }
.status__head { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.status__row { display: grid; grid-template-columns: 26px auto 1fr; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none; }
.status__row + .status__row { border-top: 1px solid var(--line); }
.status__icon svg { width: 22px; height: 22px; display: block; }
.status__label { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.status__value { font: 400 17px/1.2 var(--serif); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status__stars { color: var(--amber); font-size: 13px; letter-spacing: 1px; }
a.status__row:hover .status__value { color: var(--amber); }
@media (prefers-reduced-motion: reduce) { .status__dot { animation: none; } }
