@font-face {
  font-family: "SASCOSM Instrument";
  src: url("../assets/fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "SASCOSM Matrix";
  src: url("../assets/fonts/MatrixSans-Regular.woff2") format("woff2");
  font-display: swap;
}

.contact-router {
  --contact-display: "SASCOSM Instrument", system-ui, sans-serif;
  --contact-ui: "SASCOSM Matrix", ui-monospace, monospace;
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(34rem, 1.14fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 4rem);
  overflow: clip;
  padding: clamp(6.3rem, 10vh, 8.4rem) clamp(2.2rem, 5.5vw, 6rem) clamp(4.8rem, 8vh, 6rem);
  background:
    radial-gradient(circle at 74% 48%, rgba(121, 232, 255, .07), transparent 28%),
    radial-gradient(circle at 68% 54%, rgba(247, 147, 26, .08), transparent 42%),
    linear-gradient(105deg, rgba(2, 3, 4, .98) 0 37%, rgba(2, 3, 4, .72) 60%, rgba(2, 3, 4, .9));
}

.contact-router::before {
  content: "";
  position: absolute;
  inset: 12% -12% 0 36%;
  z-index: -1;
  opacity: .25;
  background-image:
    linear-gradient(rgba(121, 232, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 232, 255, .08) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 72%);
  mask-image: radial-gradient(circle, #000 0, transparent 72%);
}

.contact-router__copy {
  position: relative;
  z-index: 3;
  max-width: 41rem;
}

.contact-router__eyebrow,
.contact-router__readout > span,
.contact-router__boundary,
.contact-router__core-label,
.contact-route,
.contact-router__continue,
.contact-next__selected span {
  font-family: var(--contact-ui, "SASCOSM Matrix", monospace);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.contact-router__eyebrow {
  margin: 0 0 1rem;
  color: #f7931a;
  font-size: clamp(.68rem, 1vw, .82rem);
}

.contact-router h1 {
  margin: 0;
  max-width: 11ch;
  color: #f4f6fa;
  font: 650 clamp(3.35rem, 5.8vw, 6.5rem)/.84 var(--contact-display);
  letter-spacing: -.065em;
}

.contact-router h1 span {
  color: #aab2c0;
}

.contact-router__intro {
  max-width: 38rem;
  margin: clamp(1.1rem, 2.4vh, 1.8rem) 0 0;
  color: rgba(238, 242, 247, .7);
  font-size: clamp(.96rem, 1.15vw, 1.16rem);
  line-height: 1.6;
}

.contact-router__readout {
  display: grid;
  gap: .32rem;
  margin-top: clamp(1.2rem, 2.5vh, 2rem);
  padding: 1rem 1.1rem;
  border-left: 2px solid #f7931a;
  background: linear-gradient(90deg, rgba(247, 147, 26, .09), transparent 78%);
}

.contact-router__readout > span {
  color: #ffd36a;
  font-size: .64rem;
}

.contact-router__readout strong {
  color: #f4f6fa;
  font: 650 clamp(1rem, 1.4vw, 1.3rem)/1.12 var(--contact-display);
}

.contact-router__readout p {
  max-width: 35rem;
  margin: 0;
  color: rgba(238, 242, 247, .62);
  font-size: .86rem;
  line-height: 1.5;
}

.contact-router__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .72rem;
  margin-top: 1.15rem;
}

.contact-router__actions .primary-action,
.contact-router__actions .secondary-action {
  min-height: 3.15rem;
}

.contact-router__boundary {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 1rem 0 0;
  color: rgba(238, 242, 247, .48);
  font-size: .58rem;
  line-height: 1.5;
}

.contact-router__boundary span {
  width: .48rem;
  height: .48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #79e8ff;
  box-shadow: 0 0 16px rgba(121, 232, 255, .7);
}

.contact-router__instrument {
  position: relative;
  z-index: 2;
  width: min(100%, 48rem);
  aspect-ratio: 1;
  justify-self: center;
}

.contact-router__field {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.contact-router__orbit {
  fill: none;
  stroke: rgba(244, 246, 250, .12);
  stroke-width: 1;
  stroke-dasharray: 2 10;
}

.contact-router__orbit--middle { stroke: rgba(121, 232, 255, .12); stroke-dasharray: 18 12; }
.contact-router__orbit--inner { stroke: rgba(247, 147, 26, .18); stroke-dasharray: 4 8; }

.contact-router__route {
  fill: none;
  stroke: rgba(244, 246, 250, .14);
  stroke-width: 2;
  stroke-dasharray: 5 12;
  transition: stroke .3s ease, stroke-width .3s ease, opacity .3s ease;
}

.contact-router__core-ring {
  fill: rgba(2, 3, 4, .82);
  stroke: rgba(244, 246, 250, .34);
  stroke-width: 1.4;
}

.contact-router__core-ring--inner { fill: rgba(5, 6, 9, .88); stroke: rgba(255, 211, 106, .52); }

.contact-router__gate path,
.contact-router__gate rect {
  fill: none;
  stroke: #f4f6fa;
  stroke-width: 5;
}

.contact-router__gate circle { fill: #f7931a; }
.contact-router__core-label { fill: rgba(244, 246, 250, .66); font-size: 12px; }

.contact-router__packet { opacity: .12; transition: opacity .3s ease; }

.contact-router[data-contact-state="client"] [data-route-path="client"],
.contact-router[data-contact-state="partner"] [data-route-path="partner"],
.contact-router[data-contact-state="investor"] [data-route-path="investor"],
.contact-router[data-contact-state="individual"] [data-route-path="individual"] {
  stroke: url(#route-line);
  stroke-width: 4;
}

.contact-router[data-contact-state="client"] [data-route-packet="client"],
.contact-router[data-contact-state="partner"] [data-route-packet="partner"],
.contact-router[data-contact-state="investor"] [data-route-packet="investor"],
.contact-router[data-contact-state="individual"] [data-route-packet="individual"] { opacity: 1; }

.contact-router__routes {
  position: absolute;
  inset: 0;
}

.contact-route {
  position: absolute;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "number title" "number detail";
  column-gap: .62rem;
  min-width: 10.5rem;
  padding: .76rem .88rem;
  border: 1px solid rgba(244, 246, 250, .16);
  border-radius: 1rem;
  background: rgba(2, 3, 4, .82);
  color: #f4f6fa;
  text-decoration: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 14px 38px rgba(0, 0, 0, .25);
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.contact-route span { grid-area: number; align-self: center; color: #f7931a; font-size: .64rem; }
.contact-route strong { grid-area: title; font-size: .76rem; line-height: 1.1; }
.contact-route em { grid-area: detail; margin-top: .24rem; color: rgba(238, 242, 247, .48); font-size: .5rem; font-style: normal; line-height: 1.25; }
.contact-route--client { top: 14%; left: 4%; }
.contact-route--partner { top: 14%; right: 4%; }
.contact-route--investor { right: 4%; bottom: 14%; }
.contact-route--individual { bottom: 14%; left: 4%; }

.contact-route:is(:hover, :focus-visible, .is-active) {
  border-color: rgba(255, 211, 106, .62);
  background: linear-gradient(135deg, rgba(247, 147, 26, .18), rgba(2, 3, 4, .9));
  box-shadow: 0 0 0 1px rgba(247, 147, 26, .12), 0 0 34px rgba(247, 147, 26, .16);
  transform: translateY(-2px);
}

.contact-route:focus-visible { outline: 2px solid #79e8ff; outline-offset: 3px; }

.contact-router__continue {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 4;
  color: rgba(244, 246, 250, .55);
  font-size: .58rem;
  text-decoration: none;
  transform: translateX(-50%);
}

.contact-next-section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.contact-next {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  border: 1px solid rgba(244, 246, 250, .15);
  border-radius: clamp(1.4rem, 3vw, 2.25rem);
  background:
    radial-gradient(circle at 88% 12%, rgba(121, 232, 255, .13), transparent 25%),
    radial-gradient(circle at 12% 100%, rgba(247, 147, 26, .13), transparent 32%),
    rgba(4, 6, 10, .78);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 32px 80px rgba(0, 0, 0, .3);
}
.contact-next h2 { max-width: 14ch; margin: .35rem 0 0; color: #f4f6fa; font: 650 clamp(2rem, 4vw, 4.25rem)/.92 var(--contact-display); letter-spacing: -.055em; }
.contact-next__lede { max-width: 54rem; margin: 1.25rem 0 0; color: rgba(238, 242, 247, .72); line-height: 1.6; }
.contact-next__selected { display: grid; gap: .2rem; margin-top: 1.5rem; padding: .9rem 1rem; border-left: 2px solid #79e8ff; background: linear-gradient(90deg, rgba(121, 232, 255, .11), transparent 72%); }
.contact-next__selected span { color: #79e8ff; font-size: .58rem; }
.contact-next__selected strong { color: #f4f6fa; font: 600 1rem/1.2 var(--contact-display); }
.contact-next__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.contact-next__steps li { display: grid; grid-template-columns: auto 1fr; gap: .72rem; min-height: 10rem; padding: 1rem; border: 1px solid rgba(244, 246, 250, .12); border-radius: 1rem; background: rgba(2, 3, 5, .54); }
.contact-next__steps span { color: #f7931a; font-family: var(--contact-ui); font-size: .65rem; letter-spacing: .1em; }
.contact-next__steps strong { color: #f4f6fa; font: 600 1.05rem/1.1 var(--contact-display); }
.contact-next__steps p { margin: .45rem 0 0; color: rgba(238, 242, 247, .6); font-size: .83rem; line-height: 1.5; }
.contact-next__actions { display: flex; flex-wrap: wrap; gap: .72rem; margin-top: 1.5rem; }
.contact-next__actions .primary-action, .contact-next__actions .secondary-action { min-height: 3.15rem; }
.contact-next__boundary, .contact-next__noscript { max-width: 54rem; margin: 1.1rem 0 0; color: rgba(238, 242, 247, .5); font-size: .78rem; line-height: 1.5; }

@keyframes contact-orbit-drift { to { transform: rotate(360deg); transform-origin: center; } }
.contact-router__orbit--outer { animation: contact-orbit-drift 48s linear infinite; }
.contact-router__orbit--middle { animation: contact-orbit-drift 34s linear infinite reverse; }

@media (max-width: 1080px) {
  .contact-router {
    grid-template-columns: minmax(0, .92fr) minmax(27rem, 1.08fr);
    padding-inline: clamp(1.4rem, 3.5vw, 3rem);
  }
  .contact-router h1 { font-size: clamp(3.2rem, 6.4vw, 5.4rem); }
  .contact-route { min-width: 8.7rem; padding: .66rem .7rem; }
}

@media (max-width: 820px) {
  .contact-router {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(16rem, 1fr);
    align-content: center;
    gap: .2rem;
    padding: 5.7rem 1.2rem 4.5rem;
  }
  .contact-router__copy { max-width: 42rem; text-align: center; justify-self: center; }
  .contact-router h1 { max-width: 12ch; margin-inline: auto; font-size: clamp(3rem, 9vw, 5rem); }
  .contact-router__intro { max-width: 40rem; }
  .contact-router__readout { max-width: 37rem; margin-inline: auto; text-align: left; }
  .contact-router__actions { justify-content: center; }
  .contact-router__boundary { justify-content: center; }
  .contact-router__instrument { width: min(100%, 31rem); }
  .contact-route { min-width: 8.6rem; }
}

@media (max-width: 560px) {
  .contact-router {
    grid-template-rows: auto auto;
    min-height: 100svh;
    align-content: start;
    gap: .45rem;
    padding: 5.15rem .75rem 4.65rem;
  }
  .contact-router::before { inset: 36% -30% 0; background-size: 2.5rem 2.5rem; }
  .contact-router h1 { font-size: clamp(2.35rem, 11.5vw, 3.25rem); line-height: .86; }
  .contact-router__eyebrow { margin-bottom: .65rem; font-size: .58rem; }
  .contact-router__intro { margin-top: .6rem; font-size: .76rem; line-height: 1.38; }
  .contact-router__readout { gap: .18rem; margin-top: .52rem; padding: .52rem .62rem; }
  .contact-router__readout strong { font-size: .86rem; }
  .contact-router__readout p { font-size: .65rem; line-height: 1.32; }
  .contact-router__actions { margin-top: .52rem; }
  .contact-router__actions .primary-action { min-height: 2.8rem; width: min(18rem, 100%); }
  .contact-router__actions .secondary-action { display: none; }
  .contact-router__boundary { margin-top: .45rem; font-size: .43rem; }
  .contact-router__instrument { width: min(100%, 23rem); height: 17rem; aspect-ratio: auto; }
  .contact-router__field { position: absolute; inset: 0 auto 0 -2.6rem; width: 72%; height: 100%; }
  .contact-router__routes {
    inset: .65rem 0 .65rem 42%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    align-content: stretch;
    gap: .28rem;
  }
  .contact-route {
    position: static;
    min-width: 0;
    align-content: center;
    padding: .48rem .58rem;
    border-radius: .78rem;
  }
  .contact-route em { display: none; }
  .contact-router__continue { bottom: 4.45rem; display: none; }
  .contact-next__steps { grid-template-columns: 1fr; }
  .contact-next__steps li { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-router,
  .contact-router *,
  .contact-router::before,
  .contact-router::after,
  .contact-router *::before,
  .contact-router *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .contact-router__packet animateMotion { display: none; }
}

noscript + .contact-next__noscript { display: block; }
