:root { --text-dim: rgba(140, 200, 220, 0.4); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #000;
  color: #e8f4ff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #000; }
.mesh {
  position: absolute; inset: -25%;
  background:
    radial-gradient(ellipse 50% 40% at 50% 48%, rgba(0, 229, 255, 0.1), transparent 58%),
    radial-gradient(ellipse 35% 30% at 30% 40%, rgba(0, 160, 255, 0.06), transparent 55%);
  -webkit-animation: mesh-drift 20s ease-in-out infinite alternate;
  animation: mesh-drift 20s ease-in-out infinite alternate;
}
@-webkit-keyframes mesh-drift {
  0% { -webkit-transform: translate(0, 0) scale(1); opacity: 0.85; }
  100% { -webkit-transform: translate(1.5%, -1%) scale(1.05); opacity: 1; }
}
@keyframes mesh-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  100% { transform: translate(1.5%, -1%) scale(1.05); opacity: 1; }
}
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 50% 48%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 45% at 50% 48%, #000 10%, transparent 70%);
  -webkit-animation: grid-pulse 10s ease-in-out infinite;
  animation: grid-pulse 10s ease-in-out infinite;
}
@-webkit-keyframes grid-pulse { 0%, 100% { opacity: 0.28; } 50% { opacity: 0.5; } }
@keyframes grid-pulse { 0%, 100% { opacity: 0.28; } 50% { opacity: 0.5; } }
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.85) 100%);
}
.stage {
  position: relative; z-index: 1;
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  min-height: 100vh; min-height: 100dvh;
  padding: clamp(2rem, 6vw, 4rem);
  overflow: visible;
}
.mark {
  display: block;
  width: min(52.2vw, 432px);
  line-height: 0;
  -webkit-user-select: none; user-select: none;
  overflow: visible;
}
.layers {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1291 / 449;
  overflow: visible;
}
.plate {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  background: transparent;
  /* no mix-blend-mode — breaks transforms on iOS Safari */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.plate-jv { z-index: 1; }
.plate-l { z-index: 2; }

/* Pure CSS entrance — no JS gate (Safari-friendly) */
.plate-jv {
  -webkit-animation: slide-from-left 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
  animation: slide-from-left 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.plate-l {
  -webkit-animation: slide-from-left 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
  animation: slide-from-left 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
@-webkit-keyframes slide-from-left {
  0% { opacity: 0; -webkit-transform: translateX(-120%); transform: translateX(-120%); }
  100% { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0); }
}
@keyframes slide-from-left {
  0% { opacity: 0; -webkit-transform: translateX(-120%); transform: translateX(-120%); }
  100% { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0); }
}
.foot {
  position: fixed; z-index: 2; bottom: 0; left: 0; right: 0;
  display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center;
  gap: 0.35rem;
  -webkit-justify-content: center; justify-content: center;
  padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  pointer-events: none;
  -webkit-animation: fade-foot 0.8s ease 1.3s both;
  animation: fade-foot 0.8s ease 1.3s both;
}
@-webkit-keyframes fade-foot { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-foot { from { opacity: 0; } to { opacity: 1; } }
.foot a {
  pointer-events: auto;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: lowercase; text-decoration: none; color: var(--text-dim);
}
.foot a:hover, .foot a:focus-visible { color: rgba(0, 229, 255, 0.85); outline: none; }
@media (prefers-reduced-motion: reduce) {
  .mesh, .grid, .plate, .foot {
    -webkit-animation: none !important;
    animation: none !important;
  }
  .plate, .foot { opacity: 1; -webkit-transform: none; transform: none; }
}
