:root {
  --accent: oklch(0.78 0.13 230);
  --gold: oklch(0.84 0.13 70);
  --text: #e6ecf5;
  --muted: #c2ccdb;
  --mono: "Space Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --serif: "Cormorant Garamond", Georgia, serif;
  --panel: rgba(10, 12, 18, 0.48);
  --panel-strong: rgba(10, 12, 18, 0.64);
  --border: rgba(180, 200, 225, 0.22);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.bg-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.land {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  font-family: var(--mono);
}

.land a,
.land button,
.content-hero {
  pointer-events: auto;
}

.land-brand {
  position: absolute;
  top: 54px;
  left: 60px;
}

.land-brand .wm {
  display: block;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.1em;
  color: #f1f5fb;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.land-brand .wm .semi { color: var(--gold); }

.land-brand .wm-sub {
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 0.26em;
  color: oklch(0.8 0.08 230);
  text-transform: uppercase;
  opacity: 0.82;
}

.land-nav {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.land-nav a {
  color: #d2dced;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-radius: 4px;
  transition: background .18s, color .18s;
  text-transform: uppercase;
  white-space: nowrap;
}

.land-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.land-nav a.active { color: var(--gold); }
.land-nav a.active::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 6px;
  background: oklch(0.84 0.13 70 / 0.7);
  box-shadow: 0 0 8px oklch(0.84 0.13 70 / 0.6);
}

.hero {
  position: absolute;
  left: 50.1%;
  top: 47.8%;
  --hero-scale: 1;
  --hero-width: 820px;
  --hero-vw: 76vw;
  transform: translate(-50%, -50%) scale(var(--hero-scale));
  transform-origin: center;
  width: min(var(--hero-width), var(--hero-vw));
  text-align: center;
}

.content-hero {
  max-height: min(66vh, 640px);
  overflow: auto;
  padding: 2px 4px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(210, 224, 246, 0.08) transparent;
}

.content-hero::-webkit-scrollbar { width: 6px; }
.content-hero::-webkit-scrollbar-thumb {
  background: rgba(210, 224, 246, 0.06);
  border-radius: 999px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12.5px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 18px oklch(0.78 0.13 70 / 0.5);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  vertical-align: middle;
  margin: 0 14px 4px;
  background: oklch(0.82 0.12 72 / 0.55);
}

.page-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: #f4f7fc;
  text-shadow: 0 2px 40px rgba(0,0,0,0.7), 0 0 60px oklch(0.7 0.12 250 / 0.35);
}

.lead {
  max-width: 660px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  text-shadow: 0 1px 16px rgba(0,0,0,0.7);
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}

.hbtn.primary {
  background: var(--gold);
  color: #1a130a;
  border-color: oklch(0.8 0.13 72);
  box-shadow: 0 0 0 1px oklch(0.74 0.13 72 / 0.3), 0 8px 30px oklch(0.6 0.12 60 / 0.4);
}

.hbtn.primary:hover {
  background: oklch(0.8 0.13 74);
  box-shadow: 0 0 0 1px oklch(0.8 0.13 72 / 0.5), 0 10px 40px oklch(0.66 0.13 60 / 0.6);
  transform: translateY(-2px);
}

.hbtn.ghost {
  background: rgba(12,16,24,0.4);
  color: #e6ecf5;
  border-color: rgba(180,200,225,0.32);
  backdrop-filter: blur(4px);
}

.hbtn.ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(200,218,240,0.6);
  transform: translateY(-2px);
}

.sec {
  margin: 30px 0 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  text-shadow: 0 0 16px rgba(0,0,0,0.7);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 12px;
  text-align: left;
}

.card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.68), rgba(8, 11, 17, 0.44));
  box-shadow: 0 14px 34px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  transition: transform .15s, background .18s, border-color .18s;
}

.card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(20, 26, 40, 0.78), rgba(10, 14, 22, 0.54));
  border-color: oklch(0.78 0.13 230 / 0.56);
}

.card small {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card b {
  color: #f4f7fc;
  font-size: 16px;
  line-height: 1.25;
}

.card span {
  color: #c2ccdb;
  font-size: 12.5px;
  line-height: 1.5;
}

.research-badge {
  margin-top: auto;
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid rgba(180, 200, 225, 0.18);
  border-radius: 4px;
  background: rgba(10, 12, 18, 0.42);
  color: var(--gold);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arc,
.detail-box,
.empty {
  margin: 12px auto;
  padding: 16px 18px;
  max-width: 840px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  color: var(--muted);
  text-align: left;
  box-shadow: 0 14px 34px rgba(0,0,0,0.32);
}

.arc summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  list-style: none;
}

.arc summary::-webkit-details-marker { display: none; }
.arc summary b { color: #f4f7fc; }
.arc summary span {
  color: #c2ccdb;
  font-size: 12px;
}

.arc .kurz,
.prose {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.wiki-panel {
  margin: 14px auto 16px;
  padding: 18px;
  max-width: 900px;
  border: 1px solid rgba(212, 190, 120, 0.34);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(13, 17, 24, 0.72), rgba(8, 11, 17, 0.52));
  backdrop-filter: blur(10px);
  color: var(--muted);
  text-align: left;
  box-shadow: 0 18px 44px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.06);
}

.wiki-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.wiki-kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wiki-head h2 {
  margin: 0;
  color: #f4f7fc;
  font-size: 20px;
  line-height: 1.2;
}

.wiki-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.wiki-stats span {
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid rgba(180, 200, 225, 0.18);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: #d2dced;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.wiki-stats b {
  display: block;
  color: var(--gold);
  font-size: 18px;
  line-height: 1.1;
}

.research-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.research-section {
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(180, 200, 225, 0.14);
}

.research-section.featured {
  padding: 12px;
  border: 1px solid rgba(180, 200, 225, 0.16);
  border-radius: 4px;
  background: rgba(10, 12, 18, 0.26);
}

.research-section:last-child { border-bottom: 0; }

.research-section h3 {
  margin: 8px 0 7px;
  color: #f4f7fc;
  font-size: 18px;
  line-height: 1.3;
}

.research-section p,
.claim p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.claim-list {
  display: grid;
  gap: 10px;
}

.claim-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.claim {
  padding: 12px;
  border: 1px solid rgba(180, 200, 225, 0.16);
  border-radius: 4px;
  background: rgba(10, 12, 18, 0.28);
}

.claim b {
  display: block;
  color: #f4f7fc;
  font-size: 14px;
  line-height: 1.45;
}

.claim-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.claim-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid rgba(180, 200, 225, 0.18);
  border-radius: 4px;
  color: var(--gold);
  background: rgba(10, 12, 18, 0.32);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.source-list a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(180, 200, 225, 0.18);
  border-radius: 4px;
  color: #d2dced;
  background: rgba(255,255,255,0.04);
  font-size: 10px;
}

.detail-box h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 10px;
  background: rgba(10, 12, 18, 0.54);
  color: #d2dced;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail-actions .back {
  margin-bottom: 0;
  padding: 7px 10px;
  border: 1px solid rgba(180, 200, 225, 0.18);
  border-radius: 4px;
  background: rgba(10, 12, 18, 0.42);
}

.detail-actions .back.secondary {
  color: #d2dced;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 1000px) {
  .is-ultrawide .hero {
    --hero-scale: 1.08;
    --hero-width: 1160px;
    --hero-vw: 72vw;
    top: 48.2%;
  }

  .is-ultrawide .content-hero {
    max-height: min(72vh, 760px);
    padding: 4px 6px 10px;
  }

  .is-ultrawide .page-title {
    font-size: clamp(52px, 4.6vw, 86px);
  }

  .is-ultrawide .lead {
    max-width: 760px;
    font-size: 15.5px;
  }

  .is-ultrawide .grid {
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 14px;
  }

  .is-ultrawide .card {
    min-height: 136px;
    padding: 18px;
  }

  .is-ultrawide .gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .land-brand {
    top: 24px;
    left: 22px;
  }

  .land-brand .wm { font-size: 21px; }
  .land-brand .wm-sub { display: none; }

  .land-nav {
    top: 74px;
    left: 22px;
    right: 22px;
    transform: none;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .land-nav a {
    font-size: 10px;
    padding: 8px 10px;
  }

  .hero {
    top: 54%;
    width: 92vw;
  }

  .content-hero {
    max-height: 70vh;
  }

  .eyebrow::before,
  .eyebrow::after {
    display: none;
  }

  .page-title {
    font-size: 42px;
  }

  .wiki-head {
    display: block;
  }

  .wiki-stats {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .claim-list.compact {
    grid-template-columns: 1fr;
  }
}
