:root {
  --deep-blue-black: #05070d;
  --charcoal-night: #0b0f17;
  --manuscript-blue: #101722;
  --soft-navy: #07111a;
  --lunar-silver: #c0cede;
  --support-silver: #aab9c8;
  --manuscript-gray: #d6d2c8;
  --infinity-blue: #00d2ff;
  --ice-blue: #8ee1ff;
  --resonance-blue: #163c52;
}

body {
  min-height: 100vh;
  color: var(--manuscript-gray);
  background:
    radial-gradient(circle at 50% 12%, rgba(22, 60, 82, 0.28), transparent 34rem),
    radial-gradient(circle at 8% 20%, rgba(0, 210, 255, 0.08), transparent 18rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.44)),
    linear-gradient(180deg, var(--deep-blue-black), var(--charcoal-night) 42%, var(--soft-navy));
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(192, 206, 222, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 206, 222, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 22%, transparent 82%);
}

a {
  color: var(--ice-blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 13, 0.86);
  border-bottom: 1px solid rgba(170, 185, 200, 0.16);
  backdrop-filter: blur(16px);
}

.navbar-brand,
.nav-link,
.realm-eyebrow,
.realm-button {
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-brand {
  color: var(--lunar-silver);
  font-size: 0.9rem;
}

.nav-link {
  color: var(--support-silver);
  font-size: 0.76rem;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--ice-blue);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--lunar-silver);
}

.language-switcher {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.8rem;
}

.language-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.18rem 0.45rem;
  color: rgba(170, 185, 200, 0.76);
  border: 1px solid transparent;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.language-switcher__link:hover,
.language-switcher__link:focus-visible {
  color: var(--ice-blue);
  border-color: rgba(142, 225, 255, 0.3);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.08);
  outline: 0;
}

.language-switcher__link.is-active {
  color: var(--lunar-silver);
  border-color: rgba(142, 225, 255, 0.32);
  background: rgba(0, 210, 255, 0.06);
}

@media (min-width: 992px) {
  .language-switcher {
    margin-top: 0;
  }
}

.hero-section,
.page-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 13vh, 9rem) 0 clamp(4rem, 9vh, 6rem);
}

.hero-section::before,
.page-intro::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 210, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(16, 23, 34, 0.35), rgba(5, 7, 13, 0.94));
}

.hero-content {
  max-width: 1440px;
}

h1,
h2,
h3 {
  color: var(--lunar-silver);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.25rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.hero-subtitle,
.hero-kicker,
.page-intro p,
.narrow-copy {
  max-width: 740px;
}

.hero-kicker {
  color: var(--lunar-silver);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-style: italic;
}

.hero-subtitle {
  color: var(--support-silver);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

.hero-artwork-frame,
.cinematic-artwork-frame {
  width: 100%;
  max-width: 1320px;
  margin: clamp(2rem, 5vw, 3.5rem) auto clamp(2rem, 4vw, 3rem);
}

.cinematic-artwork-frame-closing {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0;
}

.hero-artwork,
.cinematic-page-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(170, 185, 200, 0.2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38), 0 0 32px rgba(0, 210, 255, 0.06);
}

.hero-artwork {
  aspect-ratio: 1916 / 821;
}

.cinematic-page-image {
  aspect-ratio: 1672 / 941;
}

.cinematic-page-image-healing {
  aspect-ratio: 1909 / 824;
}

.inspirations-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(22, 60, 82, 0.18), transparent 42rem),
    linear-gradient(180deg, rgba(5, 7, 13, 0.12), rgba(5, 7, 13, 0.5) 76%, rgba(5, 7, 13, 0));
}

.inspirations-background {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(1120px, 175vh, 2100px);
  pointer-events: none;
}

.inspirations-background__image,
.inspirations-background__overlay {
  position: absolute;
  inset: 0;
}

.inspirations-background__image {
  background-image: var(--inspirations-background-image);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  opacity: 0.72;
}

.inspirations-background__overlay {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(0, 210, 255, 0.08), transparent 36rem),
    radial-gradient(ellipse at 8% 34%, rgba(5, 7, 13, 0.46), transparent 32rem),
    radial-gradient(ellipse at 92% 26%, rgba(2, 5, 10, 0.44), transparent 34rem),
    linear-gradient(90deg, rgba(2, 5, 10, 0.56), transparent 28%, transparent 72%, rgba(2, 5, 10, 0.58)),
    linear-gradient(180deg, rgba(2, 5, 10, 0.18), rgba(5, 7, 13, 0.3) 50%, rgba(5, 7, 13, 0.48) 78%, var(--deep-blue-black) 100%);
}

.inspirations-background__overlay::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(5, 7, 13, 0.54) 62%, var(--deep-blue-black) 100%);
}

.inspirations-content {
  position: relative;
  z-index: 1;
}

.inspirations-page .manuscript-section {
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.3), rgba(5, 7, 13, 0.64));
}

.inspirations-page .realm-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.05), transparent 12rem),
    rgba(8, 12, 20, 0.84);
  backdrop-filter: blur(3px);
}

.realm-eyebrow {
  color: var(--ice-blue);
  font-size: 0.75rem;
}

.manuscript-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: linear-gradient(180deg, rgba(11, 15, 23, 0.35), rgba(5, 7, 13, 0.58));
}

.section-with-divider {
  border-top: 1px solid rgba(170, 185, 200, 0.12);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.realm-card,
.interest-form {
  background: rgba(8, 12, 20, 0.78);
  border: 1px solid rgba(170, 185, 200, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 0 28px rgba(0, 210, 255, 0.025);
}

.realm-card {
  padding: 1.5rem;
}

.realm-card h3 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.realm-card p:last-child {
  margin-bottom: 0;
}

.about-ornament {
  padding: clamp(0.75rem, 2vw, 1.25rem) 1rem clamp(0.35rem, 1.4vw, 0.85rem);
  margin-top: clamp(-2.25rem, -4vw, -1.25rem);
  text-align: center;
}

.about-ornament__image {
  display: block;
  width: clamp(140px, 16vw, 220px);
  max-width: 70vw;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.28));
}

.about-ornament__voice {
  display: inline-flex;
  padding: 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.about-ornament__voice:focus-visible {
  outline: 1px solid rgba(142, 225, 255, 0.5);
  outline-offset: 0.65rem;
}

.about-ornament + .manuscript-section {
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.join-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.join-section > .container {
  position: relative;
  z-index: 1;
}

.join-background,
.join-background__image,
.join-background__overlay {
  position: absolute;
  inset: 0;
}

.join-background {
  z-index: 0;
  pointer-events: none;
}

.join-background__image {
  background-image: var(--join-background-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.58;
}

.join-background__overlay {
  background:
    radial-gradient(ellipse at center, rgba(2, 5, 10, 0.84), rgba(5, 7, 13, 0.7) 18rem, rgba(5, 7, 13, 0.34) 34rem, transparent 52rem),
    radial-gradient(ellipse at 16% 38%, rgba(0, 210, 255, 0.1), transparent 24rem),
    radial-gradient(ellipse at 84% 28%, rgba(0, 168, 204, 0.08), transparent 26rem),
    linear-gradient(90deg, rgba(5, 7, 13, 0.18), transparent 20%, transparent 80%, rgba(5, 7, 13, 0.2)),
    linear-gradient(180deg, var(--deep-blue-black), rgba(5, 7, 13, 0.36) 18%, rgba(5, 7, 13, 0.38) 78%, var(--deep-blue-black));
}

.link-card {
  display: block;
  color: var(--manuscript-gray);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.link-card:hover,
.link-card:focus {
  color: var(--manuscript-gray);
  border-color: rgba(0, 210, 255, 0.52);
  box-shadow: 0 0 28px rgba(0, 210, 255, 0.14);
  transform: translateY(-2px);
}

.featured-link-card {
  position: relative;
  min-height: 100%;
  padding: 1.65rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 23, 34, 0.72), rgba(8, 12, 20, 0.86));
  border: 1px solid rgba(170, 185, 200, 0.2);
  border-left-color: rgba(170, 185, 200, 0.2);
}

.featured-link-card::before {
  position: absolute;
  top: 0;
  right: 1.25rem;
  left: 1.25rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.42), transparent);
}

.featured-link-card h3 {
  margin-bottom: 0.7rem;
}

.featured-link-card p {
  color: var(--support-silver);
}

.realm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  color: var(--lunar-silver);
  text-decoration: none;
  background: rgba(5, 7, 13, 0.35);
  border: 1px solid rgba(192, 206, 222, 0.55);
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.realm-button:hover,
.realm-button:focus {
  color: white;
  border-color: var(--infinity-blue);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.18);
}

.realm-button-primary {
  border-color: rgba(0, 210, 255, 0.72);
}

.resonance-audio {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}

.resonance-audio-universe {
  margin-bottom: clamp(0.35rem, 1.4vw, 0.9rem);
}

.resonance-audio-characters {
  margin-bottom: clamp(0.25rem, 1vw, 0.7rem);
}

.resonance-audio-gallery {
  margin: clamp(1rem, 2.4vw, 1.7rem) 0 clamp(2rem, 4vw, 3rem);
}

.resonance-audio-book {
  margin-top: clamp(1.1rem, 2.6vw, 1.8rem);
}

.resonance-audio-inspirations {
  margin-top: clamp(1.15rem, 2.8vw, 1.9rem);
}

.resonance-audio__button {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 18.5rem);
  padding: 0.78rem 1.2rem;
  overflow: hidden;
  color: var(--lunar-silver);
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.1), transparent 72%),
    rgba(5, 7, 13, 0.56);
  border: 1px solid rgba(170, 185, 200, 0.28);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24), inset 0 0 22px rgba(0, 210, 255, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, color 180ms ease;
}

.resonance-audio__button::before {
  position: absolute;
  inset: 0.35rem;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(0, 210, 255, 0.08);
}

.resonance-audio__button:hover,
.resonance-audio__button:focus-visible {
  color: white;
  border-color: rgba(142, 225, 255, 0.52);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 210, 255, 0.14);
  outline: 0;
  transform: translateY(-1px);
}

.resonance-audio.is-playing .resonance-audio__button {
  border-color: rgba(142, 225, 255, 0.58);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32), 0 0 30px rgba(0, 210, 255, 0.18);
}

.resonance-audio__label {
  position: relative;
  z-index: 1;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.resonance-audio__track {
  position: relative;
  z-index: 1;
  color: rgba(192, 206, 222, 0.76);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.35;
}

.portrait-placeholder,
.art-placeholder,
.book-cover-placeholder {
  border: 1px solid rgba(170, 185, 200, 0.18);
  background:
    radial-gradient(circle at 50% 36%, rgba(0, 210, 255, 0.18), transparent 6rem),
    linear-gradient(135deg, rgba(16, 23, 34, 0.9), rgba(5, 7, 13, 0.96));
}

.portrait-placeholder {
  aspect-ratio: 2 / 3;
  margin-bottom: 1.25rem;
}

.character-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-right: auto;
  margin-left: auto;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.character-card:hover,
.character-card:focus-visible {
  border-color: rgba(142, 225, 255, 0.42);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34), 0 0 34px rgba(0, 210, 255, 0.14);
  outline: 0;
  transform: translateY(-4px) scale(1.015);
}

.portrait-image {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-bottom: 1.25rem;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(170, 185, 200, 0.18);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34), 0 0 22px rgba(0, 210, 255, 0.05);
}

.character-modal[hidden] {
  display: none;
}

.character-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.character-modal__overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 18% 24%, rgba(0, 210, 255, 0.12), transparent 20rem),
    radial-gradient(circle at 82% 70%, rgba(142, 225, 255, 0.08), transparent 18rem),
    rgba(2, 5, 10, 0.86);
}

.character-modal__overlay::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(142, 225, 255, 0.22) 1px, transparent 1px),
    radial-gradient(circle, rgba(192, 206, 222, 0.1) 1px, transparent 1px);
  background-position: 0 0, 32px 36px;
  background-size: 74px 74px, 108px 108px;
  opacity: 0.18;
}

.character-modal__content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(86vh, 920px);
  padding: clamp(1rem, 3vw, 2rem);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(16, 23, 34, 0.94), rgba(5, 7, 13, 0.97));
  border: 1px solid rgba(170, 185, 200, 0.24);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.62), 0 0 42px rgba(0, 210, 255, 0.1);
}

.character-modal__content:focus {
  outline: 1px solid rgba(142, 225, 255, 0.44);
  outline-offset: 3px;
}

.character-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--lunar-silver);
  background: rgba(5, 7, 13, 0.78);
  border: 1px solid rgba(170, 185, 200, 0.3);
  font-size: 1.65rem;
  line-height: 1;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.character-modal__close:hover,
.character-modal__close:focus-visible {
  color: white;
  border-color: rgba(142, 225, 255, 0.58);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.14);
  outline: 0;
}

.character-modal__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}

.character-modal__image {
  display: block;
  width: 100%;
  max-height: min(76vh, 760px);
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center top;
  border: 1px solid rgba(170, 185, 200, 0.2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38), 0 0 26px rgba(0, 210, 255, 0.07);
}

.character-modal__details {
  padding-top: 0.75rem;
}

.character-modal__details h2 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}

body.character-modal-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .character-modal__layout {
    grid-template-columns: 1fr;
  }

  .character-modal__image {
    max-height: 68vh;
  }
}

.art-placeholder {
  aspect-ratio: 4 / 5;
}

.gallery-page-container {
  max-width: 1480px;
}

.gallery-grid {
  align-items: stretch;
}

.gallery-artwork-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0.72rem;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(16, 23, 34, 0.58), rgba(8, 12, 20, 0.82));
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.gallery-artwork-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 8%, rgba(0, 210, 255, 0.08), transparent 44%),
    linear-gradient(180deg, transparent 58%, rgba(5, 7, 13, 0.28));
  opacity: 0;
  transition: opacity 220ms ease;
}

.gallery-artwork-card:hover,
.gallery-artwork-card:focus-visible {
  border-color: rgba(142, 225, 255, 0.44);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.34), 0 0 34px rgba(0, 210, 255, 0.14);
  outline: 0;
  transform: translateY(-4px) scale(1.012);
}

.gallery-artwork-card:hover::before,
.gallery-artwork-card:focus-visible::before {
  opacity: 1;
}

.gallery-artwork-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  flex: 0 0 auto;
  margin: 0 0 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 32%, rgba(0, 210, 255, 0.16), transparent 8rem),
    linear-gradient(135deg, rgba(16, 23, 34, 0.9), rgba(5, 7, 13, 0.96));
  border: 1px solid rgba(170, 185, 200, 0.18);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34), 0 0 22px rgba(0, 210, 255, 0.05);
}

.art-image,
.gallery-artwork-card__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  transition: filter 220ms ease, transform 220ms ease;
}

.gallery-artwork-card:hover .gallery-artwork-card__image,
.gallery-artwork-card:focus-visible .gallery-artwork-card__image {
  filter: brightness(1.06);
  transform: scale(1.025);
}

.gallery-artwork-card__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.48rem;
  padding: 0 0.3rem 0.28rem;
}

.gallery-artwork-card__category {
  margin-bottom: 0;
}

.gallery-artwork-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.76rem);
  line-height: 1.08;
}

.gallery-artwork-card p {
  color: var(--support-silver);
  line-height: 1.58;
}

.gallery-artwork-card p:last-child {
  margin-bottom: 0;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: clamp(0.85rem, 2.5vw, 2rem);
}

.gallery-modal__overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(0, 210, 255, 0.1), transparent 34rem),
    radial-gradient(ellipse at 18% 18%, rgba(5, 7, 13, 0.86), transparent 28rem),
    radial-gradient(ellipse at 82% 20%, rgba(2, 5, 10, 0.78), transparent 26rem),
    radial-gradient(ellipse at 16% 86%, rgba(0, 0, 0, 0.66), transparent 24rem),
    radial-gradient(ellipse at 86% 82%, rgba(22, 60, 82, 0.24), transparent 26rem),
    linear-gradient(115deg, rgba(2, 5, 10, 0.98), rgba(5, 7, 13, 0.9) 44%, rgba(1, 3, 7, 0.98));
}

.gallery-modal__overlay::before,
.gallery-modal__overlay::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.gallery-modal__overlay::before {
  background:
    radial-gradient(circle, rgba(142, 225, 255, 0.22) 1px, transparent 1.4px) 0 0 / 92px 92px,
    radial-gradient(circle, rgba(0, 210, 255, 0.12) 1px, transparent 1.3px) 38px 42px / 138px 138px,
    radial-gradient(circle, rgba(192, 206, 222, 0.08) 1px, transparent 1.2px) 18px 64px / 168px 168px;
  opacity: 0.22;
  animation: galleryParticleDrift 22s ease-in-out infinite alternate;
}

.gallery-modal__overlay::after {
  background:
    radial-gradient(ellipse at 8% 42%, rgba(0, 0, 0, 0.58), transparent 28rem),
    radial-gradient(ellipse at 92% 48%, rgba(0, 0, 0, 0.48), transparent 26rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.48));
  opacity: 0.82;
  animation: galleryMistDrift 28s ease-in-out infinite alternate;
}

.gallery-modal__content {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  max-height: min(92vh, 980px);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  overflow: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.08), transparent 26rem),
    linear-gradient(180deg, rgba(16, 23, 34, 0.86), rgba(5, 7, 13, 0.96));
  border: 1px solid rgba(170, 185, 200, 0.24);
  box-shadow:
    0 42px 140px rgba(0, 0, 0, 0.7),
    0 0 72px rgba(0, 210, 255, 0.13),
    inset 0 0 42px rgba(0, 210, 255, 0.035);
}

.gallery-modal__content::before {
  position: absolute;
  inset: 0.45rem;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(142, 225, 255, 0.08);
}

.gallery-modal__content:focus {
  outline: 1px solid rgba(142, 225, 255, 0.44);
  outline-offset: 3px;
}

.gallery-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--lunar-silver);
  background: rgba(5, 7, 13, 0.82);
  border: 1px solid rgba(170, 185, 200, 0.3);
  font-size: 1.65rem;
  line-height: 1;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.gallery-modal__close:hover,
.gallery-modal__close:focus-visible {
  color: white;
  border-color: rgba(142, 225, 255, 0.58);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.14);
  outline: 0;
}

.gallery-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(270px, 0.34fr);
  gap: clamp(0.95rem, 2.5vw, 1.75rem);
  align-items: center;
}

.gallery-modal__image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: min(72vh, 760px);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.09), transparent 42%),
    rgba(3, 6, 11, 0.64);
  border: 1px solid rgba(170, 185, 200, 0.18);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38), 0 0 34px rgba(0, 210, 255, 0.07);
}

.gallery-modal__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(84vh, 880px);
  object-fit: contain;
}

.gallery-modal__details {
  padding: clamp(0.25rem, 2vw, 1rem);
}

.gallery-modal__details h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1;
}

.gallery-modal__details p:last-child {
  color: var(--support-silver);
}

body.gallery-modal-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .gallery-modal__layout {
    grid-template-columns: 1fr;
  }

  .gallery-modal__image-frame {
    min-height: auto;
  }

  .gallery-modal__image {
    max-height: 68vh;
  }
}

@media (max-width: 575.98px) {
  .inspirations-background {
    height: clamp(860px, 150vh, 1320px);
  }

  .inspirations-background__image {
    background-position: top center;
    opacity: 0.58;
  }

  .gallery-artwork-card {
    padding: 0.7rem;
  }

  .gallery-modal__content {
    max-height: 88vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-artwork-card,
  .gallery-artwork-card::before,
  .gallery-artwork-card__image {
    transition: none;
  }

  .gallery-artwork-card:hover,
  .gallery-artwork-card:focus-visible,
  .gallery-artwork-card:hover .gallery-artwork-card__image,
  .gallery-artwork-card:focus-visible .gallery-artwork-card__image {
    transform: none;
  }

  .gallery-modal__overlay::before,
  .gallery-modal__overlay::after {
    animation: none;
  }
}

.book-cover-placeholder {
  aspect-ratio: 2 / 3;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.book-cover-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 360px;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid rgba(170, 185, 200, 0.18);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.realm-quote {
  color: var(--lunar-silver);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-style: italic;
  line-height: 1.35;
}

.hero-quote {
  max-width: 680px;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 210, 255, 0.28);
}

.card-quote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(0, 210, 255, 0.36);
  font-size: 1.22rem;
}

.detail-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(170, 185, 200, 0.14);
}

.detail-label,
.fragment-manuscript-label,
.chapter-number,
.detail-grid dt {
  color: var(--ice-blue);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.realm-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.7rem;
  color: var(--support-silver);
  background: rgba(22, 60, 82, 0.3);
  border: 1px solid rgba(170, 185, 200, 0.2);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.gallery-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}

.gallery-filter-controls .tag-list {
  margin-top: 0;
}

.gallery-filter-button,
.filter-clear-button {
  appearance: none;
  cursor: pointer;
}

.gallery-filter-button {
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.gallery-filter-button.is-active,
.gallery-filter-button[aria-pressed="true"] {
  color: var(--lunar-silver);
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(142, 225, 255, 0.56);
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.12);
}

.filter-clear-button {
  min-height: 1.85rem;
  padding: 0.2rem 0;
  color: var(--support-silver);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(170, 185, 200, 0.28);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.filter-clear-button:hover,
.filter-clear-button:focus {
  color: var(--ice-blue);
  border-bottom-color: rgba(0, 210, 255, 0.52);
}

.gallery-item.is-hidden {
  display: none;
}

.book-subtitle {
  color: var(--lunar-silver);
  font-size: 1.25rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0 0 3rem;
}

.detail-grid div {
  padding: 1rem;
  background: rgba(8, 12, 20, 0.62);
  border: 1px solid rgba(170, 185, 200, 0.16);
}

.detail-grid dd {
  margin-bottom: 0;
}

.closing-panel,
.final-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 210, 255, 0.24);
}

.chapter-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.chapter-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(170, 185, 200, 0.14);
}

.chapter-item h3 {
  margin-bottom: 0.25rem;
}

.rights-note {
  color: var(--support-silver);
  font-size: 0.98rem;
}

.fragment-manuscript-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 880px);
  min-height: clamp(270px, 40vw, 430px);
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(2.3rem, 6vw, 4.75rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(214, 210, 200, 0.18), transparent 62%),
    rgba(8, 12, 20, 0.34);
  border: 1px solid rgba(170, 185, 200, 0.3);
  border-radius: 6px;
  box-shadow:
    0 28px 92px rgba(0, 0, 0, 0.32),
    0 0 34px rgba(0, 210, 255, 0.06),
    inset 0 0 38px rgba(5, 7, 13, 0.08);
}

.fragment-manuscript-panel::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    var(--fragment-manuscript-image, linear-gradient(135deg, #d1cec1, #aeb8be 48%, #d8d4c6)),
    linear-gradient(135deg, #d1cec1, #aeb8be 48%, #d8d4c6);
  background-position: center;
  background-size: cover;
  opacity: 0.94;
}

.fragment-manuscript-panel::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 5% 9%, rgba(5, 7, 13, 0.32), transparent 11rem),
    radial-gradient(ellipse at 94% 11%, rgba(5, 7, 13, 0.24), transparent 10rem),
    radial-gradient(ellipse at 8% 94%, rgba(5, 7, 13, 0.26), transparent 11rem),
    radial-gradient(ellipse at 92% 92%, rgba(22, 60, 82, 0.16), transparent 12rem),
    radial-gradient(circle, rgba(0, 168, 204, 0.18) 1px, transparent 1.4px) 12px 18px / 92px 92px;
  opacity: 0.72;
}

.fragment-manuscript-art {
  position: absolute;
  inset: 0.65rem;
  z-index: -2;
  pointer-events: none;
  border: 1px solid rgba(142, 225, 255, 0.18);
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255, 255, 255, 0.18), transparent 44%),
    linear-gradient(90deg, rgba(5, 7, 13, 0.12), transparent 18%, transparent 82%, rgba(5, 7, 13, 0.14));
  opacity: 0.78;
}

.fragment-manuscript-content {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.2rem);
  width: 100%;
  max-width: 650px;
  text-align: center;
}

.fragment-manuscript-label {
  color: rgba(22, 60, 82, 0.96);
}

.fragment-manuscript-quote {
  margin: 0;
  color: #17212c;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-style: italic;
  line-height: 1.32;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
}

.fragment-entry {
  margin-bottom: clamp(1.9rem, 4.5vw, 3rem);
  text-align: center;
}

.fragment-entry .fragment-manuscript-panel {
  margin-bottom: clamp(0.85rem, 2.2vw, 1.25rem);
}

.voice-narration {
  display: flex;
  justify-content: center;
}

.voice-narration-special {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: clamp(1.4rem, 3.5vw, 2.4rem);
}

.voice-narration__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 12.6rem);
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  overflow: hidden;
  color: var(--lunar-silver);
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.09), transparent 68%),
    rgba(5, 7, 13, 0.58);
  border: 1px solid rgba(170, 185, 200, 0.28);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22), inset 0 0 18px rgba(0, 210, 255, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.voice-narration__button::before {
  position: absolute;
  inset: 0.28rem;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(0, 210, 255, 0.08);
}

.voice-narration__button:hover,
.voice-narration__button:focus-visible {
  color: white;
  border-color: rgba(142, 225, 255, 0.5);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28), 0 0 22px rgba(0, 210, 255, 0.12);
  outline: 0;
  transform: translateY(-1px);
}

.voice-narration.is-playing .voice-narration__button,
.voice-narration__button.is-playing {
  border-color: rgba(142, 225, 255, 0.58);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 26px rgba(0, 210, 255, 0.16);
}

.voice-narration__label {
  position: relative;
  z-index: 1;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.fragments-special {
  width: min(100%, 960px);
  margin: clamp(3.75rem, 8vw, 6.5rem) auto 0;
  text-align: center;
}

.fragments-special__divider {
  width: min(78%, 900px);
  height: 1px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  background:
    linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.58), transparent);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.22);
}

.fragments-special__label {
  margin-bottom: 0.9rem;
  color: var(--ice-blue);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(0.95rem, 1.2vw, 1.18rem);
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.fragments-special__quote {
  display: grid;
  gap: 0.24rem;
  margin: 0 auto clamp(2rem, 5vw, 3.4rem);
  color: var(--lunar-silver);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 5vw, 3.2rem);
  font-style: italic;
  line-height: 1.12;
  text-shadow: 0 0 24px rgba(0, 210, 255, 0.12);
}

.fragments-special__quote span {
  display: block;
}

.fragments-special__frame {
  position: relative;
  isolation: isolate;
  --fragments-special-image-block-inset: clamp(2.35rem, 6.6vw, 5.4rem);
  --fragments-special-image-inline-inset: clamp(2.15rem, 6vw, 5rem);
  width: min(100%, 880px);
  margin: 0 auto;
  overflow: hidden;
  filter: drop-shadow(0 36px 90px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 34px rgba(0, 210, 255, 0.08));
}

.fragments-special__frame::before {
  position: absolute;
  inset: clamp(1.4rem, 4vw, 3.4rem);
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 50% 38%, rgba(0, 210, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.46), rgba(2, 5, 10, 0.78));
}

.fragments-special__frame-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.fragments-special__image-wrap {
  position: absolute;
  inset:
    var(--fragments-special-image-block-inset)
    var(--fragments-special-image-inline-inset);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(0, 210, 255, 0.1), transparent 48%),
    rgba(3, 6, 11, 0.48);
}

.fragments-special__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

@media (max-width: 575.98px) {
  .fragment-manuscript-panel {
    min-height: 250px;
    padding: 2.15rem 1.45rem;
  }

  .fragment-manuscript-art {
    inset: 0.45rem;
  }

  .fragments-special {
    margin-top: 3.25rem;
  }

  .fragments-special__divider {
    width: 76%;
  }

  .fragments-special__label {
    letter-spacing: 0.11em;
  }

  .fragments-special__quote {
    line-height: 1.18;
  }

  .fragments-special__frame {
    --fragments-special-image-block-inset: clamp(1.2rem, 7vw, 2rem);
    --fragments-special-image-inline-inset: clamp(1.1rem, 6vw, 1.8rem);
  }
}

.influences-heading {
  margin-top: 4rem;
}

.formal-page {
  background: rgba(5, 7, 13, 0.74);
}

.accent-copy,
.submission-note {
  color: var(--ice-blue);
}

.form-feedback {
  max-width: 620px;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  color: var(--manuscript-gray);
  background: rgba(8, 12, 20, 0.78);
  border: 1px solid rgba(170, 185, 200, 0.26);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24), 0 0 22px rgba(0, 210, 255, 0.08);
  opacity: 1;
  transition: opacity 600ms ease, transform 600ms ease;
}

.form-feedback-success {
  border-color: rgba(142, 225, 255, 0.34);
}

.form-feedback.is-fading {
  opacity: 0;
  transform: translateY(-0.35rem);
}

.interest-form {
  max-width: 620px;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.form-label {
  color: var(--support-silver);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.82rem;
}

.form-control {
  color: var(--manuscript-gray);
  background: rgba(5, 7, 13, 0.78);
  border: 1px solid rgba(170, 185, 200, 0.25);
}

.form-control:focus {
  color: white;
  background: rgba(5, 7, 13, 0.92);
  border-color: var(--infinity-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 210, 255, 0.12);
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 2.5rem 0;
  color: var(--support-silver);
  background: rgba(5, 7, 13, 0.9);
  border-top: 1px solid rgba(170, 185, 200, 0.16);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-institutional {
  row-gap: 0.75rem;
}

.footer-divider {
  width: 100%;
  height: 1px;
  margin: 1.45rem 0 1.2rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(192, 206, 222, 0.22),
    rgba(0, 210, 255, 0.16),
    transparent
  );
}

.footer-copyright {
  max-width: 900px;
}

.footer-copyright p {
  margin: 0;
  color: rgba(170, 185, 200, 0.72);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.88rem;
  letter-spacing: 0;
  line-height: 1.65;
  text-transform: none;
}

.realm-particle {
  position: fixed;
  z-index: -1;
  width: 2px;
  height: 2px;
  pointer-events: none;
  background: rgba(142, 225, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
  animation: particleDrift 16s ease-in-out infinite alternate;
}

@keyframes particleDrift {
  from {
    transform: translateY(0);
    opacity: 0.18;
  }

  to {
    transform: translateY(-20px);
    opacity: 0.62;
  }
}

@keyframes galleryParticleDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(18px, -24px, 0);
  }
}

@keyframes galleryMistDrift {
  from {
    transform: translate3d(-1.5%, 0, 0) scale(1);
  }

  to {
    transform: translate3d(1.5%, -1%, 0) scale(1.02);
  }
}
