.faceted-button,
.faceted-link {
  position: relative;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.85rem 1.55rem;
  border: 1px solid var(--line-bright);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  font-weight: 760;
  letter-spacing: 0.01em;
  text-decoration: none;
  isolation: isolate;
  transition: transform 240ms var(--ease-royal), box-shadow 240ms ease, filter 240ms ease;
}

.faceted-button::before,
.faceted-link::before {
  position: absolute;
  z-index: -1;
  inset: -30% -55%;
  background: linear-gradient(108deg, transparent 38%, rgba(255, 255, 255, 0.68) 49%, transparent 60%);
  content: "";
  transform: translateX(-64%);
  transition: transform 720ms var(--ease-royal);
}

.faceted-button:hover,
.faceted-button:focus-visible,
.faceted-link:hover,
.faceted-link:focus-visible {
  transform: translateY(-4px);
}

.faceted-button:focus-visible,
.faceted-link:focus-visible,
.image-portal:focus-visible,
.future-portal:focus-visible {
  outline-offset: -5px;
}

.faceted-button:hover::before,
.faceted-button:focus-visible::before,
.faceted-link:hover::before,
.faceted-link:focus-visible::before {
  transform: translateX(64%);
}

.faceted-button-gold {
  color: var(--night-950);
  background: linear-gradient(120deg, #fff9dc, var(--solar-300) 35%, #e89f38 68%, #fff2b5);
  box-shadow: 0 18px 50px rgba(244, 196, 92, 0.28), inset 0 1px white;
}

.faceted-button-glass {
  color: var(--opal-100);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(7, 11, 34, 0.52));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px) saturate(150%);
}

.faceted-link {
  gap: 0.8rem;
  margin-top: 1.4rem;
  color: var(--ink-900);
  background: var(--opal-metal);
}

.faceted-link-light {
  color: var(--night-950);
}

.faceted-link span {
  font-size: 1.2rem;
  transition: transform 220ms ease;
}

.faceted-link:hover span,
.faceted-link:focus-visible span {
  transform: translate(3px, -3px);
}

.status-mark {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.35rem 0.75rem 0.35rem 1rem;
  border: 1px solid currentColor;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status-established {
  color: #57f2da;
  background: rgba(35, 201, 149, 0.1);
}

.status-working {
  color: var(--solar-300);
  background: rgba(244, 196, 92, 0.1);
}

.status-future {
  color: #d3b6ff;
  background: rgba(169, 109, 255, 0.12);
}

.status-open {
  color: #ff9ebd;
  background: rgba(255, 79, 134, 0.1);
}

.status-art {
  color: #9eefff;
  background: rgba(33, 217, 212, 0.1);
}

.sovereign-orbit {
  position: relative;
  min-height: 690px;
  margin-top: clamp(4rem, 8vw, 8rem);
  border: 1px solid rgba(134, 255, 242, 0.16);
  clip-path: polygon(var(--facet-large) 0, 100% 0, 100% calc(100% - var(--facet-large)), calc(100% - var(--facet-large)) 100%, 0 100%, 0 var(--facet-large));
  background:
    conic-gradient(from 90deg at 50% 50%, rgba(33, 217, 212, 0.08), rgba(169, 109, 255, 0.08), rgba(255, 79, 134, 0.08), rgba(244, 196, 92, 0.08), rgba(33, 217, 212, 0.08)),
    rgba(6, 9, 25, 0.78);
  box-shadow: var(--royal-shadow);
}

.sovereign-orbit::before,
.sovereign-orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.sovereign-orbit::before {
  width: min(560px, 78%);
  aspect-ratio: 1;
}

.sovereign-orbit::after {
  width: min(380px, 54%);
  aspect-ratio: 1;
  border-color: rgba(255, 232, 170, 0.2);
}

.orbit-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 210px;
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  padding: 1.5rem;
  color: var(--night-950);
  background: var(--opal-metal);
  clip-path: polygon(50% 0, 88% 16%, 100% 55%, 72% 94%, 28% 94%, 0 55%, 12% 16%);
  box-shadow: 0 0 80px rgba(134, 255, 242, 0.38);
  text-align: center;
  transform: translate(-50%, -50%);
}

.orbit-core span {
  font-family: var(--display);
  font-size: 4.1rem;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.orbit-core small {
  max-width: 125px;
  margin-top: 0.6rem;
  font-weight: 690;
  line-height: 1.2;
}

.orbit-facet {
  position: absolute;
  z-index: 4;
  min-width: 116px;
  min-height: 54px;
  padding: 0.65rem 1rem;
  color: var(--opal-100);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(8, 11, 29, 0.84));
  border: 1px solid var(--line-dark);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font-weight: 740;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.orbit-facet:hover,
.orbit-facet:focus-visible,
.orbit-facet.is-active {
  color: var(--night-950);
  background: var(--opal-metal);
  transform: translateY(-3px);
}

.facet-body { top: 11%; left: 50%; transform: translateX(-50%); }
.facet-story { top: 31%; right: 8%; }
.facet-data { right: 15%; bottom: 19%; }
.facet-memory { bottom: 14%; left: 16%; }
.facet-permission { top: 32%; left: 7%; }

.facet-body:hover,
.facet-body:focus-visible,
.facet-body.is-active {
  transform: translateX(-50%) translateY(-3px);
}

.orbit-reading {
  position: absolute;
  z-index: 4;
  right: 2.2rem;
  bottom: 1.8rem;
  max-width: 340px;
  margin: 0;
  color: rgba(248, 247, 242, 0.72);
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
  text-align: right;
}

.image-portal {
  position: relative;
  display: flex;
  min-height: 560px;
  overflow: hidden;
  align-items: flex-end;
  color: var(--opal-100);
  background: var(--night-900);
  border: 1px solid var(--line-bright);
  clip-path: polygon(var(--facet-medium) 0, 100% 0, 100% calc(100% - var(--facet-medium)), calc(100% - var(--facet-medium)) 100%, 0 100%, 0 var(--facet-medium));
  box-shadow: var(--royal-shadow);
  text-decoration: none;
  isolation: isolate;
  transition: transform 420ms var(--ease-royal), box-shadow 420ms ease;
}

.image-portal img {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(110%) contrast(105%);
  transition: transform 1.1s var(--ease-royal), filter 700ms ease;
}

.portal-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 3, 10, 0.98) 0%, rgba(4, 7, 20, 0.6) 48%, rgba(4, 7, 20, 0.05) 80%), linear-gradient(115deg, rgba(8, 11, 29, 0.5), transparent 60%);
}

.image-portal::after,
.future-portal::after,
.space-panel::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: inherit;
  content: "";
  pointer-events: none;
}

.image-portal:hover,
.image-portal:focus-visible {
  transform: translateY(-9px);
  box-shadow: 0 48px 130px rgba(0, 0, 0, 0.66);
}

.image-portal:hover img,
.image-portal:focus-visible img {
  filter: saturate(126%) contrast(108%);
  transform: scale(1.055);
}

.portal-copy {
  display: grid;
  gap: 0.45rem;
  padding: clamp(2rem, 5vw, 4rem);
}

.portal-copy strong {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.portal-copy small {
  color: rgba(248, 247, 242, 0.74);
  font-size: 1rem;
}

.future-portal {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.4rem);
  color: var(--opal-100);
  border: 1px solid var(--line-dark);
  clip-path: polygon(var(--facet-medium) 0, 100% 0, 100% calc(100% - var(--facet-medium)), calc(100% - var(--facet-medium)) 100%, 0 100%, 0 var(--facet-medium));
  box-shadow: var(--royal-shadow);
  text-decoration: none;
  transition: filter 300ms ease, transform 300ms var(--ease-royal);
}

.future-portal:hover,
.future-portal:focus-visible {
  filter: brightness(1.08) drop-shadow(0 30px 46px rgba(0, 0, 0, 0.45));
  transform: translateY(-8px);
}

.future-violet {
  background: linear-gradient(145deg, #2d1457, #090b22 68%, #101c3e);
}

.future-opal {
  color: var(--ink-900);
  background: linear-gradient(145deg, #f5f5ed, #bde9e7 52%, #d9c6f4);
}

.future-portal h3 {
  max-width: 480px;
  margin-top: 8rem;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
}

.future-portal p {
  max-width: 580px;
  opacity: 0.74;
}

.portal-gem {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 120px;
  aspect-ratio: 1;
  background: var(--opal-metal);
  clip-path: polygon(48% 0, 84% 14%, 100% 54%, 70% 100%, 22% 87%, 0 43%, 16% 11%);
  box-shadow: 0 0 50px rgba(134, 255, 242, 0.28);
}

.future-violet .portal-gem::after {
  position: absolute;
  inset: 10px;
  background: linear-gradient(145deg, #361b66, #080a20);
  clip-path: inherit;
  content: "";
}

.future-opal .status-mark {
  color: #6a3aad;
  background: rgba(169, 109, 255, 0.08);
}

.track-portal {
  position: relative;
  display: grid;
  min-height: 680px;
  align-items: end;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--opal-100);
  background: var(--black-pearl);
  border: 1px solid var(--line-dark);
  clip-path: polygon(var(--facet-medium) 0, 100% 0, 100% calc(100% - var(--facet-medium)), calc(100% - var(--facet-medium)) 100%, 0 100%, 0 var(--facet-medium));
  box-shadow: var(--royal-shadow);
}

.track-portal::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.1) 50%, transparent 58%);
  content: "";
  transform: translateX(-70%);
  transition: transform 900ms var(--ease-royal);
}

.track-portal:hover::before {
  transform: translateX(70%);
}

.track-birth { background: linear-gradient(150deg, #0a2642, #151448 54%, #421c5f); }
.track-repair { background: linear-gradient(150deg, #341227, #611b42 48%, #17102d); }
.track-embodied { background: linear-gradient(150deg, #092632, #0d5661 44%, #24183e); }

.track-portal h3 {
  font-size: clamp(2.15rem, 3.4vw, 3.7rem);
}

.track-portal p {
  color: rgba(248, 247, 242, 0.74);
}

.phone-vessel {
  position: relative;
  display: grid;
  width: min(210px, 72%);
  aspect-ratio: 9 / 18.5;
  place-items: center;
  justify-self: center;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #050611, #24284e);
  border: 2px solid rgba(255, 238, 187, 0.56);
  border-radius: 36px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 7px rgba(0, 0, 0, 0.38);
}

.phone-vessel::before {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 62px;
  height: 18px;
  background: #02030a;
  border-radius: 999px;
  content: "";
  transform: translateX(-50%);
}

.phone-vessel span {
  position: relative;
  z-index: 2;
  color: transparent;
  background: var(--opal-metal);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--display);
  font-size: 5.6rem;
  letter-spacing: -0.08em;
}

.phone-light {
  position: absolute;
  inset: 9%;
  background:
    conic-gradient(from 70deg, rgba(33, 217, 212, 0.8), rgba(169, 109, 255, 0.85), rgba(255, 79, 134, 0.8), rgba(244, 196, 92, 0.8), rgba(33, 217, 212, 0.8));
  border-radius: 28px;
  filter: blur(22px);
  opacity: 0.62;
}

.evidence-prism {
  position: relative;
  width: min(390px, 80vw);
  aspect-ratio: 1;
  justify-self: center;
  background: conic-gradient(from 25deg, var(--lagoon-500), var(--orchid-500), var(--hibiscus-500), var(--solar-500), var(--lagoon-500));
  clip-path: polygon(50% 0, 88% 18%, 100% 58%, 72% 100%, 25% 90%, 0 47%, 17% 12%);
  filter: drop-shadow(0 0 45px rgba(134, 255, 242, 0.32)) drop-shadow(0 35px 60px rgba(0, 0, 0, 0.5));
}

.evidence-prism::before {
  position: absolute;
  inset: 8px;
  background: var(--black-pearl);
  clip-path: inherit;
  content: "";
}

.evidence-prism span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--opal-100), transparent);
  transform-origin: left;
}

.evidence-prism span:nth-child(1) { transform: rotate(0deg); }
.evidence-prism span:nth-child(2) { transform: rotate(72deg); }
.evidence-prism span:nth-child(3) { transform: rotate(144deg); }
.evidence-prism span:nth-child(4) { transform: rotate(216deg); }

.status-constellation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2rem 0 0.5rem;
}

@media (max-width: 760px) {
  .faceted-button,
  .faceted-link {
    width: 100%;
  }

  .sovereign-orbit {
    display: grid;
    min-height: auto;
    gap: 0.7rem;
    padding: 2rem 1.2rem;
  }

  .sovereign-orbit::before,
  .sovereign-orbit::after {
    display: none;
  }

  .orbit-core {
    position: relative;
    top: auto;
    left: auto;
    width: 180px;
    margin: 0 auto 1.2rem;
    transform: none;
  }

  .orbit-facet {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .facet-body {
    transform: none;
  }

  .facet-body:hover,
  .facet-body:focus-visible,
  .facet-body.is-active {
    transform: translateY(-3px);
  }

  .orbit-reading {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin-top: 1rem;
    text-align: left;
  }

  .image-portal {
    min-height: 500px;
  }

  .portal-copy strong {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .future-portal {
    min-height: 350px;
  }

  .track-portal {
    min-height: 620px;
  }
}
