html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #000000;
}

body {
  min-height: 100vh;
  overflow: hidden;
  padding-bottom: 4.25rem;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, sans-serif;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: rgba(242, 242, 242, 0.78);
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: clamp(0.75rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-align: center;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.loading-screen__text {
  animation: loading-pulse 900ms ease-in-out infinite alternate;
}

body.is-ready .loading-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes loading-pulse {
  from {
    opacity: 0.45;
  }

  to {
    opacity: 1;
  }
}

.site-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  font-family: "Bitcount Prop Single", "Orbitron", system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  transform: translateY(-100%);
}

body.is-ready .site-menu {
  animation: site-menu-intro 680ms cubic-bezier(0.19, 1, 0.22, 1) 3.62s forwards;
}

@keyframes site-menu-intro {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-menu__bar {
  position: relative;
  height: 48px;
  background: #000000;
  border-bottom: 1px solid #ffffff;
  pointer-events: auto;
}

.site-menu__toggle {
  position: absolute;
  top: 50%;
  left: clamp(1rem, calc(50% - 455px), 42vw);
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  margin: 0;
  padding: 0.24rem 0.45rem;
  border: 0;
  background: transparent;
  color: #88d0cf;
  -webkit-text-fill-color: #88d0cf;
  font: inherit;
  font-size: clamp(1.34rem, 2.8vw, 1.86rem);
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
}

.site-menu__toggle:focus-visible {
  outline: 1px solid rgba(136, 208, 207, 0.7);
  outline-offset: 4px;
}

.site-menu__icon {
  display: grid;
  gap: 5px;
  width: 28px;
  transform-origin: center center;
  transition: transform 240ms ease;
}

.site-menu.is-open .site-menu__icon {
  transform: rotate(90deg);
}

.site-menu__icon span {
  display: block;
  width: 100%;
  height: 3px;
  background: #e48200;
  border-radius: 999px;
}

.site-menu__label {
  display: block;
  color: #88d0cf;
  -webkit-text-fill-color: #88d0cf;
  transform: translateY(2px);
}

.site-menu__items {
  position: absolute;
  top: calc(100% + 8px);
  left: clamp(1rem, calc(50% - 455px), 42vw);
  display: grid;
  gap: 2px;
  min-width: min(70vw, 13rem);
  pointer-events: none;
}

.site-menu.is-open .site-menu__items {
  pointer-events: auto;
}

.site-menu__item {
  display: block;
  padding: 0.45rem 0.72rem 0.5rem;
  background: rgba(64, 64, 64, 0.8);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(0.94rem, 1.78vw, 1.16rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.92);
  transform-origin: left center;
  transition:
    opacity 420ms ease,
    transform 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.site-menu__item:visited {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.site-menu.is-open .site-menu__item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-menu.is-open .site-menu__item:nth-of-type(1) {
  transition-delay: 80ms;
}

.site-menu.is-open .site-menu__item:nth-of-type(2) {
  transition-delay: 180ms;
}

.site-menu.is-open .site-menu__item:nth-of-type(3) {
  transition-delay: 330ms;
}

.site-menu.is-open .site-menu__item:nth-of-type(4) {
  transition-delay: 430ms;
}

.site-menu.is-open .site-menu__item:nth-of-type(5) {
  transition-delay: 530ms;
}

.site-menu__item:hover,
.site-menu__item:focus-visible {
  background: rgba(82, 82, 82, 0.86);
  outline: none;
}

.site-menu__separator {
  display: block;
  height: 2px;
  margin: 0.32rem 0;
  background: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

.site-menu.is-open .site-menu__separator {
  opacity: 1;
  transform: scaleX(1);
  transition-delay: 280ms;
}

.content-overlay {
  --overlay-top-gap: calc(2.4rem - 21px);
  --overlay-panel-y: -20px;
  --overlay-footer-gap: 0px;
  position: fixed;
  top: calc(48px + var(--overlay-top-gap));
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(var(--overlay-footer-gap) + env(safe-area-inset-bottom));
  z-index: 850;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.content-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.content-overlay.is-fading-out {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition-duration: 500ms;
}

.content-overlay__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(600px, 100%);
  height: auto;
  max-height: min(calc(100% - 15px), 860px);
  border: 0;
  border-radius: 14px;
  background: rgba(64, 64, 64, 0.6);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.62),
    0 1px 2px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transform: translateY(var(--overlay-panel-y));
}

.content-overlay__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid transparent;
  border-radius: inherit;
  background: linear-gradient(180deg, #88d0cf, #2727d5) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.content-overlay__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  padding: 0.42rem 0.52rem 0.32rem 0.78rem;
  background: #303030;
  border-bottom: 1px solid rgba(136, 208, 207, 0.8);
}

.content-overlay__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #88d0cf;
  -webkit-text-fill-color: #88d0cf;
  font-family: "Bitcount Prop Single", "Orbitron", system-ui, sans-serif;
  font-size: clamp(1.34rem, 2.8vw, 1.86rem);
  font-weight: 500;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  letter-spacing: 0.08em;
  line-height: 1;
  transform: translateY(1px);
}

.content-overlay__title::before {
  content: "";
  width: 0.42em;
  height: 0.42em;
  flex: 0 0 auto;
  align-self: center;
  border-radius: 50%;
  background: #e48200;
  box-shadow: 0 0 8px rgba(228, 130, 0, 0.55);
  transform: translateY(-0.04em);
}

.content-overlay__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #e48200;
  color: #000000;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.content-overlay__close:hover,
.content-overlay__close:focus-visible {
  background: #ff9a15;
  outline: none;
}

.content-overlay__body {
  flex: 0 1 auto;
  min-height: 0;
  padding: 1rem;
  overflow: auto;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(32, 32, 32, 0.6);
  color-scheme: dark;
  scrollbar-color: rgba(228, 130, 0, 0.78) rgba(0, 0, 0, 0.38);
  scrollbar-width: thin;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, sans-serif;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  line-height: 1.55;
}

.content-overlay__body::-webkit-scrollbar {
  width: 9px;
}

.content-overlay__body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.38);
}

.content-overlay__body::-webkit-scrollbar-thumb {
  background: rgba(228, 130, 0, 0.78);
}

.content-overlay__heading {
  margin: 1.15rem 0 0.35rem;
  color: #ffffff;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.content-overlay__heading:first-child {
  margin-top: 0;
}

.content-overlay__paragraph {
  margin: 0 0 1rem;
  font-size: 1em;
  white-space: pre-line;
}

.content-overlay__paragraph.is-strong {
  font-weight: 700;
}

.content-overlay__inline-strong {
  font-weight: 700;
}

.content-overlay__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.4rem 0 1rem;
  border-radius: 6px;
  object-fit: cover;
}

.content-overlay__separator {
  width: 80%;
  height: 1px;
  margin: 2rem auto;
  border: 0;
  background: #999999;
}

.spotify-block {
  margin: 0 0 1rem;
}

.spotify-block__title {
  margin: 0 0 0.38rem;
  color: #88d0cf;
  -webkit-text-fill-color: #88d0cf;
  font-size: 1.02em;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.spotify-block__description {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-line;
}

.spotify-block__embed {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 12px;
}

.news-list__intro {
  margin-bottom: 1rem;
}

.news-item {
  margin: 0;
  text-align: center;
}

.news-item__media {
  display: block;
  width: auto;
  max-width: 90%;
  max-height: 360px;
  margin: 0.55rem auto 0.85rem;
  border-radius: 8px;
  object-fit: contain;
}

.news-item__title {
  margin: 0 0 0.38rem;
  color: #88d0cf;
  -webkit-text-fill-color: #88d0cf;
  font-size: 1.02em;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-item__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  white-space: pre-line;
}

.content-overlay__link {
  color: #88d0cf;
  -webkit-text-fill-color: #88d0cf;
  text-decoration: none;
}

.content-overlay__link:hover,
.content-overlay__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.contact-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.78rem;
}

.contact-form__field {
  display: grid;
  gap: 0.28rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92em;
  font-weight: 600;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c0c0c0;
  border-radius: 5px;
  background: #fefefe;
  color: #101010;
  font: inherit;
  line-height: 1.35;
  padding: 0.55rem 0.62rem;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: 2px solid rgba(136, 208, 207, 0.7);
  outline-offset: 1px;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form__submit {
  justify-self: end;
  min-width: 5.6rem;
  margin: 0.18rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  background: #e48200;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-family: "Bitcount Prop Single", "Orbitron", system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.85vw, 1.28rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.5rem 0.66rem 0.38rem 0.86rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  background: #ff9a15;
  outline: none;
}

.contact-form__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-form__status {
  min-height: 2.4em;
  margin: 0.18rem 0 0;
  font-size: 0.9em;
  line-height: 1.35;
}

.contact-form__status[data-status="success"] {
  color: #88d0cf;
}

.contact-form__status[data-status="error"] {
  color: #ffb37a;
}

.content-overlay[data-overlay-id="contact"] .content-overlay__panel {
  max-height: min(calc(100% - 40px), 820px);
}

.content-overlay[data-overlay-id="contact"] .content-overlay__body {
  flex: 1 1 auto;
}

.contact-success__title {
  margin-top: 0;
}

.contact-success__text {
  font-size: 1.02em;
}

.brand-gradient {
  background: linear-gradient(90deg, orange, gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  font-style: italic;
  font-size: 1rem;
}

.brand-strong {
  color: inherit;
  -webkit-text-fill-color: currentColor;
  font-weight: bold;
  font-style: italic;
  font-size: 1rem;
}

.background {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  overflow: hidden;
}

.background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/background_collage.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto max(100vh, 56.25vw);
  opacity: 0;
  filter: blur(0);
  transform: scale(1);
  transition: filter 80ms ease-out, transform 80ms ease-out;
  will-change: filter, transform;
}

body.is-ready .background::before {
  animation: background-intro 760ms ease-out forwards;
}

.background.is-blurred::before {
  filter: blur(8px);
  transform: scale(1.018);
}

.hero-stage {
  --stage-offset-y: -50px;
  --stage-shift-x: 0px;
  --stage-shift-y: 0px;
  --stage-scale: 1;
  --content-left: 67%;
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: min(78vw, 900px);
  max-width: calc(100vw - 2rem);
  transform:
    translate(
      var(--stage-shift-x),
      calc(var(--stage-offset-y) + var(--stage-shift-y))
    )
    scale(var(--stage-scale));
  transform-origin: center center;
}

.head-shadow {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 2;
  width: 84.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 24%,
    rgba(0, 0, 0, 0.82) 36%,
    rgba(0, 0, 0, 0.56) 50%,
    rgba(0, 0, 0, 0.30) 66%,
    rgba(0, 0, 0, 0.13) 80%,
    rgba(0, 0, 0, 0.04) 92%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: blur(42px);
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body.is-ready .head-shadow {
  animation: radial-intro 760ms ease-out forwards;
}

.splash {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: block;
  width: 173.5%;
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(30deg);
  pointer-events: none;
  user-select: none;
}

body.is-ready .splash {
  animation: splash-intro 680ms ease-out 520ms forwards;
}

.head-wrap {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  max-width: 100%;
  transform: scale(0.18) rotate(0deg);
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
}

body.is-ready .head-wrap {
  animation:
    head-intro 1.62s cubic-bezier(0.65, 0, 1, 0.42) 1.05s forwards,
    head-settle 120ms linear 2.67s forwards,
    head-pump 420ms linear 3.29s forwards;
}

.head-visual {
  position: relative;
  display: block;
  width: 100%;
  opacity: 0;
}

body.is-ready .head-visual {
  animation: head-fade 900ms linear 1.05s forwards;
}

.main-logo,
.main-logo-bright {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  pointer-events: none;
  user-select: none;
}

.main-logo-bright {
  --scan-width: 7%;
  position: absolute;
  inset: 0;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.main-logo-bright.is-scanning-ltr {
  animation: bright-scan-ltr 520ms linear forwards;
}

.main-logo-bright.is-scanning-rtl {
  animation: bright-scan-rtl 520ms linear forwards;
}

.title-logo {
  position: absolute;
  left: var(--content-left);
  top: 85.5%;
  z-index: 4;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(1.65) scaleY(0.38);
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
}

.collision-box {
  position: absolute;
  left: var(--content-left);
  top: 62%;
  z-index: 20;
  width: 98%;
  height: 102%;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body.layout-overflow-x,
body.layout-overflow-y {
  overflow: auto;
}

body.layout-overflow-x .background {
  min-width: var(--layout-min-width, 100vw);
}

body.layout-overflow-y::after {
  content: "";
  display: block;
  height: var(--layout-extra-height, 0px);
}

body.is-ready .title-logo {
  animation: title-pop 360ms ease-out 2.67s both;
}

@keyframes background-intro {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes radial-intro {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0.95;
  }
}

@keyframes splash-intro {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(30deg) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(30deg) scale(1);
  }
}

@keyframes head-fade {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 0.12;
  }

  55% {
    opacity: 0.48;
  }

  78% {
    opacity: 0.78;
  }

  100% {
    opacity: 1;
  }
}

@keyframes head-intro {
  0% {
    transform: scale(0.18) rotate(0deg);
  }

  100% {
    transform: scale(1) rotate(1800deg);
  }
}

@keyframes head-settle {
  0% {
    transform: scale(1) rotate(1800deg);
  }

  38% {
    transform: scale(1.025) rotate(1810deg);
  }

  72% {
    transform: scale(0.995) rotate(1798deg);
  }

  100% {
    transform: scale(1) rotate(1800deg);
  }
}

@keyframes head-pump {
  0% {
    transform: scale(1) rotate(1800deg);
  }

  18% {
    transform: scale(1.05) rotate(1800deg);
  }

  34% {
    transform: scale(1) rotate(1800deg);
  }

  79% {
    transform: scale(1.03) rotate(1800deg);
  }

  100% {
    transform: scale(1) rotate(1800deg);
  }
}

@keyframes bright-scan-ltr {
  0% {
    opacity: 0;
    clip-path: inset(0 calc(100% - var(--scan-width)) 0 0);
  }

  8% {
    opacity: 1;
    clip-path: inset(0 calc(100% - var(--scan-width)) 0 0);
  }

  30% {
    opacity: 1;
    clip-path: inset(0 calc(75% - var(--scan-width)) 0 25%);
  }

  55% {
    opacity: 1;
    clip-path: inset(0 calc(50% - var(--scan-width)) 0 50%);
  }

  80% {
    opacity: 1;
    clip-path: inset(0 calc(25% - var(--scan-width)) 0 75%);
  }

  92% {
    opacity: 1;
    clip-path: inset(0 0 0 calc(100% - var(--scan-width)));
  }

  100% {
    opacity: 0;
    clip-path: inset(0 0 0 calc(100% - var(--scan-width)));
  }
}

@keyframes bright-scan-rtl {
  0% {
    opacity: 0;
    clip-path: inset(0 0 0 calc(100% - var(--scan-width)));
  }

  8% {
    opacity: 1;
    clip-path: inset(0 0 0 calc(100% - var(--scan-width)));
  }

  30% {
    opacity: 1;
    clip-path: inset(0 25% 0 calc(75% - var(--scan-width)));
  }

  55% {
    opacity: 1;
    clip-path: inset(0 50% 0 calc(50% - var(--scan-width)));
  }

  80% {
    opacity: 1;
    clip-path: inset(0 75% 0 calc(25% - var(--scan-width)));
  }

  92% {
    opacity: 1;
    clip-path: inset(0 calc(100% - var(--scan-width)) 0 0);
  }

  100% {
    opacity: 0;
    clip-path: inset(0 calc(100% - var(--scan-width)) 0 0);
  }
}

@keyframes title-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(1.65) scaleY(0.38);
  }

  8% {
    opacity: 1;
  }

  38% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(0.86) scaleY(1.18);
  }

  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1.08) scaleY(0.92);
  }

  76% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(0.97) scaleY(1.04);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1) scaleY(1);
  }
}

.title-logo.is-rubbering {
  opacity: 1;
  animation: title-rubber-soft 320ms ease-out forwards;
}

@keyframes title-rubber-soft {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1) scaleY(1);
  }

  34% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1.11) scaleY(0.88);
  }

  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(0.96) scaleY(1.05);
  }

  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1.025) scaleY(0.98);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1) scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .background::before,
  .head-shadow,
  .splash,
  .head-wrap,
  .head-visual,
  .title-logo {
    opacity: 1;
    animation: none;
  }

  .head-wrap {
    transform: scale(1);
  }

  .title-logo {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 1180px) and (pointer: coarse) {
  .content-overlay {
    --overlay-top-gap: 3.4rem;
    --overlay-panel-y: 0px;
  }
}

@media (max-width: 1180px) and (pointer: coarse) and (orientation: portrait) {
  .content-overlay {
    --overlay-top-gap: 0.45rem;
    --overlay-footer-gap: 2.1rem;
    align-items: flex-start;
    bottom: calc(var(--overlay-footer-gap) + env(safe-area-inset-bottom) - 8px);
  }

  .content-overlay__body {
    font-size: calc(clamp(0.78rem, 1.4vw, 0.95rem) + 2pt);
  }

  .content-overlay__panel {
    max-height: 100%;
  }

  .hero-stage {
    --stage-offset-y: -30px;
    --content-left: 50%;
    width: min(112vw, 560px);
    max-width: none;
  }

  .title-logo {
    left: 50%;
    width: min(100vw, 520px);
    max-width: none;
  }

  .collision-box {
    left: 50%;
  }

  html,
  body {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
  }

  body {
    position: fixed;
    inset: 0;
    padding-bottom: 0;
  }

  .background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
  }

  .site-footer {
    position: fixed;
    bottom: 0;
  }
}

@media (max-width: 640px) and (orientation: portrait) and (pointer: coarse) {
  .hero-stage {
    --stage-offset-y: -20px;
    --content-left: 50%;
    width: 116vw;
    max-width: none;
  }

  .title-logo {
    left: 50%;
    width: 100vw;
    max-width: none;
  }

  .collision-box {
    left: 50%;
  }

  html,
  body {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
  }

  body {
    position: fixed;
    inset: 0;
    padding-bottom: 0;
  }

  .background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
  }

  .site-footer {
    position: fixed;
    bottom: 0;
  }
}

@media (max-width: 1180px) and (pointer: coarse) and (orientation: landscape) {
  html {
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }

  body {
    width: 100%;
    min-width: 100dvw;
    height: auto;
    min-height: 108svh;
    overflow: visible;
    padding-bottom: 0;
    background-image: url("../images/background_collage.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .site-menu,
  .site-menu__bar {
    width: 100vw;
    width: 100dvw;
    min-width: 100vw;
    min-width: 100dvw;
  }

  .site-menu {
    right: auto;
  }

  .background {
    position: relative;
    width: 100vw;
    width: 100dvw;
    height: auto;
    min-height: 108svh;
    align-items: center;
    justify-content: flex-start;
    background-image: url("../images/background_collage.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: visible;
    padding: 2.75rem 0 0.25rem;
    box-sizing: border-box;
  }

  .site-menu__toggle,
  .site-menu__items {
    left: calc(env(safe-area-inset-left) + 1.2rem);
  }

  .background::before {
    background-size: cover;
  }

  .site-footer {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: 2;
    margin-top: auto;
    padding-bottom: 0.55rem;
  }

  body.layout-overflow-y::after {
    display: none;
    height: 0;
  }

  .content-overlay {
    --overlay-top-gap: 0.45rem;
    --overlay-footer-gap: 2.1rem;
    --overlay-panel-y: 0px;
    align-items: flex-start;
    bottom: calc(var(--overlay-footer-gap) + env(safe-area-inset-bottom) - 8px);
  }

  .content-overlay__panel {
    max-height: 100%;
  }
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  pointer-events: auto;
  margin: 0;
  padding: 0.32rem 0.5rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: calc(0.5rem + 1pt);
  line-height: 1.25;
  color: rgba(242, 242, 242, 0.72);
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.site-footer-links {
  --site-footer-links-slot: 56px;
  display: grid;
  grid-template-columns: repeat(4, var(--site-footer-links-slot));
  column-gap: 2px;
  row-gap: 0;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  line-height: 0;
  min-height: var(--site-footer-links-slot);
  overflow: visible;
}

.site-footer-links__link {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  height: var(--site-footer-links-slot);
  min-height: var(--site-footer-links-slot);
  padding: 0;
  line-height: 0;
  border-radius: 4px;
  outline: none;
  overflow: visible;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 34px 34px;
  -webkit-tap-highlight-color: transparent;
}

.site-footer-links__link::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform-origin: center center;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform 0.15s ease,
    -webkit-filter 0.15s ease,
    filter 0.15s ease;
  -webkit-filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.82))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.42));
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.82))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.42));
}

.site-footer-links__link:nth-child(1),
.site-footer-links__link:nth-child(1)::before {
  background-image: url("../icon/i1.png");
}

.site-footer-links__link:nth-child(2),
.site-footer-links__link:nth-child(2)::before {
  background-image: url("../icon/i2.png");
}

.site-footer-links__link:nth-child(3),
.site-footer-links__link:nth-child(3)::before {
  background-image: url("../icon/i3.png");
}

.site-footer-links__link:nth-child(4),
.site-footer-links__link:nth-child(4)::before {
  background-image: url("../icon/i4.png");
}

.site-footer-links__link:hover,
.site-footer-links__link:focus-visible,
.site-footer-links__link:active {
  z-index: 1;
}

.site-footer-links__link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.site-footer-links__icon {
  opacity: 1;
  visibility: visible;
  display: none;
  width: 34px;
  height: 34px;
  object-fit: contain;
  object-position: center;
  background-color: transparent;
  transform-origin: center center;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform 0.15s ease,
    -webkit-filter 0.15s ease,
    filter 0.15s ease;
  -webkit-filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.82))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.42));
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.82))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.42));
}

.site-footer-links__link:focus-visible .site-footer-links__icon,
.site-footer-links__link:focus-visible::before {
  transform: translate3d(0, 0, 0) scale(1.125);
}

@media (hover: hover) {
  .site-footer-links__link:hover .site-footer-links__icon,
  .site-footer-links__link:hover::before {
    transform: translate3d(0, 0, 0) scale(1.125);
  }
}

.site-footer-links__link:active .site-footer-links__icon,
.site-footer-links__link:active::before {
  transform: translate3d(0, 0, 0) scale(1.125);
}

.site-footer__copy {
  margin: 0;
  padding: 0;
  line-height: inherit;
}

.site-footer .js-current-year,
.site-footer__link {
  font-size: inherit;
  line-height: inherit;
  vertical-align: baseline;
  color: inherit;
  text-decoration: none;
}

.site-footer__link {
  position: relative;
  background: linear-gradient(90deg, orange, gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, orange, gold);
  opacity: 0;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  text-decoration: none;
  text-underline-offset: 2px;
  outline: none;
}

.site-footer__link:hover::after,
.site-footer__link:focus-visible::after {
  opacity: 1;
}

@media (max-width: 932px) {
  .site-footer-links {
    --site-footer-links-slot: clamp(48px, 11.5vw, 56px);
    padding-inline: clamp(8px, 3.5vw, 18px);
  }
}

@media (max-width: 1180px) and (pointer: coarse) and (orientation: landscape) {
  .site-footer {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: 2;
    margin-top: auto;
    padding-bottom: 0.55rem;
  }
}
