:root {
  --bg: #0a0c11;
  --bg-2: #10131a;
  --surface: #151922;
  --line: #232836;
  --text: #e9ecf2;
  --muted: #8b92a5;
  --accent: #3df5c4;      /* mint neón */
  --accent-2: #8b7bff;    /* violeta */
  --accent-ink: #04140f;
  --display: "Anton", "Impact", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); scrollbar-color: #2a3040 var(--bg); }
/* Ningún adorno (resplandores, degradados de borde) puede ensanchar la página en móvil */
main, footer { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
.display {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .005em;
  font-weight: 400;
}

/* ---------- NAV ---------- */
header.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled { background: rgba(10,12,17,.82); backdrop-filter: blur(12px); border-color: var(--line); }
/* degradado oscuro bajo la cabecera para que el logo se lea sobre imágenes claras */
header.nav::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,12,17,.92) 0%, rgba(10,12,17,.7) 45%, transparent);
  transition: opacity .3s;
}
header.nav.scrolled::before { opacity: 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--display); font-size: 20px; line-height: .9; text-transform: uppercase; letter-spacing: .02em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; border: 1px solid var(--line); }
.lang-switch button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; padding: 6px 10px;
  background: none; border: 0; color: var(--muted); cursor: pointer; transition: color .2s, background .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.menu-btn span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .25s, opacity .25s; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding: 0; }
/* Fundido breve a negro: la imagen saliente se apaga y la nueva empieza a aparecer casi enseguida */
.slides { position: absolute; inset: 0; background: #000; }
.slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform 1s linear .7s;
}
.slide.active {
  opacity: 1; transform: scale(1);
  transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1) .35s, transform 9s cubic-bezier(.2, 0, .3, 1) .35s;
}
/* Trama de puntos sobre las imágenes: la imagen se ve a través de pequeños agujeros redondos,
   lo que disimula la baja resolución de algunas capturas */
.slides::after, .p-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, transparent 1px, rgba(10,12,17,.5) 1.6px);
  background-size: 4px 4px;
}
.p-hero::before { z-index: 1; }
/* Puntos interactivos que se encienden alrededor del cursor (canvas en index.html) */
.hero-dots { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
/* La zona libre del hero se puede pulsar para pasar de imagen; los textos conservan su cursor normal */
.hero { cursor: pointer; }
.hero :is(h2, .label) { cursor: auto; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  /* oscurece solo abajo (detrás del texto), un poco a la izquierda y una franja arriba para la identidad;
     el resto de la captura queda limpio */
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10,12,17,.82) 18%, rgba(10,12,17,.45) 38%, rgba(10,12,17,0) 60%),
    linear-gradient(90deg, rgba(10,12,17,.6) 0%, rgba(10,12,17,0) 50%),
    linear-gradient(to bottom, rgba(10,12,17,.5) 0%, rgba(10,12,17,0) 22%);
}
.hero-ui {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: center; align-items: center; gap: 24px;
  pointer-events: none;
}
.hero-ui > * { pointer-events: auto; }
.slide-dots { display: flex; align-items: center; gap: 8px; }
.slide-dot {
  position: relative; overflow: hidden; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
  background: rgba(255,255,255,.35); cursor: pointer; transition: width .35s ease, background .2s;
}
.slide-dot::before { content: ""; position: absolute; inset: -8px; } /* área táctil más grande */
.slide-dot:hover { background: rgba(255,255,255,.7); }
.slide-dot.active { width: 34px; background: rgba(255,255,255,.25); }
.slide-dot i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: inherit; }
.slide-dot.active i { animation: progress var(--slide-ms) linear forwards; }
.hero.paused .slide-dot.active i { animation-play-state: paused; }
.hero.static .slide-dot.active i { animation: none; width: 100%; }
@keyframes progress { to { width: 100%; } }
.arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(10,12,17,.45); backdrop-filter: blur(6px);
  color: var(--text); cursor: pointer; transition: border-color .2s, color .2s, background .2s, opacity .2s;
}
.arrow svg { width: 20px; height: 20px; }
.arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.arrow:disabled { opacity: .3; cursor: default; }
.hero-arrow { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; }
.hero-arrow { transition: border-color .2s, color .2s, background .2s, opacity .35s, visibility .35s; }
.hero.scrolled .hero-arrow { opacity: 0; visibility: hidden; }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
/* El texto de cada proyecto va abajo a la izquierda */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 180px; padding-bottom: 104px; }
.hero-title { font-size: clamp(28px, min(3.6vw, 6svh), 52px); line-height: 1.02; max-width: 18ch; margin: 14px 0 26px; }
.hero-text { transition: opacity .35s ease, transform .35s ease; }
.hero-text.swap { opacity: 0; transform: translateY(14px); }
.hero .cta { margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 26px; border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 500; }
.btn.primary:hover { background: #fff; border-color: #fff; }
.btn.ghost { background: rgba(255,255,255,.04); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- SECTIONS ---------- */
section { padding: clamp(80px, 12vw, 140px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(36px, 5.5vw, 64px); margin-top: 14px; }

/* ---------- MARQUEE PROJECTS ---------- */
.projects { padding-bottom: 60px; border-top: 1px solid var(--line); }
.carousel { position: relative; }
.track {
  --inset: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 6px var(--inset) 14px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.car-arrow { position: absolute; z-index: 2; top: calc(50% - 4px); translate: 0 -50%; } /* centro de la tarjeta (descontando el padding inferior del track) */
.car-arrow.prev { left: 16px; }
.car-arrow.next { right: 16px; }
/* bandas oscuras en los bordes para que las flechas no tapen las tarjetas */
.carousel::before, .carousel::after {
  content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 96px; pointer-events: none;
}
.carousel::before { left: -2px; background: linear-gradient(90deg, var(--bg) 35%, transparent); } /* sobrepasa el borde para no dejar líneas de subpíxel */
.carousel::after { right: -2px; background: linear-gradient(-90deg, var(--bg) 35%, transparent); }
/* Tarjetas anchas casi pegadas (2 px): se leen como una tira continua */
.card {
  position: relative; width: clamp(300px, 33vw, 440px); flex: none; background: var(--surface);
}
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s; }
.card:hover::after, .card:focus-visible::after { box-shadow: inset 0 0 0 1px var(--accent); }
.thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; background-size: cover; background-position: center; transition: filter .3s; filter: saturate(.85); }
.card:hover .thumb { filter: none; }
.thumb .tag { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; padding: 4px 8px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.15); }
.thumb .glyph { position: absolute; right: 16px; bottom: 6px; font-family: var(--display); font-size: 80px; color: rgba(255,255,255,.18); line-height: 1; }
.card-body { padding: 20px 24px 24px; }
.card-body .num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.card-body h3 { font-family: var(--display); font-weight: 400; font-size: 28px; text-transform: uppercase; margin: 6px 0 2px; line-height: 1.05; }
.card-body p { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* ---------- FEATURED ---------- */
/* Imagen panorámica que llega hasta el borde de la pantalla (alternando lado) y se desplaza con el scroll */
.feature {
  --bleed: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gutter));
  display: grid; grid-template-columns: 1.75fr 1fr; gap: clamp(24px, 4.5vw, 64px); align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.feature:nth-child(even) { grid-template-columns: 1fr 1.75fr; }
.feature:nth-child(even) .feature-media { order: 2; margin-right: calc(-1 * var(--bleed)); }
.feature:nth-child(odd) .feature-media { margin-left: calc(-1 * var(--bleed)); }
.feature-media { aspect-ratio: 21/10; position: relative; overflow: hidden; display: block; background: #000; }
.fm-img {
  position: absolute; inset: -13% 0; background-size: cover; background-position: center;
  transform: scale(1.04); will-change: transform; transition: filter .3s; filter: saturate(.9) brightness(.85);
}
.feature-media:hover .fm-img { filter: none; }
.feature-media::before { /* misma trama de puntos del hero */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, transparent 1px, rgba(10,12,17,.45) 1.6px);
  background-size: 4px 4px;
}
.feature-media .hud, .feature-media .play { z-index: 2; }
.feature-media .hud { position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.12); }
.feature-media .hud::before, .feature-media .hud::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent); }
.feature-media .hud::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.feature-media .hud::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.feature-media .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 68px; height: 68px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  display: grid; place-items: center; background: rgba(0,0,0,.3); backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s;
}
.feature-media:hover .play { background: var(--accent); border-color: var(--accent); }
.feature-media .play svg { margin-left: 4px; }
.feature-media:hover .play svg path { fill: var(--accent-ink); }
.feature h3 { font-size: clamp(30px, 4vw, 48px); margin: 14px 0 18px; }
.feature p { color: #c3c8d4; max-width: 460px; }
.feature .credit { margin: 22px 0 26px; }
.link-arrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 10px; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- HOW ---------- */
.how { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 36px 32px 40px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step h3 { font-size: 30px; margin: 16px 0 14px; }
.step p { color: var(--muted); font-size: 15px; }
.toolbox { margin-top: 72px; display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.toolbox ul { list-style: none; display: grid; gap: 22px; }
.toolbox li { padding-left: 22px; position: relative; color: var(--muted); }
.toolbox li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--accent-2); }
.toolbox li strong { color: var(--text); font-weight: 600; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; padding: 8px 14px; border: 1px solid var(--line); color: #c3c8d4; background: var(--surface); }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.about-grid h2 { font-size: clamp(36px, 5.5vw, 64px); margin-top: 14px; }
.about-grid p { color: #c3c8d4; margin-bottom: 18px; }
.portrait { position: relative; margin: 28px 0 0; max-width: 400px; }
.portrait::before {
  content: ""; position: absolute; inset: 12% -8% 0; z-index: -1;
  background: radial-gradient(50% 50% at 50% 55%, rgba(61,245,196,.18), rgba(139,123,255,.08) 60%, transparent 75%);
}
.portrait img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 20px; position: relative; }
.stat { background: var(--bg); padding: 22px; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 44px; color: var(--accent); display: block; line-height: 1; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.badge {
  --c: var(--accent);
  display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface);
  border: 1px solid var(--line); transition: border-color .25s, transform .25s;
}
.badge.alt { --c: var(--accent-2); }
.badge:hover { border-color: var(--c); transform: translateY(-2px); }
.badge svg { flex: none; width: 56px; height: 64px; color: var(--c); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 35%, transparent)); }
.badge b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.badge span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.timeline { list-style: none; margin-top: 8px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
.timeline .yr { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.timeline .role { font-weight: 600; }
.timeline .co { color: var(--muted); font-size: 14px; }

/* ---------- CONTACT ---------- */
.contact { text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 100%, rgba(61,245,196,.12), transparent 70%); pointer-events: none; }
.contact h2 { font-size: clamp(48px, 10vw, 140px); margin: 18px 0 24px; position: relative; }
.contact h2 a { transition: color .2s; }
.contact h2 a:hover { color: var(--accent); }
.contact p { color: var(--muted); max-width: 520px; margin: 0 auto 36px; position: relative; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; position: relative; }

footer { border-top: 1px solid var(--line); padding: 36px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 14px 48px; align-items: start; }
.footer-top { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.disclaimer { grid-column: 1; max-width: 720px; font-size: 12px; line-height: 1.6; color: var(--muted); opacity: .8; }
.to-top {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  display: inline-flex; align-items: center; gap: 14px; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer;
}
.to-top .arrow { width: 44px; height: 44px; pointer-events: none; }
.to-top:hover, .to-top:focus-visible { color: var(--accent); }
.to-top:hover .arrow, .to-top:focus-visible .arrow { border-color: var(--accent); color: var(--accent); }

/* ---------- VIDEO MODAL ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(5,6,9,.92); backdrop-filter: blur(6px); padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.video-modal.open { opacity: 1; visibility: visible; }
.video-frame { width: min(1100px, 100%); aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); }
.video-frame iframe, .player-main iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-close {
  position: absolute; top: 18px; right: var(--gutter); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: none; color: var(--text); font-size: 18px; cursor: pointer;
}
.video-close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- PROJECT PAGE ---------- */
.p-hero {
  position: relative; min-height: 86svh; display: grid; place-items: center; text-align: center;
  background-size: cover; background-position: center; overflow: hidden;
}
.p-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,12,17,.7), rgba(10,12,17,.62) 55%, var(--bg));
}
.p-hero .wrap { position: relative; z-index: 2; padding-top: 80px; }
.p-hero h1 { font-size: clamp(52px, 11vw, 150px); margin: 18px 0 22px; }
.p-hero .back { position: absolute; z-index: 2; top: 92px; left: var(--gutter); }
.p-hero .back:hover { color: var(--accent); }
.sec-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 4.5vw, 52px); display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.p-section { padding: clamp(64px, 9vw, 110px) 0 0; }
.did { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.panel { font-size: clamp(17px, 1.7vw, 20px); color: #c3c8d4; line-height: 1.65; }
.panel ul { list-style: none; display: grid; gap: 14px; font-size: 16px; }
.panel li { padding-left: 22px; position: relative; }
.panel li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--accent-2); }
.panel .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.numlist { list-style: none; counter-reset: n; }
.numlist li { counter-increment: n; display: flex; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.numlist li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.player { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.player.single { grid-template-columns: 1fr; }
.player.single .playlist { display: none; }
.player-main { position: relative; aspect-ratio: 16/9; background: #000 center/cover; border: 1px solid var(--line); cursor: pointer; overflow: hidden; display: block; width: 100%; padding: 0; }
.player-main .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); transition: background .2s, border-color .2s, transform .2s; }
.player-main:hover .play { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.player-main:hover .play path { fill: var(--accent-ink); }
.player-main .play svg { margin-left: 5px; }
.player-meta { display: flex; gap: 14px; margin-top: 14px; align-items: baseline; }
.player-meta .num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.player-meta h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 22px; }
.note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.playlist { display: grid; gap: 14px; }
.pl-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; padding: 0; opacity: .6; transition: opacity .2s; }
.pl-item:hover, .pl-item.active { opacity: 1; }
.pl-item .t { aspect-ratio: 16/9; background: center/cover; border: 1px solid var(--line); }
.pl-item.active .t { border-color: var(--accent); }
.pl-item b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 16px; display: block; line-height: 1.1; }
.credits { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.credits div { padding: 22px; border-right: 1px solid var(--line); }
.credits div:last-child { border-right: 0; }
.credits dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.credits dd { font-weight: 600; }
.pn { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(64px, 9vw, 110px); }
.pn a { position: relative; min-height: 220px; display: flex; flex-direction: column; justify-content: end; padding: 28px var(--gutter); background: center/cover; overflow: hidden; }
.pn a::before { content: ""; position: absolute; inset: 0; background: rgba(10,12,17,.72); transition: background .3s; }
.pn a:hover::before { background: rgba(10,12,17,.45); }
.pn a > * { position: relative; }
.pn a.next { text-align: right; align-items: end; }
.pn h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); margin-top: 6px; }
.pn a:hover .label { color: var(--accent); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .did, .player { grid-template-columns: 1fr; }
  .credits { grid-template-columns: 1fr 1fr; }
  .credits div:nth-child(2) { border-right: 0; }
  .credits div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pn { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(10,12,17,.97); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-links a { padding: 18px var(--gutter); border-top: 1px solid var(--line); }
  .nav.open .nav-links { max-height: 400px; }
  .nav.open { background: rgba(10,12,17,.97); }
  .nav.open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-btn { display: block; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(n) .feature-media { order: 0; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 16/9; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 32px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .toolbox, .about-grid { grid-template-columns: 1fr; }
  .hero::after {
    background:
      linear-gradient(to top, var(--bg) 0%, rgba(10,12,17,.88) 30%, rgba(10,12,17,.5) 52%, rgba(10,12,17,0) 72%),
      linear-gradient(to bottom, rgba(10,12,17,.85) 0%, rgba(10,12,17,.6) 16%, rgba(10,12,17,0) 30%);
  }
  .hero-ui { flex-wrap: wrap; justify-content: center; bottom: 22px; padding-inline: 72px; }
  .hero-arrow { top: auto; bottom: 14px; translate: none; width: 44px; height: 44px; }
  .hero-arrow.prev { left: var(--gutter); }
  .hero-arrow.next { right: var(--gutter); }
  .car-arrow.prev { left: 8px; }
  .car-arrow.next { right: 8px; }
  .carousel::before, .carousel::after { width: 52px; }
  .hero-content { padding-bottom: 96px; }
  .card { width: min(82vw, 320px); }
  .car-arrow { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .to-top { grid-column: 1; grid-row: auto; justify-self: start; }
  .stats { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
