:root {
  --blue: #1600b8;
  --deep-blue: #09004c;
  --ink: #101912;
  --lime: #bcf53c;
  --paper: #fffdf4;
  --pink: #f59bff;
  --sky: #d9edff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: clip;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Figtree", sans-serif;
}

.sound-toggle {
  position: fixed;
  z-index: 10;
  top: clamp(.85rem, 2vw, 1.5rem);
  right: clamp(.85rem, 2vw, 1.5rem);
  display: grid;
  width: clamp(2.75rem, 4vw, 3.25rem);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.sound-toggle:hover {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.sound-toggle:focus-visible {
  outline: 4px solid var(--lime);
  outline-offset: 3px;
}

.sound-toggle svg {
  width: 56%;
  overflow: visible;
  fill: currentcolor;
}

.sound-toggle__waves,
.sound-toggle__slash {
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sound-toggle__slash {
  opacity: 0;
}

.sound-toggle[data-state="muted"] .sound-toggle__waves,
.sound-toggle[data-state="stopped"] .sound-toggle__waves {
  opacity: 0;
}

.sound-toggle[data-state="muted"] .sound-toggle__slash,
.sound-toggle[data-state="stopped"] .sound-toggle__slash {
  opacity: 1;
}

.ahti-world {
  position: relative;
  isolation: isolate;
  display: grid;
  height: 70svh;
  max-height: 70svh;
  place-items: center;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 48%, rgb(103 63 255 / 75%), transparent 37%),
    linear-gradient(135deg, #0c0093 0%, var(--blue) 50%, #1d008e 100%);
  font-family: "Kalam", cursive;
}

.ahti-world::before {
  position: absolute;
  z-index: 0;
  inset: -25%;
  background: radial-gradient(circle, rgb(245 155 255 / 14%), transparent 58%);
  content: "";
  animation: flicker 4s steps(1) infinite;
}

.ahti-world__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ahti-world__trail {
  position: absolute;
  z-index: 1;
  inset: 0;
  filter: drop-shadow(0 0 .42rem rgb(245 155 255 / 62%));
  pointer-events: none;
}

.ahti-world__echo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(90vw, 67rem);
  justify-items: center;
  color: transparent;
  font-family: "Kalam", cursive;
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 700;
  line-height: .66;
  letter-spacing: -.075em;
  white-space: nowrap;
  -webkit-text-stroke: clamp(1px, .16vw, 3px) rgb(245 155 255 / 76%);
  animation: mirror-sweep 4s linear infinite;
  will-change: transform;
}

.ahti-world__echo span:nth-child(2) {
  margin-top: .2em;
}

.ahti-world__wordmark {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(90vw, 67rem);
  justify-items: center;
  color: var(--paper);
  font-family: "Kalam", cursive;
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 700;
  line-height: .66;
  letter-spacing: -.075em;
  text-align: center;
  filter: drop-shadow(.025em .035em 0 var(--deep-blue));
  animation: wordmark-in 850ms cubic-bezier(.18, .8, .2, 1) both;
}

.ahti-world__line {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ahti-world__line:nth-child(2) {
  margin-top: .2em;
}

.ahti-world__globe {
  flex: 0 0 auto;
  width: .88em;
  height: .88em;
  margin: 0 -.035em;
  overflow: visible;
  filter: drop-shadow(.02em .03em 0 var(--deep-blue));
  transform-origin: center;
  animation: globe-turn 13s linear 850ms infinite;
  will-change: transform;
}

.ahti-world__texture {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    repeating-linear-gradient(to bottom, transparent 0 3px, rgb(255 255 255 / 22%) 4px, transparent 5px),
    linear-gradient(90deg, rgb(255 0 115 / 10%), rgb(0 190 255 / 8%));
  opacity: .22;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.manifesto {
  display: grid;
  height: 15svh;
  place-items: center;
  padding-inline: clamp(1.25rem, 5vw, 5rem);
  border-block: 2px solid var(--ink);
  background: var(--paper);
  text-align: center;
}

.manifesto p {
  margin: 0;
  font-size: clamp(.8rem, 1.4vw, 1.15rem);
  font-weight: 900;
  letter-spacing: .16em;
}

.products {
  padding-inline: clamp(1.25rem, 5vw, 5rem);
}

.product {
  display: grid;
  min-height: clamp(8rem, 16vw, 13rem);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 2rem);
  border-bottom: 2px solid var(--ink);
  color: inherit;
  text-decoration: none;
}

a.product {
  transition: background-color 160ms ease;
}

a.product:hover {
  background: rgb(188 245 60 / 18%);
}

a.product:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: -6px;
}

.product__mark {
  display: grid;
  width: clamp(4.5rem, 9vw, 7rem);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
}

.product__mark--pink {
  background: var(--pink);
}

.product__mark--blue {
  background: var(--sky);
}

.product__mark img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.product__copy {
  display: grid;
  gap: .5rem;
  min-width: 0;
}

.product__copy strong {
  font-size: clamp(2.5rem, 7.4vw, 6.8rem);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.065em;
}

.product:nth-child(2) .product__copy strong {
  font-size: clamp(2rem, 5.6vw, 5.5rem);
}

.product__copy small,
.product__status {
  font-size: clamp(.68rem, 1vw, .8rem);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.product__arrow {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.product__status {
  color: #62665f;
}

.product:last-child {
  border-bottom: 0;
}

.site-footer {
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 5vw, 5rem);
  border-top: 2px solid var(--ink);
  color: #62665f;
  background: var(--paper);
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem 1.5rem;
  margin: 0;
  font-size: clamp(.72rem, 1vw, .84rem);
  font-weight: 600;
  line-height: 1.4;
}

.footer-company {
  border-radius: 2px;
  text-decoration: none;
  cursor: help;
}

.footer-company__full,
.footer-location__reveal {
  display: none;
}

.footer-company:is(:hover, :focus-visible) .footer-company__short {
  display: none;
}

.footer-company:is(:hover, :focus-visible) .footer-company__full {
  display: inline;
}

.footer-location {
  border-radius: 2px;
  color: inherit;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.footer-location:is(:hover, :focus-visible) .footer-location__default {
  display: none;
}

.footer-location:is(:hover, :focus-visible) .footer-location__reveal {
  display: inline;
}

.footer-company:focus-visible,
.footer-location:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

@keyframes mirror-sweep {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(
      calc(0px - var(--depth)),
      calc(0px - var(--depth))
    ) scale(var(--scale));
  }

  25% {
    transform: translate(-50%, -50%) translate(
      var(--depth),
      calc(0px - var(--depth))
    ) scale(var(--scale));
  }

  50% {
    transform: translate(-50%, -50%) translate(
      var(--depth),
      var(--depth)
    ) scale(var(--scale));
  }

  75% {
    transform: translate(-50%, -50%) translate(
      calc(0px - var(--depth)),
      var(--depth)
    ) scale(var(--scale));
  }
}

@keyframes wordmark-in {
  from {
    opacity: 0;
    transform: scale(.88) translateY(4vh);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes globe-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: .9;
  }

  7% {
    opacity: .72;
  }

  8% {
    opacity: 1;
  }

  54% {
    opacity: .84;
  }
}

@media (max-width: 520px) {
  .ahti-world__wordmark,
  .ahti-world__echo {
    width: 94vw;
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .ahti-world__trail {
    filter: drop-shadow(0 0 .3rem rgb(245 155 255 / 58%));
  }

  .products {
    padding-inline: .75rem;
  }

  .product {
    min-height: 8.75rem;
    gap: .9rem;
    padding-inline: .6rem;
  }

  .product__mark {
    width: 4rem;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .product__copy strong {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .product:nth-child(2) .product__copy strong {
    font-size: clamp(1.7rem, 8.5vw, 3rem);
  }

  .product__arrow {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ahti-world *,
  .ahti-world::before,
  a.product,
  .sound-toggle {
    animation: none !important;
    transition: none !important;
  }
}
