/* ==========================================================================
   Víctor Emperador — Portfolio
   Formato "diapositivas" a sangre, como los portfolios de Behance de referencia
   ========================================================================== */

:root {
  --ink: #161616;
  --paper: #efefef;
  --slate: #31353f;
  --smoke: #2d2a2b;
  --grey: #8d8f96;
  --accent: #ffc845;
  --game: #a46bff;
  --game-contrast: #7443b5;
  --game-contrast: #7443b5;

  --display: "Outfit", system-ui, sans-serif;
  --body: system-ui, sans-serif;

  --pad: 16px;
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
}

@media (min-width: 1000px) {
  :root {
    --pad: 6.5vw;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 52px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 0.95;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Texto que falta por rellenar */
.tbd {
  opacity: 0.5;
}

/* ---------- Navegación (se invierte sobre fondos claros y oscuros) ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--pad);
  color: #fff;
  background: rgba(22, 22, 22, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav__name {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links li:not(:last-child) {
  display: none;
}

.nav__links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (min-width: 760px) {
  .nav__links li:not(:last-child) {
    display: block;
  }
}

/* ---------- Diapositiva ---------- */
.slide {
  position: relative;
  overflow: hidden;
  padding: 72px var(--pad) 40px;
}

@media (min-width: 1000px) {
  .slide {
    aspect-ratio: 16 / 9;
    padding: 0;
  }
}

.slide--paper {
  background: var(--paper);
  color: var(--ink);
}

.slide--slate {
  background: var(--slate);
}

.slide--smoke {
  background: var(--smoke);
}

/* Pie de cada diapositiva, como en el portfolio de Anna */
.slide__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 32px;
  margin-top: 32px;
  font-size: 0.9rem;
}

.slide__foot strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.slide__foot a {
  text-decoration: none;
}

@media (min-width: 1000px) {
  .slide__foot {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    bottom: 3.2vw;
    margin: 0;
    font-size: 1.1vw;
  }
  .slide__foot strong {
    font-size: 1.35vw;
  }
}

/* ---------- Hueco para imagen (marco de maquetación) ---------- */
.frame {
  position: relative;
  min-height: 200px;
  background:
    linear-gradient(to top right, transparent calc(50% - 0.6px), var(--frame-line) 50%, transparent calc(50% + 0.6px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.6px), var(--frame-line) 50%, transparent calc(50% + 0.6px)),
    var(--frame-bg);
  border: 1px solid var(--frame-line);
  --frame-bg: #e3e3e3;
  --frame-line: #c4c4c4;
}

.slide--slate .frame,
.slide--smoke .frame,
.dark .frame {
  --frame-bg: rgba(255, 255, 255, 0.04);
  --frame-line: rgba(255, 255, 255, 0.16);
}

.frame span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 14px;
  background: #e3e3e3;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64666d;
  white-space: nowrap;
}

.slide--paper .frame span {
  background: #e3e3e3;
}

.slide--slate .frame span {
  background: #383c46;
}

.slide--smoke .frame span {
  background: #343132;
}

@media (min-width: 1000px) {
  .frame {
    min-height: 0;
  }
  .frame span {
    font-size: 0.85vw;
  }
}

/* ==========================================================================
   1. Portada — nombre a la izquierda, arte con borde de pincel a la derecha
   ========================================================================== */
.cover {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  background: var(--ink);
}

.cover__art {
  height: 62vw;
  min-height: 260px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 93% 96%, 85% 91%, 76% 97%, 66% 93%, 58% 98%, 47% 92%, 38% 97%, 27% 92%, 18% 98%, 9% 93%, 0 97%);
}

.cover__art {
  background: #1a0f16;
}

.cover__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.cover__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 88px var(--pad) 48px;
}

.cover__name {
  font-weight: 700;
  font-size: clamp(3.4rem, 15vw, 7rem);
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1;
}

.cover__role {
  font-family: var(--body);
  font-size: clamp(1.3rem, 2.4vw, 2.6rem);
  font-weight: 400;
}

.cover__contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 40px;
  margin-top: 24px;
  font-size: 1rem;
}

.cover__contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.cover__contact a:hover {
  color: var(--accent);
}

.cover__contact svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
}

@media (min-width: 1000px) {
  .cover {
    grid-template-columns: 1.6fr 1fr;
  }
  .cover__text {
    padding: 0 0 0 var(--pad);
    gap: 1.2vw;
  }
  .cover__name {
    font-size: 7.8vw;
  }
  .cover__role {
    font-size: 2.6vw;
  }
  .cover__contact {
    grid-template-columns: auto auto;
    justify-content: start;
    margin-top: 6vw;
    font-size: 1.3vw;
    gap: 1.6vw 4vw;
  }
  .cover__contact svg {
    width: 1.5vw;
    height: 1.5vw;
  }
  .cover__art {
    height: 100%;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 5% 100%, 9% 95%, 3% 89%, 8% 83%, 2% 76%, 7% 69%, 1% 62%, 6% 55%, 0 48%, 5% 41%, 1% 34%, 7% 27%, 2% 20%, 8% 13%, 3% 6%);
  }
}

/* ==========================================================================
   2. Índice — imagen clara + panel pizarra con la palabra enorme cruzando
   ========================================================================== */
.contents {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  background: var(--slate);
}

.contents__art {
  --frame-bg: #e3e3e3;
  --frame-line: #c4c4c4;
  min-height: 52vw;
  border: 0;
}

.contents__panel {
  position: relative;
  padding: 48px var(--pad) 56px;
}

.contents__title {
  font-size: clamp(3.4rem, 17vw, 8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 36px;
}

.contents__list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contents__list a {
  text-decoration: none;
  display: block;
}

.contents__list strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  transition: color 0.2s ease;
}

.contents__list span {
  font-size: 0.9rem;
  color: #c3c5cc;
}

.contents__list a:hover strong {
  color: var(--accent);
}

@media (min-width: 1000px) {
  .contents {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 6vw;
    padding: 6vw var(--pad);
  }
  .contents__art {
    min-height: 0;
    height: 100%;
    margin: 0;
    border-radius: 4px;
  }
  .contents__panel {
    padding: 0;
  }
  .contents__title {
    font-size: 6.4vw;
    margin: 0 0 3vw;
  }
  .contents__list {
    padding-left: 0;
    gap: 2.2vw;
  }
  .contents__list strong {
    font-size: 1.5vw;
  }
  .contents__list span {
    font-size: 1vw;
  }
}

/* ==========================================================================
   Separador de capítulo con número romano
   ========================================================================== */
.chapter {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 70vw;
  background: var(--ink);
}

.chapter__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.2) 55%, rgba(10, 10, 12, 0) 100%);
}

.chapter__text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.chapter__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 1;
}

.chapter__label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

@media (min-width: 1000px) {
  .chapter {
    min-height: 0;
    padding: 0 var(--pad) 5vw;
  }
  .chapter__text {
    gap: 0.8vw;
  }
  .chapter__num {
    font-size: 6.4vw;
  }
  .chapter__label {
    font-size: 1vw;
  }
}

/* ==========================================================================
   Juego — composición tipo "Assets made for the game 'Harmony'"
   ========================================================================== */
.game {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.game__shot {
  aspect-ratio: 16 / 10;
}

.game__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game__title {
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 800;
}

.game__title em {
  font-style: normal;
  color: var(--game-contrast);
}

.game__text {
  font-size: 1rem;
  color: #3d4049;
}

.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 22px;
  margin: 0;
  font-size: 0.95rem;
}

.specs dt {
  font-family: var(--display);
  font-weight: 700;
}

.specs dd {
  margin: 0;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.9rem;
}

.keys b {
  font-family: var(--display);
  display: inline-block;
  padding: 2px 9px;
  margin-right: 4px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-size: 0.85em;
}

.game__mine {
  font-size: 0.95rem;
}

.game__mine h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.btn-play {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-play:hover {
  background: var(--game);
  color: #fff;
}

.game__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.game__strip .frame {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.game__strip .frame span {
  font-size: 0.65rem;
  padding: 4px 8px;
}

@media (min-width: 1000px) {
  .game {
    grid-template-columns: 1.25fr 1fr;
    gap: 3.5vw;
    padding: 3.6vw var(--pad) 7vw;
  }
  .game__left {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 1vw;
  }
  .game__shot {
    aspect-ratio: auto;
  }
  .game__strip {
    gap: 1vw;
    height: 7vw;
  }
  .game__strip .frame {
    aspect-ratio: auto;
  }
  .game__strip .frame span {
    font-size: 0.65vw;
  }
  .game__info {
    gap: 0.85vw;
    justify-content: flex-start;
  }
  .game__title {
    font-size: 3.2vw;
  }
  .game__text,
  .specs,
  .game__mine {
    font-size: 0.95vw;
    line-height: 1.45;
  }
  .specs {
    gap: 0.25vw 1.5vw;
  }
  .keys {
    font-size: 0.85vw;
    gap: 0.35vw 0.9vw;
  }
  .game__mine h3 {
    font-size: 1.1vw;
    margin-bottom: 0.2vw;
  }
  .btn-play {
    font-size: 0.95vw;
    padding: 0.75vw 1.5vw;
  }
}

/* ==========================================================================
   Galerías de 3D, maquetas y bocetos
   ========================================================================== */
.gallery-slide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.gallery-slide__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-slide__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
}

.slide--paper .gallery-slide__num {
  color: #744600;
}

.gallery-slide__title {
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-slide__desc {
  font-size: 0.95rem;
  max-width: 36ch;
  opacity: 0.75;
}

.grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.grid .frame {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.grid .frame--big {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

/* 3D: texto a la izquierda, render grande + turnaround */
@media (min-width: 1000px) {
  .gallery-slide {
    gap: 3.5vw;
    padding: 5vw var(--pad) 8vw;
  }
  .gallery-slide--side {
    grid-template-columns: 1fr 2.6fr;
  }
  .gallery-slide--side .gallery-slide__head {
    justify-content: flex-end;
    padding-bottom: 1vw;
  }
  .gallery-slide--top {
    grid-template-rows: auto 1fr;
  }
  .gallery-slide--top .gallery-slide__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .gallery-slide__num {
    font-size: 1.3vw;
  }
  .gallery-slide__title {
    font-size: 5.4vw;
  }
  .gallery-slide__desc {
    font-size: 1.05vw;
  }
  .grid {
    gap: 1vw;
    height: 100%;
  }
  .grid .frame,
  .grid .frame--big {
    aspect-ratio: auto;
    grid-column: auto;
  }
  .grid--3d {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .grid--3d .frame--big {
    grid-row: span 2;
  }
  .grid--duo {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .grid--duo .frame--big {
    grid-row: span 2;
  }
  .grid--mock {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .grid--mock .frame--big {
    grid-row: span 2;
  }
  .grid--mock .frame--wide {
    grid-column: span 2;
  }
  .grid--sketch {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr 1fr;
  }
  .grid--sketch .frame--tall {
    grid-row: span 2;
  }
  .grid--sketch .frame--wide {
    grid-column: span 2;
  }
}

/* ---------- Imágenes y vídeos reales dentro de las rejillas ---------- */
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0d0d0f;
}

.shot a {
  display: block;
  height: 100%;
  cursor: zoom-in;
}

.shot img,
.shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shot a:hover img {
  transform: scale(1.04);
}

.shot--contain {
  background: #f4f2ee;
}

.shot--contain img {
  object-fit: contain;
}

.shot figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 10px;
  background: rgba(14, 14, 16, 0.78);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.shot video + figcaption {
  top: 0;
  bottom: auto;
}

.grid .shot {
  aspect-ratio: 4 / 3;
}

.grid .shot.frame--big,
.grid .shot.frame--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tags li {
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  opacity: 0.8;
}

.contents__art {
  position: relative;
  overflow: hidden;
}

.contents__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid--loops .shot {
  aspect-ratio: 21 / 32;
  background: #2e3036;
}

.grid--loops video {
  object-fit: contain;
}

/* Proyecto destacado: vídeo 16:9 arriba y tira de cuatro imágenes debajo */
.grid--feature .shot--video {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

/* Concept art: rejilla de 3 × 3 con piezas grandes */
@media (min-width: 1000px) {
  .grid {
    min-height: 0;
  }
  .shot img,
  .shot video {
    position: absolute;
    inset: 0;
  }
  .grid--feature {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto 1fr;
  }
  .grid .shot,
  .grid .shot.frame--big {
    aspect-ratio: auto;
    grid-column: auto;
  }
  .grid--3d .shot.frame--big,
  .grid--mock .shot.frame--big,
  .grid--concept .frame--tall {
    grid-row: span 2;
  }
  .grid--mock .frame--wide {
    grid-column: span 2;
  }
  .grid--concept {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  .grid--concept .frame--tall {
    grid-column: span 2;
  }
  .grid--loops {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid--feature .shot.shot--video {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .shot figcaption {
    font-size: 0.65vw;
    padding: 0.3vw 0.8vw;
  }
  .tags {
    gap: 0.4vw;
    margin-top: 0.6vw;
  }
  .tags li {
    font-size: 0.8vw;
    padding: 0.2vw 0.8vw;
  }
}

/* ==========================================================================
   Simulación — vídeo grande en bucle + explicación técnica
   ========================================================================== */
.sim {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: #101418;
}

.sim__media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.sim__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim .gallery-slide__title {
  font-size: clamp(2.2rem, 9vw, 3.6rem);
}

.domains {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.domains b {
  display: inline-block;
  min-width: 1.6em;
  color: #6fd6c8;
  font-family: var(--display);
  font-weight: 800;
}

@media (min-width: 1000px) {
  .sim {
    grid-template-columns: 1.9fr 1fr;
    gap: 3.5vw;
    padding: 5vw var(--pad) 8vw;
    align-items: center;
  }
  .sim .gallery-slide__title {
    font-size: 3.6vw;
  }
  .sim__text {
    gap: 1.1vw;
  }
  .domains {
    gap: 0.4vw;
    font-size: 1vw;
  }
}

/* Visor de imágenes */
.lightbox {
  max-width: 94vw;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(8, 8, 10, 0.92);
}

.lightbox img {
  max-width: 94vw;
  max-height: 94vh;
  object-fit: contain;
  cursor: zoom-out;
}

.lightbox__close {
  position: fixed;
  top: 14px;
  right: 18px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   ¡Hola! — foto, bio, skills, formación y experiencia
   ========================================================================== */
.hello {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.hello__photo {
  aspect-ratio: 4 / 5;
  max-width: 360px;
  border-radius: 28px;
  overflow: hidden;
}

.hello__title {
  font-size: clamp(3.4rem, 14vw, 6rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.hello__bio {
  font-size: 1.02rem;
  text-align: justify;
  hyphens: auto;
}

.hello__bio + .hello__bio {
  margin-top: 16px;
}

.hello h3 {
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 32px 0 14px;
}

.hello__col > h3:first-child {
  margin-top: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 14px;
}

.skills li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(22, 22, 22, 0.12);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.7rem;
}

.skills img {
  width: 34px;
  height: 34px;
}

.hello .slide__foot {
  color: var(--ink);
}

.hello .slide__foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hello .slide__foot svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 1000px) {
  .hello {
    grid-template-columns: 0.95fr 1.25fr 0.9fr;
    gap: 4.5vw;
    padding: 7vw var(--pad) 10vw;
  }
  .hello__photo {
    max-width: none;
    aspect-ratio: auto;
    border-radius: 2.2vw;
  }
  .hello__title {
    font-size: 6vw;
    margin-bottom: 3vw;
  }
  .hello__bio {
    font-size: 1.2vw;
  }
  .hello h3 {
    font-size: 2.2vw;
    margin: 3vw 0 1.4vw;
  }
  .timeline {
    gap: 1.4vw;
    font-size: 1.15vw;
  }
  .skills {
    grid-template-columns: repeat(3, 5.2vw);
    gap: 1.1vw;
  }
  .skills li {
    width: 5.2vw;
    height: 5.2vw;
    gap: 0.4vw;
    border-radius: 0.8vw;
    font-size: 0.75vw;
  }
  .skills img {
    width: 2.4vw;
    height: 2.4vw;
  }
  .hello .slide__foot svg {
    width: 1.2vw;
    height: 1.2vw;
  }
}

/* ==========================================================================
   Gracias — cierra igual que la portada
   ========================================================================== */
.thanks .cover__name {
  color: var(--paper);
  font-size: clamp(3.6rem, 17vw, 8rem);
}

.thanks .cover__role {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.thanks .cover__art img {
  object-position: 30% 70%;
}

@media (min-width: 1000px) {
  .thanks .cover__name {
    font-size: 7.8vw;
    line-height: 1.05;
  }
  .thanks .cover__contact {
    margin-top: 2.5vw;
  }
}

.credit {
  padding: 22px var(--pad);
  font-size: 0.8rem;
  color: var(--grey);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* ==========================================================================
   Añadidos: Sound Proof y foto de perfil
   ========================================================================== */
video.chapter__bg {
  display: block;
}

.game__shot video {
  background: #0d0d0f;
}

.game__strip .shot {
  aspect-ratio: 16 / 10;
}

/* Botón de juego aún sin enlace */
.btn-play--soon {
  background: transparent;
  color: var(--ink);
  border: 2px dashed var(--grey);
  cursor: default;
}

.btn-play--soon:hover {
  background: transparent;
  color: var(--ink);
}

.hello__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

@media (min-width: 1000px) {
  .game__left .game__shot {
    aspect-ratio: auto;
    min-height: 0;
  }
  .game__strip .shot {
    aspect-ratio: auto;
  }
}

/* Que el vídeo no ensanche la rejilla en móvil */
.game > *,
.game__left > *,
.game__strip > * {
  min-width: 0;
}

.game__strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ==========================================================================
   Sound Proof — Proyecto Destacado y enlaces
   ========================================================================== */
.nav a.nav__highlight {
  color: var(--game);
  font-weight: 700;
}

.nav a.nav__highlight:hover {
  color: #fff;
}

.cover__featured {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 8px 14px;
  background: rgba(164, 107, 255, 0.12);
  border: 1px solid rgba(164, 107, 255, 0.35);
  border-radius: 8px;
  width: fit-content;
  max-width: 100%;
}

.cover__featured-badge {
  background: var(--game-contrast);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  flex: none;
}

.cover__featured-link {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.cover__featured-link strong {
  color: #fff;
}

.cover__featured-link:hover {
  color: var(--accent);
}

.game__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game__badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--game-contrast);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.game__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(22, 22, 22, 0.25);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cert:hover {
  border-color: var(--game);
  color: var(--game-contrast);
  background: rgba(164, 107, 255, 0.08);
}

.link-cert {
  color: var(--game-contrast);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.link-cert:hover {
  color: var(--ink);
}

.btn-play--featured {
  background: var(--game-contrast);
  color: #fff;
  box-shadow: 0 4px 16px rgba(164, 107, 255, 0.35);
}

.btn-play--featured:hover {
  background: #63369a;
  color: #fff;
  box-shadow: 0 6px 22px rgba(164, 107, 255, 0.55);
  transform: translateY(-2px);
}

@media (min-width: 1000px) {
  .cover__featured {
    margin-top: 0.5vw;
    padding: 0.7vw 1.2vw;
    border-radius: 0.6vw;
    gap: 0.8vw;
  }
  .cover__featured-badge {
    font-size: 0.8vw;
    padding: 0.3vw 0.7vw;
  }
  .cover__featured-link {
    font-size: 1.15vw;
  }
  .game__header {
    gap: 0.3vw;
  }
  .game__badge {
    font-size: 0.75vw;
    padding: 0.25vw 0.6vw;
  }
  .game__actions {
    gap: 0.8vw;
    margin-top: 0.2vw;
  }
  .btn-cert {
    font-size: 0.95vw;
    padding: 0.75vw 1.4vw;
  }
}
