/* ==========================================================================
   Memora Editorial Website Prototype - Lossless Walkthrough Edition
   Palette: Native In-App 'Editorial Night' & 'Editorial Paper' Tokens
   ========================================================================== */

:root {
  /* Editorial Night (Native App Palette) */
  --ed-bg: #1e1e1e;
  --ed-bg-deep: #171717;
  --ed-bg-surface: #262521;
  --ed-bg-surface-elevated: #2b2a26;
  --ed-bg-card: #23221f;
  --ed-border: #3e3d37;
  --ed-border-strong: #545149;
  --ed-border-subtle: rgba(255, 255, 255, 0.07);
  --ed-heading: #ecebe4;
  --ed-text: #deddd5;
  --ed-muted: #9e9c93;
  --ed-accent: #d97757;          /* Signature Terracotta */
  --ed-accent-hover: #e2886a;
  --ed-accent-2: #e7a74f;        /* Golden Amber */
  --ed-accent-glow: rgba(217, 119, 87, 0.32);
  --ed-amber-glow: rgba(231, 167, 79, 0.18);
  --ed-radius: 14px;
  --ed-radius-sm: 8px;
  --ed-radius-lg: 20px;

  --font-serif: 'Newsreader', Garamond, Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
}

[data-theme="editorial-paper"] {
  /* Warm Editorial Paper Mode */
  --ed-bg: #f8f6f0;
  --ed-bg-deep: #ede9df;
  --ed-bg-surface: #ffffff;
  --ed-bg-surface-elevated: #faf8f5;
  --ed-bg-card: #fdfcf9;
  --ed-border: #e2ded4;
  --ed-border-strong: #cac4b5;
  --ed-border-subtle: rgba(0, 0, 0, 0.05);
  --ed-heading: #1e1d1a;
  --ed-text: #3c3a35;
  --ed-muted: #747167;
  --ed-accent: #c45d3c;
  --ed-accent-hover: #b05030;
  --ed-accent-2: #c68936;
  --ed-accent-glow: rgba(196, 93, 60, 0.15);
  --ed-amber-glow: rgba(198, 137, 54, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ed-bg);
  color: var(--ed-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --------------------------------------------------------------------------
   Top Reading Progress & Header Masthead
   -------------------------------------------------------------------------- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--ed-accent), var(--ed-accent-2));
  z-index: 10001;
  transition: width 0.1s linear;
}

.site-masthead-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ed-border);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="editorial-paper"] .site-masthead-bar {
  background: rgba(238, 234, 224, 0.95);
  border-bottom: 1px solid var(--ed-border-strong);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.masthead-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ed-heading);
}

.brand-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ed-accent), var(--ed-accent-2));
  box-shadow: 0 0 12px var(--ed-accent);
}

.brand-mark-svg {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: -2px;
  filter: drop-shadow(0 2px 8px var(--ed-accent-glow));
  transition: transform 0.2s ease;
}

.masthead-brand:hover .brand-mark-svg {
  transform: scale(1.08);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ed-heading);
  display: inline-flex;
  align-items: center;
}

.brand-edition-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ed-accent);
  background: rgba(217, 119, 87, 0.12);
  border: 1px solid rgba(217, 119, 87, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .masthead-nav {
    display: none;
  }
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ed-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--ed-heading);
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-pill-btn, .launch-pill-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.theme-pill-btn {
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  color: var(--ed-heading);
}

.theme-pill-btn:hover {
  border-color: var(--ed-border-strong);
  background: var(--ed-bg-surface-elevated);
}

.launch-pill-btn {
  background: var(--ed-accent);
  border: 1px solid var(--ed-accent);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(217, 119, 87, 0.35);
}

.launch-pill-btn:hover {
  background: var(--ed-accent-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Ambient Halo Glow Background (App Native Feature)
   -------------------------------------------------------------------------- */
.editorial-ambient-halo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 96vw);
  height: 620px;
  background: radial-gradient(ellipse 70% 55% at 50% 16%, var(--ed-accent-glow) 0%, var(--ed-amber-glow) 42%, transparent 75%);
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.editorial-hero-container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 100px auto 50px;
  padding: 0 24px;
  text-align: center;
}

.editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-accent-2);
  background: rgba(231, 167, 79, 0.1);
  border: 1px solid rgba(231, 167, 79, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.editorial-kicker .kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ed-accent);
}

.editorial-hero-brand.brand-title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ed-heading);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  transform-style: preserve-3d;
  text-shadow: 0 8px 38px rgba(0, 0, 0, 0.45);
}

[data-theme="editorial-paper"] .editorial-hero-brand.brand-title {
  text-shadow: none;
}

.brand-hero-word {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  overflow: visible;
  transform-style: preserve-3d;
}

/* 3D Initial Hero "M" - Diamond Monogram with subtle scale & soft dimensional settle */
.brand-hero-m {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 55%;
  animation: brand-hero-m-dock 950ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, filter, opacity;
  color: var(--ed-heading);
  line-height: 1;
  vertical-align: baseline;
  margin-right: 0.02em;
}

.brand-hero-m-svg {
  display: block;
  height: 0.88em;
  width: 1.05em;
  flex: 0 0 auto;
  overflow: visible;
  transform: translateY(-0.02em);
}

@keyframes brand-hero-m-dock {
  0% {
    opacity: 0;
    transform: perspective(1200px) translate3d(0, -6px, 40px) scale(1.35);
    filter:
      blur(6px)
      drop-shadow(0 8px 24px var(--ed-accent-glow))
      drop-shadow(0 0 32px var(--ed-amber-glow));
  }
  40% {
    opacity: 1;
    filter:
      blur(0)
      drop-shadow(0 4px 18px var(--ed-accent-glow))
      drop-shadow(0 0 24px var(--ed-amber-glow));
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 2px 14px var(--ed-accent-glow));
  }
}

/* Remaining letters "emoraful" slide & reveal as M lands */
.brand-hero-rest {
  display: inline-flex;
  align-items: baseline;
  opacity: 0;
  transform: translateX(12px);
  animation: brand-hero-rest-reveal 400ms cubic-bezier(0.16, 1, 0.3, 1) 250ms forwards;
  color: var(--ed-heading);
  will-change: transform, opacity, filter;
}

@keyframes brand-hero-rest-reveal {
  0% {
    opacity: 0;
    transform: translateX(12px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.letter-o-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inner-dot {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateY(-50%);
  width: clamp(8px, 1.2vw, 14px);
  height: clamp(8px, 1.2vw, 14px);
  background: var(--ed-accent);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--ed-accent-glow), 0 0 8px var(--ed-accent);
  pointer-events: none;
  animation: inner-dot-pulse 3s ease-in-out infinite alternate;
}

@keyframes inner-dot-pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; box-shadow: 0 0 24px var(--ed-accent), 0 0 12px var(--ed-accent-2); }
}

.editorial-hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--ed-heading);
  letter-spacing: -0.01em;
  margin-top: 2px;
  margin-bottom: 28px;
  line-height: 1.3;
  opacity: 0;
  animation: editorial-subheading-in 400ms cubic-bezier(0.16, 1, 0.3, 1) 400ms forwards;
}

.editorial-hero-subtitle em {
  font-style: italic;
  color: var(--ed-accent-2);
}

@keyframes editorial-subheading-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 0.96;
    transform: translateY(0);
  }
}

.editorial-lead-deck {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ed-muted);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 26px;
}

.editorial-hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.ed-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ed-btn-primary {
  background: var(--ed-accent);
  color: #ffffff;
  border: 1px solid var(--ed-accent);
  box-shadow: 0 4px 18px rgba(217, 119, 87, 0.38);
}

.ed-btn-primary:hover {
  background: var(--ed-accent-hover);
  transform: translateY(-2px);
}

.ed-btn-ghost {
  background: var(--ed-bg-surface);
  color: var(--ed-heading);
  border: 1px solid var(--ed-border);
}

.ed-btn-ghost:hover {
  border-color: var(--ed-border-strong);
  background: var(--ed-bg-surface-elevated);
}


/* --------------------------------------------------------------------------
   Walkthrough Transport Bar & Step Controls
   -------------------------------------------------------------------------- */
.living-workspace-section {
  position: relative;
  z-index: 2;
  max-width: 1088px;
  margin: 0 auto 100px;
  padding: 0 24px;
}

.walkthrough-transport-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border-strong);
  border-bottom: none;
  border-radius: var(--ed-radius-lg) var(--ed-radius-lg) 0 0;
  padding: 10px 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.transport-btn {
  background: var(--ed-bg);
  border: 1px solid var(--ed-border);
  color: var(--ed-heading);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.transport-btn:hover {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
}

.transport-view-controls {
  margin-left: auto;
}

.transport-btn.is-view-active {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
  background: var(--ed-bg-surface-elevated);
}

.tour-progress {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 22px;
  padding: 0 12px 10px;
}

.tour-progress-track {
  position: absolute;
  top: auto;
  right: 36px;
  bottom: 2px;
  left: 36px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ed-border-strong);
}

.tour-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ed-accent), var(--ed-accent-2));
  transition: width 0.3s ease;
}

.tour-progress-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.tour-step-pill {
  background: transparent;
  border: none;
  color: var(--ed-muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  min-width: 0;
  padding: 3px 4px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tour-step-pill:hover {
  color: var(--ed-heading);
}

.tour-step-pill.is-active {
  color: #ffffff;
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  background: var(--ed-bg-surface);
  border: 2px solid var(--ed-border-strong);
  color: var(--ed-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-step-pill.is-active .step-badge {
  border-color: var(--ed-accent);
  background: var(--ed-accent);
  color: #ffffff;
  box-shadow: 0 0 0 3px var(--ed-bg-surface);
}

.tour-step-pill > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .walkthrough-transport-bar {
    justify-content: flex-start;
  }

  .transport-controls {
    position: static;
  }

  .tour-progress {
    flex: 1 1 100%;
    order: 3;
    overflow-x: auto;
    margin: 8px 0 0;
    padding: 0 0 10px;
  }

  .tour-progress-steps {
    min-width: 560px;
  }
}

/* --------------------------------------------------------------------------
   Walkthrough Shell
   -------------------------------------------------------------------------- */
.workspace-embed-shell {
  background: var(--ed-bg-card);
  border: 1px solid var(--ed-border-strong);
  border-radius: 0 0 var(--ed-radius-lg) var(--ed-radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--ed-border);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

/* --------------------------------------------------------------------------
   Embed Viewport & Virtual Cursor
   -------------------------------------------------------------------------- */
.embed-viewport-container {
  position: relative;
  width: 100%;
  height: 595px;
  background: var(--ed-bg);
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  .embed-viewport-container {
    height: min(78vh, 520px);
    min-height: 360px;
  }
}

.embed-viewport-container.is-tablet {
  max-width: 900px;
  margin: 0 auto;
}

.embed-viewport-container.is-mobile {
  max-width: 420px;
  margin: 0 auto;
}

.demo-start-gate {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(9, 12, 18, 0.68);
  -webkit-backdrop-filter: blur(8px) saturate(0.86);
  backdrop-filter: blur(8px) saturate(0.86);
  box-shadow: inset 0 0 90px rgba(9, 12, 18, 0.2);
  transition: opacity 0.76s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.76s;
}

.demo-start-copy {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(620px, calc(100% - 48px));
  text-align: center;
}

.demo-start-poster {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  width: min(460px, 100%);
  min-height: 112px;
  padding: 24px 30px;
  border: 1px solid color-mix(in srgb, var(--ed-accent) 36%, transparent);
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ed-accent) 15%, var(--ed-bg-deep)), var(--ed-bg-deep));
  color: var(--ed-text);
  text-align: left;
}

.demo-start-poster-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ed-accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.demo-start-poster-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.demo-start-kicker {
  margin: 4px 0 0;
  color: var(--ed-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-start-title {
  margin: 0;
  color: var(--ed-text);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.demo-start-description {
  max-width: 520px;
  margin: 0;
  color: var(--ed-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.demo-start-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.demo-start-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.demo-start-btn {
  appearance: none;
  border: 1px solid var(--ed-accent);
  border-radius: 999px;
  padding: 24px 48px;
  background: var(--ed-accent);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(217, 119, 87, 0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.demo-start-btn:hover,
.demo-start-btn:focus-visible {
  background: var(--ed-accent-hover);
  box-shadow: 0 10px 28px rgba(217, 119, 87, 0.38);
  transform: translateY(-1px);
}

.demo-start-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.demo-open-app-link {
  color: var(--ed-accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-start-gate.is-error .demo-start-poster {
  border-color: color-mix(in srgb, #d97757 62%, transparent);
}

/* --------------------------------------------------------------------------
   Walkthrough Intro: OS PDF handoff -> Memora Browser Expansion
   -------------------------------------------------------------------------- */
.demo-import-intro {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: var(--ed-bg-deep);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.demo-import-intro.is-visible {
  visibility: visible;
  opacity: 1;
}

.demo-import-intro.is-prestart {
  opacity: 0.76;
  filter: blur(2px) saturate(0.9);
  transform: scale(1.012);
  transition: none;
}

.demo-import-intro.is-starting {
  opacity: 1;
  filter: blur(0) saturate(1);
  transform: scale(1);
  transition:
    opacity 0.92s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.92s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.import-intro-noise {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  background:
    radial-gradient(circle at 74% 28%, var(--ed-accent-glow), transparent 32%),
    radial-gradient(circle at 18% 78%, var(--ed-amber-glow), transparent 34%),
    linear-gradient(135deg, var(--ed-bg-surface) 0%, var(--ed-bg-deep) 100%);
}

.import-intro-scene {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.import-file-window,
.import-browser-window {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--ed-border-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--ed-border-subtle);
}

.import-file-window {
  top: 23%;
  left: 7%;
  z-index: 2;
  width: min(320px, 31vw);
  min-width: 250px;
  border-radius: 12px;
  background: var(--ed-bg-surface);
  color: var(--ed-text);
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.import-browser-window {
  top: 51%;
  left: calc(100% - min(865px, 72vw));
  z-index: 1;
  width: min(865px, 72vw);
  height: 584px;
  border-radius: 14px;
  background: var(--ed-bg-surface);
  color: var(--ed-heading);
  transform: translateY(-50%);
  transition:
    top 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.72s ease,
    border-color 0.72s ease,
    box-shadow 0.72s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.import-window-titlebar {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: var(--ed-muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
}

.import-window-titlebar {
  justify-content: space-between;
  padding: 0 12px;
  background: var(--ed-bg-surface-elevated);
  border-bottom: 1px solid var(--ed-border-subtle);
}

.import-window-controls {
  display: flex;
  gap: 5px;
}

.import-window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.import-window-dot.is-close { background: var(--ed-accent); }
.import-window-dot.is-min { background: var(--ed-accent-2); }
.import-window-dot.is-max { background: var(--ed-muted); }
.import-window-menu {
  color: var(--ed-muted);
  letter-spacing: 2px;
}

.import-file-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  background: var(--ed-bg-surface);
  color: var(--ed-muted);
  border-bottom: 1px solid var(--ed-border-subtle);
}

.import-toolbar-icon {
  color: var(--ed-text);
  font-size: 16px;
  line-height: 1;
}

.import-address {
  flex: 1;
  padding: 5px 9px;
  overflow: hidden;
  border: 1px solid var(--ed-border);
  border-radius: 5px;
  background: var(--ed-bg-deep);
  color: var(--ed-text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.import-file-list-label {
  grid-column: 1 / -1;
  margin-bottom: 9px;
  color: var(--ed-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.import-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
}

.import-file-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 10px;
  min-width: 0;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: var(--ed-bg-surface);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.import-file-tile.is-target {
  border-color: var(--ed-accent);
  background: var(--ed-accent-glow);
  box-shadow: 0 0 0 2px var(--ed-amber-glow);
}

.import-file-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 31px;
  height: 36px;
  border-radius: 4px;
  background: var(--ed-bg-surface-elevated);
  color: var(--ed-muted);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.import-file-type.is-pdf {
  background: linear-gradient(145deg, var(--ed-accent-hover), var(--ed-accent));
  color: var(--ed-bg-deep);
}

.import-file-type.is-slides {
  background: var(--ed-accent-2);
  color: var(--ed-bg-deep);
}

.import-file-type.is-doc {
  border: 1px solid var(--ed-border-strong);
  color: var(--ed-heading);
}

.import-file-type.is-sheet {
  background: var(--ed-bg-card);
  border: 1px solid var(--ed-accent-2);
  color: var(--ed-accent-2);
}

.import-pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 31px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--ed-accent-hover), var(--ed-accent));
  color: var(--ed-bg-deep);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 5px 12px var(--ed-accent-glow);
}

.import-file-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.import-file-copy strong {
  overflow: hidden;
  color: var(--ed-heading);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.import-file-copy small {
  color: var(--ed-muted);
  font-size: 9px;
}

.import-browser-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 15%, var(--ed-accent-glow), transparent 48%),
    var(--ed-bg-deep);
}

.import-browser-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--ed-accent-hover);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.import-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--ed-accent);
  border-radius: 50%;
  color: var(--ed-accent-hover);
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0;
}

.import-mini-app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ed-accent-glow);
  border-radius: 8px;
  background: var(--ed-bg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.import-mini-app.is-imported {
  border-color: var(--ed-accent-2);
  box-shadow: 0 0 0 4px var(--ed-amber-glow), 0 18px 34px rgba(0, 0, 0, 0.28);
}

.import-mini-browser-body {
  display: block;
  padding: 10px;
  overflow: hidden;
}

.app-live-iframe.is-import-preview {
  display: block;
  width: 213%;
  height: 213%;
  border: 0;
  background: var(--ed-bg);
  transform: scale(0.47);
  transform-origin: top left;
}

.demo-import-intro.is-expanding .app-live-iframe.is-import-preview {
  width: 100%;
  height: 100%;
  transform: none;
}

.import-browser-footer {
  margin-top: 17px;
  color: var(--ed-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.import-held-file {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 188px;
  padding: 7px 9px;
  border: 1px solid var(--ed-accent);
  border-radius: 8px;
  background: var(--ed-bg-surface-elevated);
  color: var(--ed-heading);
  font-size: 9px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 18px var(--ed-accent-glow);
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, 3px) rotate(var(--held-rotate, -4deg)) scale(0.76);
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: left, top, transform;
}

.import-held-file .import-pdf-icon {
  width: 22px;
  height: 26px;
  font-size: 6px;
}

.import-held-file.is-visible {
  opacity: 1;
  transform: translate(4px, 3px) rotate(var(--held-rotate, -4deg)) scale(1);
}

.import-held-file.is-attached {
  opacity: 0;
  transform: translate(4px, 3px) rotate(2deg) scale(0.62);
}

.import-intro-caption {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 6;
  color: var(--ed-heading);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: normal;
  padding: 4px 10px;
  border: 1px solid var(--ed-accent);
  border-radius: 12px;
  background: rgba(24, 24, 24, 0.94);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transform: translateX(-50%);
  transition: opacity 0.25s ease;
}

.demo-completion-modal { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(9, 12, 18, .68); backdrop-filter: blur(8px); }
.demo-completion-modal[hidden] { display: none; }
.demo-completion-card { width: min(520px, 100%); padding: 32px; border: 1px solid var(--ed-accent); border-radius: 24px; background: var(--ed-bg-surface); box-shadow: 0 24px 70px rgba(0,0,0,.42); animation: demo-completion-enter .35s ease both; }
.demo-completion-badge { color: var(--ed-accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.demo-completion-card h2 { margin: 10px 0 8px; color: var(--ed-heading); }
.demo-completion-card p { margin: 0; color: var(--ed-muted); line-height: 1.6; }
.demo-completion-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.demo-completion-actions button, .demo-completion-actions .launch-pill-btn { cursor: pointer; border-radius: 999px; padding: 10px 16px; font: inherit; }
.demo-completion-actions .launch-pill-btn { color: #fff; background: var(--ed-accent); text-decoration: none; }
.demo-completion-actions button { color: var(--ed-heading); border: 1px solid var(--ed-border-strong); background: transparent; }
@keyframes demo-completion-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.demo-import-intro.is-expanding .import-file-window,
.demo-import-intro.is-expanding .import-intro-caption {
  opacity: 0;
  transform: translate(-22px, 8px);
}

.demo-import-intro.is-expanding .import-browser-window {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.demo-import-intro.is-expanding .import-browser-body {
  height: 100%;
}

.demo-import-intro.is-expanding .import-mini-browser-body {
  padding: 0;
}

.demo-import-intro.is-expanding .import-mini-app {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.demo-import-intro.is-expanding .import-browser-footer {
  display: none;
}

/* The expanded import shell remains the live workspace for Step 1. Keeping
   the iframe in this container removes the miniature-to-full-size reparenting
   flash and preserves the same coordinate system for the virtual cursor. */
.demo-import-intro.is-live-workspace {
  z-index: 1;
  pointer-events: auto;
  background: var(--ed-bg);
}

.demo-import-intro.is-live-workspace .import-intro-noise,
.demo-import-intro.is-live-workspace .import-file-window,
.demo-import-intro.is-live-workspace .import-held-file,
.demo-import-intro.is-live-workspace .import-intro-caption,
.demo-import-intro.is-live-workspace .import-browser-footer {
  display: none;
}

.demo-import-intro.is-live-workspace .import-browser-window,
.demo-import-intro.is-live-workspace .import-browser-body {
  background: var(--ed-bg);
}

.demo-import-intro.is-live-workspace .import-mini-app {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.workspace-embed-shell.is-import-intro .app-live-iframe {
  opacity: 0;
}

.workspace-embed-shell.is-import-intro .app-live-iframe.is-import-preview {
  opacity: 1;
}

.workspace-embed-shell.is-import-ready .app-live-iframe {
  opacity: 1;
}

.app-live-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--ed-bg);
  display: block;
  z-index: 1;
  transition: opacity 0.35s ease;
}

.app-live-iframe.is-auto-locked {
  pointer-events: none;
  cursor: wait;
}

/* The Animated Virtual Cursor Entity */
.virtual-cursor-element {
  position: absolute;
  top: 100px;
  left: 100px;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-2px, -2px);
  transition: transform 0.08s ease-out;
}

.cursor-svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6));
  transition: transform 0.15s ease;
}

.virtual-cursor-element.is-clicking .cursor-svg {
  transform: scale(0.85);
}

.virtual-cursor-element.is-holding-file .cursor-svg {
  filter: drop-shadow(0 3px 7px var(--ed-accent));
}

@media (max-width: 800px) {
  .import-file-window {
    left: 4%;
    width: min(290px, 34vw);
  }

  .import-browser-window {
    left: calc(100% - min(816px, 88vw));
    width: min(816px, 88vw);
  }
}

@media (max-width: 560px) {
  .import-file-window {
    top: 12%;
    left: 7%;
    width: 240px;
  }

  .import-browser-window {
    top: 58%;
    left: 50%;
    width: 86%;
    height: 438px;
    transform: translate(-50%, -50%);
  }

  .import-intro-caption {
    width: 90%;
    bottom: 4%;
    text-align: center;
  }
}

.cursor-click-ripple {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(217, 119, 87, 0.45);
  border: 2px solid var(--ed-accent);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.virtual-cursor-element.is-clicking .cursor-click-ripple {
  animation: ripple-out 0.4s ease-out forwards;
}

@keyframes ripple-out {
  0% {
    width: 0;
    height: 0;
    opacity: 0.9;
  }
  100% {
    width: 44px;
    height: 44px;
    opacity: 0;
  }
}

.cursor-tooltip {
  position: absolute;
  left: 26px;
  top: 14px;
  background: rgba(24, 24, 24, 0.94);
  border: 1px solid var(--ed-accent);
  color: var(--ed-heading);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
}

.cursor-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Lossless Stage 1: Native Welcome Screen Replica
   -------------------------------------------------------------------------- */
.walkthrough-canvas-surface {
  width: 100%;
  height: 100%;
  position: relative;
}

.wt-stage {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}

.wt-stage.is-visible {
  display: block;
  opacity: 1;
}

#walkthrough-welcome-stage {
  background-color: var(--ed-bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 16%, var(--ed-accent-glow) 0%, var(--ed-amber-glow) 40%, transparent 75%),
    radial-gradient(ellipse 85% 65% at 50% 50%, var(--ed-bg-card) 0%, var(--ed-bg) 100%);
  padding: 40px 30px;
}

.wt-welcome-container {
  max-width: 1060px;
  margin: 0 auto;
}

.wt-welcome-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.wt-welcome-title {
  font-family: var(--font-serif);
  font-size: 44px;
  color: var(--ed-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.wt-welcome-calendar-btn {
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  color: var(--ed-accent-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.wt-welcome-content-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .wt-welcome-content-split {
    grid-template-columns: 1fr;
  }
}

.wt-welcome-actions-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wt-session-action-card {
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  color: var(--ed-text);
  width: 100%;
}

.wt-session-action-card:hover, .wt-session-action-card.is-hovered {
  border-color: var(--ed-accent);
  background: var(--ed-bg-surface-elevated);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.wt-session-action-card.is-primary-action {
  border-color: rgba(217, 119, 87, 0.4);
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.12), var(--ed-bg-surface));
}

.action-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ed-bg);
  border: 1px solid var(--ed-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-accent);
}

.action-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ed-heading);
  margin-bottom: 2px;
}

.action-card-sub {
  font-size: 12px;
  color: var(--ed-muted);
}

.wt-welcome-tip {
  font-size: 12px;
  color: var(--ed-muted);
  margin-top: 10px;
  font-style: italic;
}

/* Welcome Preview Card on the Right */
.wt-preview-card {
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 24px;
  position: relative;
}

.wt-preview-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ed-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.wt-preview-question {
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: var(--ed-heading);
  line-height: 1.5;
  margin-bottom: 16px;
}

.wt-preview-source-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ed-accent-2);
  margin-bottom: 24px;
}

.wt-preview-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--ed-bg);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.wt-stat-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ed-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.wt-stat-val {
  font-weight: 700;
  color: var(--ed-accent-2);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Lossless Stage 2: Native Trio Workspace Replica
   -------------------------------------------------------------------------- */
#walkthrough-workspace-stage {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wt-controls-bar {
  height: 48px;
  background: var(--ed-bg-surface);
  border-bottom: 1px solid var(--ed-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.wt-controls-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wt-ctrl-btn {
  background: var(--ed-bg);
  border: 1px solid var(--ed-border);
  color: var(--ed-text);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wt-ctrl-btn.wt-ctrl-primary {
  background: var(--ed-accent);
  color: #fff;
  border-color: var(--ed-accent);
}

.wt-ctrl-btn.wt-ctrl-active {
  border-color: var(--ed-accent-2);
  color: var(--ed-heading);
}

.wt-stats-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--ed-bg);
  border: 1px solid var(--ed-border);
  padding: 4px 12px;
  border-radius: 14px;
  color: var(--ed-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wt-sep { color: var(--ed-border-strong); }
.wt-highlight-stat { color: var(--ed-accent-2); font-weight: 700; }

/* Trio Pane Grid */
.wt-trio-workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr 1fr;
  flex: 1;
  overflow: hidden;
  background: var(--ed-bg);
}

@media (max-width: 960px) {
  .wt-trio-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.wt-pane {
  border-right: 1px solid var(--ed-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.wt-pane:last-child {
  border-right: none;
}

.wt-pane-header {
  height: 40px;
  background: var(--ed-bg-surface);
  border-bottom: 1px solid var(--ed-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ed-heading);
  flex-shrink: 0;
}

.wt-pane-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wt-page-badge, .wt-yield-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--ed-bg);
  border: 1px solid var(--ed-border);
  padding: 2px 7px;
  border-radius: 8px;
  color: var(--ed-accent-2);
}

.wt-status-live {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #5bb974;
}

/* PDF Slide Content */
.wt-pdf-slide-canvas {
  background: var(--ed-bg-surface);
  margin: 14px;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.slide-course {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ed-muted);
  margin-bottom: 4px;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ed-heading);
  margin-bottom: 12px;
  font-weight: 600;
}

.slide-text {
  font-size: 12.5px;
  color: var(--ed-text);
  line-height: 1.55;
  margin-bottom: 12px;
}

.wt-slide-callout-highlight {
  background: rgba(231, 167, 79, 0.1);
  border: 1px solid rgba(231, 167, 79, 0.35);
  border-left: 4px solid var(--ed-accent-2);
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.wt-slide-callout-highlight.is-illuminated {
  background: rgba(231, 167, 79, 0.22);
  border-color: var(--ed-accent-2);
  box-shadow: 0 0 16px rgba(231, 167, 79, 0.3);
}

.highlight-pin {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ed-accent-2);
  margin-bottom: 4px;
}

.highlight-text {
  font-size: 12px;
  color: var(--ed-heading);
  line-height: 1.5;
}

.wt-slide-micrograph-mock {
  background: var(--ed-bg);
  border: 1px dashed var(--ed-border-strong);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ed-muted);
  margin-top: auto;
}

/* Quiz Card Pane */
.wt-quiz-card-surface {
  background: var(--ed-bg-surface);
  margin: 14px;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wt-card-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ed-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wt-card-question-text {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ed-heading);
  margin-bottom: 16px;
  font-weight: 400;
}

.wt-options-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.wt-quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ed-bg);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  font-size: 13px;
  color: var(--ed-text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.wt-quiz-option:hover, .wt-quiz-option.is-hovered {
  border-color: var(--ed-border-strong);
  background: var(--ed-bg-surface-elevated);
}

.wt-quiz-option.is-selected {
  border-color: var(--ed-accent);
  background: rgba(217, 119, 87, 0.15);
  color: var(--ed-heading);
}

.wt-quiz-option.is-correct {
  border-color: #5bb974 !important;
  background: rgba(91, 185, 116, 0.18) !important;
  color: #8ce3a3 !important;
  font-weight: 600;
}

.opt-key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-muted);
}

.wt-quiz-option.is-selected .opt-key {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
}

.wt-quiz-option.is-correct .opt-key {
  border-color: #5bb974;
  color: #5bb974;
  background: rgba(91, 185, 116, 0.2);
}

.wt-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--ed-border);
}

.wt-shortcut-hints {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ed-muted);
}

.wt-shortcut-hints kbd {
  background: var(--ed-bg);
  border: 1px solid var(--ed-border);
  padding: 1px 5px;
  border-radius: 4px;
}

.wt-check-ans-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  background: var(--ed-accent);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.wt-check-ans-btn:hover, .wt-check-ans-btn.is-hovered {
  background: var(--ed-accent-hover);
}

/* Socratic AI Pane */
.wt-ai-chat-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wt-ai-message-bubble {
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 14px;
}

.wt-ai-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ed-accent-2);
  margin-bottom: 8px;
}

.wt-ai-text-stream {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ed-text);
}

.wt-ai-citation-box {
  background: rgba(217, 119, 87, 0.1);
  border-left: 3px solid var(--ed-accent);
  border-radius: 4px;
  padding: 10px 12px;
}

.citation-head {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ed-accent);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.citation-ref {
  font-size: 11.5px;
  color: var(--ed-heading);
}

.wt-ai-input-dock {
  padding: 10px 14px;
  background: var(--ed-bg-surface);
  border-top: 1px solid var(--ed-border);
  display: flex;
  gap: 8px;
}

.wt-ai-input {
  flex: 1;
  background: var(--ed-bg);
  border: 1px solid var(--ed-border);
  border-radius: 12px;
  padding: 6px 12px;
  color: var(--ed-heading);
  font-size: 12px;
}

.wt-ai-send-btn {
  background: var(--ed-accent);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   How It Works (Floating Neural Network / Hub-and-Spoke Study Architecture)
   -------------------------------------------------------------------------- */
.how-it-works-section {
  max-width: 1180px;
  margin: 0 auto 100px;
  padding: 24px 20px 0;
  text-align: center;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  color: var(--ed-heading);
  margin-bottom: 14px;
  font-weight: 400;
  line-height: 1.22;
}

.how-it-works-section .section-title {
  margin-bottom: 48px;
}

/* Section Heading: Scroll-Dependent Dynamic Word Ignition */
.scroll-reveal-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 3.5rem);
  color: var(--ed-heading);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.28em;
  user-select: none;
}

.scroll-word {
  display: inline-block;
  position: relative;
  opacity: var(--word-opacity, 0.24);
  transform: translateY(var(--word-y, 8px));
  transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  will-change: opacity, transform;
}

.scroll-word-inner {
  display: inline-block;
  color: var(--ed-heading);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.scroll-word-accent .scroll-word-inner {
  color: var(--ed-accent-2);
  font-style: italic;
}

.scroll-word.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-word-accent.is-revealed .scroll-word-inner {
  color: var(--ed-accent-2);
  text-shadow: 0 0 18px rgba(231, 167, 79, 0.42);
}

[data-theme="editorial-paper"] .scroll-word-accent.is-revealed .scroll-word-inner {
  color: var(--ed-accent);
  text-shadow: 0 0 14px rgba(196, 93, 60, 0.25);
}

/* Stage Wrapper Container */
.neural-stage-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-lg);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.45);
}

.neural-stage-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(217, 119, 87, 0.09) 1px, transparent 1px),
    radial-gradient(rgba(231, 167, 79, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  pointer-events: none;
  opacity: 0.75;
}

/* Central Ingestion Hub */
.neural-nucleus-core {
  position: relative;
  z-index: 4;
  flex: 0 0 210px;
  display: flex;
  justify-content: center;
  animation: neuralNucleusFloat 4.8s ease-in-out infinite alternate;
}

@keyframes neuralNucleusFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-7px); }
}

.nucleus-card {
  width: 100%;
  background: var(--ed-bg-surface-elevated);
  border: 1.5px solid var(--ed-border-strong);
  border-radius: var(--ed-radius);
  padding: 26px 20px 22px;
  text-align: center;
  position: relative;
  box-shadow:
    0 16px 36px -10px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(217, 119, 87, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nucleus-card:hover {
  border-color: var(--ed-accent);
  box-shadow:
    0 20px 42px -8px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(217, 119, 87, 0.25);
}

.nucleus-aura-ring {
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--ed-radius) + 8px);
  background: radial-gradient(circle, rgba(217, 119, 87, 0.22) 0%, rgba(231, 167, 79, 0.08) 50%, transparent 75%);
  pointer-events: none;
  animation: auraPulse 3.5s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes auraPulse {
  0% { opacity: 0.4; transform: scale(0.96); }
  100% { opacity: 0.9; transform: scale(1.05); }
}

/* Left & Right Synaptic Axon Emitter Ports */
.nucleus-port {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ed-bg-surface);
  border: 2px solid var(--ed-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.nucleus-port.port-left {
  left: -9px;
}

.nucleus-port.port-right {
  right: -9px;
}

.nucleus-port-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ed-accent-2);
}

.nucleus-port-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ed-accent);
  animation: portPulse 2s ease-out infinite;
}

@keyframes portPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2); opacity: 0; }
}

/* Visual Folio / Slide Deck Stack */
.nucleus-visual-folio {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.folio-back-sheet {
  position: absolute;
  inset: 4px;
  background: rgba(217, 119, 87, 0.12);
  border: 1px dashed rgba(217, 119, 87, 0.4);
  border-radius: 10px;
  transform: rotate(-6deg);
}

.folio-main-sheet {
  position: relative;
  width: 54px;
  height: 54px;
  background: var(--ed-bg-surface);
  border: 1.5px solid var(--ed-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.folio-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ed-accent-2), transparent);
  box-shadow: 0 0 6px var(--ed-accent-2);
  animation: laserScan 2.4s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 4px; opacity: 0.3; }
  100% { top: 48px; opacity: 1; }
}

.folio-icon-svg {
  position: relative;
  z-index: 2;
}

.nucleus-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ed-heading);
  margin-bottom: 0;
  line-height: 1.25;
  white-space: nowrap;
}

/* Synaptic Tentacles SVG Columns */
.neural-tentacles {
  flex: 1;
  align-self: stretch;
  position: relative;
  z-index: 2;
  min-width: 70px;
  margin: 0 -2px;
}

.tentacle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 1. Base Dormant Background Tracks */
.tentacle-base-strand {
  fill: none;
  stroke: rgba(217, 119, 87, 0.18);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  opacity: 0.55;
  transition: opacity 0.4s ease;
}

[data-theme="editorial-paper"] .tentacle-base-strand {
  stroke: rgba(196, 93, 60, 0.22);
}

/* 2. Secondary Delicate Neural Filaments */
.tentacle-filament {
  fill: none;
  stroke: rgba(217, 119, 87, 0.3);
  stroke-width: 1.2;
  stroke-dasharray: 3 6;
  opacity: 0.45;
  transition: opacity 0.5s ease;
  animation: filamentBreathe 4.2s ease-in-out infinite alternate;
}

@keyframes filamentBreathe {
  0% { opacity: 0.3; stroke: rgba(217, 119, 87, 0.2); }
  100% { opacity: 0.7; stroke: rgba(231, 167, 79, 0.42); }
}

/* 3. Main Active Dashed Axon Strands */
.tentacle-strand {
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-dasharray: 6 5;
  opacity: 0.25;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), stroke-width 0.3s ease, filter 0.3s ease;
}

.neural-tentacles-left .tentacle-strand {
  stroke: url(#tentacleGradLeft);
}

.neural-tentacles-right .tentacle-strand {
  stroke: url(#tentacleGradRight);
}

/* When the system goes online */
.neural-stage-wrapper.is-online .tentacle-strand,
.tentacle-strand.is-online {
  opacity: 0.2;
}

/* 4. Traveling Synaptic Energy Beams (Ignition & Steady Heartbeat Packets) */
.tentacle-pulse {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 14 100;
  stroke-dashoffset: 14;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.neural-tentacles-left .tentacle-pulse {
  stroke: url(#pulseGradLeft);
  filter: drop-shadow(0 0 5px var(--ed-accent-2)) drop-shadow(0 0 10px var(--ed-accent));
}

.neural-tentacles-right .tentacle-pulse {
  stroke: url(#pulseGradRight);
  filter: drop-shadow(0 0 5px var(--ed-accent-2)) drop-shadow(0 0 10px var(--ed-accent));
}

/* Base Flow Direction Animations */
@keyframes synapseFlowLeft {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -22; }
}

@keyframes synapseFlowRight {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -22; }
}

@keyframes pulseTravelLeft {
  0% {
    stroke-dashoffset: 14;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -114;
    opacity: 0;
  }
}

@keyframes pulseTravelRight {
  0% {
    stroke-dashoffset: 14;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -114;
    opacity: 0;
  }
}

/* 5. Left & Right Flank Column of Modality Nodes */
.neural-flank {
  flex: 0 0 268px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  align-self: stretch;
  position: relative;
  z-index: 3;
  text-align: left;
}

/* Floating Modality Cards: Dimmed resting state */
.neural-node-card {
  background: var(--ed-bg-surface-elevated);
  border: 1.5px solid rgba(217, 119, 87, 0.18);
  border-radius: var(--ed-radius);
  padding: 16px 20px;
  position: relative;
  box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.3);
  opacity: 0.48;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.node-icon-box {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(217, 119, 87, 0.06);
  border: 1.5px solid rgba(217, 119, 87, 0.18);
  color: rgba(217, 119, 87, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.node-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ed-heading);
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.card-synapse-dot {
  display: none !important;
}

/* ==========================================================================
   8-Step Progressive Synaptic Pipeline (Once pulsed, cards stay turned ON)
   Left 1 (Quizzes) -> Left 2 (Flashcards) -> Left 3 (Closed Occlusion) -> Left 4 (Study Guides)
   -> Right 1 (On-Demand Q&A) -> Right 2 (Guided Tutoring) -> Right 3 (Spaced Repetition) -> Right 4 (Slide Notes)
   ========================================================================== */

/* Step 0: Left Strand 1 & Quizzes (0% - 12.5%) */
@keyframes seqPulse0 {
  0% { stroke-dashoffset: 14; opacity: 0; }
  1.0% { stroke-dashoffset: 8; opacity: 1; }
  6.5% { stroke-dashoffset: -100; opacity: 1; }
  8.0% { stroke-dashoffset: -114; opacity: 0; }
  100% { stroke-dashoffset: -114; opacity: 0; }
}
@keyframes seqStrand0 {
  0% { opacity: 0.18; stroke-width: 2.0; filter: none; }
  1.5% { opacity: 0.95; stroke-width: 2.8; filter: drop-shadow(0 0 4px var(--ed-accent-2)); }
  96% { opacity: 0.85; stroke-width: 2.4; filter: drop-shadow(0 0 3px var(--ed-accent-2)); }
  100% { opacity: 0.18; stroke-width: 2.0; filter: none; }
}
@keyframes seqCard0 {
  0% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  5.0% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  7.5% { opacity: 1; border-color: var(--ed-accent-2); box-shadow: 0 10px 24px -4px rgba(0,0,0,0.42), 0 0 18px rgba(231,167,79,0.38); transform: translateY(-2px) scale(1.02); }
  11.5% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  96% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  100% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
}
@keyframes seqIcon0 {
  0% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  5.0% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  7.5% { background: rgba(231, 167, 79, 0.25); border-color: var(--ed-accent-2); color: var(--ed-accent-2); box-shadow: 0 0 14px rgba(231,167,79,0.5); transform: scale(1.08); }
  11.5% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  96% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  100% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
}

/* Step 1: Left Strand 2 & Flashcards (12.5% - 25.0%) */
@keyframes seqPulse1 {
  0%, 12.5% { stroke-dashoffset: 14; opacity: 0; }
  13.5% { stroke-dashoffset: 8; opacity: 1; }
  19.0% { stroke-dashoffset: -100; opacity: 1; }
  20.5% { stroke-dashoffset: -114; opacity: 0; }
  100% { stroke-dashoffset: -114; opacity: 0; }
}
@keyframes seqStrand1 {
  0%, 12.5% { opacity: 0.18; stroke-width: 2.0; filter: none; }
  14.0% { opacity: 0.95; stroke-width: 2.8; filter: drop-shadow(0 0 4px var(--ed-accent-2)); }
  96% { opacity: 0.85; stroke-width: 2.4; filter: drop-shadow(0 0 3px var(--ed-accent-2)); }
  100% { opacity: 0.18; stroke-width: 2.0; filter: none; }
}
@keyframes seqCard1 {
  0%, 12.5% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  17.5% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  20.0% { opacity: 1; border-color: var(--ed-accent-2); box-shadow: 0 10px 24px -4px rgba(0,0,0,0.42), 0 0 18px rgba(231,167,79,0.38); transform: translateY(-2px) scale(1.02); }
  24.0% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  96% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  100% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
}
@keyframes seqIcon1 {
  0%, 12.5% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  17.5% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  20.0% { background: rgba(231, 167, 79, 0.25); border-color: var(--ed-accent-2); color: var(--ed-accent-2); box-shadow: 0 0 14px rgba(231,167,79,0.5); transform: scale(1.08); }
  24.0% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  96% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  100% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
}

/* Step 2: Left Strand 3 & Closed Occlusion (25.0% - 37.5%) */
@keyframes seqPulse2 {
  0%, 25.0% { stroke-dashoffset: 14; opacity: 0; }
  26.0% { stroke-dashoffset: 8; opacity: 1; }
  31.5% { stroke-dashoffset: -100; opacity: 1; }
  33.0% { stroke-dashoffset: -114; opacity: 0; }
  100% { stroke-dashoffset: -114; opacity: 0; }
}
@keyframes seqStrand2 {
  0%, 25.0% { opacity: 0.18; stroke-width: 2.0; filter: none; }
  26.5% { opacity: 0.95; stroke-width: 2.8; filter: drop-shadow(0 0 4px var(--ed-accent-2)); }
  96% { opacity: 0.85; stroke-width: 2.4; filter: drop-shadow(0 0 3px var(--ed-accent-2)); }
  100% { opacity: 0.18; stroke-width: 2.0; filter: none; }
}
@keyframes seqCard2 {
  0%, 25.0% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  30.0% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  32.5% { opacity: 1; border-color: var(--ed-accent-2); box-shadow: 0 10px 24px -4px rgba(0,0,0,0.42), 0 0 18px rgba(231,167,79,0.38); transform: translateY(-2px) scale(1.02); }
  36.5% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  96% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  100% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
}
@keyframes seqIcon2 {
  0%, 25.0% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  30.0% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  32.5% { background: rgba(231, 167, 79, 0.25); border-color: var(--ed-accent-2); color: var(--ed-accent-2); box-shadow: 0 0 14px rgba(231,167,79,0.5); transform: scale(1.08); }
  36.5% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  96% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  100% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
}

/* Step 3: Left Strand 4 & Study Guides (37.5% - 50.0%) */
@keyframes seqPulse3 {
  0%, 37.5% { stroke-dashoffset: 14; opacity: 0; }
  38.5% { stroke-dashoffset: 8; opacity: 1; }
  44.0% { stroke-dashoffset: -100; opacity: 1; }
  45.5% { stroke-dashoffset: -114; opacity: 0; }
  100% { stroke-dashoffset: -114; opacity: 0; }
}
@keyframes seqStrand3 {
  0%, 37.5% { opacity: 0.18; stroke-width: 2.0; filter: none; }
  39.0% { opacity: 0.95; stroke-width: 2.8; filter: drop-shadow(0 0 4px var(--ed-accent-2)); }
  96% { opacity: 0.85; stroke-width: 2.4; filter: drop-shadow(0 0 3px var(--ed-accent-2)); }
  100% { opacity: 0.18; stroke-width: 2.0; filter: none; }
}
@keyframes seqCard3 {
  0%, 37.5% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  42.5% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  45.0% { opacity: 1; border-color: var(--ed-accent-2); box-shadow: 0 10px 24px -4px rgba(0,0,0,0.42), 0 0 18px rgba(231,167,79,0.38); transform: translateY(-2px) scale(1.02); }
  49.0% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  96% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  100% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
}
@keyframes seqIcon3 {
  0%, 37.5% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  42.5% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  45.0% { background: rgba(231, 167, 79, 0.25); border-color: var(--ed-accent-2); color: var(--ed-accent-2); box-shadow: 0 0 14px rgba(231,167,79,0.5); transform: scale(1.08); }
  49.0% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  96% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  100% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
}

/* Step 4: Right Strand 1 & On-Demand Q&A (50.0% - 62.5%) */
@keyframes seqPulse4 {
  0%, 50.0% { stroke-dashoffset: 14; opacity: 0; }
  51.0% { stroke-dashoffset: 8; opacity: 1; }
  56.5% { stroke-dashoffset: -100; opacity: 1; }
  58.0% { stroke-dashoffset: -114; opacity: 0; }
  100% { stroke-dashoffset: -114; opacity: 0; }
}
@keyframes seqStrand4 {
  0%, 50.0% { opacity: 0.18; stroke-width: 2.0; filter: none; }
  51.5% { opacity: 0.95; stroke-width: 2.8; filter: drop-shadow(0 0 4px var(--ed-accent-2)); }
  96% { opacity: 0.85; stroke-width: 2.4; filter: drop-shadow(0 0 3px var(--ed-accent-2)); }
  100% { opacity: 0.18; stroke-width: 2.0; filter: none; }
}
@keyframes seqCard4 {
  0%, 50.0% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  55.0% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  57.5% { opacity: 1; border-color: var(--ed-accent-2); box-shadow: 0 10px 24px -4px rgba(0,0,0,0.42), 0 0 18px rgba(231,167,79,0.38); transform: translateY(-2px) scale(1.02); }
  61.5% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  96% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  100% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
}
@keyframes seqIcon4 {
  0%, 50.0% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  55.0% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  57.5% { background: rgba(231, 167, 79, 0.25); border-color: var(--ed-accent-2); color: var(--ed-accent-2); box-shadow: 0 0 14px rgba(231,167,79,0.5); transform: scale(1.08); }
  61.5% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  96% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  100% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
}

/* Step 5: Right Strand 2 & Guided Tutoring (62.5% - 75.0%) */
@keyframes seqPulse5 {
  0%, 62.5% { stroke-dashoffset: 14; opacity: 0; }
  63.5% { stroke-dashoffset: 8; opacity: 1; }
  69.0% { stroke-dashoffset: -100; opacity: 1; }
  70.5% { stroke-dashoffset: -114; opacity: 0; }
  100% { stroke-dashoffset: -114; opacity: 0; }
}
@keyframes seqStrand5 {
  0%, 62.5% { opacity: 0.18; stroke-width: 2.0; filter: none; }
  64.0% { opacity: 0.95; stroke-width: 2.8; filter: drop-shadow(0 0 4px var(--ed-accent-2)); }
  96% { opacity: 0.85; stroke-width: 2.4; filter: drop-shadow(0 0 3px var(--ed-accent-2)); }
  100% { opacity: 0.18; stroke-width: 2.0; filter: none; }
}
@keyframes seqCard5 {
  0%, 62.5% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  67.5% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  70.0% { opacity: 1; border-color: var(--ed-accent-2); box-shadow: 0 10px 24px -4px rgba(0,0,0,0.42), 0 0 18px rgba(231,167,79,0.38); transform: translateY(-2px) scale(1.02); }
  74.0% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  96% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  100% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
}
@keyframes seqIcon5 {
  0%, 62.5% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  67.5% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  70.0% { background: rgba(231, 167, 79, 0.25); border-color: var(--ed-accent-2); color: var(--ed-accent-2); box-shadow: 0 0 14px rgba(231,167,79,0.5); transform: scale(1.08); }
  74.0% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  96% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  100% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
}

/* Step 6: Right Strand 3 & Spaced Repetition (75.0% - 87.5%) */
@keyframes seqPulse6 {
  0%, 75.0% { stroke-dashoffset: 14; opacity: 0; }
  76.0% { stroke-dashoffset: 8; opacity: 1; }
  81.5% { stroke-dashoffset: -100; opacity: 1; }
  83.0% { stroke-dashoffset: -114; opacity: 0; }
  100% { stroke-dashoffset: -114; opacity: 0; }
}
@keyframes seqStrand6 {
  0%, 75.0% { opacity: 0.18; stroke-width: 2.0; filter: none; }
  76.5% { opacity: 0.95; stroke-width: 2.8; filter: drop-shadow(0 0 4px var(--ed-accent-2)); }
  96% { opacity: 0.85; stroke-width: 2.4; filter: drop-shadow(0 0 3px var(--ed-accent-2)); }
  100% { opacity: 0.18; stroke-width: 2.0; filter: none; }
}
@keyframes seqCard6 {
  0%, 75.0% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  80.0% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  82.5% { opacity: 1; border-color: var(--ed-accent-2); box-shadow: 0 10px 24px -4px rgba(0,0,0,0.42), 0 0 18px rgba(231,167,79,0.38); transform: translateY(-2px) scale(1.02); }
  86.5% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  96% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  100% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
}
@keyframes seqIcon6 {
  0%, 75.0% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  80.0% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  82.5% { background: rgba(231, 167, 79, 0.25); border-color: var(--ed-accent-2); color: var(--ed-accent-2); box-shadow: 0 0 14px rgba(231,167,79,0.5); transform: scale(1.08); }
  86.5% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  96% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  100% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
}

/* Step 7: Right Strand 4 & Slide Notes (87.5% - 100.0%) */
@keyframes seqPulse7 {
  0%, 87.5% { stroke-dashoffset: 14; opacity: 0; }
  88.5% { stroke-dashoffset: 8; opacity: 1; }
  94.0% { stroke-dashoffset: -100; opacity: 1; }
  95.5% { stroke-dashoffset: -114; opacity: 0; }
  100% { stroke-dashoffset: -114; opacity: 0; }
}
@keyframes seqStrand7 {
  0%, 87.5% { opacity: 0.18; stroke-width: 2.0; filter: none; }
  89.0% { opacity: 0.95; stroke-width: 2.8; filter: drop-shadow(0 0 4px var(--ed-accent-2)); }
  96% { opacity: 0.85; stroke-width: 2.4; filter: drop-shadow(0 0 3px var(--ed-accent-2)); }
  100% { opacity: 0.18; stroke-width: 2.0; filter: none; }
}
@keyframes seqCard7 {
  0%, 87.5% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  92.5% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
  95.0% { opacity: 1; border-color: var(--ed-accent-2); box-shadow: 0 10px 24px -4px rgba(0,0,0,0.42), 0 0 18px rgba(231,167,79,0.38); transform: translateY(-2px) scale(1.02); }
  96% { opacity: 0.95; border-color: rgba(231, 167, 79, 0.55); box-shadow: 0 6px 18px -3px rgba(0,0,0,0.35), 0 0 10px rgba(231,167,79,0.22); transform: translateY(0px) scale(1); }
  100% { opacity: 0.45; border-color: rgba(217, 119, 87, 0.18); box-shadow: 0 4px 14px -3px rgba(0,0,0,0.3); transform: translateY(0px) scale(1); }
}
@keyframes seqIcon7 {
  0%, 87.5% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  92.5% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
  95.0% { background: rgba(231, 167, 79, 0.25); border-color: var(--ed-accent-2); color: var(--ed-accent-2); box-shadow: 0 0 14px rgba(231,167,79,0.5); transform: scale(1.08); }
  96% { background: rgba(231, 167, 79, 0.14); border-color: rgba(231, 167, 79, 0.45); color: var(--ed-accent-2); box-shadow: 0 0 8px rgba(231,167,79,0.25); transform: scale(1); }
  100% { background: rgba(217, 119, 87, 0.06); border-color: rgba(217, 119, 87, 0.18); color: rgba(217, 119, 87, 0.6); box-shadow: none; transform: scale(1); }
}

/* ==========================================================================
   Continuous Sequential Loops (is-online: 9.6s calm majestic default)
   ========================================================================== */

/* Left 1: Quizzes */
.neural-stage-wrapper.is-online .neural-tentacles-left .tentacle-pulse-1 { animation: seqPulse0 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-tentacles-left .tentacle-strand.tentacle-1 { animation: synapseFlowLeft 3.6s linear infinite, seqStrand0 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-flank-left .neural-node-card[data-strand="1"] { animation: neuralFloat1 5.2s ease-in-out infinite alternate, seqCard0 9.6s ease-out infinite; }
.neural-stage-wrapper.is-online .neural-flank-left .neural-node-card[data-strand="1"] .node-icon-box { animation: seqIcon0 9.6s ease-out infinite; }

/* Left 2: Flashcards */
.neural-stage-wrapper.is-online .neural-tentacles-left .tentacle-pulse-2 { animation: seqPulse1 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-tentacles-left .tentacle-strand.tentacle-2 { animation: synapseFlowLeft 3.6s linear infinite, seqStrand1 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-flank-left .neural-node-card[data-strand="2"] { animation: neuralFloat2 5.8s ease-in-out infinite alternate 0.4s, seqCard1 9.6s ease-out infinite; }
.neural-stage-wrapper.is-online .neural-flank-left .neural-node-card[data-strand="2"] .node-icon-box { animation: seqIcon1 9.6s ease-out infinite; }

/* Left 3: Closed Occlusion */
.neural-stage-wrapper.is-online .neural-tentacles-left .tentacle-pulse-3 { animation: seqPulse2 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-tentacles-left .tentacle-strand.tentacle-3 { animation: synapseFlowLeft 3.6s linear infinite, seqStrand2 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-flank-left .neural-node-card[data-strand="3"] { animation: neuralFloat3 5.4s ease-in-out infinite alternate 0.8s, seqCard2 9.6s ease-out infinite; }
.neural-stage-wrapper.is-online .neural-flank-left .neural-node-card[data-strand="3"] .node-icon-box { animation: seqIcon2 9.6s ease-out infinite; }

/* Left 4: Study Guides */
.neural-stage-wrapper.is-online .neural-tentacles-left .tentacle-pulse-4 { animation: seqPulse3 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-tentacles-left .tentacle-strand.tentacle-4 { animation: synapseFlowLeft 3.6s linear infinite, seqStrand3 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-flank-left .neural-node-card[data-strand="4"] { animation: neuralFloat4 6.0s ease-in-out infinite alternate 1.2s, seqCard3 9.6s ease-out infinite; }
.neural-stage-wrapper.is-online .neural-flank-left .neural-node-card[data-strand="4"] .node-icon-box { animation: seqIcon3 9.6s ease-out infinite; }

/* Right 1: On-Demand Q&A */
.neural-stage-wrapper.is-online .neural-tentacles-right .tentacle-pulse-1 { animation: seqPulse4 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-tentacles-right .tentacle-strand.tentacle-1 { animation: synapseFlowRight 3.6s linear infinite, seqStrand4 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-flank-right .neural-node-card[data-strand="1"] { animation: neuralFloat1 5.2s ease-in-out infinite alternate, seqCard4 9.6s ease-out infinite; }
.neural-stage-wrapper.is-online .neural-flank-right .neural-node-card[data-strand="1"] .node-icon-box { animation: seqIcon4 9.6s ease-out infinite; }

/* Right 2: Guided Tutoring */
.neural-stage-wrapper.is-online .neural-tentacles-right .tentacle-pulse-2 { animation: seqPulse5 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-tentacles-right .tentacle-strand.tentacle-2 { animation: synapseFlowRight 3.6s linear infinite, seqStrand5 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-flank-right .neural-node-card[data-strand="2"] { animation: neuralFloat2 5.8s ease-in-out infinite alternate 0.4s, seqCard5 9.6s ease-out infinite; }
.neural-stage-wrapper.is-online .neural-flank-right .neural-node-card[data-strand="2"] .node-icon-box { animation: seqIcon5 9.6s ease-out infinite; }

/* Right 3: Spaced Repetition */
.neural-stage-wrapper.is-online .neural-tentacles-right .tentacle-pulse-3 { animation: seqPulse6 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-tentacles-right .tentacle-strand.tentacle-3 { animation: synapseFlowRight 3.6s linear infinite, seqStrand6 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-flank-right .neural-node-card[data-strand="3"] { animation: neuralFloat3 5.4s ease-in-out infinite alternate 0.8s, seqCard6 9.6s ease-out infinite; }
.neural-stage-wrapper.is-online .neural-flank-right .neural-node-card[data-strand="3"] .node-icon-box { animation: seqIcon6 9.6s ease-out infinite; }

/* Right 4: Slide Notes */
.neural-stage-wrapper.is-online .neural-tentacles-right .tentacle-pulse-4 { animation: seqPulse7 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-tentacles-right .tentacle-strand.tentacle-4 { animation: synapseFlowRight 3.6s linear infinite, seqStrand7 9.6s linear infinite; }
.neural-stage-wrapper.is-online .neural-flank-right .neural-node-card[data-strand="4"] { animation: neuralFloat4 6.0s ease-in-out infinite alternate 1.2s, seqCard7 9.6s ease-out infinite; }
.neural-stage-wrapper.is-online .neural-flank-right .neural-node-card[data-strand="4"] .node-icon-box { animation: seqIcon7 9.6s ease-out infinite; }

/* Staggered Neural Levitation Animations when not yet online */
.node-float-1 { animation: neuralFloat1 5.2s ease-in-out infinite alternate; }
.node-float-2 { animation: neuralFloat2 5.8s ease-in-out infinite alternate 0.4s; }
.node-float-3 { animation: neuralFloat3 5.4s ease-in-out infinite alternate 0.8s; }
.node-float-4 { animation: neuralFloat4 6.0s ease-in-out infinite alternate 1.2s; }

@keyframes neuralFloat1 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

@keyframes neuralFloat2 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(4px); }
}

@keyframes neuralFloat3 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-3px); }
}

@keyframes neuralFloat4 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(3px); }
}

/* ==========================================================================
   7. Interactive Hover States (Card Focus & Hub Acceleration)
   ========================================================================== */

/* Single Card Hover: Locks focus on hovered card & line, dims others */
.neural-stage-wrapper.has-hover-focus .tentacle-strand:not(.is-focused),
.neural-stage-wrapper.has-hover-focus .tentacle-filament,
.neural-stage-wrapper.has-hover-focus .tentacle-base-strand:not(.is-focused) {
  opacity: 0.08 !important;
}

.neural-stage-wrapper.has-hover-focus .tentacle-pulse:not(.is-focused) {
  opacity: 0 !important;
}

.neural-stage-wrapper.has-hover-focus .neural-node-card:not(.is-hovered) {
  opacity: 0.28 !important;
  animation-play-state: paused !important;
}

.neural-stage-wrapper.has-hover-focus .neural-node-card:not(.is-hovered) .node-icon-box {
  animation-play-state: paused !important;
}

.neural-node-card.is-hovered {
  opacity: 1 !important;
  transform: translateY(-3px) scale(1.025) !important;
  border-color: var(--ed-accent-2) !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.45), 0 0 22px rgba(231, 167, 79, 0.4) !important;
  animation: none !important;
}

.neural-node-card.is-hovered .node-icon-box {
  background: rgba(231, 167, 79, 0.28) !important;
  border-color: var(--ed-accent-2) !important;
  color: var(--ed-accent-2) !important;
  box-shadow: 0 0 16px rgba(231, 167, 79, 0.5) !important;
  transform: scale(1.08) !important;
  animation: none !important;
}

.neural-node-card.is-hovered .node-title {
  opacity: 1;
}

.tentacle-strand.is-focused {
  opacity: 1 !important;
  stroke-width: 3.2 !important;
  stroke: var(--ed-accent-2) !important;
  filter: drop-shadow(0 0 6px var(--ed-accent-2)) drop-shadow(0 0 14px var(--ed-accent)) !important;
  animation: synapseFlowLeft 1.2s linear infinite !important;
}

.neural-tentacles-right .tentacle-strand.is-focused {
  animation: synapseFlowRight 1.2s linear infinite !important;
}

.tentacle-pulse.is-focused {
  opacity: 1 !important;
  stroke-width: 4 !important;
  animation: pulseTravelLeft 0.85s linear infinite !important;
}
.neural-tentacles-right .tentacle-pulse.is-focused {
  animation: pulseTravelRight 0.85s linear infinite !important;
}

/* Center Nucleus Hub Hover: Smooth accelerated progressive charge (3.6s cycle) */
.neural-stage-wrapper.is-hub-hovered .tentacle-pulse {
  animation-duration: 3.6s !important;
}

.neural-stage-wrapper.is-hub-hovered .tentacle-strand {
  animation-duration: 1.6s, 3.6s !important;
}

.neural-stage-wrapper.is-hub-hovered .neural-node-card {
  animation-duration: 5.2s, 3.6s !important;
}

.neural-stage-wrapper.is-hub-hovered .neural-node-card .node-icon-box {
  animation-duration: 3.6s !important;
}

.neural-stage-wrapper.is-hub-hovered .nucleus-aura-ring {
  opacity: 1 !important;
  transform: scale(1.08) !important;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.38) 0%, rgba(231, 167, 79, 0.2) 50%, transparent 75%) !important;
  filter: drop-shadow(0 0 14px rgba(231, 167, 79, 0.45));
}

/* Light / Paper Theme Adaptations */
[data-theme="editorial-paper"] .neural-stage-wrapper {
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.08);
}

[data-theme="editorial-paper"] .neural-stage-wrapper::before {
  background-image:
    radial-gradient(rgba(196, 93, 60, 0.07) 1px, transparent 1px),
    radial-gradient(rgba(184, 115, 51, 0.04) 1px, transparent 1px);
}

[data-theme="editorial-paper"] .nucleus-card {
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.09);
}

[data-theme="editorial-paper"] .nucleus-badge-instant {
  background: rgba(196, 93, 60, 0.08);
  border-color: rgba(196, 93, 60, 0.25);
}

[data-theme="editorial-paper"] .neural-node-card {
  opacity: 0.7;
  border-color: rgba(196, 93, 60, 0.16);
  box-shadow: 0 4px 12px -3px rgba(0, 0, 0, 0.06);
}

[data-theme="editorial-paper"] .node-icon-box {
  background: rgba(196, 93, 60, 0.07);
  border-color: rgba(196, 93, 60, 0.2);
  color: rgba(196, 93, 60, 0.8);
}

[data-theme="editorial-paper"] .neural-stage-wrapper.is-hub-hovered .neural-node-card {
  border-color: rgba(196, 93, 60, 0.5) !important;
  box-shadow: 0 8px 22px -4px rgba(0, 0, 0, 0.12), 0 0 14px rgba(196, 93, 60, 0.2) !important;
}

[data-theme="editorial-paper"] .neural-stage-wrapper.is-hub-hovered .neural-node-card .node-icon-box {
  background: rgba(196, 93, 60, 0.16) !important;
  border-color: rgba(196, 93, 60, 0.5) !important;
  color: var(--ed-accent) !important;
  box-shadow: 0 0 12px rgba(196, 93, 60, 0.25) !important;
}

/* Responsive Adaptations */
@media (max-width: 1040px) {
  .neural-stage-wrapper {
    flex-direction: column;
    padding: 32px 18px;
    gap: 18px;
  }

  .neural-nucleus-core {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
  }

  .nucleus-port.port-left {
    left: 50%;
    top: auto;
    bottom: -9px;
    transform: translateX(-16px);
  }

  .nucleus-port.port-right {
    right: 50%;
    top: auto;
    bottom: -9px;
    transform: translateX(16px);
  }

  .neural-tentacles {
    display: none;
  }

  .neural-flank {
    order: 2;
    width: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

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

/* --------------------------------------------------------------------------
   Why Memora (3 Pillars)
   -------------------------------------------------------------------------- */
.features-grid-section {
  max-width: 1080px;
  margin: 0 auto 90px;
  padding: 0 24px;
  text-align: center;
}

.editorial-feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  text-align: left;
}

.feature-box {
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-box.is-featured {
  background: linear-gradient(180deg, var(--ed-bg-surface-elevated) 0%, var(--ed-bg-surface) 100%);
  border: 1.5px solid var(--ed-accent);
  box-shadow: 0 10px 32px var(--ed-accent-glow), 0 0 0 1px rgba(217, 119, 87, 0.22);
  position: relative;
}

[data-theme="editorial-paper"] .feature-box.is-featured {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
  border: 1.5px solid var(--ed-accent);
  box-shadow: 0 10px 30px rgba(196, 93, 60, 0.18), 0 0 0 1px rgba(196, 93, 60, 0.2);
}

.feature-box-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--ed-accent);
}

.feature-box-icon svg,
.feature-svg-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.theme-icon,
.play-icon,
.restart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon-svg,
.transport-svg-icon,
.btn-arrow-svg,
.pill-arrow-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.feature-box-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ed-heading);
  margin-bottom: 12px;
}

.feature-box-p {
  font-size: 14px;
  color: var(--ed-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ed-accent-2);
  background: rgba(231, 167, 79, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feature-tag-featured {
  color: var(--ed-accent);
  background: rgba(217, 119, 87, 0.14);
  border: 1px solid rgba(217, 119, 87, 0.3);
  font-weight: 600;
}

[data-theme="editorial-paper"] .feature-tag-featured {
  color: var(--ed-accent);
  background: rgba(196, 93, 60, 0.12);
  border-color: rgba(196, 93, 60, 0.28);
}

/* --------------------------------------------------------------------------
   Comparison Table Section
   -------------------------------------------------------------------------- */
.comparison-section {
  max-width: 1040px;
  margin: 0 auto 100px;
  padding: 0 24px;
}

.comparison-card {
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-lg);
  padding: 38px 40px;
}

.comparison-header {
  margin-bottom: 28px;
}

.comparison-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--ed-heading);
  font-weight: 400;
  margin-bottom: 8px;
}

.comparison-subtitle {
  font-size: 14px;
  color: var(--ed-muted);
  line-height: 1.5;
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--ed-border);
  text-align: left;
  vertical-align: middle;
}

.comparison-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ed-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 16px;
}

.comparison-table th.th-feature {
  width: 44%;
}

.comparison-table th.th-memora {
  width: 22%;
  text-align: center;
}

.comparison-table th.th-other {
  width: 17%;
  text-align: center;
}

.comparison-table td.col-memora,
.comparison-table td.col-other {
  text-align: center;
}

.is-memora-col {
  background: rgba(217, 119, 87, 0.07);
}

.comparison-table thead th.is-memora-col {
  border-top-left-radius: var(--ed-radius-sm);
  border-top-right-radius: var(--ed-radius-sm);
  border-bottom: 2px solid var(--ed-accent);
}

.comparison-table tbody tr:last-child td.is-memora-col {
  border-bottom-left-radius: var(--ed-radius-sm);
  border-bottom-right-radius: var(--ed-radius-sm);
}

.memora-col-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ed-heading);
}

.memora-col-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--ed-accent);
  background: rgba(217, 119, 87, 0.16);
  border: 1px solid rgba(217, 119, 87, 0.35);
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}

.comparison-table td.col-feature strong {
  display: block;
  font-size: 14px;
  color: var(--ed-heading);
  font-weight: 600;
  line-height: 1.35;
}

.cmp-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cmp-cell.is-yes .cmp-icon {
  color: var(--ed-accent-2);
  flex-shrink: 0;
}

.cmp-cell.is-no .cmp-icon {
  color: var(--ed-muted);
  opacity: 0.45;
  flex-shrink: 0;
}

[data-theme="editorial-paper"] .is-memora-col {
  background: rgba(196, 93, 60, 0.06);
}

[data-theme="editorial-paper"] .memora-col-badge {
  background: rgba(196, 93, 60, 0.12);
  border-color: rgba(196, 93, 60, 0.3);
}

.comparison-bottom-tagline {
  text-align: center;
  padding: 22px 16px 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ed-muted);
  letter-spacing: 0.02em;
  opacity: 0.88;
}

.comparison-bottom-tagline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

[data-theme="editorial-paper"] .comparison-bottom-tagline {
  color: var(--ed-muted);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Footer Colophon
   -------------------------------------------------------------------------- */
.site-colophon-footer {
  background: var(--ed-bg-deep);
  border-top: 1px solid var(--ed-border);
  padding: 70px 24px 50px;
  text-align: center;
}

.colophon-container {
  max-width: 640px;
  margin: 0 auto;
}

.colophon-brand {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--ed-heading);
  margin-bottom: 12px;
}

.colophon-manifesto {
  font-size: 15px;
  color: var(--ed-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.colophon-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.colophon-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ed-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Scroll-Driven Reveal Animations
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.18s;
}

.reveal-delay-3 {
  transition-delay: 0.28s;
}

.reveal-delay-4 {
  transition-delay: 0.38s;
}

/* Ensure hover states work seamlessly on revealed cards */
.step-card.reveal-on-scroll.is-revealed:hover,
.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--ed-border-strong);
}

.feature-box.reveal-on-scroll.is-revealed:hover,
.feature-box:hover {
  transform: translateY(-3px);
  border-color: var(--ed-border-strong);
}

/* --------------------------------------------------------------------------
   Scroll-Driven Section Bottom Shadow & Fade Animation
   -------------------------------------------------------------------------- */
.section-bottom-fade {
  position: relative;
  width: 100%;
  max-width: 980px;
  height: 56px;
  margin: 54px auto 0;
  pointer-events: none;
  overflow: visible;
  opacity: var(--fade-opacity, 0);
  transform: translateY(var(--fade-y, 16px)) scaleX(var(--fade-scale, 0.88));
  filter: blur(var(--fade-blur, 3.5px));
  transition: opacity 0.18s ease-out, transform 0.18s ease-out, filter 0.18s ease-out;
  will-change: opacity, transform, filter;
}

.editorial-hero-container .section-bottom-fade {
  margin-top: 20px;
}

.section-fade-shadow {
  position: absolute;
  inset: -8px 0 0 0;
  height: 56px;
  background: radial-gradient(ellipse 65% 100% at 50% 0%, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.16) 45%, transparent 75%);
  filter: blur(10px);
  opacity: 0.9;
}

.section-fade-line {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(217, 119, 87, 0.28) 25%, rgba(231, 167, 79, 0.48) 50%, rgba(217, 119, 87, 0.28) 75%, transparent 100%);
  box-shadow: 0 0 10px rgba(231, 167, 79, 0.25);
}

.section-bottom-fade.is-revealed {
  opacity: 1;
  transform: translateY(0) scaleX(1);
  filter: blur(0);
}

[data-theme="editorial-paper"] .section-fade-shadow {
  background: radial-gradient(ellipse 65% 100% at 50% 0%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.02) 45%, transparent 75%);
  filter: blur(7px);
}

[data-theme="editorial-paper"] .section-fade-line {
  background: linear-gradient(90deg, transparent 0%, rgba(196, 93, 60, 0.18) 25%, rgba(198, 137, 54, 0.32) 50%, rgba(196, 93, 60, 0.18) 75%, transparent 100%);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .section-bottom-fade {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
