/* Axisterian company presentation surfaces. */

html:has(body.home-entry),
body.home-entry {
  background-color: #18171b;
}

.s-header__nav-item--presentation {
  margin-left: 6px;
}

.s-header__nav-link--presentation {
  color: var(--brand-porcelain-bright, #fcf8f5) !important;
  font-size: 0.76rem;
  font-weight: 600;
  text-shadow:
    0 0 8px rgba(158, 143, 255, 0.5),
    0 0 18px rgba(50, 214, 155, 0.2);
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.s-header__nav-link--presentation:hover,
.s-header__nav-link--presentation:focus-visible {
  text-shadow:
    0 0 9px rgba(158, 143, 255, 0.72),
    0 0 22px rgba(50, 214, 155, 0.32);
}

.s-header__nav-link--presentation:focus-visible {
  outline: 1px solid rgba(158, 143, 255, 0.62);
  outline-offset: 6px;
  border-radius: 2px;
}

:is(.page-home, .page-gs, .page-map, .page-ns, .page-engine, .page-open, .page-legal) .s-header__nav-link--presentation {
  font-size: 0.72rem;
}

.s-menu__nav-link--presentation {
  color: var(--brand-porcelain-bright, #fcf8f5) !important;
  font-weight: 600;
  text-shadow:
    0 0 8px rgba(158, 143, 255, 0.46),
    0 0 18px rgba(50, 214, 155, 0.16);
  box-shadow: 0 0 22px rgba(158, 143, 255, 0.05);
}

.s-menu__nav-link--presentation:hover,
.s-menu__nav-link--presentation:focus-visible {
  text-shadow:
    0 0 9px rgba(158, 143, 255, 0.68),
    0 0 22px rgba(50, 214, 155, 0.28);
}

.s-menu__nav-link--presentation:focus-visible {
  outline: 1px solid rgba(158, 143, 255, 0.62);
  outline-offset: 2px;
}

.deck-spotlight {
  position: relative;
  z-index: 3;
  padding: 4px 0 42px;
}

.deck-spotlight__frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: center;
  gap: clamp(30px, 5vw, 74px);
  overflow: hidden;
  padding: clamp(22px, 3.1vw, 44px);
  border: 1px solid rgba(245, 239, 232, 0.11);
  border-radius: 28px;
  background:
    radial-gradient(700px 340px at 7% 0%, rgba(158, 143, 255, 0.085), transparent 68%),
    radial-gradient(560px 360px at 100% 100%, rgba(50, 214, 155, 0.04), transparent 72%),
    linear-gradient(145deg, rgba(38, 35, 43, 0.98), rgba(27, 26, 31, 0.995));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 34px 90px rgba(0, 0, 0, 0.24);
}

.deck-spotlight__frame::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, #9e8fff, #32d69b 52%, #ff8ca5);
  box-shadow: 0 0 22px rgba(158, 143, 255, 0.2);
}

.deck-spotlight__figure {
  min-width: 0;
  margin: 0;
}

.deck-spotlight__visual {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(245, 239, 232, 0.13);
  border-radius: 18px;
  background: #050a13;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 68px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.deck-spotlight__visual:hover,
.deck-spotlight__visual:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(158, 143, 255, 0.34);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 28px 76px rgba(0, 0, 0, 0.45),
    0 0 34px rgba(158, 143, 255, 0.08);
}

.deck-spotlight__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.deck-spotlight__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(2, 6, 13, 0.2));
}

.deck-spotlight__index {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 7px 9px;
  border: 1px solid rgba(245, 239, 232, 0.14);
  border-radius: 999px;
  color: rgba(245, 239, 232, 0.74);
  background: rgba(24, 23, 27, 0.76);
  backdrop-filter: blur(12px);
  font: 500 0.62rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
}

.deck-spotlight__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: rgba(245, 239, 232, 0.48);
  font: 500 0.66rem/1.5 "IBM Plex Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.deck-spotlight__copy {
  min-width: 0;
}

.deck-spotlight__eyebrow {
  margin: 0;
  color: rgba(183, 172, 255, 0.82);
  font: 600 0.72rem/1.4 "IBM Plex Mono", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.deck-spotlight__title {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(252, 248, 245, 0.98);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.3rem, 4.2vw, 4.9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.deck-spotlight__title span {
  color: #b1a5ff;
  text-shadow: 0 0 28px rgba(158, 143, 255, 0.12);
}

.deck-spotlight__text {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(245, 239, 232, 0.7);
  font-size: 1rem;
  line-height: 1.68;
}

.deck-spotlight__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 24px 0 0;
  padding: 0;
  color: rgba(245, 239, 232, 0.58);
  list-style: none;
  font: 500 0.68rem/1.4 "IBM Plex Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.deck-spotlight__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.deck-spotlight__meta li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #32d69b;
  box-shadow: 0 0 8px rgba(50, 214, 155, 0.42);
}

.deck-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.deck-spotlight__actions .a-button {
  min-height: 50px;
}

.home-footer__link--presentation {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(188, 178, 255, 0.72);
}

.home-footer__link--presentation::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #32d69b;
  box-shadow: 0 0 8px rgba(50, 214, 155, 0.46);
}

.mobile-deck {
  display: none;
}

@media (min-width: 1281px) and (max-width: 1320px) {
  :is(.page-home, .page-gs, .page-map, .page-ns, .page-engine, .page-open, .page-legal) .s-header__nav-link--presentation {
    font-size: 0.62rem;
  }
}

@media (max-width: 1280px) {
  .s-header__wrap,
  .page-home .s-header__wrap {
    grid-template-columns: auto 1fr;
  }

  .s-header__nav,
  .s-header__button,
  .page-home .s-header__nav,
  .page-home .s-header__button {
    display: none;
  }

  .s-header__toggle,
  .page-home .s-header__toggle {
    display: block;
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .mobile-deck {
    position: relative;
    z-index: 4;
    display: block;
    margin-top: 0;
    padding: clamp(76px, 12svh, 112px) 0 40px;
  }

  .mobile-deck__intro {
    max-width: 560px;
    margin: 0 auto 24px;
    text-align: center;
  }

  .mobile-deck__intro span {
    display: block;
    color: rgba(183, 172, 255, 0.78);
    font: 600 0.62rem/1.4 "IBM Plex Mono", monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .mobile-deck__intro h2 {
    margin: 10px auto 0;
    color: rgba(252, 248, 245, 0.98);
    font: 600 clamp(2.05rem, 10vw, 3rem)/0.96 "Manrope", sans-serif;
    letter-spacing: -0.06em;
    text-wrap: balance;
  }

  .mobile-deck__card {
    position: relative;
    display: grid;
    gap: 20px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(245, 239, 232, 0.13);
    border-radius: 26px;
    color: rgba(252, 248, 245, 0.96);
    text-decoration: none;
    background:
      radial-gradient(360px 220px at 8% 0%, rgba(158, 143, 255, 0.14), transparent 68%),
      radial-gradient(320px 220px at 100% 100%, rgba(50, 214, 155, 0.07), transparent 72%),
      linear-gradient(155deg, rgba(39, 36, 45, 0.99), rgba(23, 22, 27, 0.995));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 28px 72px rgba(0, 0, 0, 0.28);
  }

  .mobile-deck__card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(180deg, #9e8fff, #32d69b 56%, #ff8ca5);
    box-shadow: 0 0 24px rgba(158, 143, 255, 0.24);
  }

  .mobile-deck__visual {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(245, 239, 232, 0.13);
    border-radius: 17px;
    background: #050a13;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
  }

  .mobile-deck__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-deck__count {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 7px 9px;
    border: 1px solid rgba(245, 239, 232, 0.14);
    border-radius: 999px;
    color: rgba(245, 239, 232, 0.78);
    background: rgba(18, 18, 24, 0.78);
    backdrop-filter: blur(12px);
    font: 500 0.58rem/1 "IBM Plex Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-deck__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 5px 6px;
  }

  .mobile-deck__eyebrow {
    color: rgba(183, 172, 255, 0.86);
    font: 600 0.63rem/1.4 "IBM Plex Mono", monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .mobile-deck__copy strong {
    max-width: 14ch;
    margin-top: 12px;
    font: 600 clamp(1.78rem, 8.6vw, 2.45rem)/0.98 "Manrope", sans-serif;
    letter-spacing: -0.055em;
    text-wrap: balance;
  }

  .mobile-deck__copy > span:not(.mobile-deck__eyebrow, .mobile-deck__action) {
    margin-top: 14px;
    color: rgba(245, 239, 232, 0.62);
    font-size: 0.88rem;
    line-height: 1.56;
  }

  .mobile-deck__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    padding: 0 17px;
    border-radius: 16px;
    color: #17161b;
    background: rgba(252, 248, 245, 0.96);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .mobile-deck__action i {
    font-size: 1.15rem;
    font-style: normal;
  }

  .deck-spotlight {
    display: none;
  }

  .deck-spotlight {
    padding-bottom: 28px;
  }

  .deck-spotlight__frame {
    grid-template-columns: 1fr;
    gap: 30px;
    border-radius: 22px;
  }

  .deck-spotlight__copy {
    text-align: center;
  }

  .deck-spotlight__title,
  .deck-spotlight__text {
    margin-left: auto;
    margin-right: auto;
  }

  .deck-spotlight__meta,
  .deck-spotlight__actions {
    justify-content: center;
  }

  .deck-spotlight__caption {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .deck-spotlight__frame {
    padding: 18px;
  }

  .deck-spotlight__title {
    font-size: clamp(2.15rem, 12vw, 3.25rem);
  }

  .deck-spotlight__actions {
    flex-direction: column;
  }

  .deck-spotlight__actions .a-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-header__nav-link--presentation,
  .deck-spotlight__visual {
    transition: none;
  }
}
