@font-face {
  font-family: "NimNom Sans";
  src: url("noto-sans-jp-thin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

:root {
  --blush: #fde9ea;
  --orange: #e9521e;
  --burgundy: #a83d4e;
  --sage: #c6cdad;
  --edge: clamp(1.25rem, 4vw, 4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--blush);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--blush);
  color: var(--burgundy);
  font-family: "NimNom Sans", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  font-weight: 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.splash {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
}

.hero {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: clamp(2rem, 5vh, 4.5rem) var(--edge);
}

.hero__content {
  display: grid;
  justify-items: center;
  width: min(100%, 32rem);
}

.hero__logo {
  display: block;
  width: min(84vw, 26rem, 52vh);
  height: auto;
  user-select: none;
  animation: enter 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__identity {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin-top: clamp(1.25rem, 3vh, 2rem);
  text-align: center;
  animation: enter 900ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__studio {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 100;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.hero__email {
  color: inherit;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 100;
  letter-spacing: 0.035em;
  line-height: 1.4;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: text-decoration-color 180ms ease;
}

.hero__email:hover,
.hero__email:focus-visible {
  text-decoration-color: currentColor;
}

.hero__email:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.35rem;
}

.hero__status {
  margin: clamp(1.5rem, 3.5vh, 2.5rem) 0 0;
  padding: 0.72em 1.05em 0.66em;
  border: 2px solid var(--orange);
  border-radius: 0.2rem;
  background: var(--orange);
  color: var(--blush);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 100;
  letter-spacing: clamp(0.22em, 1vw, 0.42em);
  line-height: 1;
  text-align: center;
  text-indent: 0.42em;
  text-transform: uppercase;
  animation:
    enter 900ms 240ms cubic-bezier(0.22, 1, 0.36, 1) both,
    color-swap 3.2s 1.4s ease-in-out infinite;
}

.marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--burgundy);
  background: var(--sage);
  color: var(--burgundy);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 30s linear infinite;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
  padding: 0.22em clamp(1.75rem, 4vw, 4rem) calc(0.22em + env(safe-area-inset-bottom)) 0;
  font-size: clamp(1.6rem, 3.5vw, 3.25rem);
  font-weight: 100;
  letter-spacing: 0.015em;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
}

.marquee__group span::after {
  content: "•";
  color: var(--orange);
  font-size: 0.34em;
  line-height: 1;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes color-swap {
  0%,
  42%,
  100% {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--blush);
  }

  50%,
  92% {
    background: var(--sage);
    border-color: var(--burgundy);
    color: var(--burgundy);
  }
}

@media (max-height: 820px) {
  .hero {
    padding-block: 1.25rem;
  }

  .hero__logo {
    width: min(72vw, 19rem, 46vh);
  }

  .hero__identity {
    gap: 0.3rem;
    margin-top: 0.85rem;
  }

  .hero__status {
    margin-top: 1rem;
  }
}

@media (max-height: 680px) {
  .hero__logo {
    width: min(64vw, 15.5rem, 42vh);
  }

  .hero__identity {
    margin-top: 0.65rem;
  }

  .hero__status {
    margin-top: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .hero__identity,
  .hero__status,
  .marquee__track {
    animation: none;
  }
}
