:root {
  color-scheme: dark;
  --ink: #05070a;
  --ice: #ecfaff;
  --ice-soft: #a7c1cc;
  --glow: #89ddff;
  --line: rgba(218, 246, 255, 0.22);
  --glass: rgba(4, 8, 12, 0.68);
  --mx: 0;
  --my: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--ice);
  background: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.world,
.mist,
.texture,
.vignette,
#particle-field,
.flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.world {
  z-index: 0;
  inset: -3%;
  background-image:
    linear-gradient(90deg, rgba(2, 5, 8, 0.96) 0%, rgba(2, 5, 8, 0.72) 34%, rgba(2, 5, 8, 0.12) 67%, rgba(2, 5, 8, 0.38) 100%),
    linear-gradient(0deg, rgba(2, 5, 8, 0.9) 0%, transparent 38%),
    url("assets/abyss-citadel.jpg");
  background-position: center;
  background-size: cover;
  transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * -5px), 0) scale(1.04);
  transition: transform 0.18s ease-out;
  animation: worldArrive 1.8s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.mist {
  z-index: 1;
  width: 160%;
  opacity: 0.17;
  filter: blur(26px);
  background:
    radial-gradient(ellipse at 20% 80%, rgba(189, 229, 242, 0.28), transparent 34%),
    radial-gradient(ellipse at 64% 70%, rgba(189, 229, 242, 0.22), transparent 29%);
  animation: mistDrift 20s ease-in-out infinite alternate;
}

.mist--two {
  opacity: 0.1;
  transform: scaleX(-1);
  animation-duration: 29s;
  animation-delay: -8s;
}

.texture {
  z-index: 6;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.vignette {
  z-index: 5;
  background:
    radial-gradient(ellipse at 63% 46%, transparent 20%, rgba(0, 2, 4, 0.2) 54%, rgba(0, 1, 3, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.65));
}

#particle-field {
  z-index: 7;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.stage {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100vw;
  height: 100svh;
  min-height: 650px;
  padding: clamp(22px, 2.3vw, 44px) clamp(26px, 3.4vw, 66px) clamp(18px, 2vw, 36px);
  isolation: isolate;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  animation: topbarIn 1s 0.15s both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand__icon {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(222, 249, 255, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(111, 212, 255, 0.14);
}

.brand__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__name {
  font-family: "Bahnschrift Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.13em;
}

.depth-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(226, 245, 250, 0.62);
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.depth-status i {
  width: 38px;
  height: 1px;
  background: rgba(214, 244, 255, 0.3);
}

.depth-status__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 14px var(--glow);
  animation: blink 1.8s ease-in-out infinite;
}

.socials {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 8px;
}

.nav-link,
.ca-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(222, 249, 255, 0.22);
  background: rgba(3, 7, 11, 0.52);
  color: var(--ice);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-link {
  gap: 9px;
  padding: 0 14px;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-link__icon {
  font-size: 1.08rem;
}

.nav-link__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 12px var(--glow);
}

.nav-link__arrow {
  color: var(--ice-soft);
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.ca-button:hover,
.ca-button:focus-visible {
  border-color: rgba(222, 249, 255, 0.7);
  background: rgba(135, 220, 255, 0.1);
  box-shadow: 0 0 32px rgba(98, 203, 244, 0.1), inset 0 0 20px rgba(151, 227, 255, 0.04);
  outline: none;
  transform: translateY(-2px);
}

.nav-link:hover .nav-link__arrow {
  transform: translate(2px, -2px);
}

.ca-button {
  min-width: 154px;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 34px 6px 14px;
  cursor: pointer;
}

.ca-button::before,
.ca-button::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--ice);
}

.ca-button::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.ca-button::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.ca-button__label {
  color: var(--ice-soft);
  font-family: Consolas, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.13em;
}

.ca-button strong {
  max-width: 120px;
  overflow: hidden;
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-glyph,
.copy-glyph::after {
  position: absolute;
  width: 11px;
  height: 13px;
  border: 1px solid rgba(225, 248, 255, 0.66);
}

.copy-glyph {
  top: 15px;
  right: 14px;
}

.copy-glyph::after {
  content: "";
  top: 3px;
  left: -4px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(500px, 1.14fr) minmax(440px, 0.88fr) minmax(330px, 0.55fr);
  align-items: center;
  min-height: 0;
}

.hero-copy {
  position: relative;
  z-index: 5;
  align-self: center;
  padding: 10px 0 0 1.8vw;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 18px;
  color: rgba(221, 244, 250, 0.66);
  font-family: Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.eyebrow::after {
  content: "";
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, rgba(210, 244, 255, 0.8), transparent);
}

.eyebrow span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(214, 242, 250, 0.26);
  color: var(--ice);
}

.hero-title {
  position: relative;
  margin: 0;
  font-family: "Bahnschrift Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(5.6rem, 7.4vw, 9.2rem);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.title-line {
  display: block;
  width: max-content;
  opacity: 0;
  transform: translateX(-64px) skewX(-6deg);
  animation: titleIn 1s cubic-bezier(0.14, 0.8, 0.2, 1) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.25s; }
.title-line:nth-child(2) { animation-delay: 0.38s; }
.title-line:nth-child(3) { animation-delay: 0.51s; }

.title-line--solid {
  color: var(--ice);
  text-shadow: 0 0 44px rgba(211, 247, 255, 0.12);
}

.title-line--outline {
  color: rgba(4, 8, 12, 0.2);
  -webkit-text-stroke: 2px rgba(228, 249, 255, 0.9);
  text-shadow: 0 0 30px rgba(121, 215, 252, 0.18);
}

.hero-lede {
  max-width: 520px;
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 2px solid rgba(170, 226, 247, 0.6);
  color: rgba(231, 245, 248, 0.74);
  font-size: clamp(1rem, 1.12vw, 1.28rem);
  font-weight: 400;
  letter-spacing: 0.015em;
}

.hero-lede em {
  color: var(--ice);
  font-style: normal;
  font-weight: 700;
}

.hero-signal {
  display: grid;
  grid-template-columns: auto minmax(70px, 150px) auto;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin-top: 34px;
  color: rgba(213, 239, 246, 0.5);
  font-family: Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.hero-signal b {
  color: rgba(232, 251, 255, 0.8);
  font-weight: 500;
}

.signal-track {
  height: 1px;
  overflow: hidden;
  background: rgba(220, 244, 252, 0.18);
}

.signal-track i {
  display: block;
  width: 32%;
  height: 100%;
  background: var(--ice);
  box-shadow: 0 0 9px var(--glow);
  animation: signal 2.8s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.8s ease forwards;
}

.reveal--1 { animation-delay: 0.7s; }
.reveal--2 { animation-delay: 0.82s; }
.reveal--3 { animation-delay: 0.94s; }
.reveal--4 { animation-delay: 0.78s; }

.character-zone {
  position: relative;
  z-index: 4;
  align-self: stretch;
  min-width: 0;
  perspective: 1100px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

.character-float {
  position: absolute;
  z-index: 3;
  inset: -1% -15% -1% -12%;
  display: grid;
  place-items: end center;
  animation: characterFloat 5.4s ease-in-out infinite;
}

.character-tilt {
  position: relative;
  width: min(100%, 790px);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out, filter 0.5s ease;
  will-change: transform;
  animation: characterArrive 1.4s 0.25s cubic-bezier(0.12, 0.72, 0.08, 1) both;
}

.character-art {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  filter:
    drop-shadow(-24px 38px 32px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 18px rgba(132, 220, 255, 0.08));
  transform-origin: 56% 48%;
  animation: armorBreathe 4.2s ease-in-out infinite;
}

.character-shadow {
  position: absolute;
  z-index: 1;
  right: -4%;
  bottom: 0;
  left: -3%;
  height: 11%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(2, 4, 6, 0.9), transparent 68%);
  filter: blur(12px);
  animation: shadowBreathe 5.4s ease-in-out infinite;
}

.sigil-glow {
  position: absolute;
  z-index: 4;
  top: 28.5%;
  left: 59.5%;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 248, 255, 0.32), rgba(106, 211, 255, 0.08) 38%, transparent 69%);
  filter: blur(7px);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) translateZ(22px);
  animation: sigilPulse 2.6s ease-in-out infinite;
}

.armor-scan {
  position: absolute;
  z-index: 5;
  top: 10%;
  left: 25%;
  width: 62%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(200, 243, 255, 0.75), transparent);
  box-shadow: 0 0 12px rgba(116, 217, 255, 0.6);
  mix-blend-mode: screen;
  animation: armorScan 7s 2s ease-in-out infinite;
}

.halo,
.sonar {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(180, 229, 246, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.halo::before,
.halo::after {
  content: "";
  position: absolute;
  background: rgba(196, 238, 250, 0.45);
}

.halo::before {
  top: 50%;
  left: -5%;
  width: 110%;
  height: 1px;
}

.halo::after {
  top: -5%;
  left: 50%;
  width: 1px;
  height: 110%;
}

.halo--outer {
  width: 84%;
  aspect-ratio: 1;
  border-style: dashed;
  animation: slowSpin 28s linear infinite;
}

.halo--inner {
  width: 59%;
  aspect-ratio: 1;
  opacity: 0.65;
  animation: slowSpin 19s linear infinite reverse;
}

.sonar {
  top: 35%;
  width: 30%;
  aspect-ratio: 1;
  border-color: rgba(140, 224, 255, 0.42);
  opacity: 0;
  animation: sonarPulse 4.2s ease-out infinite;
}

.sonar--two {
  animation-delay: 2.1s;
}

.wake-button {
  position: absolute;
  z-index: 7;
  right: 8%;
  bottom: 4%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(209, 241, 251, 0.25);
  background: rgba(4, 8, 11, 0.52);
  color: rgba(220, 244, 250, 0.65);
  font-family: Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.wake-button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 12px var(--glow);
}

.wake-button:hover,
.wake-button:focus-visible {
  border-color: rgba(224, 249, 255, 0.7);
  color: var(--ice);
  outline: none;
  transform: translateY(-2px);
}

.character-zone.is-awake .character-tilt {
  filter: brightness(1.16) contrast(1.04);
}

.character-zone.is-awake .sigil-glow {
  animation: sigilWake 0.9s ease-out;
}

.lore-panel {
  position: relative;
  z-index: 5;
  align-self: center;
  margin-left: 12px;
  padding: clamp(20px, 1.6vw, 30px);
  border: 1px solid rgba(217, 242, 249, 0.2);
  background:
    linear-gradient(135deg, rgba(137, 221, 255, 0.05), transparent 38%),
    rgba(4, 8, 12, 0.68);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(15px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.lore-panel::before,
.lore-panel::after {
  content: "";
  position: absolute;
  background: rgba(214, 244, 255, 0.5);
}

.lore-panel::before {
  top: 0;
  left: 22%;
  width: 24%;
  height: 2px;
  box-shadow: 0 0 14px rgba(120, 218, 255, 0.4);
}

.lore-panel::after {
  right: 0;
  bottom: 12%;
  width: 2px;
  height: 22%;
}

.lore-panel__head,
.lore-kicker,
.lore-facts dt {
  font-family: Consolas, monospace;
  letter-spacing: 0.13em;
}

.lore-panel__head {
  display: flex;
  justify-content: space-between;
  color: rgba(216, 239, 245, 0.48);
  font-size: 0.63rem;
}

.lore-rule {
  position: relative;
  height: 1px;
  margin: 14px 0 22px;
  background: rgba(211, 242, 250, 0.16);
}

.lore-rule i {
  position: absolute;
  left: 0;
  width: 38%;
  height: 100%;
  background: rgba(220, 248, 255, 0.66);
}

.lore-kicker {
  margin: 0 0 7px;
  color: var(--ice-soft);
  font-size: 0.63rem;
}

.lore-panel h2 {
  margin: 0;
  font-family: "Bahnschrift Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(1.75rem, 2.05vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.lore-copy {
  margin: 20px 0 22px;
  color: rgba(225, 241, 245, 0.68);
  font-size: clamp(0.87rem, 0.86vw, 1rem);
  line-height: 1.65;
}

.lore-facts {
  display: grid;
  gap: 11px;
  margin: 0;
}

.lore-facts div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(207, 237, 246, 0.12);
}

.lore-facts dt {
  color: rgba(210, 237, 244, 0.4);
  font-size: 0.58rem;
}

.lore-facts dd {
  margin: 0;
  color: rgba(236, 250, 253, 0.84);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lore-panel blockquote {
  margin: 24px 0 0;
  color: var(--ice);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.075em;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: rgba(217, 241, 247, 0.42);
  font-family: Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  animation: topbarIn 1s 1.05s both;
}

.footer-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 12px;
}

.footer-wave i {
  display: block;
  width: 1px;
  height: 5px;
  background: rgba(197, 235, 247, 0.4);
  animation: wave 1.6s ease-in-out infinite;
}

.footer-wave i:nth-child(2) { animation-delay: -0.2s; }
.footer-wave i:nth-child(3) { animation-delay: -0.4s; }
.footer-wave i:nth-child(4) { animation-delay: -0.6s; }
.footer-wave i:nth-child(5) { animation-delay: -0.8s; }
.footer-wave i:nth-child(6) { animation-delay: -1s; }
.footer-wave i:nth-child(7) { animation-delay: -1.2s; }

.toast {
  position: fixed;
  z-index: 50;
  right: 3.4vw;
  bottom: 34px;
  padding: 11px 16px;
  border: 1px solid rgba(219, 247, 255, 0.55);
  background: rgba(4, 9, 13, 0.88);
  color: var(--ice);
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  backdrop-filter: blur(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flash {
  z-index: 40;
  opacity: 0;
  background: radial-gradient(circle at 60% 40%, rgba(203, 246, 255, 0.24), transparent 24%);
}

.flash.is-active {
  animation: flash 0.9s ease-out;
}

.dynamic-ripple {
  position: absolute;
  z-index: 2;
  top: 35%;
  left: 50%;
  width: 26%;
  aspect-ratio: 1;
  border: 1px solid rgba(198, 241, 255, 0.75);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: dynamicRipple 1.3s ease-out forwards;
  pointer-events: none;
}

@keyframes worldArrive {
  from { opacity: 0; filter: blur(12px); transform: scale(1.1); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes topbarIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes titleIn {
  to { opacity: 1; transform: translateX(0) skewX(0); }
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes characterArrive {
  from { opacity: 0; transform: translateY(80px) scale(0.9); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes characterFloat {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(-11px); }
}

@keyframes armorBreathe {
  0%, 100% { transform: scale(1); filter: brightness(0.98); }
  50% { transform: scale(1.008); filter: brightness(1.04); }
}

@keyframes shadowBreathe {
  0%, 100% { transform: scaleX(1); opacity: 0.75; }
  50% { transform: scaleX(0.94); opacity: 0.55; }
}

@keyframes sigilPulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.88); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes sigilWake {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(2.4); }
  100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
}

@keyframes armorScan {
  0%, 8% { top: 9%; opacity: 0; }
  10% { opacity: 0.8; }
  30% { top: 82%; opacity: 0; }
  100% { top: 82%; opacity: 0; }
}

@keyframes slowSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes sonarPulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  15% { opacity: 0.44; }
  70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.8); }
}

@keyframes dynamicRipple {
  0% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.45); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.2); }
}

@keyframes mistDrift {
  from { transform: translate3d(-10%, 1%, 0) scale(1); }
  to { transform: translate3d(6%, -2%, 0) scale(1.08); }
}

@keyframes signal {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(420%); }
}

@keyframes blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes wave {
  0%, 100% { height: 3px; opacity: 0.3; }
  50% { height: 12px; opacity: 0.8; }
}

@keyframes flash {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 1400px) {
  .hero {
    grid-template-columns: minmax(430px, 1.08fr) minmax(370px, 0.82fr) minmax(300px, 0.58fr);
  }

  .nav-link {
    padding-inline: 11px;
  }

  .depth-status {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr 1fr;
  }

  .socials {
    grid-column: 2;
  }
}

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .stage {
    height: auto;
    min-height: 100svh;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .socials {
    grid-column: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    padding-top: 42px;
  }

  .hero-copy {
    grid-column: 1;
  }

  .character-zone {
    grid-column: 2;
    min-height: 680px;
  }

  .lore-panel {
    grid-column: 1 / -1;
    margin: 20px 0 40px;
  }
}

@media (max-width: 740px) {
  .stage {
    padding: 20px 18px;
  }

  .topbar {
    gap: 18px;
  }

  .nav-link {
    flex: 1 1 auto;
  }

  .ca-button {
    width: 100%;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 42px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-title {
    font-size: clamp(5rem, 25vw, 7.5rem);
  }

  .character-zone {
    width: 100%;
    min-height: 660px;
    margin-top: -20px;
  }

  .character-float {
    inset: 0 -16%;
  }

  .lore-panel {
    margin-top: -40px;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-wave {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #particle-field {
    display: none;
  }
}
