/* Reconnect0 — immersive dark theme, woo + science */

:root {
  --bg-deep: #06080f;
  --bg-card: rgba(12, 18, 32, 0.72);
  --bg-elevated: #0c1220;
  --text: #e8ecf4;
  --text-muted: #9aa8c4;
  --accent-cyan: #5ee7ff;
  --accent-violet: #a78bfa;
  --accent-rose: #f0a8d0;
  --border: rgba(94, 231, 255, 0.12);
  --glow: rgba(94, 231, 255, 0.25);
  --font-display: "Bebas Neue", "Oswald", sans-serif;
  --font-body: "Oswald", system-ui, sans-serif;
  --nav-h: 4.25rem;
  --max-w: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(94, 231, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(167, 139, 250, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(240, 168, 208, 0.05), transparent 45%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 1s var(--ease);
}

/* —— Pigment pit (supersaturated depth) —— */
.pigment-abyss {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 1.4s;
  background: #010108;
  overflow: hidden;
}

body.pigment-mode .pigment-abyss {
  opacity: 1;
  visibility: visible;
}

body.pigment-mode {
  --bg-deep: #04020c;
  --bg-card: rgba(8, 6, 22, 0.72);
  --bg-elevated: rgba(6, 8, 24, 0.9);
  --border: rgba(90, 70, 160, 0.22);
  --glow: rgba(60, 40, 140, 0.4);
}

body.pigment-mode::before {
  opacity: 0;
}

body.pigment-mode .hero--media,
body.pigment-mode .page-hero,
body.pigment-mode section {
  background: transparent;
}

body.pigment-mode .parallax-bg {
  filter: saturate(1.5) contrast(1.15) brightness(0.45);
}

.pigment-abyss__wash {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 95% 78% at 50% 118%, #2a0a52 0%, #120428 32%, #050210 52%, transparent 70%),
    radial-gradient(ellipse 58% 48% at 10% 90%, #0c1a3a 0%, #060818 42%, transparent 64%),
    radial-gradient(ellipse 52% 46% at 90% 88%, #1a0838 0%, #08041a 40%, transparent 62%),
    radial-gradient(ellipse 42% 38% at 50% 58%, #1e1048 0%, transparent 56%),
    radial-gradient(ellipse 38% 32% at 28% 40%, #0a1835 0%, transparent 54%);
  filter: saturate(2.35) contrast(1.25) brightness(0.52);
  animation: pigment-drift 28s ease-in-out infinite alternate;
}

.pigment-abyss__depth {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 60% at 50% 100%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.97) 100%),
    radial-gradient(circle at 50% 88%, rgba(4, 2, 18, 0.95) 0%, transparent 48%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(0, 0, 0, 0.35) 0%, transparent 55%);
  mix-blend-mode: multiply;
}

.pigment-abyss__sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 35% 22% at 50% 78%, rgba(55, 45, 120, 0.12) 0%, transparent 72%);
  opacity: 0.45;
  animation: pigment-sheen 18s ease-in-out infinite alternate;
}

@keyframes pigment-drift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: saturate(2.2) contrast(1.2) brightness(0.48);
  }
  50% {
    transform: scale(1.05) translate3d(1.5%, -2%, 0);
    filter: saturate(2.45) contrast(1.28) brightness(0.55);
  }
  100% {
    transform: scale(1.03) translate3d(-2%, 1%, 0);
    filter: saturate(2.3) contrast(1.22) brightness(0.45);
  }
}

@keyframes pigment-sheen {
  0% { opacity: 0.25; transform: translateY(0); }
  100% { opacity: 0.5; transform: translateY(-3%); }
}

.pigment-toggle {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.pigment-toggle:hover {
  color: var(--text);
  border-color: var(--accent-violet);
}

body.pigment-mode .pigment-toggle {
  color: #9a8fd4;
  border-color: rgba(70, 55, 130, 0.55);
  background: rgba(12, 8, 32, 0.65);
  box-shadow: 0 0 16px rgba(30, 15, 80, 0.45);
}

.navbar__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.navbar__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-cyan); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #9ef0ff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* —— Nav —— */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 100;
  background: rgba(6, 8, 15, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

.navbar.scrolled { background: rgba(6, 8, 15, 0.92); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-logo span { color: var(--accent-cyan); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(6, 8, 15, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* —— Hero —— */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  position: relative;
}

/* Home hero — raindrop video / poster, cinematic intro */
.hero--media {
  background: var(--bg-deep);
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92vh;
  min-height: 92dvh;
  padding: calc(var(--nav-h) + 1rem) 0 2rem;
  margin-bottom: 0;
  perspective: 1200px;
  perspective-origin: 50% 40%;
}

.hero-mood {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 88% 72% at 50% 42%, transparent 52%, rgba(6, 8, 15, 0.22) 100%);
}

.hero-mood::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.028;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-deep) center / cover no-repeat;
  background-image: url("images/hero-droplet.jpg");
}

.hero--media .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.hero--media.hero--video-playing .hero-media {
  opacity: 1;
}

.hero--media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 8, 15, 0) 0%,
    rgba(6, 8, 15, 0.01) 55%,
    rgba(6, 8, 15, 0.1) 88%,
    rgba(6, 8, 15, 0.22) 100%
  );
  pointer-events: none;
}

body.pigment-mode .hero--media::after {
  background: linear-gradient(
    180deg,
    rgba(4, 2, 12, 0.08) 0%,
    rgba(4, 2, 12, 0.16) 55%,
    rgba(2, 1, 8, 0.36) 88%,
    rgba(2, 1, 8, 0.52) 100%
  );
}

/* Unified copy stack — above video, scrolls as one */
.hero-copy-stack {
  position: relative;
  z-index: 3;
  width: min(100%, var(--max-w));
  padding: 0 1.5rem;
  text-align: center;
  transform-origin: 50% 35%;
  will-change: transform, opacity;
}

.hero-copy-stack .hero-actions {
  opacity: 0;
  transform: translateY(12px);
  animation: hero-actions-in 0.7s var(--ease) 4.2s forwards;
}

@keyframes hero-actions-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-eyebrow-descent {
  from {
    opacity: 0;
    transform: translate3d(0, calc(-55vh - 2rem), 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero--media .hero-eyebrow--descent {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.92);
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.75),
    0 0 1px rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translate3d(0, calc(-55vh - 2rem), 0);
  animation: hero-eyebrow-descent 4s var(--ease) forwards;
}

.hero-copy-stack.is-settled .hero-eyebrow--descent {
  will-change: auto;
}

.hero--media h1 {
  font-size: clamp(2.85rem, 8.5vw, 5.75rem);
  line-height: 0.94;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.8),
    0 0 48px rgba(6, 8, 15, 0.45);
}

.hero--media h1 em {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1em;
  color: #b8f4ff;
  letter-spacing: 0.06em;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.85),
    0 0 24px rgba(94, 231, 255, 0.45);
}

.hero--media + #apps {
  margin-top: -4rem;
  padding-top: 1.25rem;
  padding-bottom: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero--media + #apps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(6, 8, 15, 0) 0%, var(--bg-deep) 100%);
  pointer-events: none;
  transform: translateY(-100%);
}

.hero--media .hero-actions {
  justify-content: center;
}

.hero--media .hero-actions .btn {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  padding: 0.9rem 1.75rem;
}

.hero--media .hero-actions .btn-primary {
  background: linear-gradient(135deg, rgba(94, 231, 255, 0.22), rgba(167, 139, 250, 0.18));
  border-color: rgba(94, 231, 255, 0.55);
  box-shadow: 0 0 24px rgba(94, 231, 255, 0.15), 0 4px 24px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.hero--media .hero-actions .btn-ghost {
  border-color: rgba(232, 236, 244, 0.4);
  color: rgba(244, 246, 251, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.page-hero--sky {
  background: var(--bg-deep) center / cover no-repeat;
  background-image: var(--page-hero-image);
}

.page-hero--sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 15, 0.5), var(--bg-deep) 90%);
}

.page-hero--sky .container {
  position: relative;
  z-index: 1;
}

/* Pineal Vision — dark cymatics hero */
.page-hero--pineal {
  position: relative;
  min-height: min(88vh, 52rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero--pineal__bg {
  position: absolute;
  inset: 0;
  background: var(--bg-deep) center / cover no-repeat;
  background-image: url("images/hero-cymatics.jpg");
  filter: saturate(0.85) contrast(1.08);
}

.page-hero--pineal__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(6, 8, 15, 0.25) 0%, rgba(6, 8, 15, 0.88) 72%),
    linear-gradient(180deg, rgba(6, 8, 15, 0.35) 0%, rgba(6, 8, 15, 0.92) 100%);
}

.page-hero--pineal__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.page-hero--pineal h1 {
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.page-hero--pineal .hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  color: rgba(232, 236, 244, 0.88);
}

.page-hero--pineal .hero-actions {
  justify-content: center;
}

.app-portal-body {
  padding: 4rem 0 5rem;
}

.app-portal-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .app-portal-grid {
    grid-template-columns: 1fr min(18rem, 32%);
    gap: 3.5rem;
  }
}

.app-portal-panel {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.app-portal-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.app-portal-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.app-portal-panel .btn {
  width: 100%;
  margin-bottom: 0.65rem;
}

.app-portal-panel .btn:last-child {
  margin-bottom: 0;
}

.app-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease);
}

.hero-credit {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  margin: 0;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 236, 244, 0.55);
}

.hero-credit a {
  color: rgba(232, 236, 244, 0.7);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.hero-credit a:hover {
  color: var(--accent-cyan);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 300;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(94, 231, 255, 0.2), rgba(167, 139, 250, 0.15));
  border-color: var(--accent-cyan);
  color: var(--text);
  box-shadow: 0 0 24px var(--glow);
}

.btn-primary:hover { box-shadow: 0 0 36px var(--glow); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--accent-violet);
  color: var(--text);
}

/* —— Sections —— */
section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* —— App cards (hub) —— */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  transition:
    border-color 0.3s,
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.app-card:hover {
  border-color: rgba(94, 231, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.app-card:hover .app-card-media {
  transform: scale(1.02);
}

.app-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.app-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.app-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.app-card .btn { align-self: flex-start; }

.app-card-links,
.project-links {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-card-links a,
.project-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.app-card-links a:hover,
.project-links a:hover {
  color: var(--accent-cyan);
}

.app-card-studio {
  color: var(--accent-violet);
  opacity: 0.85;
}

.app-card-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.app-card-title-link:hover h3 {
  color: var(--accent-cyan);
}

.app-card-title-link .app-card-media {
  margin-bottom: 1rem;
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.app-card-actions .btn {
  flex: 1 1 auto;
  min-width: 8rem;
}

.app-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.app-portal-crosslink {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.app-portal-crosslink a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.app-portal-crosslink a:hover {
  text-decoration: underline;
}

.app-card h3 a,
.prose h3 a {
  color: var(--text);
  text-decoration: none;
}

.app-card h3 a:hover,
.prose h3 a:hover {
  color: var(--accent-cyan);
}

.section-intro a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.section-intro a:hover {
  text-decoration: underline;
}

.app-card-badge,
.member-only-pill {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-violet);
  border: 1px solid rgba(167, 139, 250, 0.45);
  border-radius: 2px;
  background: rgba(167, 139, 250, 0.08);
}

.member-only-pill {
  margin-bottom: 1.25rem;
}

.access-note,
.access-note-inline {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--accent-violet);
  background: rgba(167, 139, 250, 0.06);
}

.access-note-inline {
  display: inline;
  padding: 0;
  border: none;
  background: none;
}

.access-status {
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.access-status--locked {
  background: rgba(12, 18, 32, 0.6);
}

.access-status--unlocked {
  background: rgba(94, 231, 255, 0.06);
  border-color: rgba(94, 231, 255, 0.35);
}

.access-status ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.access-status li {
  margin-bottom: 0.35rem;
}

.mb-2 { margin-bottom: 2rem; }

.btn--locked.btn-primary {
  box-shadow: none;
}

.hero-eyebrow-sub {
  color: var(--accent-violet);
  letter-spacing: 0.18em;
}

.app-art {
  margin: 2rem 0;
  text-align: center;
}

.app-art img {
  max-width: min(100%, 22rem);
  margin-inline: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.app-art figcaption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-card--violet .app-card-icon { color: var(--accent-violet); }
.app-card--rose .app-card-icon { color: var(--accent-rose); }

/* —— Split / philosophy teaser —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.science-block,
.soul-block {
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.science-block { border-left: 3px solid var(--accent-cyan); }
.soul-block { border-left: 3px solid var(--accent-violet); }

.science-block h3,
.soul-block h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.science-block p,
.soul-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* —— Iterations of zero —— */
.zero-iterations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.zero-iteration {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 4px;
  transition:
    border-color 0.3s,
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.zero-iteration:hover {
  border-color: rgba(94, 231, 255, 0.35);
  box-shadow: 0 0 24px rgba(94, 231, 255, 0.08);
  transform: translateY(-2px);
}

.zero-iteration__glyph {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--accent-cyan);
  opacity: 0.9;
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.zero-iteration h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.zero-iteration p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.zero-callout {
  margin: 2.5rem 0 0;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-cyan);
  background: rgba(94, 231, 255, 0.04);
  border-radius: 4px;
}

.zero-callout h2 {
  font-size: 1.35rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--text);
}

.zero-callout p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.zero-callout .btn {
  margin-top: 0.25rem;
}

.prose .zero-iterations {
  max-width: none;
}

/* —— Cymatics —— */
.cymatics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.cymatics-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 4px;
  transition:
    border-color 0.3s,
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.cymatics-card:hover {
  border-color: rgba(94, 231, 255, 0.35);
  box-shadow: 0 0 24px rgba(94, 231, 255, 0.08);
  transform: translateY(-2px);
}

.cymatics-card__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.cymatics-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.cymatics-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.prose .cymatics-grid {
  max-width: none;
}

.cymatics-band {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(94, 231, 255, 0.03) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.cymatics-band__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .cymatics-band__layout {
    grid-template-columns: 1fr;
  }
}

.cymatics-band__media {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.cymatics-band__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.cymatics-callout {
  border-left-color: var(--accent-violet);
  background: rgba(167, 139, 250, 0.06);
}

/* —— Pendulum waves (philosophy · cymatics) —— */
.pendulum-feature {
  margin: 2.5rem 0 0;
}

.pendulum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.pendulum-grid[hidden] {
  display: none;
}

.pendulum-embed--featured {
  grid-column: 1 / -1;
}

.pendulum-embed__frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.pendulum-embed__frame--wide {
  aspect-ratio: 16 / 9;
}

.pendulum-embed__frame--tall {
  aspect-ratio: 9 / 16;
  max-width: 17rem;
  margin: 0 auto;
}

.pendulum-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pendulum-embed__credit {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.65rem 0 0;
  line-height: 1.45;
}

.pendulum-embed__credit a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.pendulum-embed__credit a:hover {
  color: var(--accent-cyan);
}

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

  .pendulum-embed--featured {
    grid-column: auto;
  }
}

.pendulum-sources {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(94, 231, 255, 0.03);
}

.pendulum-sources__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 0.65rem;
}

.pendulum-sources__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
  max-width: 42rem;
}

.pendulum-sources__list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pendulum-sources__list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pendulum-sources__list cite {
  font-style: normal;
}

.pendulum-sources__list a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.pendulum-sources__list a:hover {
  color: var(--accent-cyan);
}

.pendulum-sources__via {
  color: var(--text-muted);
}

.portal-site-banner {
  background: rgba(234, 179, 8, 0.08);
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
  padding: 0.65rem 1rem;
  text-align: center;
}

.portal-site-banner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.portal-site-banner a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.portal-site-banner a:hover {
  text-decoration: underline;
}

.portal-site-banner--inline {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 4px;
}

.nav-link--external {
  color: var(--accent-cyan) !important;
}

.nav-links .nav-link--external::after {
  content: none;
}

.home-portals__header {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.home-portals__header .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* —— Home: shape of O (replaces mission strip) —— */
.zero-shape {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(167, 139, 250, 0.04) 0%,
    transparent 45%
  );
}

.zero-shape__header {
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}

.zero-shape__teaser {
  max-width: 34rem;
  margin: 0 auto;
}

.zero-shape__teaser .section-intro {
  margin-bottom: 1.25rem;
}

.zero-shape__excerpt {
  max-width: 40rem;
  margin: 2rem auto 0;
  text-align: left;
}

.zero-shape__excerpt .kluver-forms {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
}

.zero-shape__cta {
  margin: 1.75rem 0 0;
}

.philosophy-toc {
  margin: 1.75rem 0 2rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(94, 231, 255, 0.04);
}

.philosophy-toc__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 0.65rem;
}

.philosophy-toc__label--sub {
  margin-top: 1rem;
}

.prose .philosophy-lead {
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.prose h2[id] {
  scroll-margin-top: 5rem;
}

/* Philosophy: exploration subsections */
.philosophy-body h2#explorations {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.philosophy-subsection {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(94, 231, 255, 0.12);
}

.philosophy-subsection > h2 {
  margin-top: 0;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.philosophy-subsection > h2::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--accent-cyan);
  margin-bottom: 0.65rem;
}

.prose .reveal-stagger.visible > *,
.prose .reveal-stagger > * {
  opacity: 1;
  transform: none;
}

/* Philosophy: prose must stay visible (scroll-reveal must not blank the page) */
.philosophy-body,
.philosophy-body.reveal,
.energy-body,
.energy-body.reveal,
section > .container.prose:has(#shape-of-zero),
section > .container.prose:has(#explorations) {
  opacity: 1 !important;
  transform: none !important;
}

.energy-disciplines,
.energy-session-structure {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--text-muted);
}

.energy-session-structure li {
  margin-bottom: 1.15rem;
  line-height: 1.65;
}

.energy-session-structure li:last-child {
  margin-bottom: 0;
}

.page-hero--energy::before {
  background: linear-gradient(
    180deg,
    rgba(6, 8, 15, 0.35) 0%,
    rgba(6, 8, 15, 0.72) 55%,
    var(--bg-deep) 100%
  );
}

.page-hero--energy h1,
.page-hero--energy .hero-lead,
.page-hero--energy .hero-eyebrow {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.energy-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.75rem 0 2rem;
  max-width: 52rem;
}

.energy-gallery__item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
}

.energy-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 38%;
}

.energy-gallery__item--wide {
  grid-column: 1 / -1;
}

.energy-gallery__item--wide img {
  aspect-ratio: 16 / 9;
  object-position: center 42%;
}

.energy-gallery__item figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border-top: 1px solid var(--border);
}

.prose .energy-gallery {
  max-width: none;
}

@media (max-width: 560px) {
  .energy-gallery {
    grid-template-columns: 1fr;
  }

  .energy-gallery__item--wide {
    grid-column: auto;
  }
}

.philosophy-figure {
  margin: 1.75rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  max-width: 52rem;
}

.philosophy-figure--wide {
  max-width: none;
}

.philosophy-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.philosophy-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.prose .philosophy-figure {
  max-width: none;
}

.philosophy-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.philosophy-toc__list a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
}

.philosophy-toc__list a:hover {
  color: var(--accent-cyan);
}

.zero-shape__body {
  max-width: 44rem;
  margin: 0 auto;
}

.zero-shape__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 2.25rem 0 0.85rem;
}

.zero-shape__body h3:first-of-type {
  margin-top: 1.5rem;
}

.zero-shape__body h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.zero-shape .correspondence-grid--prose,
.zero-shape .zero-iterations,
.zero-shape .cymatics-grid,
.zero-shape .dna-points {
  max-width: none;
}

.zero-shape .pendulum-feature,
.zero-shape .dna-feature {
  margin: 1.5rem 0;
}

.zero-shape__body .zero-iteration h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.zero-shape__body .cymatics-card h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text);
}

.kluver-forms {
  margin: 0.75rem 0 1.5rem;
  padding-left: 1.35rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.kluver-forms li {
  margin-bottom: 0.35rem;
}

.kluver-forms li::marker {
  color: var(--accent-cyan);
}

.why-zero-callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent-violet);
  background: rgba(167, 139, 250, 0.06);
  border-radius: 0 4px 4px 0;
}

.why-zero-callout__question {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
  margin: 0 0 0.85rem;
}

.why-zero-callout p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.why-zero-callout p:last-child {
  margin-bottom: 0;
}

.zero-shape__footer {
  margin-top: 2.5rem;
}

.home-deeper {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--border);
}

.home-deeper__inner {
  max-width: 32rem;
  margin: 0 auto;
}

.home-deeper__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.home-pendulum {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(167, 139, 250, 0.04) 0%,
    transparent 55%
  );
}

.home-pendulum__header {
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.home-pendulum__header .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.home-pendulum__footer {
  margin-top: 2rem;
}

/* —— DNA feature (philosophy) —— */
.dna-feature {
  margin: 2.5rem 0;
}

.dna-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 40rem;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.dna-video,
.dna-video-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.dna-video-embed {
  position: absolute;
  inset: 0;
}

.dna-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    145deg,
    rgba(94, 231, 255, 0.06) 0%,
    rgba(167, 139, 250, 0.08) 50%,
    var(--bg-card) 100%
  );
}

.dna-video-placeholder[hidden] {
  display: none;
}

.dna-video-placeholder__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.dna-video-placeholder h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.dna-video-placeholder p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 22rem;
  margin: 0;
  line-height: 1.55;
}

.dna-video-placeholder code {
  font-size: 0.85em;
  color: var(--accent-cyan);
}

.dna-video-credit {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.dna-video-credit a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.dna-video-credit a:hover {
  color: var(--accent-cyan);
}

.dna-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.dna-point {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(94, 231, 255, 0.03);
}

.dna-point h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.dna-point p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.prose .dna-points {
  max-width: none;
}

.dna-band {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.dna-band .section-intro {
  max-width: 36rem;
}

/* —— Home page spotlights (one section per page) —— */
/* —— Home: mission strip + portal bento —— */
.page-home .hero--home {
  min-height: 100vh;
  min-height: 100dvh;
}

.mission-strip {
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}

.mission-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 1.35rem 0;
  text-align: center;
}

.mission-strip__title {
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  margin: 0.25rem 0 0;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.mission-strip__link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.mission-strip__link:hover {
  color: var(--text);
}

/* —— Correspondences + EMF spectrum —— */
.correspondences {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    var(--bg-deep) 0%,
    rgba(6, 8, 15, 0.98) 40%,
    var(--bg-deep) 100%
  );
  text-align: center;
}

.correspondences .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.correspondences__header {
  width: 100%;
  text-align: center;
}

.correspondences__header .section-label,
.correspondences__header .section-title {
  text-align: center;
}

.correspondences__header .section-intro {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.correspondences__footer {
  margin-top: 2.5rem;
  width: 100%;
}

/* Vertical diagram (Wix-style stack) */
.corr-diagram {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 2rem auto 0;
  min-height: 42rem;
}

.corr-diagram__geometry {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 20rem;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.corr-diagram__layers {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  padding: 1.5rem 0 2rem;
}

.corr-layer {
  width: 100%;
  max-width: 18rem;
  text-align: center;
}

.corr-layer__title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.corr-layer__hint {
  font-size: 0.65rem;
  color: #fca5a5;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.corr-layer__hint--blue {
  color: #93c5fd;
}

.corr-layer__caption {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

/* Forces · torus */
.corr-layer--forces {
  padding-top: 0.5rem;
}

.corr-forces__triangle {
  width: 0;
  height: 0;
  margin: 0 auto 0.35rem;
  border-left: 52px solid transparent;
  border-right: 52px solid transparent;
  border-top: 36px solid rgba(234, 179, 8, 0.15);
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.2));
}

.corr-forces__torus {
  margin-bottom: 0.5rem;
}

.corr-forces__arrows {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.corr-arrow--red {
  color: #fecaca;
}

.corr-arrow--blue {
  color: #bfdbfe;
}

/* Light spectrum */
.corr-wave {
  display: block;
  width: 100%;
  max-width: 17rem;
  margin: 0 auto 0.35rem;
}

.corr-spectrum-bar {
  height: 1.1rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: linear-gradient(
    90deg,
    #dc2626 0%,
    #ea580c 12%,
    #eab308 24%,
    #22c55e 50%,
    #06b6d4 68%,
    #2563eb 82%,
    #4f46e5 100%
  );
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.corr-spectrum-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.25rem;
  margin-top: 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.corr-spectrum-label--red {
  color: #fecaca;
  text-align: left;
}

.corr-spectrum-label--green {
  color: #86efac;
}

.corr-spectrum-label--blue {
  color: #bfdbfe;
  text-align: right;
}

/* Brain */
.corr-brain {
  display: block;
  width: 7.5rem;
  margin: 0 auto;
}

.corr-brain__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.corr-brain__red {
  color: #fca5a5;
}

.corr-brain__blue {
  color: #93c5fd;
}

/* pH */
.corr-ph__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  border: 2px solid #eab308;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: #fde047;
  background: rgba(234, 179, 8, 0.12);
}

.corr-ph__scale {
  height: 0.85rem;
  border-radius: 3px;
  background: linear-gradient(90deg, #dc2626 0%, #ea580c 20%, #22c55e 50%, #06b6d4 75%, #2563eb 100%);
  border: 1px solid var(--border);
}

.corr-ph__labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.corr-ph__acid {
  color: #fca5a5;
  text-align: left;
}

.corr-ph__neutral {
  color: #86efac;
}

.corr-ph__base {
  color: #93c5fd;
  text-align: right;
}

/* Piano · octave */
.corr-piano {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 1px;
  max-width: 16rem;
  margin: 0 auto;
  height: 3.5rem;
  padding: 2px;
  background: #1a1a22;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.corr-piano span {
  background: #f8fafc;
  border-radius: 1px 1px 4px 4px;
}

.corr-piano span.black {
  background: #0f172a;
  height: 55%;
  align-self: flex-start;
  z-index: 1;
  margin: 0 -1px;
}

.corr-octave {
  height: 0.65rem;
  max-width: 16rem;
  margin: 0.5rem auto 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #dc2626,
    #ea580c,
    #eab308,
    #22c55e,
    #06b6d4,
    #2563eb,
    #7c3aed
  );
}

.corr-octave__labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  max-width: 16rem;
  margin: 0.25rem auto 0;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
}

.corr-octave__labels span:nth-child(1) { color: #fca5a5; }
.corr-octave__labels span:nth-child(4) { color: #86efac; }
.corr-octave__labels span:nth-child(7) { color: #93c5fd; }

.corr-pairs-panel {
  width: 100%;
  max-width: 24rem;
  margin: 2rem auto 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
}

.corr-pairs-panel summary {
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  cursor: pointer;
  list-style: none;
}

.corr-pairs-panel summary::-webkit-details-marker {
  display: none;
}

.corr-pairs-panel[open] summary {
  border-bottom: 1px solid var(--border);
}

.corr-pairs-panel .correspondence-legend,
.corr-pairs-panel .correspondence-grid {
  margin: 0.75rem auto 1rem;
}

.correspondences .emf-spectrum {
  position: relative;
  width: 100%;
  max-width: 52rem;
  margin: 2.5rem auto;
  padding: 0 0 1rem;
}

.emf-spectrum__scale {
  display: grid;
  grid-template-columns: 0.6fr 0.5fr 0.7fr 3.2fr 0.5fr 0.6fr 0.4fr;
  gap: 2px;
  margin-bottom: 0.5rem;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.emf-spectrum__band--visible {
  grid-column: span 1;
}

.emf-spectrum__visible-inner {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.emf-spectrum__vis {
  padding: 0.2rem 0;
  border-radius: 2px;
  font-size: 0.5rem;
}

.emf-spectrum__vis--red { background: #dc2626; color: #fff; }
.emf-spectrum__vis--orange { background: #ea580c; color: #fff; }
.emf-spectrum__vis--yellow { background: #ca8a04; color: #fff; }
.emf-spectrum__vis--green { background: #22c55e; color: #fff; font-weight: 700; box-shadow: 0 0 10px rgba(34, 197, 94, 0.8); }
.emf-spectrum__vis--cyan { background: #06b6d4; color: #fff; }
.emf-spectrum__vis--blue { background: #2563eb; color: #fff; }
.emf-spectrum__vis--violet { background: #7c3aed; color: #fff; }

.emf-spectrum__band--red-side {
  color: #fecaca !important;
  background: rgba(220, 38, 38, 0.35) !important;
  border-radius: 2px;
}

.emf-spectrum__band--blue-side {
  color: #bfdbfe !important;
  background: rgba(37, 99, 235, 0.35) !important;
  border-radius: 2px;
}

.emf-spectrum__gradient {
  height: 1.75rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: linear-gradient(
    90deg,
    #450a0a 0%,
    #dc2626 6%,
    #ea580c 12%,
    #eab308 18%,
    #84cc16 28%,
    #22c55e 42%,
    #16a34a 50%,
    #22c55e 58%,
    #06b6d4 68%,
    #2563eb 78%,
    #4f46e5 88%,
    #1e1b4b 100%
  );
  box-shadow:
    0 0 32px rgba(34, 197, 94, 0.35),
    inset 0 0 20px rgba(34, 197, 94, 0.15);
}

.emf-spectrum__zero-marker {
  position: relative;
  height: 0;
}

.emf-spectrum__zero-label {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dcfce7;
  white-space: nowrap;
  padding: 0.25rem 0.6rem;
  background: rgba(34, 197, 94, 0.55);
  border: 1px solid rgba(134, 239, 172, 0.5);
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.45);
}

.emf-spectrum__zero-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.35rem;
  width: 2px;
  height: 1rem;
  background: #22c55e;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.correspondences .emf-spectrum__poles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.75rem;
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
}

.correspondences .emf-pole {
  padding: 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.correspondences .emf-pole ul {
  margin: 0.5rem auto 0;
  padding-left: 0;
  list-style: none;
  color: var(--text-muted);
  max-width: 18rem;
}

.correspondences .emf-pole li {
  margin-bottom: 0.35rem;
}

.correspondences .emf-pole--red {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.28) 0%, rgba(127, 29, 29, 0.12) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-top: 4px solid #ef4444;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.12);
}

.correspondences .emf-pole--red .emf-pole__heading {
  color: #fecaca;
}

.correspondences .emf-pole--red li {
  color: #fca5a5;
}

.correspondences .emf-pole--blue {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.28) 0%, rgba(30, 58, 138, 0.12) 100%);
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-top: 4px solid #3b82f6;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

.correspondences .emf-pole--blue .emf-pole__heading {
  color: #bfdbfe;
}

.correspondences .emf-pole--blue li {
  color: #93c5fd;
}

.emf-spectrum__poles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.emf-pole {
  padding: 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.5;
}

.emf-pole ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.emf-pole li {
  margin-bottom: 0.35rem;
}

.emf-pole--red {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
  border-left: 3px solid #ef4444;
}

.emf-pole--blue {
  background: linear-gradient(225deg, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-right: 3px solid #3b82f6;
  text-align: right;
}

.emf-pole--blue ul {
  list-style-position: inside;
  padding-left: 0;
}

.emf-pole__heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.emf-pole--red .emf-pole__heading {
  color: #fca5a5;
}

.emf-pole--blue .emf-pole__heading {
  color: #93c5fd;
}

.emf-spectrum--prose {
  margin: 1.5rem 0 2rem;
}

.emf-spectrum__poles--compact {
  margin-top: 2rem;
  gap: 1rem;
}

.emf-spectrum__poles--compact .emf-pole {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  margin: 0;
}

.emf-spectrum__poles--compact .emf-pole--blue {
  text-align: right;
}

.correspondence-legend {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 24rem;
  margin: 2rem auto 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.correspondence-legend__red {
  padding: 0.5rem;
  background: rgba(220, 38, 38, 0.45);
  color: #fecaca;
}

.correspondence-legend__zero {
  padding: 0.5rem 0.75rem;
  background: rgba(34, 197, 94, 0.5);
  color: #dcfce7;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.correspondence-legend__blue {
  padding: 0.5rem;
  background: rgba(37, 99, 235, 0.45);
  color: #dbeafe;
}

.correspondences .correspondence-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 24rem;
}

.correspondence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.65rem;
  margin-top: 2.5rem;
}

.correspondence-grid--prose {
  max-width: none;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.correspondence-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.8rem;
  text-align: center;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.correspondence-pair:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.correspondence-pair__red,
.correspondence-pair__blue,
.correspondence-pair__zero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.5rem;
  font-weight: 600;
  line-height: 1.25;
}

.correspondence-pair__red {
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.55) 0%, rgba(220, 38, 38, 0.35) 100%);
  color: #fecaca;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.correspondence-pair__zero {
  font-family: var(--font-display);
  font-size: 1.05rem;
  min-width: 2.25rem;
  color: #dcfce7;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.65) 0%,
    rgba(22, 163, 74, 0.5) 100%
  );
  border-left: 1px solid rgba(134, 239, 172, 0.35);
  border-right: 1px solid rgba(134, 239, 172, 0.35);
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  box-shadow: inset 0 0 16px rgba(34, 197, 94, 0.25);
}

.correspondence-pair__blue {
  background: linear-gradient(270deg, rgba(29, 78, 216, 0.55) 0%, rgba(37, 99, 235, 0.35) 100%);
  color: #dbeafe;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.correspondence-grid--prose .correspondence-legend {
  max-width: 100%;
}

.correspondence-grid--prose .correspondence-pair {
  max-width: 24rem;
  margin-inline: auto;
}

@media (max-width: 720px) {
  .emf-spectrum__scale {
    display: none;
  }

  .emf-spectrum__poles,
  .correspondences .emf-spectrum__poles {
    grid-template-columns: 1fr;
    max-width: 20rem;
  }

  .emf-pole--blue {
    text-align: left;
    border-right: none;
    border-left: 3px solid #3b82f6;
  }

  .correspondences .emf-pole--blue {
    text-align: center;
    border-left: none;
    border-top: 3px solid #3b82f6;
  }

  .emf-pole--blue ul {
    list-style-position: outside;
    padding-left: 1.1rem;
  }

  .correspondences .emf-pole--blue ul {
    list-style: none;
    padding-left: 0;
  }
}

.home-portals {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.portal-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(7.5rem, auto);
  gap: 0.75rem;
}

.portal-card {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  min-height: 7.5rem;
  transition:
    border-color 0.3s,
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.portal-card:hover {
  border-color: rgba(94, 231, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.portal-card--feature {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 16rem;
}

.portal-card--wide {
  grid-column: span 6;
  min-height: 10rem;
}

.portal-card:not(.portal-card--feature):not(.portal-card--launch):not(.portal-card--wide) {
  grid-column: span 3;
}

.portal-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.portal-card:hover .portal-card__bg {
  transform: scale(1.04);
}

.portal-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(6, 8, 15, 0.15) 0%,
    rgba(6, 8, 15, 0.55) 55%,
    rgba(6, 8, 15, 0.88) 100%
  );
  pointer-events: none;
}

.portal-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem;
  width: 100%;
  margin-top: auto;
}

.portal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.7rem;
}

.portal-card__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.portal-card--violet .portal-card__label {
  color: var(--accent-violet);
}

.portal-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.portal-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.45;
  max-width: 28ch;
}

.portal-card__cta {
  margin-top: 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 236, 244, 0.75);
}

.portal-card:hover .portal-card__cta {
  color: var(--accent-cyan);
}

.portal-card__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
}

.home-contact {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
  .portal-bento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .portal-card--feature,
  .portal-card--wide {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 12rem;
  }

  .portal-card:not(.portal-card--feature):not(.portal-card--wide) {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  .portal-bento {
    grid-template-columns: 1fr;
  }

  .portal-card--feature,
  .portal-card--wide,
  .portal-card {
    grid-column: 1 / -1;
  }

  .mission-strip__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— Continuum / spectrum / spell —— */
.continuum-band {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(167, 139, 250, 0.04) 40%,
    transparent 100%
  );
}

.continuum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.continuum-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 4px;
  border-left: 3px solid var(--accent-cyan);
}

.continuum-card--violet {
  border-left-color: var(--accent-violet);
}

.continuum-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.continuum-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.spectrum-axis {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 1.75rem auto;
}

.spectrum-axis--wide {
  max-width: 36rem;
}

.spectrum-axis__pole {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spectrum-axis__pole--neg {
  color: rgba(94, 231, 255, 0.85);
}

.spectrum-axis__pole--pos {
  color: rgba(167, 139, 250, 0.9);
}

.spectrum-axis__track {
  position: relative;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(94, 231, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.15) 55%,
    rgba(167, 139, 250, 0.5) 100%
  );
  border-radius: 2px;
}

.spectrum-axis__zero {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  background: var(--bg-card);
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(94, 231, 255, 0.15);
  line-height: 1;
}

.spectrum-axis--wide .spectrum-axis__zero {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.spectrum-axis__caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: -0.5rem auto 1.5rem;
  line-height: 1.55;
}

.prose .spectrum-axis {
  margin: 2rem auto;
}

.spell-callout {
  margin: 2rem 0;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-violet);
  background: rgba(167, 139, 250, 0.06);
  border-radius: 4px;
  text-align: center;
}

.spell-callout__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 0.5rem;
}

.spell-callout__example {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.spell-callout p:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* —— Page header (inner pages) —— */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.page-hero .hero-lead { margin-top: 1rem; }

.page-hero .hero-lead--secondary {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.88;
}

.hero-copy-stack .hero-lead {
  max-width: 28rem;
  margin-inline: auto;
  margin-top: 1rem;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
}

/* —— Prose —— */
.prose { max-width: 42rem; }
.prose p { margin-bottom: 1.25rem; color: var(--text-muted); }
.prose h2 {
  font-size: 1.75rem;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}
.prose strong { color: var(--text); }

/* —— Pricing —— */
.pricing-card {
  max-width: 22rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent-cyan);
  line-height: 1;
  margin: 1rem 0;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-card li::before {
  content: "○";
  color: var(--accent-cyan);
  margin-right: 0.5rem;
  font-size: 0.6rem;
  vertical-align: middle;
}

/* —— Contact —— */
.contact-form {
  max-width: 28rem;
  margin: 0 auto;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px var(--glow);
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer .nav-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-cyan); }

.site-footer__repos {
  max-width: 36rem;
  margin: 0 auto 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.site-footer__repos a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__repos a:hover {
  color: var(--accent-cyan);
}

.repo-notice {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 4px;
  background: rgba(94, 231, 255, 0.03);
}

.repo-notice h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 0.5rem;
}

.repo-notice p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.repo-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-portal-panel--repos {
  margin-top: 1rem;
  border-style: dashed;
}

.app-portal-panel--repos p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* —— Motion (see script.js) —— */
body {
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

body.is-loaded {
  opacity: 1;
}

.navbar {
  transform: translateY(-100%);
  transition:
    transform 0.55s var(--ease),
    background 0.3s var(--ease);
}

body.is-loaded .navbar {
  transform: translateY(0);
}

/* Letter roll-down (hero titles) */
.split-roll {
  overflow: hidden;
}

.split-roll__char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, -110%, 0);
  transition:
    opacity 0.45s var(--ease),
    transform 0.55s var(--ease);
  transition-delay: calc(var(--char-i, 0) * 0.028s);
}

.split-roll.is-active .split-roll__char {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.split-roll__char--space {
  width: 0.35em;
}

/* Fade-up sequence after title */
.fade-seq {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.65s var(--ease);
  transition-delay: var(--fade-delay, 0s);
}

body.is-loaded .fade-seq {
  opacity: 1;
  transform: translateY(0);
}

/* Odometer-style counter */
.roll-counter {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}

.roll-counter__prefix {
  margin-right: 0.05em;
}

.roll-counter__wheel {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  vertical-align: bottom;
}

.roll-counter__strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.15s var(--ease);
  transform: translateY(calc(var(--digit-to, 0) * -1em));
}

.roll-counter__strip span {
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Parallax layers */
.parallax-bg {
  position: absolute;
  inset: -12% 0 -8%;
  z-index: 0;
  background: var(--bg-deep) center / cover no-repeat;
  background-image: var(--parallax-image);
  will-change: transform;
  pointer-events: none;
}

.page-hero--sky,
.hero {
  position: relative;
}

.page-hero--sky > .container,
.hero-content {
  position: relative;
  z-index: 1;
}

[data-parallax-float] {
  will-change: transform;
  transition: transform 0.12s linear;
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  transform: none;
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal.visible.reveal-left,
.reveal.visible.reveal-right {
  transform: translate(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.visible.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal.visible.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal.visible.reveal-stagger > *:nth-child(3) { transition-delay: 0.19s; }
.reveal.visible.reveal-stagger > *:nth-child(4) { transition-delay: 0.26s; }
.reveal.visible.reveal-stagger > *:nth-child(5) { transition-delay: 0.33s; }
.reveal.visible.reveal-stagger > *:nth-child(6) { transition-delay: 0.4s; }

.reveal.visible.reveal-stagger > * {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle section divider breathe */
section {
  transition: opacity 0.4s var(--ease);
}

.site-footer {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.65s var(--ease);
}

.site-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body { opacity: 1; transition: none; }
  body.is-loaded .navbar { transform: none; }
  .split-roll__char,
  .fade-seq,
  .reveal,
  .reveal-stagger > *,
  .site-footer {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .parallax-bg,
  [data-parallax-float],
  [data-parallax],
  #heroCopyStack,
  .hero--media .hero-backdrop {
    transform: none !important;
    opacity: 1 !important;
  }
  .pigment-abyss__wash,
  .pigment-abyss__sheen {
    animation: none !important;
  }
  .hero--media .hero-eyebrow--descent {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero-copy-stack .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* —— Utility —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
