:root {
  --bg: #050906;
  --bg-2: #07110b;
  --bg-3: #0b1710;
  --panel: rgba(8, 16, 11, .94);
  --panel-2: rgba(12, 24, 16, .97);
  --ink: #efe9dc;
  --muted: #b7beaf;
  --green: #63d76c;
  --green-2: #a4ff9c;
  --green-dim: #2d7d42;
  --gold: #cbb37a;
  --gold-2: #f1dfa5;
  --line: rgba(203,179,122,.34);
  --line-green: rgba(164,255,156,.28);
  --danger: #d75d5d;
  --shadow: 0 24px 70px rgba(0,0,0,.54);
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(55, 169, 75, .18), transparent 38rem),
    radial-gradient(circle at 7% 40%, rgba(78, 195, 92, .07), transparent 28rem),
    linear-gradient(180deg, #040705 0%, var(--bg-2) 38%, #030504 100%);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button:disabled { cursor: not-allowed; opacity: .58; transform: none !important; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 999;
  background: #fff; color: #000; padding: .7rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(4, 9, 6, .84);
  border-bottom: 1px solid rgba(203,179,122,.18);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .9rem;
}
.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  box-shadow: 0 0 22px rgba(102,214,109,.25) inset, 0 0 20px rgba(102,214,109,.15);
  color: var(--green-2);
}
.nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .9rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--green-2); }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(203,179,122,.2);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,6,4,.96) 0%, rgba(3,6,4,.86) 48%, rgba(3,6,4,.42) 78%, rgba(3,6,4,.74) 100%),
    url('/assets/asvs-cover.png') center 28% / cover no-repeat;
  opacity: .40;
  filter: saturate(.9) contrast(1.1) blur(.2px);
  z-index: -2;
  transform: scale(1.02);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 38%, rgba(80,235,102,.15), transparent 17rem),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.34));
  pointer-events: none;
  z-index: -1;
}
.hero-compact { min-height: 58vh; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 86px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .72fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
}
.hero-darkfest { min-height: 82vh; }
.hero-darkfest .hero-content { max-width: 720px; }

.source-badge {
  width: fit-content;
  padding: .48rem .76rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(203,179,122,.45);
  border-radius: 999px;
  background: rgba(3,8,5,.72);
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 800;
}
.source-badge[hidden], [data-source-note][hidden] { display: none !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--green-2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.eyebrow::before { content: '✦'; color: var(--gold); }

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.08;
  margin-top: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.7rem, 6.8vw, 5.9rem);
  letter-spacing: -.045em;
  margin-bottom: 1.2rem;
  text-shadow: 0 8px 38px rgba(0,0,0,.82);
}
h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.lede {
  max-width: 66ch;
  color: #e8eadf;
  font-size: clamp(1.08rem, 2.3vw, 1.34rem);
  margin: 0 0 1.3rem;
}
.hero-command {
  margin: 0 0 1.7rem;
  color: var(--gold-2);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.18rem);
  letter-spacing: .025em;
}
.hero-fineprint { color: #9fa89c; font-size: .88rem; margin-top: 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .025em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-primary {
  color: #061008;
  background: linear-gradient(180deg, var(--green-2), #68ca72);
  border-color: rgba(164,255,156,.68);
  box-shadow: 0 12px 34px rgba(68,196,82,.2), inset 0 1px rgba(255,255,255,.38);
}
.btn-secondary { background: rgba(4,10,6,.66); color: var(--gold-2); }
.btn-wide { width: 100%; }
.btn.is-disabled { opacity: .56; cursor: default; pointer-events: none; }

.hero-art {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}
.cover-frame {
  position: relative;
  width: min(390px, 92%);
  border: 1px solid rgba(203,179,122,.62);
  box-shadow: 0 32px 90px rgba(0,0,0,.68), 0 0 50px rgba(80,235,102,.08);
  transform: rotate(1.3deg);
  overflow: hidden;
  background: #08100b;
}
.cover-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(241,223,165,.30);
  pointer-events: none;
}
.cover-frame img { width: 100%; aspect-ratio: 2 / 2.82; object-fit: cover; object-position: center; }
.occult-halo {
  position: absolute;
  width: min(520px, 112%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(164,255,156,.16);
  box-shadow: 0 0 80px rgba(93,255,116,.10), inset 0 0 80px rgba(93,255,116,.08);
}
.occult-halo::before,
.occult-halo::after {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(203,179,122,.13);
  border-radius: 50%;
}
.occult-halo::after { inset: 22%; border-style: dashed; transform: rotate(23deg); }
.hero-art-caption {
  position: absolute;
  left: 2%; right: 2%; bottom: 14px;
  color: #d6ccb1;
  text-align: center;
  font-size: .86rem;
  letter-spacing: .04em;
}

.section { padding: 88px 0; }
.section-tight { padding: 58px 0; }
.section-dark {
  padding: 74px 0;
  border-block: 1px solid rgba(203,179,122,.16);
  background:
    radial-gradient(circle at 20% 10%, rgba(64,180,78,.08), transparent 30rem),
    rgba(1,4,2,.42);
}
.section-heading { max-width: 790px; margin-bottom: 34px; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.portal-card, .project-card, .teaser-card, .vote-panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 10%, rgba(76,182,85,.09), transparent 14rem),
    linear-gradient(180deg, rgba(18,34,23,.96), rgba(6,13,8,.98));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.portal-card {
  min-height: 350px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, rgba(164,255,156,.04), transparent 40%),
    linear-gradient(160deg, transparent 35%, rgba(0,0,0,.74));
  pointer-events: none;
}
.portal-card::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(203,179,122,.08);
  border-radius: calc(var(--radius) - 7px);
  pointer-events: none;
}
.portal-card > * { position: relative; z-index: 1; }
.portal-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--green-2);
  font-size: 1.45rem;
  margin-bottom: auto;
  box-shadow: inset 0 0 22px rgba(102,214,109,.10);
}
.portal-number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: rgba(241,223,165,.24);
  font-size: 2rem;
  line-height: 1;
}
.portal-card p { color: var(--muted); margin-bottom: .65rem; }
.portal-link { color: var(--gold-2); font-weight: 800; font-size: .92rem; }
.portal-card:hover { border-color: rgba(164,255,156,.50); transform: translateY(-4px); box-shadow: 0 30px 80px rgba(0,0,0,.62); }

.split-callout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}
.split-callout p { margin-top: 0; color: var(--muted); font-size: 1.08rem; }
.text-link { color: var(--green-2); text-decoration: none; font-weight: 800; }
.text-link:hover { color: var(--gold-2); }

.mini-note {
  border-left: 3px solid var(--green-dim);
  padding: .9rem 1rem;
  color: var(--muted);
  background: rgba(102,214,109,.045);
  border-radius: 0 10px 10px 0;
}

.projects-shell { display: grid; gap: 24px; }
.project-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 310px;
}
.project-visual {
  position: relative;
  background:
    radial-gradient(circle at 50% 24%, rgba(119,255,130,.25), transparent 10rem),
    linear-gradient(180deg, #142318, #070d09);
  min-height: 310px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.project-visual::before {
  content: attr(data-sigil);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(5rem, 13vw, 9rem);
  color: rgba(164,255,156,.17);
  text-shadow: 0 0 42px rgba(102,214,109,.25);
}
.project-visual::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(203,179,122,.14);
}

.project-visual.has-cover {
  background: #050806;
}
.project-visual.has-cover::before {
  display: none;
}
.project-cover {
  width: 100%;
  height: 100%;
  min-height: 310px;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.project-visual.has-cover::after {
  inset: 12px;
  border-color: rgba(241,223,165,.20);
  box-shadow: inset 0 0 32px rgba(0,0,0,.22);
  pointer-events: none;
}
.project-index {
  position: absolute;
  right: 26px;
  bottom: 18px;
  color: rgba(241,223,165,.30);
  font-size: 1.9rem;
  z-index: 2;
}
.project-body { padding: 32px; }
.project-kicker {
  color: var(--green-2);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}
.project-body p { color: var(--muted); }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.1rem 0 1.4rem; }
.tag {
  border: 1px solid rgba(203,179,122,.28);
  background: rgba(203,179,122,.06);
  color: #ded0a7;
  border-radius: 999px;
  padding: .3rem .7rem;
  font-size: .8rem;
}

.vote-section {
  background:
    radial-gradient(circle at 82% 25%, rgba(85,224,99,.11), transparent 22rem),
    rgba(2,5,3,.28);
  border-top: 1px solid rgba(203,179,122,.12);
}
.vote-layout { align-items: start; }
.vote-copy { position: sticky; top: 105px; }
.vote-panel { padding: 32px; }
.vote-panel-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.vote-panel-top h3 { margin-bottom: 0; }
.vote-rune {
  width: 50px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--green-2); box-shadow: inset 0 0 20px rgba(99,215,108,.12);
}
.vote-options { display: grid; gap: 12px; margin: 22px 0; }
.vote-option {
  position: relative;
  display: grid;
  grid-template-columns: 0 22px 1fr;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 16px;
  border: 1px solid rgba(203,179,122,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.vote-option:hover { border-color: rgba(164,255,156,.48); transform: translateY(-1px); }
.vote-option input { width: 0; height: 0; opacity: 0; margin: 0; }
.vote-radio-mark {
  width: 20px; height: 20px; margin-top: .2rem; border-radius: 50%;
  border: 1px solid rgba(203,179,122,.55); box-shadow: inset 0 0 0 4px rgba(4,10,6,.92);
}
.vote-option:has(input:checked) {
  border-color: rgba(164,255,156,.62);
  background: rgba(97,214,108,.07);
}
.vote-option:has(input:checked) .vote-radio-mark { background: var(--green-2); }
.vote-option strong { display: block; }
.vote-option small { color: var(--muted); display: block; margin-top: .15rem; }

.vote-option.has-cover {
  grid-template-columns: 0 22px 58px 1fr;
}
.vote-cover {
  width: 58px;
  aspect-ratio: 1447 / 2048;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  border: 1px solid rgba(203,179,122,.24);
  box-shadow: 0 5px 16px rgba(0,0,0,.32);
}
.vote-option-copy {
  align-self: center;
  min-width: 0;
}
.vote-status { min-height: 1.7em; color: var(--green-2); font-weight: 700; }
.vote-status.error { color: #ff9d9d; }
.vote-privacy { color: var(--muted); font-size: .87rem; }

.bonus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bonus-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.bonus-card img { height: 100%; width: 100%; object-fit: cover; }
.bonus-copy { padding: 26px; }
.bonus-copy p { color: var(--muted); }
.warning {
  max-width: 900px;
  margin-inline: auto;
  padding: 26px 28px;
  border: 1px solid rgba(215,93,93,.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(77,19,19,.18), rgba(15,9,8,.65));
  text-align: center;
}
.warning strong { color: #ffb5a9; }

.footer {
  border-top: 1px solid rgba(203,179,122,.18);
  padding: 34px 0 42px;
  color: #899187;
  font-size: .9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer a { color: #b9c0b5; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-darkfest { min-height: auto; }
  .hero-art { min-height: 520px; margin-top: -60px; margin-bottom: 48px; }
  .cover-frame { width: min(330px, 72vw); }
  .split-callout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .grid-3, .grid-2, .bonus-grid { grid-template-columns: 1fr; }
  .project-card, .bonus-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-cover { min-height: 0; max-height: 620px; object-fit: cover; object-position: center top; }
  .bonus-card img { max-height: 480px; object-fit: cover; object-position: top; }
  .hero { min-height: 68vh; }
  .vote-copy { position: static; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 58px; }
  .nav a:not(.nav-keep) { display: none; }
  .nav-keep { max-width: 42vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .hero-content { padding: 62px 0; }
  .hero-art { min-height: 430px; margin-top: -35px; }
  .section { padding: 64px 0; }
  .section-dark { padding: 58px 0; }
  .portal-card { min-height: 280px; }
  .vote-panel { padding: 22px; }
  .vote-option.has-cover { grid-template-columns: 0 20px 46px 1fr; gap: 10px; padding: 12px; }
  .vote-cover { width: 46px; }
  .wrap, .header-inner { width: min(100% - 22px, var(--max)); }
  h1 { font-size: clamp(2.55rem, 14vw, 4.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.project-index {
  display: none !important;
}