:root {
  --bg: #070707;
  --bg-soft: #121212;
  --ink: #f0e9dd;
  --muted: #c1b7a8;
  --gold: #d4a461;
  --line: #2a2a2a;
  --card: #0f0f0fee;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Bebas Neue", sans-serif;
  background:
    radial-gradient(circle at 8% 18%, #22160f 0%, transparent 33%),
    radial-gradient(circle at 82% 0%, #111f17 0%, transparent 36%),
    linear-gradient(180deg, #090909 0%, #060606 100%);
  color: var(--ink);
  overflow-x: hidden;
}

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

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  z-index: 50;
  background-image: radial-gradient(#ffffff 0.6px, transparent 0.6px);
  background-size: 2px 2px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 60;
  background: linear-gradient(180deg, #000000d4 0%, #00000000 100%);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.08em;
  font-size: 1.4rem;
}

.logo-mark {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  letter-spacing: 0.09em;
  font-size: 1rem;
  color: #ccbea9;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 65;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ccbea9;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  height: 220vh;
  position: relative;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-core {
  width: 100%;
  height: 108vh;
  margin-top: -6vh;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 90px #000;
  border: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  transform: scale(1.18);
  filter: brightness(0.62) saturate(0.82);
}

.hero-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #00000052 0%, #0000002a 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-cast {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(88vw, 1100px);
  bottom: 10vh;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  padding: 0;
  align-items: end;
}

.hero-cast .char-stack {
  height: min(46vh, 400px);
  position: relative;
  transform-origin: center bottom;
}

.hero-cast .char {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px #000);
}

.hero-cast .char-sil {
  opacity: 1;
}

.hero-cast .char-color {
  opacity: 0;
}

.hero-mobile-figure {
  display: none;
}

.hero-title-wrap {
  position: absolute;
  z-index: 5;
  text-align: center;
  width: min(90vw, 900px);
}

.tag {
  margin: 0;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-size: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1 span {
  display: block;
  font-size: clamp(4rem, 11vw, 11rem);
  line-height: 0.9;
}

.lead {
  font-family: "Instrument Serif", serif;
  max-width: 42ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.hero-shadow {
  display: none;
}

.leaf {
  position: absolute;
  top: -12%;
  width: 45vw;
  height: 135vh;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 7;
  filter: drop-shadow(0 0 30px #000);
}

.leaf-left {
  left: -10vw;
  background-image: url("img/siluetas/hojas_izquierda.png");
}

.leaf-right {
  right: -10vw;
  background-image: url("img/siluetas/hojas_derecha.png");
}

.section-intro {
  width: min(92vw, 1180px);
  margin: 5rem auto 2rem;
}

.section-intro h2 {
  font-size: clamp(2rem, 6vw, 5.6rem);
  line-height: 0.92;
}

.section-copy {
  font-family: "Instrument Serif", serif;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--muted);
  max-width: 84ch;
  margin: 1rem 0 0;
  line-height: 1.45;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.characters {
  width: min(92vw, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
}

.characters .character-card:nth-child(1) { grid-column: 1 / 4; }
.characters .character-card:nth-child(2) { grid-column: 4 / 7; }
.characters .character-card:nth-child(3) { grid-column: 1 / 3; }
.characters .character-card:nth-child(4) { grid-column: 3 / 5; }
.characters .character-card:nth-child(5) { grid-column: 5 / 7; }

.character-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #161616 0%, #0d0d0d 100%);
  border-radius: 18px;
  padding: 1rem;
}

.character-visual {
  position: relative;
  height: 240px;
}

.character-visual img {
  position: absolute;
  inset: 0;
}

.character-card img {
  height: 240px;
  object-fit: contain;
  object-position: center bottom;
}

.character-visual .is-color {
  opacity: 1;
}

.character-card h3 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

.character-card p,
.news-item p,
.news-item h3 {
  font-family: "Instrument Serif", serif;
}

.character-card p {
  color: var(--muted);
  margin: 0.4rem 0 0;
  font-size: 1rem;
}

.objects-section {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 5.8rem 4vw 1.5rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.1rem;
  position: relative;
}

.objects-intro {
  width: min(92vw, 1180px);
  margin: 0 auto;
}

.objects-intro h2 {
  font-size: clamp(2rem, 6vw, 5.6rem);
  line-height: 0.92;
}

.objects-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

.objects-track {
  width: min(92vw, 1180px);
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: center;
}

.object-item {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: relative;
  min-height: auto;
  background: none;
  box-shadow: none;
  width: 100%;
  max-width: 340px;
  transform-origin: center center;
  will-change: transform;
  justify-self: center;
}

.object-item img {
  width: 100%;
  height: clamp(170px, 20vh, 280px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 18px #000000a3);
}

.object-item figcaption {
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  transform: translateX(-50%) translateY(8px);
  margin: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #0d0d0dd4;
  color: #efe4d2;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.object-item:hover figcaption,
.object-item:focus-within figcaption {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.news-grid {
  width: min(92vw, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 0.9rem;
}

.timeline-section {
  width: min(92vw, 1180px);
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
}

.timeline-wrap {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: 0.5rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #ffffff16 0%, #ffffff35 100%);
}

.timeline-progress {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #d4a461 0%, #f1ddbd 100%);
  box-shadow: 0 0 18px #d4a46180;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-right: 2.2rem;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 2.2rem;
}

.timeline-dot {
  position: absolute;
  right: -7px;
  top: 2.1rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f1ddbd;
  border: 2px solid #191919;
  box-shadow: 0 0 0 8px #d4a46122;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -7px;
  right: auto;
}

.timeline-card {
  border: 1px solid #ffffff24;
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  background:
    radial-gradient(circle at top right, #d4a46120 0%, transparent 45%),
    linear-gradient(180deg, #141414 0%, #0c0c0c 100%);
  box-shadow: 0 18px 32px #0000007d;
}

.timeline-card h3 {
  margin-top: 0.35rem;
  font-size: 1.45rem;
}

.timeline-card p {
  font-family: "Instrument Serif", serif;
}

.timeline-card > p:last-child {
  color: var(--muted);
  margin: 0.55rem 0 0;
  font-size: 1.02rem;
  line-height: 1.4;
}

.news-item {
  border: 1px solid #ffffff24;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}

.news-item img {
  height: 280px;
  object-fit: cover;
}

.news-item div {
  padding: 0.9rem;
}

.date {
  margin: 0;
  color: #cfaf7b;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.news-item h3 {
  margin-top: 0.4rem;
  line-height: 1.2;
  font-size: 1.2rem;
  text-transform: none;
}

.gallery {
  height: 160vh;
  position: relative;
  margin-top: 0;
}

.gallery-track {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 4vw;
  width: max-content;
}

.gallery-frame {
  margin: 0;
  position: relative;
  width: clamp(280px, 44vw, 660px);
  height: clamp(340px, 70vh, 760px);
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #ffffff2e;
  box-shadow: 0 34px 70px #0000008f;
}

.gallery-frame img {
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.1rem 1rem 0.9rem;
  background: linear-gradient(180deg, #00000000 0%, #000000c9 72%, #000000e8 100%);
  color: #f0e9dd;
  font-family: "Instrument Serif", serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.gallery-footer {
  width: min(92vw, 1180px);
  margin: 1rem auto 0;
  display: flex;
  justify-content: center;
}

.gallery-page-main {
  padding-top: 5.8rem;
  min-height: calc(100vh - 4rem);
}

.gallery-full-wrap {
  width: min(94vw, 1320px);
  margin: 0 auto 3rem;
}

.gallery-filters {
  display: grid;
  grid-template-columns: auto minmax(170px, 220px) auto minmax(190px, 260px);
  align-items: center;
  justify-content: start;
  gap: 0.55rem 0.7rem;
  margin-bottom: 0.9rem;
}

.gallery-filter-label {
  color: #d6bf97;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.gallery-filter-select {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #ffffff2e;
  background: #101010;
  color: #efe4d2;
  font-family: "Instrument Serif", serif;
  font-size: 0.96rem;
  outline: none;
}

.gallery-filter-select:focus {
  border-color: #d4a461;
  box-shadow: 0 0 0 3px #d4a46130;
}

.gallery-full-grid {
  column-count: 4;
  column-gap: 1rem;
}

.gallery-full-item {
  margin: 0 0 1rem;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #ffffff2e;
  box-shadow: 0 22px 50px #00000075;
  background: #0c0c0c;
}

.gallery-full-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-full-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.7rem 0.95rem 0.75rem;
  background: linear-gradient(180deg, #00000000 0%, #000000c4 68%, #000000eb 100%);
  color: #f0e9dd;
  font-family: "Instrument Serif", serif;
  font-size: 0.9rem;
  line-height: 1.25;
}

.site-footer {
  padding: 1.2rem;
  border-top: 1px solid #ffffff17;
  text-align: center;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #a99d8a;
}

.reveal-card,
.reveal-up {
  opacity: 0;
}

.editions-main {
  padding-top: 5.8rem;
  min-height: calc(100vh - 4rem);
}

.editions-intro {
  margin-top: 1.5rem;
}

.editions-wrap {
  width: min(92vw, 1180px);
  margin: 0 auto 3rem;
}

.editions-tools {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.editions-label {
  color: #d6bf97;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.editions-search {
  width: min(100%, 420px);
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #ffffff2e;
  background: #101010;
  color: #efe4d2;
  font-family: "Instrument Serif", serif;
  font-size: 1rem;
  outline: none;
}

.editions-search:focus {
  border-color: #d4a461;
  box-shadow: 0 0 0 3px #d4a46130;
}

.editions-status {
  margin: 0;
  color: #b8ab97;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.editions-shell {
  border: 1px solid #ffffff2b;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 0%, #d4a4611e 0%, transparent 45%),
    linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
  box-shadow: 0 24px 54px #00000087;
}

.editions-table {
  width: 100%;
  border-collapse: collapse;
}

.editions-table thead th {
  text-align: left;
  padding: 0.95rem 0.9rem;
  font-size: 0.9rem;
  color: #f0d6ad;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #ffffff26;
  background: #0f0f0fd1;
  position: sticky;
  top: 0;
  z-index: 1;
}

.editions-table tbody td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #ffffff1a;
  font-family: "Instrument Serif", serif;
  color: #dfd3c0;
}

.editions-table tbody tr:hover td {
  background-color: #ffffff08;
}

.editions-loading {
  text-align: center;
  color: #c8bba6;
}

.editions-note {
  margin: 0.7rem 0 0;
  color: #ad9f89;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.press-main {
  padding-top: 5.8rem;
  min-height: calc(100vh - 4rem);
}

.press-wrap {
  width: min(92vw, 1180px);
  margin: 0 auto 3rem;
}

.press-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.press-lead {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-family: "Instrument Serif", serif;
  font-size: 1.05rem;
  line-height: 1.45;
}

.press-status {
  margin: 0;
  color: #b8ab97;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.press-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  border: 1px solid #ffffff26;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, #d4a46122 0%, transparent 42%),
    linear-gradient(180deg, #151515 0%, #0b0b0b 100%);
  box-shadow: 0 20px 42px #00000075;
  overflow: hidden;
}

.press-image-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid #ffffff26;
}

.press-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.press-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.2rem;
  flex-grow: 1;
}

.press-periodico {
  margin: 0;
  color: #b8ab97;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.press-card h3 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  line-height: 1.15;
  text-transform: none;
  margin: 0;
}

.press-meta {
  margin: 0;
  color: #d9b57b;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

.press-meta span {
  color: #7e6d52;
}

.press-link {
  align-self: flex-start;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #ffffff2a;
  color: #f1e6d5;
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.press-link:hover {
  background-color: #ffffff0d;
  border-color: #d4a461;
  transform: translateY(-1px);
}

.press-card-loading {
  grid-column: 1 / -1;
  min-height: auto;
}

.press-card-loading p {
  margin: 0;
  color: #c8bba6;
  font-family: "Instrument Serif", serif;
}

.press-grid-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.press-footer {
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid #ffffff2a;
  color: #f1e6d5;
  font-family: "Instrument Serif", serif;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background-color: #ffffff0d;
  border-color: #d4a461;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
}

@media (max-width: 1020px) {
  .characters {
    grid-template-columns: 1fr;
  }

  .characters .character-card:nth-child(n) {
    grid-column: auto;
  }

  .gallery-full-grid {
    column-count: 3;
  }

  .gallery-filters {
    grid-template-columns: auto minmax(160px, 1fr) auto minmax(170px, 1fr);
  }

  .press-grid {
    grid-template-columns: 1fr 1fr;
  }

  .press-grid-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .objects-stage {
    min-height: 0;
  }

  .object-item {
    min-height: auto;
    max-width: 300px;
  }

  .object-item img {
    height: clamp(150px, 17vh, 230px);
  }

  .timeline-line {
    left: 10px;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 2rem;
    padding-right: 0;
  }

  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 3px;
    right: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: calc(0.8rem + env(safe-area-inset-top));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .logo {
    font-size: 1.15rem;
  }

  .nav-hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 100dvh;
    background: rgba(0, 0, 0, 0.96);
    z-index: 55;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding-top: max(3rem, env(safe-area-inset-top));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  nav a {
    font-size: 2.2rem;
    letter-spacing: 0.12em;
    color: var(--ink);
  }

  .nav-open nav {
    display: flex;
  }

  .gallery-full-grid {
    column-count: 2;
  }

  .gallery-filters {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .press-head {
    flex-direction: column;
    align-items: start;
  }

  .press-grid {
    grid-template-columns: 1fr;
  }

  .press-grid-mini {
    grid-template-columns: 1fr;
  }

  .press-image-wrap {
    height: 140px;
  }

  .editions-table thead th,
  .editions-table tbody td {
    padding: 0.65rem 0.5rem;
    font-size: 0.84rem;
  }

  .objects-section {
    min-height: 100dvh;
    width: 100%;
    padding: 0 4vw;
    padding-top: 5.4rem;
    padding-bottom: 1.2rem;
    overflow-x: clip;
  }

  .objects-stage {
    min-height: 0;
    justify-items: center;
    width: 100%;
    overflow: hidden;
  }

  .objects-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    width: min(92vw, 560px);
    height: 100%;
    gap: 0.9rem;
  }

  .object-item {
    width: 100%;
    min-height: auto;
    padding: 0;
    max-width: 220px;
  }

  .object-item img {
    height: clamp(120px, 16vh, 180px);
  }

  .hero {
    height: 180vh;
  }

  .hero-stage {
    position: sticky;
    top: 0;
    height: 100dvh;
    padding-top: 5.4rem;
    padding-bottom: 1.2rem;
  }

  .hero-core {
    width: 96vw;
    height: calc(100dvh - 6.1rem);
    margin-top: 0;
  }

  .hero-cast {
    display: none;
  }

  .hero-mobile-figure {
    display: block;
    position: absolute;
    left: 50%;
    bottom: max(3.5rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(42vw, 190px);
    max-height: 34dvh;
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 18px 26px #000);
    opacity: 1;
  }

  .hero-title-wrap {
    width: min(92vw, 680px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding-top: 0;
  }

  .hero-title-wrap .lead {
    max-width: 30ch;
    font-size: clamp(0.95rem, 3.4vw, 1.05rem);
    margin-top: 0.5rem;
  }

  .leaf {
    display: none;
  }

  .characters {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .characters .character-card:nth-child(n) {
    grid-column: auto;
  }

  .gallery {
    height: auto;
    margin-bottom: 1.4rem;
  }

  .gallery-track {
    position: relative;
    top: auto;
    height: auto;
    overflow-x: unset;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    padding: 0 4vw 1rem;
    align-items: stretch;
  }

  .gallery-frame {
    width: 100%;
    height: 44vw;
  }

  .gallery-footer {
    margin-top: 0.6rem;
  }
}

@media (max-width: 520px) {
  .gallery-full-grid {
    column-count: 1;
  }
}
