:root {
  --bg: #030505;
  --bg-soft: rgba(7, 12, 10, 0.78);
  --panel: rgba(10, 17, 14, 0.48);
  --panel-strong: rgba(12, 18, 16, 0.72);
  --line: rgba(210, 222, 214, 0.18);
  --text: #f4f7f5;
  --muted: rgba(229, 236, 232, 0.72);
  --green: #8fffab;
  --green-bright: #b7ffc4;
  --green-soft: rgba(143, 255, 171, 0.2);
  --silver: #d6ddd9;
  --shadow: 0 28px 120px rgba(0, 0, 0, 0.44);
  --radius: 28px;
  --nav-height: 82px;
  --display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --serif: "Baskerville", "Times New Roman", serif;
  --mono: "SFMono-Regular", "Menlo", "Monaco", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(143, 255, 171, 0.08), transparent 22%),
    linear-gradient(180deg, #030505 0%, #010202 100%);
  font-family: var(--serif);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0, transparent 14%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 120px
    );
  opacity: 0.32;
  z-index: 2;
}

body.cursor-enabled,
body.cursor-enabled a,
body.cursor-enabled button {
  cursor: none;
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(143, 255, 171, 0.32);
  color: #ffffff;
}

.spellbook {
  position: relative;
}

.panel {
  position: relative;
  min-height: 100svh;
  padding: clamp(5.8rem, 9vw, 7.5rem) clamp(1rem, 3.2vw, 2.5rem) clamp(2rem, 4vw, 2.8rem);
  display: grid;
  align-items: center;
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -5%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, calc(var(--parallax, 0) * 1px), 0) scale(1.08);
  transition: transform 120ms linear;
  z-index: -3;
}

.panel__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(143, 255, 171, 0.12), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.07), transparent 22%),
    linear-gradient(115deg, rgba(0, 0, 0, 0.8) 14%, rgba(4, 10, 7, 0.44) 48%, rgba(0, 0, 0, 0.82) 100%);
}

.panel__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 28%, transparent 70%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 120px
    );
  opacity: 0.75;
}

.panel--artifact::before {
  background-image: url("./wand.png");
}

.panel--cast::before {
  background-image: url("./pmt.png");
}

.panel--mana::before {
  background-image: url("./deplete.png");
}

.panel--sorcerer::before {
  background-image: url("./sorce.png");
}

.panel__inner {
  position: relative;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(1.2rem, 2vw, 2rem);
  z-index: 1;
}

.panel__inner--angled {
  transform: translate3d(-2vw, 0, 0);
}

.panel__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: end;
}

.panel__inner--final {
  max-width: 920px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(183, 255, 196, 0.22);
  border-radius: 999px;
  background: rgba(10, 16, 14, 0.44);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.title {
  margin: 0;
  max-width: 11ch;
  font-family: var(--display);
  font-size: clamp(3.8rem, 12vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 28px rgba(143, 255, 171, 0.16);
}

.title--hero {
  min-height: 1em;
}

.lead,
.body-copy,
.closing-line {
  max-width: 42rem;
}

.lead {
  margin: 1.25rem 0 0;
  color: #ffffff;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead--subtle {
  color: var(--green-bright);
  font-size: clamp(1rem, 2.1vw, 1.35rem);
}

.body-copy {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.7;
}

.body-copy--stacked {
  color: var(--silver);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.95;
}

.body-copy--wide {
  max-width: 48rem;
}

.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button-row--final {
  margin-top: 2.4rem;
}

.cta-button {
  position: relative;
  min-height: 56px;
  padding: 1rem 1.45rem;
  border: 1px solid rgba(183, 255, 196, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(143, 255, 171, 0.16), rgba(255, 255, 255, 0.08)),
    rgba(9, 17, 13, 0.52);
  color: #fafffb;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 14px 34px rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 16%, rgba(183, 255, 196, 0.34) 50%, transparent 84%);
  transform: translateX(-130%);
  transition: transform 420ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(183, 255, 196, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(143, 255, 171, 0.16);
}

.cta-button:hover::before,
.cta-button:focus-visible::before {
  transform: translateX(130%);
}

.cta-button--ghost {
  background: rgba(6, 10, 9, 0.24);
  color: var(--silver);
}

.cta-button--pulse {
  animation: nfcPulse 2.6s ease-in-out infinite;
}

.nav-orb {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 40;
  width: min(1200px, calc(100% - 1rem));
  transform: translateX(-50%);
}

.nav-orb__shell,
.mobile-menu {
  border: 1px solid rgba(214, 221, 217, 0.14);
  background: rgba(6, 11, 10, 0.42);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.nav-orb__shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-height);
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
}

.brand,
.nav-links a,
.menu-toggle {
  text-decoration: none;
  text-transform: uppercase;
}

.brand {
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  justify-content: center;
  flex: 1;
}

.nav-links a,
.mobile-menu a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.menu-toggle {
  display: none;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(214, 221, 217, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--mono);
  letter-spacing: 0.2em;
}

.mobile-menu {
  display: none;
  margin-top: 0.6rem;
  padding: 1rem;
  border-radius: 24px;
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.85rem;
}

.hero-rune {
  position: absolute;
  top: clamp(-2rem, -1vw, -0.5rem);
  left: min(42vw, 26rem);
  width: clamp(240px, 38vw, 430px);
  aspect-ratio: 1;
  opacity: 0.95;
  pointer-events: none;
}

.hero-rune__ring,
.hero-rune__glyph {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.hero-rune__ring {
  border: 1px solid rgba(183, 255, 196, 0.34);
  box-shadow:
    inset 0 0 34px rgba(143, 255, 171, 0.08),
    0 0 45px rgba(143, 255, 171, 0.18);
  animation: runeSpin 24s linear infinite;
}

.hero-rune__ring::before,
.hero-rune__ring::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(183, 255, 196, 0.22);
  border-radius: 50%;
}

.hero-rune__ring::after {
  inset: 28%;
  border-style: solid;
}

.hero-rune__glyph {
  inset: 16%;
  background:
    radial-gradient(circle at center, rgba(143, 255, 171, 0.14), transparent 30%),
    linear-gradient(90deg, transparent 49.25%, rgba(183, 255, 196, 0.28) 50%, transparent 50.75%),
    linear-gradient(transparent 49.25%, rgba(183, 255, 196, 0.28) 50%, transparent 50.75%);
  filter: blur(0.25px);
  animation: glyphPulse 4s ease-in-out infinite;
}

.spell-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
  perspective: 1400px;
}

.spell-card {
  position: relative;
  min-height: 250px;
  transform-style: preserve-3d;
  transition: transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spell-card:hover,
.spell-card:focus-within {
  transform: rotateY(180deg) rotateZ(-1deg) translateY(-4px);
}

.spell-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  border: 1px solid rgba(183, 255, 196, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(143, 255, 171, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(8, 13, 12, 0.56);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.spell-card__face--front h3,
.spell-card__face--back p {
  margin: 0;
}

.spell-card__face--front h3 {
  max-width: 8ch;
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.spell-card__face--back {
  justify-content: center;
  gap: 0.8rem;
  transform: rotateY(180deg);
  font-family: var(--mono);
  text-transform: uppercase;
  color: var(--green-bright);
}

.spell-card__index {
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.16em;
}

.copy-block {
  max-width: 42rem;
}

.balance-panel {
  padding: 1.25rem;
  border: 1px solid rgba(183, 255, 196, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(143, 255, 171, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(8, 13, 12, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.balance-panel__header,
.balance-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.balance-panel__header {
  margin-bottom: 1rem;
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.balance-panel__status {
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  background: rgba(143, 255, 171, 0.12);
}

.balance-row {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.balance-row span {
  color: var(--muted);
}

.balance-row strong {
  font-size: 1.15rem;
  color: #ffffff;
  text-transform: uppercase;
}

.balance-panel__footer {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
}

.closing-line {
  margin-top: 2.2rem;
  color: var(--green-bright);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.mana-meter {
  position: fixed;
  top: 50%;
  right: 1rem;
  z-index: 35;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  transform: translateY(-50%);
}

.mana-meter__track {
  position: relative;
  width: 14px;
  height: min(42vh, 320px);
  border: 1px solid rgba(183, 255, 196, 0.18);
  border-radius: 999px;
  background: rgba(6, 11, 10, 0.44);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mana-meter__fill {
  position: absolute;
  inset: auto 0 0 0;
  height: 0%;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(143, 255, 171, 0.95) 40%, rgba(84, 255, 134, 0.4) 100%);
  box-shadow: 0 0 26px rgba(143, 255, 171, 0.4);
}

.mana-meter__label {
  writing-mode: vertical-rl;
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.spell-circle {
  position: fixed;
  z-index: 5;
  width: clamp(180px, 16vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.46;
  mix-blend-mode: screen;
}

.spell-circle::before,
.spell-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(183, 255, 196, 0.18);
}

.spell-circle::before {
  background:
    radial-gradient(circle at center, rgba(143, 255, 171, 0.12), transparent 48%),
    conic-gradient(from 0deg, rgba(183, 255, 196, 0.22), transparent 22%, rgba(183, 255, 196, 0.16), transparent 70%, rgba(183, 255, 196, 0.2));
  animation: runeSpin 28s linear infinite;
}

.spell-circle::after {
  inset: 14%;
  border-style: dashed;
  animation: runeSpinReverse 22s linear infinite;
}

.spell-circle--left {
  left: -4rem;
  bottom: 4rem;
}

.spell-circle--right {
  top: 6rem;
  right: -3rem;
}

.cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(143, 255, 171, 0.75) 42%, rgba(143, 255, 171, 0.08) 72%, transparent 100%);
  box-shadow: 0 0 22px rgba(143, 255, 171, 0.55);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
}

.cursor-trail,
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.cursor-trail {
  z-index: 59;
}

.trail-particle,
.receipt,
.micro-alert,
.ember {
  position: absolute;
  pointer-events: none;
}

.trail-particle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 255, 196, 0.95), rgba(143, 255, 171, 0.08) 70%, transparent 100%);
  box-shadow: 0 0 12px rgba(143, 255, 171, 0.38);
  animation: trailFade 900ms ease-out forwards;
}

.fx-layer--receipts {
  z-index: 12;
}

.receipt,
.micro-alert {
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(183, 255, 196, 0.16);
  border-radius: 16px;
  background: rgba(7, 11, 10, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--mono);
}

.receipt {
  min-width: 150px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.67rem;
  line-height: 1.5;
  animation: floatReceipt 12s linear forwards;
}

.receipt strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--green-bright);
  letter-spacing: 0.14em;
}

.micro-alert {
  color: #ffffff;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: popAlert 2200ms ease forwards;
}

.micro-alert[data-tone="declined"] {
  color: #ffb1b1;
}

.micro-alert[data-tone="approved"] {
  color: var(--green-bright);
}

.ember-receipts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ember {
  bottom: -2rem;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  background: rgba(10, 17, 14, 0.4);
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(183, 255, 196, 0.14);
  animation: emberLift linear forwards;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 3, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  width: min(460px, 100%);
  padding: 2rem 1.4rem;
  border: 1px solid rgba(183, 255, 196, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(143, 255, 171, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(6, 10, 9, 0.9);
  box-shadow: var(--shadow);
  text-align: center;
}

.modal__glyph {
  width: 88px;
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border: 1px solid rgba(183, 255, 196, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(143, 255, 171, 0.2), transparent 42%),
    conic-gradient(from 0deg, rgba(183, 255, 196, 0.18), transparent 18%, rgba(183, 255, 196, 0.22), transparent 62%, rgba(183, 255, 196, 0.16));
  animation: runeSpin 8s linear infinite;
}

.modal__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.modal__panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: 0.12em;
}

.modal__body {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.copy-block,
.balance-panel,
.spell-grid,
.button-row,
.site-footer,
.nav-orb,
.nav-orb__shell,
.mobile-menu {
  min-width: 0;
}

@keyframes runeSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes runeSpinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes glyphPulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes nfcPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.03),
      0 14px 34px rgba(0, 0, 0, 0.28),
      0 0 0 rgba(143, 255, 171, 0);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.03),
      0 14px 34px rgba(0, 0, 0, 0.28),
      0 0 24px rgba(143, 255, 171, 0.2);
  }
}

@keyframes trailFade {
  from {
    opacity: 0.9;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(-50%, -160%, 0) scale(0.3);
  }
}

@keyframes floatReceipt {
  from {
    transform: translate3d(0, 10vh, 0) rotate(-6deg);
    opacity: 0;
  }
  10%,
  80% {
    opacity: 1;
  }
  to {
    transform: translate3d(1vw, -118vh, 0) rotate(9deg);
    opacity: 0;
  }
}

@keyframes popAlert {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.92);
  }
  12%,
  75% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -18px, 0) scale(0.96);
  }
}

@keyframes emberLift {
  from {
    transform: translate3d(0, 0, 0) rotate(-6deg);
    opacity: 0;
  }
  15%,
  80% {
    opacity: 0.85;
  }
  to {
    transform: translate3d(0, -80vh, 0) rotate(8deg);
    opacity: 0;
  }
}

@media (max-width: 1080px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .spell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel__inner--split {
    grid-template-columns: 1fr;
  }

  .hero-rune {
    left: auto;
    right: -2rem;
    width: clamp(220px, 42vw, 360px);
  }
}

@media (max-width: 720px) {
  html {
    scroll-snap-type: y proximity;
  }

  .panel {
    padding-top: 6.8rem;
  }

  .panel__inner {
    padding: 0.5rem;
  }

  .panel__veil {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(3, 8, 6, 0.34) 38%, rgba(0, 0, 0, 0.82) 100%);
  }

  .panel__inner--angled {
    transform: none;
  }

  .title {
    max-width: 8.5ch;
    font-size: clamp(2.7rem, 14vw, 4.5rem);
    line-height: 0.96;
  }

  .body-copy,
  .lead {
    max-width: 100%;
  }

  .lead {
    max-width: 14ch;
    font-size: 1.1rem;
    line-height: 1.25;
  }

  .body-copy {
    font-size: 1rem;
    max-width: min(100%, 22rem);
  }

  .button-row {
    gap: 0.8rem;
  }

  .button-row .cta-button {
    flex: 1 1 100%;
    justify-content: center;
  }

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

  .spell-card {
    min-height: 220px;
  }

  .mana-meter {
    top: auto;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: none;
  }

  .mana-meter__track {
    width: 100%;
    height: 12px;
  }

  .mana-meter__fill {
    inset: 0 auto 0 0;
    width: 0%;
    height: auto;
  }

  .mana-meter__label {
    writing-mode: horizontal-tb;
  }

  .spell-circle {
    opacity: 0.25;
    width: 150px;
  }

  .site-footer {
    gap: 1rem;
  }

  .closing-line {
    max-width: 12ch;
  }
}

@media (hover: none), (pointer: coarse) {
  body,
  body a,
  body button {
    cursor: auto;
  }

  .cursor-orb,
  .cursor-trail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
