/* A brief underwater signature; completely hidden when no script or motion is requested. */
.site-intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
  isolation: isolate;
  padding: 1.5rem;
  background: #071525;
  color: #e6f5ff;
  opacity: 1;
}
html:is([data-intro=active], [data-intro=leaving]) .site-intro {
  display: grid;
  place-items: center;
}
html[data-intro=leaving] .site-intro { animation: intro-exit .34s cubic-bezier(.32, 0, .6, 1) both; }
.intro-depth {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, #224964 0, #0d233b 41%, #06111e 81%),
    #06111e;
  animation: intro-depth 1.4s ease-out both;
}
.intro-depth::after {
  content: "";
  position: absolute;
  inset: -36%;
  background: repeating-conic-gradient(from 216deg at 65% 12%, transparent 0 11deg, #abd8ff16 13deg 14deg, transparent 17deg 26deg);
  transform-origin: 65% 12%;
  mask-image: radial-gradient(ellipse at 49% 42%, #000 0, #0008 22%, transparent 57%);
  mix-blend-mode: screen;
  filter: blur(7px);
  animation: intro-caustics 1.55s ease-out both;
}
.intro-lockup {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  flex-direction: column;
  transform: translateY(-5%);
}
.intro-sigil {
  display: block;
  overflow: visible;
  width: clamp(8rem, 18vw, 11rem);
  height: auto;
  margin-bottom: .8rem;
  filter: drop-shadow(0 0 14px #82c9ff57);
}
.intro-orbits {
  opacity: .27;
  stroke-width: .5;
  transform-origin: 50% 47%;
  animation: intro-orbit 1.24s ease-out both;
}
.intro-jelly path {
  stroke-width: 1.18;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: intro-draw .72s cubic-bezier(.24, .1, .25, 1) .04s both;
}
.intro-jelly path:nth-child(2) { animation-delay: .15s; }
.intro-jelly .intro-veins { opacity: .42; stroke-width: .76; animation-delay: .22s; }
.intro-motes { opacity: .7; animation: intro-motes 1.36s ease-out both; }
.intro-kicker {
  font: 500 clamp(.63rem, 1.8vw, .75rem)/1.45 Arial, sans-serif;
  letter-spacing: .29em;
  padding-inline-start: .29em;
  color: #b8d0e6;
  animation: intro-name .43s ease-out .27s both;
}
.intro-name {
  text-transform: uppercase;
  white-space: nowrap;
  font: 400 clamp(2.65rem, 9vw, 6rem)/1.04 Georgia, serif;
  letter-spacing: .055em;
  padding-left: .08em;
  margin-top: .27em;
  text-shadow: 0 0 40px #c6e8ff4d;
  animation: intro-name .53s cubic-bezier(.18,.62,.2,1) .34s both;
}
.intro-name i { font-style: normal; color: #93c4e8; }
.intro-line {
  width: min(38%, 7.8rem);
  height: 1px;
  margin-top: 1.05rem;
  background: linear-gradient(90deg, transparent, #a6dbf5, transparent);
  animation: intro-line .58s ease-out .5s both;
}
.intro-skip {
  position: absolute;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  background: #07152566;
  color: #dfedf8;
  border: 1px solid #9ec3de53;
  border-radius: 3px;
  font: 400 .875rem/1.35 Arial, 'Noto Sans JP', sans-serif;
  min-height: 44px;
  padding: .35rem .7rem;
}
.intro-skip:hover, .intro-skip:focus-visible { background: #122b42; border-color: #d1e4f7; }
.intro-skip span { color: #b4d0e7; }
@keyframes intro-depth { from { opacity: .22; } to { opacity: 1; } }
@keyframes intro-caustics { from { opacity: .1; transform: rotate(-7deg); } to { opacity: .82; transform: rotate(3deg); } }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-orbit { from { opacity: 0; transform: scale(.62); } to { opacity: .27; transform: scale(1); } }
@keyframes intro-motes { from { opacity: 0; transform: translateY(13px); } to { opacity: .7; transform: translateY(-6px); } }
@keyframes intro-name { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes intro-line { from { opacity: 0; transform: scaleX(.25); } to { opacity: .9; transform: scaleX(1); } }
@keyframes intro-exit { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html:is([data-intro=active], [data-intro=leaving]) .site-intro { display: none; } }
