:root {
  --ink-950: #05080c;
  --ink-900: #070b10;
  --ice-200: #b7ecec;
  --ice-300: #94d0d1;
  --ice-500: #549aa2;
  --ice-700: #2d6e80;
  --ice-800: #144553;
  --steel-500: #6b8499;
}

html {
  color-scheme: dark;
  background: var(--ink-950);
}

html,
body {
  min-height: 100%;
  background: var(--ink-950);
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(84, 154, 162, 0.4);
  color: #e8ffff;
}

.atmosphere {
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(20, 69, 83, 0.5) 0%, transparent 62%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(45, 110, 128, 0.16) 0%, transparent 55%),
    var(--ink-950);
}

.logo-stage {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: min(42rem, calc(100vw - 3rem));
  max-width: calc(100vw - 3rem);
  min-width: 0;
  line-height: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.logo-mark {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Static glow only. Animating filter (especially blur) makes iOS Safari
     composite this stack as a white blank when the watermark fades in. */
  filter: drop-shadow(0 0 40px rgba(45, 110, 128, 0.28));
  animation: focus-in 1.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.watermark {
  position: absolute;
  left: 50%;
  top: 18%;
  z-index: 2;
  margin: 0;
  padding: 0;
  line-height: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
  font-family: Rajdhani, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 3.2vw, 1.55rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: rgba(183, 236, 236, 0.4);
  text-shadow: 0 0 18px rgba(84, 196, 200, 0.18);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  animation: stamp-in 0.8s ease 1.8s both;
}

@keyframes focus-in {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0) scale(1.07);
    transform: translate3d(0, 0, 0) scale(1.07);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0) scale(1);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .watermark {
    top: 16%;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
  }
}

/* iOS Safari: drop-shadow is also a filter and can blank the layer. */
@supports (-webkit-touch-callout: none) {
  .logo-mark {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark,
  .watermark {
    animation: none;
  }
}
