/* ==========================================================================
   AND — Entertainment & Culture Company
   Una sola hoja. Dos estados de luz: sala encendida (plata) y sala apagada (negro).
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Registradas para que el cambio de luz se anime de verdad, no salte. */
@property --bg    { syntax: '<color>'; inherits: true; initial-value: #d6d6da; }
@property --ink   { syntax: '<color>'; inherits: true; initial-value: #0a0a0a; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #55555a; }
@property --line  { syntax: '<color>'; inherits: true; initial-value: rgba(10, 10, 10, .2); }

:root {
  --silver: #d6d6da;
  --black: #0a0a0a;
  --bone: #edebe6;
  --acid: #d8ff3e;

  --pad: clamp(1.25rem, 4.4vw, 4rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --section: clamp(5.5rem, 11vw, 9.5rem);

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --lights: 1s;
}

html[data-theme='light'] {
  --bg: #d6d6da;
  --ink: #0a0a0a;
  --muted: #55555a;
  --line: rgba(10, 10, 10, .2);
}
html[data-theme='dark'] {
  --bg: #0a0a0a;
  --ink: #edebe6;
  --muted: #94928d;
  --line: rgba(237, 235, 230, .2);
}

/* ---------- base ---------- */

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

html {
  background: var(--bg);
  color: var(--ink);
  transition: --bg var(--lights) var(--ease), --ink var(--lights) var(--ease),
              --muted var(--lights) var(--ease), --line var(--lights) var(--ease);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* grano fino sobre todo, como el del logo */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
b { font-weight: 600; }

::selection { background: var(--acid); color: var(--black); }

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

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

.skip {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 60;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- tipografía ---------- */

.label {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.display {
  font-size: clamp(2.1rem, 6.3vw, 5.75rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: .92;
  letter-spacing: -.012em;
  text-transform: uppercase;
  text-wrap: balance;
}

.statement {
  max-width: 24em;
  font-size: clamp(1.45rem, 3.1vw, 2.9rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.022em;
  text-wrap: pretty;
}
.statement--xl {
  max-width: 19.5em;
  font-size: clamp(1.7rem, 4.5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -.028em;
}
.statement__end { display: block; margin-top: .55em; }

/* Cada "AND" del texto es el logotipo. */
.and {
  font-weight: 900;
  font-stretch: 125%;
  font-size: .84em;
  letter-spacing: -.01em;
}

.star { width: .62em; height: .62em; fill: currentColor; flex: none; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem var(--pad) 2.25rem;
  /* velo del color de la sala: el contenido se apaga al pasar por debajo */
  background: linear-gradient(to bottom, var(--bg) 38%, transparent);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-size: 1.05rem;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -.01em;
  line-height: 1;
  text-decoration: none;
}
.nav__brand .star { transition: transform .8s var(--ease); }
.nav__brand:hover .star { transform: rotate(180deg); }

.nav__list {
  display: flex;
  gap: clamp(1.1rem, 2.6vw, 2.6rem);
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav__list a {
  position: relative;
  padding: .5rem 0;
  text-decoration: none;
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__list a:hover::after,
.nav__list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 720px) {
  .nav__opt { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 5.5rem var(--pad) 1.6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero__canvas.is-ready { opacity: 1; }

.hero__kicker { text-align: center; }

.hero__lockup {
  place-self: center;
  display: grid;
  row-gap: clamp(.5rem, 1.2vw, 1.1rem);
}

.hero__and {
  font-size: clamp(5.4rem, 23vw, 25rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: .74;
  letter-spacing: -.035em;
  /* compensa el interletrado negativo para que el bloque quede centrado ópticamente */
  margin-right: -.035em;
}
@media (max-width: 720px) {
  .hero__and { font-size: clamp(4.5rem, 30vw, 11rem); }
}

.hero__word {
  overflow: hidden;
  font-size: clamp(.95rem, 2.15vw, 2.1rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero__word--a { justify-self: start; padding-left: .12em; }
.hero__word--b { justify-self: end; padding-right: .12em; }
.hero__word span {
  display: block;
  transition: transform .7s var(--ease), opacity .5s var(--ease), filter .5s var(--ease);
}
.hero__word span.is-out { transform: translateY(-105%); opacity: 0; filter: blur(6px); }
.hero__word span.is-pre { transform: translateY(105%); opacity: 0; filter: blur(6px); transition: none; }

.hero__foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
}
.hero__motto { text-transform: none; letter-spacing: .04em; font-size: .78rem; }
.hero__scroll { justify-self: end; text-decoration: none; }
.hero__scroll span { display: inline-block; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(.3em); } }

@media (max-width: 720px) {
  .hero__foot { grid-template-columns: 1fr auto; }
  .hero__geo { display: none; }
}

/* ---------- secciones ---------- */

.section {
  padding: var(--section) var(--pad);
}
.section__label { margin-bottom: clamp(2rem, 4vw, 3.5rem); color: var(--muted); }
.section__lead {
  max-width: 34rem;
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
  font-size: 1.125rem;
}

/* ---------- 01 origen ---------- */

.origin__body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(4rem, 10vw, 9rem);
}
.origin__body > p { grid-column: 6 / -1; max-width: 36rem; font-size: 1.125rem; }
.origin__body > .origin__punch {
  max-width: none;
  font-size: clamp(1.35rem, 2.7vw, 2.5rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.02em;
}

.origin__vision {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 1.75rem;
  margin-top: clamp(4rem, 10vw, 9rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.origin__vision > .label { grid-column: 1 / 6; color: var(--muted); }
.origin__vision > .statement { grid-column: 6 / -1; }
.origin__small { grid-column: 6 / -1; max-width: 36rem; color: var(--muted); }

@media (max-width: 800px) {
  .origin__body > p,
  .origin__vision > .label,
  .origin__vision > .statement,
  .origin__small { grid-column: 1 / -1; }
}

/* ---------- 02 universo ---------- */

.lines {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.line {
  display: grid;
  grid-template-columns: minmax(4.5rem, 2fr) 6fr 4fr minmax(8.5rem, auto);
  align-items: baseline;
  column-gap: var(--gap);
  padding: clamp(1.25rem, 2.4vw, 2rem) 0;
  border-top: 1px solid var(--line);
}
.line__and {
  font-size: clamp(1.1rem, 2.5vw, 2.2rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--muted);
  opacity: .55;
  transition: opacity .5s var(--ease), color .5s var(--ease);
}
.line:hover .line__and { opacity: 1; color: var(--ink); }
.line__title {
  font-size: clamp(1.2rem, 2.9vw, 2.6rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -.012em;
  text-transform: uppercase;
  transition: transform .6s var(--ease);
}
.line:hover .line__title { transform: translateX(.35em); }
.line__text { color: var(--muted); }
.line__tag { justify-self: end; text-align: right; text-decoration: none; white-space: nowrap; }
a.line__tag { border-bottom: 1px solid currentColor; padding-bottom: .15em; }

.universe__close {
  max-width: 34rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-left: auto;
  font-size: 1.125rem;
}

@media (max-width: 900px) {
  .line {
    grid-template-columns: auto 1fr;
    row-gap: .6rem;
    align-items: baseline;
  }
  .line__text, .line__tag { grid-column: 2; }
  .line__tag { justify-self: start; text-align: left; margin-top: .35rem; }
  .universe__close { margin-left: 0; }
}

/* ---------- 03 roster ---------- */

.roster__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-top: clamp(3.5rem, 8vw, 7rem);
}

.roster__stage { position: sticky; top: 5.5rem; }
.roster__frames {
  position: relative;
  aspect-ratio: 5 / 6;
  max-height: calc(100vh - 9.5rem);
  max-height: calc(100svh - 9.5rem);
  width: 100%;
  overflow: hidden;
  background: #141414;
}
.roster__frames img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .6s var(--ease), transform 1.4s var(--ease);
}
.roster__frames img.is-on { opacity: 1; transform: none; }
.roster__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .9rem;
  color: var(--muted);
}
.roster__caption-name { color: var(--ink); }

.roster__list { border-bottom: 1px solid var(--line); }

.artist { border-top: 1px solid var(--line); }
.artist summary {
  display: grid;
  grid-template-columns: 3rem 1fr 1.25rem;
  align-items: center;
  column-gap: .5rem;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0;
  cursor: pointer;
  list-style: none;
  transition: opacity .4s var(--ease);
}
.artist summary::-webkit-details-marker { display: none; }
.artist__num { color: var(--muted); align-self: start; padding-top: .55em; }
.artist__id { display: grid; row-gap: .5rem; min-width: 0; }
.artist__name {
  font-size: clamp(1.25rem, 2.7vw, 2.3rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -.012em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition: transform .6s var(--ease);
}
.artist__meta { color: var(--muted); }
.artist summary:hover .artist__name { transform: translateX(.3em); }

@media (hover: hover) {
  .roster__list:hover .artist:not(:hover):not([open]) summary { opacity: .42; }
}

.artist__toggle {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  justify-self: end;
}
.artist__toggle::before,
.artist__toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transition: transform .5s var(--ease);
}
.artist__toggle::after { transform: rotate(90deg); }
.artist[open] .artist__toggle::after { transform: rotate(0deg); }

.artist__panel {
  display: grid;
  row-gap: 1.35rem;
  max-width: 42rem;
  padding: .25rem 0 2.5rem 3.5rem;
  animation: panel .7s var(--ease) both;
}
@keyframes panel { from { opacity: 0; transform: translateY(-.5rem); } }

.artist__photo { display: none; }
.artist__role { color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem var(--gap);
}
.facts dt {
  margin-bottom: .3rem;
  font: 500 .6875rem/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }

.artist__hl { display: grid; row-gap: .4rem; }
.artist__hl li { padding-left: 1.6em; text-indent: -1.6em; }
.artist__hl li::before { content: '— '; color: var(--muted); }
.artist__fit {
  padding-left: 1rem;
  border-left: 1px solid var(--ink);
  color: var(--muted);
}
.artist__fit b { color: var(--ink); }

@media (max-width: 900px) {
  .roster__grid { grid-template-columns: 1fr; }
  .roster__stage { display: none; }
  .artist summary { grid-template-columns: 2.4rem 1fr 1.25rem; }
  .artist__panel { padding-left: 0; }
  .artist__photo {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    background: #141414;
  }
}

.packs {
  margin-top: clamp(4rem, 9vw, 8rem);
}
.packs__label { color: var(--muted); margin-bottom: 1.25rem; }
.packs__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem var(--gap);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.packs__list h3 { margin: 0 0 .55rem; color: var(--muted); }
.packs__list p { line-height: 1.35; }
@media (max-width: 900px) { .packs__list { grid-template-columns: 1fr 1fr; } }

/* ---------- 04 personas ---------- */

.people__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem var(--gap);
  margin-top: clamp(3.5rem, 8vw, 7rem);
}
.person {
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}
.person__role { color: var(--muted); }
.person__name {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
.person p:last-child { max-width: 30rem; }
@media (min-width: 901px) {
  .person__name { min-height: 2.04em; }
}
.people__close { margin-top: clamp(4rem, 9vw, 8rem); margin-left: auto; max-width: 15em; }

@media (max-width: 900px) {
  .people__list { grid-template-columns: 1fr; }
  .person__name { margin-top: 1.5rem; }
  .people__close { margin-left: 0; }
}

/* ---------- 05 valores ---------- */

.values { padding-top: 0; scroll-margin-top: 5rem; }
.values .section__label { padding-top: 1.5rem; border-top: 1px solid var(--line); }

.value {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 1rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.75rem) 0;
  border-top: 1px solid var(--line);
}
.value__num { grid-column: 1 / 2; padding-top: .9em; color: var(--muted); }
.value__name {
  grid-column: 2 / -1;
  font-size: clamp(1.75rem, 7.3vw, 7.4rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: .9;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.value p { grid-column: 8 / -1; max-width: 30rem; }

@media (max-width: 900px) {
  .value__num { grid-column: 1 / -1; padding-top: 0; }
  .value__name, .value p { grid-column: 1 / -1; }
}

/* ---------- 06 contacto ---------- */

.contact { padding-bottom: clamp(4rem, 8vw, 7rem); }

.book {
  display: inline-flex;
  align-items: center;
  gap: .22em;
  margin-top: clamp(3.5rem, 9vw, 8rem);
  font-size: clamp(2rem, 9.3vw, 10.5rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.book .star { width: .68em; height: .68em; transition: transform 1s var(--ease); }
.book:hover .star, .book:focus-visible .star { transform: rotate(180deg) scale(1.08); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.contact__text { grid-column: 1 / 6; max-width: 30rem; font-size: 1.125rem; }
.contact__facts { grid-column: 7 / -1; }
.contact__facts dd.is-pending { color: var(--muted); }

@media (max-width: 800px) {
  .contact__text, .contact__facts { grid-column: 1 / -1; }
}

/* ---------- footer ---------- */

.footer {
  padding: 0 var(--pad);
  overflow: hidden;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer__more { margin-top: clamp(3rem, 8vw, 7rem); text-align: center; color: var(--muted); }
/* El logotipo se corta: la frase no termina. */
.footer__and {
  height: .47em;
  margin-top: 1.25rem;
  margin-right: -.035em;
  overflow: hidden;
  font-size: 31.5vw;
  font-weight: 900;
  font-stretch: 125%;
  line-height: .74;
  letter-spacing: -.035em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.footer__more { order: 0; }
.footer { display: flex; flex-direction: column; }
.footer__and { order: 2; }

/* ---------- aparición ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .hero__canvas, body::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
