/* ==========================================================================
   CRANIA homepage — "Signature" luxury edition
   Obsidian navy + champagne gold + bioluminescent teal.
   Fraunces (display, opsz) / Inter (body). No frameworks.
   ========================================================================== */

:root {
  --obsidian: #060b12;
  --navy-900: #0a1220;
  --navy-800: #0f1b2e;
  --navy-700: #17273f;
  --navy-600: #21374f;

  --gold-300: #f0d9a3;
  --gold-400: #e4c586;
  --gold-500: #d3ac63;
  --gold-600: #b8914b;

  --teal-300: #67e8d9;
  --teal-400: #38bdb2;
  --teal-500: #17a094;

  --ivory: #f4efe6;
  --paper: #f7f4ee;
  --ink: #131a24;
  --muted: #5c6b7a;
  --muted-light: rgba(244, 239, 230, 0.66);

  --line: #e2dccf;
  --line-dark: rgba(240, 217, 163, 0.16);

  --radius: 4px;
  --radius-lg: 8px;

  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --container: 1240px;

  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

p { text-wrap: pretty; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 600; text-wrap: balance; }
a { color: var(--teal-400); }

.container {
  width: min(var(--container), calc(100% - 2.75rem));
  margin-inline: auto;
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--gold-400); color: var(--obsidian);
  padding: 0.6rem 1rem; border-radius: 0 0 6px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

[id] { scroll-margin-top: 92px; }

/* ==========================================================================
   Buttons — magnetic, hairline luxury
   ========================================================================== */
.btn {
  --btn-x: 0px; --btn-y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 0.76rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transform: translate(var(--btn-x), var(--btn-y));
  transition: background-color 400ms var(--ease-lux), color 400ms var(--ease-lux),
              border-color 400ms var(--ease-lux), transform 200ms var(--ease-lux),
              box-shadow 400ms var(--ease-lux);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--obsidian);
  box-shadow: 0 8px 30px -12px rgba(212, 172, 99, 0.7);
}
.btn-primary:hover { box-shadow: 0 14px 40px -12px rgba(212, 172, 99, 0.9); color: var(--obsidian); }

.btn-line {
  border-color: rgba(240, 217, 163, 0.4);
  color: var(--gold-300);
  background: rgba(240, 217, 163, 0.02);
}
.btn-line:hover { border-color: var(--gold-300); color: var(--gold-300); background: rgba(240, 217, 163, 0.08); }

.btn-line-dark {
  border-color: var(--navy-700);
  color: var(--navy-800);
  background: transparent;
  white-space: nowrap;
}
.btn-line-dark:hover { border-color: var(--gold-600); color: var(--gold-600); }

.btn-ghost-dark {
  border-color: var(--line); color: var(--ink); background: transparent;
}
.btn-ghost-dark:hover { border-color: var(--muted); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 11, 18, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line-dark);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 217, 163, 0.55) 50%, transparent);
  pointer-events: none;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 100px; padding-block: 0.75rem;
}
.brand { display: flex; align-items: center; text-decoration: none; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  color: var(--ivory); font-size: 1.4rem; letter-spacing: 0.01em; font-weight: 800;
}

.site-nav ul {
  display: flex; align-items: center; gap: 0.15rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: block; padding: 0.55rem 0.65rem;
  color: var(--muted-light); font-size: 0.98rem; font-weight: 500;
  letter-spacing: 0.01em; text-decoration: none;
  transition: color 300ms var(--ease-lux);
  position: relative;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-400); }

.btn-join {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-left: 0.7rem; padding: 0.62rem 1.3rem 0.62rem 1.05rem;
  font: 700 0.7rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-300); background: rgba(240, 217, 163, 0.05);
  border: 0; border-radius: 999px; cursor: pointer;
  transition: color 400ms var(--ease-lux), box-shadow 400ms var(--ease-lux), transform 200ms var(--ease-lux);
}
.btn-join::before {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, var(--teal-400), var(--gold-300), var(--gold-600));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn-join::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, var(--teal-400), var(--gold-400), var(--gold-600));
  opacity: 0; transition: opacity 400ms var(--ease-lux);
}
.btn-join:hover {
  color: var(--obsidian); transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(212, 172, 99, 0.65);
}
.btn-join:hover::after { opacity: 1; }
.btn-join-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-300); box-shadow: 0 0 10px 2px var(--teal-400);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 0.6rem; cursor: pointer;
}
.nav-toggle-bar { width: 24px; height: 1.5px; background: var(--gold-300); transition: transform 300ms var(--ease-lux), opacity 300ms; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   HERO — 3D neural constellation
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(640px, 92vh, 940px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 78% 42%, rgba(23, 39, 63, 0.6), transparent 60%),
    radial-gradient(900px 600px at 12% 8%, rgba(212, 172, 99, 0.08), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--obsidian));
  color: var(--ivory);
  padding-block: 5rem 6.5rem;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; cursor: grab; touch-action: pan-y;
}
#hero-canvas.is-dragging { cursor: grabbing; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 50%, transparent 40%, rgba(6, 11, 18, 0.72) 100%);
}
.hero-inner { position: relative; z-index: 3; max-width: 44rem; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold-300);
  margin: 0 0 1.6rem;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-300); box-shadow: 0 0 12px 2px var(--teal-400);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold-300); }
.grad-word {
  background: linear-gradient(120deg, var(--teal-300), var(--gold-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-lede {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.8; color: var(--muted-light);
  max-width: 36rem; margin: 0 0 2.4rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.hero-hint {
  font-size: 0.7rem; letter-spacing: 0.05em; color: rgba(244, 239, 230, 0.38);
  margin: 0; font-style: italic;
}

/* Hero ticker */
.hero-ticker {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  border-top: 1px solid var(--line-dark);
  background: rgba(6, 11, 18, 0.5);
  backdrop-filter: blur(6px);
  overflow: hidden; padding-block: 0.9rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 1.6rem;
  white-space: nowrap; animation: ticker 34s linear infinite;
}
.ticker-track span {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(244, 239, 230, 0.58);
}
.ticker-track .tk-dot { color: var(--gold-400); font-size: 0.5rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Shared section scaffolding
   ========================================================================== */
.section { position: relative; padding-block: clamp(4rem, 8vw, 7rem); }

.section-kicker {
  display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem;
}
.kicker-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 1rem; color: var(--gold-500);
}
.section-kicker-light .kicker-num { color: var(--gold-300); }
.kicker-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.018em; color: inherit; margin: 0;
  position: relative;
}
.kicker-title::before {
  content: ""; position: absolute; left: 0; top: -1rem;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
}

.section-lede { max-width: 52ch; color: var(--muted); margin: 0 0 2.5rem; font-size: 0.96rem; }

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.6rem;
}
.section-head-row .section-kicker { margin-bottom: 0; }

.card-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-500); margin: 0 0 0.8rem;
}

/* ==========================================================================
   01 · Mission & Vision — the duality (tilt cards)
   ========================================================================== */
.section-duality { background: var(--ivory); color: var(--ink); }

.duality-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem; perspective: 1200px;
}
.duality-card {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--obsidian));
  color: var(--ivory); overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 400ms var(--ease-lux), box-shadow 400ms var(--ease-lux);
  box-shadow: 0 30px 60px -30px rgba(6, 11, 18, 0.6);
}
.duality-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at var(--mx, 70%) var(--my, 0%), rgba(212, 172, 99, 0.16), transparent 60%);
  opacity: 0; transition: opacity 400ms var(--ease-lux);
}
.duality-card:hover::before { opacity: 1; }
.duality-card-light {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
}
.tilt-inner { position: relative; padding: 2.4rem 2.4rem 2.6rem; transform: translateZ(30px); }
.duality-index {
  position: absolute; top: 1.1rem; right: 1.6rem;
  font-family: var(--font-display); font-style: italic;
  font-size: 3.6rem; font-weight: 600; line-height: 1;
  color: var(--gold-400); opacity: 0.2;
}
.duality-card-light .card-eyebrow { color: var(--gold-600); }
.duality-statement {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 500; line-height: 1.42; margin: 0.4rem 0 0;
  max-width: 26ch; text-wrap: balance;
}
.duality-rule {
  margin-top: 1.8rem; height: 1px; width: 60px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
}
.duality-blurb {
  max-width: 62ch; margin: 2.6rem 0 0; color: var(--muted); font-size: 0.95rem;
}
.duality-blurb strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   02 · Core Areas — orbital selector
   ========================================================================== */
.section-cores { background: var(--obsidian); color: var(--ivory); overflow: hidden; }
.section-cores .section-lede { color: var(--muted-light); }
.section-cores > .container { position: relative; z-index: 1; }

.cores-bg { position: absolute; inset: 0; z-index: 0; }
/* Blueprint grid + slow radar-style scan sweep replace the old photo backdrop. */
.cores-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(103, 232, 217, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 217, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 40%, #000 35%, transparent 82%);
          mask-image: radial-gradient(120% 90% at 30% 40%, #000 35%, transparent 82%);
}
.cores-scan {
  position: absolute; inset: -10% -20%;
  background: linear-gradient(100deg, transparent 40%, rgba(103, 232, 217, 0.06) 48%, rgba(212, 172, 99, 0.05) 52%, transparent 60%);
  animation: cores-scan 9s linear infinite;
}
@keyframes cores-scan { from { transform: translateX(-15%); } to { transform: translateX(15%); } }
.cores-bg-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: flex-start;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1400ms var(--ease-lux);
}
.cores-bg-layer.is-active { opacity: 1; }
.core-watermark {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: min(48vw, 640px); line-height: 1; color: var(--gold-400);
  opacity: 0.05; margin-left: -4vw; -webkit-user-select: none; user-select: none;
}
.cores-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 18, 0.35), rgba(6, 11, 18, 0.55) 60%, rgba(6, 11, 18, 0.88));
}

.orbital {
  display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.1fr;
  gap: 3rem; align-items: center; margin-top: 1rem;
}

.orbital-stage {
  --orbit-radius: 180px;
  position: relative; aspect-ratio: 1; max-width: 440px; width: 100%;
  margin-inline: auto;
}
.orbit-ring {
  position: absolute; inset: 8%; border-radius: 50%;
  border: 1px solid var(--line-dark);
}
.orbit-ring-2 { inset: 24%; border-color: rgba(103, 232, 217, 0.14); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-spoke {
  --angle: calc(var(--i) * 60deg - 90deg);
  position: absolute; top: 50%; left: 50%;
  width: var(--orbit-radius); height: 2px;
  transform-origin: left center;
  transform: rotate(var(--angle));
  background-image: repeating-linear-gradient(90deg, rgba(103, 232, 217, 0.55) 0 5px, transparent 5px 13px);
  background-size: 200% 100%;
  opacity: 0.4;
  animation: spoke-flow 1.1s linear infinite;
}
.orbit-spoke.is-active {
  opacity: 0.95;
  background-image: repeating-linear-gradient(90deg, var(--gold-400) 0 5px, transparent 5px 13px);
}
@keyframes spoke-flow { to { background-position: -26px 0; } }

.orbit-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, rgba(103, 232, 217, 0.14), rgba(15, 27, 46, 0.9) 78%);
  border: 1px solid rgba(103, 232, 217, 0.3);
}
.orbit-hub-ring {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 1px dashed rgba(228, 197, 134, 0.35);
  animation: spin 40s linear infinite reverse;
}
.orbit-hub-label {
  font-family: var(--font-display); font-style: italic;
  font-size: 0.92rem; letter-spacing: 0.08em; text-align: center;
  color: var(--gold-300); line-height: 1.3; position: relative; z-index: 1;
}
.orbit-dot {
  --angle: calc(var(--i) * 60deg - 90deg);
  position: absolute; top: 50%; left: 50%;
  width: 62px; height: 62px; margin: -31px 0 0 -31px;
  transform: rotate(var(--angle)) translate(var(--orbit-radius)) rotate(calc(-1 * var(--angle)));
  clip-path: polygon(50% 2%, 95% 26%, 95% 74%, 50% 98%, 5% 74%, 5% 26%);
  cursor: pointer;
  background: rgba(15, 27, 46, 0.9);
  border: 1px solid var(--line-dark);
  color: var(--muted-light);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  transition: all 400ms var(--ease-lux);
}
.orbit-dot:hover { border-color: var(--gold-400); color: var(--gold-300); }
.orbit-dot.is-active {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--obsidian); border-color: var(--gold-300);
  box-shadow: 0 0 0 6px rgba(212, 172, 99, 0.14), 0 0 30px -4px var(--gold-400);
}

.orbital-panels { position: relative; min-height: 300px; }
.orbit-panel {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-lux), transform 500ms var(--ease-lux);
}
.orbit-panel.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }
.orbit-panel[hidden] { display: none; }

.core-viewfinder {
  position: relative; width: 100%; max-width: 260px; aspect-ratio: 5/4;
  margin: 0 0 1.6rem; color: var(--teal-300);
}
.schema-icon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vf-corner { position: absolute; width: 16px; height: 16px; }
.vf-corner::before, .vf-corner::after { content: ""; position: absolute; background: var(--gold-400); }
.vf-corner::before { width: 100%; height: 1.5px; }
.vf-corner::after { width: 1.5px; height: 100%; }
.vf-tl { top: -6px; left: -6px; } .vf-tl::before, .vf-tl::after { top: 0; left: 0; }
.vf-tr { top: -6px; right: -6px; } .vf-tr::before { top: 0; right: 0; } .vf-tr::after { top: 0; right: 0; }
.vf-bl { bottom: -6px; left: -6px; } .vf-bl::before { bottom: 0; left: 0; } .vf-bl::after { bottom: 0; left: 0; }
.vf-br { bottom: -6px; right: -6px; } .vf-br::before { bottom: 0; right: 0; } .vf-br::after { bottom: 0; right: 0; }

.schema-draw, .schema-dash { stroke-dasharray: 100; stroke-dashoffset: 100; }
.orbit-panel.is-active .schema-draw {
  animation: schema-draw 1s var(--ease-lux) forwards;
  animation-delay: var(--d, 0s);
}
.orbit-panel.is-active .schema-dash {
  stroke-dasharray: 3 3;
  animation: schema-draw 1.4s var(--ease-lux) forwards;
}
@keyframes schema-draw { to { stroke-dashoffset: 0; } }
.schema-fill { fill: var(--gold-400); stroke: none; }
.schema-flow {
  stroke: var(--gold-400); stroke-dasharray: 5 6; opacity: 0.85;
  animation: schema-flow-move 1s linear infinite;
}
@keyframes schema-flow-move { to { stroke-dashoffset: -22; } }
.schema-pulse { fill: var(--gold-300); stroke: none; animation: pulse-dot 2.4s ease-in-out infinite; }
.schema-pulse-ring {
  fill: none; stroke: var(--gold-300); stroke-width: 1.6;
  transform-box: fill-box; transform-origin: center;
  animation: icon-ping 2.4s var(--ease-lux) infinite;
}

.orbit-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-300); border: 1px solid var(--line-dark);
  border-radius: 4px; padding: 0.3rem 0.9rem; margin: 0 0 1.2rem;
}
.orbit-tag::before { content: ""; width: 6px; height: 6px; background: var(--teal-300); box-shadow: 0 0 8px 1px var(--teal-400); }
.orbit-panel h3 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600; color: var(--ivory); letter-spacing: -0.012em;
}
.orbit-summary { color: var(--muted-light); font-size: 0.96rem; line-height: 1.75; max-width: 48ch; }
.orbit-meta {
  display: grid; gap: 1rem; margin: 1.8rem 0 0; max-width: 48ch;
  padding: 1.1rem 1.2rem; border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  background: rgba(103, 232, 217, 0.03);
}
.orbit-meta > div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: baseline; }
.orbit-meta dt {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-500);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}
.orbit-meta dd {
  margin: 0; color: rgba(244, 239, 230, 0.78); font-size: 0.86rem;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace; line-height: 1.5;
}

/* ==========================================================================
   03 · What is Neuromodulation — live signal
   ========================================================================== */
.section-neuro {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--ivory); overflow: hidden;
}
.neuro-signal {
  position: absolute; top: 46%; left: 0; right: 0; height: 200px;
  color: var(--teal-400); opacity: 0.5; pointer-events: none;
}
.neuro-signal svg { width: 100%; height: 100%; }
#eeg-path {
  stroke-dasharray: 2600; stroke-dashoffset: 2600;
  animation: trace 5s var(--ease-lux) forwards;
  filter: drop-shadow(0 0 6px rgba(56, 189, 178, 0.6));
}
@keyframes trace { to { stroke-dashoffset: 0; } }

.neuro-definition {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 500;
  line-height: 1.5; max-width: 34ch; color: var(--ivory);
  margin: 0 0 3rem; position: relative; text-wrap: balance;
}
.neuro-definition em { font-style: italic; color: var(--gold-300); font-weight: 400; }
.neuro-subtitle {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-400);
  margin: 0 0 1.6rem; position: relative;
}
.therapy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem; position: relative;
}
.therapy-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 21rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem 2.1rem;
  transition: transform 400ms var(--ease-lux), border-color 400ms var(--ease-lux);
}
.therapy-card:hover { transform: translateY(-6px); border-color: rgba(240, 217, 163, 0.4); }
.therapy-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.92) brightness(0.92);
  transform: scale(1.04);
  transition: transform 900ms var(--ease-lux);
}
.therapy-card:hover .therapy-photo { transform: scale(1.12); }
.therapy-card--fes .therapy-photo { transform: scale(1); }
.therapy-card--fes:hover .therapy-photo { transform: scale(1.05); }
.therapy-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 18, 0.1), rgba(6, 11, 18, 0.55) 55%, rgba(6, 11, 18, 0.92));
}
.therapy-copy { position: relative; z-index: 1; max-width: 24ch; }
.therapy-credit {
  position: relative; z-index: 1; margin: 0.9rem 0 0;
  font-size: 0.62rem; color: rgba(244, 239, 230, 0.4); letter-spacing: 0.01em;
}
.therapy-pulse-dot, .therapy-pulse-ring {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; transform-origin: center;
}
.therapy-pulse-dot {
  background: var(--teal-300); box-shadow: 0 0 10px 3px rgba(103, 232, 217, 0.7);
  animation: pulse-dot 2.6s ease-in-out infinite;
}
.therapy-pulse-ring {
  border: 1.5px solid var(--teal-300);
  animation: icon-ping 2.6s var(--ease-lux) infinite;
}
.therapy-card:nth-child(2) .therapy-pulse-dot,
.therapy-card:nth-child(2) .therapy-pulse-ring { animation-delay: 0.5s; }
.therapy-card:nth-child(3) .therapy-pulse-dot,
.therapy-card:nth-child(3) .therapy-pulse-ring { animation-delay: 1s; }
@keyframes icon-ping {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.4); opacity: 0; }
}
.therapy-num {
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem;
  color: var(--gold-300); display: block; margin-bottom: 0.8rem;
}
.therapy-card h3 {
  font-size: 1.2rem; color: var(--ivory); font-family: var(--font-display);
  font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.6rem; line-height: 1.3;
}
.therapy-card p { margin: 0; color: rgba(244, 239, 230, 0.72); font-size: 0.9rem; }

/* ==========================================================================
   04 · Impact — counting ledger
   ========================================================================== */
.section-stats { background: var(--ivory); color: var(--ink); }
.ledger { border-top: 1px solid var(--line); margin-top: 1rem; }
.ledger-row {
  display: grid; grid-template-columns: minmax(140px, 0.4fr) 1fr;
  gap: 1.5rem; align-items: center;
  padding: 1.8rem 0.5rem; border-bottom: 1px solid var(--line);
  transition: padding-left 400ms var(--ease-lux), background 400ms;
}
.ledger-row:hover { padding-left: 1.4rem; background: linear-gradient(90deg, rgba(212, 172, 99, 0.08), transparent 60%); }
.ledger-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1;
  letter-spacing: -0.02em; font-variant-numeric: lining-nums;
  background: linear-gradient(135deg, var(--navy-800), var(--gold-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ledger-label { font-size: 0.95rem; color: var(--muted); max-width: 44ch; }

/* ==========================================================================
   05 · News — editorial index
   ========================================================================== */
.section-news { background: var(--paper); color: var(--ink); }
.news-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-entry { border-bottom: 1px solid var(--line); }
.news-entry a {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  grid-template-areas: "tag title arrow" "tag blurb arrow";
  gap: 0.2rem 1.8rem; align-items: center;
  padding: 2rem 0.5rem; text-decoration: none; color: inherit;
  transition: padding-left 450ms var(--ease-lux), background 450ms;
}
.news-entry a:hover { padding-left: 1.4rem; background: linear-gradient(90deg, rgba(212, 172, 99, 0.08), transparent 55%); }
.news-tag {
  grid-area: tag; align-self: start;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-600);
  padding-top: 0.35rem;
}
.news-title {
  grid-area: title;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600; line-height: 1.32; color: var(--navy-800);
  transition: color 300ms var(--ease-lux);
}
.news-entry a:hover .news-title { color: var(--gold-600); }
.news-blurb { grid-area: blurb; color: var(--muted); font-size: 0.88rem; margin-top: 0.3rem; }
.news-arrow {
  grid-area: arrow; font-size: 1.5rem; color: var(--gold-500);
  transform: translateX(-8px); opacity: 0;
  transition: transform 400ms var(--ease-lux), opacity 400ms;
}
.news-entry a:hover .news-arrow { transform: none; opacity: 1; }

/* ==========================================================================
   06 · Projects — showcase gallery
   ========================================================================== */
.section-projects { background: var(--obsidian); color: var(--ivory); }
.showcase { width: min(var(--container), calc(100% - 2.75rem)); margin-inline: auto; }
.showcase-viewport { display: grid; }
.showcase-slide {
  grid-area: 1 / 1; margin: 0;
  display: grid; grid-template-columns: minmax(280px, 440px) 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 700ms var(--ease-lux), transform 900ms var(--ease-lux), visibility 700ms;
}
.showcase-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.showcase-slide[hidden] { display: grid; } /* JS controls visibility via class */
.showcase-slide img {
  width: 100%; max-width: 440px; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-lg);
  filter: saturate(1.05) contrast(1.03);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line-dark);
}
.showcase-slide figcaption { padding: 0; }
.showcase-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 0.85rem; color: var(--gold-300); margin: 0 0 0.7rem;
  letter-spacing: 0.12em;
}
.showcase-slide h3 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600; color: var(--ivory); letter-spacing: -0.012em;
}
.showcase-slide figcaption p:last-child {
  max-width: 52ch; color: var(--muted-light); font-size: 0.94rem; margin: 0;
}
.showcase-controls {
  display: flex; align-items: center; justify-content: flex-start; gap: 1.4rem;
  padding-block: 2.4rem 0; width: auto;
}
.showcase-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: transparent;
  color: var(--gold-300); font-size: 1.2rem; cursor: pointer;
  transition: all 350ms var(--ease-lux);
}
.showcase-arrow:hover { border-color: var(--gold-300); background: rgba(240, 217, 163, 0.08); transform: scale(1.06); }
.showcase-tabs { display: flex; gap: 0.7rem; }
.showcase-tab {
  width: 46px; height: 3px; border: 0; padding: 0; cursor: pointer;
  background: var(--navy-600); border-radius: 2px; overflow: hidden;
  transition: background 400ms;
}
.showcase-tab.is-active { background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); }

/* ==========================================================================
   07 · Operations team — portrait salon
   ========================================================================== */
.section-team { background: var(--ivory); color: var(--ink); }

.roster-wall { position: relative; padding-top: 1.5rem; }
.roster-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem 1.6rem; perspective: 1500px;
  padding-top: 1rem;
  max-width: 620px;
}
.roster-card {
  position: relative; transform-style: preserve-3d;
  transition: transform 500ms var(--ease-lux), box-shadow 500ms var(--ease-lux);
}
.roster-card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: var(--radius-lg);
  background: radial-gradient(460px 240px at var(--mx, 50%) var(--my, 0%), rgba(212, 172, 99, 0.28), transparent 62%);
  opacity: 0; transition: opacity 400ms var(--ease-lux);
}
.roster-card:hover::before { opacity: 1; }
.roster-card-inner {
  position: relative; padding: 0; transform: translateZ(26px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 24px 48px -30px rgba(19, 26, 36, 0.4);
  transition: box-shadow 500ms var(--ease-lux);
}
.roster-card:hover .roster-card-inner { box-shadow: 0 36px 60px -24px rgba(19, 26, 36, 0.5); }
.roster-ribbon {
  position: absolute; top: 1.1rem; left: -2.7rem; z-index: 4;
  transform: rotate(-40deg);
  background: linear-gradient(120deg, var(--gold-300), var(--gold-600));
  color: var(--obsidian); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 2.8rem; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.4);
}
.roster-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.roster-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05); transform: scale(1.01);
  transition: filter 700ms var(--ease-lux), transform 700ms var(--ease-lux);
}
.roster-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--gold-400), var(--teal-400));
  mix-blend-mode: color; opacity: 0.6; transition: opacity 600ms var(--ease-lux);
}
.roster-card:hover .roster-photo img { filter: grayscale(0) contrast(1); transform: scale(1.06); }
.roster-card:hover .roster-photo::after { opacity: 0; }
.roster-meta { position: relative; z-index: 2; padding: 1.3rem 1.4rem 1.5rem; }
.roster-meta h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--navy-800); margin: 0 0 0.3rem;
}
.roster-meta p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.roster-rule {
  display: block; margin-top: 0.9rem; height: 1px; width: 32px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
}

/* ==========================================================================
   08 · Contact — concierge finale
   ========================================================================== */
.section-contact {
  background:
    radial-gradient(800px 500px at 90% 10%, rgba(212, 172, 99, 0.1), transparent 55%),
    linear-gradient(180deg, var(--obsidian), var(--navy-900));
  color: var(--ivory);
}
.contact-lede { max-width: 48ch; color: var(--muted-light); font-size: 0.98rem; margin: 0 0 2.6rem; }
.concierge { border-top: 1px solid var(--line-dark); }
.concierge-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) 1fr auto;
  gap: 1.5rem; align-items: center;
  width: 100%; text-align: left;
  padding: 2.2rem 0.5rem; border-bottom: 1px solid var(--line-dark);
  text-decoration: none; color: inherit;
  background: none; border-left: 0; border-right: 0; border-top: 0;
  font: inherit; cursor: pointer;
  transition: padding-left 450ms var(--ease-lux), background 450ms;
}
.concierge-row:hover { padding-left: 1.4rem; background: linear-gradient(90deg, rgba(212, 172, 99, 0.1), transparent 55%); }
.concierge-label {
  font-family: var(--font-display); font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 600; color: var(--ivory);
}
.concierge-desc { color: var(--muted-light); font-size: 0.9rem; }
.concierge-action {
  justify-self: end; white-space: nowrap;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-300);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.concierge-action span { transition: transform 400ms var(--ease-lux); }
.concierge-row:hover .concierge-action span { transform: translateX(6px); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--obsidian); color: var(--muted-light);
  padding-block: 3.5rem 2.5rem; font-size: 0.9rem;
  border-top: 1px solid var(--line-dark);
}
.footer-inner { display: grid; gap: 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand .brand-logo { height: 100px; width: auto; }
.footer-brand p { margin: 0; line-height: 1.65; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.footer-nav a { color: var(--muted-light); text-decoration: none; transition: color 300ms; }
.footer-nav a:hover { color: var(--gold-300); }
.footer-copy { margin: 0; color: rgba(244, 239, 230, 0.35); font-size: 0.8rem; letter-spacing: 0.04em; }

/* ==========================================================================
   Join CRANIA dialog
   ========================================================================== */
.join-dialog {
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: 0; max-width: min(36rem, calc(100vw - 2.5rem));
  background: linear-gradient(165deg, var(--navy-800), var(--obsidian));
  color: var(--ivory);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}
.join-dialog::backdrop { background: rgba(6, 11, 18, 0.72); backdrop-filter: blur(5px); }
.join-dialog-body { position: relative; padding: 2.8rem 2.8rem 2.4rem; }
.join-dialog .card-eyebrow { color: var(--gold-400); }
.join-dialog h2 {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  color: var(--ivory); letter-spacing: -0.01em;
}
.join-dialog p { font-size: 0.95rem; }
.join-dialog p { color: var(--muted-light); }
.join-dialog a { color: var(--gold-300); }
.dialog-close {
  position: absolute; top: 1rem; right: 1.1rem;
  background: none; border: 0; font-size: 1.9rem; line-height: 1;
  color: var(--muted-light); cursor: pointer; padding: 0.3rem 0.5rem; border-radius: 6px;
  transition: color 300ms, background 300ms;
}
.dialog-close:hover { color: var(--ivory); background: rgba(240, 217, 163, 0.1); }
.dialog-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.join-dialog .btn-ghost-dark { color: var(--ivory); border-color: var(--line-dark); }
.join-dialog .btn-ghost-dark:hover { border-color: var(--gold-400); }
.dialog-input {
  display: block; width: 100%;
  font: 500 0.95rem/1.4 var(--font-body); color: var(--ivory);
  background: rgba(240, 217, 163, 0.04);
  border: 1px solid var(--line-dark); border-radius: 8px;
  padding: 0.8rem 1rem; margin-top: 1rem;
  transition: border-color 300ms var(--ease-lux), background 300ms var(--ease-lux);
}
.dialog-input:first-of-type { margin-top: 1.6rem; }
.dialog-input::placeholder { color: var(--muted); }
.dialog-input:focus { outline: none; border-color: var(--gold-400); background: rgba(240, 217, 163, 0.08); }
.dialog-label {
  display: block; margin: 1rem 0 0;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-500);
}
.dialog-input-file { padding: 0.6rem 0.8rem; color: var(--muted-light); font-size: 0.85rem; }
.dialog-input-file::file-selector-button {
  font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--obsidian); background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border: 0; border-radius: 999px; padding: 0.5rem 0.9rem; margin-right: 0.9rem; cursor: pointer;
}
.dialog-error {
  margin: 0.9rem 0 0; font-size: 0.85rem; color: #e08a72;
}

/* ==========================================================================
   Scientists page — page hero + filterable roster
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page-hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(212, 172, 99, 0.1), transparent 55%),
    radial-gradient(700px 400px at 10% 100%, rgba(23, 160, 148, 0.08), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--obsidian));
  color: var(--ivory);
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line-dark);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 600; letter-spacing: -0.02em; margin: 0 0 1rem;
}
.page-hero-lede {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem); line-height: 1.8;
  color: var(--muted-light); max-width: 46rem; margin: 0;
}
.page-hero-lede strong { color: var(--gold-300); font-weight: 600; }

.section-roster { background: var(--ivory); color: var(--ink); }

.roster-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 2.6rem; padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.roster-search {
  position: relative; flex: 1 1 280px; max-width: 420px;
  display: flex; align-items: center;
}
.roster-search-icon {
  position: absolute; left: 0.2rem; color: var(--gold-600); pointer-events: none;
}
#sci-search {
  width: 100%;
  font: 500 0.95rem/1.4 var(--font-body);
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.5rem 0.7rem 2rem;
  transition: border-color 300ms var(--ease-lux);
}
#sci-search::placeholder { color: var(--muted); font-style: italic; }
#sci-search:focus { outline: none; border-bottom-color: var(--gold-500); }
#sci-search:focus-visible { outline: none; }
.roster-count {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: 0.95rem; color: var(--gold-600); white-space: nowrap;
}
.roster-side { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.admin-toolbar { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.admin-toolbar[hidden] { display: none; }
.btn[hidden] { display: none; }

@property --ring-angle {
  syntax: '<angle>'; inherits: false; initial-value: 140deg;
}
.sci-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3.2rem 2rem;
}
.sci-card { position: relative; }
.sci-card a {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; text-align: center;
}
.sci-remove {
  position: absolute; top: -0.4rem; left: 50%; margin-left: 79px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--obsidian); color: var(--ivory);
  border: 1px solid var(--line-dark);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background 250ms var(--ease-lux), border-color 250ms var(--ease-lux), transform 250ms var(--ease-lux);
}
.sci-remove:hover { background: #b3462f; border-color: #b3462f; transform: scale(1.08); }
.sci-portrait {
  --ring-angle: 140deg;
  position: relative; display: block;
  width: 188px; height: 188px; margin-bottom: 1.3rem;
  border-radius: 50%; padding: 5px;
  background: conic-gradient(from var(--ring-angle), var(--line), var(--line), var(--line));
  transition: background 500ms var(--ease-lux), transform 500ms var(--ease-lux);
}
.sci-card a:hover .sci-portrait,
.sci-card a:focus-visible .sci-portrait {
  background: conic-gradient(from var(--ring-angle), var(--gold-300), var(--teal-400), var(--gold-500), var(--gold-300));
  transform: translateY(-6px);
  animation: sci-ring-spin 2.8s linear infinite;
}
.sci-portrait::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--ivory);
}
.sci-portrait::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1.5px solid var(--gold-400); opacity: 0;
}
.sci-card a:hover .sci-portrait::before,
.sci-card a:focus-visible .sci-portrait::before { animation: sci-ping 900ms var(--ease-lux); }
@keyframes sci-ring-spin { to { --ring-angle: 500deg; } }
@keyframes sci-ping {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0; }
}
.sci-portrait img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: filter 600ms var(--ease-lux), transform 600ms var(--ease-lux);
}
.sci-card a:hover .sci-portrait img,
.sci-card a:focus-visible .sci-portrait img { filter: grayscale(0); transform: scale(1.05); }
.sci-name {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 600;
  line-height: 1.3; color: var(--navy-800);
  transition: color 300ms var(--ease-lux);
}
.sci-card a:hover .sci-name { color: var(--gold-600); }
.sci-view {
  margin-top: 0.4rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-600);
  opacity: 0; transform: translateY(4px);
  transition: opacity 350ms var(--ease-lux), transform 350ms var(--ease-lux);
}
.sci-card a:hover .sci-view,
.sci-card a:focus-visible .sci-view { opacity: 1; transform: none; }

.roster-empty {
  margin: 3rem 0 0; text-align: center;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; color: var(--muted);
}

@media (max-width: 900px) {
  .sci-grid { grid-template-columns: repeat(3, 1fr); gap: 2.6rem 1.4rem; }
  .sci-portrait { width: 150px; height: 150px; }
  .sci-remove { margin-left: 60px; }
}

@media (max-width: 640px) {
  .sci-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .sci-portrait { width: 128px; height: 128px; }
  .sci-remove { margin-left: 49px; }
}

@media (max-width: 420px) {
  .sci-grid { grid-template-columns: 1fr; }
  .sci-portrait { width: 160px; height: 160px; }
  .sci-remove { margin-left: 65px; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-lux), transform 800ms var(--ease-lux); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .orbit-ring-2, .eyebrow-dot, .btn-join-dot { animation: none; }
  .cores-scan, .orbit-spoke, .orbit-hub-ring, .schema-flow { animation: none; }
  .schema-draw, .schema-dash { animation: none; stroke-dashoffset: 0; }
  .schema-pulse, .schema-pulse-ring { animation: none; opacity: 1; }
  #eeg-path { animation: none; stroke-dashoffset: 0; }
  .therapy-pulse-dot, .therapy-pulse-ring { animation: none; opacity: 1; }
  .therapy-photo { transition: none; }
  .therapy-card:hover .therapy-photo { transform: scale(1.04); }
  .therapy-card--fes:hover .therapy-photo { transform: scale(1); }
  .btn, .therapy-card, .salon-card:hover .salon-portrait, .showcase-arrow:hover { transition: none; transform: none; }
  .cores-bg-layer { transition: none; transform: none; }
  .roster-card { transition: none; transform: none; }
  .roster-photo img { transition: none; }
  .sci-card a:hover .sci-portrait { animation: none; transform: none; }
  .sci-card a:hover .sci-portrait::before { animation: none; opacity: 0; }
  .sci-card a:hover .sci-portrait img { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6, 11, 18, 0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.1rem; padding: 0.8rem 1.4rem 1.2rem; }
  .site-nav a { padding: 0.85rem 0.9rem; font-size: 1rem; }
  .site-nav a::after { display: none; }
  .btn-join { margin: 0.7rem 0 0; width: 100%; justify-content: center; }

  .orbital { grid-template-columns: 1fr; gap: 2.5rem; }
  .orbital-stage { max-width: 360px; --orbit-radius: 148px; }
}

@media (max-width: 820px) {
  .showcase-slide { grid-template-columns: 1fr; gap: 1.4rem; align-items: start; }
  .showcase-slide img { max-width: 100%; aspect-ratio: 16 / 10; }
  .roster-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .news-entry a {
    grid-template-columns: 1fr;
    grid-template-areas: "tag" "title" "blurb";
  }
  .news-arrow { display: none; }
  .concierge-row {
    grid-template-columns: 1fr; gap: 0.5rem;
  }
  .concierge-action { justify-self: start; }
  .ledger-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

@media (max-width: 640px) {
  .hero { min-height: 88vh; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .orbit-dot { width: 52px; height: 52px; margin: -26px 0 0 -26px; font-size: 1.1rem; }
  .orbital-stage { max-width: 300px; --orbit-radius: 120px; }
  .tilt-inner { padding: 2rem 1.8rem 2.2rem; }
  .roster-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .footer-brand { flex-direction: column; }
  .join-dialog-body { padding: 2rem 1.6rem; }
}
