/* ==========================================================================
   Halos — "Atmospheric, mysterious, copper-lit"
   Deep midnight palette, gradient hero, breathing halo, narrative sections
   ========================================================================== */

/* Page-level overrides — deep night-sky world */
.page-halos {
  background:
    radial-gradient(circle at 70% 10%, rgba(196, 132, 92, 0.08), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(26, 42, 74, 0.25), transparent 50%),
    #06091a;
}

/* Single-screen layout on the Halos page: header + hero fill the viewport,
   footer sits below and is only reached by intentional scroll. */
body.page-halos {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body.page-halos .site-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
}

body.page-halos .site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--color-white);
}

.page-halos .nav__link--active {
  color: var(--color-copper);
}

/* Site header backdrop on the halos page so the nav stays readable
   over the bright halo aurora behind it. */
.page-halos .site-header {
  position: relative;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(6, 9, 26, 0.85), rgba(6, 9, 26, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Text temperature for sections */
.page-halos .section__marker-number {
  background: linear-gradient(135deg, var(--color-copper) 0%, var(--color-copper-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-halos .section__marker-label {
  color: var(--color-fog);
}

.page-halos .section__title {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--color-white);
}

/* ==========================================================================
   Hero — atmosphere with breathing halo and gradient wordmark
   ========================================================================== */

.halos-hero {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 0;
  padding-top: clamp(3rem, 6vh, 5rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
  overflow: hidden;
}

.halos-hero__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.halos-hero__svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Star twinkle — subtle, the smallest movement */
.halos-hero__stars circle {
  animation: halosStarTwinkle 8s ease-in-out infinite;
}
.halos-hero__stars circle:nth-child(2n) { animation-delay: -2s; animation-duration: 7s; }
.halos-hero__stars circle:nth-child(3n) { animation-delay: -4s; animation-duration: 9s; }
.halos-hero__stars circle:nth-child(5n) { animation-delay: -6s; animation-duration: 11s; }

@keyframes halosStarTwinkle {
  0%, 100% { opacity: var(--star-opacity, 0.4); }
  50%      { opacity: 0.75; }
}

/* The three rings — the halo, breathing */
.halos-hero__ring {
  transform-origin: center;
  animation: halosRingBreath 7s ease-in-out infinite;
  will-change: transform, opacity;
}
.halos-hero__ring--mid   { animation-delay: -2.3s; }
.halos-hero__ring--inner { animation-delay: -4.6s; }

@keyframes halosRingBreath {
  0%, 100% { transform: scale(1);    opacity: var(--ring-opacity, 0.45); }
  50%      { transform: scale(1.04); opacity: 0.85; filter: brightness(1.25); }
}

.halos-hero__core {
  filter: drop-shadow(0 0 16px var(--color-copper));
}

.halos-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1rem, 1.5vh, 1.5rem);
  text-align: center;
  padding-bottom: clamp(2rem, 4vh, 3.5rem);
}

.halos-hero__halo {
  width: clamp(8rem, 18vh, 13rem);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin-bottom: clamp(0.25rem, 1vh, 1rem);
}

.halos-hero__halo svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 24px rgba(196, 132, 92, 0.35));
}

.halos-hero__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-copper);
  opacity: 0.7;
  margin: 0;
}

.halos-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 3rem + 6vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #c4845c 0%, #f0d0b0 45%, #c4845c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 36px rgba(196, 132, 92, 0.4));
  margin: 0;
}

.halos-hero__descriptor {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--color-mist);
  margin: 0;
  max-width: 36rem;
}

.halos-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: clamp(0.75rem, 1.5vh, 1.5rem) 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-fog);
}

.halos-hero__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-copper);
  box-shadow: 0 0 0.85rem var(--color-copper);
  animation: halosStatusPulse 1.6s ease-in-out infinite;
}

@keyframes halosStatusPulse {
  0%, 100% { opacity: 0.7;  transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.18); }
}

/* ==========================================================================
   Reduced motion — turn off the breathing for users who prefer it
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .halos-hero__ring,
  .halos-hero__stars circle,
  .halos-hero__dot {
    animation: none !important;
  }
}
