.back-logo {
  --size: min(90vw, 600px);
  --orbit-duration-outer: 6s;
  --orbit-duration-inner: 4s;
  --core-duration: 8s;
  --star-duration: 7s;

  --motion-ease: ease-in-out;

  position: relative;
  width: var(--size);
  aspect-ratio: 2 / 1;
  margin: 3rem auto;
  opacity: .75;
  pointer-events: none;
  user-select: none;

  .orbit,
  .orbit-inner,
  .core,
  .star {
    will-change: transform, opacity;
  }

  .orbit {
    position: absolute;
    inset: 10% 0%;
    border: clamp(.2rem, 1vw, .75rem) solid var(--surface-accent-soft);
    border-radius: 50%;
    transform: rotate(-21deg);
    animation: orbitFloatOuter var(--orbit-duration-outer) ease-in-out infinite alternate;
    transform-origin: center;
  }

  .orbit-inner {
    inset: 20% 10%;
    transform: rotate(21deg);
    animation: orbitFloatInner var(--orbit-duration-inner) ease-in-out infinite alternate;
    transform-origin: center;
  }

  .core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: .21rem solid var(--surface-accent-soft);
    border-radius: 50%;
    background: radial-gradient(circle,
        var(--surface-accent-soft),
        transparent 70%);
    box-shadow: var(--border-shadow);
    animation: corePulse var(--core-duration) var(--motion-ease) infinite;
    transform-origin: center;

    img {
      display: block;
      width: 88%;
      height: 88%;
      object-fit: contain;
    }
  }

  .star {
    position: absolute;
    top: 15%;
    right: 20%;
    color: var(--foreground-accent);
    font-size: clamp(1.25rem, 4vw, 2.5rem);
    text-shadow: 0 0 1.2rem var(--foreground-accent);
    animation: starTwinkle var(--star-duration) var(--motion-ease) infinite;
    transform-origin: center;
  }
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--foreground-accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .21em;
  text-transform: uppercase;
  user-select: none;
}

.fixed-cta {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  top: 0;
  min-height: 2.5rem;
  right: 2.5rem;
  padding: .15rem 1rem;
  font-size: .9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--foreground-light);
  background: rgb(var(--c-dark));
  border: .21rem solid var(--border-accent);
  border-top: 0;
  box-shadow: var(--border-accent);
  border-radius: 0 0 .75rem .75rem;
  transition: .2s;
  z-index: 10;

  &:hover {
    min-height: 3.5rem;
    color: var(--foreground-dark);
    background: rgb(var(--c-accent));
  }
}

.btn {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .15rem 1rem;
  border: .1rem solid transparent;
  border-radius: .75rem;
  font-size: .9rem;
  font-weight: 700;
  transition: .2s;
  user-select: none;

  &:hover {
    transform: translateY(-2px);
  }

  &.btn-gold {
    color: var(--foreground-dark);
    background: var(--surface-accent);
    box-shadow: var(--border-shadow);
  }

  &.btn-outline {
    font-size: .65rem;
    text-transform: uppercase;
    color: var(--foreground-light);
    border-color: var(--border-accent);
    background: var(--surface-dark);

    &:hover {
      color: var(--foreground-dark);
      background: var(--surface-accent);
      border-color: var(--border-accent);
    }
  }
}

.social-links {
  display: flex;
  gap: .5rem;
  font-size: 1.5rem;

  a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    color: var(--foreground-muted);
    background: var(--surface-glass);
    box-shadow: var(--border-shadow);
    border: .15rem solid var(--border-light);
    border-radius: .5rem;
    transition: .25s;
    aspect-ratio: 1 / 1;

    &::after {
      position: absolute;
      top: calc(100% + .65rem);
      left: 50%;
      z-index: 20;
      width: max-content;
      max-width: 12rem;
      padding: .45rem .65rem;
      color: var(--foreground-light);
      background: var(--border-dark-deep);
      border: .1rem solid var(--border-accent);
      border-radius: .35rem;
      box-shadow: var(--border-shadow);
      font-size: .75rem;
      line-height: 1.2;
      text-align: center;
      content: attr(aria-label);
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, -.25rem);
      transition: opacity .2s, transform .2s;
    }

    &:hover,
    &:focus-visible {
      color: var(--foreground-light);
      background: var(--surface-accent-soft);
      border-color: var(--border-accent);

      &::after {
        opacity: 1;
        transform: translate(-50%, 0);
      }
    }

    i {
      color: inherit;
    }
  }
}

.card {
  --card-height: 320px;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: var(--card-height);
  height: 100%;
  padding: 0;
  text-align: left;
  background: linear-gradient(145deg, var(--border-light), transparent 34%, transparent 68%, var(--border-dark)), var(--border-dark-deep);
  border: .1rem solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: inset 0 .15rem 0 var(--border-light), var(--border-shadow);
  overflow: hidden;
  cursor: default;
  user-select: none;
  transition: all .25s;

  &[type="button"] {
    --card-height: auto;
    min-height: 100%;
    cursor: pointer;
  }

  &:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, var(--border-accent), transparent 34%, transparent 68%, var(--border-accent)), var(--border-dark-deep);
    border-color: var(--border-accent);
    box-shadow: inset 0 .15rem 0 var(--border-accent), var(--border-shadow);

    .card-content {
      background: var(--surface-dark);
    }
  }

  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: var(--surface-accent-soft);
    z-index: 1;

    .card-icon {
      --icon-size: 4rem;
      display: grid;
      place-items: center;
      width: var(--icon-size);
      height: var(--icon-size);
      color: var(--foreground-accent);
      font-size: 2rem;
      aspect-ratio: 1/1;
    }

    .card-text {
      display: inline-block;
      padding: .25rem .75rem;
      font-family: var(--font-accent);
      color: var(--foreground-light);
      font-size: 1.2rem;
      text-transform: uppercase;
      font-weight: bold;
      font-style: italic;
      letter-spacing: .21em;

      &.accent {
        font-family: var(--font-body);
        color: var(--foreground-accent);
        font-size: .68rem;
        text-transform: uppercase;
      }
    }
  }

  .card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    width: 100%;
    min-height: var(--card-height);
    max-height: var(--card-height);

    .card-name {
      width: 100%;
      margin: 0;
      padding: 1rem 1.2rem .5rem;
      font-family: var(--font-display);
      font-size: 1.2rem;
      font-weight: 800;
      z-index: 1;
    }

    .card-description {
      max-width: 100%;
      min-height: 7em;
      margin: 0;
      padding: 1rem;
      color: var(--foreground-muted);
      font-size: .85rem;
      line-height: 1.5;
      z-index: 1;
    }

    .card-video {
      display: block;
      width: 100%;
      height: 100%;
      aspect-ratio: 16 / 9;
      object-fit: contain;
      background: var(--surface-dark);
    }

    .card-text {
      width: 100%;
      height: 100%;
      padding: 1rem 1.2rem;
      overflow-y: auto;
      color: var(--foreground-muted);
      font-size: .9rem;
      line-height: 1.7;
      white-space: pre-line;

      p:first-child {
        margin-top: 0;
      }

      p:last-child {
        margin-bottom: 0;
      }
    }
  }

  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 4rem;
    gap: .5rem;
    margin: 0;
    margin-top: auto;
    padding: 1rem 1.5rem;
    border-top: .1rem solid var(--border-light);
    z-index: 1;

    .card-text {
      font-size: .85rem;
      font-weight: 700;

      &.accent {
        color: var(--foreground-accent);
      }
    }

    .card-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 2rem;
      min-height: 2rem;
      font-size: 1.5rem;
      color: var(--foreground-accent);
      transition: color .2s, transform .2s;

      &:hover {
        color: var(--foreground-light);
        transform: translateY(-2px);
      }
    }
  }
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
}

@keyframes orbitFloatOuter {
  from {
    transform: rotate(-18deg);
  }

  to {
    transform: rotate(-24deg);
  }
}

@keyframes orbitFloatInner {
  from {
    transform: rotate(18deg);
  }

  to {
    transform: rotate(24deg);
  }
}

@keyframes corePulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: .88;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

@keyframes starTwinkle {

  0%,
  100% {
    transform: scale(1);
    opacity: .7;
  }

  50% {
    transform: scale(1.21);
    opacity: 1;
  }
}

@media(min-width:600px) {

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media(min-width:960px) {

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;

    &.col-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

@media (hover: none) {

  .fixed-cta {
    right: 0;
    width: 100%;
    border-radius: 0;
    border-right: 0;
    border-left: 0;

    &:hover {
      min-height: 2.5rem;
      color: var(--foreground-light);
      background: rgb(var(--c-dark));
    }
  }

  .card {
    &:hover {
      transform: none;
      background: linear-gradient(145deg, var(--border-light), transparent 34%, transparent 68%, var(--border-dark)), var(--border-dark-deep);
      border-color: var(--border-light);
      box-shadow: inset 0 .15rem 0 var(--border-light), var(--border-shadow);
    }
  }
}