:root {
  --bg-1: #09050d;
  --bg-2: #160a14;
  --bg-3: #23111a;
  --bg-4: #0b1320;
  --accent: #f5c36a;
  --accent-soft: rgba(245, 195, 106, 0.22);
  --rose: #d96f7b;
  --ink: #f5efe8;
  --muted: rgba(245, 239, 232, 0.72);
  --panel: rgba(17, 12, 20, 0.62);
  --panel-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 195, 106, 0.14), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(217, 111, 123, 0.16), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(78, 108, 175, 0.14), transparent 30%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2) 38%, var(--bg-3) 72%, var(--bg-4));
  color: var(--ink);
  font-family: "Avenir Next", "Aptos", "Segoe UI", sans-serif;
}

button,
input,
audio {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  padding: max(20px, env(safe-area-inset-top)) 18px
    max(30px, env(safe-area-inset-bottom)) 18px;
  isolation: isolate;
}

.bg-orb {
  position: fixed;
  inset: auto;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  z-index: -3;
  opacity: 0.72;
}

.orb-a {
  top: 8vh;
  left: -12vw;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(245, 195, 106, 0.28), transparent 68%);
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-b {
  right: -16vw;
  bottom: 12vh;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle, rgba(217, 111, 123, 0.24), transparent 68%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 100%);
  opacity: 0.14;
  pointer-events: none;
  z-index: -2;
}

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 0 18px;
  text-align: left;
}

.eyebrow,
.story-kicker {
  margin: 0;
  color: var(--accent);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.hero h1,
.story-copy h2 {
  margin: 10px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(3.2rem, 11vw, 6.1rem);
  line-height: 0.95;
  text-shadow: 0 0 34px rgba(245, 195, 106, 0.18);
}

.subtitle,
.story-copy p,
.tip {
  color: var(--muted);
  line-height: 1.6;
}

.subtitle {
  margin: 16px 0 0;
  max-width: 42rem;
  font-size: 1.02rem;
}

.stage-wrap {
  width: min(100%, 1120px);
  margin: 18px auto 0;
  display: grid;
  gap: 18px;
}

.stage-panel,
.control-panel,
.story-banner {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.stage-panel {
  min-height: 58vh;
  padding: 28px 16px 40px;
}

.spotlight {
  position: absolute;
  inset: 4% 8% auto;
  height: 30%;
  background: radial-gradient(circle, rgba(245, 195, 106, 0.16), transparent 70%);
  filter: blur(28px);
}

.gallery-shell {
  position: relative;
  height: 54vh;
  min-height: 420px;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82vw, 760px);
  height: min(82vw, 760px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(245, 195, 106, 0.04),
    0 0 80px rgba(245, 195, 106, 0.06);
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.orbit-ring::after {
  inset: 22%;
  border-style: solid;
  opacity: 0.45;
}

.orbit-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(34vw, 180px);
  aspect-ratio: 3 / 4;
  transform-origin: center center;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(245, 195, 106, 0.08);
  background: #111;
  cursor: pointer;
  transition:
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 300ms ease,
    opacity 300ms ease,
    border-color 300ms ease;
}

.orbit-card::after,
.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.14) 58%, transparent 76%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.orbit-card img,
.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orbit-card.is-active {
  border-color: rgba(245, 195, 106, 0.52);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(245, 195, 106, 0.24);
  opacity: 1;
}

.orbit-card:not(.is-active) {
  opacity: 0.82;
}

.photo-index {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 8, 15, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.featured-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(44vw, 330px);
  aspect-ratio: 3 / 4.2;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #140f14;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.48),
    0 0 54px rgba(245, 195, 106, 0.16);
  animation: featuredBreath 5.4s ease-in-out infinite;
}

.featured-image {
  position: absolute;
  inset: 0;
}

.featured-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 72px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(9, 8, 13, 0.18) 18%, rgba(9, 8, 13, 0.88) 66%);
}

.featured-kicker {
  margin: 0;
  color: rgba(245, 195, 106, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
}

.featured-label {
  margin: 8px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
}

.featured-caption {
  margin: 10px 0 0;
  color: rgba(245, 239, 232, 0.74);
  font-size: 0.94rem;
  line-height: 1.55;
}

.center-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(58vw, 400px);
  height: min(58vw, 400px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(245, 195, 106, 0.2), transparent 42%),
    radial-gradient(circle, rgba(217, 111, 123, 0.12), transparent 60%);
  filter: blur(24px);
  animation: pulse 4.8s ease-in-out infinite;
}

.floor-reflection {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 18px;
  height: 24%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 68%);
  filter: blur(18px);
}

.control-panel {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.primary-btn,
.ghost-btn {
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-btn {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(245, 195, 106, 0.96), rgba(217, 111, 123, 0.9));
  color: #160f11;
  font-weight: 700;
  box-shadow: 0 18px 30px rgba(245, 195, 106, 0.18);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.04);
}

.primary-btn:active,
.ghost-btn:active {
  transform: scale(0.98);
}

.tip {
  grid-column: 1 / -1;
  margin: 4px 2px 0;
  font-size: 0.92rem;
}

.story-banner {
  width: min(100%, 1120px);
  margin: 18px auto 0;
  padding: 24px 20px;
  background:
    linear-gradient(135deg, rgba(245, 195, 106, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--panel);
}

.story-copy {
  max-width: 560px;
}

.story-copy h2 {
  font-size: clamp(1.7rem, 6vw, 3rem);
}

.particle-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  bottom: -10vh;
  border-radius: 999px;
  opacity: 0.7;
  animation: floatUp linear infinite;
  box-shadow: 0 0 18px currentColor;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(8vw, 3vh, 0) scale(1.15);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

@keyframes featuredBreath {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.985);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.015);
  }
}

@keyframes floatUp {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }

  15% {
    opacity: 0.7;
  }

  100% {
    transform: translate3d(var(--drift-x), -120vh, 0) scale(1.2);
    opacity: 0;
  }
}

@media (min-width: 860px) {
  .stage-wrap {
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
    align-items: stretch;
  }

  .control-panel {
    align-content: center;
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .featured-card {
    width: 330px;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    text-align: left;
  }

  .stage-panel {
    min-height: 52vh;
    padding: 20px 8px 30px;
    border-radius: 24px;
  }

  .gallery-shell {
    min-height: 360px;
  }

  .orbit-ring {
    width: min(96vw, 460px);
    height: min(96vw, 460px);
  }

  .orbit-card {
    width: min(29vw, 124px);
    border-radius: 20px;
  }

  .featured-card {
    width: min(54vw, 250px);
    border-radius: 22px;
  }

  .featured-meta {
    padding: 56px 14px 14px;
  }

  .control-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  .center-glow,
  .particle,
  .hero h1,
  .story-copy h2 {
    animation: none !important;
  }
}
