:root {
  --bg: #17020a;
  --bg-deep: #090106;
  --panel: rgba(48, 9, 25, 0.74);
  --panel-strong: rgba(89, 18, 45, 0.84);
  --line: rgba(255, 210, 150, 0.2);
  --text: #f8ede6;
  --muted: #d9bfca;
  --gold: #ffd07c;
  --rose: #ff7aaa;
  --crimson: #d62d68;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --display: "Bodoni MT", "Didot", "Times New Roman", serif;
  --body: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(153, 22, 70, 0.35), transparent 35%),
    linear-gradient(180deg, #21030f 0%, #0c0106 45%, #14020a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 95%);
  opacity: 0.25;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-a {
  top: 10vh;
  left: -8vw;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(214, 45, 104, 0.6), transparent 68%);
  animation: drift 16s ease-in-out infinite;
}

.ambient-b {
  top: 55vh;
  right: -6vw;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(255, 208, 124, 0.3), transparent 70%);
  animation: drift 22s ease-in-out infinite reverse;
}

.ambient-c {
  bottom: 0;
  left: 28vw;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(255, 122, 170, 0.25), transparent 68%);
  animation: pulse 12s ease-in-out infinite;
}

.hero,
.panel {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 1.5rem 0 4rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 233, 205, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 3.1rem;
  height: auto;
  flex: none;
  filter: drop-shadow(0 0 22px rgba(215, 7, 81, 0.22));
}

.brand-kicker,
.brand-name {
  display: block;
}

.brand-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-name {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.ghost-link,
.button {
  text-decoration: none;
  color: inherit;
}

.ghost-link {
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 220, 177, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 220ms ease, background 220ms ease;
}

.ghost-link:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - 8rem);
  padding: 3rem 0 1rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 6.6rem);
  line-height: 0.92;
  max-width: 10ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  max-width: 12ch;
}

h3 {
  font-size: 1.55rem;
}

.lede,
.glass-card p,
.constellation-card p,
.gallery-card p,
.manifesto-copy p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.lede {
  max-width: 62ch;
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.button-primary {
  color: #2c0614;
  background: linear-gradient(135deg, #ffe7b0, #ff95ba 55%, #d02965);
  box-shadow: 0 16px 40px rgba(214, 45, 104, 0.32);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 224, 186, 0.18);
}

.hero-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 2.2rem 0 0;
}

.hero-metrics li,
.glass-card,
.constellation-card,
.gallery-card,
.manifesto {
  border: 1px solid rgba(255, 226, 187, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-metrics li {
  padding: 1.1rem 1rem;
  border-radius: 1.4rem;
}

.metric-value {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold);
}

.metric-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-stage {
  display: flex;
  justify-content: center;
}

.orbital-frame {
  position: relative;
  width: min(100%, 39rem);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.orbital-frame::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01) 60%, transparent 72%);
  filter: blur(10px);
}

.hero-emblem {
  width: 100%;
  height: 100%;
  animation: float 8s ease-in-out infinite;
}

.hero-logo-wrap {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 7, 81, 0.36), rgba(255, 208, 124, 0.08) 42%, transparent 72%);
  filter: blur(18px);
}

.hero-logo {
  position: relative;
  width: 64%;
  max-width: 18rem;
  height: auto;
  filter:
    drop-shadow(0 0 18px rgba(215, 7, 81, 0.22))
    drop-shadow(0 22px 42px rgba(0, 0, 0, 0.28));
  animation: float 8s ease-in-out infinite;
}

.orbit {
  fill: none;
  stroke-width: 2;
}

.orbit-a {
  stroke: rgba(255, 214, 141, 0.34);
  stroke-dasharray: 10 16;
  animation: spin 28s linear infinite;
  transform-origin: center;
}

.orbit-b {
  stroke: rgba(255, 122, 170, 0.24);
  stroke-dasharray: 4 14;
  animation: spin 40s linear infinite reverse;
  transform-origin: center;
}

.stage-card {
  position: absolute;
  padding: 0.95rem 1rem;
  min-width: 8.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 224, 187, 0.14);
  background: rgba(27, 5, 13, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.stage-card span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.stage-card strong {
  display: block;
  margin-top: 0.3rem;
  font-weight: 600;
}

.stage-card-a {
  top: 8%;
  left: 2%;
}

.stage-card-b {
  top: 19%;
  right: 0;
}

.stage-card-c {
  bottom: 10%;
  left: 8%;
}

.panel {
  margin-bottom: 2rem;
  padding: 2.5rem 0;
}

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

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

.glass-card,
.constellation-card,
.gallery-card,
.manifesto {
  border-radius: 1.7rem;
}

.glass-card,
.gallery-card {
  padding: 1.5rem;
}

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

.constellation-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.constellation-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 14rem;
  background: radial-gradient(circle, rgba(255, 122, 170, 0.18), transparent 60%);
}

.constellation-index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 0.2em;
}

.gallery-card {
  overflow: hidden;
}

.art-frame {
  margin-bottom: 1.25rem;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 187, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.art-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.manifesto {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(255, 208, 124, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
}

.manifesto-quote {
  margin: 0;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 220, 185, 0.14);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  color: #fff4dd;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2vw, -3vh, 0) scale(1.08);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.22;
  }
  50% {
    transform: scale(1.16);
    opacity: 0.4;
  }
}

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

@media (max-width: 980px) {
  .hero-grid,
  .manifesto,
  .overview-grid,
  .gallery-grid,
  .constellation-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-stage {
    order: -1;
  }

  .stage-card-a {
    left: 0;
  }

  .stage-card-b {
    right: 0;
  }
}

@media (max-width: 720px) {
  .hero,
  .panel {
    width: min(100% - 1rem, 1200px);
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 1.4rem;
  }

  .brand {
    justify-content: center;
    text-align: center;
  }

  .ghost-link {
    text-align: center;
  }

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

  .stage-card {
    min-width: 7rem;
    padding: 0.8rem;
  }

  .hero-logo {
    width: 60%;
  }

  h1 {
    max-width: none;
  }
}

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

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