/* ZETTA — cinematic foundry */

:root {
  --ink: oklch(13.5% 0.018 62);
  --ink-2: oklch(16.8% 0.02 62);
  --ink-3: oklch(20.5% 0.022 60);
  --bone: oklch(93.5% 0.018 85);
  --bone-soft: oklch(80% 0.022 78);
  --bone-dim: oklch(66% 0.024 70);
  --copper: oklch(74% 0.1 62);
  --copper-deep: oklch(52% 0.1 50);
  --ember: oklch(62% 0.14 42);
  --line: oklch(27% 0.02 60);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Instrument Sans", "Segoe UI", sans-serif;
  --font-mono: "Fragment Mono", "Courier New", monospace;
  --pad: clamp(1.25rem, 3vw, 3.25rem);
  --max: 1400px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.25rem;
  overflow-x: clip;
}

html,
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: clip;
}

::selection {
  background: oklch(72% 0.1 62);
  color: var(--ink);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--copper);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 1rem;
  background: var(--bone);
  color: var(--ink);
}

.skip:focus {
  top: 1rem;
}

/* Atmosphere */

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spot {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(640px 480px at var(--mx, 42%) var(--my, 28%), oklch(72% 0.08 62 / 0.11), transparent 58%),
    radial-gradient(1200px 800px at 50% 120%, oklch(20% 0.03 50 / 0.55), transparent 55%);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--copper-deep), var(--copper));
  transform-origin: left;
}

/* Intro */

.intro {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--ink);
  transition: transform 1s var(--ease), opacity 0.7s var(--ease);
}

.intro.is-out {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.intro__mark {
  display: flex;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.6rem, 13vw, 9.4rem);
  letter-spacing: 0.22em;
  line-height: 1;
  padding-left: 0.22em;
}

.intro__mark span {
  display: inline-block;
  opacity: 0;
  transform: translateY(28%);
  animation: letter 0.8s var(--ease) forwards;
}

.intro__mark span:nth-child(1) { animation-delay: 0.08s; }
.intro__mark span:nth-child(2) { animation-delay: 0.16s; }
.intro__mark span:nth-child(3) { animation-delay: 0.24s; }
.intro__mark span:nth-child(4) { animation-delay: 0.32s; }
.intro__mark span:nth-child(5) { animation-delay: 0.4s; }

@keyframes letter {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Segunda palabra del lockup: entra después de la última letra */
.intro__word {
  margin: 0.9rem 0 0;
  padding-left: 0.44em;
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 1.5vw, 0.98rem);
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0;
  transform: translateY(28%);
  animation: letter 0.8s var(--ease) 0.5s forwards;
}

.intro__rule {
  position: absolute;
  width: min(220px, 40vw);
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  animation: rule 0.9s var(--ease) 0.45s forwards;
}

.intro__seal {
  position: absolute;
  width: min(38vw, 280px);
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: sepia(0.3);
}

.intro__sub {
  position: absolute;
  bottom: 12vh;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

@keyframes rule {
  to { transform: scaleX(1); }
}

/* Nav */

.nav {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.62rem 0.7rem 0.62rem 0.85rem;
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid oklch(90% 0.02 85 / 0.09);
  border-radius: 999px;
  background: oklch(15% 0.018 62 / 0.62);
  box-shadow:
    inset 0 1px 0 oklch(96% 0.02 85 / 0.1),
    0 12px 40px oklch(10% 0.02 62 / 0.28);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  transition: transform 0.45s var(--ease), background 0.35s var(--ease);
}

.nav.is-thin {
  transform: translateY(-2px);
  background: oklch(14% 0.018 62 / 0.82);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__sigil {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--copper);
  border-radius: 0.28rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--copper);
}

.nav__word {
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: clamp(1.1rem, 3vw, 2.6rem);
  font-size: 0.84rem;
  color: var(--bone-soft);
}

.nav__links a {
  position: relative;
  padding: 0.2rem 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a.is-on::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav__cta-short {
  display: none;
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
}

.lang button {
  position: relative;
  appearance: none;
  margin: 0;
  padding: 0.28rem 0.38rem;
  border: 0;
  background: transparent;
  color: var(--bone-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

/* Área táctil sin alterar el aire de la barra */
.lang button::after {
  content: "";
  position: absolute;
  inset: -0.55rem -0.1rem;
}

.lang button + button {
  padding-left: 0.55rem;
}

.lang button + button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.12rem;
  width: 1px;
  height: 0.7em;
  background: oklch(90% 0.02 85 / 0.28);
  transform: translateY(-50%);
}

.lang button[aria-pressed="true"] {
  color: var(--copper);
}

.lang button:hover,
.lang button:focus-visible {
  color: var(--bone);
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:active {
  transform: scale(0.98);
}

.btn--solid {
  background: var(--bone);
  color: var(--ink);
}

.btn--solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--copper);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
}

.btn--solid:hover::before {
  transform: none;
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--copper);
  border-bottom: 1px solid oklch(74% 0.1 62 / 0.35);
}

.text-link:hover {
  color: var(--bone);
  border-color: var(--bone);
}

/* La tira abierta entera lleva al sitio: el enlace avisa adónde */
.strip.is-open .strip__hit:hover ~ .strip__body .text-link {
  color: var(--bone);
  border-color: var(--bone);
}

/* Hero */

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.68fr);
  gap: clamp(2rem, 5vw, 6.5rem);
  align-items: end;
  min-height: 100dvh;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(7.6rem + 1vh) var(--pad) 4.8rem;
}

.hero__plate {
  position: absolute;
  inset: 0 0 0 28%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
}

.hero__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  transform: scale(1.12);
  opacity: 0.86;
  filter: saturate(0.92) contrast(1.04);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.live {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 0 oklch(74% 0.1 62 / 0.5);
  animation: beat 2.6s ease-out infinite;
}

@keyframes beat {
  70% { box-shadow: 0 0 0 9px oklch(74% 0.1 62 / 0); }
}

.hero__title,
.section-head h2,
.chapter__copy h3,
.dante__copy h2,
.contact__panel h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.hero__title {
  display: grid;
  gap: 0.08em;
  font-size: clamp(3.15rem, 7.6vw, 7.6rem);
  max-width: 13ch;
}

.hero__title .line {
  display: block;
}

.hero__lead {
  max-width: 44ch;
  margin: 1.7rem 0 2.1rem;
  color: var(--bone-soft);
  font-size: 1.04rem;
  line-height: 1.68;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 3.6vw, 3.4rem);
}

/* Si vuelve el subtítulo, el aire ya lo da su margen */
.hero__lead + .hero__actions {
  margin-top: 0;
}

.hero__meta {
  position: relative;
  z-index: 2;
}

.console {
  padding: 1.15rem 1.2rem 0.4rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, oklch(16% 0.02 62 / 0.55), oklch(14% 0.018 62 / 0.38));
  box-shadow: inset 0 1px 0 oklch(96% 0.02 85 / 0.06);
  backdrop-filter: blur(3px);
}

.console__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.console__year {
  color: var(--copper);
}

.dial__kicker,
.clock__label,
.clock__city {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.dial__num {
  margin: 0.1rem 0 0.15rem;
  font-family: var(--font-serif);
  font-size: clamp(5.2rem, 10vw, 7.6rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
}

.dial__unit {
  color: var(--bone-soft);
  font-size: 0.9rem;
}

.clock {
  margin-top: 1.35rem;
}

.clock__face {
  display: block;
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.ticks {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.ticks li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.ticks span {
  color: var(--bone-dim);
}

.ticks b {
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Marquee */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 1.4rem;
  padding: 0.95rem 0;
  animation: drift 42s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  white-space: nowrap;
}

.marquee__track i {
  width: 3px;
  height: 3px;
  rotate: 45deg;
  background: var(--copper);
  opacity: 0.7;
  flex: none;
}

@keyframes drift {
  to { transform: translateX(-50%); }
}

/* Sections */

.opus,
.atlas,
.obras,
.worlds,
.craft,
.dante,
.contact {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5.6rem, 12vh, 8.6rem) var(--pad);
  scroll-margin-top: 6.25rem;
}

/* Proof bar */

.proof {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.2rem, 5vh, 3.4rem) var(--pad) clamp(1.4rem, 3vh, 2.2rem);
}

.proof__grid {
  margin: 0;
  padding: clamp(1.6rem, 3vh, 2.4rem) 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof__grid li {
  display: grid;
  gap: 0.34rem;
  align-content: start;
}

.proof__grid b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--copper);
}

.proof__grid i {
  font-style: normal;
  font-size: 0.5em;
  color: var(--bone-dim);
}

.proof__grid span {
  color: var(--bone-dim);
  font-size: 0.8rem;
  line-height: 1.42;
  text-wrap: balance;
}

/* Opus — la operación */

.opus__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.8rem, 3.4vw, 3.4rem);
  counter-reset: none;
}

.opus__steps li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.opus__steps li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.4rem;
  height: 1px;
  background: var(--copper);
}

.opus__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--copper-deep);
}

.opus__steps h3 {
  margin: 0.62rem 0 0.7rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--copper);
}

.opus__steps p {
  margin: 0;
  color: var(--bone-soft);
  font-size: 0.94rem;
}

.opus__note {
  margin: clamp(2.4rem, 5vh, 3.8rem) 0 0;
  max-width: 52ch;
  padding-left: 1.15rem;
  border-left: 1px solid var(--copper-deep);
  color: var(--bone-dim);
  font-size: 0.94rem;
  text-wrap: pretty;
}

/* Craft */

.craft__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.6rem, 3vw, 2.8rem);
}

.craft__col {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.craft__col h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.craft__col .facts {
  margin: 0.9rem 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vh, 3.6rem);
}

.section-head h2 {
  font-size: clamp(2.7rem, 5.6vw, 5.6rem);
  grid-column: 1;
}

.section-head__note {
  max-width: 26ch;
  margin: 0;
  color: var(--bone-dim);
  font-size: 0.9rem;
}

/* Atlas rail */

.rail {
  display: flex;
  min-height: 78dvh;
  border: 1px solid var(--line);
  overflow: hidden;
}

.strip {
  position: relative;
  flex: 0.72 1 0;
  min-width: 0;
  isolation: isolate;
  border-right: 1px solid var(--line);
  transition: flex 0.75s var(--ease);
  background: var(--ink-2);
}

.strip:last-child {
  border-right: 0;
}

/* Materias reservadas: se revelan con cuatro clics en la firma del pie.
   La marquesina esconde también el separador, si no queda un doble punto. */
.strip.is-secret,
.marquee__track span.is-secret,
.marquee__track span.is-secret + i {
  display: none;
}

.strip.is-open,
.rail:hover .strip:hover {
  flex: 2.85 1 0;
}

.rail:hover .strip:not(:hover) {
  flex: 0.52 1 0;
}

.strip__hit {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 78dvh;
  padding: 1.2rem 0.95rem 1.35rem;
  text-align: left;
}

.strip.is-open .strip__hit,
.strip:hover .strip__hit {
  justify-content: flex-start;
  gap: 0.5rem;
}

.strip__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--copper);
}

.strip__name {
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.strip.is-open .strip__name,
.strip:hover .strip__name {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: clamp(1.85rem, 2.7vw, 2.85rem);
}

.strip__cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.strip.is-open .strip__cat,
.strip:hover .strip__cat {
  opacity: 1;
}

.strip__body {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.35rem;
  z-index: 4;
  max-width: 34ch;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease) 0.08s, transform 0.45s var(--ease) 0.08s;
  pointer-events: none;
}

.strip__body p {
  margin: 0;
  color: var(--bone-soft);
  font-size: 0.94rem;
}

.strip__facts {
  margin: 0.85rem 0 0.95rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
}

.strip__facts li {
  position: relative;
  padding-left: 0.68rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
}

.strip__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.3rem;
  height: 1px;
  background: var(--copper-deep);
}

.strip.is-open .strip__body,
.strip:hover .strip__body {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.strip__art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.38;
  transition: opacity 0.45s var(--ease);
}

.strip.is-open .strip__art,
.strip:hover .strip__art {
  opacity: 1;
}

.strip__art img {
  width: 148%;
  height: 118%;
  max-width: none;
  object-fit: cover;
  object-position: 54% 42%;
  margin: -6% -24% 0 -24%;
  filter: saturate(0.9);
}

.strip.is-open .strip__art img,
.strip:hover .strip__art img {
  width: 118%;
  margin-left: -9%;
  margin-right: -9%;
}

/* Mientras el mouse recorre el riel manda sólo la tira apuntada: la que había
   quedado abierta se colapsa entera, en vez de convivir expandida con la nueva. */
@media (hover: hover) and (min-width: 981px) {
  .rail:hover .strip.is-open:not(:hover) {
    flex: 0.72 1 0;
  }

  .rail:hover .strip.is-open:not(:hover) .strip__hit {
    justify-content: space-between;
    gap: 0;
  }

  .rail:hover .strip.is-open:not(:hover) .strip__name {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: clamp(1.4rem, 2vw, 2rem);
  }

  .rail:hover .strip.is-open:not(:hover) .strip__cat {
    opacity: 0;
  }

  .rail:hover .strip.is-open:not(:hover) .strip__body {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
  }

  .rail:hover .strip.is-open:not(:hover) .strip__art {
    opacity: 0.38;
  }

  .rail:hover .strip.is-open:not(:hover) .strip__art img {
    width: 148%;
    margin-left: -24%;
    margin-right: -24%;
  }
}

.strip__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(14% 0.02 62 / 0.08) 28%, oklch(14% 0.02 62 / 0.88) 92%);
  pointer-events: none;
}

/* Vista previa de láminas en línea (lineas.html). No altera el riel original. */
html.visual-lineas .strip__art {
  opacity: 0.42;
}

html.visual-lineas .strip.is-open .strip__art,
html.visual-lineas .strip:hover .strip__art {
  opacity: 1;
}

html.visual-lineas .strip__art img {
  width: 240%;
  height: 170%;
  margin: -22% -70% 0 -70%;
  object-position: 40% 74%;
  filter: brightness(0.7) contrast(1.25) sepia(0.2);
  mix-blend-mode: multiply;
}

html.visual-lineas .strip.is-open .strip__art img,
html.visual-lineas .strip:hover .strip__art img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: 42% 68%;
  transform: scale(1.9);
  transform-origin: 42% 68%;
  mix-blend-mode: normal;
  filter: brightness(0.88) contrast(1.12) sepia(0.08);
}

html.visual-lineas .strip[data-visual="fire"].is-open .strip__art img,
html.visual-lineas .strip[data-visual="fire"]:hover .strip__art img,
html.visual-lineas .strip[data-visual="pixel"].is-open .strip__art img,
html.visual-lineas .strip[data-visual="pixel"]:hover .strip__art img {
  object-position: 50% 68%;
  transform: scale(2.55);
  transform-origin: 50% 68%;
}

html.visual-lineas .strip[data-visual="path"].is-open .strip__art img,
html.visual-lineas .strip[data-visual="path"]:hover .strip__art img {
  object-position: 32% 64%;
  transform-origin: 32% 64%;
  transform: scale(2.1);
}

html.visual-lineas .strip__art::after {
  background: linear-gradient(180deg, oklch(14% 0.02 62 / 0.06) 20%, oklch(14% 0.02 62 / 0.8) 94%);
}

html.visual-lineas .strip.is-open .strip__art::after,
html.visual-lineas .strip:hover .strip__art::after {
  background: linear-gradient(180deg, oklch(96% 0.02 85 / 0.28) 0%, oklch(96% 0.02 85 / 0.04) 32%, transparent 48%, oklch(14% 0.02 62 / 0.18) 100%);
}

html.visual-lineas .strip.is-open .strip__name,
html.visual-lineas .strip:hover .strip__name {
  color: var(--ink);
}

html.visual-lineas .strip.is-open .strip__cat,
html.visual-lineas .strip:hover .strip__cat {
  color: oklch(32% 0.03 55);
}

html.visual-lineas .strip.is-open .strip__num,
html.visual-lineas .strip:hover .strip__num {
  color: var(--copper-deep);
}

html.visual-lineas .strip.is-open .strip__body p,
html.visual-lineas .strip:hover .strip__body p {
  color: var(--ink-2);
}

html.visual-lineas .strip.is-open .strip__facts li,
html.visual-lineas .strip:hover .strip__facts li {
  color: var(--copper-deep);
}

html.visual-lineas .strip.is-open .text-link,
html.visual-lineas .strip:hover .text-link,
html.visual-lineas .strip.is-open .strip__hit:hover ~ .strip__body .text-link {
  color: var(--copper-deep);
  border-color: oklch(52% 0.1 50 / 0.45);
}

@media (hover: hover) and (min-width: 981px) {
  html.visual-lineas .rail:hover .strip.is-open:not(:hover) .strip__art img {
    width: 240%;
    height: 170%;
    margin: -22% -70% 0 -70%;
    object-position: 40% 74%;
    transform: none;
    mix-blend-mode: multiply;
    filter: brightness(0.7) contrast(1.25) sepia(0.2);
  }
}

@media (max-width: 980px) {
  html.visual-lineas .strip__art,
  html.visual-lineas .strip.is-open .strip__art {
    opacity: 1;
  }

  html.visual-lineas .strip__art img,
  html.visual-lineas .strip.is-open .strip__art img,
  html.visual-lineas .strip:hover .strip__art img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: 42% 66%;
    transform: scale(1.7);
    transform-origin: 42% 66%;
    mix-blend-mode: normal;
    filter: brightness(0.86) contrast(1.14) sepia(0.1);
  }

  html.visual-lineas .strip.is-open .strip__art::after {
    background: linear-gradient(180deg, oklch(96% 0.02 85 / 0.2) 0%, transparent 36%, oklch(14% 0.02 62 / 0.12) 100%);
  }
}

/* Láminas de mesa (sitio oficial y vista previa). */
html:is(.visual-plates, .visual-davinci) .strip__art {
  opacity: 0.45;
}

html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__art,
html:is(.visual-plates, .visual-davinci) .strip:hover .strip__art {
  opacity: 1;
  background: oklch(90% 0.02 78);
}

html:is(.visual-plates, .visual-davinci) .strip__art img {
  width: 220%;
  height: 160%;
  margin: -20% -60% 0 -60%;
  object-position: 42% 62%;
  filter: brightness(0.72) contrast(1.2) sepia(0.18);
  mix-blend-mode: multiply;
}

html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__art img,
html:is(.visual-plates, .visual-davinci) .strip:hover .strip__art img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center 42%;
  transform: none;
  mix-blend-mode: normal;
  filter: none;
}

html:is(.visual-plates, .visual-davinci) .strip__art::after {
  background: linear-gradient(180deg, oklch(14% 0.02 62 / 0.08) 18%, oklch(14% 0.02 62 / 0.8) 94%);
}

html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__art::after,
html:is(.visual-plates, .visual-davinci) .strip:hover .strip__art::after {
  background: linear-gradient(180deg, oklch(96% 0.02 85 / 0.22) 0%, oklch(96% 0.02 85 / 0.04) 28%, transparent 46%, oklch(14% 0.02 62 / 0.14) 100%);
}

html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__name,
html:is(.visual-plates, .visual-davinci) .strip:hover .strip__name {
  color: var(--ink);
}

html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__cat,
html:is(.visual-plates, .visual-davinci) .strip:hover .strip__cat {
  color: oklch(32% 0.03 55);
}

html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__num,
html:is(.visual-plates, .visual-davinci) .strip:hover .strip__num {
  color: var(--copper-deep);
}

html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__body p,
html:is(.visual-plates, .visual-davinci) .strip:hover .strip__body p {
  color: var(--ink-2);
}

html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__facts li,
html:is(.visual-plates, .visual-davinci) .strip:hover .strip__facts li {
  color: var(--copper-deep);
}

html:is(.visual-plates, .visual-davinci) .strip.is-open .text-link,
html:is(.visual-plates, .visual-davinci) .strip:hover .text-link,
html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__hit:hover ~ .strip__body .text-link {
  color: var(--copper-deep);
  border-color: oklch(52% 0.1 50 / 0.45);
}

@media (hover: hover) and (min-width: 981px) {
  html:is(.visual-plates, .visual-davinci) .rail:hover .strip.is-open:not(:hover) .strip__art img {
    width: 220%;
    height: 160%;
    margin: -20% -60% 0 -60%;
    object-position: 42% 62%;
    transform: none;
    mix-blend-mode: multiply;
    filter: brightness(0.72) contrast(1.2) sepia(0.18);
  }
}

@media (max-width: 980px) {
  html:is(.visual-plates, .visual-davinci) .strip__art,
  html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__art {
    opacity: 1;
  }

  html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__art {
    background: oklch(90% 0.02 78);
  }

  html:is(.visual-plates, .visual-davinci) .strip__art img,
  html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__art img,
  html:is(.visual-plates, .visual-davinci) .strip:hover .strip__art img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center 38%;
    transform: none;
    mix-blend-mode: normal;
    filter: none;
  }

  html:is(.visual-plates, .visual-davinci) .strip.is-open .strip__art::after {
    background: linear-gradient(180deg, oklch(96% 0.02 85 / 0.18) 0%, transparent 36%, oklch(14% 0.02 62 / 0.1) 100%);
  }
}

.strip[data-visual="copper"] { background: linear-gradient(180deg, var(--ink-2), oklch(22% 0.04 55)); }
.strip[data-visual="ember"] { background: linear-gradient(180deg, var(--ink-2), oklch(20% 0.045 40)); }
.strip[data-visual="ink"] { background: linear-gradient(180deg, var(--ink-2), oklch(16% 0.03 280)); }
.strip[data-visual="stone"] { background: linear-gradient(180deg, var(--ink-2), oklch(19% 0.015 90)); }
.strip[data-visual="fire"] { background: linear-gradient(180deg, var(--ink-2), oklch(21% 0.05 45)); }
.strip[data-visual="mist"] { background: linear-gradient(180deg, var(--ink-2), oklch(20% 0.02 200)); }
.strip[data-visual="pixel"] { background: linear-gradient(180deg, var(--ink-2), oklch(18% 0.03 140)); }
.strip[data-visual="paper"] { background: linear-gradient(180deg, var(--ink-2), oklch(22% 0.025 85)); }
.strip[data-visual="path"] { background: linear-gradient(180deg, var(--ink-2), oklch(19% 0.03 150)); }
.strip[data-visual="ledger"] { background: linear-gradient(180deg, var(--ink-2), oklch(19% 0.038 168)); }
.strip[data-visual="station"] { background: linear-gradient(180deg, var(--ink-2), oklch(20% 0.042 72)); }

/* Sigils */

.sigil {
  position: absolute;
  inset: 18% 12% 28%;
  opacity: 0.58;
}

.sigil--docs {
  background:
    linear-gradient(var(--copper), var(--copper)) 20% 28% / 58% 1px no-repeat,
    linear-gradient(var(--copper), var(--copper)) 20% 40% / 46% 1px no-repeat,
    linear-gradient(var(--copper), var(--copper)) 20% 52% / 52% 1px no-repeat,
    linear-gradient(oklch(90% 0.02 85 / 0.07), oklch(90% 0.02 85 / 0.07)) center / 68% 76% no-repeat;
  border: 1px solid oklch(74% 0.1 62 / 0.32);
}

.sigil--wave {
  background: repeating-linear-gradient(
    90deg,
    transparent 0 9px,
    oklch(74% 0.1 62 / 0.5) 9px 11px
  );
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 74%);
  animation: wave 3.4s ease-in-out infinite;
}

.sigil--orbit {
  border: 1px solid oklch(74% 0.1 62 / 0.42);
  border-radius: 50%;
}

.sigil--orbit::before,
.sigil--orbit::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid oklch(74% 0.1 62 / 0.28);
  border-radius: 50%;
}

.sigil--pulse {
  border-radius: 50%;
  border: 1px solid var(--copper);
  inset: 30% 22%;
}

.sigil--flame {
  clip-path: polygon(50% 8%, 78% 48%, 62% 48%, 70% 92%, 30% 52%, 46% 52%);
  background: var(--ember);
  opacity: 0.72;
}

.sigil--grid {
  background-image:
    linear-gradient(oklch(74% 0.1 62 / 0.26) 1px, transparent 1px),
    linear-gradient(90deg, oklch(74% 0.1 62 / 0.26) 1px, transparent 1px);
  background-size: 22px 22px;
}

.sigil--pixel {
  background:
    linear-gradient(var(--copper), var(--copper)) 30% 30% / 14px 14px no-repeat,
    linear-gradient(var(--copper), var(--copper)) 48% 42% / 14px 14px no-repeat,
    linear-gradient(var(--copper), var(--copper)) 40% 56% / 14px 14px no-repeat;
}

.sigil--type {
  background: repeating-linear-gradient(
    180deg,
    oklch(74% 0.1 62 / 0.48) 0 1px,
    transparent 1px 15px
  );
}

.sigil--path {
  background: linear-gradient(120deg, transparent 46%, var(--copper) 46% 48%, transparent 48%);
}

@keyframes wave {
  50% { transform: scaleY(1.08) translateY(-4%); }
}

/* Chapters */

.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 4.6rem);
  align-items: center;
  padding: clamp(2.6rem, 6vh, 5.2rem) 0;
  border-top: 1px solid var(--line);
}

.chapter__copy h3 {
  font-size: clamp(2.25rem, 4.1vw, 3.9rem);
  margin-bottom: 1.15rem;
}

.chapter__copy p {
  max-width: 50ch;
  color: var(--bone-soft);
  margin: 0 0 1rem;
}

.facts {
  margin: 1.25rem 0 1.65rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
}

.facts li {
  color: var(--bone);
  font-size: 0.94rem;
  padding-left: 1rem;
  position: relative;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 1px;
  background: var(--copper);
}

.course-row {
  margin: 1.25rem 0 1.65rem;
  padding: 0;
  list-style: none;
}

.course-row li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.course-row b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--copper);
  font-weight: 400;
}

.chapter__visual {
  perspective: 980px;
}

.folio {
  margin: 0;
  background: oklch(88% 0.02 80);
  padding: 0.7rem 0.7rem 2.1rem;
  box-shadow:
    0 18px 50px oklch(10% 0.02 62 / 0.35),
    inset 0 0 0 1px oklch(40% 0.03 60 / 0.15);
}

.folio img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.folio figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  padding: 0 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(35% 0.03 55);
}

.folio figcaption span {
  color: oklch(48% 0.08 50);
}

.frame {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease);
}

.frame__index {
  position: absolute;
  top: 1.05rem;
  left: 1.1rem;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--copper);
  z-index: 2;
}

.frame__tag {
  position: absolute;
  top: 1.25rem;
  right: 1.1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.frame--legal {
  background:
    radial-gradient(circle at 82% 16%, oklch(60% 0.08 55 / 0.2), transparent 30%),
    var(--ink-2);
}

.sheet {
  position: absolute;
  inset: 22% 15% 14%;
  border: 1px solid oklch(74% 0.1 62 / 0.26);
  background: oklch(19% 0.02 62);
  padding: 10% 9%;
}

.sheet__head {
  display: block;
  margin-bottom: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.sheet i {
  display: block;
  height: 1px;
  margin-bottom: 1.05rem;
  background: oklch(74% 0.1 62 / 0.32);
}

.sheet i:nth-child(3) { width: 78%; }
.sheet i:nth-child(4) { width: 86%; }
.sheet i:nth-child(5) { width: 62%; }
.sheet i:nth-child(6) { width: 70%; }

.sheet__stamp {
  position: absolute;
  right: 9%;
  bottom: 11%;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--copper);
  border: 1px solid var(--copper);
  padding: 0.08rem 0.42rem;
  transform: rotate(-11deg);
}

.frame--voice {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 82%, oklch(60% 0.1 42 / 0.16), transparent 32%),
    var(--ink-2);
}

.eq {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 168px;
}

.eq i {
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--copper), oklch(50% 0.09 50));
  transform-origin: bottom;
  animation: eq 1.15s ease-in-out infinite;
}

.eq i:nth-child(odd) { animation-duration: 0.88s; }
.eq i:nth-child(3n) { animation-duration: 1.38s; }
.eq i:nth-child(1) { animation-delay: 0.05s; }
.eq i:nth-child(2) { animation-delay: 0.18s; }
.eq i:nth-child(3) { animation-delay: 0.08s; }
.eq i:nth-child(4) { animation-delay: 0.24s; }
.eq i:nth-child(5) { animation-delay: 0.12s; }
.eq i:nth-child(6) { animation-delay: 0.3s; }
.eq i:nth-child(7) { animation-delay: 0.02s; }
.eq i:nth-child(8) { animation-delay: 0.22s; }
.eq i:nth-child(9) { animation-delay: 0.14s; }
.eq i:nth-child(10) { animation-delay: 0.28s; }
.eq i:nth-child(11) { animation-delay: 0.1s; }
.eq i:nth-child(12) { animation-delay: 0.2s; }
.eq i:nth-child(13) { animation-delay: 0.16s; }
.eq i:nth-child(14) { animation-delay: 0.26s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.28); }
  50% { transform: scaleY(1); }
}

.eq__caption {
  position: absolute;
  bottom: 1.15rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.frame--oracle {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, oklch(22% 0.03 70 / 0.7), var(--ink-2) 62%);
}

.astrolabe {
  position: relative;
  width: 250px;
  height: 250px;
}

.ring {
  position: absolute;
  inset: 0;
  border: 1px solid oklch(74% 0.1 62 / 0.32);
  border-radius: 50%;
}

.ring--a {
  animation: spin 28s linear infinite;
  background:
    repeating-conic-gradient(from 0deg, oklch(74% 0.1 62 / 0.45) 0 1deg, transparent 1deg 15deg);
  mask: radial-gradient(circle, transparent 46%, #000 47%, #000 50%, transparent 51%);
}

.ring--b {
  inset: 16%;
  animation: spin 18s linear infinite reverse;
  border-color: oklch(74% 0.1 62 / 0.45);
}

.ring--c {
  inset: 34%;
  border-style: dashed;
  animation: spin 36s linear infinite;
}

.star {
  position: absolute;
  inset: 46%;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 8px oklch(74% 0.1 62 / 0.08);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Ledger */

.ledger {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 4.4rem 3.2rem 0.9fr 1.4fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.05rem 0.2rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.row__thumb {
  display: block;
  width: 4.4rem;
  height: 3.15rem;
  overflow: hidden;
  background: oklch(88% 0.02 80);
  box-shadow: inset 0 0 0 1px oklch(40% 0.03 60 / 0.18);
}

.row__thumb img {
  width: 140%;
  height: 140%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 40%;
  margin: -12% 0 0 -20%;
  filter: saturate(0.88);
  transition: transform 0.5s var(--ease);
}

.row:hover .row__thumb img {
  transform: scale(1.06);
}

.row__num {
  font-family: var(--font-mono);
  color: var(--copper);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
}

.row__name {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  transition: color 0.3s var(--ease);
}

.row__blurb {
  color: var(--bone-dim);
  font-size: 0.93rem;
}

.row__go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--copper);
}

.row__go i {
  display: inline-block;
  font-style: normal;
  transition: transform 0.35s var(--ease);
}

.row:hover .row__name,
.row:focus-visible .row__name {
  color: var(--copper);
}

.row:hover .row__go {
  color: var(--bone);
}

.row:hover .row__go i {
  transform: translateX(4px);
}

/* Dante */

.dante {
  display: grid;
  /* Retrato acotado para emparejar con la bio de tres líneas */
  grid-template-columns: minmax(200px, 0.36fr) 1fr;
  gap: clamp(2rem, 5vw, 5.6rem);
  align-items: start;
}

.dante__plate {
  width: 100%;
  height: auto;
  box-shadow: 0 22px 50px oklch(10% 0.02 62 / 0.38);
}

.dante__photo figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 1rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* Que baje entero antes que partir una palabra */
.dante__photo figcaption span {
  white-space: nowrap;
}

.dante__copy h2 {
  font-size: clamp(2.55rem, 5.1vw, 4.9rem);
  margin-bottom: 1.35rem;
}

.dante__copy p {
  max-width: 46ch;
  color: var(--bone-soft);
}

.quote {
  margin: 2.1rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}

.quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.28;
  color: var(--bone);
}

.quote cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
}

.contact__seal {
  position: absolute;
  right: 4%;
  top: 8%;
  width: min(34vw, 320px);
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.contact__panel {
  position: relative;
  padding: clamp(2.1rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, oklch(18% 0.02 62 / 0.85), oklch(15% 0.018 62 / 0.5));
  box-shadow: inset 0 1px 0 oklch(96% 0.02 85 / 0.07);
}

.contact__panel::before,
.contact__panel::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--copper);
}

.contact__panel::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.contact__panel::after {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}

.contact__panel h2 {
  font-size: clamp(2.45rem, 5.1vw, 4.7rem);
  margin-bottom: 1rem;
}

.contact__panel p {
  max-width: 44ch;
  color: var(--bone-soft);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.contact__aside {
  padding: clamp(1.6rem, 3vw, 2.3rem) 0 0;
  border-top: 1px solid var(--copper);
}

.contact__kicker {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

/* Cierre del sitio: la voz vuelve al final */
.contact__creed {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.9vw, 1.72rem);
  line-height: 1.34;
  color: var(--bone);
}

.contact__aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__aside li {
  padding: 0.88rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone-soft);
}

/* Footer */

.foot {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.1rem var(--pad) 2.6rem;
  border-top: 1px solid var(--line);
}

.foot__seal {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  filter: saturate(1.1);
}

.foot__brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.foot__brand strong {
  display: block;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.foot__brand span,
.foot__note,
.foot__year {
  color: var(--bone-dim);
  font-size: 0.8rem;
}

.foot__year {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
}

/* Reveals */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.95s var(--ease) forwards;
  animation-play-state: paused;
}

.reveal.is-in {
  animation-play-state: running;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .reveal:nth-child(1) { animation-delay: 0.06s; }
.hero .reveal:nth-child(2) { animation-delay: 0.16s; }
.hero .reveal:nth-child(3) { animation-delay: 0.26s; }
.hero .reveal:nth-child(4) { animation-delay: 0.36s; }

/* Focus */

:focus-visible {
  outline: 1px solid var(--copper);
  outline-offset: 3px;
}

/* Responsive */

@media (max-width: 980px) {
  .hero,
  .chapter,
  .dante,
  .contact,
  .section-head,
  .foot {
    grid-template-columns: 1fr;
  }

  .hero__plate {
    inset: 38% 0 0 0;
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 100%);
    opacity: 0.55;
  }

  .row {
    grid-template-columns: 3.6rem 2rem 1fr;
    gap: 0.35rem 0.75rem;
  }

  .row__thumb {
    grid-row: 1 / span 3;
    align-self: start;
    margin-top: 0.2rem;
  }

  .row__num {
    grid-column: 2;
    grid-row: 1;
  }

  .row__name {
    grid-column: 3;
    grid-row: 1;
  }

  .row__blurb,
  .row__go {
    grid-column: 2 / -1;
  }

  .chapter--b .chapter__visual,
  .chapter--c .chapter__visual {
    order: -1;
  }

  .rail {
    flex-direction: column;
    min-height: 0;
  }

  .strip,
  .strip.is-open,
  .rail:hover .strip:hover,
  .rail:hover .strip:not(:hover) {
    flex: none;
  }

  .strip__hit {
    min-height: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
  }

  .strip__name {
    writing-mode: horizontal-tb;
    transform: none;
    flex: 1;
    font-size: 1.35rem;
  }

  .strip.is-open .strip__name,
  .strip:hover .strip__name {
    font-size: 1.35rem;
  }

  .strip__body {
    position: static;
    padding: 0 1rem 1.15rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .strip.is-open .strip__body {
    opacity: 1;
    max-height: 12rem;
    pointer-events: auto;
  }

  .strip__art {
    position: absolute;
    inset: 0;
    opacity: 0.22;
  }

  .strip.is-open .strip__art {
    opacity: 0.45;
  }

  .strip__art img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-position: 50% 35%;
  }

  .strip__cat {
    opacity: 1;
  }

  .nav__links {
    display: none;
  }

  .dante__photo figcaption {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 640px) {
  .nav {
    left: 0.7rem;
    right: 0.7rem;
    top: 0.7rem;
  }

  .nav__word {
    display: none;
  }

  .nav__cta-full {
    display: none;
  }

  .nav__cta-short {
    display: inline;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .hero__title {
    font-size: clamp(2.65rem, 13vw, 3.55rem);
  }

  .console {
    padding: 1rem 1rem 0.2rem;
  }
}

html.i18n-pending body {
  opacity: 0;
}

/* Es el disparador del easter egg: que clic tras clic no seleccione el texto */
.foot__note {
  user-select: none;
  -webkit-user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .intro {
    display: none;
  }

  .marquee__track {
    transform: none;
  }

  .intro__mark span,
  .intro__word {
    opacity: 1;
    transform: none;
  }
}
