/* rickmaurer.es · rediseño 2026, v2 «presskit»
   Referencias: paulkalkbrenner.net (nombre gigante con foto dentro, secciones de color plano,
   transición de píxeles, galería en pila, cifras gigantes) y la propuesta v5 de maurermusic.com (grano).
   Formas: todo recto (radio 0). Un acento: dorado. Movimiento en main.js (GSAP + Lenis), con
   prefers-reduced-motion respetado y todo el contenido visible si el JS no carga. */

/* Paleta sacada de la web original de Rick (02/11/2026): fondo negro, texto blanco roto, acento dorado
   (#E4CB86 medido en rickmaurer.es) y fotos de estudio en blanco y negro. Se mantienen los nombres de
   variables de la v2: «pacific» es ahora la sección clara (hueso) y «poppy» el dorado. */
:root {
  --paper: #0B0B0C;
  --stone: #1A1A1D;
  --pacific: #ECE9E2;
  --pacific-deep: #000000;
  --ink: #EEECE7;
  --muted: #A3A19C;
  --line: rgba(238, 236, 231, 0.14);
  --poppy: #E4CB86;
  --poppy-ink: #0B0B0C;
  --on-pacific: #0B0B0C;
  --radius: 0px;
  --wrap: 1360px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header: 64px;
  color-scheme: dark;
}

/* Transición suave entre páginas (View Transitions entre documentos; los navegadores que no la tienen la ignoran). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 380ms var(--ease) both; }
::view-transition-new(root) { animation: vt-in 520ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(32px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 24px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font);
  font-variation-settings: "wdth" 100;
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Grano de película fino sobre todo (como las fotos). */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 900ms steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--poppy); color: var(--poppy-ink); }
:focus-visible { outline: 3px solid var(--poppy); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--poppy); color: var(--poppy-ink); padding: 8px 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografía: grotesca apretada, títulos enormes. */
.display, h1, h2, h3 {
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
.display { font-size: clamp(3.4rem, 11vw, 11rem); }
h1 { font-size: clamp(3rem, 8.5vw, 8.5rem); }
h2 { font-size: clamp(2.2rem, 5.4vw, 5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; letter-spacing: -0.03em; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.4; max-width: 34ch; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.prose { max-width: 62ch; }
.prose h2 { margin-top: 1.2em; font-size: clamp(2rem, 4vw, 3.4rem); }
.prose h3 { margin-top: 1.4em; }
.muted { color: var(--muted); }

/* Etiqueta de sección con cuadrado (la firma de la web), en minúsculas normales. */
.tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; margin: 0 0 20px; }
.tag::before { content: ""; width: 0.72em; height: 0.72em; background: currentColor; flex: none; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: start; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 40ch; font-weight: 500; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Secciones de color plano. */
.section { padding-block: clamp(72px, 11vw, 160px); position: relative; }
.section--stone { background: var(--stone); }
.section--pacific { background: var(--pacific); color: var(--on-pacific); }
.section--poppy { background: var(--poppy); color: var(--poppy-ink); }
.section--ink { background: var(--pacific-deep); color: var(--on-pacific); }
.section--pacific .lead, .section--ink .lead { color: inherit; }
.section--pacific .muted, .section--ink .muted,
.section--pacific .events dd, .section--ink .events dd { color: color-mix(in srgb, var(--on-pacific) 75%, transparent); }
.section--poppy .muted, .section--poppy .events dd { color: color-mix(in srgb, var(--poppy-ink) 75%, transparent); }

/* Botones rectos. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95em 1.6em; min-height: 52px;
  border: 1.5px solid var(--poppy);
  background: var(--poppy); color: var(--poppy-ink);
  font: inherit; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 260ms var(--ease), border-color 260ms var(--ease), transform 160ms var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform 420ms var(--ease); }
.btn:hover { color: var(--paper); border-color: var(--ink); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.section--poppy .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.section--poppy .btn::before { background: var(--paper); }
.section--poppy .btn:hover { color: var(--ink); border-color: var(--paper); }
.section--pacific .btn:hover, .section--ink .btn:hover, .site-footer .btn:hover { color: var(--ink); border-color: var(--on-pacific); }
.section--pacific .btn::before, .section--ink .btn::before { background: var(--on-pacific); }
.btn svg, .icon { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Cabecera: fina, se esconde al bajar y vuelve al subir. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform 450ms var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); max-width: none; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.04em; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.brand::before { content: ""; width: 0.7em; height: 0.7em; background: var(--poppy); }
.nav { display: flex; align-items: center; gap: clamp(8px, 2.4vw, 40px); }
.nav a { text-decoration: none; padding: 8px 0; font-weight: 550; font-size: 0.98rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.lang { border: 1.5px solid currentColor; padding: 6px 12px !important; font-size: 0.9rem !important; }
.lang::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 48px; height: 48px; padding: 12px; margin-right: -12px; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header) 0 auto 0; height: calc(100svh - var(--header)); flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
         padding: 24px var(--gutter) 48px; background: var(--paper);
         clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 600ms var(--ease), visibility 0s 600ms; }
  .nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 600ms var(--ease); }
  .nav a { padding: 6px 0; font-size: clamp(2.4rem, 11vw, 3.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.1; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--poppy); }
  .lang { margin-top: 24px; align-self: flex-start; font-size: 1rem !important; letter-spacing: 0 !important; }
}

/* NOMBRE GIGANTE con foto dentro (inicio). */
.khero { min-height: calc(100svh - var(--header)); display: grid; grid-template-rows: 1fr auto; padding-bottom: clamp(20px, 3vw, 36px); }
.kname {
  align-self: center; margin: 0; padding-block: 4vh;
  display: flex; align-items: center; justify-content: center; gap: 0.06em;
  font-size: clamp(3rem, 13.2vw, 15rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.82; white-space: nowrap;
}
.kname__w { display: inline-flex; overflow: hidden; padding-bottom: 0.08em; }
.kname__w span { display: inline-block; animation: k-rise 1100ms var(--ease) both; }
.kname__win { display: block; width: 1.5em; height: 0.7em; margin-inline: 0.06em; overflow: hidden; position: relative; background: var(--stone); flex: none; }
.kname__win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@keyframes k-rise { from { transform: translateY(105%); } }
.khero__bar { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 24px; align-items: end; }
.khero__bar .tag { margin: 0; }
.khero__bar .lead { margin: 0; max-width: 40ch; font-size: clamp(1rem, 1.3vw, 1.2rem); }
.khero__bar .actions { margin: 0; justify-content: flex-end; }
@media (max-width: 760px) {
  .kname { flex-direction: column; align-items: flex-start; gap: 0.04em; font-size: 27vw; line-height: 0.85; padding-block: 2vh; }
  .kname__win { width: 100%; height: auto; aspect-ratio: 16 / 10; margin: 0.06em 0; font-size: 1rem; }
  .khero__bar { grid-template-columns: 1fr; gap: 16px; }
  .khero__bar .actions { justify-content: flex-start; }
}
/* Mientras espera la intro (clase puesta en el <head> del inicio): ni caja gris ni texto de abajo */
.intro .kname__win { background: transparent; }
.intro .kname__win img { opacity: 0; }
.intro .khero__bar > * { opacity: 0; animation: none; }
.intro-photo { position: fixed; z-index: 60; overflow: hidden; pointer-events: none; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Héroe partido (formaciones y páginas interiores). */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.hero h1, .hero .display { font-size: clamp(3.2rem, 9.5vw, 9.5rem); }
.hero__media { overflow: hidden; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero__media { order: -1; } .hero__media img { aspect-ratio: 1 / 1; } }

.page-head { padding-block: clamp(40px, 7vw, 96px) 0; }
.page-head .lead { margin-bottom: 0; }
.page-head__media { margin-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.page-head__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 700px) { .page-head__media img { aspect-ratio: 4 / 3; } }

/* Cinta de nombres que corre (velocidad según el scroll). */
.ticker { overflow: hidden; border-block: 1.5px solid currentColor; padding-block: 18px; white-space: nowrap; }
.ticker__track { display: inline-flex; gap: 0; animation: tick 38s linear infinite; will-change: transform; }
.ticker__track span { display: inline-flex; align-items: center; gap: 0.5em; padding-right: 0.5em; font-size: clamp(1.8rem, 4.2vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.ticker__track span::after { content: ""; width: 0.38em; height: 0.38em; background: var(--poppy); margin-left: 0.5em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Foto a sangre con borde de píxeles (transición tipo Kalkbrenner). */
.bleed { position: relative; height: clamp(420px, 92vh, 980px); overflow: hidden; background: var(--ink); }
.bleed img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.bleed figcaption { position: absolute; left: var(--gutter); bottom: var(--gutter); color: #fff; font-weight: 600; z-index: 2; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.px { position: absolute; inset: auto 0 0 0; display: grid; z-index: 1; pointer-events: none; }
.px i { display: block; aspect-ratio: 1; background: var(--px, var(--paper)); transform: scale(0); }
.px--stone { --px: var(--stone); } .px--pacific { --px: var(--pacific); } .px--poppy { --px: var(--poppy); } .px--ink { --px: var(--pacific-deep); }

/* Oficios (inicio): índice editorial, imagen que sigue al ratón en escritorio. */
.roles { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid currentColor; }
.roles li { border-bottom: 1.5px solid currentColor; }
.roles a { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 220px; gap: 32px; align-items: center; padding-block: clamp(20px, 3vw, 36px); text-decoration: none; position: relative; }
.roles .role-name { font-size: clamp(2.6rem, 6.4vw, 6.4rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.9; transition: transform 500ms var(--ease), color 300ms; }
.roles p { margin: 0; max-width: 40ch; font-weight: 500; }
.roles img { width: 220px; aspect-ratio: 3 / 2; object-fit: cover; }
.roles a:hover .role-name { transform: translateX(16px); color: var(--poppy); }
@media (max-width: 820px) { .roles a { grid-template-columns: 1fr; gap: 12px; } .roles img { width: 100%; order: -1; } }

/* Cifras gigantes. */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; border-top: 1.5px solid currentColor; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stats li { padding: 24px 0 8px; min-width: 0; border-bottom: 1.5px solid currentColor; }
.stats .n { display: block; font-size: clamp(3.4rem, 7.4vw, 8rem); font-weight: 600; letter-spacing: -0.07em; line-height: 0.85; font-variant-numeric: tabular-nums; }
.stats p { margin: 12px 0 16px; font-weight: 500; max-width: 24ch; }

/* Ficha de presskit (datos de cada formación). */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; border-top: 1.5px solid currentColor; }
.facts div { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.92rem; font-weight: 500; opacity: 0.7; margin-bottom: 6px; }
.facts dd { margin: 0; font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.section--pacific .facts div, .section--ink .facts div { border-color: rgba(255,255,255,.2); }

/* Cita destacada */
.quote { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 6vw, 96px); align-items: center; margin: 0; }
.quote img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quote blockquote { margin: 0; font-size: clamp(2rem, 4.6vw, 4.2rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.quote figcaption { margin-top: 24px; font-weight: 500; max-width: 46ch; }
@media (max-width: 820px) { .quote { grid-template-columns: 1fr; } }

/* Galería: rejilla sin JS; con JS se convierte en pila con contador (ver main.js). */
.gallery { columns: 3 280px; column-gap: 12px; }
.gallery img { width: 100%; margin-bottom: 12px; break-inside: avoid; }
.stack { position: relative; height: clamp(440px, 84vh, 880px); display: grid; place-items: end center; user-select: none; touch-action: pan-y; }
.stack img { position: absolute; bottom: 0; left: 50%; width: min(88vw, 980px); height: 80%; object-fit: cover; margin: 0; transform-origin: 50% 100%; cursor: grab; will-change: transform; }
.stack-ui { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stack-ui div { display: flex; gap: 8px; }
.stack-ui button { font: inherit; font-weight: 600; background: none; border: 1.5px solid currentColor; color: inherit; padding: 10px 18px; min-height: 44px; cursor: pointer; transition: background 200ms, color 200ms; }
.stack-ui button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stack-count { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.04em; }

/* Formaciones (página Música): índice; en escritorio la foto sigue al ratón. */
.setlist { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.setlist a { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; text-decoration: none; }
.setlist li:nth-child(even) a { grid-template-columns: 1fr 1.1fr; }
.setlist li:nth-child(even) img { order: 2; }
.setlist img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.setlist .lineup { font-weight: 600; margin: 0 0 8px; display: inline-flex; align-items: center; gap: 8px; }
.setlist .lineup::before { content: ""; width: 0.6em; height: 0.6em; background: var(--poppy); }
.setlist h3 { font-size: clamp(2.2rem, 5vw, 4.6rem); margin-bottom: 12px; letter-spacing: -0.05em; line-height: 0.92; }
.setlist p { font-weight: 450; }
.more { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
@media (max-width: 820px) { .setlist a, .setlist li:nth-child(even) a { grid-template-columns: 1fr; } .setlist li:nth-child(even) img { order: 0; } }
@media (hover: hover) and (min-width: 900px) {
  .js .setlist { gap: 0; border-top: 1.5px solid currentColor; }
  .js .setlist li { border-bottom: 1.5px solid currentColor; }
  .js .setlist a, .js .setlist li:nth-child(even) a { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding-block: clamp(24px, 3vw, 40px); }
  .js .setlist a { position: relative; isolation: isolate; overflow: hidden; padding-inline: clamp(16px, 2vw, 32px); transition: color 300ms; }
  .js .setlist img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; z-index: -1; pointer-events: none; opacity: 0; filter: brightness(0.38) saturate(0.85); transform: scale(1.06); transition: opacity 450ms var(--ease), transform 900ms var(--ease); }
  .js .setlist a:hover img, .js .setlist a:focus-visible img { opacity: 1; transform: scale(1); }
  .js .setlist a:hover, .js .setlist a:focus-visible { color: #EEECE7; }
  .js .setlist a:hover h3 { color: var(--poppy); }
  .js .setlist h3 { transition: color 300ms, transform 500ms var(--ease); }
  .js .setlist a:hover h3 { transform: translateX(12px); }
}

/* Tipos de evento */
.events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.events div { border-top: 1.5px solid currentColor; padding: 16px 0 28px; }
.events dt { font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.03em; margin-bottom: 6px; }
.events dd { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .events { grid-template-columns: 1fr; } }

/* Preguntas frecuentes */
.faq { max-width: 960px; border-top: 1.5px solid currentColor; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 56px 24px 0; position: relative; font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.4rem); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 2px; background: currentColor; transition: transform 400ms var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { color: var(--muted); padding-bottom: 24px; margin: 0; max-width: 66ch; }

/* Vídeo de YouTube con fachada. */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pacific-deep); }
.video button { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), filter 600ms; filter: grayscale(0.35); }
.video button:hover img { transform: scale(1.05); filter: none; }
.video .play { position: relative; display: inline-flex; align-items: center; gap: 10px; background: var(--poppy); color: var(--poppy-ink); padding: 16px 24px; font-weight: 600; transition: transform 400ms var(--ease); }
.video button:hover .play { transform: scale(1.06); }
.video .play svg { width: 22px; height: 22px; fill: currentColor; }
.video button:focus-visible .play { outline: 3px solid #fff; outline-offset: 3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 12px; font-weight: 500; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; counter-reset: v; }
.videos > * { counter-increment: v; }
.videos .video-caption::before { content: counter(v, decimal-leading-zero) "  "; font-variant-numeric: tabular-nums; opacity: 0.6; white-space: pre; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; max-width: 1000px; border-top: 1.5px solid currentColor; }
.timeline li { display: grid; grid-template-columns: minmax(120px, 0.6fr) 1fr; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.timeline .when { font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -0.05em; line-height: 0.95; }
.timeline h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); margin: 0 0 6px; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* Contacto */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.channels { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1.5px solid currentColor; }
.channels a { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; transition: padding 400ms var(--ease), color 200ms; }
.channels a:hover { padding-left: 12px; color: var(--poppy); }
.channels .icon { width: 26px; height: 26px; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.1rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 10px 0; min-height: 48px; width: 100%;
  transition: border-color 200ms;
}
.field textarea { min-height: 140px; resize: vertical; border: 1.5px solid var(--ink); padding: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--poppy); box-shadow: 0 1.5px 0 var(--poppy); }
.field .hint { font-size: 0.9rem; color: var(--muted); }
.field .error { font-size: 0.9rem; color: #FF8A80; display: none; }
@media (prefers-color-scheme: dark) { .field .error { color: #FF8A80; } }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF8A80; }
.field.is-invalid .error { display: block; }
.form-note { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Llamada final */
.cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.cta h2 { margin: 0; max-width: 14ch; font-size: clamp(2.6rem, 7vw, 6.8rem); }

/* Pie con el nombre enorme. */
.site-footer { background: var(--pacific-deep); color: var(--on-pacific); padding-block: 72px 28px; overflow: hidden; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer .brand { font-size: 1.4rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--poppy); }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid color-mix(in srgb, var(--on-pacific) 35%, transparent); opacity: 1; transition: background 200ms, color 200ms; }
.social a:hover { background: var(--poppy); color: var(--poppy-ink); border-color: var(--poppy); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.legal { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--on-pacific) 18%, transparent); padding-top: 20px; font-size: 0.9rem; opacity: 0.7; }
.site-footer::after { content: "Rick Maurer"; display: block; text-align: center; white-space: nowrap; font-weight: 600; letter-spacing: -0.065em; line-height: 0.8; font-size: 17.5vw; margin-top: 48px; color: color-mix(in srgb, var(--ink) 9%, transparent); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Entrada al cargar en páginas interiores (sin JS también funciona). */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > *, .page-head .wrap > :not(.page-head__media) { animation: rise 900ms var(--ease) both; }
  .hero__text > :nth-child(2), .page-head .wrap > :nth-child(2) { animation-delay: 90ms; }
  .hero__text > :nth-child(3), .page-head .wrap > :nth-child(3) { animation-delay: 180ms; }
  .hero__text > :nth-child(4), .page-head .wrap > :nth-child(4) { animation-delay: 270ms; }
  .hero__media img, .page-head__media img { animation: unveil 1300ms var(--ease) 120ms both; }
  .kname__w:last-child span { animation-delay: 90ms; }
  .khero__bar > * { animation: rise 900ms var(--ease) both; animation-delay: 500ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); transform: scale(1.12); } to { clip-path: inset(0); transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  @view-transition { navigation: none; }
}

/* contacto: el correo grande no cabe en móvil */
#booking { overflow-wrap: anywhere; }
@media (max-width: 600px) { #booking { font-size: clamp(1.5rem, 7.4vw, 2.4rem); } }

/* Encuadre: punto de la cara de cada foto (mirado una a una, 02/11/2026). Gana a las posiciones de cada componente */
img[src*="/crowd-hall-8"], img[src*="/crowd-hall-1"] { object-position: 50% 45% !important; }
img[src*="/crowd-street-8"], img[src*="/crowd-street-1"] { object-position: 45% 60% !important; }
img[src*="/ff-bridge-8"], img[src*="/ff-bridge-1"] { object-position: 50% 30% !important; }
img[src*="/ff-bw-8"], img[src*="/ff-bw-1"] { object-position: 45% 30% !important; }
img[src*="/ff-bw-2-8"], img[src*="/ff-bw-2-1"] { object-position: 50% 30% !important; }
img[src*="/ff-bw-group-8"], img[src*="/ff-bw-group-1"] { object-position: 50% 0% !important; }
img[src*="/ff-car-8"], img[src*="/ff-car-1"] { object-position: 55% 40% !important; }
img[src*="/ff-car-2-8"], img[src*="/ff-car-2-1"] { object-position: 55% 30% !important; }
img[src*="/ff-guitars-8"], img[src*="/ff-guitars-1"] { object-position: 50% 50% !important; }
img[src*="/ff-jump-8"], img[src*="/ff-jump-1"] { object-position: 50% 45% !important; }
img[src*="/ff-street-8"], img[src*="/ff-street-1"] { object-position: 55% 30% !important; }
img[src*="/friends-8"], img[src*="/friends-1"] { object-position: 40% 30% !important; }
img[src*="/hero-rick-8"], img[src*="/hero-rick-1"] { object-position: 50% 6% !important; }
img[src*="/rick-portrait-8"], img[src*="/rick-portrait-1"] { object-position: 48% 18% !important; }
img[src*="/rick-portrait-dark-8"], img[src*="/rick-portrait-dark-1"] { object-position: 45% 15% !important; }
img[src*="/rick-street-8"], img[src*="/rick-street-1"] { object-position: 48% 15% !important; }
img[src*="/rick-street-2-8"], img[src*="/rick-street-2-1"] { object-position: 50% 20% !important; }
img[src*="/sb-leon-8"], img[src*="/sb-leon-1"] { object-position: 55% 55% !important; }
img[src*="/sb-mural-8"], img[src*="/sb-mural-1"] { object-position: 50% 20% !important; }
img[src*="/sb-rooftop-8"], img[src*="/sb-rooftop-1"] { object-position: 50% 35% !important; }
img[src*="/sb-stage-8"], img[src*="/sb-stage-1"] { object-position: 50% 20% !important; }
img[src*="/stage-lights-8"], img[src*="/stage-lights-1"] { object-position: 55% 5% !important; }
img[src*="/stage-lights-2-8"], img[src*="/stage-lights-2-1"] { object-position: 55% 5% !important; }
img[src*="/tfg-path-8"], img[src*="/tfg-path-1"] { object-position: 50% 55% !important; }
img[src*="/tfg-studio-8"], img[src*="/tfg-studio-1"] { object-position: 50% 22% !important; }
img[src*="/tfg-studio-2-8"], img[src*="/tfg-studio-2-1"] { object-position: 50% 20% !important; }
img[src*="/tfg-terrace-8"], img[src*="/tfg-terrace-1"] { object-position: 50% 30% !important; }
img[src*="/tfp-bw-8"], img[src*="/tfp-bw-1"] { object-position: 45% 5% !important; }
img[src*="/tfp-cajon-8"], img[src*="/tfp-cajon-1"] { object-position: 55% 14% !important; }
img[src*="/tfp-castle-8"], img[src*="/tfp-castle-1"] { object-position: 50% 45% !important; }
img[src*="/tfp-castle-2-8"], img[src*="/tfp-castle-2-1"] { object-position: 50% 30% !important; }
img[src*="/tfp-curly-8"], img[src*="/tfp-curly-1"] { object-position: 50% 45% !important; }
img[src*="/tfp-hat-8"], img[src*="/tfp-hat-1"] { object-position: 50% 15% !important; }

/* Sección clara (hueso) dentro de la web negra */
.section--pacific .facts div { border-color: rgba(11, 11, 12, 0.18); }
.section--pacific .stack-ui .btn, .section--pacific .btn--ghost { color: var(--on-pacific); border-color: var(--on-pacific); }
.section--pacific .btn--ghost::before, .section--pacific .stack-ui .btn::before { background: var(--on-pacific); }
.section--pacific .btn--ghost:hover, .section--pacific .stack-ui .btn:hover { color: var(--pacific); }
.section--ink .btn::before, .site-footer .btn::before { background: var(--ink); }
.section--ink .btn:hover, .site-footer .btn:hover { color: var(--paper); border-color: var(--ink); }
.section--pacific .stack-ui button:hover { background: var(--on-pacific); color: var(--pacific); border-color: var(--on-pacific); }
/* Secciones negras y pie: texto claro */
.section--ink, .site-footer { color: var(--ink); }
.section--ink .muted, .section--ink .events dd { color: var(--muted); }
.section--ink .facts div { border-color: var(--line); }
.hero__media--wide img { aspect-ratio: 4 / 3; }
/* Móvil: la pila deja las fotos casi cuadradas (5:4) para que no se corten los grupos */
@media (max-width: 760px) { .stack { height: 88vw; } }
@media (min-width: 601px) { #booking { font-size: clamp(1.5rem, 2.3vw, 2.3rem); overflow-wrap: normal; } }
/* Cifras con texto (1,5 a 2 h): en una línea y algo más pequeñas */
.stats .n:not([data-to]) { white-space: nowrap; font-size: clamp(2.2rem, 4.2vw, 4.6rem); letter-spacing: -0.04em; word-spacing: 0.08em; font-variant-numeric: normal;
  display: flex; align-items: flex-end; height: calc(clamp(3.4rem, 7.4vw, 8rem) * 0.85); }
img[src*="/rick-standing-"] { object-position: 50% 17% !important; }
/* Filas de Música: la foto sombreada ocupa una franja ancha, encuadre a las caras */
@media (hover: hover) and (min-width: 900px) {
  .js .setlist img[src*="/hero-rick-"] { object-position: 50% 13% !important; }
  .js .setlist img[src*="/sb-mural"] { object-position: 50% 8% !important; }
  .js .setlist img[src*="/tfp-castle"] { object-position: 50% 32% !important; }
  .js .setlist img[src*="/tfg-studio-1"], .js .setlist img[src*="/tfg-studio-8"] { object-position: 50% 12% !important; }
  .js .setlist img[src*="/tfg-studio-2"] { object-position: 50% 16% !important; }
  .js .setlist img[src*="/tfp-castle-2"] { object-position: 50% 20% !important; }
}

/* Caja del nombre del inicio: cada foto con la cara en el centro (vale para 800, 1600 y 2400) */
.kname__win img[src*="/hero-rick-"], .intro-photo img[src*="/hero-rick-"] { object-position: 53% 11% !important; }
.kname__win img[src*="/rick-portrait-"] { object-position: 50% 20% !important; }
.kname__win img[src*="/tfp-bw-"] { object-position: 45% 0% !important; }
.kname__win img[src*="/tfg-studio-2-"] { object-position: 50% 11% !important; }
@media (max-width: 760px) {
  .kname__win img[src*="/hero-rick-"], .intro-photo img[src*="/hero-rick-"] { object-position: 53% 3% !important; }
  .kname__win img[src*="/rick-portrait-"] { object-position: 50% 0% !important; transform: scale(1.08); transform-origin: 50% 0; }
  .kname__win img[src*="/tfp-bw-"] { object-position: 45% 0% !important; transform: scale(1.36); transform-origin: 45% 0; }
  .kname__win img[src*="/tfg-studio-2-"] { object-position: 50% 4% !important; }
}
