/* ============================================================================
   AUDIO GHOSTS — Core Styles (consolidated)
   mdw Vienna · FWF PEEK AR 774-G · 2023 — 2026
   Design: Belma Bešlić-Gál (jugonautkinja)
   ============================================================================

   Table of contents:
   01. Tokens
   02. Reset & base
   03. Typography
   04. Layout helpers
   05. Grain overlay
   06. Background ghost field (inner pages)
   07. Info bar (inner pages)
   08. Site header + nav (inner pages)
   09. Hero — homepage
       9.1 Blobs
       9.2 Hero header + nav (magnetic hover, ghost echo)
       9.3 HUD
       9.4 Ghost title (per-letter 4-layer system)
       9.5 Hero buttons
       9.6 Scroll hint
       9.7 Intro animations
   10. Page hero (inner pages)
   11. Modules + editorial layout
       11.1 Editorial marker (ghost aberration)
       11.2 Editorial body
       11.3 Pull-quote
       11.4 Hypothesis list
       11.5 Editorial notes (sidebar)
       11.6 Oscillogram separator
   12. Figures + placeholders
   13. Info grid
   14. Cards + event list
   15. Footer
   16. Scroll reveal
   17. Responsive
   18. Reduced motion
   ============================================================================ */


/* ----------------------------------------------------------------------------
   01. TOKENS
   ---------------------------------------------------------------------------- */
:root {
  /* Ink & surface — inner pages */
  --ink: #1A2038;
  --ink-soft: #2A334D;
  --slate: #5C6680;
  --bg: #EDF0F4;
  --bg-card: #FFFFFF;
  --border: rgba(26, 32, 56, 0.10);
  --border-strong: rgba(26, 32, 56, 0.18);

  /* Hero gradient */
  --hero-start: #2B1C5A;
  --hero-mid1: #4D35A0;
  --hero-mid2: #6E7FCA;
  --hero-end: #3DB896;
  --hero-ink: #0A0618;

  /* Ghost accents */
  --ghost-warm: #F9C5A0;
  --ghost-cool: #A0E8D8;
  --purple-light: #B094FF;

  /* Typography */
  --font-display: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  /* Space scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Easing */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ----------------------------------------------------------------------------
   02. RESET & BASE
   ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}


/* ----------------------------------------------------------------------------
   03. TYPOGRAPHY
   ---------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(17px, 1.6vw, 20px); }
h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
p { margin: 0 0 1em; }
em { font-style: italic; font-weight: 400; }


/* ----------------------------------------------------------------------------
   04. LAYOUT HELPERS
   ---------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}


/* ----------------------------------------------------------------------------
   05. GRAIN OVERLAY — subtle film-noise texture across entire site
   ---------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-home .grain { opacity: 0.08; mix-blend-mode: overlay; }


/* ----------------------------------------------------------------------------
   06. BACKGROUND GHOST FIELD — fixed, parallax-drifts behind inner-page content
   Hidden on homepage (gradient + blobs + title already carry atmosphere)
   ---------------------------------------------------------------------------- */
.bg-ghost-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-ghost {
  position: absolute;
  width: 680px;
  height: 680px;
  opacity: 0.08;
  will-change: transform, opacity;
  filter: blur(0.2px);
}
.bg-ghost svg { width: 100%; height: 100%; display: block; }
.bg-ghost-warm {
  top: 10vh; left: -10vw;
  color: var(--ghost-warm);
  animation: bg-ghost-drift-1 95s ease-in-out infinite alternate;
}
.bg-ghost-cool {
  top: 45vh; right: -8vw;
  color: var(--purple-light);
  opacity: 0.10;
  animation: bg-ghost-drift-2 128s ease-in-out infinite alternate;
}
.bg-ghost-third {
  top: 140vh; left: 40vw;
  width: 520px; height: 520px;
  color: var(--ghost-cool);
  opacity: 0.07;
  animation: bg-ghost-drift-3 110s ease-in-out infinite alternate;
}
@keyframes bg-ghost-drift-1 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.08; }
  50%  { transform: translate(12vw, 30vh) scale(1.15) rotate(6deg); opacity: 0.12; }
  100% { transform: translate(20vw, 70vh) scale(0.95) rotate(-4deg); opacity: 0.06; }
}
@keyframes bg-ghost-drift-2 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.10; }
  50%  { transform: translate(-15vw, 20vh) scale(0.9) rotate(-8deg); opacity: 0.14; }
  100% { transform: translate(-8vw, 60vh) scale(1.08) rotate(5deg); opacity: 0.08; }
}
@keyframes bg-ghost-drift-3 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.05; }
  50%  { transform: translate(-20vw, -15vh) scale(1.1) rotate(10deg); opacity: 0.09; }
  100% { transform: translate(-30vw, -40vh) scale(0.85) rotate(-6deg); opacity: 0.04; }
}
/* Hidden on homepage — atmosphere is already full */
.page-home .bg-ghost-field { display: none; }
/* Ensure content sits above ghosts on inner pages */
.site-header, main, .site-footer, .hero, .page-hero, .info-bar { position: relative; z-index: 2; }


/* ----------------------------------------------------------------------------
   07. INFO BAR — inner pages
   ---------------------------------------------------------------------------- */
.info-bar {
  background: var(--hero-ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 10px var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.info-bar-left, .info-bar-right { display: flex; align-items: center; gap: var(--s-3); }
.info-indicator {
  width: 6px; height: 6px;
  background: var(--hero-end);
  border-radius: 50%;
  animation: info-pulse 2.4s ease-in-out infinite;
}
@keyframes info-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }


/* ----------------------------------------------------------------------------
   08. SITE HEADER + NAV — inner pages
   ---------------------------------------------------------------------------- */
.site-header {
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  padding: var(--s-4) var(--s-5);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s var(--ease-default);
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(26, 32, 56, 0.05); }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.logo-dot { width: 8px; height: 8px; background: var(--ink); display: inline-block; }

.nav-list { display: flex; align-items: center; gap: var(--s-5); }
.nav-list > li { position: relative; }
.nav-list > li > a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: var(--s-2) 2px;
  position: relative;
  display: inline-block;
  overflow: hidden;
  transition: color 0.2s var(--ease-default),
              letter-spacing 0.28s var(--ease-default);
}
/* Ghost echo — lavender duplicate of label, offset behind main text */
.nav-list > li > a[data-label]::before {
  content: attr(data-label);
  position: absolute;
  left: 2px; top: var(--s-2);
  color: rgba(176, 148, 255, 0.48);
  pointer-events: none;
  opacity: 0;
  transform: translate(1.5px, 1px);
  transition: opacity .25s, transform .25s;
  letter-spacing: inherit;
  font: inherit;
  /* Hide caret from echo — it is a child <span>, but attr(data-label) is plain text */
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--ink);
  letter-spacing: 0.14em;
}
.nav-list > li > a:hover::before,
.nav-list > li > a.active::before {
  opacity: 1;
  transform: translate(3px, 1.5px);
}
.nav-list > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 1px;
  background: var(--ink);
}
.caret { font-size: 9px; margin-left: 2px; opacity: 0.6; }

.has-sub { position: relative; }
.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: linear-gradient(180deg,
    rgba(10, 6, 24, 0.85) 0%,
    rgba(10, 6, 24, 0.78) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: var(--s-2) 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-smooth),
              visibility 0.25s var(--ease-smooth),
              transform 0.25s var(--ease-smooth);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 0.5px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 60;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  text-align: center;
  transition: color 0.2s var(--ease-default),
              background 0.2s var(--ease-default);
  position: relative;
}
/* vertical accent bar — left edge, scales in on hover/active */
.sub-menu li a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 60%;
  background: var(--purple-light);
  transition: transform 0.22s var(--ease-default);
  transform-origin: center;
}
.sub-menu li a:hover,
.sub-menu li a.active {
  color: #fff;
  background: rgba(176, 148, 255, 0.10);
}
.sub-menu li a:hover::before,
.sub-menu li a.active::before {
  transform: translateY(-50%) scaleY(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 200;  /* stay above open menu */
}
/* When menu is open, hamburger escapes header stacking context and floats top-right */
body.menu-open .menu-toggle {
  position: fixed;
  top: 12px;
  right: var(--s-4);
  z-index: 250;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-default), opacity 0.3s var(--ease-default), background 0.3s var(--ease-default);
  transform-origin: center;
}
/* When active, bars turn white (over dark drawer) and morph to X */
.menu-toggle.is-active span { background: #fff; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Body lock when mobile menu is open */
body.menu-open { overflow: hidden; }


/* ============================================================================
   09. HERO — homepage only
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(135deg,
    var(--hero-start) 0%,
    var(--hero-mid1) 40%,
    var(--hero-mid2) 70%,
    var(--hero-end) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
}
/* Bottom fade — hero dissolves into footer ink over last 30% of height */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(10, 6, 24, 0.25) 45%,
    rgba(10, 6, 24, 0.70) 80%,
    var(--hero-ink) 100%);
  pointer-events: none;
  z-index: 2;
}


/* 9.0 Ghost presence — atmospheric image layer above gradient, below blobs.
   Opacity + blur breath cycle (8s), slow scale drift (22s), parallax via JS. */
.hero-ghost {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  will-change: transform, opacity, filter;
  /* Breath cycle: opacity pulse + subtle filter shifts */
  animation: ghost-breath 8.4s ease-in-out infinite;
}
.hero-ghost picture,
.page-hero-ghost picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero-ghost img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(1) translate(var(--ghost-mx, 0), var(--ghost-my, 0));
  object-fit: cover;
  object-position: center;
  /* Slow scale drift — independent from breath, multiplies the life-feeling */
  animation: ghost-drift 22s ease-in-out infinite alternate;
  filter: saturate(1.15) contrast(1.05);
  /* Mask: bottom third fades so ghost dissolves into fade-to-ink */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  /* JS injects --ghost-mx / --ghost-my for parallax offset */
  --ghost-mx: 0px;
  --ghost-my: 0px;
}
@keyframes ghost-breath {
  0%, 100% { opacity: 0.42; filter: blur(6px); }
  50%      { opacity: 0.68; filter: blur(2px); }
}
@keyframes ghost-drift {
  0%   { transform: scale(1.02) translate(var(--ghost-mx, 0), var(--ghost-my, 0)); }
  100% { transform: scale(1.06) translate(var(--ghost-mx, 0), var(--ghost-my, 0)); }
}
/* Fade-in on initial load — ghost emerges from the mist */
.hero-ghost { opacity: 0; animation-play-state: paused; }
.hero.is-ready .hero-ghost {
  opacity: 1;
  animation-play-state: running;
  transition: opacity 2.4s var(--ease-smooth);
}

/* Reduced motion: disable animations, set static subtle presence */
@media (prefers-reduced-motion: reduce) {
  .hero-ghost,
  .hero-ghost img { animation: none; }
  .hero-ghost { opacity: 0.5; }
  .hero-ghost img { filter: blur(3px) saturate(1.1); }
}

/* Mobile: ghost larger since viewport is portrait */
@media (max-width: 860px) {
  .hero-ghost img { transform: scale(1.10) translate(var(--ghost-mx, 0), var(--ghost-my, 0)); }
}


/* 9.1 Drifting colour blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero-blob-1 {
  background: radial-gradient(circle, #B094FF 0%, transparent 60%);
  width: 65%; height: 65%; top: 10%; left: 5%;
  opacity: 0.55;
  animation: blob-drift-1 52s ease-in-out infinite alternate;
}
.hero-blob-2 {
  background: radial-gradient(circle, #5DCAA5 0%, transparent 60%);
  width: 60%; height: 60%; top: 30%; left: 45%;
  opacity: 0.50;
  animation: blob-drift-2 41s ease-in-out infinite alternate;
}
.hero-blob-3 {
  background: radial-gradient(circle, #C8A4FF 0%, transparent 60%);
  width: 50%; height: 50%; top: 0%; left: 35%;
  opacity: 0.35;
  animation: blob-drift-3 68s ease-in-out infinite alternate;
}
/* Organic morphing blob — amoeba-like, shape changes while it drifts */
.hero-blob-organic {
  position: absolute;
  width: 55%;
  aspect-ratio: 1 / 1;
  top: 15%;
  left: 20%;
  background: radial-gradient(circle,
    rgba(93, 202, 165, 0.55) 0%,
    rgba(176, 148, 255, 0.30) 40%,
    transparent 65%);
  filter: blur(90px);
  mix-blend-mode: screen;
  opacity: 0.50;
  will-change: transform, border-radius;
  pointer-events: none;
  animation:
    blob-organic-morph 26s ease-in-out infinite alternate,
    blob-organic-drift 72s ease-in-out infinite alternate;
}
@keyframes blob-drift-1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(20%, -8%) scale(1.2); } }
@keyframes blob-drift-2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-15%, 14%) scale(0.85); } }
@keyframes blob-drift-3 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(12%, 22%) scale(1.15); } }
@keyframes blob-organic-morph {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  20%  { border-radius: 30% 70% 70% 30% / 50% 60% 40% 50%; }
  40%  { border-radius: 50% 50% 30% 70% / 70% 40% 60% 30%; }
  60%  { border-radius: 40% 60% 60% 40% / 30% 50% 50% 70%; }
  80%  { border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%; }
  100% { border-radius: 55% 45% 40% 60% / 50% 55% 45% 50%; }
}
@keyframes blob-organic-drift {
  0%   { transform: translate(-12%, -4%) scale(1); }
  25%  { transform: translate(8%, 6%) scale(1.1); }
  50%  { transform: translate(18%, 20%) scale(0.95); }
  75%  { transform: translate(-4%, 26%) scale(1.08); }
  100% { transform: translate(-18%, 10%) scale(1.0); }
}


/* 9.2 Hero header — logo + nav on dark gradient */
.hero-header {
  position: relative;
  z-index: 10;
  padding: var(--s-5) var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-logo {
  background: var(--hero-ink);
  color: #fff;
  padding: 7px 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 11px;
  text-transform: uppercase;
  position: relative;
  transition: letter-spacing .35s cubic-bezier(.2,.7,.2,1), color .2s;
}
.hero-logo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(176,148,255, .85) 20%,
    rgba(61, 184, 150, .85) 80%,
    transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.hero-logo:hover { letter-spacing: 0.02em; color: #fff; }
.hero-logo:hover::after { transform: scaleX(1); }

.hero-nav { display: flex; gap: var(--s-5); align-items: center; }
.hero-nav > li { position: relative; }
.hero-nav > li > a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s var(--ease-default),
              letter-spacing 0.28s var(--ease-default);
  padding: var(--s-2) 2px;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
/* ghost echo — duplicate label offset behind main text */
.hero-nav > li > a[data-label]::before {
  content: attr(data-label);
  position: absolute;
  left: 2px; top: var(--s-2);
  color: rgba(176, 148, 255, 0.42);
  pointer-events: none;
  opacity: 0;
  transform: translate(1.5px, 1px);
  transition: opacity .25s, transform .25s;
  letter-spacing: inherit;
  font: inherit;
}
.hero-nav > li > a:hover,
.hero-nav > li > a.active {
  color: #fff;
  letter-spacing: 0.14em;
}
.hero-nav > li > a:hover::before,
.hero-nav > li > a.active::before {
  opacity: 1;
  transform: translate(3px, 1.5px);
}
/* underline reveal */
.hero-nav > li > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.hero-nav > li > a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.hero-nav > li > a.active::after {
  transform: scaleX(1);
  background: var(--purple-light);
}

.hero-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    rgba(10, 6, 24, 0.85) 0%,
    rgba(10, 6, 24, 0.78) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: var(--s-2) 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.25s var(--ease-smooth),
              visibility 0.25s var(--ease-smooth),
              transform 0.25s var(--ease-smooth);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 0.5px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 60;
}
.hero-nav .has-sub:hover .sub-menu,
.hero-nav .has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.hero-nav .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  text-align: center;
  transition: color 0.2s var(--ease-default),
              background 0.2s var(--ease-default);
  position: relative;
}
/* vertical accent bar — left edge, scales in on hover/active */
.hero-nav .sub-menu li a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 60%;
  background: var(--purple-light);
  transition: transform 0.22s var(--ease-default);
  transform-origin: center;
}
.hero-nav .sub-menu li a:hover,
.hero-nav .sub-menu li a.active {
  color: #fff;
  background: rgba(176, 148, 255, 0.10);
}
.hero-nav .sub-menu li a:hover::before,
.hero-nav .sub-menu li a.active::before {
  transform: translateY(-50%) scaleY(1);
}

.hero-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 200;
}
body.menu-open .hero-menu-toggle {
  position: fixed;
  top: 12px;
  right: var(--s-4);
  z-index: 250;
}
.hero-menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease-default), opacity 0.3s var(--ease-default);
  transform-origin: center;
}
.hero-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hero-menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hero-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* 9.3 Hero HUD — 4 corners with staggered fade-in */
.hero-hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.9;
  z-index: 5;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.hero-hud > span {
  display: block;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
  transition-delay: var(--d, 0s);
}
body:not(.is-loading) .hero-hud > span {
  opacity: 1;
  transform: translateY(0);
}
.hero-hud .k { color: rgba(255, 255, 255, 0.38); }
.hero-hud .v { color: rgba(255, 255, 255, 0.78); }
.hero-hud-tl { top: 92px; left: var(--s-6); }
.hero-hud-tr { top: 92px; right: var(--s-6); align-items: flex-end; text-align: right; }
.hero-hud-bl { bottom: var(--s-5); left: var(--s-6); }
.hero-hud-br { bottom: var(--s-5); right: var(--s-6); align-items: flex-end; text-align: right; }


/* Hero content — centered */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--s-7) var(--s-5);
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-supra {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--s-5);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  transition-delay: 0.2s;
}
body:not(.is-loading) .hero-supra { opacity: 1; transform: translateY(0); }

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.80);
  margin: var(--s-6) auto 0;
  max-width: 540px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  transition-delay: 1.05s;
}
body:not(.is-loading) .hero-tagline { opacity: 1; transform: translateY(0); }

.hero-ctas {
  display: flex;
  gap: var(--s-5);
  justify-content: center;
  align-items: center;
  margin-top: var(--s-6);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  transition-delay: 1.2s;
}
body:not(.is-loading) .hero-ctas { opacity: 1; transform: translateY(0); }


/* 9.4 Ghost title — per-letter 4-layer system */
.ghost-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.45;
  color: #fff;
  display: inline-block;
  animation: title-breathe 11s ease-in-out infinite;
}
@keyframes title-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.006); }
}
.ghost-title .line { display: inline; }
.ghost-title .line.italic { font-style: italic; font-weight: 400; }
.ghost-title .word { display: inline-block; white-space: nowrap; }
.page-hero h1 .word { display: inline-block; white-space: nowrap; }

.ghost-letter {
  display: inline-block;
  position: relative;
  --wx: 0px; --wy: 0px;
  --gwx: 4px; --gwy: 2px;
  --gcx: -4px; --gcy: -2px;
  --rot: 0deg;
  /* intro: letters staggered fade-in */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
  transition-delay: calc(var(--i, 0) * 15ms + 0.35s);
}
body:not(.is-loading) .ghost-letter { opacity: 1; transform: translateY(0); }
.ghost-letter .main,
.ghost-letter .ghost-warm,
.ghost-letter .ghost-cool,
.ghost-letter .ghost-black {
  display: inline-block;
  will-change: transform;
}
.ghost-letter .main {
  position: relative;
  color: #fff;
  z-index: 3;
  transform: translate(var(--wx), var(--wy));
}
.ghost-letter .ghost-warm,
.ghost-letter .ghost-cool,
.ghost-letter .ghost-black {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
}
.ghost-letter .ghost-warm {
  color: var(--ghost-warm);
  opacity: 0.55;
  transform: translate(calc(var(--wx) + var(--gwx)), calc(var(--wy) + var(--gwy)));
  z-index: 2;
}
.ghost-letter .ghost-cool {
  color: var(--ghost-cool);
  opacity: 0.55;
  transform: translate(calc(var(--wx) + var(--gcx)), calc(var(--wy) + var(--gcy)));
  z-index: 1;
}
.ghost-letter .ghost-black {
  color: #000;
  opacity: 0.30;
  translate: var(--wx) var(--wy);
  rotate: var(--rot);
  transition: rotate 1.8s var(--ease-default);
  transform-origin: center center;
  z-index: 0;
}


/* 9.5 Hero buttons — sweep shine + underline reveal */
.btn-hero {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease-default),
              background 0.2s var(--ease-default),
              color 0.2s var(--ease-default),
              letter-spacing 0.25s,
              box-shadow 0.35s var(--ease-default);
  text-decoration: none;
}
.btn-hero-primary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  padding: 14px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 20px rgba(255, 255, 255, 0.04),
    0 4px 20px rgba(10, 6, 24, 0.15);
}
.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(176, 148, 255, 0.35) 48%,
    rgba(93, 202, 165, 0.35) 55%,
    transparent 75%);
  transform: translateX(-120%);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  z-index: -1;
  opacity: 0.9;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  letter-spacing: 0.09em;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 24px rgba(176, 148, 255, 0.10),
    0 12px 36px -10px rgba(176, 148, 255, 0.55),
    0 0 0 1px rgba(176, 148, 255, 0.25);
}
.btn-hero-primary:hover::before { transform: translateX(120%); }

.btn-hero-secondary {
  color: rgba(255, 255, 255, 0.88);
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0);
  border: 0.5px solid rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  position: relative;
  transition: transform 0.25s var(--ease-default),
              color 0.2s var(--ease-default),
              background 0.35s var(--ease-default),
              border-color 0.35s var(--ease-default),
              backdrop-filter 0.35s var(--ease-default),
              letter-spacing 0.25s,
              box-shadow 0.35s var(--ease-default);
  box-shadow: 0 0 0 rgba(176, 148, 255, 0);
}
.btn-hero-secondary::before {
  content: '';
  position: absolute;
  left: 28px; right: 28px; bottom: 10px;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,255,255, 0.45), rgba(255,255,255, 0.0));
  transition: background 0.25s, opacity 0.25s, right 0.25s;
  z-index: 2;
}
.btn-hero-secondary:hover {
  color: #fff;
  letter-spacing: 0.09em;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 20px rgba(255, 255, 255, 0.04),
    0 4px 20px rgba(10, 6, 24, 0.15);
}
.btn-hero-secondary:hover::before {
  /* Underline fades when button transforms into glass container */
  opacity: 0;
}


/* 9.6 Scroll hint — bottom of hero, animated line pointing down */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--s-5);
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 36px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 1s var(--ease-smooth);
  transition-delay: 1.6s;
}
body:not(.is-loading) .hero-scroll-hint { opacity: 0.6; }
.hero-scroll-hint .scroll-line {
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255, 0.5) 50%,
    transparent 100%);
  animation: scroll-hint 2.6s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateY(-100%); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}


/* ----------------------------------------------------------------------------
   10. PAGE HERO — inner pages title section
   ---------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    var(--hero-start) 0%,
    var(--hero-mid1) 40%,
    var(--hero-mid2) 70%,
    var(--hero-end) 100%);
  color: #fff;
  padding: var(--s-9) var(--s-5) var(--s-8);
  min-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Invertiran oscillogram eho na dnu, gleda nadole u body */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 44' preserveAspectRatio='none'%3E%3Cg transform='translate(0 44) scale(1 -1)'%3E%3Cpath d='M0 22 Q 30 5 60 22 T 120 22 T 180 22 T 240 22 T 300 22 T 360 22 T 420 22 T 480 22 T 540 22 T 600 22 T 660 22 T 720 22 T 780 22 T 840 22 T 900 22 T 960 22 T 1020 22 T 1080 22 T 1140 22 T 1200 22' fill='none' stroke='%23ffffff' stroke-width='1.1' opacity='0.55'/%3E%3Cpath d='M0 22 Q 18 14 36 22 T 72 22 T 108 22 T 144 22 T 180 22 T 216 22 T 252 22 T 288 22 T 324 22 T 360 22 T 396 22 T 432 22 T 468 22 T 504 22 T 540 22 T 576 22 T 612 22 T 648 22 T 684 22 T 720 22 T 756 22 T 792 22 T 828 22 T 864 22 T 900 22 T 936 22 T 972 22 T 1008 22 T 1044 22 T 1080 22 T 1116 22 T 1152 22 T 1188 22' fill='none' stroke='%23B094FF' stroke-width='0.9' opacity='0.75'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg,
      var(--hero-start) 0%,
      var(--hero-mid1) 40%,
      var(--hero-mid2) 70%,
      var(--hero-end) 100%);
  background-size: 100% 28px, 100% 100%;
  background-position: bottom, center;
  background-repeat: no-repeat;
}
/* Atmospheric image layer — breathing, blurred, per-page theming.
   Sits above gradient, below content, uses screen blend mode to fuse with hero palette. */
.page-hero-ghost {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  will-change: opacity;
  opacity: 0;
  transition: opacity 2.4s var(--ease-smooth);
}
.page-hero-ghost img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.10) contrast(1.02);
  will-change: transform, filter;
  /* Breath + drift combined on img (not on parent div, so picture container works) */
  animation:
    page-ghost-breath 10s ease-in-out infinite,
    page-ghost-drift 26s ease-in-out infinite alternate;
  /* Bottom mask so image doesn't compete with oscillogram transition */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}
@keyframes page-ghost-breath {
  0%, 100% { opacity: 0.55; filter: blur(9px) saturate(1.10) contrast(1.02); }
  50%      { opacity: 0.90; filter: blur(5px) saturate(1.10) contrast(1.02); }
}
@keyframes page-ghost-drift {
  0%   { transform: scale(1.08); }
  100% { transform: scale(1.12); }
}
/* Fade-in trigger — JS adds .is-ready class once DOM is ready */
.page-hero.is-ready .page-hero-ghost { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .page-hero-ghost { opacity: 0.7; }
  .page-hero-ghost img { animation: none; opacity: 0.7; filter: blur(5px) saturate(1.05); transform: scale(1.08); }
}

@media (max-width: 860px) {
  .page-hero-ghost img { /* scale handled by drift animation */ }
}


.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
}
.page-hero::before {
  background: radial-gradient(circle, #B094FF 0%, transparent 60%);
  width: 55%; height: 140%; top: -20%; left: -5%;
  opacity: 0.55;
  animation: page-hero-drift-1 46s ease-in-out infinite alternate;
}
.page-hero::after {
  background: radial-gradient(circle, #5DCAA5 0%, transparent 60%);
  width: 50%; height: 120%; top: -10%; right: -5%;
  opacity: 0.45;
  animation: page-hero-drift-2 58s ease-in-out infinite alternate;
}
@keyframes page-hero-drift-1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(15%, -8%) scale(1.15); } }
@keyframes page-hero-drift-2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-12%, 8%) scale(0.9); } }

.page-hero-content { position: relative; z-index: 2; max-width: 820px; }
.page-hero-content .module-id { color: rgba(255, 255, 255, 0.55); margin-bottom: var(--s-4); display: block; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5.5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 var(--s-4);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.page-hero h1 em { font-style: italic; font-weight: 400; color: var(--purple-light); }
.page-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.4;
}

/* Page hero HUD (tl + tr corners, static) */
.page-hero-hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.9;
  z-index: 5;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.page-hero-hud .k { color: rgba(255, 255, 255, 0.38); }
.page-hero-hud .v { color: rgba(255, 255, 255, 0.78); }
.page-hero-hud-tl { top: var(--s-5); left: var(--s-6); align-items: flex-start; }
.page-hero-hud-tr { top: var(--s-5); right: var(--s-6); align-items: flex-end; text-align: right; }

/* Page-hero h1: 2-layer subtle ghost (used on research etc.) */
.page-hero h1 .ghost-letter {
  --gwx: 2px; --gwy: 1px;
  --gcx: -2px; --gcy: -1px;
}
.page-hero h1 .ghost-letter .main { color: #fff; }
.page-hero h1 .ghost-letter .ghost-warm { color: var(--ghost-warm); opacity: 0.40; }
.page-hero h1 .ghost-letter .ghost-cool { color: var(--ghost-cool); opacity: 0.40; }
.page-hero h1 em .ghost-letter .main { color: var(--purple-light); }


/* Oscillogram echo — dark reflection of hero band, sits on body side of transition */
.oscillogram-echo {
  position: relative;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 32' preserveAspectRatio='none'%3E%3Cpath d='M0 16 Q 30 3 60 16 T 120 16 T 180 16 T 240 16 T 300 16 T 360 16 T 420 16 T 480 16 T 540 16 T 600 16 T 660 16 T 720 16 T 780 16 T 840 16 T 900 16 T 960 16 T 1020 16 T 1080 16 T 1140 16 T 1200 16' fill='none' stroke='%235C6680' stroke-width='1.1' opacity='0.60'/%3E%3Cpath d='M0 16 Q 18 10 36 16 T 72 16 T 108 16 T 144 16 T 180 16 T 216 16 T 252 16 T 288 16 T 324 16 T 360 16 T 396 16 T 432 16 T 468 16 T 504 16 T 540 16 T 576 16 T 612 16 T 648 16 T 684 16 T 720 16 T 756 16 T 792 16 T 828 16 T 864 16 T 900 16 T 936 16 T 972 16 T 1008 16 T 1044 16 T 1080 16 T 1116 16 T 1152 16 T 1188 16' fill='none' stroke='%231A2038' stroke-width='0.9' opacity='0.38'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}
/* Footer echo — slightly more pronounced (reflection of louder footer band) */
.oscillogram-echo-footer {
  height: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 36' preserveAspectRatio='none'%3E%3Cpath d='M0 18 Q 30 4 60 18 T 120 18 T 180 18 T 240 18 T 300 18 T 360 18 T 420 18 T 480 18 T 540 18 T 600 18 T 660 18 T 720 18 T 780 18 T 840 18 T 900 18 T 960 18 T 1020 18 T 1080 18 T 1140 18 T 1200 18' fill='none' stroke='%235C6680' stroke-width='1.2' opacity='0.65'/%3E%3Cpath d='M0 18 Q 18 11 36 18 T 72 18 T 108 18 T 144 18 T 180 18 T 216 18 T 252 18 T 288 18 T 324 18 T 360 18 T 396 18 T 432 18 T 468 18 T 504 18 T 540 18 T 576 18 T 612 18 T 648 18 T 684 18 T 720 18 T 756 18 T 792 18 T 828 18 T 864 18 T 900 18 T 936 18 T 972 18 T 1008 18 T 1044 18 T 1080 18 T 1116 18 T 1152 18 T 1188 18' fill='none' stroke='%231A2038' stroke-width='1.0' opacity='0.42'/%3E%3C/svg%3E");
}


/* ============================================================================
   11. MODULES + EDITORIAL LAYOUT — inner pages
   ============================================================================ */
.module {
  padding: var(--s-8) 0;
  position: relative;
}
.module-header {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.module-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  white-space: nowrap;
}
.module-line { flex: 1; height: 1px; background: var(--border); }
.module-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--s-6);
  max-width: 860px;
}
.module-title em { font-style: italic; font-weight: 400; }
.module-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: var(--s-4);
}
.module-text em { font-style: italic; font-weight: inherit; }

.divider {
  height: 0.5px;
  background: var(--border);
  max-width: 1280px;
  margin: 0 auto;
}


/* Editorial layout — 3 columns: marker gutter | text | notes sidebar */
.editorial {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-5);
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 680px) 200px;
  column-gap: var(--s-6);
  align-items: start;
  justify-content: center;
}
.module:has(> .editorial) { padding: 0; }


/* 11.1 Editorial marker — oversized ghost number in left gutter */
.editorial-marker {
  font-family: var(--font-display);
  font-size: clamp(72px, 8.5vw, 124px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-align: right;
  position: sticky;
  top: 96px;
  padding-right: var(--s-5);
  opacity: 0.10;
  transition: opacity 0.6s var(--ease-smooth);
  pointer-events: none;
}
.editorial-marker.is-active { opacity: 0.85; }
.editorial-marker-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(176, 148, 255, 0.85);
  opacity: 1;
  margin-top: var(--s-3);
  font-weight: 500;
  line-height: 1.4;
}

/* Ghost aberration on marker — warm + cool layers behind main */
.editorial-marker-inner { position: relative; display: inline-block; }
.editorial-marker-inner .em-main,
.editorial-marker-inner .em-warm,
.editorial-marker-inner .em-cool {
  display: inline-block;
  will-change: transform;
}
.editorial-marker-inner .em-warm,
.editorial-marker-inner .em-cool {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  transition: transform 1.2s var(--ease-smooth), opacity 1.2s var(--ease-smooth);
}
.editorial-marker-inner .em-main { position: relative; color: var(--ink); z-index: 3; }
.editorial-marker-inner .em-warm {
  color: #E8A344;
  opacity: 0.28;
  transform: translate(3px, 1.5px);
  z-index: 2;
}
.editorial-marker-inner .em-cool {
  color: var(--purple-light);
  opacity: 0.32;
  transform: translate(-3px, -1.5px);
  z-index: 1;
}
.editorial-marker.is-active .em-warm { transform: translate(1.5px, 0.8px); opacity: 0.22; }
.editorial-marker.is-active .em-cool { transform: translate(-1.5px, -0.8px); opacity: 0.26; }


/* 11.2 Editorial body — main text column on "paper" layer */
.editorial-body {
  position: relative;
  background: #F5F7FA;
  padding: var(--s-7) var(--s-6);
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(26, 32, 56, 0.02),
    0 8px 32px rgba(26, 32, 56, 0.04);
  /* Fine edge highlight — gradient fade that eases the "paper" into the bg */
  border-top: 0.5px solid rgba(26, 32, 56, 0.05);
  border-bottom: 0.5px solid rgba(26, 32, 56, 0.05);
}
/* Soft gradient fade on left/right edges — dissolves paper into background */
.editorial-body::before,
.editorial-body::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
}
.editorial-body::before {
  left: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(26, 32, 56, 0.06) 20%,
    rgba(26, 32, 56, 0.06) 80%,
    transparent 100%);
}
.editorial-body::after {
  right: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(26, 32, 56, 0.06) 20%,
    rgba(26, 32, 56, 0.06) 80%,
    transparent 100%);
}

.editorial-body h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 var(--s-6);
  max-width: 620px;
  text-align: left;
}
.editorial-body h2 em { font-style: italic; font-weight: 400; color: var(--slate); }
.editorial-body p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: var(--s-5);
  text-align: left;
  max-width: 100%;
}
.editorial-body p em { font-style: italic; font-weight: inherit; }
.editorial-body p strong { font-weight: 600; color: var(--ink); }

/* Drop-cap first paragraph */
.editorial-body p.has-dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.6em;
  line-height: 0.95;
  float: left;
  padding: 4px var(--s-3) 0 0;
  color: var(--ink);
  letter-spacing: -0.04em;
}

/* Citation-reference links inline in text */
.cite-ref {
  font-family: var(--font-mono);
  font-size: 0.7em;
  vertical-align: super;
  padding: 0 4px;
  margin-left: 2px;
  color: var(--purple-light);
  background: rgba(176, 148, 255, 0.08);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cite-ref:hover,
.cite-ref.is-hot {
  background: var(--purple-light);
  color: #fff;
}


/* 11.3 Pull-quote — thin horizontal bar + ∿ marker instead of big quotes */
.pull-quote {
  position: relative;
  margin: var(--s-9) 0 var(--s-8);
  padding: var(--s-3) 0 var(--s-3) var(--s-6);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pull-quote::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -2px;
  width: 36px;
  height: 2px;
  background: var(--purple-light);
  opacity: 0.85;
}
.pull-quote::after {
  content: '\223F';
  position: absolute;
  top: -34px;
  left: 46px;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--slate);
  opacity: 0.7;
  pointer-events: none;
}
.pull-quote cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}


/* 11.4 Hypothesis list — lettered markers (a, b, c...) */
.hypothesis-list,
.hypothesis-editorial {
  counter-reset: hypothesis;
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
}
.hypothesis-list > li,
.hypothesis-editorial > li {
  counter-increment: hypothesis;
  position: relative;
  padding-left: var(--s-7);
  margin-bottom: var(--s-6);
}
.hypothesis-list > li::before,
.hypothesis-editorial > li::before {
  content: counter(hypothesis, lower-alpha) ")";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--slate);
  letter-spacing: 0.02em;
  line-height: 1.7;
}
.hypothesis-list > li > p:first-child,
.hypothesis-editorial .hyp-body > p:first-child {
  margin-top: 0;
  margin-bottom: var(--s-3);
}
.research-question,
.research-q {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
  border-left: 2px solid var(--purple-light);
  padding: var(--s-1) 0 var(--s-1) var(--s-4);
  margin: var(--s-2) 0 0;
  text-align: left;
}


/* 11.5 Editorial notes — sidebar for references */
.editorial-notes {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate);
  padding-left: var(--s-4);
  border-left: 0.5px solid var(--border);
  position: sticky;
  top: 96px;
}
.editorial-notes-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.editorial-notes .ref {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-2);
  padding: var(--s-3) 0;
  border-top: 0.5px solid var(--border);
  transition: background 0.3s;
}
.editorial-notes .ref:first-of-type { border-top: none; }
.editorial-notes .ref.is-hot {
  background: rgba(176, 148, 255, 0.07);
}
.editorial-notes .ref-num {
  font-size: 10px;
  color: var(--slate);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.editorial-notes .ref-author {
  grid-column: 2;
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.editorial-notes .ref-details {
  grid-column: 2;
  font-size: 11px;
  color: var(--slate);
  font-style: italic;
  margin-top: 2px;
  line-height: 1.5;
}


/* 11.6 Section divider — two patterns supported:
   (a) simple lines + ∿ label: <div class="editorial-divider-line"></div><span class="editorial-divider-label">∿ 02 — Aims</span><div class="editorial-divider-line"></div>
   (b) oscillogram SVG wrapped in .oscillogram */
.editorial-divider {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-5);
}
.editorial-divider-line {
  flex: 1;
  height: 0.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border-strong) 50%,
    transparent 100%);
}
.editorial-divider .oscillogram {
  flex: 1;
  height: 28px;
  position: relative;
}
.editorial-divider .oscillogram svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--border-strong);
}
.editorial-divider .oscillogram svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.8;
}
.editorial-divider .oscillogram svg path.accent {
  stroke: var(--purple-light);
  opacity: 0.45;
  stroke-width: 0.8;
}
.editorial-divider-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(176, 148, 255, 0.85);
  white-space: nowrap;
}


/* ----------------------------------------------------------------------------
   12. FIGURES + PHOTO PLACEHOLDERS
   ---------------------------------------------------------------------------- */
.content-figure {
  margin: var(--s-7) 0 var(--s-6);
  text-align: center;
}
.content-figure-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 0.5px solid rgba(176, 148, 255, 0.25);
  background:
    radial-gradient(circle at 12% 0%, rgba(176, 148, 255, 0.06), transparent 50%),
    radial-gradient(circle at 88% 100%, rgba(93, 202, 165, 0.04), transparent 50%),
    var(--bg-card);
  box-shadow:
    inset 0 0 32px rgba(176, 148, 255, 0.04),
    inset 0 1px 0 rgba(176, 148, 255, 0.08),
    0 1px 2px rgba(26, 32, 56, 0.03),
    0 12px 40px rgba(26, 32, 56, 0.06);
  cursor: zoom-in;
  transition: box-shadow 0.4s var(--ease-smooth),
              transform 0.4s var(--ease-smooth),
              border-color 0.4s var(--ease-smooth);
}
.content-figure-frame:hover {
  border-color: rgba(176, 148, 255, 0.40);
  box-shadow:
    inset 0 0 32px rgba(176, 148, 255, 0.06),
    inset 0 1px 0 rgba(176, 148, 255, 0.12),
    0 2px 6px rgba(26, 32, 56, 0.04),
    0 18px 50px rgba(176, 148, 255, 0.12);
  transform: translateY(-2px);
}
.content-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}
.content-figure figcaption,
.content-figure .figcaption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--slate);
  text-align: center;
  margin-top: var(--s-3);
  line-height: 1.5;
}

.photo-placeholder {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 12% 0%, rgba(176, 148, 255, 0.08), transparent 55%),
    linear-gradient(135deg, rgba(176, 148, 255, 0.12), rgba(93, 202, 165, 0.10)),
    var(--bg-card);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
}
.photo-placeholder span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
}


/* Lightbox overlay — full-viewport image viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 6, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-smooth),
              visibility 0.35s var(--ease-smooth);
  cursor: zoom-out;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  box-shadow:
    0 0 0 1px rgba(176, 148, 255, 0.12),
    0 20px 80px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  transition: transform 0.4s var(--ease-smooth);
  cursor: default;
}
.lightbox.is-open img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.lightbox-close:hover {
  background: rgba(176, 148, 255, 0.18);
  border-color: rgba(176, 148, 255, 0.40);
  transform: scale(1.05);
}
.lightbox-hint {
  position: absolute;
  bottom: var(--s-5);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  opacity: 0;
  transition: opacity 0.6s var(--ease-smooth);
  transition-delay: 2s;
  pointer-events: none;
}
.lightbox.is-open .lightbox-hint { opacity: 1; }
@media (max-width: 860px) {
  .lightbox-hint { font-size: 9px; letter-spacing: 0.14em; }
  .lightbox { padding: var(--s-4); }
}


/* ----------------------------------------------------------------------------
   12.5 DOCUMENT (Type C) — centered column, left-aligned text
   Used for imprint, contact — concentrated reference pages that aren't
   editorial (research) and aren't index (collections).
   Think: colophon page of a monograph.
   ---------------------------------------------------------------------------- */

.document {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-5) var(--s-6) var(--s-8);
  /* Paper layer — consistent with editorial-body on research */
  background: #F5F7FA;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(26, 32, 56, 0.02),
    0 8px 32px rgba(26, 32, 56, 0.04);
  border-top: 0.5px solid rgba(26, 32, 56, 0.05);
  border-bottom: 0.5px solid rgba(26, 32, 56, 0.05);
  position: relative;
  margin-top: var(--s-5);
  margin-bottom: var(--s-7);
}
.document::before,
.document::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
}
.document::before {
  left: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(26, 32, 56, 0.06) 20%,
    rgba(26, 32, 56, 0.06) 80%,
    transparent 100%);
}
.document::after {
  right: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(26, 32, 56, 0.06) 20%,
    rgba(26, 32, 56, 0.06) 80%,
    transparent 100%);
}

/* Opening / closing sine-wave glyph — ceremonial bookends */
.doc-opening {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  padding: var(--s-2) 0 var(--s-3);
  color: var(--slate);
}
.doc-opening .line {
  flex: 1;
  max-width: 200px;
  height: 0.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border-strong) 50%,
    transparent 100%);
}
.doc-opening .glyph {
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1;
  color: var(--purple-light);
  padding: 0 4px;
  opacity: 0.85;
}
.doc-closing {
  padding: var(--s-5) 0 var(--s-3);
}
.doc-closing .glyph { opacity: 0.55; }

/* Editorial divider inside document — left-aligned label, line extends right.
   Breathing: large top padding (section break signal), small bottom (content follows). */
.document .editorial-divider {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-8) 0 var(--s-4);
  max-width: 100%;
  justify-content: flex-start;
}
.document .editorial-divider:first-of-type { padding-top: var(--s-2); }
.document .editorial-divider-label {
  flex-shrink: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(176, 148, 255, 0.85);
  white-space: nowrap;
}
.document .editorial-divider-line {
  flex: 1;
  height: 0.5px;
  background: linear-gradient(90deg,
    var(--border-strong) 0%,
    var(--border-strong) 70%,
    transparent 100%);
}
/* Hide the left-side line in document context — label sits at the start */
.document .editorial-divider > .editorial-divider-line:first-child {
  display: none;
}

/* Section — left-aligned body inside centered paper */
.doc-section {
  padding: 0;
}
.doc-section p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.doc-section p + p { margin-top: var(--s-2); }
.doc-section p strong {
  color: var(--ink);
  font-weight: 600;
}
.doc-section p a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 0.2s;
}
.doc-section p a:hover { text-decoration-color: var(--ink); }

/* Team / Credits meta — mono label inline with value */
.imprint-meta {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  margin: 0;
  padding: 4px 0;
}
.imprint-meta + .imprint-meta { margin-top: 0; padding-top: 4px; }
.imprint-meta .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(176, 148, 255, 0.85);
  flex-shrink: 0;
  min-width: 180px;
}

/* 01 Team — special treatment: card with ghost thumbnail, lavender border */
.doc-team-card {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-5);
  border: 0.5px solid rgba(176, 148, 255, 0.28);
  background:
    radial-gradient(circle at 88% 100%, rgba(93, 202, 165, 0.03), transparent 55%),
    rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 0 24px rgba(176, 148, 255, 0.04),
    inset 0 1px 0 rgba(176, 148, 255, 0.08),
    0 1px 2px rgba(26, 32, 56, 0.02);
  transition: box-shadow 0.4s var(--ease-smooth),
              border-color 0.4s var(--ease-smooth);
}
.doc-team-card:hover {
  border-color: rgba(176, 148, 255, 0.42);
  box-shadow:
    inset 0 0 24px rgba(176, 148, 255, 0.06),
    inset 0 1px 0 rgba(176, 148, 255, 0.12),
    0 2px 8px rgba(176, 148, 255, 0.08);
}
.doc-team-ghost {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(176, 148, 255, 1) 0%,
    rgba(140, 110, 220, 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.20),
    0 2px 10px rgba(176, 148, 255, 0.22);
}
.doc-team-ghost svg { width: 44px; height: auto; }
.doc-team-body { flex: 1; min-width: 0; }
.doc-team-body .imprint-meta .label { min-width: 180px; }

@media (max-width: 560px) {
  .doc-team-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
  }
  .doc-team-body { width: 100%; }
}
.imprint-meta .value {
  color: var(--ink);
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 16px;
}
.imprint-meta .value a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 0.2s;
}
.imprint-meta .value a:hover { text-decoration-color: var(--ink); }

/* Funding noble — PEEK-style container with FWF sticker, lavender glow, pulsing meta */
.funding-noble {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 0.5px solid rgba(176, 148, 255, 0.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(176, 148, 255, 0.06), transparent 55%),
    radial-gradient(circle at 88% 100%, rgba(93, 202, 165, 0.04), transparent 55%),
    rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 0 32px rgba(176, 148, 255, 0.05),
    inset 0 1px 0 rgba(176, 148, 255, 0.10),
    0 2px 12px rgba(26, 32, 56, 0.04);
  position: relative;
  overflow: hidden;
}
/* Sweep beam along bottom edge — periodic signal */
.funding-noble::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-image: linear-gradient(90deg,
    transparent 0%,
    var(--purple-light) 40%,
    rgba(160, 232, 216, 0.85) 60%,
    transparent 100%);
  background-size: 35% 100%;
  background-repeat: no-repeat;
  background-position: -35% 0;
  animation: funding-sweep 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
  opacity: 0;
}
@keyframes funding-sweep {
  0%, 10%   { background-position: -35% 0; opacity: 0; }
  18%       { opacity: 1; }
  75%       { opacity: 1; }
  82%, 100% { background-position: 135% 0; opacity: 0; }
}

.funding-noble-sticker {
  background: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(26, 32, 56, 0.08);
  box-shadow: 0 1px 4px rgba(26, 32, 56, 0.06);
  align-self: flex-start;
}
.funding-noble-sticker img {
  width: 200px;
  height: auto;
  display: block;
}
.funding-noble-body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.funding-noble-body .funding-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-top: var(--s-3) !important;
  animation: funding-meta-pulse 8s ease-in-out infinite;
}
@keyframes funding-meta-pulse {
  0%, 100% { color: var(--purple-light); }
  50% { color: #5DCAA5; }
}

/* ----------------------------------------------------------------------------
   15.5 Document utilities — contact page additions
   ---------------------------------------------------------------------------- */

/* Inline link style inside document paper layer */
.doc-link {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  border-bottom: 0.5px solid rgba(26, 32, 56, 0.30);
  transition: color 0.2s var(--ease-default), border-color 0.2s var(--ease-default);
}
.doc-link:hover {
  color: #6E5ACF;
  border-bottom-color: #6E5ACF;
}

/* Contact business card — aligned with document flow (left), consistent with other sections */
.contact-card {
  text-align: left;
  padding: var(--s-3) 0 var(--s-2);
  max-width: 100%;
  margin: 0;
}
.contact-card-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px;
}
.contact-card-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin: 0 0 var(--s-4);
}
.contact-card-scope {
  font-size: 15px;
  color: var(--slate);
  font-style: italic;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 var(--s-5);
}
.contact-card-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(176, 148, 255, 0.5), transparent);
  margin: 0 0 var(--s-5);
}
.contact-card-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}
.contact-card-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(26, 32, 56, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease-default), border-color 0.2s var(--ease-default);
}
.contact-card-handle:hover {
  color: #6E5ACF;
  border-bottom-color: #6E5ACF;
}

/* Morse-code email decoder: button that shows dots/dashes, animates to reveal */
.morse-email {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: relative;
  transition: opacity 0.25s var(--ease-default);
}
.morse-email:hover { opacity: 0.78; }
.morse-parts, .morse-parts[hidden] { display: none !important; }
.morse-trail {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--ink);
  line-height: 1.2;
  min-height: 1.2em;
  white-space: nowrap;
  display: inline-block;
}
.morse-trail .morse-char {
  display: inline-block;
  transition: color 0.35s var(--ease-default), transform 0.35s var(--ease-default);
  transform-origin: center;
}
.morse-trail .morse-gap { display: inline-block; width: 0.5em; }
/* Decoded (post-animation) character — lavender tint, slight bloom */
.morse-trail .morse-char.is-decoded {
  color: #6E5ACF;
  animation: morse-decode-bloom 0.45s var(--ease-smooth);
}
@keyframes morse-decode-bloom {
  0%   { transform: scale(1.35); color: #B094FF; }
  60%  { transform: scale(0.92); color: #6E5ACF; }
  100% { transform: scale(1);    color: #6E5ACF; }
}
.morse-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint, #7D7970);
  opacity: 0.62;
  transition: opacity 0.25s var(--ease-default);
}
.morse-email:hover .morse-hint { opacity: 1; }
/* When decoded, hint swaps to "send a message" hint */
.morse-email.is-decoded .morse-hint { color: var(--purple-light); opacity: 0.9; }
/* Once decoded the button transforms into an anchor-like mailto target.
   The inner content becomes an active link. */
.morse-email.is-decoded {
  cursor: pointer;
}
.morse-email.is-decoded .morse-trail {
  border-bottom: 0.5px solid rgba(110, 90, 207, 0.4);
  padding-bottom: 2px;
}

/* Muted footnote-like paragraph inside doc-section */
.doc-note {
  font-size: 13px;
  color: var(--slate);
  font-style: italic;
  margin-top: var(--s-3);
  line-height: 1.55;
}

/* Form inside document — paper aesthetic, editorial */
.doc-section-form {
  padding-top: var(--s-4);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-4);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-light);
  font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #FFFFFF;
  border: 0.5px solid rgba(26, 32, 56, 0.18);
  border-radius: 2px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease-default),
              box-shadow 0.2s var(--ease-default),
              background 0.2s var(--ease-default);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
}
.form-row textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%235C6680' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(176, 148, 255, 0.15);
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-faint, #8C8F99);
  font-style: italic;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--s-2);
}
.btn-doc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--ink);
  background: transparent;
  border: 0.5px solid rgba(26, 32, 56, 0.35);
  border-radius: 2px;
  padding: 12px 22px;
  cursor: pointer;
  transition: all 0.25s var(--ease-default);
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-doc:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  letter-spacing: 0.14em;
}
.btn-doc:active {
  transform: translateY(1px);
}

/* Success / error state feedback (JS-toggled) */
.contact-form .form-feedback {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: var(--s-3) var(--s-4);
  border-radius: 2px;
  margin-top: var(--s-3);
  display: none;
}
.contact-form .form-feedback.is-visible { display: block; }
.contact-form .form-feedback.is-success {
  background: rgba(93, 202, 165, 0.10);
  border-left: 2px solid #5DCAA5;
  color: #1A7A5A;
}
.contact-form .form-feedback.is-error {
  background: rgba(220, 100, 100, 0.10);
  border-left: 2px solid #DC6464;
  color: #8A2020;
}

@media (max-width: 860px) {
  .document {
    padding: var(--s-6) var(--s-4);
    margin-top: var(--s-5);
    margin-bottom: var(--s-5);
  }
  .imprint-meta {
    flex-direction: column;
    gap: 2px;
    padding: var(--s-2) 0;
  }
  .imprint-meta .label {
    min-width: 0;
    margin-bottom: 2px;
  }
  .doc-opening .line { max-width: 60px; }
  .doc-opening .glyph { font-size: 20px; }
  .funding-noble { padding: var(--s-4); }
  .funding-noble-sticker { padding: 16px 20px; }
  .funding-noble-sticker img { width: 160px; }
}


/* ----------------------------------------------------------------------------
   13. INFO GRID — labeled data blocks
   ---------------------------------------------------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding: var(--s-5);
  background: var(--bg-card);
  border: 0.5px solid var(--border);
}
.info-grid.glass { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px); }
.info-box { padding: var(--s-2) 0; }
.info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
  font-weight: 500;
}
.info-value {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
}


/* ----------------------------------------------------------------------------
   14. CARDS + EVENT LIST
   ---------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  padding: var(--s-5);
  transition: transform 0.3s var(--ease-default),
              box-shadow 0.3s var(--ease-default),
              border-color 0.3s var(--ease-default);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 32, 56, 0.06);
  border-color: var(--border-strong);
}
.card-body { display: flex; flex-direction: column; gap: var(--s-2); }
.card-tag, .card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}
.card-meta { text-transform: none; letter-spacing: 0.02em; font-size: 11px; font-weight: 400; }
.card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
  margin: var(--s-1) 0 var(--s-2);
}
.card p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin-bottom: var(--s-3); }
.card-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 0.2s;
  align-self: flex-start;
  margin-top: auto;
}
.card-link:hover { text-decoration-color: var(--ink); }


/* ============================================================================
   15. FOOTER — consolidated (giant wordmark, partner strip, HUD, signature)
   ============================================================================ */
.site-footer {
  background: var(--hero-ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 0;
  overflow: hidden;
  position: relative;
}
.site-footer::before {
  /* top oscillogram band — 3-line decay (signal gradually dissolving into footer) */
  content: '';
  display: block;
  height: 72px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 72' preserveAspectRatio='none'%3E%3C!-- Line 1: top, loudest %E2%80%94 lavender, small amplitude --%3E%3Cpath d='M0 14 Q 30 2 60 14 T 120 14 T 180 14 T 240 14 T 300 14 T 360 14 T 420 14 T 480 14 T 540 14 T 600 14 T 660 14 T 720 14 T 780 14 T 840 14 T 900 14 T 960 14 T 1020 14 T 1080 14 T 1140 14 T 1200 14' fill='none' stroke='%23B094FF' stroke-width='1.3' opacity='0.72'/%3E%3C!-- Line 2: mid, medium %E2%80%94 white, wider amplitude --%3E%3Cpath d='M0 36 Q 25 16 50 36 T 100 36 T 150 36 T 200 36 T 250 36 T 300 36 T 350 36 T 400 36 T 450 36 T 500 36 T 550 36 T 600 36 T 650 36 T 700 36 T 750 36 T 800 36 T 850 36 T 900 36 T 950 36 T 1000 36 T 1050 36 T 1100 36 T 1150 36 T 1200 36' fill='none' stroke='%23ffffff' stroke-width='1.0' opacity='0.40'/%3E%3C!-- Line 3: bottom, quietest %E2%80%94 teal, widest amplitude (signal fading) --%3E%3Cpath d='M0 58 Q 20 30 40 58 T 80 58 T 120 58 T 160 58 T 200 58 T 240 58 T 280 58 T 320 58 T 360 58 T 400 58 T 440 58 T 480 58 T 520 58 T 560 58 T 600 58 T 640 58 T 680 58 T 720 58 T 760 58 T 800 58 T 840 58 T 880 58 T 920 58 T 960 58 T 1000 58 T 1040 58 T 1080 58 T 1120 58 T 1160 58 T 1200 58' fill='none' stroke='%235DCAA5' stroke-width='0.9' opacity='0.22'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.site-footer::after {
  /* subtle radial glow behind wordmark */
  content: '';
  position: absolute;
  top: 38px; left: 50%;
  transform: translateX(-50%);
  width: 85%; height: 280px;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(176, 148, 255, 0.18) 0%,
    rgba(61, 184, 150, 0.06) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.site-footer .container,
.site-footer .footer-wordmark { position: relative; z-index: 2; }


/* Wordmark — giant outlined, with offset ghost echo */
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(54px, 13vw, 190px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-align: center;
  padding: var(--s-8) var(--s-5) var(--s-6);
  position: relative;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
.footer-wordmark .fw-main {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.24);
  position: relative;
  display: inline-block;
}
.footer-wordmark .fw-ghost {
  position: absolute;
  top: var(--s-8); left: 0; right: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(176, 148, 255, 0.22);
  transform: translate(8px, 4px);
  pointer-events: none;
  animation: fw-drift 14s ease-in-out infinite alternate;
}
@keyframes fw-drift {
  0%   { transform: translate(4px, 2px); opacity: 0.55; }
  100% { transform: translate(14px, 7px); opacity: 1; }
}

.site-footer .container {
  padding-top: var(--s-6);
  padding-bottom: var(--s-6);
}


/* Columns */
.site-footer .footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-7);
  padding-top: var(--s-7);
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}
.footer-col {
  position: relative;
  padding-left: var(--s-4);
}
.footer-col::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(176, 148, 255, 0.55) 0%,
    rgba(176, 148, 255, 0.0) 100%);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--s-4);
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col h4::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--purple-light);
  display: inline-block;
}
.footer-col p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.60);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 2px; position: relative; }
.footer-col ul li a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px 0;
  display: inline-block;
  transition: color .2s, padding-left .22s cubic-bezier(.2,.7,.2,1), letter-spacing .2s;
}
.footer-col ul li a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--purple-light);
  transform: translateY(-50%);
  transition: width .22s cubic-bezier(.2,.7,.2,1);
}
.footer-col ul li a:hover {
  color: #fff;
  padding-left: 20px;
  letter-spacing: 0.13em;
}
.footer-col ul li a:hover::before { width: 14px; }

/* Funding column — FWF logo sticker + PEEK block */
.fwf-sticker {
  background: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-6);
  border: 0.5px solid rgba(176, 148, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 4px 14px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.3s var(--ease-default);
}
.fwf-sticker img { display: block; width: 160px; height: auto; }
.fwf-sticker:hover {
  box-shadow:
    0 0 0 1px rgba(176, 148, 255, 0.30),
    0 6px 18px rgba(176, 148, 255, 0.15);
}

/* PEEK sticker block — noble treatment */
.footer-col.col-funding p {
  border: 0.5px solid rgba(176, 148, 255, 0.25);
  padding: var(--s-4);
  font-size: 12px;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 0%, rgba(176, 148, 255, 0.09), transparent 55%),
    rgba(255, 255, 255, 0.02);
  position: relative;
  box-shadow:
    inset 0 0 24px rgba(176, 148, 255, 0.05),
    inset 0 1px 0 rgba(176, 148, 255, 0.10);
}
.footer-col.col-funding p::before {
  content: 'peek · ar 774-g';
  position: absolute;
  top: -8px; left: 10px;
  background: var(--hero-ink);
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-light);
  animation: peek-label-pulse 8s ease-in-out infinite;
}
@keyframes peek-label-pulse {
  0%, 100% { color: var(--purple-light); }
  50% { color: var(--ghost-cool); }
}
/* Sweep beam along bottom edge — 1px pseudo-element, beam moves via background-position
   so no overflow:hidden needed on parent (which would clip the peek-label above) */
.footer-col.col-funding p::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-image: linear-gradient(90deg,
    transparent 0%,
    var(--purple-light) 40%,
    rgba(160, 232, 216, 0.85) 60%,
    transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  background-position: -40% 0;
  animation: peek-sweep 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
  opacity: 0;
}
@keyframes peek-sweep {
  0%, 12%   { background-position: -40% 0; opacity: 0; }
  18%       { opacity: 1; }
  72%       { opacity: 1; }
  80%, 100% { background-position: 140% 0; opacity: 0; }
}


/* Partner strip — stacked & centered, not full-width bar */
.footer-partners {
  margin-top: var(--s-7);
  padding: var(--s-5) 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}
.footer-partners .fp-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}
.footer-partners .fp-list {
  display: flex;
  justify-content: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}
.footer-partners .fp-list span {
  position: relative;
  transition: color 0.2s var(--ease-default),
              letter-spacing 0.25s var(--ease-default);
}
.footer-partners .fp-list span:hover {
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.18em;
}
/* Thin vertical separators between partners, static (no pulse) */
.footer-partners .fp-list span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(var(--s-5) * -0.5 - 0.5px);
  top: 50%;
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-50%);
}


/* Footer HUD — live ticker */
.footer-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) 0 0;
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
  flex-wrap: wrap;
}
.footer-hud .fh-cell { display: inline-flex; gap: 6px; align-items: baseline; }
.footer-hud .fh-cell .k { color: rgba(255, 255, 255, 0.32); margin-right: 4px; }
.footer-hud .fh-cell .v { color: rgba(255, 255, 255, 0.78); }
.footer-hud .fh-cell[data-pulse] { animation: fh-blink 3.2s ease-in-out infinite; }
@keyframes fh-blink {
  0%, 92%, 100% { opacity: 1; }
  95% { opacity: 0.35; }
}
.footer-hud .fh-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hero-end);
  animation: info-pulse 2.4s ease-in-out infinite;
  display: inline-block;
  margin-right: 6px;
}


/* Footer signature */
.footer-signature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.footer-signature a {
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  position: relative;
  transition: color .2s;
}
.footer-signature a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s;
}
.footer-signature a:hover { color: #fff; }
.footer-signature a:hover::after { transform: scaleX(1); }
.footer-signature .sig-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-signature .sig-right::before {
  content: '✧';
  color: var(--purple-light);
  font-size: 11px;
}
.footer-signature .sig-sep { opacity: 0.4; }


/* Minimal footer — used on inner pages. Drops giant wordmark, HUD bar,
   radial glow. Keeps mini oscillogram on top (softer echo of homepage band),
   3 cols, partners, signature. */
.site-footer.minimal::after,
.site-footer.minimal .footer-wordmark,
.site-footer.minimal .footer-hud {
  display: none;
}
.site-footer.minimal::before {
  height: 28px;
  opacity: 0.75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 Q 30 3 60 14 T 120 14 T 180 14 T 240 14 T 300 14 T 360 14 T 420 14 T 480 14 T 540 14 T 600 14 T 660 14 T 720 14 T 780 14 T 840 14 T 900 14 T 960 14 T 1020 14 T 1080 14 T 1140 14 T 1200 14' fill='none' stroke='%23B094FF' stroke-width='1.2' opacity='0.65'/%3E%3Cpath d='M0 14 Q 18 9 36 14 T 72 14 T 108 14 T 144 14 T 180 14 T 216 14 T 252 14 T 288 14 T 324 14 T 360 14 T 396 14 T 432 14 T 468 14 T 504 14 T 540 14 T 576 14 T 612 14 T 648 14 T 684 14 T 720 14 T 756 14 T 792 14 T 828 14 T 864 14 T 900 14 T 936 14 T 972 14 T 1008 14 T 1044 14 T 1080 14 T 1116 14 T 1152 14 T 1188 14' fill='none' stroke='%23ffffff' stroke-width='1.0' opacity='0.45'/%3E%3C/svg%3E");
}
.site-footer.minimal .container {
  padding-top: var(--s-6);
  padding-bottom: var(--s-6);
}
.site-footer.minimal .footer-inner {
  border-top: none;
  padding-top: 0;
}


/* ----------------------------------------------------------------------------
   16. SCROLL REVEAL — inner pages
   Progressive enhancement: default is visible. JS adds html.js-reveal only
   when IntersectionObserver is available & initialized, then observer toggles
   .visible. If JS fails, content stays visible.
   ---------------------------------------------------------------------------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-smooth),
              transform 0.8s var(--ease-smooth);
}
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
}
html.js-reveal .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
html.js-reveal .reveal-delay-1 { transition-delay: 0.08s; }
html.js-reveal .reveal-delay-2 { transition-delay: 0.16s; }
html.js-reveal .reveal-delay-3 { transition-delay: 0.24s; }


/* ----------------------------------------------------------------------------
   17. RESPONSIVE
   ---------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .editorial {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--s-6) var(--s-4);
  }
  .editorial-body {
    padding: var(--s-6) var(--s-5);
  }
  .editorial-marker {
    font-size: 56px;
    text-align: left;
    position: static;
    opacity: 0.7;
    padding-right: 0;
    margin-bottom: var(--s-3);
  }
  .editorial-marker.is-active { opacity: 1; }
  .editorial-notes {
    position: static;
    margin-top: var(--s-6);
    padding-top: var(--s-5);
    border-left: none;
    border-top: 0.5px solid var(--border);
    padding-left: 0;
  }
}

@media (max-width: 860px) {
  .editorial-body {
    padding: var(--s-5) var(--s-4);
  }
  .menu-toggle, .hero-menu-toggle { display: flex; margin-left: auto; }

  /* Mobile nav as full-height drawer from right — scrollable, closes on tap outside */
  .nav-list,
  .hero-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 78vw);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg,
      rgba(10, 6, 24, 0.96) 0%,
      rgba(10, 6, 24, 0.92) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 0.5px solid rgba(255, 255, 255, 0.10);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px var(--s-5) var(--s-6);  /* top padding clears header + X */
    gap: var(--s-4);
    box-shadow: -20px 0 48px rgba(0, 0, 0, 0.45);
    /* Hidden by default — slides in from right */
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.2, .7, .2, 1);
    /* Scrollable contents */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 150;
  }
  .nav-list.open,
  .hero-nav.open { transform: translateX(0); }

  /* Backdrop overlay behind open drawer — tap to close */
  .nav-list::before,
  .hero-nav::before { display: none; }

  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 6, 24, 0.4);
    z-index: 140;
    animation: nav-backdrop-fade 0.35s ease;
    pointer-events: none;
  }
  @keyframes nav-backdrop-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Top-level nav links inside open hamburger — unified light-on-dark */
  .nav-list > li > a,
  .hero-nav > li > a {
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: var(--s-2) 0;
    transition: color 0.2s, letter-spacing 0.25s;
  }
  .nav-list > li > a:hover,
  .nav-list > li > a.active,
  .hero-nav > li > a:hover,
  .hero-nav > li > a.active {
    color: #fff;
    letter-spacing: 0.14em;
  }
  .nav-list > li > a.active::after,
  .hero-nav > li > a.active::after { background: var(--purple-light); }
  .nav-list > li > a[data-label]::before,
  .hero-nav > li > a[data-label]::before { display: none; }

  /* Sub-menu inside open hamburger — flat inline, accent-bar only */
  .nav-list .sub-menu,
  .hero-nav .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: var(--s-2) 0 var(--s-2) var(--s-4);
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: unset;
  }
  .nav-list .sub-menu li a,
  .hero-nav .sub-menu li a {
    text-align: left;
    padding: 6px 0 6px var(--s-4);
    background: transparent;
  }
  .nav-list .sub-menu li a:hover,
  .nav-list .sub-menu li a.active,
  .hero-nav .sub-menu li a:hover,
  .hero-nav .sub-menu li a.active {
    background: transparent;
    color: #fff;
  }
  .nav-list .sub-menu li a::before,
  .hero-nav .sub-menu li a::before { left: 0; width: 2px; height: 50%; }

  .hero-header { padding: var(--s-4) var(--s-5); }
  .hero-content { padding: var(--s-6) var(--s-4); }
  .hero-ctas { flex-direction: column; gap: var(--s-3); }
  .btn-hero-primary { padding: 14px 28px; }

  .hero-hud { font-size: 8px; letter-spacing: 0.10em; }
  .hero-hud-tl { top: 72px; left: var(--s-4); }
  .hero-hud-tr { top: 72px; right: var(--s-4); }
  .hero-hud-bl { bottom: var(--s-4); left: var(--s-4); }
  .hero-hud-br { bottom: var(--s-4); right: var(--s-4); }
  /* Scroll hint hidden on mobile — collision with bottom HUD */
  .hero-scroll-hint { display: none; }

  .page-hero-hud { font-size: 8px; letter-spacing: 0.10em; }
  .page-hero-hud-tl { top: var(--s-4); left: var(--s-4); }
  .page-hero-hud-tr { top: var(--s-4); right: var(--s-4); }

  .footer-wordmark { font-size: clamp(24px, 10vw, 56px); padding: var(--s-6) var(--s-4) var(--s-5); }
  .footer-partners .fp-list {
    gap: var(--s-4);
    font-size: 10px;
    flex-direction: column;
    align-items: center;
  }
  /* On mobile, stacked partners — drop separator lines */
  .footer-partners .fp-list span:not(:last-child)::after { display: none; }

  /* Hide HUD telemetry on mobile — desktop atmosphere feature, unnecessary on small screens */
  .footer-hud { display: none; }

  /* Signature stacked vertically on mobile for breathing room */
  .footer-signature {
    font-size: 9px;
    letter-spacing: 0.08em;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
    text-align: center;
  }

  .info-bar { font-size: 9px; padding: 8px var(--s-4); }
  .info-bar-right { gap: var(--s-2); }

  .module { padding: var(--s-7) 0; }
}


/* ----------------------------------------------------------------------------
   18. REDUCED MOTION
   ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ghost-title { animation: none; }
  .hero-blob { animation: none; opacity: 0.3; }
  .hero-blob-organic { animation: none; opacity: 0.3; border-radius: 50%; }
  .info-indicator { animation: none; opacity: 0.7; }
  .ghost-letter .ghost-black { rotate: 0deg !important; }
  .hero-scroll-hint .scroll-line { animation: none; }
  .footer-wordmark .fw-ghost { animation: none; }
  .bg-ghost { animation: none; }
  .footer-col.col-funding p::before { animation: none; }
  .footer-col.col-funding p::after { animation: none; opacity: 0; }
  /* Skip intro stagger, show everything immediately */
  body.is-loading .hero-hud > span,
  body.is-loading .hero-supra,
  body.is-loading .hero-tagline,
  body.is-loading .hero-ctas,
  body.is-loading .ghost-letter {
    opacity: 1;
    transform: none;
  }
}


/* ----------------------------------------------------------------------------
   19. PAGE-SCOPED
   ---------------------------------------------------------------------------- */
.page-home { background: var(--hero-ink); }
.page-home > .info-bar,
.page-home > .site-header { display: none; }
