:root {
  --ground: #0a0807;
  --surface: #130d0a;
  --panel: #1c1410;
  --panel-2: #2a1f18;
  --line: rgba(232, 197, 71, 0.14);
  --line-strong: rgba(232, 197, 71, 0.36);
  --sulfur: #e8c547;
  --sulfur-deep: #b8932a;
  --blood: #a3161c;
  --blood-bright: #d8262e;
  --ember: #ff7a2f;
  --rot: #8fb04a;
  --bone: #ece2cc;
  --ash: #a89b85;
  --dust: #74685a;
  --font-display: "Rye", "Rockwell", "Georgia", serif;
  --font-body: "Alegreya", "Georgia", "Times New Roman", serif;
  --font-label: "Special Elite", "Courier New", monospace;
  --radius: 4px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.nav-open { overflow: hidden; }

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

main, footer { position: relative; z-index: 1; overflow-x: clip; }
html, body { overflow-x: clip; }

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

[hidden] { display: none !important; }

a { color: var(--sulfur); }
a:hover { color: #fff1a8; }

::selection { background: var(--blood); color: #fff; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
  color: var(--bone);
}

h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
h2 em { font-style: normal; color: var(--blood-bright); }
h3 { font-size: 1.35rem; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sulfur);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--blood-bright);
  box-shadow: 0 0 10px var(--blood-bright);
  transform-origin: left;
}
.js [data-reveal] .eyebrow::before { transform: scaleX(0); transition: transform 0.9s 0.2s var(--ease-out); }
.js [data-reveal].in .eyebrow::before { transform: none; }

.section-head {
  display: grid;
  gap: 16px;
  max-width: 46rem;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head p { color: var(--ash); font-size: 1.12rem; }

.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: radial-gradient(circle at 50% 45%, #2a0a0a, var(--ground) 60%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.ready .loader { opacity: 0; visibility: hidden; }
.loader-mark {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}
.loader-mark svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.loader-mark circle {
  fill: none;
  stroke: var(--blood-bright);
  stroke-width: 2;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  filter: drop-shadow(0 0 6px var(--blood-bright));
  animation: loader-ring 1.6s var(--ease-out) forwards;
}
.loader-mark img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  animation: loader-pulse 1.4s ease-in-out infinite;
}
.loader-text {
  font-family: var(--font-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ash);
}
.loader-text i { font-style: normal; animation: dot 1.2s infinite; }
.loader-text i:nth-child(2) { animation-delay: 0.2s; }
.loader-text i:nth-child(3) { animation-delay: 0.4s; }
@keyframes loader-ring { to { stroke-dashoffset: 0; } }
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(216, 38, 46, 0.4)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 22px rgba(216, 38, 46, 0.9)); }
}
@keyframes dot { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blood), var(--blood-bright), var(--sulfur));
  box-shadow: 0 0 12px rgba(216, 38, 46, 0.8);
}

.lantern {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 80;
  background: radial-gradient(circle, rgba(255, 170, 80, 0.075), rgba(255, 120, 50, 0.03) 40%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lantern.on { opacity: 1; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform 0.4s var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 7, 0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.site-header.scrolled::before { opacity: 1; }
.site-header.hide { transform: translateY(-100%); }
.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  transition: min-height 0.4s var(--ease-out);
}
.site-header.scrolled .wrap { min-height: 62px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(232, 197, 71, 0.35));
  transition: transform 0.6s var(--ease-back), filter 0.3s ease;
}
.brand:hover { color: var(--bone); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); filter: drop-shadow(0 0 14px rgba(216, 38, 46, 0.8)); }
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  position: relative;
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  padding: 10px 12px;
  transition: color 0.25s ease;
}
.nav a:not(.btn):hover, .nav a.active { color: var(--bone); }
.nav-ink {
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blood-bright);
  box-shadow: 0 0 10px var(--blood-bright);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.3s ease;
  pointer-events: none;
}
.nav-cta { margin-left: 10px; animation: cta-glow 3s ease-in-out infinite; }
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 0 1px #000, 0 0 14px rgba(216, 38, 46, 0.3); }
  50% { box-shadow: 0 0 0 1px #000, 0 0 26px rgba(216, 38, 46, 0.75); }
}
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  background: rgba(10, 8, 7, 0.5);
  border: 1px solid var(--line-strong);
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--bone);
  transition: transform 0.4s var(--ease-out), opacity 0.2s ease, top 0.4s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  translate: var(--mx, 0) var(--my, 0);
  transition: transform 0.25s var(--ease-out), background 0.2s ease, box-shadow 0.3s ease, color 0.2s ease, border-color 0.2s ease, translate 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg) translateX(0);
  z-index: -1;
  pointer-events: none;
}
.btn:hover::after { animation: shine 0.9s var(--ease-out); }
@keyframes shine { to { transform: skewX(-20deg) translateX(420%); } }
.btn-primary {
  background: var(--sulfur);
  color: #1a1305;
  box-shadow: 0 0 0 1px #000, 0 0 24px rgba(232, 197, 71, 0.25);
}
.btn-primary:hover { background: #f3d55f; color: #1a1305; box-shadow: 0 0 0 1px #000, 0 10px 40px rgba(232, 197, 71, 0.45); }
.btn-blood {
  background: var(--blood);
  color: var(--bone);
  box-shadow: 0 0 0 1px #000, 0 0 24px rgba(163, 22, 28, 0.3);
}
.btn-blood:hover { background: var(--blood-bright); color: #fff; }
.btn-ghost {
  background: rgba(10, 8, 7, 0.4);
  color: var(--bone);
  border-color: var(--line-strong);
  backdrop-filter: blur(4px);
}
.btn-ghost::after { background: linear-gradient(100deg, transparent, rgba(232, 197, 71, 0.2), transparent); }
.btn-ghost:hover { border-color: var(--sulfur); color: var(--sulfur); box-shadow: 0 0 24px rgba(232, 197, 71, 0.18); }
.btn-sm { padding: 10px 15px; font-size: 0.74rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: 96px clamp(110px, 16vh, 200px);
  isolation: isolate;
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-scene > * { position: absolute; }
.sky {
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 72% 42%, rgba(163, 22, 28, 0.42), transparent 65%),
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(90, 20, 20, 0.35), transparent 70%),
    linear-gradient(180deg, #080505 0%, #1a0707 55%, #2a0b0a 78%, #120606 100%);
}
.moon {
  --size: min(64vw, 860px);
  width: var(--size);
  height: var(--size);
  right: calc(var(--size) * -0.12);
  top: 50%;
  margin-top: calc(var(--size) * -0.52);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 36%, rgba(255, 150, 80, 0.5), transparent 40%),
    radial-gradient(circle at 60% 62%, rgba(90, 0, 0, 0.5), transparent 35%),
    radial-gradient(circle, #d8262e 0%, #8e1015 48%, #3a0506 68%, transparent 70%);
  opacity: 0.55;
  filter: blur(2px);
  animation: moon-breathe 8s ease-in-out infinite;
}
.moon::after {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 38, 46, 0.35), transparent 60%);
}
@keyframes moon-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.68; }
}
.rays {
  width: 180vmax;
  height: 180vmax;
  left: calc(72% - 90vmax);
  top: calc(44% - 90vmax);
  background: repeating-conic-gradient(from 0deg, rgba(255, 90, 60, 0.07) 0deg 4deg, transparent 4deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 42%);
  mask: radial-gradient(circle, #000 0%, transparent 42%);
  animation: spin 160s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lightning {
  inset: 0;
  background: radial-gradient(ellipse at 30% 10%, rgba(220, 230, 255, 0.9), rgba(160, 170, 220, 0.35) 45%, transparent 75%);
  opacity: 0;
  mix-blend-mode: screen;
}
.lightning.flash { animation: flash 1.1s ease-out; }
@keyframes flash {
  0% { opacity: 0; }
  4% { opacity: 0.7; }
  8% { opacity: 0.08; }
  13% { opacity: 0.5; }
  18% { opacity: 0.05; }
  24% { opacity: 0.22; }
  100% { opacity: 0; }
}
.vultures {
  top: 6%;
  left: 2%;
  width: min(44vw, 520px);
  fill: none;
  stroke: #050202;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.8;
}
.vulture { animation: orbit 30s linear infinite; }
.vulture path { animation: flap 1.6s ease-in-out infinite; transform-origin: 0 0; }
.v2 { animation-duration: 38s; animation-direction: reverse; }
.v2 path { animation-duration: 1.9s; }
.v3 { animation-duration: 46s; animation-delay: -12s; }
.v3 path { animation-duration: 2.2s; }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(110px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}
@keyframes flap {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.35); }
}
.embers {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
}
.land {
  left: -4%;
  bottom: -2px;
  width: 108%;
  height: 46%;
  will-change: transform;
}
.land-far { fill: #2a0b0b; opacity: 0.9; z-index: 1; }
.land-mid { fill: #150606; stroke: #150606; z-index: 3; height: 42%; }
.land-near { fill: #060303; stroke: #060303; z-index: 5; height: 36%; }
.walkers {
  left: -4%;
  bottom: -2px;
  width: 108%;
  height: 42%;
  z-index: 3;
  fill: #150606;
  stroke: #150606;
  stroke-linecap: round;
}
.walker { animation: shamble 110s linear infinite; }
.w1 { animation-delay: -20s; }
.w2 { animation-duration: 140s; animation-delay: -80s; }
.w3 { animation-duration: 125s; animation-delay: -55s; }
.walker-body { animation: bob 1.8s ease-in-out infinite; transform-origin: 13px 56px; }
.w2 .walker-body { animation-duration: 2.1s; }
.w3 .walker-body { animation-duration: 1.6s; }
.leg-a, .leg-b { transform-origin: 13px 34px; animation: step 1.8s ease-in-out infinite; }
.leg-b { animation-direction: reverse; }
.w2 .leg-a, .w2 .leg-b { animation-duration: 2.1s; }
.w3 .leg-a, .w3 .leg-b { animation-duration: 1.6s; }
@keyframes shamble {
  from { transform: translate(-80px, 194px); }
  to { transform: translate(1520px, 194px); }
}
@keyframes bob {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(9deg) translateY(1.5px); }
}
@keyframes step {
  0%, 100% { transform: rotate(-14deg); }
  50% { transform: rotate(14deg); }
}
.fog {
  left: 0;
  width: 200%;
  height: 48%;
  bottom: 0;
  background:
    radial-gradient(40% 50% at 10% 70%, rgba(190, 160, 150, 0.12), transparent 70%),
    radial-gradient(30% 40% at 32% 82%, rgba(190, 160, 150, 0.09), transparent 70%),
    radial-gradient(45% 55% at 58% 76%, rgba(190, 160, 150, 0.11), transparent 70%),
    radial-gradient(35% 50% at 84% 68%, rgba(190, 160, 150, 0.09), transparent 70%);
  background-size: 50% 100%;
  background-repeat: repeat-x;
  filter: blur(10px);
  animation: drift 70s linear infinite;
}
.fog-back { z-index: 2; opacity: 0.8; }
.fog-front { z-index: 4; height: 34%; opacity: 0.9; animation-duration: 45s; animation-direction: reverse; }
@keyframes drift { to { transform: translateX(-50%); } }

.hero-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  will-change: transform, opacity;
}
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 8, 7, 0.55);
  backdrop-filter: blur(6px);
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
}
.hero-status b { font-weight: 400; }
.hero-status i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sulfur);
  box-shadow: 0 0 10px var(--sulfur);
}
.hero-status i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: var(--sulfur);
  animation: ping 2s ease-out infinite;
}
.hero-status.live i { background: var(--rot); box-shadow: 0 0 10px var(--rot); }
.hero-status.live i::after { color: var(--rot); }
.hero-status.closed i { background: var(--blood-bright); box-shadow: 0 0 10px var(--blood-bright); }
.hero-status.closed i::after { color: var(--blood-bright); }
@keyframes ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.hero-title { margin: 0; line-height: 0; }
.hero-wordmark {
  width: min(100%, 510px);
  filter: drop-shadow(0 6px 0 #000) drop-shadow(0 0 34px rgba(232, 197, 71, 0.22));
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  color: var(--bone);
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.hero-tagline em {
  font-style: normal;
  color: var(--blood-bright);
  text-shadow: 0 0 24px rgba(216, 38, 46, 0.6);
}
.hero-lead {
  font-size: 1.16rem;
  color: #c4b8a2;
  max-width: 35rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--line);
  background: var(--line);
  margin-top: 6px;
  backdrop-filter: blur(6px);
}
.hero-facts > div {
  padding: 14px 16px;
  background: rgba(14, 10, 8, 0.82);
  display: grid;
  gap: 2px;
  min-width: 0;
  transition: background 0.3s ease;
}
.hero-facts > div:hover { background: rgba(42, 20, 14, 0.9); }
.hero-facts b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--sulfur);
  line-height: 1.2;
}
.hero-facts > div > span {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dust);
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1000px;
}
.emblem-halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 38, 46, 0.55), rgba(216, 38, 46, 0) 70%);
  filter: blur(24px);
  animation: halo 4s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.06); }
}
.emblem {
  position: relative;
  width: min(100%, 470px);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.85));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out);
  animation: sway 9s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { translate: 0 0; rotate: -1deg; }
  50% { translate: 0 -14px; rotate: 1deg; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 11;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 46px;
  background: rgba(232, 197, 71, 0.2);
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 18px;
  background: var(--sulfur);
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue {
  from { transform: translateY(-20px); }
  to { transform: translateY(50px); }
}

.js .hero-status,
.js .hero-title,
.js .hero-lead,
.js .hero-actions,
.js .hero-facts,
.js .hero-art,
.js .scroll-cue { opacity: 0; }
.ready .hero-status { animation: rise 0.9s 0.15s var(--ease-out) forwards; }
.ready .hero-title { animation: wordmark-in 1.4s 0.25s var(--ease-out) forwards, flicker 9s 3s infinite; }
.ready .hero-lead { animation: rise 1s 0.9s var(--ease-out) forwards; }
.ready .hero-actions { animation: rise 1s 1.05s var(--ease-out) forwards; }
.ready .hero-facts { animation: rise 1s 1.2s var(--ease-out) forwards; }
.ready .hero-art { animation: emblem-in 1.6s 0.4s var(--ease-out) forwards; }
.ready .scroll-cue { animation: fade 1s 1.8s ease forwards; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { to { opacity: 1; } }
@keyframes wordmark-in {
  0% { opacity: 0; transform: scale(1.18) translateY(10px); filter: blur(14px) brightness(2.2); }
  60% { opacity: 1; filter: blur(0) brightness(1.3); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes flicker {
  0%, 92%, 94%, 97%, 100% { opacity: 1; }
  93% { opacity: 0.55; }
  95% { opacity: 0.85; }
  96% { opacity: 0.4; }
}
@keyframes emblem-in {
  from { opacity: 0; scale: 0.8; filter: blur(8px); }
  to { opacity: 1; scale: 1; filter: none; }
}

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0.02em 0.12em;
  margin: -0.06em -0.02em -0.12em;
}
.w > span {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + 0.1s);
}
.in .w > span,
.ready .hero .w > span { transform: none; }
.ready .hero .w > span { transition-delay: calc(var(--i, 0) * 70ms + 0.75s); }

.js [data-reveal] {
  opacity: 0;
  translate: 0 36px;
  transition: opacity 1s var(--ease-out), translate 1s var(--ease-out);
}
.js [data-reveal].in { opacity: 1; translate: 0 0; }
.js [data-stagger] > * {
  opacity: 0;
  translate: var(--from-x, 0) var(--from-y, 40px);
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s, 0s;
}
.js [data-stagger].in > * { opacity: 1; translate: 0 0; }
.js .rules-side { --from-x: 50px; --from-y: 0; }
.js .apply-aside { --from-x: -40px; --from-y: 0; }

.marquee {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  background: var(--blood);
  border-block: 1px solid #000;
  box-shadow: 0 0 60px rgba(163, 22, 28, 0.45);
}
.marquee-row {
  overflow: hidden;
  padding-block: 14px;
  background: linear-gradient(180deg, #b3191f, #8a1015);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f7e6c4;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
.marquee-track b { color: var(--sulfur); font-weight: 400; font-size: 0.8em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.drips {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 34px;
  fill: #8a1015;
  pointer-events: none;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4));
}

.section {
  padding-block: clamp(72px, 10vw, 140px);
  position: relative;
}
.section.alt { background: var(--surface); }
.section.alt::before,
.section.alt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: var(--surface);
  pointer-events: none;
}
.section.alt::before {
  top: -13px;
  clip-path: polygon(0 100%, 3% 40%, 7% 90%, 11% 20%, 15% 80%, 19% 35%, 24% 95%, 28% 30%, 33% 75%, 37% 15%, 42% 85%, 47% 40%, 52% 100%, 56% 25%, 61% 70%, 66% 10%, 70% 80%, 75% 45%, 80% 95%, 84% 30%, 89% 65%, 93% 20%, 97% 85%, 100% 50%, 100% 100%);
}
.section.alt::after {
  bottom: -13px;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 96% 90%, 92% 20%, 88% 75%, 83% 35%, 78% 100%, 73% 30%, 68% 80%, 63% 10%, 58% 70%, 53% 40%, 48% 95%, 43% 25%, 38% 85%, 33% 15%, 28% 65%, 23% 35%, 18% 100%, 13% 40%, 8% 80%, 4% 20%, 0 60%);
}
#about::before { display: none; }
#about { padding-top: clamp(96px, 12vw, 160px); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  --px: 50%;
  --py: 50%;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px 26px 28px;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--blood-bright), var(--blood));
  transform-origin: top;
  transition: width 0.4s var(--ease-out);
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--px) var(--py), rgba(232, 197, 71, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature:hover { border-color: var(--line-strong); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(216, 38, 46, 0.12); }
.feature:hover::after { opacity: 1; }
.feature:hover::before { width: 5px; }
.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle, rgba(216, 38, 46, 0.18), transparent 70%);
  transition: transform 0.5s var(--ease-back), box-shadow 0.3s ease;
}
.feature:hover .feature-icon { transform: rotate(-6deg) scale(1.08); box-shadow: 0 0 24px rgba(216, 38, 46, 0.35); }
.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--sulfur);
}
.js .feature-icon svg * {
  stroke-dasharray: 110;
  stroke-dashoffset: 110;
  transition: stroke-dashoffset 1.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + 0.4s);
}
.js .in .feature-icon svg * { stroke-dashoffset: 0; }
.feature h3 { position: relative; }
.feature p { color: var(--ash); font-size: 1rem; position: relative; }
.feature-num {
  position: absolute;
  top: 10px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 197, 71, 0.14);
  transition: -webkit-text-stroke-color 0.3s ease, transform 0.5s var(--ease-out);
  pointer-events: none;
}
.feature:hover .feature-num { -webkit-text-stroke-color: rgba(216, 38, 46, 0.5); transform: translateY(-4px); }

.timeline { position: relative; }
.timeline-track {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: rgba(232, 197, 71, 0.12);
}
.timeline-track i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blood-bright), var(--sulfur));
  box-shadow: 0 0 12px rgba(216, 38, 46, 0.7);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 2s 0.3s var(--ease-out);
}
.timeline.in .timeline-track i { transform: none; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  display: grid;
  gap: 12px;
  align-content: start;
}
.step-badge {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(232, 197, 71, 0.25);
  background: var(--ground);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--dust);
  margin-bottom: 8px;
  transition: all 0.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.4s + 0.5s);
}
.timeline.in .step-badge {
  border-color: var(--blood-bright);
  color: var(--bone);
  background: radial-gradient(circle, #5a0d10, #1a0707);
  box-shadow: 0 0 0 6px rgba(216, 38, 46, 0.12), 0 0 26px rgba(216, 38, 46, 0.55);
}
.step:hover .step-badge { transform: scale(1.1) rotate(-8deg); }
.step p { color: var(--ash); font-size: 1rem; }

.terminal {
  margin-top: clamp(40px, 6vw, 64px);
  border: 1px solid var(--line-strong);
  background: #050404;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px #000, inset 0 0 60px rgba(232, 197, 71, 0.03);
  border-radius: 6px;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #15100c;
  border-bottom: 1px solid var(--line);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a2c22; }
.terminal-bar i:nth-child(1) { background: var(--blood-bright); }
.terminal-bar i:nth-child(2) { background: var(--sulfur-deep); }
.terminal-bar i:nth-child(3) { background: #4d6a26; }
.terminal-bar span {
  margin-left: 10px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dust);
}
.terminal-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  font-family: var(--font-label);
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  overflow-x: auto;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px);
}
.terminal-body .prompt { color: var(--blood-bright); }
.terminal-body code {
  font-family: inherit;
  color: var(--sulfur);
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(232, 197, 71, 0.45);
}
.caret {
  width: 10px;
  height: 1.2em;
  background: var(--sulfur);
  margin-left: -8px;
  animation: blink 1s steps(1) infinite;
  flex: none;
}
@keyframes blink { 50% { opacity: 0; } }
.terminal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 20px 18px;
  border-top: 1px dashed var(--line);
}
.terminal-actions .hint { color: var(--dust); font-size: 0.95rem; }
#copy-connect .i-check { display: none; }
#copy-connect.copied { background: var(--rot); }
#copy-connect.copied .i-copy { display: none; }
#copy-connect.copied .i-check { display: block; animation: pop 0.4s var(--ease-back); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.rules-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.poster-wrap { perspective: 1400px; padding-top: 14px; }
.poster {
  position: relative;
  background: #e6d7b2;
  color: #2a1c10;
  padding: clamp(28px, 4vw, 48px);
  border: 6px double #6b4c2a;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75), inset 0 0 80px rgba(107, 76, 42, 0.35);
  transform: rotate(-0.8deg);
  transform-origin: 50% 0;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(107, 76, 42, 0.18), transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(107, 76, 42, 0.24), transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(160, 110, 50, 0.1), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.24 0 0 0 0 0.12 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.js .poster { opacity: 0; transform: rotate(-14deg) translateY(-80px); }
.js .poster-wrap.in .poster { animation: poster-drop 1.5s var(--ease-out) forwards, poster-thud 0.35s 1.7s ease-out; }
@keyframes poster-drop {
  0% { opacity: 0; transform: rotate(-14deg) translateY(-80px); }
  35% { opacity: 1; transform: rotate(5deg) translateY(0); }
  55% { transform: rotate(-3deg); }
  72% { transform: rotate(1.4deg); }
  86% { transform: rotate(-1.2deg); }
  100% { opacity: 1; transform: rotate(-0.8deg); }
}
@keyframes poster-thud {
  0%, 100% { opacity: 1; transform: rotate(-0.8deg); }
  30% { opacity: 1; transform: rotate(-0.8deg) translate(3px, 2px) scale(0.995); }
  60% { opacity: 1; transform: rotate(-0.8deg) translate(-2px, -1px); }
}
.nail {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9d3c7, #6c655b 55%, #2a2622);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.poster h3 {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: #2a1c10;
  letter-spacing: 0.06em;
  border-bottom: 3px solid #2a1c10;
  padding-bottom: 10px;
  margin-bottom: 6px;
}
.poster .sub {
  text-align: center;
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7a1d1a;
  margin-bottom: 20px;
}
.poster ol {
  margin: 0;
  padding-left: 1.5em;
  display: grid;
  gap: 11px;
  font-size: 1.05rem;
  line-height: 1.45;
}
.poster li::marker { font-family: var(--font-display); color: #7a1d1a; }
.poster ol b { font-family: var(--font-label); font-weight: 400; letter-spacing: 0.04em; }
.poster .stamp {
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #9e1b1f;
  border: 3px solid #9e1b1f;
  padding: 4px 12px;
  transform: rotate(-12deg);
  opacity: 0.85;
  letter-spacing: 0.12em;
  mix-blend-mode: multiply;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='s'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='s'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}
.js .poster .stamp { opacity: 0; transform: rotate(-12deg) scale(3); }
.js .poster-wrap.in .stamp { animation: stamp 0.4s 1.4s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-20deg) scale(3); }
  100% { opacity: 0.85; transform: rotate(-12deg) scale(1); }
}
.hole {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #050302 28%, #2a1a0c 40%, rgba(90, 60, 30, 0.6) 52%, transparent 70%);
  z-index: 1;
}
.hole::after {
  content: "";
  position: absolute;
  inset: -10px;
  background:
    linear-gradient(20deg, transparent 48%, rgba(42, 28, 16, 0.5) 49% 51%, transparent 52%),
    linear-gradient(110deg, transparent 48%, rgba(42, 28, 16, 0.45) 49% 51%, transparent 52%),
    linear-gradient(160deg, transparent 48%, rgba(42, 28, 16, 0.4) 49% 51%, transparent 52%);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
  mask: radial-gradient(circle, #000 30%, transparent 70%);
}
.hole.h1 { top: 20px; right: 24px; }
.hole.h2 { top: 46%; left: 6px; width: 16px; height: 16px; }
.hole.h3 { bottom: 26px; left: 38%; width: 18px; height: 18px; }
.js .hole { opacity: 0; transform: scale(0); }
.js .poster-wrap.in .hole { animation: hole 0.25s var(--ease-back) forwards; }
.js .poster-wrap.in .h1 { animation-delay: 2.2s; }
.js .poster-wrap.in .h2 { animation-delay: 2.45s; }
.js .poster-wrap.in .h3 { animation-delay: 2.6s; }
@keyframes hole {
  0% { opacity: 0; transform: scale(0); box-shadow: 0 0 0 0 rgba(255, 200, 80, 0.9); }
  40% { opacity: 1; box-shadow: 0 0 24px 10px rgba(255, 170, 60, 0.7); }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
.rules-side { display: grid; gap: 18px; }
.rules-side .note {
  position: relative;
  border-left: 3px solid var(--sulfur);
  padding: 18px 20px;
  background: var(--panel);
  color: var(--ash);
  overflow: hidden;
}
.rules-side .note::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(232, 197, 71, 0.08), transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}
.rules-side .note:hover { border-left-color: var(--blood-bright); background: #221812; }
.rules-side .note:hover::after { transform: none; }
.rules-side .note b { color: var(--bone); font-family: var(--font-label); font-weight: 400; display: block; margin-bottom: 6px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.86rem; }

.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.role {
  position: relative;
  padding: 1px;
  background: var(--line);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.role::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from var(--a), transparent 0 62%, var(--blood-bright) 76%, var(--sulfur) 86%, transparent 94%);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: border-spin 3.2s linear infinite;
}
.role:hover::before { opacity: 1; }
.role:hover { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55); }
@keyframes border-spin { to { --a: 360deg; } }
.role-inner {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, #211712, var(--panel) 40%);
  padding: 24px 22px;
  display: grid;
  gap: 12px;
  align-content: start;
  grid-template-rows: auto auto auto 1fr auto;
}
.role .status {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rot);
}
.role .status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 4px currentColor; }
  50% { box-shadow: 0 0 14px currentColor, 0 0 0 4px rgba(143, 176, 74, 0.15); }
}
.role .status.closed { color: var(--dust); }
.role .status.closed::before { animation: none; }
.role p { color: var(--ash); font-size: 0.98rem; }
.role ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ash);
  font-size: 0.95rem;
  display: grid;
  gap: 6px;
  align-content: start;
}
.role li { display: flex; gap: 10px; align-items: baseline; }
.role li::before { content: "\2726"; color: var(--blood-bright); font-size: 0.7em; }
.role-apply {
  justify-self: start;
  margin-top: 6px;
  font-family: var(--font-label);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sulfur);
  display: inline-flex;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, gap 0.3s var(--ease-out);
}
.role-apply:hover { border-bottom-color: var(--sulfur); gap: 14px; }

.apply-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}
.apply-aside { display: grid; gap: 18px; position: sticky; top: 96px; }
.apply-aside .card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px 20px 20px 24px;
  display: grid;
  gap: 8px;
  color: var(--ash);
  font-size: 0.98rem;
}
.apply-aside .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: var(--blood-bright);
}
.apply-aside .card b { color: var(--bone); font-family: var(--font-label); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.84rem; }

.tabs {
  position: relative;
  display: flex;
  border: 1px solid var(--line-strong);
  margin-bottom: 26px;
  background: rgba(10, 8, 7, 0.5);
}
.tab-ink {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--sulfur);
  box-shadow: 0 0 24px rgba(232, 197, 71, 0.35);
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), height 0.5s var(--ease-out);
}
.tab {
  position: relative;
  flex: 1;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line-strong);
  color: var(--ash);
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 10px;
  cursor: pointer;
  transition: color 0.35s ease;
}
.tab:last-of-type { border-right: 0; }
.tab[aria-selected="true"] { color: #1a1305; }
.tab:hover:not([aria-selected="true"]) { color: var(--bone); }

.form {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1f1612, var(--panel) 200px);
  padding: clamp(22px, 3vw, 40px);
  display: grid;
  gap: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.form-title {
  display: grid;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.form-title h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.form-title p { color: var(--ash); font-size: 1rem; }
.form-title.swap h3, .form-title.swap p { animation: rise 0.5s var(--ease-out); }
.panel.enter { animation: panel-in 0.55s var(--ease-out); }
@keyframes panel-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 18px;
}
legend {
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sulfur);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
legend::before { content: "\2726"; color: var(--blood-bright); }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field label {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--bone);
}
.field label small {
  color: var(--dust);
  font-size: 0.72rem;
  margin-left: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0d0a08;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(232, 197, 71, 0.55); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sulfur);
  background: #110d0a;
  box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.16), 0 0 24px rgba(232, 197, 71, 0.1);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--blood-bright);
  box-shadow: 0 0 0 3px rgba(216, 38, 46, 0.2);
}
.field.invalid, .check.invalid { animation: shake 0.45s ease; }
.check.invalid span { color: #f4c0c2; }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
.meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.meter {
  flex: 1;
  height: 3px;
  background: rgba(232, 197, 71, 0.1);
  overflow: hidden;
  border-radius: 3px;
}
.meter i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blood), var(--blood-bright));
  transition: transform 0.35s var(--ease-out), background 0.3s ease;
}
.meter.ok i { background: linear-gradient(90deg, #5d7a26, var(--rot)); }
.count {
  font-family: var(--font-label);
  font-size: 0.7rem;
  color: var(--dust);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.meter.ok + .count { color: var(--rot); }
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ash);
  font-size: 0.98rem;
  cursor: pointer;
}
.check input { margin-top: 5px; accent-color: var(--sulfur); width: 18px; height: 18px; flex: none; cursor: pointer; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-footer .fine { color: var(--dust); font-size: 0.9rem; max-width: 30rem; }
#submit-btn.loading span { opacity: 0.7; }
#submit-btn.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(26, 19, 5, 0.3);
  border-top-color: #1a1305;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.status-box {
  padding: 16px 18px;
  border: 1px solid;
  display: grid;
  gap: 10px;
  font-size: 1rem;
  animation: rise 0.45s var(--ease-out);
}
.status-box.ok { border-color: var(--rot); color: #d6e8ae; background: rgba(122, 154, 58, 0.1); }
.status-box.err { border-color: var(--blood-bright); color: #f4c0c2; background: rgba(163, 22, 28, 0.12); }
.status-box.info { border-color: var(--sulfur-deep); color: var(--bone); background: rgba(232, 197, 71, 0.07); }
.status-box textarea {
  width: 100%;
  min-height: 200px;
  background: #0d0a08;
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--font-label);
  font-size: 0.85rem;
  padding: 12px;
}
.status-box .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(100px, 14vw, 180px) clamp(140px, 16vw, 210px);
  isolation: isolate;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/emblem.png") center 40% / min(760px, 110vw) no-repeat;
  opacity: 0.1;
  filter: saturate(1.4);
  -webkit-mask: radial-gradient(circle at 50% 42%, #000 20%, transparent 62%);
  mask: radial-gradient(circle at 50% 42%, #000 20%, transparent 62%);
}
.final-cta-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 22, 28, 0.35), transparent 60%);
  animation: halo 6s ease-in-out infinite;
}
.final-cta .wrap { display: grid; justify-items: center; gap: 22px; }
.final-cta h2 { font-size: clamp(2.4rem, 6.5vw, 5rem); max-width: 16ch; }
.final-cta .hero-actions { justify-content: center; margin-top: 8px; }

.site-footer {
  position: relative;
  padding-block: 44px 32px;
  background: #070505;
}
.footer-land {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: clamp(50px, 8vw, 110px);
  fill: #070505;
  pointer-events: none;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer h3 {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sulfur);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a {
  color: var(--ash);
  text-decoration: none;
  background: linear-gradient(var(--blood-bright), var(--blood-bright)) left bottom / 0 1px no-repeat;
  transition: color 0.25s ease, background-size 0.35s var(--ease-out);
}
.site-footer a:hover { color: var(--bone); background-size: 100% 1px; }
.site-footer p { color: var(--dust); font-size: 0.95rem; max-width: 26rem; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand img.wm { width: 180px; height: auto; border-radius: 0; }
.legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.85rem;
  color: var(--dust);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.to-top {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 8, 7, 0.8);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-back), visibility 0.35s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 50px; height: 50px; }
.to-top circle { fill: none; stroke-width: 2; }
.to-top .ring-bg { stroke: rgba(232, 197, 71, 0.15); }
.to-top .ring {
  stroke: var(--blood-bright);
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.to-top path { fill: none; stroke: var(--sulfur); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(30px) scale(0.95);
  background: var(--sulfur);
  color: #1a1305;
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 13px 20px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.45s var(--ease-back);
  z-index: 150;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(232, 197, 71, 0.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

@media (max-width: 1080px) {
  .roles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
  .apply-layout { grid-template-columns: 1fr; }
  .apply-aside { position: static; grid-template-columns: repeat(3, 1fr); }
  .rules-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .timeline-track { display: none; }
}

@media (max-width: 820px) {
  .site-header::before { opacity: 1; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: radial-gradient(circle at 50% 30%, rgba(90, 12, 14, 0.5), transparent 60%), rgba(8, 6, 5, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--bone);
    padding: 10px 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.2s ease;
    transition-delay: calc(var(--i, 0) * 60ms + 0.1s);
  }
  .nav.open a { opacity: 1; transform: none; }
  .nav a:not(.btn):hover { color: var(--sulfur); }
  .nav .btn {
    margin: 18px 0 0;
    font-family: var(--font-label);
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 15px 28px;
  }
  .nav-ink { display: none; }
  .nav-toggle { display: block; }
  .hero { padding-top: 96px; align-items: start; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; justify-self: center; width: min(62vw, 300px); }
  .moon { --size: 120vw; right: auto; left: 50%; margin-left: -60vw; top: 0; margin-top: -8vw; }
  .rays { left: calc(50% - 90vmax); top: calc(22% - 90vmax); }
  .vultures { width: 70vw; }
  .scroll-cue { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .features, .roles, .steps, .row { grid-template-columns: 1fr; }
  .apply-aside { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .tabs { flex-direction: column; }
  .tab { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .tab:last-of-type { border-bottom: 0; }
  .timeline-track { display: block; top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .timeline-track i { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--blood-bright), var(--sulfur)); }
  .steps { row-gap: 28px; }
  .step { grid-template-columns: 56px 1fr; column-gap: 18px; row-gap: 6px; }
  .step-badge { grid-row: span 2; margin: 0; }
  .terminal-actions .btn { flex: 1 1 auto; }
  .poster .stamp { position: static; display: inline-block; margin-top: 18px; }
  .hole.h2 { display: none; }
  .final-cta .hero-actions .btn { flex: 1 1 100%; }
  .legal { flex-direction: column; }
}

@media (hover: none) {
  .lantern { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  body::after { animation: none; }
  .lantern, .embers, .lightning { display: none; }
}
