:root {
  --navy-900: #050a18;
  --navy-800: #070d1f;
  --navy-700: #0b1530;
  --gold-100: #fff0b8;
  --gold-300: #f0cd78;
  --gold-500: #d9a93f;
  --gold-700: #9a6a1c;
  --blue-300: #8fd4ff;
  --blue-500: #2f8dff;
  --text: #eef2fb;
  --nav-h: 68px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --gold-text: linear-gradient(180deg, var(--gold-100) 0%, var(--gold-300) 45%, var(--gold-500) 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.defs { position: absolute; }

:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 3px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: linear-gradient(180deg, rgba(6, 11, 27, .97), rgba(8, 15, 36, .94));
  border-bottom: 1px solid rgba(217, 169, 63, .35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
}

.nav__inner {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__gem { width: 30px; height: 42px; filter: drop-shadow(0 0 6px rgba(47, 141, 255, .7)); }
.brand__text {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__text small { font-size: .62em; letter-spacing: .06em; }

.nav__menu { flex: 1; display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 44px; margin-left: 28px; }
.nav__links a {
  position: relative;
  padding: 8px 0;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: -14px; right: -14px; bottom: -6px;
  height: 2px;
  background: radial-gradient(ellipse at center, #cfeaff 0, var(--blue-500) 30%, transparent 72%);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .25s, transform .25s;
}
.nav__links a:hover { color: var(--gold-300); }
.nav__links a.is-active::after,
.nav__links a:hover::after { opacity: 1; transform: none; }

.nav__social { display: flex; gap: 18px; margin-left: auto; }
.nav__social a, .footer__social a { display: grid; place-items: center; transition: color .2s, transform .2s; }
.nav__social svg { width: 24px; height: 24px; }
.nav__social a:hover, .footer__social a:hover { color: var(--gold-300); transform: translateY(-2px); }

.signup {
  --notch: 14px;
  flex: none;
  margin-left: 20px;
  padding: 1.5px;
  background: linear-gradient(180deg, var(--gold-100), var(--gold-500) 55%, var(--gold-700));
  clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, var(--notch) 100%, 0 50%);
  filter: drop-shadow(0 0 6px rgba(217, 169, 63, .45));
  transition: filter .2s;
}
.signup span {
  display: block;
  padding: 7px 46px 6px;
  background: linear-gradient(180deg, #0c1632, #070d1f);
  clip-path: inherit;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.signup:hover { filter: drop-shadow(0 0 10px rgba(240, 205, 120, .8)); }
.signup--play span { padding-inline: 34px; color: #1b1104; background: linear-gradient(180deg, var(--gold-100), var(--gold-500)); }
.signup--play:hover span { color: #1b1104; background: linear-gradient(180deg, #fff, var(--gold-300)); }
.signup--play + .signup { margin-left: -14px; }
.signup--play + .signup span { padding-inline: 34px; }
/* Two buttons share the top bar: it tightens below 1760px, and below 1320px Sign Up (the Discord
   link, which is also among the icons) makes room for Play Now */
@media (min-width: 1100px) and (max-width: 1759px) {
  .nav__menu { gap: 1.4vw; }
  .nav__links { gap: 1.9vw; margin-left: 1vw; }
  .nav__social { gap: 12px; }
  .signup span, .signup--play + .signup span { padding-inline: 1.7vw; font-size: clamp(16px, 1.3vw, 21px); }
  .signup--play + .signup { margin-left: -4px; }
}
@media (min-width: 1100px) and (max-width: 1319px) {
  .signup--play + .signup { display: none; }
  .nav__links { gap: 1.4vw; margin-left: 0; }
  .nav__social { gap: 9px; }
}
.signup:hover span { background: linear-gradient(180deg, #1a2850, #0c1632); color: var(--gold-100); }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 11px 9px;
  background: none;
  border: 1px solid rgba(217, 169, 63, .5);
  border-radius: 6px;
  cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; margin: 4px 0; background: var(--gold-300); transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Shared ornaments ---------- */

.rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(460px, 80%);
  margin: 14px auto;
  color: var(--gold-300);
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.rule::after { transform: scaleX(-1); }
.rule svg { width: 16px; height: 16px; flex: none; }
.rule--blue { color: var(--blue-300); }
.rule--blue svg { filter: drop-shadow(0 0 6px var(--blue-500)); }

/* ---------- Hero ---------- */

.hero {
  --art-h: max(min(112vw, 74vh), 52.3vw);
  position: relative;
  container-type: inline-size;
  background: var(--navy-800);
  overflow: hidden;
}

.hero__art {
  position: relative;
  height: var(--art-h);
  overflow: hidden;
}
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 13, 31, .82) 78%, var(--navy-800) 100%);
}

.hero__content {
  position: relative;
  margin-top: calc(var(--art-h) * -.36);
  padding: 0 20px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__tagline {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 5.4vw, 34px);
  letter-spacing: .2em;
  margin-right: -.2em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 10, 40, .9), 0 0 2px rgba(0, 0, 0, .6);
}

.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 10, 40, .9);
}
.hero__pillars li { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.hero__pillars svg { width: 11px; height: 11px; color: var(--gold-300); }

.downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(340px, 100%);
  margin-top: 26px;
}

.dl {
  --edge: var(--gold-300);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 72px;
  border: 1.5px solid var(--edge);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 20, 24, .96), rgba(4, 5, 10, .97));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 1px 12px rgba(255, 255, 255, .06), 0 6px 22px rgba(0, 0, 0, .55);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.dl svg { width: 38px; height: 38px; flex: none; }
.dl__text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.dl__text b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dl__text small {
  margin-top: 7px;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.dl--silver {
  --edge: #d8cba6;
  background: linear-gradient(180deg, rgba(10, 18, 44, .97), rgba(3, 7, 20, .98));
}
/* Play in browser: the one filled button of the row */
.dl--play {
  --edge: var(--gold-100);
  color: #1b1104;
  background: linear-gradient(180deg, #f8dd94, var(--gold-500) 55%, #a97a25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 20px rgba(240, 205, 120, .45), 0 6px 22px rgba(0, 0, 0, .55);
}
.dl--play:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 30px rgba(240, 205, 120, .85), 0 10px 26px rgba(0, 0, 0, .6); }
.dl:hover { transform: translateY(-3px); filter: brightness(1.15); }
.dl--gold:hover, .dl--silver:hover { box-shadow: 0 0 18px rgba(240, 205, 120, .55), 0 10px 26px rgba(0, 0, 0, .6); }

.hero__motto { width: 100%; margin-top: 28px; }
.hero__motto p {
  margin: 0;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .5em;
  margin-right: -.5em;
  text-transform: uppercase;
  color: #dfe6f5;
}

/* Desktop: content is laid over the art at the same proportions as the key visual */
@media (min-width: 1100px) {
  .hero__art { height: auto; aspect-ratio: 1672 / 873; }
  .hero__art::after { background: linear-gradient(180deg, transparent 88%, rgba(5, 10, 24, .75) 100%); }

  .hero__content {
    position: absolute;
    left: 0; right: 0;
    top: 63.4%;
    margin: 0;
    padding: 0;
  }
  .hero__tagline { font-size: 1.66cqw; letter-spacing: .24em; margin-right: -.24em; }
  .hero .rule { width: 27cqw; margin: .75cqw auto; gap: .6cqw; }
  .hero .rule svg { width: 1.1cqw; height: 1.1cqw; }
  .hero__pillars { font-size: max(10px, .76cqw); gap: 1.35cqw; letter-spacing: .27em; }
  .hero__pillars li { gap: 1.35cqw; }
  .hero__pillars svg { width: .75cqw; height: .75cqw; }

  .downloads { flex-direction: row; width: auto; gap: .75cqw; margin-top: 1.55cqw; }
  .dl { width: 14.05cqw; height: 4.85cqw; gap: .9cqw; border-radius: .45cqw; }
  .dl svg { width: 2.5cqw; height: 2.5cqw; }
  .dl__text b { font-size: 1.5cqw; }
  .dl__text small { margin-top: .45cqw; font-size: max(8px, .62cqw); }

  .hero__motto { margin-top: 1.2cqw; }
  .hero__motto .rule { width: 25cqw; margin: 0 auto .7cqw; }
  .hero__motto p { font-size: max(9px, .7cqw); }
}

/* ---------- Feature sections ---------- */

.feature {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 24px;
  text-align: center;
  background:
    linear-gradient(180deg, var(--navy-900) 0, rgba(5, 10, 24, .3) 24%, rgba(5, 10, 24, .3) 76%, var(--navy-900) 100%),
    var(--bg) center / cover no-repeat;
}
.feature__inner { max-width: 1160px; margin: 0 auto; }
.feature h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .8));
}
.feature p { max-width: 620px; margin: 18px auto 0; font-size: 21px; text-shadow: 0 1px 10px #000; }
.feature--intro, .feature--cta { min-height: 480px; display: grid; align-items: center; }
.feature .downloads--static { margin: 34px auto 0; }

.gallery {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 3vw, 44px);
  margin-top: 40px;
}
.gallery img {
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  max-height: 420px;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .7));
}
.gallery--pets { align-items: center; }
.gallery--pets img { max-height: 320px; }


@media (min-width: 1100px) {
  .feature .downloads--static { display: inline-flex; flex-direction: row; width: auto; }
  .feature .downloads--static .dl { width: 236px; height: 80px; }
}

/* ---------- Footer ---------- */

.footer {
  padding: 48px 24px 36px;
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
  background: #000;
  border-top: 1px solid rgba(217, 169, 63, .35);
}
.footer__studio img { width: 220px; }
.footer__social { display: flex; gap: 22px; }
.footer__social svg { width: 26px; height: 26px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 17px; }
.footer__links a:hover { color: var(--gold-300); }
.footer__copy { margin: 0; font-size: 15px; color: #8f98ad; }

/* ---------- Small screens ---------- */

@media (max-width: 1099px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 22px;
    padding: 22px 24px 28px;
    background: rgba(6, 11, 27, .98);
    border-bottom: 1px solid rgba(217, 169, 63, .35);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .6);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__links { flex-direction: column; align-items: center; gap: 10px; margin: 0; }
  .nav__links a { font-size: 21px; }
  .nav__social { margin: 0; }
  .signup, .signup--play + .signup { margin: 0; }
}

@media (max-width: 420px) {
  .nav__inner { padding: 0 16px; }
  .brand__text { font-size: 19px; }
  .brand__gem { width: 24px; height: 34px; }
  .gallery img { max-height: 46vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; translate: none; }
  .hero__motes, .fx-flash { display: none; }
}

/* ---------- Hero scene animation ---------- */

.scene {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 1672 / 873;
  transform: translateX(-50%);
}
.scene__inner {
  position: absolute;
  inset: 0;
  transform-origin: 50% 52%;
  translate: var(--px, 0px) var(--py, 0px);
  transition: translate .9s cubic-bezier(.2, .7, .2, 1);
  animation: breathe 18s ease-in-out infinite alternate;
  will-change: scale, translate;
}
.scene__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  animation: scene-in 2.4s cubic-bezier(.2, .7, .2, 1) both;
}
.fx { position: absolute; inset: 0; pointer-events: none; }

@property --ray { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.fx-rays {
  background: repeating-conic-gradient(from var(--ray) at 50% 31%, transparent 0deg, rgba(165, 220, 255, .36) 3deg, transparent 8deg 24deg);
  -webkit-mask-image: radial-gradient(circle farthest-side at 50% 31%, #000 0, rgba(0, 0, 0, .55) 34%, transparent 68%), url(../assets/img/mask-logo.png);
  mask-image: radial-gradient(circle farthest-side at 50% 31%, #000 0, rgba(0, 0, 0, .55) 34%, transparent 68%), url(../assets/img/mask-logo.png);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  mix-blend-mode: screen;
  animation: rays 70s linear infinite, fx-in 2.5s 1.2s both;
}
.fx-glow {
  background: radial-gradient(circle farthest-side at 50% 30%, rgba(150, 215, 255, .55) 0, rgba(70, 150, 255, .24) 17%, transparent 44%);
  mix-blend-mode: screen;
  animation: pulse 4.5s ease-in-out infinite;
}
.fx-shine {
  -webkit-mask: url(../assets/img/mask-logo.png) center / 100% 100% no-repeat;
  mask: url(../assets/img/mask-logo.png) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 44%, rgba(255, 252, 235, .95) 50%, transparent 56%) 100% 0 / 250% 100% no-repeat;
  mix-blend-mode: screen;
  animation: shine 6.5s 1.6s ease-in-out infinite backwards;
}
.fx-sparks i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(2.3% * var(--k));
  aspect-ratio: 1;
  translate: -50% -50%;
  scale: 0;
  background: radial-gradient(circle, #fff 0, rgba(190, 232, 255, .95) 14%, rgba(120, 190, 255, 0) 62%);
  clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
  animation: twinkle 5.2s calc(var(--d) + 1.5s) ease-in-out infinite;
}
.fx-flash {
  transform-origin: 50% 30%;
  background: radial-gradient(circle farthest-side at 50% 30%, #fff 0, rgba(160, 215, 255, .85) 9%, transparent 46%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: flash 2s .35s ease-out both;
}
.fx-fog {
  inset: auto;
  left: -45%;
  top: 56%;
  width: 62%;
  height: 28%;
  background: radial-gradient(ellipse closest-side, rgba(228, 240, 255, .5), rgba(228, 240, 255, .16) 58%, transparent);
  filter: blur(14px);
  opacity: 0;
  animation: drift 52s linear infinite;
}
.fx-fog--b { top: 70%; height: 22%; width: 74%; animation-duration: 74s; animation-delay: -31s; animation-direction: reverse; }
.fx-water {
  overflow: hidden;
  -webkit-mask: url(../assets/img/mask-water.png) center / 100% 100% no-repeat;
  mask: url(../assets/img/mask-water.png) center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: .8;
}
.fx-water::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -10%;
  height: 110%;
  background: linear-gradient(180deg, transparent 0, rgba(255, 255, 255, .8) 34%, transparent 58%, rgba(200, 232, 255, .55) 80%, transparent) 0 0 / 100% 4.5454% repeat-y;
  animation: fall 1s linear infinite;
}
.hero__motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero__content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__content > :nth-child(1) { animation-delay: 1s; }
.hero__content > :nth-child(2) { animation-delay: 1.15s; }
.hero__content > :nth-child(3) { animation-delay: 1.3s; }
.hero__content > :nth-child(4) { animation-delay: 1.45s; }
.hero__content > :nth-child(5) { animation-delay: 1.7s; }

@keyframes scene-in { from { opacity: 0; filter: blur(12px) brightness(1.8) saturate(.6); scale: 1.14; } }
@keyframes breathe { from { scale: 1.02; } to { scale: 1.05; } }
@keyframes rays { to { --ray: 360deg; } }
@keyframes fx-in { from { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes shine { 0% { background-position: 100% 0; } 42%, 100% { background-position: 0 0; } }
@keyframes twinkle { 0%, 55%, 100% { scale: 0; rotate: 0deg; } 28% { scale: 1; rotate: 45deg; } }
@keyframes flash { 0% { opacity: 0; scale: .2; } 18% { opacity: .95; } 100% { opacity: 0; scale: 1.7; } }
@keyframes drift { 0% { translate: 0 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { translate: 300% 0; opacity: 0; } }
@keyframes fall { to { translate: 0 4.5454%; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; } }
@keyframes beacon {
  0%, 100% { box-shadow: inset 0 0 18px rgba(74, 168, 255, .35), 0 0 16px rgba(47, 141, 255, .5), 0 6px 22px rgba(0, 0, 0, .55); }
  50% { box-shadow: inset 0 0 22px rgba(74, 168, 255, .55), 0 0 30px rgba(47, 141, 255, .95), 0 6px 22px rgba(0, 0, 0, .55); }
}

/* ---------- Scroll reveal, tilt ---------- */

.js [data-reveal], .js [data-stagger] > * {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .7s, translate .7s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].is-in, .js [data-stagger].is-in > * { opacity: 1; translate: none; }
.js [data-stagger].is-in > :nth-child(2) { transition-delay: .07s; }
.js [data-stagger].is-in > :nth-child(3) { transition-delay: .14s; }
.js [data-stagger].is-in > :nth-child(4) { transition-delay: .21s; }
.js [data-stagger].is-in > :nth-child(5) { transition-delay: .28s; }
.js [data-stagger].is-in > :nth-child(6) { transition-delay: .35s; }
.js [data-stagger].is-in > :nth-child(n+7) { transition-delay: .42s; }

.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transition: transform .25s ease-out, opacity .7s, translate .7s cubic-bezier(.2, .7, .2, 1);
}
.tilt:hover { --sc: 1.04; }

/* ---------- Shared page pieces ---------- */

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--gold-300); color: #000; }
.skip:focus { left: 8px; }

main { animation: page-in .5s ease-out both; }
@keyframes page-in { from { opacity: 0; } }

.wrap { max-width: 1160px; margin: 0 auto; }
.wrap--narrow { max-width: 860px; }
.section { padding: clamp(48px, 7vw, 96px) 24px; text-align: center; }
.section--tight { padding-bottom: clamp(32px, 4vw, 56px); }
.section--alt { background: linear-gradient(180deg, var(--navy-900), var(--navy-700) 50%, var(--navy-900)); }
.section__title, .prose h2 {
  margin: 0 0 32px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { margin: 0 0 36px; font-size: 22px; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.more svg, .btn svg, .back svg { width: 16px; height: 16px; flex: none; transition: translate .2s; }
a:hover > .more svg, a:hover .post-card__body .more svg, .btn:hover svg { translate: 4px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 13px 26px;
  border: 1.5px solid var(--gold-300);
  border-radius: 6px;
  background: linear-gradient(180deg, #1a2548, #0a1230);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  transition: box-shadow .2s, translate .2s, background .2s;
}
.btn:hover { translate: 0 -2px; box-shadow: 0 0 18px rgba(240, 205, 120, .55), 0 10px 24px rgba(0, 0, 0, .6); }
.btn--ghost { background: rgba(8, 15, 36, .6); border-color: rgba(240, 205, 120, .55); }

.page-hero {
  position: relative;
  height: clamp(210px, 24vw, 400px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy-800);
}
.page-hero__art {
  position: absolute;
  inset: 0;
  background: center 30% / cover no-repeat;
  animation: banner-in 1.6s cubic-bezier(.2, .7, .2, 1) both, banner-pan 26s 1.6s ease-in-out infinite alternate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 24, .35), rgba(5, 10, 24, .25) 45%, var(--navy-900) 100%);
}
.page-hero__inner { position: relative; z-index: 1; width: 100%; padding: 0 20px; text-align: center; animation: rise .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 68px);
  line-height: 1.1;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .9));
}
.page-hero__kicker { margin: 0 0 6px; font-family: var(--display); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 1px 8px #000; }
@keyframes banner-in { from { opacity: 0; scale: 1.12; filter: blur(8px); } }
@keyframes banner-pan { from { scale: 1; } to { scale: 1.08; translate: -1.5% 0; } }

/* ---------- News ---------- */

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; margin-top: 40px; text-align: left; }
.post-grid--list { margin-top: 0; }
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(217, 169, 63, .4);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(14, 24, 54, .94), rgba(6, 11, 27, .97));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: border-color .25s, box-shadow .25s, translate .25s, opacity .7s;
}
.post-card:hover { border-color: var(--gold-300); translate: 0 -6px; box-shadow: 0 0 22px rgba(240, 205, 120, .3), 0 18px 36px rgba(0, 0, 0, .6); }
.post-card__img { display: block; aspect-ratio: 16 / 8; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s; }
.post-card:hover .post-card__img img { scale: 1.06; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.post-card time { font-size: 15px; color: #9fb0d4; }
.post-card strong { font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; }
.post-card__excerpt { color: #c9d2e6; }
.post-card .more { margin-top: 6px; }

.prose { text-align: left; font-size: 20px; }
.prose h2 { margin: 56px 0 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(217, 169, 63, .35); font-size: clamp(22px, 2.6vw, 30px); }
.prose h3 { margin: 32px 0 12px; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: .08em; color: var(--blue-300); }
.prose p { margin: 0 0 16px; color: #dbe2f2; }
.prose ul { margin: 0 0 16px; padding: 0; }
.prose li { position: relative; margin: 0 0 10px; padding-left: 26px; color: #dbe2f2; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; rotate: 45deg; background: var(--gold-500); }
.prose .callout { padding: 16px 20px; border-left: 3px solid var(--gold-300); border-radius: 0 8px 8px 0; background: rgba(217, 169, 63, .1); color: var(--gold-100); font-weight: 500; }
.prose--legal { font-size: 18px; }
.prose--legal h3 { color: var(--text); text-transform: none; letter-spacing: .02em; font-family: var(--serif); font-size: 22px; }
.prose--legal .tldr { padding: 10px 16px; border-left: 3px solid var(--blue-500); background: rgba(47, 141, 255, .1); color: #cfe6ff; font-style: italic; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-family: var(--display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.back svg { rotate: 180deg; }
.back:hover svg { translate: -4px 0; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin-top: 28px; }

.card-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin: 8px 0 24px; }
.card-wall img { width: 100%; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .65)); transition: scale .25s, opacity .7s, translate .7s; }
.card-wall img:hover { scale: 1.07; }

/* ---------- Lightbox thumbnails ---------- */

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(217, 169, 63, .4);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
  cursor: zoom-in;
  transition: border-color .25s, box-shadow .25s, opacity .7s, translate .7s;
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: scale .6s; }
.shot--wide { margin: 0 0 20px; }
.shot--wide img { aspect-ratio: auto; }
.shot:hover { border-color: var(--gold-300); box-shadow: 0 0 22px rgba(240, 205, 120, .35), 0 14px 30px rgba(0, 0, 0, .6); }
.shot:hover img { scale: 1.05; }
.shot__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 16, .92));
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
}
.shot--wide .shot__label { display: none; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.shots--art { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  background: rgba(2, 4, 12, .94);
  backdrop-filter: blur(6px);
  animation: page-in .25s both;
}
.lightbox[hidden] { display: none; }
.lightbox figure { grid-column: 2; margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; border: 1px solid rgba(217, 169, 63, .5); border-radius: 6px; box-shadow: 0 20px 60px #000; animation: zoom-in .3s cubic-bezier(.2, .7, .2, 1) both; }
.lightbox img.is-loading { opacity: .35; }
.lightbox figcaption { font-family: var(--display); letter-spacing: .16em; text-transform: uppercase; font-size: 15px; }
.lightbox__btn { width: 48px; height: 48px; margin: 0 auto; display: grid; place-items: center; border: 1px solid rgba(217, 169, 63, .6); border-radius: 50%; background: rgba(8, 15, 36, .85); color: var(--gold-300); cursor: pointer; transition: background .2s, color .2s; }
.lightbox__btn:hover { background: var(--gold-300); color: #000; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__prev svg { rotate: 180deg; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__next { grid-column: 3; }
@keyframes zoom-in { from { opacity: 0; scale: .94; } }

/* ---------- Genesis sale ---------- */

.markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 420px)); justify-content: center; gap: 28px; }
.market {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(217, 169, 63, .45);
  border-radius: 10px;
  background: #06091a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
  transition: border-color .25s, box-shadow .25s, translate .25s, opacity .7s;
}
.market img { width: 100%; }
.market:hover { border-color: var(--gold-300); translate: 0 -5px; box-shadow: 0 0 24px rgba(240, 205, 120, .35), 0 16px 34px rgba(0, 0, 0, .6); }

.count { font-size: 1.5em; line-height: 1; }
.uniques { display: flex; justify-content: center; gap: clamp(16px, 6vw, 90px); margin-top: 40px; }
.unique { display: grid; justify-items: center; gap: 18px; flex: 0 1 300px; }
.unique img { filter: drop-shadow(0 0 22px rgba(120, 190, 255, .45)) drop-shadow(0 18px 26px rgba(0, 0, 0, .7)); }
.unique__odds { font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: .1em; color: var(--gold-100); text-shadow: 0 0 14px rgba(240, 205, 120, .7), 0 2px 8px #000; }

.feature .notes { display: grid; gap: 4px; max-width: none; margin: 18px auto 0; font-family: var(--display); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-100); text-shadow: 0 1px 8px #000; }
.token { display: block; width: min(340px, 70%); margin: 34px auto 0; }
.token img { animation: float 5s ease-in-out infinite; filter: drop-shadow(0 0 26px rgba(240, 205, 120, .55)) drop-shadow(0 20px 26px rgba(0, 0, 0, .7)); }
@keyframes float { 0%, 100% { translate: 0 -8px; } 50% { translate: 0 10px; } }

.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 330px)); justify-content: center; gap: 28px; margin-top: 40px; }
.items--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 270px)); }
.item {
  --tone: #6fb6ff;
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 16, 38, .96), rgba(4, 7, 18, .98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
}
.item--epic { --tone: #c084ff; }
.item--legendary { --tone: #ffc24a; }
.item--mythic { --tone: #ff6a5c; }
.item:hover { border-color: var(--tone); box-shadow: 0 0 26px color-mix(in srgb, var(--tone) 50%, transparent), 0 18px 36px rgba(0, 0, 0, .65); }
.item__media { display: block; aspect-ratio: 1; background: #05060f; }
.item__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.item__meta { display: grid; gap: 2px; padding: 0 14px; }
.item__meta em { font-family: var(--display); font-style: normal; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--tone); }
.item__meta strong { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: .05em; line-height: 1.25; }
.item__meta small { font-size: 16px; color: #aab6d3; }
.item .more { justify-content: center; }

/* ---------- Media, support ---------- */

.brand-tiles, .channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.brand-tiles { max-width: 820px; margin: 0 auto; }
.brand-tile, .channel {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 22px 24px;
  border: 1px solid rgba(217, 169, 63, .4);
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0, rgba(47, 141, 255, .22), transparent 70%), linear-gradient(180deg, #0d1736, #060b1b);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  transition: border-color .25s, box-shadow .25s, translate .25s, opacity .7s;
}
.brand-tile:hover, .channel:hover { border-color: var(--gold-300); translate: 0 -6px; box-shadow: 0 0 22px rgba(240, 205, 120, .3), 0 18px 36px rgba(0, 0, 0, .6); }
.brand-tile__img { height: 210px; display: grid; place-items: center; }
.brand-tile__img img { max-height: 210px; width: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); transition: scale .4s; }
.brand-tile:hover img { scale: 1.06; }
.brand-tile strong, .channel strong { font-family: var(--display); font-size: 19px; letter-spacing: .08em; text-transform: uppercase; }
.brand-tile small, .channel small { color: #aab6d3; font-size: 16px; }
.brand-tile .more, .channel .more { margin-top: 8px; }
.channel > svg { width: 44px; height: 44px; color: var(--blue-300); filter: drop-shadow(0 0 10px rgba(47, 141, 255, .7)); }

@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: 0 10px; }
  .lightbox figure { grid-column: 1; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 18px; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { left: calc(50% + 12px); }
  .prose { font-size: 18px; }
  .card-wall { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 12px; }
}

/* ---------- Micro-interactions ---------- */

@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out .22s ease-in both; }
::view-transition-new(root) { animation: vt-in .38s ease-out both; }
@keyframes vt-out { to { opacity: 0; scale: .985; } }
@keyframes vt-in { from { opacity: 0; scale: 1.015; } }

@property --fy { syntax: "<length>"; inherits: false; initial-value: 0px; }

/* nav: scroll progress, living gem */
.nav { transition: box-shadow .3s, background .3s; }
.is-scrolled .nav { background: rgba(4, 8, 20, .98); box-shadow: 0 10px 34px rgba(0, 0, 0, .7); }
.nav__progress {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  transform-origin: 0 50%;
  scale: var(--progress, 0) 1;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-100) 60%, var(--blue-300));
  box-shadow: 0 0 10px rgba(240, 205, 120, .9);
  pointer-events: none;
}
.brand__gem { animation: gem 3.6s ease-in-out infinite; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.brand:hover .brand__gem { transform: rotateY(360deg) scale(1.12); }
.brand__text { transition: filter .3s; }
.brand:hover .brand__text { filter: brightness(1.25) drop-shadow(0 0 8px rgba(240, 205, 120, .6)); }
@keyframes gem {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(47, 141, 255, .55)); }
  50% { filter: drop-shadow(0 0 12px rgba(120, 200, 255, 1)); }
}
.nav__links a { transition: color .2s, text-shadow .2s, translate .2s; }
.nav__links a:hover { translate: 0 -1px; text-shadow: 0 0 12px rgba(240, 205, 120, .7); }

/* buttons: sheen sweep, press, icon kick */
.dl, .btn, .signup span { position: relative; overflow: hidden; }
.dl::after, .btn::after, .signup span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, .34) 50%, transparent 66%);
  translate: -130% 0;
  pointer-events: none;
}
.dl:hover::after, .btn:hover::after, .signup:hover span::after { translate: 130% 0; transition: translate .75s ease-out; }
.dl:active, .btn:active, .signup:active { scale: .97; }
.dl svg { transition: scale .3s cubic-bezier(.3, 1.6, .5, 1), rotate .3s; }
.dl:hover svg { scale: 1.14; rotate: -6deg; }
.dl__text b { transition: letter-spacing .3s; }
.dl:hover .dl__text b { letter-spacing: .14em; }

/* headings: travelling highlight */
.feature h2, .section__title, .prose h2, .page-hero h1 .ch {
  background-image: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%), var(--gold-text);
  background-size: 260% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heading-shine 8s 1s ease-in-out infinite;
}
@keyframes heading-shine { 0% { background-position: 100% 0, 0 0; } 22%, 100% { background-position: 0 0, 0 0; } }

/* page title letters */
.page-hero h1 .word { display: inline-block; white-space: nowrap; }
.page-hero h1 .ch {
  display: inline-block;
  animation: letter-in .75s calc(.25s + var(--i) * 38ms) cubic-bezier(.2, .8, .2, 1) backwards, heading-shine 8s 2s ease-in-out infinite;
}
@keyframes letter-in { from { opacity: 0; translate: 0 .55em; rotate: 9deg; filter: blur(6px); } }
.page-hero .motes, .feature--cta .motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-hero .motes { z-index: 1; }
.feature--cta .feature__inner { position: relative; }

/* ornament rules draw outward from the gem */
.rule::after { transform: none; background: linear-gradient(270deg, transparent, currentColor); }
.rule::before { transform-origin: 100% 50%; }
.rule::after { transform-origin: 0 50%; }
.js .rule[data-reveal] { opacity: 1; translate: none; }
.js .rule[data-reveal]::before, .js .rule[data-reveal]::after { scale: 0 1; transition: scale 1s .25s cubic-bezier(.2, .7, .2, 1); }
.js .rule[data-reveal] svg { scale: 0; rotate: -180deg; transition: scale .6s cubic-bezier(.3, 1.6, .5, 1), rotate .8s; }
.js .rule[data-reveal].is-in::before, .js .rule[data-reveal].is-in::after { scale: 1 1; }
.js .rule[data-reveal].is-in svg { scale: 1; rotate: 0deg; filter: drop-shadow(0 0 6px currentColor); }

/* sections: hairline crest, scroll-linked backdrop drift */
.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(70%, 760px);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(240, 205, 120, .7), transparent);
}
@supports (animation-timeline: view()) {
  .feature { animation: backdrop linear both; animation-timeline: view(); }
  @keyframes backdrop { from { background-position: 0 0, 50% 12%; } to { background-position: 0 0, 50% 88%; } }
}

/* cards: idle float, pointer spotlight */
.tilt { transform: perspective(900px) translateY(var(--fy, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); }
.gallery .tilt, .unique.tilt { animation: bob 6s ease-in-out infinite; }
.gallery .tilt:nth-child(2), .unique.tilt:nth-child(2) { animation-delay: -2s; }
.gallery .tilt:nth-child(3) { animation-delay: -4s; }
.gallery .tilt:hover { filter: drop-shadow(0 0 22px rgba(120, 190, 255, .65)) drop-shadow(0 18px 26px rgba(0, 0, 0, .7)); }
.gallery img { transition: transform .25s ease-out, filter .3s, opacity .7s, translate .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes bob { 0%, 100% { --fy: -7px; } 50% { --fy: 7px; } }

.post-card, .item, .brand-tile, .channel, .market { position: relative; }
.post-card::before, .item::before, .brand-tile::before, .channel::before, .market::before, .shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(150, 205, 255, .2), transparent 62%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.post-card:hover::before, .item:hover::before, .brand-tile:hover::before, .channel:hover::before, .market:hover::before, .shot:hover::before { opacity: 1; }
.more { transition: color .2s, letter-spacing .25s; }
a:hover > .more, a:hover .post-card__body .more { color: var(--gold-100); letter-spacing: .2em; }
.channel > svg { transition: scale .35s cubic-bezier(.3, 1.6, .5, 1), rotate .35s; }
.channel:hover > svg { scale: 1.18; rotate: -8deg; }
.post-card strong { transition: color .25s; }
.post-card:hover strong { color: var(--gold-100); }

/* genesis: light running round the frame, breathing odds */
.item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--ray), transparent 0 68%, var(--tone) 84%, #fff 90%, var(--tone) 96%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .3s;
  animation: rays 4.5s linear infinite paused;
  pointer-events: none;
}
.item:hover::after, .item--legendary::after, .item--mythic::after { opacity: 1; animation-play-state: running; }
.item--mythic::after { animation-duration: 3s; }
.item__meta em { transition: letter-spacing .3s, text-shadow .3s; }
.item:hover .item__meta em { letter-spacing: .42em; text-shadow: 0 0 12px var(--tone); }
.item__media video { transition: scale .6s; }
.item:hover .item__media video { scale: 1.06; }
.item__media { overflow: hidden; }
.unique__odds { animation: odds 3s ease-in-out infinite; }
@keyframes odds {
  0%, 100% { text-shadow: 0 0 10px rgba(240, 205, 120, .5), 0 2px 8px #000; }
  50% { text-shadow: 0 0 26px rgba(255, 225, 150, 1), 0 0 4px #fff, 0 2px 8px #000; }
}
.market img { transition: scale .6s; }
.market:hover img { scale: 1.05; }

/* prose */
.prose h2 { position: relative; border-bottom-color: transparent; }
.prose h2::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-300), rgba(217, 169, 63, .15));
  transition: scale 1s .2s cubic-bezier(.2, .7, .2, 1);
}
.js .prose h2[data-reveal]::after { scale: 0 1; }
.js .prose h2[data-reveal].is-in::after { scale: 1 1; }
.prose li::before { transition: rotate .4s, scale .3s, background .3s; }
.prose li:hover::before { rotate: 225deg; scale: 1.35; background: var(--gold-100); }
.prose .callout { animation: callout 3.2s ease-in-out infinite; }
@keyframes callout { 0%, 100% { box-shadow: -3px 0 0 var(--gold-300); } 50% { box-shadow: -3px 0 18px var(--gold-300); } }

/* footer, back to top */
.footer { position: relative; }
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-100), transparent);
  animation: glint 7s ease-in-out infinite;
}
@keyframes glint { from { translate: -100% 0; } to { translate: 434% 0; } }
.footer__studio img { transition: scale .4s, filter .4s; }
.footer__studio:hover img { scale: 1.05; filter: brightness(1.25) drop-shadow(0 0 14px rgba(190, 150, 255, .6)); }
.footer__social a:hover, .nav__social a:hover { filter: drop-shadow(0 0 8px rgba(240, 205, 120, .8)); }
.footer__links a { position: relative; transition: color .2s; }
.footer__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--gold-300); scale: 0 1; transition: scale .3s; }
.footer__links a:hover::after { scale: 1 1; }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 205, 120, .7);
  border-radius: 50%;
  background: rgba(8, 15, 36, .9);
  color: var(--gold-300);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .6);
  opacity: 0;
  translate: 0 16px;
  visibility: hidden;
  transition: opacity .3s, translate .3s, visibility .3s, background .2s, color .2s, box-shadow .2s;
}
.to-top svg { width: 20px; height: 20px; rotate: -90deg; transition: translate .2s; }
.is-deep .to-top { opacity: 1; translate: none; visibility: visible; }
.to-top:hover { background: var(--gold-300); color: #000; box-shadow: 0 0 20px rgba(240, 205, 120, .7); }
.to-top:hover svg { translate: 0 -3px; }

/* ---------- Holographic cards ---------- */

@property --rx { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --ry { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --hx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --hy { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --o { syntax: "<number>"; inherits: true; initial-value: 0; }

.holo {
  position: relative;
  display: block;
  aspect-ratio: var(--ar);
  min-width: 0;
  transform: perspective(700px) translateY(var(--fy, 0px)) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--sc, 1));
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.3, 1.5, .5, 1), filter .35s, opacity .7s, translate .7s cubic-bezier(.2, .7, .2, 1);
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .7));
  touch-action: pan-y;
  cursor: pointer;
  will-change: transform;
}
.holo.is-active {
  --sc: 1.07;
  z-index: 5;
  transition: transform .09s linear, filter .35s;
  filter: drop-shadow(0 0 18px rgba(255, 214, 120, .6)) drop-shadow(0 26px 28px rgba(0, 0, 0, .75));
}
.holo img,
.gallery .holo img,
.card-wall .holo img,
.unique .holo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  filter: none;
  scale: none;
}
.holo__foil, .holo__glare {
  position: absolute;
  inset: 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}
/* rainbow foil: fine diagonal lines over a spectrum that slides against the pointer */
.holo__foil {
  background-image:
    repeating-linear-gradient(118deg, transparent 0 5%, rgba(255, 255, 255, .55) 6.2%, transparent 7.4% 12%),
    linear-gradient(118deg, #ff5d7a, #ffd35d, #7dff9b, #5de0ff, #7d8bff, #e07dff, #ff5d7a, #ffd35d, #7dff9b);
  background-size: 260% 260%, 320% 320%;
  background-position: var(--hx) var(--hy), calc(100% - var(--hx)) calc(100% - var(--hy));
  mix-blend-mode: color-dodge;
  filter: saturate(1.35) brightness(.9);
  opacity: calc(var(--o) * .46);
}
/* glare: a hot spot under the pointer, darkening toward the far edge */
.holo__glare {
  background: radial-gradient(farthest-corner circle at var(--hx) var(--hy), rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, .3) 22%, rgba(0, 0, 0, .45) 95%);
  mix-blend-mode: overlay;
  opacity: calc(var(--o) * .75);
}
.holo--rare .holo__foil { opacity: calc(.14 + var(--o) * .5); }

/* idle: every so often the card catches the light by itself */
.js [data-stagger].is-in > .holo,
.js .is-in > .unique .holo {
  animation: bob 6s ease-in-out infinite, catch-light 9s 1.2s ease-in-out infinite;
}
.js [data-stagger].is-in > .holo:nth-child(3n + 2), .js .is-in > .unique:nth-child(2) .holo { animation-delay: -2s, 2.4s; }
.js [data-stagger].is-in > .holo:nth-child(3n) { animation-delay: -4s, 3.6s; }
.card-wall .holo { --bob: 0; }
.js .card-wall.is-in > .holo { animation-name: none, catch-light; }
.holo.is-active, .js [data-stagger].is-in > .holo.is-active, .js .is-in > .unique .holo.is-active { animation: none; }
@keyframes catch-light {
  0%, 26%, 100% { --o: 0; --hx: 0%; --hy: 20%; --rx: 0deg; --ry: 0deg; }
  4% { --o: .9; --hx: 10%; --hy: 25%; --rx: 3deg; --ry: -7deg; }
  13% { --o: 1; --hx: 60%; --hy: 55%; --rx: -2deg; --ry: 5deg; }
  22% { --o: .7; --hx: 100%; --hy: 80%; --rx: 0deg; --ry: 8deg; }
}

/* layout of holo cards in their containers */
.gallery .holo { flex: 0 1 calc(420px * var(--ar)); }
.gallery--pets .holo { flex-basis: calc(320px * var(--ar)); }
.card-wall .holo { width: 100%; }
.unique .holo { width: 100%; }
.unique .holo { filter: drop-shadow(0 0 22px rgba(120, 190, 255, .45)) drop-shadow(0 18px 26px rgba(0, 0, 0, .7)); }

/* genesis items: same foil over the looping pack art */
.item__media { position: relative; }
.item .holo__foil { opacity: calc(var(--o) * .34); }
.item .holo__glare { opacity: calc(var(--o) * .6); }
.item.is-active { transition: transform .09s linear; }
.item { transition: transform .6s cubic-bezier(.3, 1.5, .5, 1), opacity .7s, translate .7s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s; }

/* ---------- Hero logo as its own layer ---------- */

.logo3d {
  position: absolute;
  left: 29.486%;
  top: 6.071%;
  width: 41.029%;
  aspect-ratio: 1448 / 1078;
  perspective: 900px;
  translate: calc(var(--px, 0px) * 1.5) calc(var(--py, 0px) * 1.5);
  transition: translate .9s cubic-bezier(.2, .7, .2, 1);
}
.logo3d__body {
  position: absolute;
  inset: 0;
  transform: translateY(var(--fy)) rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  filter: drop-shadow(0 20px 26px rgba(0, 10, 40, .6)) drop-shadow(0 0 34px rgba(80, 160, 255, .5));
  animation: logo-in 1.7s .3s cubic-bezier(.2, 1.25, .35, 1) both, logo-float 7s 2s ease-in-out infinite;
  will-change: transform;
}
.logo3d__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.logo3d__glow {
  -webkit-mask: url(../assets/img/logo.webp) center / 100% 100% no-repeat;
  mask: url(../assets/img/logo.webp) center / 100% 100% no-repeat;
  background: radial-gradient(circle at 50% 42%, rgba(190, 235, 255, .85) 0, rgba(80, 160, 255, .4) 22%, transparent 48%);
  mix-blend-mode: screen;
  animation: pulse 4.5s ease-in-out infinite;
}
.logo3d .fx-sparks i { width: calc(5.6% * var(--k)); }
.fx-rays {
  -webkit-mask-image: radial-gradient(circle farthest-side at 50% 31%, #000 0, rgba(0, 0, 0, .6) 36%, transparent 72%);
  mask-image: radial-gradient(circle farthest-side at 50% 31%, #000 0, rgba(0, 0, 0, .6) 36%, transparent 72%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}
@keyframes logo-in { from { opacity: 0; scale: .5; translate: 0 -10%; } 60% { opacity: 1; } }
@keyframes logo-float { 0%, 100% { --fy: -5px; rotate: -.5deg; } 50% { --fy: 7px; rotate: .5deg; } }

.footer { overflow: hidden; }

/* ---------- Music toggle ---------- */

.sound {
  position: relative;
  order: 3;
  flex: none;
  width: 42px;
  height: 42px;
  margin-left: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 205, 120, .65);
  border-radius: 50%;
  background: rgba(8, 15, 36, .85);
  color: var(--gold-300);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.sound:hover { background: rgba(240, 205, 120, .16); box-shadow: 0 0 14px rgba(240, 205, 120, .55); }
.sound__bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.sound__bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: 50% 50%;
  scale: 1 .22;
  transition: scale .3s;
}
.sound[data-state="playing"] .sound__bars i { animation: eq 1.1s ease-in-out infinite; }
.sound[data-state="playing"] .sound__bars i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.sound[data-state="playing"] .sound__bars i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
.sound[data-state="playing"] .sound__bars i:nth-child(4) { animation-duration: .95s; animation-delay: -.15s; }
@keyframes eq { 0%, 100% { scale: 1 .25; } 50% { scale: 1 1; } }

/* muted: flat bars with a strike through them */
.sound[data-state="muted"] { color: #8f98ad; border-color: rgba(143, 152, 173, .6); }
.sound[data-state="muted"]::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 26px;
  height: 2px;
  translate: -50% -50%;
  rotate: -45deg;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 0 2px var(--navy-800);
}
/* waiting for the first click: a ring pulses to invite it */
.sound[data-state="waiting"]::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold-100);
  animation: ring 1.8s ease-out infinite;
}
@keyframes ring { from { opacity: .9; scale: 1; } to { opacity: 0; scale: 1.7; } }

@media (max-width: 1099px) {
  .sound { order: 0; margin-left: auto; }
  .nav__toggle { margin-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sound[data-state="playing"] .sound__bars i { scale: 1 .7; }
  .sound[data-state="playing"] .sound__bars i:nth-child(2n) { scale: 1 1; }
}

/* ---------- Hero parallax layers ---------- */

.layer {
  position: absolute;
  translate:
    calc(var(--px, 0px) * var(--d, 1))
    calc(var(--py, 0px) * var(--d, 1) + var(--sy, 0) * var(--s, 0) * 1px);
  transition: translate .7s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
  will-change: translate;
}
.layer__in { position: relative; animation: layer-in 1.8s cubic-bezier(.2, .8, .2, 1) both; }
.layer img { display: block; width: 100%; height: auto; max-width: none; }
@keyframes layer-in { from { opacity: 0; translate: var(--ix, 0) var(--iy, 0); scale: var(--is, 1); } }

.layer--clouds .layer__in { animation-duration: 3s; animation-delay: .5s; }
.layer--clouds img { animation: cloud-drift 46s ease-in-out infinite alternate; }
.layer--clouds-back { opacity: .7; }
.layer--clouds-back img { scale: -1 1; animation-duration: 64s; animation-direction: alternate-reverse; }
@keyframes cloud-drift { from { translate: -3.2% 0; } to { translate: 3.2% 0; } }

.layer--island .layer__in { --iy: -40%; animation-delay: .9s; }
.layer--island img { animation: island 8s ease-in-out infinite; }
.layer--island-b img { animation-duration: 9.5s; animation-delay: -3s; }
.layer--island-c img { animation-duration: 11s; animation-delay: -5s; filter: drop-shadow(0 0 14px rgba(110, 180, 255, .75)); }
.layer--island-a img { animation-duration: 7s; animation-delay: -2s; }
@keyframes island { 0%, 100% { translate: 0 -3.5%; rotate: -.8deg; } 50% { translate: 0 3.5%; rotate: .8deg; } }

.layer--castle .layer__in { --iy: 7%; animation-delay: .15s; }
.layer--arch .layer__in { --ix: -14%; animation-delay: .45s; }
.layer--foliage .layer__in { --is: 1.2; animation-delay: .6s; transform-origin: 50% 100%; }
.layer--foliage img { transform-origin: 0 100%; animation: sway 9s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: -.35deg; } 50% { rotate: .45deg; } }

/* the back plate is now only sky, so it can come in plainly */
.scene__img { animation: fx-in 1.4s ease-out both; }

/* dusk haze behind the tagline and buttons so they read against the bright cliffs */
.fx-shade {
  background: radial-gradient(ellipse 36% 31% at 50% 85%, rgba(5, 12, 38, .86), rgba(5, 12, 38, .62) 52%, rgba(5, 12, 38, 0));
  animation: fx-in 2s .8s both;
}
.hero__tagline { text-shadow: 0 2px 16px rgba(0, 8, 34, .95), 0 0 34px rgba(0, 8, 34, .8), 0 0 2px rgba(0, 0, 0, .7); }
.hero__pillars, .hero__motto p { text-shadow: 0 1px 10px rgba(0, 8, 34, .95), 0 0 20px rgba(0, 8, 34, .8); }

/* ---------- Knight on the wall, cape drawn on a canvas so it can ripple ---------- */

.layer--knight .layer__in { --ix: -61%; animation-delay: .45s; filter: drop-shadow(0 5px 6px rgba(10, 20, 10, .45)); }
.cape { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.layer--knight.is-live .cape { display: block; }
.layer--knight.is-live img { visibility: hidden; }

/* ---------- Showcase: a framed stage with one item forward and its neighbours at the sides ---------- */

.showcase {
  --h: min(430px, 82vw);
  position: relative;
  max-width: 980px;
  margin: 40px auto 0;
  padding: clamp(26px, 5vw, 46px) clamp(10px, 3vw, 34px) clamp(20px, 3vw, 30px);
  border: 1px solid rgba(240, 205, 120, .28);
  border-radius: 6px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0, rgba(70, 140, 255, .2), transparent 70%),
    linear-gradient(180deg, rgba(8, 14, 34, .72), rgba(4, 7, 18, .88));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 0 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(3px);
  outline: none;
  overflow: hidden;
}
.showcase--pets { --h: min(310px, 62vw); }
.showcase:focus-visible { border-color: var(--blue-300); }

/* gold brackets on the four corners */
.showcase__corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--gold-300);
  border-right: 0;
  border-bottom: 0;
  filter: drop-shadow(0 0 6px rgba(240, 205, 120, .6));
  pointer-events: none;
}
.showcase__corner::after { content: ""; position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; rotate: 45deg; background: var(--gold-100); }
.showcase__corner:nth-of-type(1) { left: 8px; top: 8px; }
.showcase__corner:nth-of-type(2) { right: 8px; top: 8px; scale: -1 1; }
.showcase__corner:nth-of-type(3) { left: 8px; bottom: 8px; scale: 1 -1; }
.showcase__corner:nth-of-type(4) { right: 8px; bottom: 8px; scale: -1 -1; }

/* spotlight from above and a glowing dais below */
.showcase__beam {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(74%, 560px);
  height: 82%;
  translate: -50% 0;
  background: linear-gradient(180deg, rgba(150, 205, 255, .3), rgba(150, 205, 255, .06) 70%, transparent);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(10px);
  animation: beam 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes beam { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.showcase__stage { position: relative; height: calc(var(--h) + 34px); perspective: 1300px; }
.showcase__pedestal {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(66%, 420px);
  height: 64px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(160, 215, 255, .75) 0, rgba(70, 150, 255, .35) 34%, transparent 68%);
  box-shadow: 0 0 0 1px rgba(240, 205, 120, .55), 0 0 0 9px rgba(240, 205, 120, .08), 0 0 44px rgba(70, 150, 255, .7);
  animation: dais 4.5s ease-in-out infinite;
}
@keyframes dais { 0%, 100% { opacity: .65; scale: .96 1; } 50% { opacity: 1; scale: 1.04 1; } }

.showcase__track {
  position: absolute;
  inset: 0 0 26px;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4%;
  translate: var(--drag, 0px) 0;
  transition: translate .35s cubic-bezier(.2, .7, .2, 1);
  transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.showcase__track:active { cursor: grabbing; }
.slide { flex: 0 1 auto; min-width: 0; }
.slide .holo { height: var(--h); width: auto; max-width: 100%; }
.slide img { -webkit-user-drag: none; }

/* carousel mode (script running): slides stack in the centre and fan out by position */
.is-ready .slide {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .6s, filter .6s;
  cursor: pointer;
}
.is-ready .slide .holo { max-width: none; }
.is-ready .slide[data-pos="0"] { z-index: 3; transform: none; cursor: inherit; }
.is-ready .slide[data-pos="-1"] { z-index: 2; transform: translateX(-70%) translateZ(-180px) rotateY(34deg) scale(.74); opacity: .7; filter: brightness(.5) saturate(.75); }
.is-ready .slide[data-pos="1"] { z-index: 2; transform: translateX(70%) translateZ(-180px) rotateY(-34deg) scale(.74); opacity: .7; filter: brightness(.5) saturate(.75); }
.is-ready .slide[data-pos="-2"] { z-index: 1; transform: translateX(-125%) translateZ(-320px) rotateY(40deg) scale(.55); opacity: 0; pointer-events: none; }
.is-ready .slide[data-pos="2"] { z-index: 1; transform: translateX(125%) translateZ(-320px) rotateY(-40deg) scale(.55); opacity: 0; pointer-events: none; }
.is-ready .slide:not(.is-active) .holo { pointer-events: none; animation: none; }
.is-ready .slide:not(.is-active):hover { filter: brightness(.8) saturate(.9); }
.showcase .slide.is-active .holo { animation: bob 6s ease-in-out infinite, catch-light 9s 1s ease-in-out infinite; }
.showcase .slide.is-active .holo.is-active { animation: none; }

.showcase__bar { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 4vw, 34px); margin-top: 14px; }
.showcase__nav {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 205, 120, .7);
  border-radius: 50%;
  background: rgba(8, 15, 36, .85);
  color: var(--gold-300);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, translate .2s;
}
.showcase__nav svg { width: 20px; height: 20px; }
.showcase__nav--prev svg { rotate: 180deg; }
.showcase__nav:hover { background: var(--gold-300); color: #000; box-shadow: 0 0 18px rgba(240, 205, 120, .7); }
.showcase__nav--prev:hover { translate: -3px 0; }
.showcase__nav--next:hover { translate: 3px 0; }
.showcase__nav:active { scale: .92; }
.showcase__caption { min-width: min(250px, 46vw); display: grid; gap: 2px; }
.showcase__caption strong {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.showcase__caption small { font-family: var(--display); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--blue-300); white-space: pre; }
.showcase__caption.is-swap > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.showcase__caption.is-swap > small { animation-delay: .07s; }
.showcase__dots { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.showcase__dots i { width: 8px; height: 8px; rotate: 45deg; border: 1px solid var(--gold-300); transition: background .3s, scale .3s, box-shadow .3s; }
.showcase__dots i.is-on { background: var(--gold-100); scale: 1.35; box-shadow: 0 0 10px rgba(240, 205, 120, .9); }

/* ---------- Battlegrounds gallery: wide paintings, with the section behind taking on the one in front ---------- */

.feature--realms { overflow: hidden; }
.feature__backdrop, .feature__backdrop i { position: absolute; inset: 0; }
.feature__backdrop i {
  inset: -6%;
  background: center / cover no-repeat;
  filter: blur(22px) brightness(.5) saturate(1.15);
  opacity: 0;
  transition: opacity 1.1s ease;
}
.feature__backdrop i.is-on { opacity: 1; }
.feature__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy-900) 0, rgba(5, 10, 24, .25) 26%, rgba(5, 10, 24, .25) 74%, var(--navy-900) 100%);
}
.feature--realms .feature__inner { position: relative; }

.showcase--wide {
  --w: min(760px, 80vw);
  max-width: 1180px;
  background: linear-gradient(180deg, rgba(8, 14, 34, .5), rgba(4, 7, 18, .72));
}
.showcase--wide .showcase__stage { height: calc(var(--w) * .5625 + 30px); }
.showcase--wide .showcase__pedestal { width: min(80%, 700px); height: 46px; opacity: .6; }
.showcase--wide .showcase__beam { display: none; }
.showcase--wide .showcase__track { gap: 2%; }
.slide__art {
  width: var(--w);
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(240, 205, 120, .75);
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(4, 7, 18, .8), 0 0 0 5px rgba(240, 205, 120, .3), 0 26px 46px rgba(0, 0, 0, .7);
}
.showcase--wide .slide.is-active .slide__art { animation: realm 16s ease-in-out infinite alternate; }
@keyframes realm { from { object-position: 42% 50%; } to { object-position: 58% 50%; } }
.showcase--wide.is-ready .slide[data-pos="-1"] { transform: translateX(-56%) translateZ(-200px) rotateY(30deg) scale(.8); }
.showcase--wide.is-ready .slide[data-pos="1"] { transform: translateX(56%) translateZ(-200px) rotateY(-30deg) scale(.8); }
.showcase--wide.is-ready .slide[data-pos="-2"] { transform: translateX(-100%) translateZ(-380px) rotateY(36deg) scale(.6); }
.showcase--wide.is-ready .slide[data-pos="2"] { transform: translateX(100%) translateZ(-380px) rotateY(-36deg) scale(.6); }

/* The lower download buttons are a fixed size, so their contents must be too. The hero buttons scale
   with the scene (cqw); outside the hero those units follow the viewport and overflow on wide screens. */
@media (min-width: 1100px) {
  .feature .downloads--static { gap: 14px; }
  .feature .downloads--static .dl { gap: 14px; border-radius: 8px; }
  .feature .downloads--static .dl svg { width: 38px; height: 38px; }
  .feature .downloads--static .dl__text b { font-size: 24px; }
  .feature .downloads--static .dl__text small { margin-top: 7px; font-size: 10px; }
}

/* Small screens: the top bar holds the brand, music toggle and menu button. Without this the wide
   gap between them squeezed the menu button down to a sliver with no visible lines. */
@media (max-width: 1099px) {
  .nav__inner { gap: 12px; }
  .nav__toggle { flex: none; width: 44px; margin-left: 0; }
  .sound { flex: none; margin-left: auto; }
  .brand { min-width: 0; }
}
@media (max-width: 420px) {
  .nav__inner { gap: 10px; }
}
