﻿:root {
  color-scheme: dark;
  --ink: #fff9ef;
  --muted: rgba(255, 249, 239, 0.68);
  --soft: rgba(255, 249, 239, 0.46);
  --shadow: rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #030309;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

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

.page-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  place-items: center;
  align-content: stretch;
  padding: clamp(14px, 2.8vmin, 42px);
  isolation: isolate;
}

@supports (height: 100dvh) {
  .page-shell,
  .hero {
    min-height: 100dvh;
    height: 100dvh;
  }
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.12) 0 22%, rgba(0, 0, 0, 0.64) 64%, #030309 100%),
    image-set(url("./assets/pigment-burst.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
  content: "";
  transform: scale(1.02);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 3, 9, 0.36), rgba(3, 3, 9, 0.04) 40%, rgba(3, 3, 9, 0.46)),
    radial-gradient(circle at center, transparent 0 31%, rgba(0, 0, 0, 0.52) 73%);
  content: "";
}

.ambient {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 27% 29%, rgba(0, 242, 255, 0.16), transparent 18%),
    radial-gradient(circle at 75% 68%, rgba(255, 60, 170, 0.16), transparent 17%),
    radial-gradient(circle at 52% 16%, rgba(255, 218, 46, 0.12), transparent 16%);
  filter: blur(16px);
  opacity: 0.85;
  animation: breathe 12s ease-in-out infinite;
}

.language-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.language-cloud > span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  max-width: min(230px, 26vw);
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.48);
  font-size: clamp(0.66rem, 0.55rem + 0.32vw, 0.96rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.34), 0 10px 28px var(--shadow);
  transform: translate(-50%, -50%);
  animation: wander var(--wander-duration, 34s) ease-in-out infinite;
  animation-delay: var(--d);
}

.language-cloud > span:nth-child(1) {
  --wander-duration: 36s;
  --dx-a: 26px;
  --dy-a: -18px;
  --dx-b: -42px;
  --dy-b: 24px;
  --dx-c: 18px;
  --dy-c: 38px;
}

.language-cloud > span:nth-child(2) {
  --wander-duration: 42s;
  --dx-a: -30px;
  --dy-a: 18px;
  --dx-b: 36px;
  --dy-b: 32px;
  --dx-c: -18px;
  --dy-c: -30px;
}

.language-cloud > span:nth-child(3) {
  --wander-duration: 39s;
  --dx-a: 34px;
  --dy-a: 22px;
  --dx-b: -28px;
  --dy-b: -34px;
  --dx-c: -44px;
  --dy-c: 14px;
}

.language-cloud > span:nth-child(4) {
  --wander-duration: 45s;
  --dx-a: -22px;
  --dy-a: -26px;
  --dx-b: 40px;
  --dy-b: -18px;
  --dx-c: 20px;
  --dy-c: 30px;
}

.language-cloud > span:nth-child(5) {
  --wander-duration: 41s;
  --dx-a: 24px;
  --dy-a: 30px;
  --dx-b: -34px;
  --dy-b: 18px;
  --dx-c: 42px;
  --dy-c: -24px;
}

.language-cloud > span:nth-child(6) {
  --wander-duration: 38s;
  --dx-a: 38px;
  --dy-a: -16px;
  --dx-b: -22px;
  --dy-b: 34px;
  --dx-c: -40px;
  --dy-c: -22px;
}

.language-cloud > span:nth-child(7) {
  --wander-duration: 44s;
  --dx-a: -36px;
  --dy-a: 20px;
  --dx-b: 28px;
  --dy-b: -30px;
  --dx-c: 36px;
  --dy-c: 20px;
}

.language-cloud > span:nth-child(8) {
  --wander-duration: 40s;
  --dx-a: 32px;
  --dy-a: 24px;
  --dx-b: -30px;
  --dy-b: -24px;
  --dx-c: 18px;
  --dy-c: -38px;
}

.language-cloud > span:nth-child(9) {
  --wander-duration: 47s;
  --dx-a: -26px;
  --dy-a: -22px;
  --dx-b: 42px;
  --dy-b: 18px;
  --dx-c: -20px;
  --dy-c: 36px;
}

.language-cloud .color-wave {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), #ff4f8b, #ffd84a, #36f0ff, #b083ff, rgba(255, 255, 255, 0.42));
  background-size: 420% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation:
    wander var(--wander-duration, 38s) ease-in-out infinite,
    color-sweep 30s ease-in-out infinite;
  animation-delay: var(--d), calc(var(--d) + 9s);
}

.language-cloud.is-morphing > span {
  color: rgba(255, 255, 255, 0.52);
  opacity: 0;
  animation: phrase-drift var(--drift-duration, 12s) ease-in-out infinite alternate !important;
  transition: opacity 1200ms ease;
}

.language-cloud.is-morphing > span.is-visible {
  opacity: var(--phrase-opacity, 0.48);
}

.language-cloud.is-morphing > span.is-fading {
  opacity: 0;
}

.language-cloud.is-morphing .color-wave {
  background: none;
  -webkit-text-fill-color: currentColor;
}

.language-cloud .glyph {
  display: inline-block;
  min-width: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  transition:
    color 900ms ease,
    text-shadow 900ms ease;
  will-change: color, text-shadow;
}

.language-cloud .old-glyph {
  color: rgba(255, 255, 255, 0.36);
}

.language-cloud .new-glyph {
  color: rgba(255, 255, 255, 0.74);
}

.language-cloud .hot-glyph {
  color: var(--hot-color);
  text-shadow:
    0 0 12px color-mix(in srgb, var(--hot-color), transparent 22%),
    0 0 26px color-mix(in srgb, var(--hot-color), transparent 58%),
    0 10px 28px var(--shadow);
  animation: glyph-cool 1200ms ease-out forwards;
}

.language-cloud > span.is-cooling .glyph {
  color: rgba(255, 255, 255, 0.66);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.28), 0 10px 28px var(--shadow);
}

.brand-stage {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  place-items: center;
}

.brand-lockup {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(680px, 88vw);
  max-width: 100%;
  min-width: 0;
  place-items: center;
  padding: clamp(14px, 3.4vmin, 38px) clamp(12px, 3vmin, 38px);
  text-align: center;
}

.brand-mark {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(72px, 12vmin, 128px);
  height: clamp(72px, 12vmin, 128px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18%;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), 0 0 34px rgba(255, 255, 255, 0.14);
}

h1 {
  max-width: 100%;
  min-width: 0;
  margin: clamp(10px, 1.8vmin, 24px) 0 0;
  overflow-wrap: normal;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, min(7vw, 11svh), 6.2rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 10px 46px rgba(0, 0, 0, 0.72);
}

.tagline {
  width: 100%;
  max-width: 560px;
  margin: clamp(10px, 2vmin, 24px) 0 0;
  color: rgba(255, 249, 239, 0.88);
  font-size: clamp(1rem, min(1.9vw, 2.6svh), 1.48rem);
  font-weight: 620;
  line-height: 1.4;
  letter-spacing: 0;
  text-wrap: balance;
}

.supporting {
  width: 100%;
  max-width: 560px;
  margin: clamp(4px, 0.9vmin, 8px) 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, min(1.4vw, 2.1svh), 1.12rem);
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: 0;
  text-wrap: balance;
}

.soon {
  margin: clamp(14px, 2.4vmin, 30px) 0 0;
  color: var(--soft);
  font-size: clamp(0.68rem, min(1vw, 1.6svh), 0.9rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.social-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(8, clamp(30px, 4.3vmin, 40px));
  justify-content: center;
  align-self: end;
  gap: clamp(5px, 1vmin, 8px);
  width: min(520px, 94vw);
  padding: 0 0 max(env(safe-area-inset-bottom), clamp(4px, 1.3vmin, 18px));
}

.social-link {
  position: relative;
  display: grid;
  width: clamp(30px, 4.3vmin, 40px);
  height: clamp(30px, 4.3vmin, 40px);
  place-items: center;
  border-radius: 8px;
  background: transparent;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 0.92;
  outline: none;
  transform: translateY(-2px);
}

.social-link::after {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  z-index: 10;
  width: max-content;
  max-width: min(280px, 80vw);
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 8, 13, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  color: rgba(255, 249, 239, 0.86);
  content: attr(data-title) "\A" attr(data-detail);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 6px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  white-space: pre-line;
}

.social-link:hover::after,
.social-link:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.social-link img {
  display: block;
  width: clamp(18px, 2.5vmin, 20px);
  height: clamp(18px, 2.5vmin, 20px);
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.34));
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }

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

@keyframes wander {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
  }

  9%,
  24% {
    opacity: 0.46;
    transform: translate(-50%, -50%) translate3d(var(--dx-a, 22px), var(--dy-a, -18px), 0);
  }

  34% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(var(--dx-a, 22px), var(--dy-a, -18px), 0);
  }

  36% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(var(--dx-b, -32px), var(--dy-b, 24px), 0);
  }

  47%,
  64% {
    opacity: 0.58;
    transform: translate(-50%, -50%) translate3d(var(--dx-b, -32px), var(--dy-b, 24px), 0);
  }

  76% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(var(--dx-b, -32px), var(--dy-b, 24px), 0);
  }

  78% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(var(--dx-c, 18px), var(--dy-c, 32px), 0);
  }

  90% {
    opacity: 0.36;
    transform: translate(-50%, -50%) translate3d(var(--dx-c, 18px), var(--dy-c, 32px), 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
  }
}

@keyframes color-sweep {
  0%,
  72%,
  100% {
    color: rgba(255, 255, 255, 0.48);
    background-position: 0% 50%;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.25), 0 10px 28px var(--shadow);
    -webkit-text-fill-color: currentColor;
  }

  78%,
  88% {
    background-position: 100% 50%;
    text-shadow: 0 0 22px rgba(92, 232, 255, 0.38), 0 0 30px rgba(255, 91, 194, 0.22), 0 10px 28px var(--shadow);
    -webkit-text-fill-color: transparent;
  }
}

@keyframes phrase-drift {
  from {
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
  }

  to {
    transform: translate(-50%, -50%) translate3d(var(--float-x, 12px), var(--float-y, -10px), 0);
  }
}

@keyframes glyph-cool {
  0% {
    color: var(--hot-color);
  }

  100% {
    color: rgba(255, 255, 255, 0.74);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
    padding:
      max(12px, env(safe-area-inset-top))
      clamp(12px, 4vw, 22px)
      max(10px, env(safe-area-inset-bottom));
  }

  .language-cloud {
    display: none;
  }

  .brand-stage {
    width: 100%;
    max-width: min(100%, 430px);
    height: 100%;
    min-height: 0;
    align-self: stretch;
    overflow: hidden;
    padding: 0;
  }

  .brand-lockup {
    width: 100%;
    max-width: 430px;
    padding: clamp(8px, 2.6vmin, 24px) 8px;
  }

  .brand-mark {
    width: clamp(58px, 16vmin, 104px);
    height: clamp(58px, 16vmin, 104px);
  }

  h1 {
    width: 100%;
    max-width: 360px;
    margin-top: clamp(8px, 1.6svh, 16px);
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(1.72rem, min(8.6vw, 8.5svh), 2.7rem);
    text-align: center;
  }

  .tagline {
    width: 100%;
    max-width: 330px;
    margin-top: clamp(8px, 1.7svh, 16px);
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(0.84rem, min(4vw, 2.5svh), 1rem);
  }

  .supporting {
    width: 100%;
    max-width: 310px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(0.82rem, min(3.7vw, 2.2svh), 0.94rem);
  }

  .soon {
    margin-top: clamp(12px, 2.2svh, 22px);
    font-size: clamp(0.62rem, 1.8svh, 0.74rem);
  }

  .social-strip {
    grid-template-columns: repeat(8, clamp(26px, 7vmin, 30px));
    gap: clamp(5px, 1.2vmin, 6px);
    width: min(100%, 320px);
    padding-bottom: max(env(safe-area-inset-bottom), 2px);
  }

  .social-link {
    width: clamp(26px, 7vmin, 30px);
    height: clamp(26px, 7vmin, 30px);
  }

  .social-link img {
    width: clamp(16px, 4.2vmin, 18px);
    height: clamp(16px, 4.2vmin, 18px);
  }

  .social-link::after {
    display: none;
  }
}

@media (max-width: 360px) {
  .hero {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(1.55rem, 8.2vw, 1.7rem);
  }

  .supporting {
    font-size: clamp(0.78rem, 3.8vw, 0.88rem);
  }

  .social-strip {
    grid-template-columns: repeat(8, 26px);
    gap: 5px;
  }

  .social-link {
    width: 26px;
    height: 26px;
  }

  .social-link img {
    width: 16px;
    height: 16px;
  }
}

@media (max-height: 680px) and (min-width: 901px) {
  .brand-mark {
    width: clamp(66px, 11svh, 94px);
    height: clamp(66px, 11svh, 94px);
  }

  h1 {
    margin-top: clamp(8px, 1.7svh, 16px);
    font-size: clamp(2.55rem, min(6.2vw, 10svh), 5.2rem);
  }

  .tagline {
    margin-top: clamp(8px, 1.8svh, 16px);
    font-size: clamp(0.92rem, min(1.7vw, 2.6svh), 1.16rem);
  }

  .supporting {
    font-size: clamp(0.84rem, min(1.3vw, 2.2svh), 0.98rem);
  }

  .soon {
    margin-top: clamp(10px, 2svh, 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .language-cloud > span {
    animation: none;
  }
}

