/*
  Author: Yogabrata Mukhopadhyay
  Organization: Brahmexa
  Copyright: Copyright (c) 2026 Brahmexa. All rights reserved.

  Home landing: a living 3D solar system. The cream page begins after this sky.
*/
.ym-home-page main {
  background: transparent;
}
.ym-home-page .ym-paramguru-orb {
  z-index: 12;
}

.ym-home-cosmos {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  color: #fffef8;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 48%, rgba(180, 83, 9, 0.16), transparent 52%),
    radial-gradient(ellipse 50% 40% at 18% 80%, rgba(14, 116, 144, 0.12), transparent 58%),
    #050a12;
}
.ym-home-cosmos__field,
.ym-home-cosmos__field picture,
.ym-home-cosmos__field img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ym-home-cosmos__field {
  z-index: 0;
  opacity: 0.7;
  filter: saturate(0.92) brightness(0.74);
}
.ym-home-cosmos__field img {
  max-width: none;
  object-position: 62% 34%;
}
.ym-home-cosmos__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.78) 0%, rgba(5, 10, 18, 0.22) 16%, rgba(5, 10, 18, 0.02) 46%, rgba(5, 10, 18, 0.16) 100%);
}
.ym-home-cosmos__stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ym-home-cosmos__milky {
  position: absolute;
  left: 8%;
  right: 4%;
  top: 18%;
  height: 58%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 8%, rgba(246, 239, 226, 0.07) 38%, rgba(228, 197, 106, 0.08) 52%, rgba(125, 211, 252, 0.05) 68%, transparent 92%);
  filter: blur(18px);
  transform: rotate(-18deg);
  animation: ym_milky_drift 28s ease-in-out infinite;
}
.ym-home-cosmos__comet {
  position: absolute;
  z-index: 3;
  height: 2px;
  pointer-events: none;
  border-radius: 2px;
  opacity: 0;
  filter: blur(0.2px);
}
.ym-home-cosmos__comet--a {
  width: 170px;
  background: linear-gradient(90deg, transparent, rgba(246, 239, 226, 0.15) 40%, #fffef8 82%, #e4c56a);
  animation: ym_comet_a 18s linear infinite;
}
.ym-home-cosmos__comet--b {
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.2) 45%, #fffef8 86%);
  animation: ym_comet_b 24s linear infinite;
  animation-delay: 7s;
}
.ym-home-cosmos__comet--c {
  width: 90px;
  background: linear-gradient(90deg, transparent, rgba(228, 197, 106, 0.25) 50%, #fff6c8);
  animation: ym_comet_c 21s linear infinite;
  animation-delay: 13s;
}

.ym-home-cosmos__stage {
  position: relative;
  z-index: 4;
  min-height: calc(100vh - var(--header-h));
  padding: 0;
  max-width: none;
  margin: 0;
}

.ym-home-cosmos__copy {
  position: absolute;
  left: 0.45rem;
  top: 6.4rem;
  width: min(19.5rem, 22vw);
  z-index: 6;
  padding: 0.4rem 0.4rem 0.8rem 0;
}
.ym-home-cosmos__copy .kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--gold-soft);
  margin: 0 0 0.55rem;
  font-weight: 700;
}
.ym-home-cosmos__copy h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.05rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 0.55rem;
  color: #fffef8;
  text-wrap: balance;
}
.ym-home-cosmos__copy .eyebrow {
  color: #f0d48a;
  font-size: 1.05rem;
  margin: 0 0 0.7rem;
}
.ym-home-cosmos__copy .lede {
  color: #f6efe2;
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0 0 0.9rem;
}
.ym-home-cosmos__copy .ym-home-cosmos__entity {
  color: rgba(246, 239, 226, 0.86);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.15rem;
}
.ym-home-cosmos__copy .btn-row {
  margin-top: 0.2rem;
}
.ym-home-cosmos .btn-ghost {
  color: #fffef8 !important;
  border-color: #fffef8;
  background: rgba(11, 28, 44, 0.35);
}
.ym-home-cosmos__whisper {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(228, 197, 106, 0.78);
}

.ym-home-cosmos__sky {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
}

.ym-universe {
  position: relative;
  width: min(112vh, 96vw);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  overflow: visible;
}

.ym-universe__core {
  position: absolute;
  inset: 8%;
  transform-style: preserve-3d;
  overflow: visible;
}

.ym-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--ym-r) * 1%);
  height: calc(var(--ym-r) * 0.48%);
  margin-left: calc(var(--ym-r) * -0.5%);
  margin-top: calc(var(--ym-r) * -0.24%);
  pointer-events: none;
}
.ym-orbit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(228, 197, 106, 0.48);
  box-shadow:
    0 0 22px rgba(228, 197, 106, 0.12),
    inset 0 0 22px rgba(125, 211, 252, 0.08);
  background: radial-gradient(ellipse at 50% 50%, transparent 62%, rgba(228, 197, 106, 0.06) 100%);
}
.ym-orbit--jupiter .ym-orbit__ring,
.ym-orbit--saturn .ym-orbit__ring {
  border-color: rgba(228, 197, 106, 0.58);
}
.ym-asteroid-belt,
.ym-kuiper-belt {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
}
.ym-asteroid-belt {
  width: 68%;
  height: calc(68% * 0.48);
  margin-left: -34%;
  margin-top: calc(68% * -0.24);
  border: 1.5px dotted rgba(212, 180, 120, 0.42);
  box-shadow: inset 0 0 18px rgba(228, 197, 106, 0.08);
  animation: ym_belt_spin 160s linear infinite;
}
.ym-kuiper-belt {
  width: 122%;
  height: calc(122% * 0.48);
  margin-left: -61%;
  margin-top: calc(122% * -0.24);
  border: 1px dotted rgba(186, 230, 253, 0.18);
  animation: ym_belt_spin 240s linear infinite reverse;
}

.ym-planet {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--ym-globe-size);
  height: var(--ym-globe-size);
  offset-path: ellipse(50% 50% at 50% 50%);
  offset-rotate: 0deg;
  offset-anchor: center;
  animation: ym_planet_travel var(--ym-dur) linear infinite;
  animation-delay: calc(var(--ym-dur) * var(--ym-phase) / -360);
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 6;
}
.ym-planet .ym-globe {
  --ym-globe-size: inherit;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.ym-planet:hover .ym-globe,
.ym-planet:focus-visible .ym-globe {
  transform: scale(1.18);
  filter: brightness(1.12) saturate(1.15);
}
.ym-planet:focus-visible {
  outline: none;
}
.ym-planet:focus-visible .ym-globe {
  box-shadow:
    inset -14px -10px 22px rgba(0, 0, 0, 0.38),
    0 0 0 3px #fffef8,
    0 0 22px rgba(228, 197, 106, 0.7);
}

.ym-sat,
.ym-sat--b,
.ym-sat--c {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #efe8d6;
  box-shadow: 0 0 6px rgba(246, 239, 226, 0.7);
  offset-path: ellipse(170% 115% at 50% 50%);
  offset-rotate: 0deg;
  animation: ym_sat_travel 5.6s linear infinite;
  pointer-events: none;
  z-index: 3;
}
.ym-orbit--earth .ym-sat {
  width: 11px;
  height: 11px;
  background: #d5d0c4;
  offset-path: ellipse(175% 120% at 50% 50%);
  animation-duration: 6.4s;
}
.ym-orbit--mars .ym-sat {
  width: 4px;
  height: 4px;
  background: #c4a484;
  animation-duration: 3.2s;
}
.ym-orbit--mars .ym-sat--b {
  offset-path: ellipse(220% 150% at 50% 50%);
  animation-duration: 4.8s;
  animation-direction: reverse;
}
.ym-orbit--jupiter .ym-sat {
  width: 8px;
  height: 8px;
  background: #f0d09a;
  animation-duration: 4.4s;
}
.ym-orbit--jupiter .ym-sat--b {
  width: 6px;
  height: 6px;
  background: #e0b06a;
  offset-path: ellipse(210% 145% at 50% 50%);
  animation-duration: 6.8s;
  animation-direction: reverse;
}
.ym-orbit--jupiter .ym-sat--c {
  width: 5px;
  height: 5px;
  background: #f6dfb4;
  offset-path: ellipse(250% 170% at 50% 50%);
  animation-duration: 8.6s;
}
.ym-orbit--saturn .ym-sat {
  width: 6px;
  height: 6px;
  background: #f4ebd0;
  animation-duration: 7.2s;
}
.ym-orbit--neptune .ym-sat {
  width: 5px;
  height: 5px;
  background: #bfdbfe;
  animation-duration: 8s;
}

.ym-planet-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: calc(100% - 0.08rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  text-align: center;
  min-width: 6.6rem;
  max-width: 11.4rem;
  padding: 0.22rem 0.62rem 0.28rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fffef8;
  background: rgba(7, 14, 24, 0.88);
  border: 1px solid rgba(228, 197, 106, 0.7);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(5, 10, 18, 0.55), 0 0 0 1px rgba(255, 254, 248, 0.08);
  opacity: 1;
  pointer-events: none;
  white-space: nowrap;
}
.ym-planet-label small {
  display: block;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0d48a;
  margin-top: 0.08rem;
}
.ym-orbit--jupiter .ym-planet-label,
.ym-orbit--pluto .ym-planet-label,
.ym-orbit--earth .ym-planet-label,
.ym-orbit--neptune .ym-planet-label,
.ym-orbit--venus .ym-planet-label {
  white-space: normal;
}
.ym-orbit--saturn .ym-planet-label,
.ym-orbit--uranus .ym-planet-label {
  top: calc(100% + 0.7rem);
}
.ym-planet:hover .ym-planet-label,
.ym-planet:focus-visible .ym-planet-label {
  border-color: #fffef8;
  background: rgba(7, 14, 24, 0.96);
}

.ym-sun {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 16;
  width: clamp(8.4rem, 16vw, 13.5rem);
  height: clamp(8.4rem, 16vw, 13.5rem);
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: inherit;
  display: grid;
  place-items: center;
}
.ym-sun__halo,
.ym-sun__flare {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ym-sun__halo {
  inset: -28%;
  background:
    radial-gradient(circle, rgba(255, 246, 200, 0.55) 0 18%, rgba(245, 158, 11, 0.28) 38%, rgba(180, 83, 9, 0.08) 58%, transparent 72%);
  animation: ym_sun_pulse 4.8s ease-in-out infinite;
}
.ym-sun__flare {
  inset: -8%;
  background: conic-gradient(from 0deg, rgba(255, 246, 200, 0.0), rgba(255, 246, 200, 0.35), rgba(245, 158, 11, 0.0) 28%, rgba(255, 246, 200, 0.22), transparent 62%, rgba(245, 158, 11, 0.28), transparent 88%);
  animation: ym_sun_spin 22s linear infinite;
  mix-blend-mode: screen;
}
.ym-sun .ym-globe {
  --ym-globe-size: 100%;
  z-index: 2;
  width: 100%;
  height: 100%;
  box-shadow:
    inset -12px -10px 18px rgba(80, 20, 0, 0.28),
    0 0 0 3px rgba(255, 246, 200, 0.55),
    0 0 28px rgba(245, 158, 11, 0.7),
    0 0 64px rgba(180, 83, 9, 0.45);
}
.ym-sun .ym-globe--art img {
  object-position: 40% 22%;
}
.ym-sun-label {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 6%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  padding: 0.22rem 0.7rem 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(7, 14, 24, 0.82);
  border: 1px solid rgba(228, 197, 106, 0.7);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(5, 10, 18, 0.5);
  white-space: nowrap;
}
.ym-sun-label small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
  color: #fffef8;
}
.ym-universe-doors {
  display: none;
}
.ym-sun:focus-visible {
  outline: none;
}
.ym-sun:focus-visible .ym-globe {
  box-shadow:
    0 0 0 3px #fffef8,
    0 0 36px rgba(245, 158, 11, 0.85);
}

.ym-orbit:hover .ym-orbit__ring,
.ym-orbit:focus-within .ym-orbit__ring {
  border-color: rgba(228, 197, 106, 0.7);
}
.ym-orbit:hover .ym-planet,
.ym-orbit:focus-within .ym-planet {
  animation-play-state: paused;
}
.ym-orbit:hover .ym-sat,
.ym-orbit:focus-within .ym-sat,
.ym-orbit:hover .ym-sat--b,
.ym-orbit:focus-within .ym-sat--b,
.ym-orbit:hover .ym-sat--c,
.ym-orbit:focus-within .ym-sat--c {
  animation-play-state: paused;
}

.ym-home-page .ym-cal-home {
  position: relative;
  z-index: 5;
}
.ym-home-page .section,
.ym-home-page .section-tight {
  background: var(--bg);
  color: var(--ink);
  position: relative;
  z-index: 5;
}
.ym-home-page .section h2,
.ym-home-page .section-tight h2,
.ym-home-page .section .lede,
.ym-home-page .section-tight .lede {
  color: var(--ink);
}
.ym-home-cosmos + .ym-cal-home {
  box-shadow: 0 -40px 60px rgba(7, 14, 24, 0.28);
}

@keyframes ym_planet_travel {
  0% { offset-distance: 0%; transform: scale(0.9); z-index: 8; }
  25% { offset-distance: 25%; transform: scale(1.12); z-index: 24; }
  50% { offset-distance: 50%; transform: scale(0.9); z-index: 8; }
  75% { offset-distance: 75%; transform: scale(0.72); z-index: 4; }
  100% { offset-distance: 100%; transform: scale(0.9); z-index: 8; }
}
@keyframes ym_sat_travel {
  to { offset-distance: 100%; }
}
@keyframes ym_belt_spin {
  to { transform: rotate(360deg); }
}
@keyframes ym_sun_pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes ym_sun_spin {
  to { transform: rotate(360deg); }
}
@keyframes ym_milky_drift {
  0%, 100% { opacity: 0.55; transform: rotate(-18deg) translateY(0); }
  50% { opacity: 0.9; transform: rotate(-16deg) translateY(-10px); }
}
@keyframes ym_comet_a {
  0% { opacity: 0; transform: translate3d(92vw, 6vh, 0) rotate(-32deg); }
  6% { opacity: 0.85; }
  16% { opacity: 0; transform: translate3d(12vw, 46vh, 0) rotate(-32deg); }
  100% { opacity: 0; transform: translate3d(12vw, 46vh, 0) rotate(-32deg); }
}
@keyframes ym_comet_b {
  0% { opacity: 0; transform: translate3d(8vw, 18vh, 0) rotate(24deg); }
  8% { opacity: 0.55; }
  18% { opacity: 0; transform: translate3d(78vw, 58vh, 0) rotate(24deg); }
  100% { opacity: 0; transform: translate3d(78vw, 58vh, 0) rotate(24deg); }
}
@keyframes ym_comet_c {
  0% { opacity: 0; transform: translate3d(70vw, 72vh, 0) rotate(-18deg); }
  7% { opacity: 0.7; }
  15% { opacity: 0; transform: translate3d(18vw, 12vh, 0) rotate(-18deg); }
  100% { opacity: 0; transform: translate3d(18vw, 12vh, 0) rotate(-18deg); }
}

@media (hover: none) {
  .ym-planet-label { opacity: 1; }
}

@media (max-width: 980px) {
  .ym-home-cosmos,
  .ym-home-cosmos__stage {
    min-height: 0;
  }
  .ym-home-cosmos__copy {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    max-width: 40rem;
    margin: 0;
    padding: 4.8rem 1rem 0.6rem;
    text-align: left;
  }
  .ym-home-cosmos__sky {
    position: relative;
    inset: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.6rem 1.2rem;
  }
  .ym-universe {
    width: min(96vw, 920px);
  }
  .ym-home-cosmos__copy h1 { font-size: clamp(1.85rem, 7vw, 2.6rem); }
  .ym-sun {
    width: clamp(4.2rem, 18vw, 7rem);
    height: clamp(4.2rem, 18vw, 7rem);
  }
  .ym-planet {
    width: 2.6rem;
    height: 2.6rem;
  }
  .ym-planet .ym-globe {
    --ym-globe-size: 9px;
    width: 9px;
    height: 9px;
    box-shadow: 0 0 8px rgba(246, 239, 226, 0.55);
  }
  .ym-orbit--venus .ym-globe,
  .ym-orbit--earth .ym-globe { --ym-globe-size: 10px; width: 10px; height: 10px; }
  .ym-orbit--jupiter .ym-globe { --ym-globe-size: 13px; width: 13px; height: 13px; }
  .ym-orbit--saturn .ym-globe { --ym-globe-size: 12px; width: 12px; height: 12px; }
  .ym-orbit--pluto .ym-globe,
  .ym-orbit--mercury .ym-globe { --ym-globe-size: 7px; width: 7px; height: 7px; }
  .ym-planet .ym-globe__ring,
  .ym-sat,
  .ym-sat--b,
  .ym-sat--c {
    display: none;
  }
  .ym-planet-label {
    opacity: 0;
    min-width: 0;
    max-width: 7.4rem;
    font-size: 0.62rem;
    padding: 0.12rem 0.4rem;
  }
  .ym-planet:focus-visible .ym-planet-label,
  .ym-orbit:focus-within .ym-planet-label {
    opacity: 1;
  }
  .ym-universe-doors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 32rem;
    margin: 0.6rem auto 0;
  }
  .ym-universe-doors a {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.35rem 0.7rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(228, 197, 106, 0.45);
    background: rgba(7, 14, 24, 0.72);
    color: #fffef8;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
  }
  .ym-universe-doors a small {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f0d48a;
    font-weight: 600;
  }
}

@media (max-width: 700px) {
  .ym-universe {
    width: min(94vw, 420px);
  }
  .ym-sun {
    width: clamp(3.8rem, 22vw, 5.4rem);
    height: clamp(3.8rem, 22vw, 5.4rem);
  }
  .ym-sun-label {
    font-size: 0.58rem;
    padding: 0.12rem 0.4rem 0.16rem;
    white-space: normal;
    max-width: 8.4rem;
  }
  .ym-universe-doors {
    max-width: 26rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ym-planet,
  .ym-sat,
  .ym-sat--b,
  .ym-sat--c,
  .ym-asteroid-belt,
  .ym-kuiper-belt,
  .ym-sun__halo,
  .ym-sun__flare,
  .ym-home-cosmos__milky,
  .ym-home-cosmos__comet {
    animation: none !important;
  }
  .ym-planet {
    offset-distance: calc(var(--ym-phase) * 0.27778%);
    transform: none;
  }
  .ym-planet-label { opacity: 1; }
}
