/* The "Über uns" page (ueber-uns.html): the Rechtsuniversum. A dark, cinematic page on
   purpose, unlike the paper landing page; it shares only the GLD fonts, tokens, header
   and footer from styles.css. The star field is about.js; this file lays out the stage.

   THREE LAYOUTS, one markup:
   - no JS: the chapters read one after another on the dark ground (the default below);
   - .universe--live (about.js): a tall scroll track with a sticky full-screen stage, the
     chapters fading in and out over the canvas as the flight goes;
   - .universe--still (reduced motion): the default stacking over one still frame. */

.page-universe {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- header over the dark stage ---------- */
.universe-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.universe-header.scrolled {
  background: rgba(13, 13, 15, 0.82);
  border-bottom-color: rgba(244, 244, 242, 0.1);
}

.universe-header .brand,
.universe-header .brand:hover {
  color: var(--paper);
}

.universe-header .nav-links a {
  color: rgba(244, 244, 242, 0.7);
}

.universe-header .nav-links a:hover {
  color: var(--paper);
}

.universe-header .btn-ghost {
  color: var(--paper);
  border-color: rgba(244, 244, 242, 0.6);
  background: transparent;
}

.universe-header .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- the universe ---------- */
.universe {
  position: relative;
  padding: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(27, 51, 214, 0.22), transparent 60%), var(--ink);
}

.universe-stage {
  position: relative;
}

.universe-canvas {
  display: none;
}

.universe-chapters {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.chapter {
  max-width: 640px;
  padding: 56px 0;
}

.chapter-eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-yellow);
}

.chapter h1,
.chapter h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--paper);
  text-wrap: balance;
}

.chapter h1 {
  font-size: clamp(34px, 4.6vw, 64px);
  max-width: none;
}

.chapter--intro,
.chapter--vision {
  max-width: 1000px;
}

.chapter h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  max-width: 20ch;
}

.chapter h1 span,
.chapter h2 span {
  color: rgba(244, 244, 242, 0.42);
}

/* the opening is the vision: its second line carries the signal colour */
.chapter--intro h1 span {
  color: var(--accent-yellow);
}

.chapter--vision h2 span {
  color: var(--accent-yellow);
}

.chapter-text {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(244, 244, 242, 0.72);
}

/* "Unsere Vision entdecken": a link for those who do not scroll on their own. about.js
   glides the flight to the first chapter; without JS it is a plain anchor to it. */
.chapter-hint {
  display: inline-block;
  margin: 44px 0 0;
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.6);
  text-decoration: none;
  pointer-events: auto;
}

.chapter-hint::after {
  content: "↓";
  display: inline-block;
  margin-left: 0.6em;
  transition: transform 0.2s ease;
}

/* the same link at the end of every chapter, so scrolling is optional (Michael, 2026-11-25) */
.chapter-next {
  margin-top: 28px;
}

.chapter-hint:hover {
  color: var(--accent-yellow);
  text-decoration: none;
}

.chapter-hint:hover::after {
  transform: translateY(3px);
}

.chapter-hint:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 4px;
}

.universe-progress,
.universe-note {
  display: none;
}

/* ---------- live: the scroll-driven flight ---------- */
.universe--live {
  height: 700vh;
}

.universe--live .universe-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.universe--live .universe-canvas,
.universe--still .universe-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* a scrim behind the chapters, so text never fights the stars behind it */
.universe--live .universe-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    75deg,
    rgba(13, 13, 15, 0.82) 0%,
    rgba(13, 13, 15, 0.45) 38%,
    transparent 62%
  );
}

.universe--live .universe-chapters {
  position: absolute;
  inset: 0;
  padding: 0 24px;
  pointer-events: none;
}

.universe--live .chapter {
  position: absolute;
  left: max(24px, calc((100% - var(--maxw)) / 2 + 24px));
  bottom: clamp(64px, 14vh, 140px);
  width: min(640px, calc(100% - 48px));
  padding: 0;
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

/* The opening and the vision sit higher: they are the page's two statements. */
.universe--live .chapter--intro,
.universe--live .chapter--vision {
  bottom: auto;
  top: 50%;
  width: min(1000px, calc(100% - 48px));
  transform: translateY(-40%);
}

.universe--live .universe-progress {
  display: block;
  position: absolute;
  z-index: 3;
  right: 24px;
  top: 50%;
  width: 2px;
  height: 140px;
  transform: translateY(-50%);
  background: rgba(244, 244, 242, 0.14);
}

.universe--live .universe-progress span {
  display: block;
  width: 100%;
  height: calc(100% * var(--p, 0));
  background: var(--accent-yellow);
}

.universe--live .universe-note,
.universe--still .universe-note {
  display: block;
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 18px;
  margin: 0;
  max-width: calc(100% - 48px);
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
  color: rgba(244, 244, 242, 0.38);
}

/* ---------- still (reduced motion): stacked chapters over one frame ---------- */
.universe--still .universe-stage {
  min-height: 100vh;
}

.universe--still .universe-chapters {
  background: linear-gradient(90deg, rgba(13, 13, 15, 0.8), rgba(13, 13, 15, 0.2));
}

/* ---------- after the flight: a calm editorial part (briefing, section 5) ---------- */
.editorial {
  padding: clamp(96px, 14vh, 160px) 24px;
  background: var(--ink);
  border-top: 1px solid rgba(244, 244, 242, 0.08);
}

.editorial-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.editorial h2 {
  margin: 0 0 clamp(28px, 4vh, 44px);
  max-width: 22ch;
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--paper);
  text-wrap: balance;
}

.editorial-lede {
  max-width: 58ch;
  margin: 0 0 clamp(40px, 6vh, 64px);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(244, 244, 242, 0.72);
}

/* the figures: large signal-yellow numbers, generous space */
.figures-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(244, 244, 242, 0.24);
}

.figure {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 0 0;
}

.figure + .figure {
  padding-left: 24px;
  border-left: 1px solid rgba(244, 244, 242, 0.1);
}

.figure dd {
  order: -1;
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-yellow);
  font-variant-numeric: tabular-nums;
}

.figure dt {
  font-size: 15px;
  color: rgba(244, 244, 242, 0.72);
}

.figures-note {
  margin: 36px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: rgba(244, 244, 242, 0.45);
}

/* the founder's word: a large quote with a small yellow typographic accent */

.founder-quote {
  margin: 0;
}

.founder-quote blockquote {
  position: relative;
  margin: 0 0 28px;
  padding: 0;
}

.founder-quote blockquote p {
  margin: 0;
  max-width: 34ch;
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--paper);
}

.founder-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.founder-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.founder-role {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-yellow);
}

/* ---------- team ---------- */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.crew-member {
  margin: 0;
}

.crew-member img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(0.2) contrast(1.05);
  transition: filter 0.4s ease;
}

.crew-member:hover img {
  filter: none;
}

.crew-member figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0 0;
  border-top: 2px solid var(--accent-yellow);
  margin-top: 18px;
}

.crew-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.crew-role {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-yellow);
}

.crew-bio {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244, 244, 242, 0.68);
}

/* ---------- contact ---------- */
.beacon {
  padding: clamp(96px, 14vh, 160px) 24px;
  background:
    radial-gradient(circle at 50% 120%, rgba(27, 51, 214, 0.55), transparent 60%), var(--ink);
  text-align: center;
}

.beacon-inner {
  max-width: 720px;
  margin: 0 auto;
}

.beacon h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
}

.beacon p {
  margin: 0 auto 36px;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(244, 244, 242, 0.72);
}

.beacon-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.beacon-ghost {
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(244, 244, 242, 0.6);
}

.beacon-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

/* The footer stays the site's light one: the page lands back on paper. */
.page-universe .site-footer {
  color: var(--ink);
}

/* ---------- shared by the dark pages (ueber-uns.html, research/gld-e1.html) ---------- */

/* text for screen readers only: what the canvas shows, said in words */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* anchors land below the fixed header */
.page-universe section[id] {
  scroll-margin-top: 72px;
}

/* the shared header (styles.css) on the dark pages: light lines (the face logos come in a
   light variant there, scripts/site_face_pages.py) */
.universe-header .nav-toggle {
  border-color: rgba(244, 244, 242, 0.6);
  color: var(--paper);
}

.universe-header .nav-links a[aria-current="page"] {
  color: var(--paper);
}

.universe-header .nav-toggle:focus-visible,
.universe-header a:focus-visible {
  outline-color: var(--accent-yellow);
}

.universe-header.menu-open {
  background: rgba(13, 13, 15, 0.96);
}

.universe-header.menu-open .nav-links {
  background: rgba(13, 13, 15, 0.96);
  border-bottom-color: rgba(244, 244, 242, 0.1);
}

.universe-header.menu-open .nav-links a {
  color: var(--paper);
  border-bottom-color: rgba(244, 244, 242, 0.08);
}

/* the figures carry only a small label, no headline */
.editorial h2.figures-label {
  margin: 0 0 22px;
  max-width: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent-yellow);
}

/* ---------- the GLD-E1 teaser ---------- */
.teaser-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.teaser-text {
  min-width: 0;
}

.teaser-figure {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-yellow);
}

.teaser-caption {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 244, 242, 0.62);
}

.teaser-space,
.vector-figure {
  margin: 0;
  min-width: 0;
}

.teaser-space canvas,
.vector-figure canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(244, 244, 242, 0.14);
  background:
    radial-gradient(ellipse at 64% 40%, rgba(27, 51, 214, 0.28), transparent 65%),
    rgba(244, 244, 242, 0.02);
}

.teaser-space figcaption,
.vector-figure figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(244, 244, 242, 0.42);
}

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  .figures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
  .figure:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }
  .crew-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .universe--live .universe-progress {
    display: none;
  }
}

@media (max-width: 560px) {
  .figures-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .figure,
  .figure + .figure {
    padding: 22px 0 0;
    border-left: none;
  }
}

@media (max-width: 900px) {
  .teaser-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .universe--live .chapter {
    bottom: 88px;
  }
}
