@font-face {
  font-family: "X2";
  src: url("fonts/X2.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --cyan: #00e8ff;
  --magenta: #e020ff;
  --white: #ffffff;
  --content-offset: clamp(2.5rem, 12vw, 16vw);
  --frame-corner: clamp(2.1rem, 7vw, 4rem);
  /*  hug title / */
  --frame-pad-t: calc((var(--frame-corner) * 0.36 + 0.35rem) * 0.75);
  --frame-pad-x: calc((var(--frame-corner) * 0.52 + 1rem) * 1.25);
  --frame-pad-b: calc((var(--frame-corner) * 0.52 + 0.45rem)* 0.75);
}

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

html {
  color-scheme: dark;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--white);
  font-family: "Doto", ui-monospace, monospace;
  position: relative;
  overflow-x: hidden;
}

.bg-root {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-parallax {
  position: absolute;
  inset: 0;
}

.bg-parallax__anchor {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-parallax__shift {
  position: relative;
  width: 128vw;
  height: 128vh;
  flex-shrink: 0;
  will-change: transform;
}

.bg-pane {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.bg-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 52% 88% at clamp(12%, 22vw, 28%) 48%,
      rgba(0, 0, 0, 0.52),
      transparent 68%
    ),
    rgba(10, 10, 10, 0.78);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bokeh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 40% at 18% 8%, rgba(0, 232, 255, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 35% at 72% 12%, rgba(224, 32, 255, 0.05), transparent 50%);
  filter: blur(2px);
}

.floor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 232, 255, 0.04) 0%,
    rgba(224, 32, 255, 0.02) 35%,
    transparent 100%
  );
  filter: blur(24px);
  transform: translateY(20%);
  opacity: 0.85;
}

.layout {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.layout__pad {
  width: 100%;
  padding-left: max(var(--content-offset), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right, 0px));
}

.content-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.content-frame__inner {
  position: relative;
  z-index: 1;
  padding: var(--frame-pad-t) var(--frame-pad-x) var(--frame-pad-b) var(--frame-pad-x);
}

.content-frame__corner {
  position: absolute;
  z-index: 0;
  font-family: "X2", "Doto", ui-monospace, monospace;
  font-size: var(--frame-corner);
  font-weight: normal;
  line-height: 0.75;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.85));
}

.content-frame__corner--tl {
  top: 0;
  left: 0;
  color: var(--cyan);
}

.content-frame__corner--br {
  bottom: 0;
  right: 0;
  color: var(--magenta);
}

.stage {
  max-width: min(100%, 72rem);
}

.content-frame--soon .content-frame__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(40vh, 12rem);
}

.stage--soon {
  max-width: 100%;
  margin-inline: auto;
}

.soon {
  margin: 0;
  font-family: "X2", "Doto", system-ui, sans-serif;
  font-size: clamp(2.75rem, 14vw, 6rem);
  font-weight: normal;
  font-style: normal;
  font-synthesis: none;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: none;
  text-align: center;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.75));
}

.soon__cyan {
  color: var(--cyan);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(0, 0, 0, 0.45);
}

.soon__magenta {
  color: var(--magenta);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(0, 0, 0, 0.45);
}

.page-soon .layout {
  justify-content: center;
}

.logo {
  margin: 0 0 0.3rem;
  font-family: "X2", "Doto", system-ui, sans-serif;
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  font-weight: normal;
  font-style: normal;
  font-synthesis: none;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.75));
}

.logo__fr {
  color: var(--cyan);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(0, 0, 0, 0.45);
}

.logo__web {
  color: var(--magenta);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(0, 0, 0, 0.45);
}

.rule {
  width: 100%;
  height: 1px;
  background: var(--white);
  margin-top: 0.12rem;
  margin-bottom: 0.42rem;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.65);
}

.nav {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.nav__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.25rem 0.65rem;
}

.nav__seg {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  margin: 0;
  font-family: "Doto", ui-monospace, monospace;
  font-size: clamp(0.88rem, 2.6vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--magenta);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease, text-shadow 0.15s ease;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.85);
}

.nav__label {
  color: inherit;
}

.nav__chev {
  opacity: 0.9;
  user-select: none;
}

a.nav__seg:hover {
  color: var(--cyan);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 14px rgba(0, 232, 255, 0.55);
}

a.nav__seg:focus-visible {
  color: var(--cyan);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 14px rgba(0, 232, 255, 0.55);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bg-credit {
  position: fixed;
  z-index: 4;
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  font-family: "Doto", ui-monospace, monospace;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.88);
}

.bg-credit__line {
  display: block;
  white-space: nowrap;
}

.bg-credit--left {
  left: max(0.65rem, env(safe-area-inset-left, 0px));
  text-align: left;
  pointer-events: none;
}

.bg-credit--right {
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  text-align: right;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
  pointer-events: auto;
}

.bg-credit--right:hover {
  color: var(--cyan);
  text-decoration-color: rgba(0, 232, 255, 0.5);
}

.bg-credit--right:focus-visible {
  color: var(--cyan);
  text-decoration-color: rgba(0, 232, 255, 0.5);
  outline: none;
}

@media (max-width: 768px) {
  :root {
    --content-offset: clamp(0.75rem, 4vw, 1.15rem);
    --frame-pad-x: calc((var(--frame-corner) * 0.42 + 0.55rem) * 1.15);
  }

  .nav {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .nav__inner {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.15rem;
  }

  .nav__seg {
    font-size: clamp(1.08rem, 4.5vw, 1.4rem);
    letter-spacing: 0.07em;
    min-height: 2.75rem;
    padding: 0.5rem 0.25rem 0.5rem 0;
    align-items: center;
    width: 100%;
    -webkit-tap-highlight-color: rgba(0, 232, 255, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-parallax__shift {
    transform: none !important;
  }
}
