/* Homepage: Cosmonet's kinetic woven O. */
.cosmo-hero {
  --copy-color: #aaa7bb;
  --copy-size: 18px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 76% 39%, #64327b13, transparent 46%),
    radial-gradient(ellipse at 85% 78%, #2e478817, transparent 43%),
    #090b15;
}
.cosmo-hero-main {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 730px;
  padding-top: 85px;
  padding-bottom: 105px;
}
.cosmo-hero-copy { position: relative; z-index: 2; width: 47%; max-width: 570px; }
/* One persistent background serves loading, animation and fallback states. */
.cosmo-constellations { position: absolute; z-index: 0; inset: 0 0 86px; width: 100%; height: calc(100% - 86px); pointer-events: none; mask-image: linear-gradient(90deg, transparent 32%, #000 64%); }
.cosmo-floor { position: absolute; z-index: 0; inset: 0 0 86px; overflow: hidden; pointer-events: none; mask-image: linear-gradient(180deg, transparent 24%, #000 66%, #000); }
.cosmo-floor picture, .cosmo-floor img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cosmo-floor img { object-fit: fill; }
.cosmo-floor::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #090b15 0%, #090b15fa 31%, #090b15b8 44%, transparent 67%),
    linear-gradient(180deg, #090b15 0%, #090b15 28%, transparent 62%, #090b151a);
}
.cosmo-hero .cosmo-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 31px;
  color: #b5a4c6;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.2px;
  line-height: 1.6;
}
.cosmo-eyebrow::before { content: ''; width: 5px; height: 5px; flex: none; border-radius: 50%; background: #c58df2; box-shadow: 0 0 10px #bb66e933; }
.cosmo-hero h1 { margin: 0; font-size: clamp(62px, 5.9vw, 85px); font-weight: 450; line-height: 1.08; letter-spacing: -.065em; }
.cosmo-hero h1 > span {
  display: block;
  color: #d6bfeb;
  background: linear-gradient(110deg, #f0e6f7 4%, #d8b6ef 56%, #a5baf1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cosmo-hero-description { max-width: 435px; margin-top: 31px; }
.cosmo-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 29px; margin-top: 34px; }
.cosmo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: linear-gradient(110deg, #14101f, #161222) padding-box, var(--brand-action) border-box;
  box-shadow: inset 0 1px 0 #ffffff08, 0 6px 25px #09061140;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.cosmo-cta > span { color: #c8a5e8; font-size: 24px; line-height: 1; }
.cosmo-cta:hover { background: linear-gradient(110deg, #23152c, #1a1d39) padding-box, var(--brand-spectrum) border-box; box-shadow: 0 6px 28px #7d3eb825; transform: translateY(-2px); }
.cosmo-explore { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: #bdb5c9; font-size: 13px; line-height: 1.5; }
.cosmo-explore > span { font-size: 21px; }
.cosmo-explore:hover { color: #fff; }

/* Keep the complete sculpture in view and let its negative space meet the copy. */
.cosmo-scene {
  position: absolute;
  z-index: 1;
  top: 7px;
  bottom: 25px;
  left: 44%;
  right: -6%;
  pointer-events: none;
}
.cosmo-scene::before {
  content: '';
  position: absolute;
  inset: 14% 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #6551ae0c, transparent 66%);
}
.cosmo-scene canvas, .cosmo-scene img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cosmo-scene img { object-fit: contain; opacity: 1; transition: opacity 400ms ease; }
.cosmo-scene canvas { opacity: 0; transition: opacity 400ms ease; }
.scene-ready .cosmo-scene canvas { opacity: 1; }
.scene-ready .cosmo-scene img { opacity: 0; }
.scene-fallback .cosmo-scene canvas { display: none; }
.scene-fallback .cosmo-scene img { opacity: 1; }
.cosmo-service-markers { position: absolute; z-index: 2; inset: 0; opacity: 0; transition: opacity 400ms ease; }
.scene-ready .cosmo-service-markers { opacity: 1; }
.scene-fallback .cosmo-service-markers { opacity: 0; }
.cosmo-service-markers > span { position: absolute; width: max-content; max-width: 106px; color: #baadc9; font-size: 10px; font-weight: 400; letter-spacing: .02em; line-height: 1.4; text-shadow: 0 1px 8px #090b15; transform: translate(-50%, 13px); }
.cosmo-service-markers > span[data-side='left'] { transform: translate(calc(-100% - 12px), -50%); text-align: right; }
.cosmo-service-markers > span[data-side='right'] { transform: translate(12px, -50%); }
.cosmo-scene-notes { display: flex; align-items: center; justify-content: space-between; gap: 22px; position: absolute; z-index: 3; left: 53%; right: 0; bottom: 28px; }
.cosmo-scene-caption { display: flex; align-items: center; gap: 10px; color: #9589a5; font: 9px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1.7px; }
.cosmo-scene-caption::before { content: ''; width: 22px; height: 1px; background: #807095; }
.cosmo-cta:focus-visible, .cosmo-explore:focus-visible { outline: 2px solid #c5a4f4; outline-offset: 5px; }
.cosmo-hero-rail { position: relative; z-index: 3; border-top: 1px solid #ffffff1c; background: #0c0b15; }
.cosmo-hero-rail > .wrap { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); align-items: center; gap: 24px; padding-top: 21px; padding-bottom: 21px; }
.cosmo-rail-label { color: #9f94ae; font-size: 10px; line-height: 1.7; letter-spacing: 1.2px; }
.cosmo-hero-rail a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding-left: 24px; border-left: 1px solid #ffffff20; color: #bdb4c9; font-size: 13px; }
.cosmo-hero-rail a > span { color: #a487bf; font-size: 21px; }
.cosmo-hero-rail a:hover { color: #fff; }

@media (min-width: 1600px) {
  .cosmo-hero-main { min-height: 760px; }
  .cosmo-scene { left: 43%; right: -4%; }
}
@media (max-width: 1200px) {
  .cosmo-hero-main { min-height: 660px; padding-top: 75px; padding-bottom: 95px; }
  .cosmo-hero h1 { font-size: 6.3vw; }
  .cosmo-hero-description { --copy-size: 17px; max-width: 380px; }
  .cosmo-hero-actions { gap: 16px 20px; }
  .cosmo-scene { left: 45%; right: -8%; }
  .cosmo-scene-caption { font-size: 8px; letter-spacing: 1px; }
  .cosmo-hero-rail > .wrap { gap: 18px; }
  .cosmo-hero-rail a { padding-left: 18px; }
}
@media (max-width: 980px) {
  .cosmo-hero-main { min-height: 610px; padding-top: 62px; padding-bottom: 85px; }
  .cosmo-hero-copy { width: 49%; }
  .cosmo-hero h1 { font-size: 6.5vw; }
  .cosmo-hero .cosmo-eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .cosmo-hero-description { --copy-size: 16px; margin-top: 23px; max-width: 340px; }
  .cosmo-hero-actions { flex-direction: column; align-items: flex-start; margin-top: 25px; gap: 8px; }
  .cosmo-scene { left: 45%; right: -11%; }
  .cosmo-scene-notes { left: 58%; bottom: 22px; }
  .cosmo-scene-caption { display: none; }
  .cosmo-hero-rail > .wrap { grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 18px; padding-bottom: 18px; }
  .cosmo-rail-label { display: none; }
  .cosmo-hero-rail a { font-size: 12px; padding-left: 15px; }
  .cosmo-hero-rail a:first-of-type { padding-left: 0; border: 0; }
}
@media (max-width: 700px) {
  .cosmo-constellations { top: 47%; height: 37%; width: 180%; left: -65%; mask-image: linear-gradient(180deg, transparent, #000 15%, #000 90%, transparent); }
  .cosmo-floor { top: 45%; bottom: 162px; mask-image: linear-gradient(180deg, transparent, #000 34%, #000); }
  .cosmo-floor::after { background: linear-gradient(180deg, #090b15 5%, #090b15c9 24%, transparent 65%, #090b1533); }
  .cosmo-hero-main { display: block; min-height: 0; padding-top: 43px; padding-bottom: 0; }
  .cosmo-hero-copy { width: 100%; max-width: 520px; }
  .cosmo-hero .cosmo-eyebrow { margin-bottom: 23px; font-size: 9px; letter-spacing: 1.7px; }
  .cosmo-hero h1 { font-size: clamp(48px, 11vw, 72px); line-height: 1.09; letter-spacing: -.06em; }
  .cosmo-hero-description { --copy-size: 16px; max-width: 450px; margin-top: 24px; }
  .cosmo-hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 19px; margin-top: 26px; }
  .cosmo-cta { min-height: 51px; padding: 12px 17px; font-size: 13px; gap: 23px; }
  .cosmo-explore { font-size: 13px; gap: 10px; }
  .cosmo-scene { position: relative; top: auto; bottom: auto; left: auto; right: auto; width: calc(100% + 40px); height: auto; aspect-ratio: 1.06; margin: 4px -20px 35px; }
  .cosmo-scene-notes { left: 0; right: 0; bottom: 10px; }
  .cosmo-scene-caption { display: flex; font-size: 8px; letter-spacing: 1px; }
  .cosmo-service-markers > span { max-width: 70px; font-size: 9px; text-align: center; }
  .cosmo-service-markers > span[data-side] { transform: translate(-50%, 12px); text-align: center; }
  .cosmo-hero-rail > .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 5px; padding-bottom: 5px; }
  .cosmo-hero-rail a, .cosmo-hero-rail a:first-of-type { min-height: 52px; padding: 11px 0; border-left: 0; border-bottom: 1px solid #ffffff1b; font-size: 14px; }
  .cosmo-hero-rail a:last-of-type { border-bottom: 0; }
}
@media (max-width: 370px) {
  .cosmo-hero h1 { font-size: 44px; }
  .cosmo-hero .cosmo-eyebrow { letter-spacing: 1.3px; }
}
@media (prefers-reduced-motion: reduce) {
  .cosmo-cta, .cosmo-scene canvas, .cosmo-scene img { transition: none; }
}
