@font-face {
  font-family: "Morgan Strike";
  src: url("assets/fonts/morgan-strike-demo.regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f6f8f1;
  --muted: rgba(246, 248, 241, 0.72);
  --edge: rgba(255, 255, 255, 0.28);
  --edge-strong: rgba(129, 240, 255, 0.58);
  --glass: rgba(4, 8, 10, 0.38);
  --glass-link: rgba(7, 12, 14, 0.48);
  --glass-link-hover: rgba(83, 231, 210, 0.48);
  --accent: #69f5de;
  --warning: #ff766f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #020405;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.background-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.12) contrast(1.02) brightness(1.08);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.13), rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0.16)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08) 72%);
}

.page-shell {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(24px, 6vh, 58px);
  padding: clamp(18px, 4vw, 46px);
}

.site-header {
  width: min(1080px, 100%);
  display: flex;
  justify-content: center;
  padding-top: clamp(6px, 1.8vh, 18px);
  text-align: center;
}

h1 {
  width: min(900px, 100%);
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  display: grid;
  gap: clamp(34px, 4.6vw, 64px);
  justify-items: center;
  font-family: "Morgan Strike", Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(42px, 9vw, 115px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.75),
    0 0 32px rgba(105, 245, 222, 0.34),
    0 18px 80px rgba(0, 0, 0, 0.72);
}

.title-line {
  display: block;
  width: 100%;
  text-align: center;
}

.link-modal {
  width: min(620px, 100%);
  align-self: start;
  justify-self: center;
  display: grid;
  gap: clamp(10px, 2vw, 14px);
  padding: clamp(14px, 3.4vw, 22px);
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(7px);
  font-family: "Morgan Strike", Impact, Haettenschweiler, "Arial Black", sans-serif;
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal-link {
  width: 100%;
  min-width: 0;
  min-height: clamp(58px, 10svh, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(14px, 3.2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: var(--glass-link);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.modal-link:hover,
.modal-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--edge-strong);
  background: var(--glass-link-hover);
  outline: none;
}

.modal-link span {
  min-width: 0;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.modal-link small {
  color: var(--muted);
  font-size: clamp(13px, 3vw, 17px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.sound-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(4, 8, 10, 0.46);
  backdrop-filter: blur(8px);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  border-color: var(--edge-strong);
  outline: none;
}

.sound-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-icon path:first-child {
  fill: rgba(246, 248, 241, 0.9);
  stroke: none;
}

.sound-wave {
  opacity: 0;
}

.sound-toggle.is-on .sound-wave {
  opacity: 1;
}

@media (min-width: 760px) {
  .background-video {
    object-fit: fill;
  }
}

@media (max-width: 560px) {
  .page-shell {
    grid-template-rows: min-content 1fr;
    gap: 22px;
    padding: 18px 14px 76px;
  }

  .site-header {
    align-items: center;
    min-height: 24svh;
    padding-top: 0;
  }

  h1 {
    gap: 19px;
    font-size: clamp(34px, 15.2vw, 57px);
    line-height: 1;
  }

  .link-modal {
    width: min(100%, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    align-self: center;
    justify-self: center;
    margin-inline: auto;
    padding: 13px;
  }

  .modal-link {
    min-height: 68px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    padding: 12px 14px;
  }

  .modal-link span {
    width: 100%;
    font-size: clamp(18px, 5.5vw, 22px);
    line-height: 1.25;
    white-space: normal;
  }

  .modal-link small {
    font-size: clamp(12px, 3.4vw, 15px);
    line-height: 1.1;
  }

  .sound-toggle {
    right: max(14px, env(safe-area-inset-right));
    left: auto;
    width: 48px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 38px;
  }

  .modal-link {
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
