:root {
  color-scheme: dark;
  --ink: #17130f;
  --sand: #d9c5a4;
  --pale: #f4ead9;
  --muted: rgba(225, 204, 171, .58);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: var(--ink);
  color: var(--pale);
  font-family: "Rajdhani", sans-serif;
}
.scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 79% 37%, rgba(196, 158, 104, .27), transparent 31%),
    radial-gradient(ellipse at 16% 77%, rgba(112, 69, 41, .30), transparent 37%),
    linear-gradient(118deg, #19140f 0%, #34271b 43%, #211912 100%);
}
.atmosphere {
  position: absolute; inset: -18%;
  z-index: -3;
  opacity: .78;
  background:
    radial-gradient(ellipse at 22% 43%, rgba(177, 131, 80, .28), transparent 28%),
    radial-gradient(ellipse at 76% 24%, rgba(226, 193, 138, .22), transparent 24%),
    radial-gradient(ellipse at 68% 77%, rgba(145, 91, 50, .28), transparent 32%);
  filter: blur(36px);
  animation: atmosphere-drift 26s ease-in-out infinite alternate;
}
.horizon {
  position: absolute; inset: auto -5% -2% -5%; height: 31%;
  z-index: -2;
  background:
    linear-gradient(180deg, transparent, rgba(12, 10, 8, .58)),
    repeating-linear-gradient(174deg, transparent 0 38px, rgba(218, 179, 126, .035) 39px 40px),
    linear-gradient(180deg, rgba(154, 107, 66, .12), rgba(51, 34, 22, .65));
  clip-path: polygon(0 54%, 9% 45%, 18% 58%, 30% 39%, 40% 56%, 52% 34%, 64% 53%, 75% 31%, 88% 48%, 100% 34%, 100% 100%, 0 100%);
  opacity: .78;
}
.grain {
  position: absolute; inset: -50%; z-index: 3; pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  animation: grain-shift .22s steps(2) infinite;
}
.vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(8, 7, 6, .22) 72%, rgba(5, 5, 4, .66));
}
.composition {
  position: absolute; inset: 50% auto auto 50%;
  width: min(100vw, 1440px);
  height: min(76vh, 850px);
  min-height: 480px;
  transform: translate(-50%, -50%);
}
.geometry { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.outer-geometry { transform-origin: 600px 380px; animation: geometry-turn 150s linear infinite; }
.ring-dots { opacity: .67; animation: dots-breathe 7s ease-in-out infinite; }
.orbit-one { transform-origin: 600px 380px; animation: orbit-turn 95s linear infinite; }
.orbit-two { transform-origin: 600px 380px; animation: orbit-turn-reverse 125s linear infinite; }

/* Solar eclipse / corona treatment */
.corona-bloom, .corona-rim, .corona-core, .corona-sweep, .corona-sweep-core {
  transform-box: view-box;
  transform-origin: 600px 380px;
}
.corona-bloom {
  opacity: .56;
  animation: corona-pulse 5.6s ease-in-out infinite, corona-turn 34s linear infinite;
}
.corona-rim {
  opacity: .94;
  animation: corona-rim-pulse 4.8s ease-in-out infinite;
}
.corona-core {
  opacity: .8;
  animation: corona-core-flicker 3.8s ease-in-out infinite;
}
.corona-sweep, .corona-sweep-core {
  animation: corona-orbit 12s linear infinite;
}
.corona-sweep-core {
  animation-duration: 12s;
  animation-direction: reverse;
  opacity: .9;
}
.solar-flare-orbit {
  transform-box: view-box;
  transform-origin: 600px 380px;
  animation: flare-orbit 12s linear infinite;
}
.crosshair { animation: crosshair-breathe 5s ease-in-out infinite; }

.centerpiece {
  position: absolute; left: 50%; top: 50%;
  width: min(76%, 900px);
  transform: translate(-50%, -50%);
  text-align: center; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.pre-title {
  margin: 0 0 clamp(13px, 2vw, 24px);
  color: rgba(233, 218, 193, .86);
  font: 500 clamp(10px, 1.05vw, 14px)/1.5 "Rajdhani", sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: 0;
  animation: reveal-up 1.15s .35s cubic-bezier(.2,.75,.2,1) forwards;
}
.reserved {
  display: flex; justify-content: center; align-items: center;
  width: 100%; margin: 0;
  color: #f4eddf;
  font-family: "Michroma", "Rajdhani", sans-serif;
  font-size: clamp(30px, 6.1vw, 88px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .105em;
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(245, 224, 190, .2), 0 0 65px rgba(235, 197, 139, .16);
}
.letter {
  display: inline-block;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(13px) scale(.97);
  animation: letter-arrive 1.25s cubic-bezier(.16,.72,.18,1) forwards;
}
.letter:nth-child(1) { animation-delay: .62s; }
.letter:nth-child(2) { animation-delay: .72s; }
.letter:nth-child(3) { animation-delay: .82s; }
.letter:nth-child(4) { animation-delay: .92s; }
.letter:nth-child(5) { animation-delay: 1.02s; }
.letter:nth-child(6) { animation-delay: 1.12s; }
.letter:nth-child(7) { animation-delay: 1.22s; }
.letter:nth-child(8) { animation-delay: 1.32s; }

.footer-copy {
  position: absolute;
  z-index: 5;
  left: 20px; right: 20px;
  bottom: clamp(24px, 4.2vh, 46px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  opacity: 0;
  animation: reveal-up 1.1s 1.55s ease forwards;
}
.footer-copy p { margin: 0; }
.footer-linkline {
  color: rgba(239, 226, 205, .82);
  font: 500 clamp(12px, 1.05vw, 14px)/1.5 "Rajdhani", sans-serif;
  letter-spacing: .13em;
}
.footer-linkline a {
  color: #e5c89e;
  text-decoration: none;
  border-bottom: 1px solid rgba(229, 200, 158, .45);
  transition: color .25s ease, border-color .25s ease;
}
.footer-linkline a:hover { color: #fff2dc; border-color: rgba(255, 242, 220, .9); }
.footer-tagline {
  color: rgba(218, 202, 177, .48);
  font: italic 400 clamp(11px, .95vw, 13px)/1.5 "Rajdhani", sans-serif;
  letter-spacing: .045em;
}

@keyframes atmosphere-drift { from { transform: translate3d(-2%, 1%, 0) scale(1); } to { transform: translate3d(2%, -1%, 0) scale(1.08); } }
@keyframes geometry-turn { to { transform: rotate(360deg); } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes orbit-turn-reverse { to { transform: rotate(-360deg); } }
@keyframes corona-turn { to { transform: rotate(360deg); } }
@keyframes corona-orbit { to { transform: rotate(360deg); } }
@keyframes flare-orbit { to { transform: rotate(360deg); } }
@keyframes corona-pulse {
  0%, 100% { opacity: .34; stroke-width: 10; }
  50% { opacity: .62; stroke-width: 15; }
}
@keyframes corona-rim-pulse {
  0%, 100% { opacity: .72; stroke-width: 3.4; }
  48% { opacity: 1; stroke-width: 4.6; }
}
@keyframes corona-core-flicker {
  0%, 100% { opacity: .65; }
  35% { opacity: 1; }
  58% { opacity: .78; }
  72% { opacity: .96; }
}
@keyframes dots-breathe { 0%, 100% { opacity: .48; } 50% { opacity: .82; } }
@keyframes crosshair-breathe { 0%, 100% { opacity: .34; } 50% { opacity: .78; } }
@keyframes reveal-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes letter-arrive { to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }
@keyframes grain-shift { 0% { transform: translate(0,0); } 25% { transform: translate(1%,-1%); } 50% { transform: translate(-1%,1%); } 75% { transform: translate(1%,1%); } }

@media (max-width: 700px) {
  .scene { min-height: 480px; }
  .composition { width: 145vw; height: 66vh; min-height: 410px; }
  .centerpiece { width: 77%; }
  .pre-title { font-size: clamp(8px, 2vw, 11px); letter-spacing: .16em; margin-bottom: 15px; }
  .reserved { font-size: clamp(25px, 7.2vw, 48px); letter-spacing: .065em; }
  .footer-copy { bottom: 22px; gap: 3px; }
  .footer-linkline { font-size: 11px; letter-spacing: .08em; }
  .footer-tagline { font-size: 10px; }
}
@media (max-width: 380px) {
  .composition { width: 158vw; }
  .centerpiece { width: 78%; }
  .pre-title { font-size: 8px; letter-spacing: .12em; }
  .reserved { font-size: 7.1vw; }
  .footer-copy { left: 12px; right: 12px; }
  .footer-linkline { font-size: 10px; }
  .footer-tagline { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .letter, .pre-title, .footer-copy { opacity: 1; filter: none; transform: none; }
}
