/* =========================================================
   Daniel Pablo Signorini
   Paleta: azul tinta (noche porteña), papel pautado,
   fieltro bordó (el paño del interior del piano) y latón (pedales).
   ========================================================= */

:root {
  --ink: #14213b;
  --ink-2: #1d2d4d;
  --ink-line: rgb(233 236 228 / 0.14);
  --paper: #e9ece4;
  --paper-2: #dde2d6;
  --paper-line: rgb(35 39 46 / 0.16);
  --graphite: #23272e;
  --muted: #565e6b;
  --on-ink: #e9ece4;
  --on-ink-muted: #a7b0c0;
  --felt: #7e2233;
  --felt-hover: #95293d;
  --brass: #c4a46c;
  --brass-deep: #8a6c35;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-text: "Literata", Georgia, "Times New Roman", serif;
  --font-music: "Noto Music", "Segoe UI Symbol", "Apple Symbols", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  --step-hero: clamp(3.4rem, 1rem + 10.5vw, 10.5rem);

  /* Bodoni tiene trazos muy finos: los títulos chicos llevan más peso para no desdibujarse. */
  --title-weight: 500;
  --heading-weight: 600;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  --section-pad: clamp(4.5rem, 9vw, 8rem);

  --radius-sm: 3px;
  --radius-md: 6px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
cite { font-style: italic; }

a { color: var(--felt); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--felt-hover); text-decoration-thickness: 2px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); transition: top 0.2s;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.9rem;
  padding: 0.7em 1.35em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-text);
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--felt { background: var(--felt); color: var(--paper); }
.btn--felt:hover { background: var(--felt-hover); color: var(--paper); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); color: var(--paper); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--ghost { border-color: currentColor; color: var(--graphite); background: transparent; }
.btn--ghost:hover { background: var(--graphite); border-color: var(--graphite); color: var(--paper); }

.link { color: inherit; font-size: 0.97rem; }
.link:hover { color: var(--felt); }

/* ---------- Navegación ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--on-ink);
  transition: background-color 0.35s, box-shadow 0.35s;
}
.nav.is-solid {
  background: rgb(20 33 59 / 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--ink-line);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
}
.nav__brand span { font-style: italic; color: var(--brass); }
.nav__brand:hover { color: inherit; }

.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav__links a {
  position: relative;
  color: var(--on-ink);
  font-size: 0.95rem;
  text-decoration: none;
  padding-block: 0.4rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  margin-right: -0.5rem;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 1.4rem; height: 1px; background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--ink);
    box-shadow: 0 1px 0 var(--ink-line);
    transform: translateY(-0.5rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
  }
  .nav__links a { padding-block: 0.8rem; font-size: 1.1rem; border-bottom: 1px solid var(--ink-line); }
  .nav__links a::after { display: none; }
  .nav.is-open { background: var(--ink); }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; }
}

/* ---------- Hero ---------- */

.hero {
  --g: clamp(13px, 1.55vw, 22px); /* distancia entre líneas del pentagrama */
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  background:
    radial-gradient(120% 80% at 85% 0%, var(--ink-2) 0%, transparent 60%),
    var(--ink);
  color: var(--on-ink);
  padding-top: calc(var(--nav-h) + 2rem);
  overflow: hidden;
}

.hero__inner {
  align-self: end;
  padding-inline: var(--gutter);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  max-width: calc(var(--max) + var(--gutter) * 2);
  width: 100%;
  margin-inline: auto;
}

.hero__kicker {
  text-wrap: balance;
  font-style: italic;
  font-size: var(--step-1);
  color: var(--brass);
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.15s forwards;
}

.hero__name {
  font-family: var(--font-display);
  font-size: var(--step-hero);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.hero__line {
  display: block;
  opacity: 0;
  animation: rise 1.2s var(--ease-out) forwards;
}
.hero__line:nth-child(1) { animation-delay: 0.25s; }
.hero__line:nth-child(2) { animation-delay: 0.42s; padding-left: 0.9em; }

@keyframes rise {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}

/* Pentagrama */
.staff {
  /* las líneas van de borde a borde; clave y notas se alinean con el texto */
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  position: relative;
  height: calc(var(--g) * 4);
  margin-block: calc(var(--g) * 3.6) calc(var(--g) * 3.2);
}

.staff__lines span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgb(196 164 108 / 0.55);
  transform: scaleX(0);
  transform-origin: left;
  animation: draw 1.6s var(--ease-out) forwards;
}
.staff__lines span:nth-child(1) { bottom: 0; animation-delay: 0.7s; }
.staff__lines span:nth-child(2) { bottom: calc(var(--g) * 1); animation-delay: 0.78s; }
.staff__lines span:nth-child(3) { bottom: calc(var(--g) * 2); animation-delay: 0.86s; }
.staff__lines span:nth-child(4) { bottom: calc(var(--g) * 3); animation-delay: 0.94s; }
.staff__lines span:nth-child(5) { bottom: calc(var(--g) * 4); animation-delay: 1.02s; }

@keyframes draw { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }

.staff__clef {
  position: absolute;
  left: calc(var(--edge) - var(--g) * 0.2);
  bottom: calc(var(--g) * -0.2);
  font-family: var(--font-music);
  font-size: calc(var(--g) * 4.1);
  line-height: 1;
  color: var(--brass);
  opacity: 0;
  animation: fade 1.2s ease 1.5s forwards;
}

.staff__key {
  position: absolute;
  left: calc(var(--edge) + var(--g) * 3);
  bottom: calc(var(--g) * 3.6);
  font-family: var(--font-music);
  font-size: calc(var(--g) * 2);
  line-height: 1;
  color: var(--brass);
  opacity: 0;
  animation: fade 1s ease 1.7s forwards;
}

.staff__notes {
  position: absolute;
  inset: 0 var(--edge) 0 calc(var(--edge) + var(--g) * 5);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  touch-action: pan-y; /* deja scrollear la página con el dedo; el arrastre horizontal toca las notas */
}

.note {
  position: relative;
  width: calc(var(--g) * 1.7);
  flex: 0 0 auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--on-ink);
  opacity: 0;
  animation: note-in 0.7s var(--ease-out) forwards;
  animation-delay: calc(1.9s + var(--i) * 0.09s);
  -webkit-tap-highlight-color: transparent;
}
.note::before { /* área táctil generosa */
  content: "";
  position: absolute;
  inset: calc(var(--g) * -2) 0;
}
.note__head {
  position: absolute;
  left: 50%;
  bottom: calc(var(--p) * var(--g) / 2);
  width: calc(var(--g) * 1.3);
  height: calc(var(--g) * 0.92);
  margin-left: calc(var(--g) * -0.65);
  margin-bottom: calc(var(--g) * -0.46);
  border-radius: 50%;
  background: currentColor;
  transform: rotate(-22deg);
  transition: background-color 0.2s, transform 0.25s var(--ease-out);
}
.note__stem {
  position: absolute;
  width: 1.5px;
  height: calc(var(--g) * 3.3);
  background: currentColor;
  transition: background-color 0.2s;
}
.note--up .note__stem {
  left: calc(50% + var(--g) * 0.6);
  bottom: calc(var(--p) * var(--g) / 2 + var(--g) * 0.1);
}
.note--down .note__stem {
  left: calc(50% - var(--g) * 0.6);
  bottom: calc(var(--p) * var(--g) / 2 - var(--g) * 3.4);
}
.note:hover, .note:focus-visible { color: var(--brass); }
.note:focus-visible { outline: none; }
.note:focus-visible .note__head { box-shadow: 0 0 0 3px rgb(196 164 108 / 0.4); }
.note.is-playing { color: var(--brass); }
.note.is-playing .note__head { animation: strike 0.6s var(--ease-out); }

@keyframes note-in {
  from { opacity: 0; transform: translateY(calc(var(--g) * -1)); }
  to { opacity: 1; transform: none; }
}
@keyframes strike {
  30% { transform: rotate(-22deg) scale(1.35); }
  to { transform: rotate(-22deg) scale(1); }
}

.barline {
  flex: 0 0 1px;
  width: 1px;
  background: rgb(196 164 108 / 0.55);
  opacity: 0;
  animation: fade 0.8s ease forwards;
  animation-delay: calc(1.9s + var(--i) * 0.09s);
}
.barline--final { flex-basis: 4px; box-shadow: -5px 0 0 -3px rgb(196 164 108 / 0.55); }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 0 var(--gutter) clamp(1.5rem, 4vw, 2.75rem);
  max-width: calc(var(--max) + var(--gutter) * 2);
  width: 100%;
  margin-inline: auto;
  opacity: 0;
  animation: fade 1s ease 2.4s forwards;
}
.hero__place { color: var(--on-ink-muted); font-size: 0.97rem; }
.hero__hint {
  color: var(--on-ink-muted);
  font-style: italic;
  font-size: 0.95rem;
  margin-right: auto;
}

@media (max-width: 640px) {
  /* El hero no ocupa toda la pantalla: el nombre arranca cerca del header y asoma la sección siguiente. */
  .hero {
    --g: 13px;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 2.25rem);
  }
  .hero__inner { padding-bottom: 1.25rem; }
  .note[data-bar="4"], .note[data-bar="5"], .note[data-bar="6"],
  .barline[data-bar="3"], .barline[data-bar="4"], .barline[data-bar="5"] { display: none; }
  .hero__name { font-size: clamp(3.6rem, 19vw, 5.5rem); line-height: 0.9; }
  .hero__brk { display: block; }
  .hero__line:nth-child(2) { padding-left: 0.55em; }
  .hero__kicker { font-size: 1.05rem; }
  .hero__hint { width: 100%; order: -1; margin: 0; }
  .hero__foot .btn { width: 100%; }
}

/* ---------- Secciones ---------- */

.section { padding-block: var(--section-pad); }

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }
.section__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--title-weight);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section__lede {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 34em;
  font-size: 1.1rem;
}

/* ---------- Videos ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  align-items: start;
}

.feature__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(20 33 59 / 0.55);
}
.feature__player noscript iframe { z-index: 1; }
.feature__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lite {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: pointer;
}
.lite img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.4s;
  filter: saturate(0.9);
}
.lite::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(20 33 59 / 0.45), transparent 50%);
}
.lite__play {
  position: absolute;
  z-index: 1;
  left: 50%; top: 50%;
  width: clamp(4rem, 9vw, 5.5rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--felt);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.5);
  transition: transform 0.35s var(--ease-out), background-color 0.2s;
}
.lite__play::before {
  content: "";
  width: 0; height: 0;
  margin-left: 12%;
  border-style: solid;
  border-width: 0.75em 0 0.75em 1.25em;
  border-color: transparent transparent transparent var(--paper);
  font-size: clamp(0.8rem, 1.6vw, 1rem);
}
.lite:hover img, .lite:focus-visible img { transform: scale(1.03); filter: saturate(1.05); }
.lite:hover .lite__play, .lite:focus-visible .lite__play { transform: scale(1.08); background: var(--felt-hover); }
.lite:focus-visible { outline-offset: -4px; }

.feature__info { padding-top: 0.25rem; }
.feature__meta { color: var(--muted); font-size: 0.95rem; }
.feature__meta strong { color: var(--graphite); font-weight: 500; }
.feature__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--heading-weight);
  line-height: 1.15;
  margin-block: 0.6rem 1rem;
  text-wrap: balance;
}
.feature__desc {
  color: var(--graphite);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 34em;
}
.feature__desc p + p { margin-top: 0.6em; }
.feature.is-swapping .feature__info > * { animation: rise 0.6s var(--ease-out) both; }

.recent { margin-top: clamp(3rem, 6vw, 4.5rem); }
.recent__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--heading-weight);
  margin-bottom: 1.25rem;
}
.recent__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.thumb {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.thumb__img {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-2);
}
.thumb__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.thumb:hover .thumb__img img { transform: scale(1.04); }
.thumb__title {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.thumb:hover .thumb__title { color: var(--felt); }
.thumb__date { color: var(--muted); font-size: 0.875rem; margin-top: -0.4rem; }
.thumb[aria-current="true"] .thumb__img { outline: 2px solid var(--felt); outline-offset: 3px; }
.thumb[aria-current="true"] .thumb__title { color: var(--felt); }

.recent__more { margin-top: 2rem; color: var(--muted); font-size: 0.97rem; }

.videos__error {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--felt);
  background: var(--paper-2);
  max-width: 44rem;
}

/* Carga */
.skeleton, .skeleton-text {
  background: linear-gradient(100deg, var(--ink) 30%, var(--ink-2) 50%, var(--ink) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
.skeleton { position: absolute; inset: 0; }
.skeleton-text {
  display: block;
  height: 1em;
  width: 60%;
  border-radius: 2px;
  background: linear-gradient(100deg, var(--paper-2) 30%, #eef0ea 50%, var(--paper-2) 70%);
  background-size: 300% 100%;
}
.skeleton-text--lg { height: 1.6em; width: 90%; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- Biografía ---------- */

.bio { background: var(--paper-2); }
.bio__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.bio__photo {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.bio__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-sm);
}
.bio__text .section__title { margin-bottom: 1.75rem; }
.bio__text p { max-width: 36em; }
.bio__text p + p { margin-top: 1.1em; }
.bio__lead { font-size: var(--step-1); line-height: 1.6; }

.bio__quote {
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--felt);
}
.bio__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.3;
  max-width: 22em;
}
.bio__quote footer { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }

.inline-photo { margin-block: 2rem 2.25rem; }
.inline-photo img { width: 100%; border-radius: var(--radius-sm); }

.photo img { width: 100%; border-radius: var(--radius-sm); }
.inline-photo figcaption, .photo figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.5;
}
.photo--dark figcaption { color: var(--on-ink-muted); }

/* Recorrido: línea de tiempo a la izquierda, fotos a la derecha */
.journey {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  margin-top: clamp(4.5rem, 9vw, 7rem);
}
.journey__photos {
  display: grid;
  gap: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.timeline__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--heading-weight);
  line-height: 1.05;
  margin-bottom: 2.25rem;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding: 0 0 1.9rem 1.75rem;
}
.timeline li::before { /* línea vertical */
  content: "";
  position: absolute;
  left: 0; top: 0.75rem; bottom: -0.75rem;
  width: 1px;
  background: var(--graphite);
  transform-origin: top;
}
.timeline li:last-child::before { display: none; }
.timeline li::after { /* punto */
  content: "";
  position: absolute;
  left: -4px; top: 0.6rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--felt);
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: var(--heading-weight);
  line-height: 1.3;
}
.timeline p { font-size: 0.98rem; line-height: 1.6; padding-top: 0.15rem; }

.js .timeline li::before { transform: scaleY(0); transition: transform 0.6s var(--ease-out); }
.js .timeline li::after { transform: scale(0); transition: transform 0.4s var(--ease-out); }
.js .timeline li > * { opacity: 0; transform: translateY(0.5rem); transition: opacity 0.7s, transform 0.7s var(--ease-out); }
.js .timeline.is-visible li::before { transform: scaleY(1); }
.js .timeline.is-visible li::after { transform: scale(1); }
.js .timeline.is-visible li > * { opacity: 1; transform: none; }
.timeline.is-visible li { --d: calc(var(--i, 0) * 0.12s); }
.timeline.is-visible li::before { transition-delay: calc(var(--d) + 0.15s); }
.timeline.is-visible li::after { transition-delay: var(--d); }
.timeline.is-visible li > * { transition-delay: calc(var(--d) + 0.1s); }

/* ---------- Obras ---------- */

.works { background: var(--ink); color: var(--on-ink); }
.works .section__lede { color: var(--on-ink-muted); }

.opus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid var(--ink-line);
}
.opus__item { border-bottom: 1px solid var(--ink-line); }
.opus__item a {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.15rem;
  color: var(--on-ink);
  text-decoration: none;
}
.opus__item a::after {
  content: "";
  align-self: center;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0.4rem 0 0.4rem 0.65rem;
  border-color: transparent transparent transparent var(--brass);
  opacity: 0;
  transform: translateX(-0.4rem);
  transition: opacity 0.25s, transform 0.3s var(--ease-out);
}
.opus__item a:hover::after, .opus__item a:focus-visible::after { opacity: 1; transform: none; }
.opus__n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brass);
  white-space: nowrap;
}
.opus__body { display: grid; gap: 0.2rem; }
.opus__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: var(--heading-weight);
  line-height: 1.25;
  transition: color 0.2s;
}
.opus__note { color: var(--on-ink-muted); font-size: 0.95rem; line-height: 1.5; }
.opus__item a:hover .opus__name,
.opus__item a.is-current .opus__name { color: var(--brass); }
.opus__item a.is-current::after { opacity: 1; transform: none; }

.scores {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  max-width: 62rem;
}
.scores__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--heading-weight);
  margin-bottom: 0.75rem;
}
.scores a { color: var(--brass); }
.scores a:hover { color: var(--paper); }
.scores__license { margin-top: 1rem; color: var(--on-ink-muted); font-size: 0.9rem; }

/* ---------- Libro ---------- */

.book__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.book__object {
  perspective: 1400px;
  display: grid;
  place-items: center;
  padding-block: 1rem;
}
/* El giro lo maneja app.js con interpolación cuadro a cuadro (sin transition, que daba saltos). */
.book__3d {
  --rx: 3deg;
  --ry: -18deg;
  --sx: 28px;  /* desplazamiento de la sombra, acompaña el giro */
  --gx: 55%;   /* posición del brillo sobre la tapa */
  position: relative;
  width: min(100%, 20rem);
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}
.book__img, .book__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px 4px 4px 2px;
  box-shadow:
    inset 6px 0 8px -4px rgb(0 0 0 / 0.35),
    var(--sx) 40px 60px -25px rgb(20 33 59 / 0.6);
}
.book__img { object-fit: cover; z-index: 1; }
.book__cover {
  display: flex;
  flex-direction: column;
  padding: 12% 11%;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.22), transparent 7%),
    var(--felt);
  color: var(--paper);
}
.book__cover-author {
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  letter-spacing: 0.06em;
  color: var(--brass);
}
.book__cover-title {
  margin-top: auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.02;
}
.book__cover-rule { width: 2.5rem; height: 1px; background: var(--brass); margin-block: 1.25rem; }
.book__cover-pub { font-size: 0.8rem; color: rgb(233 236 228 / 0.7); }
.book__gloss {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 2px 4px 4px 2px;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 0.16) 50%, transparent 62%);
  background-size: 320% 100%;
  background-position: var(--gx) 0;
  transform: translateZ(0.5px);
}
.book__pages {
  position: absolute;
  top: 1.5%; bottom: 1.5%;
  right: 0;
  width: 26px;
  transform: rotateY(90deg) translateZ(-1px);
  transform-origin: right;
  background: repeating-linear-gradient(90deg, #f3f4ef 0 2px, #d6dacf 2px 3px);
}

.book__text .section__title { margin-bottom: 1.5rem; font-style: italic; }
.book__lead { font-size: var(--step-1); line-height: 1.6; max-width: 32em; }
.book__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-block: 2rem;
  padding-block: 1.25rem;
  border-block: 1px solid var(--paper-line);
}
.book__facts dt { color: var(--muted); font-size: 0.875rem; }
.book__facts dd { font-weight: 500; }
.book__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.writings { margin-top: clamp(4.5rem, 9vw, 7rem); }
.writings__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--heading-weight);
}
.writings__lede { color: var(--muted); margin-top: 0.4rem; margin-bottom: 1.75rem; }
.writings__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid var(--paper-line);
}
.writings__list li { border-bottom: 1px solid var(--paper-line); }
.writings__list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-block: 1rem;
  color: var(--graphite);
  text-decoration: none;
}
.writings__name { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; transition: color 0.2s; }
.writings__kind { color: var(--muted); font-size: 0.9rem; }
.writings__list a:hover .writings__name { color: var(--felt); }

/* ---------- Canales ---------- */

.channels { background: var(--paper-2); }
.channels__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.channel {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border-radius: var(--radius-md);
}
.channel__avatar {
  width: 5.5rem;
  height: 5.5rem;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.channel__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: var(--heading-weight);
  line-height: 1.2;
}
.channel__desc { color: var(--muted); margin-block: 0.5rem 1.25rem; font-size: 0.98rem; }
.channel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding-block: 3rem;
  font-size: 0.95rem;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: baseline; }
.footer__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--on-ink); margin-right: auto; }
.footer a { color: var(--on-ink); }
.footer a:hover { color: var(--brass); }
.footer__legal { width: 100%; font-size: 0.85rem; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .recent__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opus, .writings__list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --title-weight: 600; }
  .bio__grid, .book__grid, .channels__list { grid-template-columns: 1fr; }
  .bio__photo { position: static; max-width: 26rem; }
  .journey { grid-template-columns: 1fr; }
  .journey__photos { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .scores { grid-template-columns: 1fr; }
  .scores__photo { max-width: 16rem; margin-inline: auto; text-align: center; }
  .book__object { order: -1; }
  .book__3d { width: min(70%, 15rem); }
}

@media (max-width: 560px) {
  .recent__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .recent__list::-webkit-scrollbar { display: none; }
  .recent__list > li { scroll-snap-align: start; }
  .timeline li { grid-template-columns: 1fr; }
  .journey__photos { grid-template-columns: 1fr; }
  .opus__item a { grid-template-columns: 3.6rem minmax(0, 1fr); }
  .opus__item a::after { display: none; }
  .channel { flex-direction: column; gap: 1rem; }
  .book__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
