:root {
  --bg: #04050b;
  --panel-strong: rgba(13, 20, 34, 0.96);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f0e8;
  --muted: #b7bfce;
  --accent: #f1b15f;
  --accent-cool: #8dd5ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
}

[id] {
  scroll-margin-top: 9rem;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", "Trebuchet MS", "Gill Sans MT", sans-serif;
  background:
    radial-gradient(circle at top, rgba(141, 213, 255, 0.08), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(241, 177, 95, 0.16), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.1), transparent 18%),
    linear-gradient(180deg, #05060c 0%, #090e1a 56%, #05060d 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 14%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1.8px),
    radial-gradient(circle at 84% 64%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.8px),
    radial-gradient(circle at 38% 78%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.7px),
    radial-gradient(circle at 58% 42%, rgba(255, 255, 255, 0.15) 0 1px, transparent 1.8px);
  opacity: 0.8;
}

body::after {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 35%, transparent 70%),
    radial-gradient(circle at center, transparent 0 48%, rgba(241, 177, 95, 0.08) 52%, transparent 66%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.page-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(4, 6, 12, 0.76);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
  flex-shrink: 0;
}

.brand-mark,
.hero-copy h1,
.panel h2,
.story-feature h2,
.section-heading h2,
.page-hero-copy h1,
.feature-link-copy h2,
.orbital-copy h2,
.character-copy h2,
.team-name,
.gallery-title,
.snapshot-value,
.character-summary-name {
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
}

.brand-mark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-link {
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.nav-link.is-current {
  color: var(--text);
  border-color: rgba(141, 213, 255, 0.3);
  background: linear-gradient(135deg, rgba(141, 213, 255, 0.12), rgba(241, 177, 95, 0.12));
}

.music-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  min-width: 180px;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(241, 177, 95, 0.24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(241, 177, 95, 0.11), rgba(141, 213, 255, 0.08));
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(241, 177, 95, 0.44);
  outline: none;
}

.music-toggle:disabled,
.music-toggle:disabled:hover,
.music-toggle:disabled:focus-visible {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  border-color: rgba(255, 255, 255, 0.14);
}

.music-toggle[data-playing="true"] {
  border-color: rgba(141, 213, 255, 0.42);
  background: linear-gradient(135deg, rgba(141, 213, 255, 0.16), rgba(241, 177, 95, 0.1));
}

.music-toggle-label {
  font-size: 0.95rem;
  font-weight: 700;
}

.music-toggle-state {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-grid,
.page-hero-grid,
.intro-grid,
.story-grid,
.character-showcase {
  display: grid;
  gap: 1.5rem;
}

.hero-grid,
.page-hero-grid {
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.page-hero-grid-single {
  grid-template-columns: 1fr;
}

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

.story-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}

.character-showcase {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
}

.character-showcase-reverse .character-visuals {
  order: 2;
}

.character-showcase-reverse .character-copy {
  order: 1;
}

.eyebrow,
.section-label,
.panel-kicker,
.mini-label {
  margin: 0 0 0.9rem;
  color: var(--accent-cool);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero-copy h1 {
  margin: 0;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  line-height: 0.92;
}

.lede,
.hero-copy p,
.page-hero-copy p,
.panel p,
.story-feature p,
.accent-card p,
.team-card p,
.progress-card p,
.feature-link-copy p,
.updates-post-card p,
.updates-note-panel p,
.orbital-copy p,
.snapshot-label,
.character-copy p,
.character-summary-note,
.gallery-text {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 42rem;
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #15110b;
  background: linear-gradient(135deg, var(--accent), #f6d18f);
  box-shadow: 0 18px 40px rgba(241, 177, 95, 0.18);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.hero-note {
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.hero-tags,
.trait-list,
.cast-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-tags li,
.trait-list span,
.cast-chips span {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.94rem;
}

.orbital-frame,
.panel,
.story-feature,
.team-card,
.progress-card,
.page-hero-panel,
.feature-link-panel,
.character-showcase {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 22, 38, 0.92), rgba(10, 14, 25, 0.9));
  box-shadow: var(--shadow);
}

.orbital-frame {
  display: grid;
  gap: 1.25rem;
  padding: 1.4rem;
}

.orbital-frame::before,
.panel::before,
.story-feature::before,
.team-card::before,
.progress-card::before,
.page-hero-panel::before,
.feature-link-panel::before,
.character-showcase::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 213, 255, 0.16), transparent 72%);
  transform: translate(-30%, 30%);
}

.orbital-copy,
.panel,
.story-feature,
.team-card,
.progress-card,
.page-hero-panel,
.feature-link-copy,
.character-copy {
  padding: 1.7rem;
}

.orbital-copy h2,
.panel h2,
.story-feature h2,
.section-heading h2,
.feature-link-copy h2,
.character-copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.98;
}

.orbital-portrait {
  position: relative;
  min-height: 380px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(141, 213, 255, 0.16), rgba(241, 177, 95, 0.04));
}

.orbital-portrait::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(241, 177, 95, 0.15) 60%, transparent 72%);
}

.orbital-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbital-portrait-boxart {
  min-height: 520px;
}

.orbital-portrait-boxart img {
  object-position: 58% 28%;
}

.image-nav-link {
  cursor: pointer;
}

.image-nav-badge {
  position: absolute;
  inset: auto auto 1rem 1rem;
  z-index: 2;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 6, 12, 0.75);
  color: var(--text);
  font-weight: 700;
}

.overview-copy {
  font-size: 1.03rem;
}

.pillars-grid,
.team-grid,
.progress-grid,
.snapshot-grid,
.character-summary-list {
  display: grid;
  gap: 1rem;
}

.pillars-grid,
.progress-grid,
.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accent-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    linear-gradient(135deg, rgba(141, 213, 255, 0.08), rgba(241, 177, 95, 0.08));
}

.accent-card h3,
.progress-card h3,
.footer-title,
.gallery-title {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

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

.team-name {
  font-size: 2rem;
  line-height: 1;
}

.team-role {
  color: var(--accent);
  font-weight: 700;
}

.page-hero-panel {
  padding: 1.8rem;
}

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

.snapshot-item,
.character-summary-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.snapshot-value {
  display: block;
  color: var(--text);
  font-size: 2.8rem;
}

.character-summary-name {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
}

.feature-link-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem;
}

.updates-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  align-items: start;
}

.updates-post-card,
.updates-video-shell,
.updates-note-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 22, 38, 0.92), rgba(10, 14, 25, 0.9));
  box-shadow: var(--shadow);
}

.updates-post-card::before,
.updates-video-shell::before,
.updates-note-panel::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 213, 255, 0.16), transparent 72%);
  transform: translate(-30%, 30%);
}

.updates-post-card,
.updates-note-panel {
  padding: 1.45rem;
}

.updates-post-card h2 {
  margin: 0 0 0.85rem;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
}

.update-copy {
  margin: 0;
}

.update-actions {
  margin-bottom: 0;
}

.updates-video-shell {
  padding: 1rem;
}

.video-poster-link {
  display: grid;
  gap: 1rem;
  color: inherit;
}

.video-poster-image-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.35);
}

.video-poster-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 280ms ease;
}

.video-poster-link:hover .video-poster-image,
.video-poster-link:focus-visible .video-poster-image {
  transform: scale(1.03);
}

.video-poster-play {
  position: absolute;
  inset: auto auto 1rem 1rem;
  z-index: 1;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(4, 6, 12, 0.82);
  color: var(--text);
  font-weight: 700;
}

.video-poster-copy {
  padding: 0.4rem 0.35rem 0.2rem;
}

.video-poster-copy h2 {
  margin: 0 0 0.85rem;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.98;
}

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

.gallery-grid-five .gallery-card {
  grid-column: span 3;
}

.gallery-card {
  position: relative;
  display: block;
  grid-column: span 4;
  min-height: 360px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.gallery-card-featured {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 520px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(4, 6, 12, 0.92) 100%);
}

.gallery-card:hover img,
.gallery-card:focus-visible img,
.character-media-link:hover img,
.character-media-link:focus-visible img {
  transform: scale(1.03);
}

.is-media-hidden {
  visibility: hidden;
}

.media-fallback-note {
  position: absolute;
  inset: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.86), rgba(13, 20, 34, 0.88));
  color: var(--text);
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
}

.gallery-caption-shell {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1.2rem;
}

.gallery-title {
  display: block;
  font-size: 2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-active {
  background: rgba(141, 213, 255, 0.16);
  color: var(--accent-cool);
}

.status-building {
  background: rgba(241, 177, 95, 0.16);
  color: #ffd6a1;
}

.status-planning {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.status-story {
  background: rgba(132, 196, 171, 0.16);
  color: #b2f2d8;
}

.character-stack {
  display: grid;
  gap: 1.5rem;
}

.character-showcase {
  padding: 1.5rem;
}

.character-theme-bryan {
  border-color: rgba(111, 223, 84, 0.2);
}

.character-theme-cale {
  border-color: rgba(122, 210, 255, 0.22);
}

.character-theme-nekro {
  border-color: rgba(255, 95, 95, 0.2);
}

.character-theme-mardel {
  border-color: rgba(180, 152, 255, 0.18);
}

.character-visuals {
  display: grid;
  gap: 1rem;
}

.character-primary-frame,
.character-secondary-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  cursor: zoom-in;
}

.character-primary-frame {
  min-height: 540px;
}

.character-secondary-frame {
  min-height: 320px;
}

.character-primary-frame img,
.character-secondary-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 280ms ease;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 12, 0.68);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem 0;
}

.footer-title,
.footer-subtitle,
.footer-note {
  margin: 0;
}

.footer-subtitle,
.footer-note {
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.social-link {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(241, 177, 95, 0.35);
  background: rgba(241, 177, 95, 0.1);
  outline: none;
}

.redirect-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  gap: 1rem;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(2, 4, 10, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: 92vh;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(10, 14, 25, 0.98);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(4, 6, 12, 0.84);
  color: var(--text);
  cursor: pointer;
}

.lightbox-image-wrap {
  max-height: calc(92vh - 4.5rem);
  overflow: auto;
  background: rgba(255, 255, 255, 0.02);
}

.lightbox-image {
  width: 100%;
  height: auto;
}

.lightbox-caption {
  padding: 1rem 1.25rem 1.2rem;
  color: var(--muted);
}

.reveal {
  animation: rise-in 720ms ease both;
}

.reveal-1 {
  animation-delay: 120ms;
}

.reveal-2 {
  animation-delay: 240ms;
}

.js-shell .view-panel {
  display: none;
}

.js-shell .view-panel.is-active {
  display: block;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal {
    animation: none;
  }

  .button,
  .nav-link,
  .social-link,
  .music-toggle,
  .gallery-card img,
  .character-primary-frame img,
  .character-secondary-frame img {
    transition: none;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .page-hero-grid,
  .intro-grid,
  .story-grid,
  .progress-grid,
  .team-grid,
  .snapshot-grid,
  .character-showcase,
  .updates-grid {
    grid-template-columns: 1fr;
  }

  .character-showcase-reverse .character-visuals,
  .character-showcase-reverse .character-copy {
    order: initial;
  }

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

  .gallery-card,
  .gallery-card-featured,
  .gallery-grid-five .gallery-card {
    grid-column: span 1;
    min-height: 360px;
  }

  .feature-link-panel,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .socials {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.5rem 0;
  }

  .header-inner,
  .header-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h1,
  .page-hero-copy h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .orbital-portrait,
  .orbital-portrait-boxart {
    min-height: 300px;
  }

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

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

  .gallery-card,
  .gallery-card-featured {
    min-height: 320px;
  }

  .music-toggle {
    width: 100%;
  }

  .character-primary-frame,
  .character-secondary-frame {
    min-height: 260px;
  }
}
