
/* Evita el destello de contenido base mientras Cosmos y Studio aplican los datos publicados. */
html.nv-cosmos-loading .cosmos-cover .cosmos-cover-inner {
  opacity: 0 !important;
  visibility: hidden;
}

html:not(.nv-cosmos-loading) .cosmos-cover .cosmos-cover-inner {
  opacity: 1;
  visibility: visible;
  transition: opacity .32s ease;
}

/* =========================================================
   NEVERLAN — COSMOS VOL. 1 · MAQUETA VISUAL
   ========================================================= */

:root {
  --cosmos-bg: #080a0d;
  --cosmos-bg-soft: #10141a;
  --cosmos-paper: #e9e7e1;
  --cosmos-muted: #9ca1a6;
  --cosmos-dim: #62686e;
  --cosmos-gold: #a98347;
  --cosmos-line: rgba(233, 231, 225, .16);
  --cosmos-wide: min(1500px, calc(100vw - 9vw));
}

html { background: var(--cosmos-bg); }
body.cosmos-page {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--cosmos-bg);
  color: var(--cosmos-paper);
}

.cosmos-page .site-header {
  mix-blend-mode: normal;
}

.cosmos-page .brand,
.cosmos-page .menu-button {
  color: #f4f1eb !important;
}

.cosmos-page .brand-logo {
  filter: brightness(0) invert(1) !important;
}

.cosmos-page .menu-lines i {
  background: currentColor !important;
}

.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;
}

/* HERO --------------------------------------------------- */
.cosmos-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--nv-studio-section-background, #090b0e);
}

.cosmos-hero-media,
.cosmos-hero-shade {
  position: absolute;
  inset: 0;
}

.cosmos-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.48) saturate(.82) contrast(1.08);
  transform: scale(1.035);
  animation: cosmosHeroImage 3.8s cubic-bezier(.16, 1, .3, 1) forwards;
}

.cosmos-hero-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 6, 8, .52), rgba(4, 6, 8, .07) 32%, rgba(4, 6, 8, .58) 100%),
    radial-gradient(circle at 50% 44%, transparent 0, rgba(2, 4, 7, .14) 48%, rgba(2, 4, 7, .62) 100%);
}

.cosmos-hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 80vw);
  padding-top: 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cosmos-overline,
.cosmos-section-label,
.cosmos-intro-note,
.cosmos-work-index,
.cosmos-work-object,
.cosmos-work-subtitle,
.cosmos-hero-count {
  font-family: var(--sans);
  font-size: .63rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.cosmos-overline {
  margin: 0 0 30px;
  color: rgba(244, 241, 235, .72);
  opacity: 0;
  transform: translateY(12px);
  animation: cosmosReveal .9s ease 650ms forwards;
}

.cosmos-title-art {
  width: min(620px, 56vw);
  color: var(--cosmos-paper);
  opacity: 0;
  transform: translateY(18px);
  animation: cosmosReveal 1.35s cubic-bezier(.16, 1, .3, 1) 820ms forwards;
}

.cosmos-title-art svg,
.cosmos-title-art img {
  width: 100%;
  height: auto;
}

.cosmos-title-art .cosmos-title-letters { fill: var(--cosmos-paper) !important; }
.cosmos-title-art .cosmos-title-ornament { stroke: var(--cosmos-gold) !important; }
.cosmos-title-art .cosmos-title-ornament-stroke { fill: none !important; }
.cosmos-title-art .cosmos-title-ornament-fill { fill: var(--cosmos-gold) !important; stroke: none !important; }

.cosmos-hero-lead {
  max-width: 660px;
  margin: 38px 0 0;
  color: rgba(244, 241, 235, .82);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  font-weight: 300;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(14px);
  animation: cosmosReveal 1.1s ease 1.05s forwards;
}

.cosmos-scroll-cue {
  margin-top: 54px;
  padding: 0;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 18px;
  background: transparent;
  color: rgba(244, 241, 235, .64);
  font-size: .58rem;
  letter-spacing: .27em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation: cosmosReveal 1s ease 1.35s forwards;
}

.cosmos-scroll-cue i {
  position: relative;
  width: 1px;
  height: 54px;
  overflow: hidden;
  background: rgba(244, 241, 235, .22);
}

.cosmos-scroll-cue i::after {
  content: "";
  position: absolute;
  inset: -100% 0 auto;
  height: 100%;
  background: var(--cosmos-gold);
  animation: cosmosScrollLine 2.2s ease-in-out 1.8s infinite;
}

.cosmos-hero-count {
  position: absolute;
  z-index: 2;
  right: clamp(30px, 4vw, 72px);
  bottom: 38px;
  margin: 0;
  color: rgba(244, 241, 235, .42);
}

/* INTRO -------------------------------------------------- */
.cosmos-intro {
  width: var(--cosmos-wide);
  background: var(--nv-studio-section-background, var(--cosmos-bg));
  min-height: 80vh;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 210px) 0;
  display: grid;
  grid-template-columns: minmax(60px, 1fr) minmax(320px, 720px) 1.4fr;
  grid-template-rows: auto auto;
  column-gap: clamp(36px, 7vw, 140px);
  align-items: start;
}

.cosmos-intro-index {
  color: var(--cosmos-gold);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
}

.cosmos-intro-copy { grid-column: 2; }
.cosmos-section-label { margin: 0 0 32px; color: var(--cosmos-muted); }

.cosmos-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 7vw, 7.7rem);
  font-weight: 300;
  line-height: .86;
  letter-spacing: -.055em;
}

.cosmos-intro-body {
  max-width: 610px;
  margin: 58px 0 0;
  color: #b9bdc0;
  font-size: clamp(.92rem, 1.05vw, 1.08rem);
  font-weight: 300;
  line-height: 2;
}

.cosmos-intro-rule {
  grid-column: 3;
  width: 100%;
  height: 1px;
  margin-top: 72px;
  background: linear-gradient(90deg, var(--cosmos-gold), transparent 78%);
}

.cosmos-intro-note {
  grid-column: 3;
  align-self: end;
  margin: 0 0 10px;
  color: var(--cosmos-dim);
}

/* WORKS -------------------------------------------------- */
.cosmos-works-background-control { position: relative; }
.cosmos-works { position: relative; }

.cosmos-work {
  position: relative;
  background: var(--nv-studio-section-background, var(--cosmos-work-background, var(--cosmos-bg)));
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(110px, 14vh, 180px) 4.5vw;
  display: grid;
  align-items: center;
  overflow: clip;
  border-top: 1px solid rgba(233, 231, 225, .055);
}

.cosmos-work:nth-child(even) { --cosmos-work-background: #0b0e12; }
.cosmos-work:nth-child(odd) { --cosmos-work-background: var(--cosmos-bg); }

.cosmos-work-inner {
  width: min(1540px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, .62fr);
  gap: clamp(50px, 8vw, 150px);
  align-items: center;
}

.cosmos-work--image-right .cosmos-work-media { order: 2; }
.cosmos-work--image-right .cosmos-work-copy { order: 1; }

.cosmos-work--center .cosmos-work-inner {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 50px;
}

.cosmos-work--center .cosmos-work-media { width: min(1180px, 88vw); }
.cosmos-work--center .cosmos-work-copy {
  width: min(720px, 82vw);
  text-align: center;
  align-items: center;
}

.cosmos-work-media {
  position: relative;
  min-width: 0;
}

.cosmos-image-frame {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--cosmos-panel-background, var(--nv-studio-section-background, #050608));
  cursor: zoom-in;
}

.cosmos-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.cosmos-image-frame img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.16, 1, .3, 1), filter 1s ease;
}

.cosmos-image-frame:hover img { transform: scale(1.012); filter: brightness(1.035); }

.cosmos-image-frame.is-missing {
  aspect-ratio: 16 / 10;
  color: #596068;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.cosmos-image-action {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  padding: 10px 13px;
  border: 1px solid rgba(244,241,235,.22);
  background: rgba(5,7,9,.48);
  color: rgba(244,241,235,.78);
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease, background .4s ease;
}

.cosmos-image-frame:hover .cosmos-image-action,
.cosmos-image-action:focus-visible { opacity: 1; transform: none; }

.cosmos-work-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cosmos-work-index { margin: 0 0 42px; color: var(--cosmos-gold); }

.cosmos-work-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.7vw, 7rem);
  font-weight: 300;
  line-height: .86;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.cosmos-work-subtitle { margin: 24px 0 0; color: var(--cosmos-gold); }
.cosmos-work-object { margin: 11px 0 0; color: var(--cosmos-gold); letter-spacing: .2em; }

.cosmos-work-haiku {
  margin: 48px 0 0;
  color: #d6d5d0;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 1.65vw, 1.75rem);
  font-weight: 300;
  line-height: 1.55;
}

.cosmos-work-haiku span { display: block; }

.cosmos-work-text {
  max-width: 520px;
  margin: 38px 0 0;
  color: #9fa4a8;
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.9;
}

.cosmos-work-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  align-items: center;
}

.cosmos-play-button,
.cosmos-info-button {
  border: 0;
  background: transparent;
  color: var(--cosmos-paper);
  cursor: pointer;
}

.cosmos-play-button {
  min-width: 184px;
  padding: 15px 20px;
  border: 1px solid rgba(233,231,225,.28);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}

.cosmos-play-button::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid currentColor;
}

.cosmos-play-button.is-playing::before {
  width: 7px;
  height: 9px;
  border: 0;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.cosmos-play-button:hover,
.cosmos-play-button.is-playing {
  border-color: var(--cosmos-paper);
  background: var(--cosmos-paper);
  color: #0a0c0f;
}

.cosmos-info-button {
  padding: 12px 0;
  color: var(--cosmos-muted);
  font-size: .57rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cosmos-info-button:hover { color: var(--cosmos-paper); }

.cosmos-technical {
  width: 100%;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  color: #82888e;
  font-size: .76rem;
  line-height: 1.8;
  opacity: 0;
  transition: max-height .65s cubic-bezier(.16, 1, .3, 1), margin .45s ease, padding .45s ease, opacity .45s ease, border-color .45s ease;
}

.cosmos-technical.is-open {
  max-height: 260px;
  margin-top: 30px;
  padding-top: 24px;
  border-color: rgba(233,231,225,.13);
  opacity: 1;
}

/* REVEAL ------------------------------------------------- */
.reveal,
.cosmos-work-media,
.cosmos-work-copy {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.1s ease, transform 1.25s cubic-bezier(.16, 1, .3, 1);
}

.cosmos-work-copy { transition-delay: .12s; }
.reveal.is-visible,
.cosmos-work.is-visible .cosmos-work-media,
.cosmos-work.is-visible .cosmos-work-copy {
  opacity: 1;
  transform: none;
}

/* CLOSING ------------------------------------------------ */
.cosmos-closing {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px 8vw 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--nv-studio-section-background, #06080b);
}

.cosmos-closing > p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.cosmos-closing > p + p { color: #aeb2b4; }

.cosmos-closing-orbit {
  position: absolute;
  width: min(78vw, 980px);
  aspect-ratio: 1;
  opacity: .32;
}

.cosmos-closing-orbit i {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(169,131,71,.34);
  border-radius: 50%;
  transform: rotate(18deg) scaleY(.35);
}
.cosmos-closing-orbit i:nth-child(2) { inset: 22%; transform: rotate(-25deg) scaleY(.52); }
.cosmos-closing-orbit i:nth-child(3) { inset: 35%; transform: rotate(66deg) scaleY(.72); }

.cosmos-closing-nav {
  position: absolute;
  z-index: 2;
  left: 6vw;
  right: 6vw;
  bottom: 52px;
  display: flex;
  justify-content: space-between;
  color: #858b90;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.cosmos-closing-nav a { transition: color .3s ease; }
.cosmos-closing-nav a:hover { color: var(--cosmos-paper); }

/* PLAYER ------------------------------------------------- */
.cosmos-player {
  position: fixed;
  z-index: 2600;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 76px;
  padding: 13px clamp(18px, 3vw, 52px);
  display: grid;
  grid-template-columns: 44px minmax(180px, 310px) minmax(120px, 1fr) auto 34px;
  gap: clamp(14px, 2vw, 32px);
  align-items: center;
  border-top: 1px solid rgba(233,231,225,.13);
  background: rgba(8,10,13,.94);
  backdrop-filter: blur(18px);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .7s;
}

.cosmos-player.is-open {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.player-toggle,
.player-close {
  border: 0;
  background: transparent;
  color: var(--cosmos-paper);
  cursor: pointer;
}

.player-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(233,231,225,.28);
}

.player-icon { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.player-icon-play {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}
.player-icon-pause { display: none; width: 8px; height: 11px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.cosmos-player.is-playing .player-icon-play { display: none; }
.cosmos-player.is-playing .player-icon-pause { display: block; }

.player-meta { min-width: 0; display: grid; gap: 4px; }
.player-meta strong {
  overflow: hidden;
  color: var(--cosmos-paper);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 300;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-meta span {
  overflow: hidden;
  color: #777e84;
  font-size: .54rem;
  letter-spacing: .17em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.player-progress {
  width: 100%;
  height: 2px;
  appearance: none;
  background: linear-gradient(90deg, var(--cosmos-gold) var(--progress, 0%), rgba(233,231,225,.18) var(--progress, 0%));
  cursor: pointer;
}
.player-progress::-webkit-slider-thumb { width: 9px; height: 9px; appearance: none; border-radius: 50%; background: var(--cosmos-paper); }
.player-progress::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--cosmos-paper); }

.player-time { display: flex; gap: 7px; color: #7d8489; font-size: .58rem; font-variant-numeric: tabular-nums; }
.player-close { font-family: var(--serif); font-size: 1.8rem; font-weight: 300; }

/* MODAL -------------------------------------------------- */
.image-modal {
  position: fixed;
  z-index: 3000;
  inset: 0;
  padding: 5vh 5vw;
  display: grid;
  place-items: center;
  background: rgba(2,3,5,.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.image-modal.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.image-modal figure { width: 100%; height: 100%; margin: 0; display: grid; place-items: center; }
.image-modal img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.image-modal-close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 30px;
  width: auto;
  min-width: 44px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--cosmos-paper);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .25s ease, text-shadow .25s ease;
}

.image-modal-close:hover,
.image-modal-close:focus-visible {
  text-shadow: 0 0 14px rgba(233,231,225,.28);
}

@keyframes cosmosReveal { to { opacity: 1; transform: none; } }
@keyframes cosmosHeroImage { to { transform: scale(1); } }
@keyframes cosmosScrollLine {
  0% { transform: translateY(0); }
  52%, 100% { transform: translateY(205%); }
}

/* RESPONSIVE --------------------------------------------- */
@media (max-width: 900px) {
  .cosmos-intro { grid-template-columns: 50px 1fr; }
  .cosmos-intro-copy { grid-column: 2; }
  .cosmos-intro-rule { grid-column: 2; margin-top: 70px; }
  .cosmos-intro-note { grid-column: 2; margin-top: 24px; }
  .cosmos-work-inner { grid-template-columns: 1fr; gap: 52px; }
  .cosmos-work--image-right .cosmos-work-media,
  .cosmos-work--image-right .cosmos-work-copy { order: initial; }
  .cosmos-work-copy { width: min(680px, 88vw); }
}

@media (max-width: 760px) {
  .cosmos-page .site-header { height: 70px; }
  .cosmos-title-art { width: min(84vw, 520px); }
  .cosmos-hero-content { width: 88vw; padding-top: 4vh; }
  .cosmos-hero-lead { margin-top: 28px; font-size: 1.1rem; }
  .cosmos-scroll-cue { margin-top: 40px; }
  .cosmos-hero-count { right: 20px; bottom: 20px; }

  .cosmos-intro {
    width: calc(100vw - 40px);
    min-height: auto;
    padding: 110px 0 130px;
    grid-template-columns: 1fr;
  }
  .cosmos-intro-index { margin-bottom: 42px; }
  .cosmos-intro-copy,
  .cosmos-intro-rule,
  .cosmos-intro-note { grid-column: 1; }
  .cosmos-intro h2 { font-size: clamp(3.8rem, 17vw, 5.7rem); }
  .cosmos-intro-body { margin-top: 42px; }
  .cosmos-intro-rule { margin-top: 60px; }

  .cosmos-work { min-height: auto; padding: 92px 18px 118px; }
  .cosmos-work-inner { gap: 42px; }
  .cosmos-work--center .cosmos-work-media,
  .cosmos-work--center .cosmos-work-copy { width: 100%; }
  .cosmos-image-frame { min-height: 210px; }
  .cosmos-image-frame img { max-height: 65vh; }
  .cosmos-image-action { display: none; }
  .cosmos-work-copy { width: 100%; }
  .cosmos-work-index { margin-bottom: 30px; }
  .cosmos-work-title { font-size: clamp(3.2rem, 15vw, 5rem); }
  .cosmos-work-haiku { margin-top: 38px; }
  .cosmos-work-text { margin-top: 30px; }

  .cosmos-closing { padding-right: 24px; padding-left: 24px; }
  .cosmos-closing-nav { left: 20px; right: 20px; font-size: .52rem; letter-spacing: .12em; }

  .cosmos-player {
    min-height: 112px;
    padding: 13px 15px;
    grid-template-columns: 42px 1fr 30px;
    grid-template-rows: auto auto;
    gap: 9px 14px;
  }
  .player-meta { grid-column: 2; }
  .player-progress { grid-column: 1 / 4; grid-row: 2; }
  .player-time { display: none; }
  .player-close { grid-column: 3; grid-row: 1; }

  .image-modal { padding: 74px 14px 20px; }
  .image-modal-close {
    top: 12px;
    right: 14px;
    width: auto;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
}

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

/* Neverlan Studio V1 — acceso secreto a cartografías */
.cosmos-secret-button {
  margin-left: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(169,131,71,.55);
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 350ms ease, transform 350ms ease;
}
.cosmos-secret-button:hover,
.cosmos-secret-button:focus-visible {
  color: #d8bd8e;
  transform: scale(1.28);
}
.cosmos-cartography-overlay {
  position: fixed;
  z-index: 5000;
  inset: 0;
  padding: 7vh 6vw;
  display: grid;
  place-items: center;
  background: rgba(4,6,9,.96);
  color: #ece9e3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease, visibility 0s linear 600ms;
}
.cosmos-cartography-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.cosmos-cartography-inner {
  width: min(1180px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  text-align: center;
}
.cosmos-cartography-kicker {
  margin: 0 0 12px;
  color: #a98347;
  font-size: 10px;
  letter-spacing: .28em;
}
.cosmos-cartography-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 300;
}
.cosmos-cartography-intro {
  max-width: 680px;
  margin: 18px auto 34px;
  color: #a9a7a2;
  font-size: 13px;
  line-height: 1.8;
}
.cosmos-cartography-image-wrap {
  position: relative;
  width: 100%;
}
.cosmos-cartography-image {
  display: block;
  max-width: 100%;
  max-height: 62vh;
  margin: 0 auto;
  object-fit: contain;
}
.cosmos-cartography-close {
  position: absolute;
  top: 18px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #ece9e3;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  cursor: pointer;
}


/* =========================================================
   NEVERLAN STUDIO 0.30 · MOTOR VISUAL SEGURO
   ========================================================= */

/* PORTADA ------------------------------------------------- */
.cosmos-hero {
  --hero-content-width: 900px;
  --hero-content-x: 0px;
  --hero-content-y: 40px;
  --hero-title-width: 620px;
  --hero-letters: #e9e7e1;
  --hero-ornament: #a98347;
  --hero-letters-opacity: 1;
  --hero-ornament-opacity: 1;
  --hero-cue-duration: 3.4s;
  --hero-cue-intensity: .65;
}
.cosmos-hero-content {
  width: min(var(--hero-content-width), 92vw);
  transform: translate(var(--hero-content-x), var(--hero-content-y));
}
.cosmos-title-art { width: min(var(--hero-title-width), 92vw); }
.cosmos-title-art .cosmos-title-letters {
  fill: var(--hero-letters) !important;
  color: var(--hero-letters);
  opacity: var(--hero-letters-opacity);
}
.cosmos-title-art .cosmos-title-ornament {
  stroke: var(--hero-ornament) !important;
  color: var(--hero-ornament);
  opacity: var(--hero-ornament-opacity);
}
.cosmos-title-art .cosmos-title-ornament-stroke { fill: none !important; }
.cosmos-title-art .cosmos-title-ornament-fill { fill: var(--hero-ornament) !important; stroke: none !important; }
.cosmos-title-art.is-text-fallback {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 9rem);
  letter-spacing: .18em;
  color: var(--hero-letters);
}
.cosmos-scroll-cue[data-gesture="none"] i { display:none; }
.cosmos-scroll-cue[data-gesture="sendero"] i::after {
  animation-duration: var(--hero-cue-duration);
  opacity: calc(.35 + var(--hero-cue-intensity) * .65);
}
.cosmos-scroll-cue[data-gesture="pulso"] i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244,241,235,.45);
  box-shadow: 0 0 calc(12px + 24px * var(--hero-cue-intensity)) rgba(244,241,235,.28);
  animation: neverlanPulse var(--hero-cue-duration) ease-in-out infinite;
}
.cosmos-scroll-cue[data-gesture="pulso"] i::after { display:none; }
.cosmos-scroll-cue[data-gesture="halo"] i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,235,.35);
  background: transparent;
  animation: neverlanHalo var(--hero-cue-duration) ease-out infinite;
}
.cosmos-scroll-cue[data-gesture="halo"] i::after { display:none; }
.cosmos-scroll-cue.is-once i,
.cosmos-scroll-cue.is-once i::after { animation-iteration-count: 1 !important; }

/* OBRAS · LIENZO ESCALABLE ------------------------------- */
.cosmos-work.cosmos-work--canvas {
  min-height: 0;
  padding: clamp(60px, 8vw, 120px) 0;
  display: block;
  overflow: hidden;
}
.cosmos-work-shell {
  position: relative;
  width: min(1540px, calc(100vw - 9vw));
  margin: 0 auto;
}
.cosmos-work-canvas {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  margin: 0;
  transform-origin: top left;
  overflow: visible;
}
.cosmos-work-canvas .cosmos-layer {
  position: absolute;
  margin: 0;
  max-width: none;
  box-sizing: border-box;
  transform-origin: top left;
}
.cosmos-work-canvas .cosmos-work-media {
  opacity: 1;
  transform-origin: top left;
}
.cosmos-work-canvas .cosmos-image-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.cosmos-work-canvas .cosmos-image-frame img {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  transition: transform .8s cubic-bezier(.16,1,.3,1), filter .8s ease;
}
.cosmos-work-canvas .cosmos-work-title,
.cosmos-work-canvas .cosmos-work-subtitle,
.cosmos-work-canvas .cosmos-work-object,
.cosmos-work-canvas .cosmos-work-haiku,
.cosmos-work-canvas .cosmos-work-text,
.cosmos-work-canvas .cosmos-work-actions { margin: 0; }
.cosmos-work-canvas .cosmos-work-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.cosmos-work-index--canvas {
  position: absolute;
  z-index: 20;
  top: 42px;
  right: 42px;
  margin: 0;
}
.cosmos-technical--canvas {
  position: absolute;
  display: none;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: rgba(8,10,13,.97);
  color: #aeb2b6;
  opacity: 0;
  transition: opacity .35s ease, max-height .45s ease, padding .35s ease;
}
.cosmos-technical--canvas.is-open {
  display: block;
  max-height: 420px;
  padding: 18px 20px;
  border: 1px solid rgba(233,231,225,.13);
  opacity: 1;
}
.cosmos-technical--canvas.is-static {
  display: block;
  max-height: none;
  padding: 18px 20px;
  border: 1px solid rgba(233,231,225,.13);
  opacity: 1;
}
.cosmos-missing-path {
  max-width: 80%;
  color: #777d83;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

/* MOVIMIENTO --------------------------------------------- */
.cosmos-work--canvas .cosmos-layer {
  transition: opacity var(--motion-duration, 1.1s) ease var(--motion-delay, 0s),
              transform var(--motion-duration, 1.1s) cubic-bezier(.16,1,.3,1) var(--motion-delay, 0s),
              filter var(--motion-duration, 1.1s) ease var(--motion-delay, 0s);
}
.cosmos-work--canvas.motion-none .cosmos-layer,
.cosmos-work--canvas.motion-none.is-visible .cosmos-layer { opacity: 1; }
.cosmos-work--canvas.motion-fade:not(.is-visible) .cosmos-layer { opacity: 0 !important; }
.cosmos-work--canvas.motion-veil:not(.is-visible) .cosmos-layer {
  opacity: 0 !important;
  filter: blur(calc(4px + 14px * var(--motion-intensity, .35)));
}
.cosmos-work--canvas.motion-horizon:not(.is-visible) .cosmos-layer {
  opacity: 0 !important;
  transform: translateX(calc(-18px - 80px * var(--motion-intensity, .35)));
}
.cosmos-work--canvas.motion-focus:not(.is-visible) .cosmos-layer {
  opacity: 0 !important;
  filter: blur(calc(6px + 20px * var(--motion-intensity, .35)));
  transform: scale(calc(1 + .025 * var(--motion-intensity, .35)));
}

/* AVISOS DE DATOS ---------------------------------------- */
.cosmos-data-notice {
  position: fixed;
  z-index: 10000;
  left: 18px;
  bottom: 18px;
  width: min(440px, calc(100vw - 36px));
  padding: 13px 15px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(169,131,71,.45);
  background: rgba(8,10,13,.96);
  color: #e9e7e1;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}
.cosmos-data-notice strong {
  color: #d2b47e;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cosmos-data-notice span { color: #9ca1a6; font-size: 10px; line-height: 1.55; }
.cosmos-data-notice.is-error { border-color: rgba(199,93,83,.65); }

@keyframes neverlanPulse {
  0%,100% { transform: scale(.72); opacity: .35; }
  50% { transform: scale(1.25); opacity: 1; }
}
@keyframes neverlanHalo {
  0% { transform: scale(.7); opacity: .2; }
  55% { opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 760px) {
  .cosmos-hero-content { width: min(var(--hero-content-width), 90vw); }
  .cosmos-title-art { width: min(var(--hero-title-width), 88vw); }
  .cosmos-work.cosmos-work--canvas { padding: 70px 0 90px; }
  .cosmos-work-shell { width: calc(100vw - 24px); }
  .cosmos-work-index--canvas { top: 16px; right: 16px; }
  .cosmos-work-canvas .cosmos-work-actions { gap: 10px; }
  .cosmos-technical--canvas.is-open,
  .cosmos-technical--canvas.is-static { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos-work--canvas .cosmos-layer,
  .cosmos-scroll-cue i,
  .cosmos-scroll-cue i::after { transition: none !important; animation: none !important; }
  .cosmos-work--canvas .cosmos-layer { opacity: 1 !important; filter: none !important; transform: none; }
}


/* V5.3.1A · Portada Cosmos: texto real + trazo oficial */
.cosmos-title-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(86vw, 980px);
  color: var(--cosmos-title-letter-color, #f1eee8);
}

.cosmos-title-wordmark-label {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.8rem, 11vw, 10rem);
  font-weight: 300;
  line-height: .82;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cosmos-title-wordmark-trace {
  display: block;
  width: 92%;
  height: auto;
  max-height: 145px;
  margin-top: -1.6rem;
  object-fit: contain;
}

@media (max-width: 760px) {
  .cosmos-title-wordmark {
    width: 94vw;
  }

  .cosmos-title-wordmark-label {
    font-size: clamp(4rem, 21vw, 7.2rem);
    letter-spacing: .08em;
  }

  .cosmos-title-wordmark-trace {
    width: 98%;
    max-height: 95px;
    margin-top: -1.05rem;
  }
}

/* =========================================================
   COSMOS · PORTADA 0.5
   Misma arquitectura visual que Naturae, sin imagen de fondo.
   El resto de la página conserva intacto su diseño original.
   ========================================================= */

.cosmos-cover {
  position: relative;
  min-height: 104svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #f3efe7;
  background:
    radial-gradient(circle at 74% 24%, rgba(126, 96, 50, .075), transparent 32%),
    radial-gradient(circle at 22% 76%, rgba(91, 105, 119, .055), transparent 38%),
    linear-gradient(145deg, #0b0d10 0%, #080a0d 48%, #050607 100%);
  background:
    radial-gradient(circle at 74% 24%, rgba(126, 96, 50, .075), transparent 32%),
    radial-gradient(circle at 22% 76%, rgba(91, 105, 119, .055), transparent 38%),
    linear-gradient(145deg,
      color-mix(in srgb, var(--cosmos-cover-background, #090b0e) 82%, #15191f) 0%,
      var(--cosmos-cover-background, #090b0e) 48%,
      color-mix(in srgb, var(--cosmos-cover-background, #090b0e) 70%, #000000) 100%);
}

/* La imagen sigue disponible para el motor de datos, pero no forma parte del diseño. */
.cosmos-hero-image-data {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cosmos-cover-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .28;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(238, 234, 224, .018) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .10) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 40% 30%, rgba(255,255,255,.025) 0 1px, transparent 1.4px);
  background-size: auto, auto, 5px 5px;
  mix-blend-mode: soft-light;
}

.cosmos-cover-glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 46%, rgba(169, 131, 71, .065), transparent 34%),
    radial-gradient(circle at 30% 72%, rgba(96, 111, 126, .045), transparent 42%);
  animation: cosmosCoverBreathe 13s ease-in-out infinite alternate;
}

@keyframes cosmosCoverBreathe {
  from { transform: translate3d(-1%, 1%, 0) scale(1); opacity: .42; }
  to { transform: translate3d(2%, -1%, 0) scale(1.04); opacity: .72; }
}

.cosmos-cover .cosmos-cover-inner {
  position: relative;
  z-index: 2;
  width: min(86vw, 1100px);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: none;
}

.cosmos-cover .cosmos-kicker {
  margin: 0;
  color: rgba(243, 239, 231, .72);
  font: 400 10px/1.4 "Inter", Arial, sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.cosmos-wordmark {
  width: min(78vw, 760px);
  margin: 20px auto 0;
}

.cosmos-cover .cosmos-title-art {
  width: 100%;
  margin: 0 auto;
  opacity: 1;
  transform: none;
  animation: none;
}

.cosmos-cover .cosmos-title-wordmark {
  display: block;
  width: 100%;
}

.cosmos-cover .cosmos-title-wordmark-label {
  display: block;
  margin: 0;
  color: var(--cosmos-paper);
  font: 300 clamp(92px, 13vw, 180px)/.8 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.025em;
  text-transform: none;
  text-align: center;
}

.cosmos-cover .cosmos-title-wordmark-trace {
  display: block;
  width: 94%;
  height: 145px;
  margin: -44px auto 0;
  object-fit: contain;
  opacity: .82;
}

.cosmos-cover .cosmos-lead {
  max-width: 760px;
  margin: 0 auto 48px;
  color: rgba(243, 239, 231, .82);
  font: 300 clamp(25px, 3vw, 42px)/1.15 "Cormorant Garamond", Georgia, serif;
  opacity: 1;
  transform: none;
  animation: none;
}

.cosmos-cover .cosmos-start {
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border: 0;
  background: transparent;
  color: rgba(243, 239, 231, .66);
  font: 400 10px/1.4 "Inter", Arial, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 1;
  animation: none;
}

.cosmos-cover .cosmos-start i {
  position: relative;
  display: block;
  width: 1px;
  height: 72px;
  overflow: hidden;
  background: linear-gradient(var(--cosmos-gold), transparent);
  transform-origin: top;
  animation: cosmosCoverPath 2.8s ease-in-out infinite;
}

.cosmos-cover .cosmos-start i::after {
  display: none;
}

@keyframes cosmosCoverPath {
  0%, 100% { transform: scaleY(.42); opacity: .35; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 760px) {
  .cosmos-cover {
    min-height: 100svh;
  }

  .cosmos-cover .cosmos-cover-inner {
    width: min(88vw, 560px);
  }

  .cosmos-wordmark {
    width: min(90vw, 560px);
    margin-top: 18px;
  }

  .cosmos-cover .cosmos-title-wordmark-label {
    font-size: clamp(70px, 22vw, 112px);
    line-height: .82;
    letter-spacing: -.035em;
  }

  .cosmos-cover .cosmos-title-wordmark-trace {
    width: 96%;
    height: 96px;
    margin-top: -30px;
  }

  .cosmos-cover .cosmos-lead {
    max-width: 88vw;
    margin-bottom: 38px;
    font-size: clamp(22px, 7vw, 32px);
    line-height: 1.2;
  }

  .cosmos-cover .cosmos-start i {
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos-cover-glow,
  .cosmos-cover .cosmos-start i {
    animation: none;
  }
}


.cosmos-title-art .nv-inline-title-svg {
  width: 100%;
  color: var(--hero-letters, var(--cosmos-paper));
  --inline-trace-color: var(--hero-ornament, var(--cosmos-gold));
}
.cosmos-title-art .nv-svg-word {
  opacity: var(--hero-letters-opacity, 1);
}
.cosmos-title-art .nv-svg-trace-stroke,
.cosmos-title-art .nv-svg-trace-fill {
  opacity: var(--hero-ornament-opacity, 1);
}



/* V9.4.7 · Cosmos: encuadre estable en todas las obras */
.cosmos-work--canvas .cosmos-image-frame > img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
}
