:root {
  --ink: #11132e;
  --ink-deep: #090b20;
  --ink-soft: #1b2044;
  --plum: #5f314f;
  --plum-dark: #37203d;
  --cream: #fff0e7;
  --cream-muted: #e9d6cf;
  --gold: #f8c93a;
  --gold-deep: #bd8d22;
  --red: #ef3945;
  --violet: #78547f;
  --line: rgba(248, 201, 58, 0.34);
  --page-gutter: clamp(1.25rem, 5vw, 5.5rem);
  --section-space: clamp(6.5rem, 10vw, 10rem);
  --card-gap: clamp(1.25rem, 2vw, 2rem);
  --display: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

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

[id] {
  scroll-margin-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.scroll-progress {
  position: fixed;
  z-index: 140;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--cream));
  box-shadow: 0 0 18px rgba(248, 201, 58, 0.75);
}

.magic-spotlight {
  position: fixed;
  z-index: 18;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    32rem circle at var(--pointer-x, 50vw) var(--pointer-y, 50vh),
    rgba(248, 201, 58, 0.065),
    rgba(239, 57, 69, 0.025) 35%,
    transparent 70%
  );
  mix-blend-mode: screen;
}

.cursor-sigil {
  position: fixed;
  z-index: 130;
  top: 0;
  left: 0;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  transform: translate3d(var(--pointer-x, 50vw), var(--pointer-y, 50vh), 0)
    translate(-50%, -50%);
  border: 1px solid rgba(248, 201, 58, 0.48);
  border-radius: 50%;
  opacity: 0;
  color: var(--gold);
  font-size: 0.55rem;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(248, 201, 58, 0.7));
  transition:
    width 180ms ease,
    height 180ms ease,
    opacity 300ms ease;
}

.cursor-sigil::before,
.cursor-sigil::after {
  position: absolute;
  inset: 0.24rem;
  border: 1px solid rgba(255, 240, 231, 0.26);
  border-radius: 50%;
  content: "";
  animation: sigil-spin 8s linear infinite;
}

.cursor-sigil::after {
  inset: -0.45rem;
  border-style: dashed;
  opacity: 0.42;
  animation-direction: reverse;
  animation-duration: 14s;
}

.motion-ready .cursor-sigil {
  opacity: 0.72;
}

.magic-motes {
  position: fixed;
  z-index: 17;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.magic-motes i {
  position: absolute;
  width: var(--mote-size);
  height: var(--mote-size);
  border-radius: 50%;
  background: #d8d0ff;
  box-shadow:
    0 0 8px rgba(216, 208, 255, 0.8),
    0 0 18px rgba(120, 84, 127, 0.6);
  opacity: 0;
  animation: mote-drift var(--mote-duration) var(--mote-delay) ease-in-out infinite;
}

.magic-motes i.warm {
  background: var(--gold);
  box-shadow:
    0 0 8px rgba(248, 201, 58, 0.95),
    0 0 20px rgba(239, 57, 69, 0.55);
}

.page-grain {
  position: fixed;
  z-index: 125;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 20% 20%, transparent 0 1px, rgba(255, 255, 255, 0.06) 1px 2px),
    repeating-radial-gradient(circle at 80% 40%, transparent 0 2px, rgba(255, 255, 255, 0.035) 2px 3px);
  background-size: 7px 7px, 11px 11px;
  opacity: 0.045;
  animation: grain-shift 0.35s steps(2) infinite;
}

.motion-ready
  :is(
    [data-reveal],
    .cts-reveal,
    .cts-reveal-left,
    .cts-reveal-right
  ) {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0, 2.75rem, 0) scale(0.985);
  transition:
    opacity 900ms cubic-bezier(0.18, 0.72, 0.2, 1) var(--reveal-delay, 0ms),
    transform 900ms cubic-bezier(0.18, 0.72, 0.2, 1) var(--reveal-delay, 0ms),
    filter 900ms ease var(--reveal-delay, 0ms);
}

.motion-ready :is([data-reveal="left"], .cts-reveal-left) {
  transform: translate3d(-3.5rem, 1rem, 0) scale(0.99);
}

.motion-ready :is([data-reveal="right"], .cts-reveal-right) {
  transform: translate3d(3.5rem, 1rem, 0) scale(0.99);
}

.motion-ready
  :is(
    [data-reveal],
    .cts-reveal,
    .cts-reveal-left,
    .cts-reveal-right
  ).is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

body::selection {
  color: var(--ink);
  background: var(--gold);
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.4rem var(--page-gutter);
  border-bottom: 1px solid rgba(255, 240, 231, 0.2);
  background: linear-gradient(180deg, rgba(9, 11, 32, 0.88), rgba(9, 11, 32, 0));
  transition:
    padding 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    backdrop-filter 260ms ease;
}

.page-scrolled .site-header {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-color: rgba(248, 201, 58, 0.2);
  background: rgba(9, 11, 32, 0.82);
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: block;
  width: clamp(10rem, 14vw, 14rem);
  line-height: 0;
}

.site-header .brand img,
.site-header .brand .custom-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.15rem, 2.5vw, 2.75rem);
  color: var(--cream-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav a,
.text-link {
  position: relative;
}

.site-header nav a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform 220ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background 180ms ease,
    translate 160ms ease;
  translate: var(--magnet-x, 0) var(--magnet-y, 0);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(7.5rem, 11vw, 10rem) var(--page-gutter) 0;
  background:
    radial-gradient(circle at 11% 52%, rgba(239, 57, 69, 0.13), transparent 26rem),
    radial-gradient(circle at 72% 12%, rgba(248, 201, 58, 0.08), transparent 24rem),
    var(--ink);
}

.hero::before,
.star-field::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(17, 19, 46, 0.82), rgba(17, 19, 46, 0.92)),
    url("../images/star-map.webp") center / cover;
  opacity: 0.72;
  transform: scale(1.06);
  animation: starfield-drift 34s ease-in-out infinite alternate;
  will-change: transform, background-position;
}

.hero::after {
  position: absolute;
  top: 11%;
  left: -5rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(248, 201, 58, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 2rem rgba(248, 201, 58, 0.025),
    0 0 0 5rem rgba(248, 201, 58, 0.02);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100svh - 11rem);
  max-width: 90rem;
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.95fr) minmax(28rem, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
}

.hero-copy {
  max-width: 46rem;
  padding: 2rem 0 6rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow span {
  font-size: 1.1rem;
}

.hero h1 {
  display: flex;
  margin: 0;
  flex-direction: column;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(5.2rem, 10.3vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.24);
}

.hero h1 span {
  width: max-content;
  background: linear-gradient(
    105deg,
    var(--cream) 20%,
    #fff 36%,
    var(--gold) 48%,
    var(--cream) 60%
  );
  background-position: 120% center;
  background-size: 240% 100%;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: title-gleam 8s 1.2s ease-in-out infinite;
}

.hero h1 span:last-child {
  margin-left: 0.5em;
  animation-delay: 1.5s;
}

.suits {
  margin: 3.35rem 0 1.6rem;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.65em;
}

.suits span {
  color: var(--red);
}

.hero h2 {
  max-width: 42rem;
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.3rem, 2.15vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-description {
  max-width: 40rem;
  margin: 1.3rem 0 0;
  color: var(--cream-muted);
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    translate 160ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background 180ms ease;
  translate: var(--magnet-x, 0) var(--magnet-y, 0);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(248, 201, 58, 0.14);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 42px rgba(248, 201, 58, 0.24);
}

.button-ghost {
  border-color: rgba(255, 240, 231, 0.35);
  color: var(--cream);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  width: min(38vw, 35rem);
  margin: auto;
  align-self: end;
  translate:
    calc(var(--hero-x, 0) * 5px)
    calc(var(--hero-y, 0) * 4px);
  transition: translate 180ms ease-out;
}

.hero-visual::before {
  position: absolute;
  z-index: 0;
  top: 5%;
  left: 50%;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(248, 201, 58, 0.22), transparent 56%),
    conic-gradient(from 0deg, transparent, rgba(239, 57, 69, 0.18), transparent 42%, rgba(120, 84, 127, 0.28), transparent);
  content: "";
  transform: translateX(-50%);
  filter: blur(16px);
  animation: aura-breathe 4.2s ease-in-out infinite;
}

.hero-visual::after {
  position: absolute;
  z-index: 0;
  top: -4%;
  left: 50%;
  width: 124%;
  aspect-ratio: 1;
  border: 1px solid rgba(248, 201, 58, 0.1);
  border-right-color: rgba(239, 57, 69, 0.18);
  border-bottom-color: transparent;
  border-radius: 50%;
  box-shadow:
    inset 0 0 3rem rgba(120, 84, 127, 0.06),
    0 0 4rem rgba(248, 201, 58, 0.035);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
  animation: celestial-arc-turn 28s linear infinite;
}

.hero-art-frame {
  position: relative;
  z-index: 2;
  height: min(76vh, 52rem);
  min-height: 39rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 240, 231, 0.28);
  border-radius: 18rem 18rem 0 0;
  background: var(--plum);
  box-shadow: 0 3rem 7rem rgba(0, 0, 0, 0.34);
  transform: perspective(1100px) rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
  transform-style: preserve-3d;
  transition:
    transform 220ms ease-out,
    box-shadow 400ms ease;
  will-change: transform;
}

.hero-art-frame::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      22rem circle at var(--glow-x, 50%) var(--glow-y, 50%),
      rgba(248, 201, 58, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(0deg, rgba(9, 11, 32, 0.62), transparent 35%);
  content: "";
}

.hero-art-frame::before {
  position: absolute;
  z-index: 4;
  inset: -35%;
  background: linear-gradient(
    112deg,
    transparent 40%,
    rgba(255, 240, 231, 0.03) 46%,
    rgba(248, 201, 58, 0.2) 50%,
    rgba(239, 57, 69, 0.08) 54%,
    transparent 60%
  );
  content: "";
  pointer-events: none;
  mix-blend-mode: screen;
  animation: eclipse-sweep 6.5s ease-in-out infinite;
}

.hero-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.orbit {
  position: absolute;
  z-index: 1;
  top: -8%;
  left: -31%;
  width: 73%;
  opacity: 0.74;
  translate:
    calc(var(--hero-x, 0) * -12px)
    calc(var(--hero-y, 0) * -8px);
  transform-origin: 50% 50%;
  animation:
    orbit-spin 14s linear infinite,
    orbit-veil-pulse 4.8s ease-in-out infinite;
  will-change: transform, filter, opacity;
}

.hero-rune-wheel {
  --rune-orbit-duration: 22s;
  position: absolute;
  z-index: 0;
  top: -8%;
  left: 50%;
  width: 112%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(248, 201, 58, 0.13);
  border-radius: 50%;
  animation: rune-wheel-spin var(--rune-orbit-duration) linear infinite;
  will-change: transform;
}

.hero-rune-wheel::before,
.hero-rune-wheel::after {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255, 240, 231, 0.13);
  border-radius: 50%;
  content: "";
}

.hero-rune-wheel::before {
  border-top-color: rgba(248, 201, 58, 0.34);
  border-bottom-color: rgba(120, 84, 127, 0.28);
  box-shadow: 0 -0.3rem 0.8rem rgba(248, 201, 58, 0.22);
  animation: occult-ring-reverse 13s linear infinite;
}

.hero-rune-wheel::after {
  inset: 31%;
  border-color: rgba(239, 57, 69, 0.16);
  border-top-color: rgba(248, 201, 58, 0.26);
  border-style: solid;
  box-shadow:
    inset 0 0 2rem rgba(239, 57, 69, 0.06),
    0 -0.45rem 1rem rgba(248, 201, 58, 0.24),
    0 0 2.5rem rgba(248, 201, 58, 0.06);
  animation: occult-inner-orbit 9s linear infinite;
}

.hero-rune-wheel span,
.hero-rune-wheel i {
  position: absolute;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--gold);
  font-family: var(--display);
  font-style: normal;
  filter: drop-shadow(0 0 8px rgba(248, 201, 58, 0.55));
  animation:
    rune-counter-spin var(--rune-orbit-duration) linear infinite,
    rune-flare 3.6s ease-in-out infinite;
}

.hero-rune-wheel span:nth-child(1) {
  top: 4%;
  left: 50%;
}

.hero-rune-wheel span:nth-child(2) {
  top: 50%;
  right: 2%;
  color: var(--red);
}

.hero-rune-wheel span:nth-child(3) {
  bottom: 4%;
  left: 50%;
}

.hero-rune-wheel span:nth-child(4) {
  top: 50%;
  left: 2%;
}

.hero-rune-wheel i {
  top: 50%;
  left: 50%;
  color: rgba(255, 240, 231, 0.55);
  font-size: 1.4rem;
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: clamp(6.25rem, 9vw, 8.5rem);
  filter: drop-shadow(0 1.5rem 1.5rem rgba(0, 0, 0, 0.32));
  animation: card-float 6s ease-in-out infinite;
}

.floating-card-left {
  bottom: 6%;
  left: -15%;
  transform: rotate(-9deg);
  --card-x: calc(var(--hero-x, 0) * -10px);
  --card-y: calc(var(--hero-y, 0) * -7px);
}

.floating-card-right {
  top: 13%;
  right: -12%;
  width: clamp(5.5rem, 8vw, 7.6rem);
  transform: rotate(11deg);
  --card-x: calc(var(--hero-x, 0) * 14px);
  --card-y: calc(var(--hero-y, 0) * 9px);
  animation-delay: -3s;
}

.art-caption {
  position: absolute;
  z-index: 4;
  right: 1.5rem;
  bottom: 1.5rem;
  width: min(14rem, calc(100% - 3rem));
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-left: 2px solid rgba(248, 201, 58, 0.72);
  background: linear-gradient(
    90deg,
    rgba(9, 11, 32, 0.88),
    rgba(9, 11, 32, 0.58)
  );
  color: var(--gold);
  box-shadow: 0 0.8rem 2rem rgba(9, 11, 32, 0.22);
  font-size: clamp(0.66rem, 0.8vw, 0.76rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1.5;
  text-transform: uppercase;
  text-wrap: balance;
  backdrop-filter: blur(7px);
}

.hero-ribbon {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 3.65rem;
  margin: 0 calc(var(--page-gutter) * -1);
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 32, 0.72);
  color: var(--cream-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.hero-ribbon i {
  color: var(--gold);
  font-style: normal;
}

.project-section,
.gameplay-section {
  position: relative;
  padding: var(--section-space) var(--page-gutter);
}

.star-field {
  overflow: hidden;
}

.star-field::before {
  z-index: 0;
  opacity: 0.43;
}

.star-field > * {
  position: relative;
  z-index: 1;
}

.project-section {
  display: grid;
  grid-template-columns: minmax(20rem, 0.88fr) minmax(20rem, 0.62fr);
  gap: clamp(3.5rem, 6vw, 5rem) clamp(3rem, 10vw, 10rem);
}

.section-heading {
  max-width: 48rem;
}

.section-heading h2,
.story-panel h2,
.first-contact h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(2.8rem, 5.5vw, 5.8rem);
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.section-heading h2 em {
  color: var(--gold);
  font-family: var(--display);
  font-weight: 400;
}

.project-intro {
  align-self: end;
  padding: 0 0 0.8rem clamp(0rem, 3vw, 3rem);
  border-left: 1px solid var(--line);
  color: var(--cream-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.project-intro .lead {
  color: var(--cream);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.5;
}

.world-window {
  position: relative;
  grid-column: 1 / -1;
  margin: clamp(2rem, 5vw, 5rem) 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 240, 231, 0.24);
  background: var(--plum);
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.26);
  transform-style: preserve-3d;
  transition:
    transform 220ms ease-out,
    border-color 300ms ease,
    box-shadow 500ms ease;
  will-change: transform;
}

.world-window::before,
.world-window::after {
  position: absolute;
  z-index: 2;
  top: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  border-top: 1px solid var(--gold);
  content: "";
}

.world-window::before {
  left: 1rem;
  border-left: 1px solid var(--gold);
}

.world-window::after {
  right: 1rem;
  border-right: 1px solid var(--gold);
}

.world-window img {
  width: 100%;
  min-height: 28rem;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.world-window:hover img {
  transform: scale(1.025);
}

.world-window:hover {
  border-color: rgba(248, 201, 58, 0.58);
  box-shadow:
    0 3rem 7rem rgba(0, 0, 0, 0.34),
    0 0 3rem rgba(248, 201, 58, 0.09);
}

.window-enchantment {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.window-enchantment span {
  position: absolute;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid rgba(248, 201, 58, 0.34);
  border-radius: 50%;
  background: rgba(9, 11, 32, 0.42);
  color: var(--gold);
  font-family: var(--display);
  box-shadow:
    0 0 0 0.6rem rgba(248, 201, 58, 0.025),
    0 0 1.6rem rgba(248, 201, 58, 0.22);
  backdrop-filter: blur(6px);
  animation: enchantment-pulse 4.6s ease-in-out infinite;
}

.window-enchantment span:nth-child(1) {
  top: 12%;
  left: 8%;
}

.window-enchantment span:nth-child(2) {
  top: 18%;
  right: 9%;
  color: var(--red);
  animation-delay: -1.5s;
}

.window-enchantment span:nth-child(3) {
  right: 17%;
  bottom: 18%;
  animation-delay: -3s;
}

.window-enchantment i {
  position: absolute;
  top: 46%;
  left: -45%;
  width: 190%;
  height: 1px;
  background: linear-gradient(90deg, transparent 28%, rgba(248, 201, 58, 0.72), transparent 72%);
  box-shadow: 0 0 1.2rem rgba(248, 201, 58, 0.45);
  transform: translateX(-24%) rotate(-7deg);
  animation: enchantment-scan 7s ease-in-out infinite;
}

.world-window figcaption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 1.2rem;
  background: linear-gradient(0deg, rgba(9, 11, 32, 0.95), rgba(9, 11, 32, 0));
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.world-window figcaption span::before {
  margin-right: 0.65rem;
  color: var(--gold);
  content: "✦";
}

.gameplay-section {
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(95, 49, 79, 0.88), rgba(17, 19, 46, 0.94)),
    url("../images/world-palace.webp") center / cover fixed;
}

.gameplay-section::before {
  position: absolute;
  z-index: 0;
  inset: -20%;
  background:
    radial-gradient(circle at 24% 38%, rgba(248, 201, 58, 0.16), transparent 24rem),
    radial-gradient(circle at 78% 62%, rgba(239, 57, 69, 0.14), transparent 29rem);
  content: "";
  opacity: 0.72;
  pointer-events: none;
  transform: translate3d(-2%, 1%, 0) scale(1.02);
  animation: aurora-wander 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.gameplay-section > * {
  position: relative;
  z-index: 1;
}

.section-heading.compact {
  display: grid;
  max-width: none;
  grid-template-columns: 0.6fr 1.4fr;
  align-items: end;
  gap: 2rem;
}

.section-heading.compact .eyebrow {
  margin: 0 0 0.5rem;
}

.section-heading.compact h2 {
  max-width: 56rem;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.pillar-grid {
  display: grid;
  max-width: 90rem;
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  padding: 0.75rem 0.25rem 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}

.pillar-card {
  position: relative;
  display: flex;
  min-height: 29rem;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 3vw, 3rem);
  border: 1px solid rgba(255, 240, 231, 0.34);
  background: linear-gradient(180deg, rgba(17, 19, 46, 0.48), rgba(9, 11, 32, 0.9));
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    border-color 220ms ease,
    transform 220ms ease,
    translate 220ms ease,
    background 220ms ease;
  will-change: transform;
}

.pillar-card:hover {
  z-index: 2;
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(95, 49, 79, 0.72), rgba(9, 11, 32, 0.94));
  translate: 0 -0.35rem;
}

.card-glow {
  position: absolute;
  z-index: 0;
  inset: -1px;
  background:
    radial-gradient(
      18rem circle at var(--glow-x, 50%) var(--glow-y, 50%),
      rgba(248, 201, 58, 0.25),
      rgba(239, 57, 69, 0.08) 38%,
      transparent 70%
    );
  opacity: 0.16;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 320ms ease;
}

.pillar-card:hover .card-glow,
.team-card:hover .card-glow {
  opacity: 0.86;
}

.card-corners {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.86rem;
  line-height: 1;
}

.card-corners b {
  color: var(--red);
  font-size: 1.2rem;
}

.pillar-suit {
  position: absolute;
  top: 8%;
  right: 8%;
  margin: 0;
  color: rgba(248, 201, 58, 0.15);
  font-family: var(--display);
  font-size: 11rem;
  line-height: 1;
  transform: rotate(7deg);
  transition: color 220ms ease;
  transform-origin: 50% 55%;
  animation: card-sigil-drift 7s ease-in-out infinite alternate;
}

.pillar-card:nth-child(2) .pillar-suit {
  animation-delay: -3.5s;
  animation-direction: alternate-reverse;
}

.pillar-card:nth-child(3) .pillar-suit {
  animation-delay: -7s;
}

.pillar-card:hover .pillar-suit {
  color: rgba(248, 201, 58, 0.28);
}

.pillar-card h3 {
  position: relative;
  z-index: 1;
  max-width: 18rem;
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.13;
}

.pillar-card > p:not(.pillar-suit) {
  position: relative;
  z-index: 1;
  max-width: 24rem;
  margin: 1.35rem 0 0;
  color: var(--cream-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-rule {
  position: relative;
  z-index: 1;
  width: 3.25rem;
  height: 1px;
  margin-top: 1.5rem;
  background: var(--gold);
}

.story-section {
  position: relative;
  display: grid;
  min-height: 52rem;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 0.72fr);
  align-items: stretch;
  background: var(--plum-dark);
}

.story-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: 70% 50%;
  animation: backdrop-drift 18s ease-in-out infinite alternate;
}

.story-section::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(34, 20, 48, 0.97) 0%, rgba(69, 34, 63, 0.9) 44%, transparent 75%);
  content: "";
}

.story-sigil {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 10%;
  display: grid;
  width: min(25vw, 22rem);
  aspect-ratio: 1;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(248, 201, 58, 0.25);
  border-radius: 50%;
  color: rgba(248, 201, 58, 0.72);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  filter: drop-shadow(0 0 2rem rgba(248, 201, 58, 0.18));
  animation: sigil-breathe 5s ease-in-out infinite;
}

.story-sigil::before,
.story-sigil::after {
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(255, 240, 231, 0.22);
  border-radius: 50%;
  content: "";
  animation: portal-spin 28s linear infinite;
}

.story-sigil::after {
  inset: 28%;
  border-color: rgba(239, 57, 69, 0.35);
  border-style: solid;
  animation-direction: reverse;
  animation-duration: 17s;
}

.story-sigil span {
  text-shadow: 0 0 1.5rem rgba(248, 201, 58, 0.75);
}

.story-sigil i {
  position: absolute;
  width: 132%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 201, 58, 0.38), transparent);
  rotate: -18deg;
  animation: sigil-line 6s ease-in-out infinite;
}

.story-panel {
  position: relative;
  z-index: 3;
  max-width: 49rem;
  padding: clamp(6rem, 11vw, 10rem) var(--page-gutter);
  align-self: center;
}

.story-panel::before {
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: clamp(0.55rem, 2vw, 1.8rem);
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(248, 201, 58, 0.52) 32%,
    rgba(239, 57, 69, 0.48) 56%,
    transparent 100%
  );
  background-position: center 100%;
  background-size: 100% 220%;
  content: "";
  opacity: 0.62;
  pointer-events: none;
  animation: omen-line-travel 5.5s ease-in-out infinite;
}

.story-panel h2 {
  font-size: clamp(3rem, 5.7vw, 5.9rem);
}

.story-panel p:not(.eyebrow) {
  max-width: 39rem;
  color: var(--cream-muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.story-panel .story-lines {
  margin: 2rem 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  gap: 0.6rem;
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.first-contact {
  position: relative;
  padding: var(--section-space) var(--page-gutter);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(239, 57, 69, 0.14), transparent 26rem),
    var(--ink);
}

.first-contact::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(65vw, 54rem);
  aspect-ratio: 1;
  border: 1px solid rgba(248, 201, 58, 0.15);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 3rem rgba(248, 201, 58, 0.025),
    0 0 0 8rem rgba(248, 201, 58, 0.018);
  animation: aura-breathe 10s ease-in-out infinite;
}

.first-contact-content {
  position: relative;
  z-index: 2;
}

.first-contact-content > p {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.first-contact h2 {
  max-width: 62rem;
  margin: 0 auto;
}

.first-contact-content > div {
  display: flex;
  margin-top: 2.75rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.portal-glyph {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(74vw, 48rem);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(248, 201, 58, 0.15);
  border-radius: 50%;
  color: rgba(248, 201, 58, 0.38);
  pointer-events: none;
  box-shadow:
    inset 0 0 5rem rgba(239, 57, 69, 0.04),
    0 0 5rem rgba(120, 84, 127, 0.08);
}

.portal-glyph::before,
.portal-glyph::after {
  position: absolute;
  border: 1px solid rgba(255, 240, 231, 0.11);
  content: "";
  rotate: 45deg;
}

.portal-glyph::before {
  inset: 17%;
}

.portal-glyph::after {
  inset: 29%;
  border-color: rgba(239, 57, 69, 0.16);
  rotate: 22.5deg;
}

.portal-runes {
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(248, 201, 58, 0.24);
  border-radius: 50%;
  animation: portal-spin 34s linear infinite;
}

.portal-runes::before,
.portal-runes::after {
  position: absolute;
  top: 50%;
  left: -2%;
  width: 104%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 201, 58, 0.16), transparent);
  content: "";
}

.portal-runes::after {
  rotate: 90deg;
}

.portal-runes span,
.portal-runes b {
  position: absolute;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 400;
  animation: portal-counter-spin 34s linear infinite;
}

.portal-runes span:nth-child(1) {
  top: -1.1rem;
  left: calc(50% - 1.1rem);
}

.portal-runes span:nth-child(2) {
  top: calc(50% - 1.1rem);
  right: -1.1rem;
  color: var(--red);
}

.portal-runes span:nth-child(3) {
  bottom: -1.1rem;
  left: calc(50% - 1.1rem);
}

.portal-runes span:nth-child(4) {
  top: calc(50% - 1.1rem);
  left: -1.1rem;
}

.portal-runes b:nth-of-type(1) {
  top: 9%;
  right: 14%;
}

.portal-runes b:nth-of-type(2) {
  bottom: 9%;
  left: 14%;
}

.portal-glyph > i {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-style: normal;
  text-shadow: 0 0 2rem rgba(248, 201, 58, 0.6);
  animation: sigil-breathe 4s ease-in-out infinite;
}

.studio-section {
  display: grid;
  min-height: 54rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(28rem, 0.92fr);
  background: var(--cream);
  color: var(--ink);
}

.studio-art {
  position: relative;
  min-height: 46rem;
  overflow: hidden;
  background: var(--plum);
  transform-style: preserve-3d;
  transition:
    transform 220ms ease-out,
    filter 500ms ease;
  will-change: transform;
}

.studio-art::before {
  position: absolute;
  z-index: 2;
  inset: -12%;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 249, 216, 0.86) 0 2px, rgba(248, 201, 58, 0.16) 3px, transparent 1.4rem),
    radial-gradient(circle at 73% 42%, rgba(255, 249, 216, 0.7) 0 1px, rgba(120, 84, 127, 0.22) 3px, transparent 1.6rem),
    radial-gradient(circle at 47% 71%, rgba(255, 249, 216, 0.76) 0 2px, rgba(239, 57, 69, 0.14) 4px, transparent 1.8rem),
    radial-gradient(circle at 85% 20%, rgba(248, 201, 58, 0.58) 0 1px, transparent 1.3rem);
  content: "";
  opacity: 0.48;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: spirit-haze 9s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.studio-art::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(9, 11, 32, 0.72)),
    linear-gradient(90deg, transparent 65%, rgba(9, 11, 32, 0.18));
  content: "";
}

.studio-art > img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.studio-art:hover > img {
  transform: scale(1.025);
}

.spirit-lights {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.spirit-lights i {
  position: absolute;
  top: var(--spirit-top);
  left: var(--spirit-left);
  width: var(--spirit-size, 0.55rem);
  height: var(--spirit-size, 0.55rem);
  border-radius: 50%;
  background: #fff9d8;
  box-shadow:
    0 0 0.7rem rgba(255, 249, 216, 0.95),
    0 0 2rem rgba(248, 201, 58, 0.8),
    0 0 4rem rgba(120, 84, 127, 0.52);
  animation: spirit-float var(--spirit-duration, 7s) var(--spirit-delay, 0s) ease-in-out infinite;
}

.spirit-lights i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(rgba(248, 201, 58, 0.5), transparent);
  content: "";
  transform: translate(-50%, 0);
}

.spirit-lights i:nth-child(1) {
  --spirit-top: 24%;
  --spirit-left: 18%;
  --spirit-duration: 6.4s;
}

.spirit-lights i:nth-child(2) {
  --spirit-top: 39%;
  --spirit-left: 74%;
  --spirit-delay: -2.2s;
  --spirit-duration: 8.2s;
}

.spirit-lights i:nth-child(3) {
  --spirit-top: 65%;
  --spirit-left: 44%;
  --spirit-delay: -4.1s;
  --spirit-size: 0.38rem;
}

.spirit-lights i:nth-child(4) {
  --spirit-top: 73%;
  --spirit-left: 81%;
  --spirit-delay: -1.3s;
  --spirit-duration: 9s;
}

.spirit-lights i:nth-child(5) {
  --spirit-top: 17%;
  --spirit-left: 53%;
  --spirit-delay: -5.4s;
  --spirit-size: 0.32rem;
}

.studio-art-stamp {
  position: absolute;
  z-index: 3;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(255, 240, 231, 0.5);
  background: rgba(9, 11, 32, 0.68);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.studio-art-stamp img {
  width: 1.85rem;
}

.studio-copy {
  display: flex;
  max-width: 49rem;
  padding: clamp(5rem, 9vw, 9rem) clamp(2rem, 6vw, 6rem);
  flex-direction: column;
  justify-content: center;
}

.studio-copy .eyebrow {
  color: var(--plum);
}

.studio-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.2rem, 5.3vw, 5.8rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.studio-copy > p:not(.eyebrow) {
  max-width: 41rem;
  margin: 1rem 0 0;
  color: #4a4658;
  font-size: 1rem;
  line-height: 1.8;
}

.studio-copy .studio-lead {
  margin-top: 2rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 800;
  line-height: 1.5;
}

.studio-principles {
  display: grid;
  margin-top: 2.4rem;
  border-top: 1px solid rgba(17, 19, 46, 0.2);
}

.studio-principles div {
  display: grid;
  padding: 1rem 0;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(17, 19, 46, 0.2);
}

.studio-principles b {
  color: var(--plum);
  font-family: var(--display);
  font-size: 0.85rem;
}

.studio-principles span {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-section {
  position: relative;
  overflow: hidden;
  padding: var(--section-space) var(--page-gutter);
}

.team-section::after {
  position: absolute;
  z-index: 0;
  inset: -22%;
  background:
    radial-gradient(circle at 22% 32%, rgba(120, 84, 127, 0.24), transparent 26rem),
    radial-gradient(circle at 76% 68%, rgba(248, 201, 58, 0.09), transparent 22rem);
  content: "";
  opacity: 0.66;
  pointer-events: none;
  transform: translate3d(2%, -1%, 0);
  animation: aurora-wander 22s ease-in-out infinite alternate-reverse;
  will-change: transform, opacity;
}

.team-heading {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 90rem;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 8vw, 8rem);
}

.team-heading .section-heading h2 {
  max-width: 53rem;
}

.team-heading > p {
  margin: 0 0 0.7rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
  color: var(--cream-muted);
  line-height: 1.8;
}

.team-grid {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 90rem;
  margin: clamp(3.5rem, 6vw, 5rem) auto 0;
  padding: 0.75rem 0.25rem 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
}

.team-card {
  position: relative;
  display: flex;
  min-height: 28rem;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.6rem, 2.2vw, 2rem);
  border: 1px solid rgba(255, 240, 231, 0.28);
  background:
    linear-gradient(180deg, rgba(95, 49, 79, 0.32), rgba(9, 11, 32, 0.92)),
    var(--ink-soft);
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    transform 220ms ease,
    translate 220ms ease,
    border-color 220ms ease;
  will-change: transform;
}

.team-card::before {
  position: absolute;
  top: -5rem;
  right: -4rem;
  width: 14rem;
  aspect-ratio: 1;
  border: 1px solid rgba(248, 201, 58, 0.1);
  border-top-color: rgba(248, 201, 58, 0.34);
  border-right-color: transparent;
  border-bottom-color: rgba(239, 57, 69, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 2rem rgba(248, 201, 58, 0.022),
    0 0 0 4rem rgba(248, 201, 58, 0.014);
  animation: team-orbit-drift 12s linear infinite;
}

.team-card:nth-child(even)::before {
  animation-direction: reverse;
  animation-duration: 17s;
}

.team-card:nth-child(3n + 2) {
  background:
    linear-gradient(180deg, rgba(239, 57, 69, 0.17), rgba(9, 11, 32, 0.92)),
    var(--ink-soft);
}

.team-card:nth-child(3n) {
  background:
    linear-gradient(180deg, rgba(120, 84, 127, 0.4), rgba(9, 11, 32, 0.92)),
    var(--ink-soft);
}

.team-card:hover {
  z-index: 2;
  border-color: var(--gold);
  translate: 0 -0.35rem;
}

.team-card-top {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
}

.team-card-top span {
  font-family: var(--display);
  font-size: 1.45rem;
}

.team-card-top b {
  color: rgba(255, 240, 231, 0.68);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 400;
}

.team-monogram {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  color: rgba(248, 201, 58, 0.1);
  font-family: var(--display);
  font-size: 14rem;
  line-height: 1;
  transform: translateX(-50%);
}

.team-card > p:not(.team-copy) {
  position: relative;
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.team-card h3 {
  position: relative;
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.team-card h4 {
  position: relative;
  margin: 0.25rem 0 0;
  color: var(--cream);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-copy {
  position: relative;
  min-height: 5.3rem;
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 240, 231, 0.18);
  color: var(--cream-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.contact-section {
  position: relative;
  display: grid;
  min-height: 54rem;
  overflow: hidden;
  place-items: center;
  padding: var(--section-space) var(--page-gutter);
  background: var(--plum-dark);
  text-align: center;
}

.contact-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 65%;
  animation: backdrop-drift 20s ease-in-out infinite alternate-reverse;
}

.contact-section::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(46, 25, 54, 0.78), rgba(17, 19, 46, 0.92)),
    radial-gradient(circle, transparent 0%, rgba(9, 11, 32, 0.72) 74%);
  content: "";
}

.contact-sigil {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(72vw, 43rem);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(248, 201, 58, 0.13);
  border-radius: 50%;
  color: rgba(248, 201, 58, 0.55);
  pointer-events: none;
  box-shadow:
    0 0 0 5rem rgba(248, 201, 58, 0.015),
    inset 0 0 6rem rgba(239, 57, 69, 0.035);
}

.contact-sigil::before,
.contact-sigil::after,
.contact-sigil span {
  position: absolute;
  border: 1px solid rgba(255, 240, 231, 0.13);
  border-radius: 50%;
  content: "";
}

.contact-sigil::before {
  inset: 8%;
  border-style: dashed;
  animation: portal-spin 38s linear infinite;
}

.contact-sigil::after {
  inset: 24%;
  border-color: rgba(239, 57, 69, 0.2);
  animation: portal-spin 24s linear infinite reverse;
}

.contact-sigil span:nth-child(1) {
  inset: 16%;
  border-radius: 0;
  rotate: 45deg;
  animation: contact-diamond 16s ease-in-out infinite alternate;
}

.contact-sigil span:nth-child(2) {
  inset: 34%;
  border-color: rgba(248, 201, 58, 0.3);
}

.contact-sigil i {
  font-family: var(--display);
  font-size: 2rem;
  font-style: normal;
  text-shadow: 0 0 1.5rem rgba(248, 201, 58, 0.85);
  animation: sigil-breathe 4.5s ease-in-out infinite;
}

.contact-inner {
  position: relative;
  z-index: 3;
  display: flex;
  max-width: 64rem;
  align-items: center;
  flex-direction: column;
}

.contact-logo {
  width: clamp(12rem, 20vw, 19rem);
  margin-bottom: 3rem;
}

.contact-kicker {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-inner h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(3rem, 6.2vw, 6.5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.contact-inner > p:not(.contact-kicker) {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  color: var(--cream-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.contact-actions {
  display: flex;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  margin-top: 3.5rem;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid rgba(255, 240, 231, 0.22);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 1.25rem;
  border-right: 1px solid rgba(255, 240, 231, 0.14);
  color: var(--cream-muted);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.social-links a:first-child {
  border-left: 1px solid rgba(255, 240, 231, 0.14);
}

.social-links a:hover,
.social-links a:focus-visible {
  background: rgba(248, 201, 58, 0.1);
  color: var(--gold);
}

.site-footer {
  display: grid;
  min-height: 11rem;
  padding: 2.5rem var(--page-gutter);
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid rgba(255, 240, 231, 0.18);
  background: var(--ink-deep);
  color: rgba(233, 214, 207, 0.72);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer img {
  display: block;
  width: 11rem;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}

.site-footer p:nth-of-type(1) {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}

.site-footer p:last-child {
  justify-self: end;
}

body.admin-bar .site-header {
  top: 32px;
}

.contact-form-shell {
  width: min(100%, 46rem);
  margin-top: 2.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 240, 231, 0.22);
  background: rgba(9, 11, 32, 0.48);
  text-align: left;
  backdrop-filter: blur(14px);
}

.contact-form-shell .wpcf7-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form-shell .wpcf7-form > p {
  margin: 0;
}

.contact-form-shell .wpcf7-form > p:nth-last-child(-n + 3) {
  grid-column: 1 / -1;
}

.contact-form-shell label {
  display: grid;
  gap: 0.45rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-form-shell input:not([type="submit"]),
.contact-form-shell textarea {
  width: 100%;
  border: 1px solid rgba(255, 240, 231, 0.28);
  border-radius: 0;
  outline: none;
  background: rgba(9, 11, 32, 0.66);
  color: var(--cream);
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form-shell input:not([type="submit"]) {
  min-height: 3.25rem;
  padding: 0 0.9rem;
}

.contact-form-shell textarea {
  min-height: 8.5rem;
  padding: 0.9rem;
  resize: vertical;
}

.contact-form-shell input:focus,
.contact-form-shell textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(248, 201, 58, 0.1);
}

.contact-form-shell input[type="submit"] {
  min-height: 3.2rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 0;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form-shell .wpcf7-spinner {
  margin: 0 0 0 0.75rem;
}

.contact-form-shell .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  color: var(--cream);
}

.content-shell {
  min-height: calc(100svh - 11rem);
  padding: clamp(9rem, 14vw, 12rem) var(--page-gutter) clamp(5rem, 8vw, 8rem);
  background:
    linear-gradient(rgba(17, 19, 46, 0.86), rgba(17, 19, 46, 0.96)),
    url("../images/star-map.webp") center / cover fixed;
}

.content-shell > article,
.content-shell > .archive-shell {
  max-width: 64rem;
  margin: 0 auto;
}

.content-shell h1 {
  margin: 0 0 2rem;
  color: var(--cream);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.entry-content {
  color: var(--cream-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.entry-content img {
  height: auto;
}

.archive-card {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 240, 231, 0.18);
}

.archive-card h2 {
  margin: 0 0 0.5rem;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
}

.archive-card p {
  color: var(--cream-muted);
  line-height: 1.7;
}

.pagination {
  margin-top: 2.5rem;
  color: var(--gold);
}

/* Native Gutenberg homepage compatibility. */
.cts-editor-home {
  overflow: hidden;
  background: var(--ink);
}

.cts-editor-home > *,
.cts-editor-home .wp-block-group,
.cts-editor-home .wp-block-columns,
.cts-editor-home .wp-block-cover,
.cts-editor-home .wp-block-image,
.cts-editor-home .wp-block-buttons {
  margin-block-start: 0;
  margin-block-end: 0;
}

.cts-editor-home > .alignfull {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.cts-editor-home .wp-block-image img {
  width: 100%;
}

.cts-editor-home .hero-grid,
.cts-editor-home .team-grid,
.cts-editor-home .pillar-grid,
.cts-editor-home .team-heading {
  width: 100%;
  max-width: 90rem;
}

.hero .cts-hero-title {
  display: block;
  width: max-content;
  max-width: 100%;
  background: linear-gradient(
    105deg,
    var(--cream) 20%,
    #fff 36%,
    var(--gold) 48%,
    var(--cream) 60%
  );
  background-position: 120% center;
  background-size: 240% 100%;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: title-gleam 8s 1.2s ease-in-out infinite;
}

.hero-visual > .wp-block-image {
  margin: 0;
}

.hero-rune-wheel > p {
  position: absolute;
  display: grid;
  width: 2rem;
  height: 2rem;
  margin: 0;
  place-items: center;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1rem;
  filter: drop-shadow(0 0 8px rgba(248, 201, 58, 0.55));
  animation:
    rune-counter-spin var(--rune-orbit-duration) linear infinite,
    rune-flare 3.6s ease-in-out infinite;
}

.hero-rune-wheel > p:nth-child(1) {
  top: 4%;
  left: 50%;
}

.hero-rune-wheel > p:nth-child(2) {
  top: 50%;
  right: 2%;
  color: var(--red);
}

.hero-rune-wheel > p:nth-child(3) {
  bottom: 4%;
  left: 50%;
}

.hero-rune-wheel > p:nth-child(4) {
  top: 50%;
  left: 2%;
}

.hero-rune-wheel > p:nth-child(5) {
  top: 50%;
  left: 50%;
  color: rgba(255, 240, 231, 0.55);
  font-size: 1.4rem;
}

.cts-editor-home .wp-block-button {
  margin: 0;
  background: transparent;
}

.cts-editor-home .wp-block-button__link {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.cts-editor-home .button-primary .wp-block-button__link {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(248, 201, 58, 0.14);
}

.cts-editor-home .button-primary .wp-block-button__link:hover,
.cts-editor-home .button-primary .wp-block-button__link:focus-visible {
  box-shadow: 0 18px 42px rgba(248, 201, 58, 0.24);
  transform: translateY(-2px);
}

.cts-editor-home .button-ghost .wp-block-button__link {
  border-color: rgba(255, 240, 231, 0.35);
  background: transparent;
  color: var(--cream);
}

.cts-editor-home .button-ghost .wp-block-button__link:hover,
.cts-editor-home .button-ghost .wp-block-button__link:focus-visible {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-2px);
}

.cts-magnetic {
  translate: var(--magnet-x, 0) var(--magnet-y, 0);
  transition: translate 160ms ease;
}

.hero-ribbon > p {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.hero-ribbon .ribbon-separator {
  color: var(--gold);
}

.cts-world-window {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  margin: clamp(2rem, 5vw, 5rem) 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 240, 231, 0.24);
  background: var(--plum);
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.26);
  transform-style: preserve-3d;
  transition:
    transform 220ms ease-out,
    border-color 300ms ease,
    box-shadow 500ms ease;
  will-change: transform;
}

.cts-world-window::before,
.cts-world-window::after {
  position: absolute;
  z-index: 4;
  top: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  border-top: 1px solid var(--gold);
  content: "";
}

.cts-world-window::before {
  left: 1rem;
  border-left: 1px solid var(--gold);
}

.cts-world-window::after {
  right: 1rem;
  border-right: 1px solid var(--gold);
}

.cts-world-window:hover {
  border-color: rgba(248, 201, 58, 0.58);
  box-shadow:
    0 3rem 7rem rgba(0, 0, 0, 0.34),
    0 0 3rem rgba(248, 201, 58, 0.09);
}

.cts-world-window .wp-block-cover__image-background {
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cts-world-window:hover .wp-block-cover__image-background {
  transform: scale(1.025);
}

.cts-world-window .wp-block-cover__inner-container {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
}

.cts-world-caption {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 1.2rem;
  background: linear-gradient(0deg, rgba(9, 11, 32, 0.95), rgba(9, 11, 32, 0));
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cts-world-caption p {
  margin: 0;
}

.cts-world-caption p::before {
  margin-right: 0.65rem;
  color: var(--gold);
  content: "✦";
}

.pillar-card > * {
  margin-block-start: 0;
}

.pillar-card .card-index {
  position: relative;
  z-index: 2;
  top: auto;
  left: auto;
  align-self: flex-start;
  margin: 0 0 auto;
  padding-bottom: 2.5rem;
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.pillar-card .card-rule {
  width: 3.25rem;
  height: 1px;
  margin-top: 1.5rem;
  margin-right: auto;
  margin-left: 0;
  border: 0;
  background: var(--gold);
}

.cts-story-cover {
  display: grid;
  min-height: 52rem;
  place-items: stretch;
}

.cts-story-cover > .wp-block-cover__image-background {
  z-index: 0;
  transform-origin: 70% 50%;
  animation: backdrop-drift 18s ease-in-out infinite alternate;
}

.cts-story-cover > .wp-block-cover__background {
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(34, 20, 48, 0.97) 0%,
    rgba(69, 34, 63, 0.9) 44%,
    transparent 75%
  ) !important;
  opacity: 1 !important;
}

.cts-story-cover > .wp-block-cover__inner-container {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(0, 0.72fr);
}

.cts-story-cover .story-panel {
  width: 100%;
  min-width: 0;
  max-width: 49rem;
  grid-column: 1;
}

.cts-story-cover .story-panel > * {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.cts-story-cover .story-panel > :is(h2, p) {
  width: 100%;
  max-width: 39rem;
}

.cts-story-cover .text-link {
  width: max-content;
}

.cts-story-cover .text-link a {
  color: inherit;
}

.first-contact .portal-glyph > p {
  margin: 0;
  color: inherit;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  text-shadow: 0 0 2rem rgba(248, 201, 58, 0.6);
  animation: sigil-breathe 4s ease-in-out infinite;
}

.cts-centered-actions {
  display: flex;
  margin-top: 2.4rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.studio-section.wp-block-columns {
  gap: 0;
  margin: 0;
}

.studio-art-column {
  min-width: 0;
  margin: 0;
}

.studio-art-column .studio-art {
  height: 100%;
}

.studio-art .wp-block-cover__inner-container {
  position: absolute;
  z-index: 3;
  inset: 0;
}

.studio-art-stamp {
  top: auto;
  left: auto;
}

.studio-art-stamp .wp-block-image,
.studio-art-stamp p {
  margin: 0;
}

.studio-principles > p {
  display: grid;
  margin: 0;
  padding: 1rem 0;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(17, 19, 46, 0.2);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.studio-principles > p strong {
  color: var(--plum);
  font-family: var(--display);
  font-size: 0.85rem;
}

.team-card > * {
  margin-block-start: 0;
}

.team-card > p:not(.team-copy) {
  position: relative;
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cts-contact-cover {
  display: grid;
  place-items: center;
}

.cts-contact-cover > .wp-block-cover__image-background {
  z-index: 0;
  transform-origin: 50% 65%;
  animation: backdrop-drift 20s ease-in-out infinite alternate-reverse;
}

.cts-contact-cover > .wp-block-cover__background {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(46, 25, 54, 0.78), rgba(17, 19, 46, 0.92)),
    radial-gradient(circle, transparent 0%, rgba(9, 11, 32, 0.72) 74%) !important;
  opacity: 1 !important;
}

.cts-contact-cover > .wp-block-cover__inner-container {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  place-items: center;
}

.cts-contact-cover .contact-logo {
  width: clamp(12rem, 20vw, 19rem) !important;
  animation: relic-glow 5s ease-in-out infinite;
}

.cts-contact-cover .contact-logo img {
  width: 100% !important;
}

.cts-contact-cover .wp-block-shortcode:empty {
  display: none;
}

.cts-contact-cover .social-links {
  gap: 0;
}

.cts-contact-cover .social-links .wp-block-button {
  display: contents;
}

.cts-contact-cover .social-links .wp-block-button__link {
  min-height: auto;
  padding: 1rem 1.25rem;
  border: 0;
  border-right: 1px solid rgba(255, 240, 231, 0.14);
  border-radius: 0;
  background: transparent;
  color: var(--cream-muted);
  font-size: 0.69rem;
}

.cts-contact-cover .social-links .wp-block-button:first-child .wp-block-button__link {
  border-left: 1px solid rgba(255, 240, 231, 0.14);
}

.cts-contact-cover .social-links .wp-block-button__link:hover,
.cts-contact-cover .social-links .wp-block-button__link:focus-visible {
  background: rgba(248, 201, 58, 0.1);
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.motion-ready
  :is(.world-window, .pillar-card, .studio-art, .team-card)[data-tilt].is-revealed {
  transform: perspective(1100px) rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
}

.motion-ready .cts-tilt.is-revealed {
  transform: perspective(1100px) rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
}

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

@keyframes orbit-veil-pulse {
  0%,
  100% {
    opacity: 0.64;
    filter: drop-shadow(0 0 0.5rem rgba(248, 201, 58, 0.08));
  }
  48% {
    opacity: 0.88;
    filter:
      brightness(1.14)
      drop-shadow(0 0 1.2rem rgba(248, 201, 58, 0.24));
  }
}

@keyframes celestial-arc-turn {
  0% {
    opacity: 0.24;
    transform: translateX(-50%) rotate(0deg);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.24;
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes occult-ring-reverse {
  to {
    rotate: -360deg;
  }
}

@keyframes occult-ring-pulse {
  0%,
  100% {
    opacity: 0.38;
    scale: 0.92;
  }
  50% {
    opacity: 0.88;
    scale: 1.04;
  }
}

@keyframes occult-inner-orbit {
  0% {
    opacity: 0.48;
    rotate: 0deg;
    scale: 0.92;
  }
  50% {
    opacity: 0.94;
    scale: 1.04;
  }
  100% {
    opacity: 0.48;
    rotate: 360deg;
    scale: 0.92;
  }
}

@keyframes rune-flare {
  0%,
  100% {
    opacity: 0.58;
    filter: drop-shadow(0 0 0.25rem rgba(248, 201, 58, 0.3));
  }
  50% {
    opacity: 1;
    filter:
      brightness(1.3)
      drop-shadow(0 0 0.8rem rgba(248, 201, 58, 0.9));
  }
}

@keyframes eclipse-sweep {
  0%,
  16% {
    opacity: 0;
    transform: translate3d(-30%, 0, 0) rotate(-4deg);
  }
  38%,
  60% {
    opacity: 0.82;
  }
  84%,
  100% {
    opacity: 0;
    transform: translate3d(30%, 0, 0) rotate(-4deg);
  }
}

@keyframes card-float {
  0%,
  100% {
    translate: var(--card-x, 0) var(--card-y, 0);
  }
  50% {
    translate: var(--card-x, 0) calc(var(--card-y, 0px) - 0.8rem);
  }
}

@keyframes card-sigil-drift {
  0% {
    opacity: 0.72;
    transform: translate3d(0, 0.35rem, 0) rotate(3deg) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translate3d(-0.25rem, -0.45rem, 0) rotate(11deg) scale(1.03);
  }
}

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

@keyframes mote-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 12vh, 0) scale(0.5);
  }
  20% {
    opacity: 0.72;
  }
  72% {
    opacity: 0.36;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--mote-drift), -18vh, 0) scale(1.35);
  }
}

@keyframes grain-shift {
  0% {
    transform: translate3d(-1%, 1%, 0);
  }
  50% {
    transform: translate3d(1%, -1%, 0);
  }
  100% {
    transform: translate3d(0, 1%, 0);
  }
}

@keyframes starfield-drift {
  from {
    background-position: 47% 48%;
    transform: scale(1.06) translate3d(-0.8%, -0.4%, 0);
  }
  to {
    background-position: 53% 52%;
    transform: scale(1.11) translate3d(0.8%, 0.6%, 0);
  }
}

@keyframes aurora-wander {
  0% {
    opacity: 0.5;
    transform: translate3d(-3%, 1%, 0) scale(0.98);
  }
  50% {
    opacity: 0.82;
  }
  100% {
    opacity: 0.58;
    transform: translate3d(3%, -2%, 0) scale(1.06);
  }
}

@keyframes title-gleam {
  0%,
  70%,
  100% {
    background-position: 120% center;
  }
  82% {
    background-position: -35% center;
  }
}

@keyframes aura-breathe {
  0%,
  100% {
    opacity: 0.52;
    scale: 0.94;
  }
  50% {
    opacity: 0.88;
    scale: 1.06;
  }
}

@keyframes rune-wheel-spin {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes rune-counter-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes enchantment-pulse {
  0%,
  100% {
    opacity: 0.42;
    scale: 0.84;
  }
  50% {
    opacity: 0.96;
    scale: 1.06;
  }
}

@keyframes enchantment-scan {
  0%,
  14% {
    opacity: 0;
    transform: translateX(-24%) rotate(-7deg);
  }
  35%,
  64% {
    opacity: 0.72;
  }
  86%,
  100% {
    opacity: 0;
    transform: translateX(24%) rotate(-7deg);
  }
}

@keyframes backdrop-drift {
  from {
    transform: scale(1.015) translate3d(-0.5%, 0, 0);
  }
  to {
    transform: scale(1.075) translate3d(1.5%, -1%, 0);
  }
}

@keyframes sigil-breathe {
  0%,
  100% {
    opacity: 0.42;
    filter: drop-shadow(0 0 1rem rgba(248, 201, 58, 0.12));
  }
  50% {
    opacity: 0.86;
    filter: drop-shadow(0 0 2.6rem rgba(248, 201, 58, 0.36));
  }
}

@keyframes sigil-line {
  0%,
  100% {
    opacity: 0.18;
    scale: 0.72 1;
  }
  50% {
    opacity: 0.82;
    scale: 1 1;
  }
}

@keyframes portal-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes portal-counter-spin {
  to {
    rotate: -360deg;
  }
}

@keyframes spirit-float {
  0%,
  100% {
    opacity: 0.28;
    transform: translate3d(-0.6rem, 1.5rem, 0) scale(0.72);
  }
  35% {
    opacity: 1;
  }
  62% {
    transform: translate3d(1rem, -1.2rem, 0) scale(1.08);
  }
  82% {
    opacity: 0.58;
  }
}

@keyframes spirit-haze {
  0% {
    opacity: 0.3;
    transform: translate3d(-1.5%, 2%, 0) scale(0.98);
  }
  45% {
    opacity: 0.58;
  }
  100% {
    opacity: 0.42;
    transform: translate3d(2%, -2.5%, 0) scale(1.04);
  }
}

@keyframes omen-line-travel {
  0%,
  100% {
    opacity: 0.22;
    background-position: center 100%;
  }
  50% {
    opacity: 0.76;
    background-position: center 0%;
  }
}

@keyframes team-orbit-drift {
  to {
    rotate: 360deg;
  }
}

@keyframes relic-glow {
  0%,
  100% {
    opacity: 0.9;
    filter: drop-shadow(0 0 0.35rem rgba(248, 201, 58, 0.06));
  }
  50% {
    opacity: 1;
    filter:
      drop-shadow(0 0 1rem rgba(248, 201, 58, 0.2))
      drop-shadow(0 0 2.6rem rgba(120, 84, 127, 0.14));
  }
}

@keyframes contact-diamond {
  from {
    opacity: 0.32;
    scale: 0.9;
  }
  to {
    opacity: 0.72;
    scale: 1.04;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 0.7fr);
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(5rem, 11vw, 8rem);
  }

  .hero-visual {
    width: min(39vw, 31rem);
  }

  .art-caption {
    right: 1rem;
  }

  .studio-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(26rem, 1.1fr);
  }

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

@media (max-width: 820px) {
  .site-header {
    padding-top: 1rem;
  }

  .nav-cta {
    padding: 0.7rem 0.8rem;
    font-size: 0.62rem;
  }

  .hero {
    padding-top: 7rem;
  }

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

  .hero-copy {
    position: relative;
    z-index: 5;
    min-width: 0;
    padding-bottom: 2rem;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(4.5rem, 18vw, 7.25rem);
  }

  .hero-description {
    max-width: 35rem;
  }

  .hero-visual {
    width: min(82vw, 32rem);
  }

  .hero-art-frame {
    height: 40rem;
    min-height: 0;
  }

  .art-caption {
    right: auto;
    bottom: 1rem;
    left: 1rem;
    width: min(14rem, calc(100% - 2rem));
  }

  .floating-card-left {
    left: -8%;
  }

  .floating-card-right {
    right: -6%;
  }

  .hero-ribbon {
    margin-top: 3rem;
  }

  .gameplay-section,
  .content-shell {
    background-attachment: scroll;
  }

  .project-section {
    grid-template-columns: 1fr;
  }

  .project-intro {
    padding-left: 1.4rem;
  }

  .world-window img {
    min-height: 24rem;
  }

  .cts-world-window {
    min-height: 24rem !important;
  }

  .section-heading.compact {
    grid-template-columns: 1fr;
  }

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

  .pillar-card {
    min-height: 22rem;
  }

  .story-section {
    min-height: 48rem;
    grid-template-columns: 1fr;
  }

  .story-section::after {
    background: linear-gradient(90deg, rgba(34, 20, 48, 0.97), rgba(69, 34, 63, 0.62));
  }

  .story-sigil {
    right: -3rem;
    width: 18rem;
    opacity: 0.56;
  }

  .story-backdrop {
    object-position: 63% center;
    opacity: 0.65;
  }

  .cts-story-cover > .wp-block-cover__inner-container {
    display: block;
    grid-template-columns: 1fr;
  }

  .cts-story-cover .story-panel {
    width: min(100%, 46rem);
    max-width: none;
  }

  .cts-story-cover > .wp-block-cover__background {
    background: linear-gradient(
      90deg,
      rgba(34, 20, 48, 0.97),
      rgba(69, 34, 63, 0.62)
    ) !important;
  }

  .studio-section {
    grid-template-columns: 1fr;
  }

  .studio-art {
    min-height: min(67vw, 35rem);
  }

  .studio-art-column .studio-art {
    min-height: min(67vw, 35rem) !important;
  }

  .studio-copy {
    max-width: none;
  }

  .team-heading {
    grid-template-columns: 1fr;
  }

  .team-heading > p {
    max-width: 34rem;
  }

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

  .site-footer {
    min-height: 0;
    padding: 2.5rem var(--page-gutter);
    grid-template-columns: 1fr;
    gap: 1.35rem;
    text-align: center;
  }

  .site-footer img,
  .site-footer p:last-child {
    margin: 0 auto;
    justify-self: center;
  }

  .site-footer p {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 540px) {
  .brand {
    width: 8.5rem;
  }

  .nav-cta {
    gap: 0.25rem;
    padding: 0.6rem 0.65rem;
  }

  .nav-cta span {
    display: none;
  }

  .hero-copy {
    padding-top: 1.25rem;
  }

  .hero .cts-hero-title {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: clamp(3.75rem, 18.5vw, 5.25rem);
    letter-spacing: -0.035em;
    line-height: 0.92;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(3.75rem, 18.5vw, 5.25rem);
  }

  .hero h1 span:last-child {
    margin-left: 0;
  }

  .suits {
    margin-top: 2.5rem;
  }

  .hero-actions,
  .first-contact-content > div {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-art-frame {
    height: 32rem;
  }

  .hero-visual::after {
    top: 0;
    width: 112%;
  }

  .orbit {
    left: -20%;
    width: 66%;
  }

  .art-caption {
    right: auto;
    bottom: 0.75rem;
    left: 0.75rem;
    width: min(13rem, calc(100% - 1.5rem));
    padding: 0.7rem 0.8rem;
    font-size: 0.62rem;
  }

  .hero-ribbon {
    min-height: 4.6rem;
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    text-align: center;
  }

  .project-section,
  .gameplay-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-heading h2,
  .story-panel h2,
  .first-contact h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .world-window img {
    min-height: 23rem;
  }

  .world-window figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .cts-world-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .story-panel {
    padding: 4.5rem 1.25rem;
  }

  .story-panel::before {
    left: 0.55rem;
    opacity: 0.42;
  }

  .cts-story-cover {
    min-height: 0 !important;
  }

  .cts-story-cover .story-panel {
    width: 100%;
  }

  .cts-story-cover .story-panel > :is(h2, p) {
    width: 100%;
    max-width: 34rem;
  }

  .story-section::after {
    background: linear-gradient(90deg, rgba(34, 20, 48, 0.97), rgba(69, 34, 63, 0.78));
  }

  .story-sigil {
    right: -5rem;
    width: 16rem;
  }

  .portal-glyph {
    width: 34rem;
  }

  .studio-art {
    min-height: 24rem;
  }

  .studio-art-stamp {
    right: 1rem;
    bottom: 1rem;
  }

  .studio-copy {
    padding: 4.75rem 1.25rem;
  }

  .studio-copy h2 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

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

  .team-card {
    min-height: 24rem;
  }

  .pillar-card {
    min-width: 0;
    padding: 1.5rem;
  }

  .pillar-card .card-index {
    padding-bottom: 2rem;
  }

  .pillar-card .pillar-suit {
    top: 1.25rem;
    right: 1rem;
    font-size: 7rem;
  }

  .pillar-card h3 {
    max-width: 100%;
    font-size: clamp(1.3rem, 6.3vw, 1.65rem);
  }

  .contact-section {
    min-height: 47rem;
  }

  .contact-sigil {
    width: 29rem;
  }

  .contact-logo {
    margin-bottom: 2rem;
  }

  .social-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-links a {
    justify-content: center;
    border-bottom: 1px solid rgba(255, 240, 231, 0.14);
  }

  .cts-editor-home
    :is(.hero-actions, .cts-centered-actions, .contact-actions)
    .wp-block-button,
  .cts-editor-home
    :is(.hero-actions, .cts-centered-actions, .contact-actions)
    .wp-block-button__link {
    width: 100%;
  }

  .contact-form-shell .wpcf7-form {
    grid-template-columns: 1fr;
  }

  .contact-form-shell .wpcf7-form > p {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding: 2.25rem 1.25rem;
    gap: 1.1rem;
  }

  .site-footer img {
    width: min(10rem, 54vw);
  }
}

@media (pointer: coarse) {
  .cursor-sigil,
  .magic-spotlight {
    display: none;
  }

  .pillar-card,
  .team-card,
  .cts-tilt {
    will-change: auto;
  }

  .pillar-card:hover,
  .team-card:hover,
  .cts-magnetic {
    translate: 0;
  }

  .world-window:hover img,
  .cts-world-window:hover .wp-block-cover__image-background,
  .studio-art:hover > img {
    transform: none;
  }
}

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

  .cursor-sigil,
  .magic-motes {
    display: none;
  }

  .page-grain {
    animation: none;
  }

  .hero h1 span {
    background: none;
    color: var(--cream);
  }

  .hero .cts-hero-title {
    background: none;
    color: var(--cream);
  }

  .motion-ready
    :is(
      [data-reveal],
      [data-reveal="left"],
      [data-reveal="right"],
      .cts-reveal,
      .cts-reveal-left,
      .cts-reveal-right
    ) {
    opacity: 1;
    filter: none;
    transform: none;
  }

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