/* =============================================================================
   HOMEPAGE NARRATIVE — SHARED BASE
   One story runs through the homepage: sales conversations (violet/blue
   "signal") are turned by one AI coach into produced value (mint) for two
   roles. Monospace type is the machine's voice, sans-serif the human one.
   This file holds the shared tokens, section shell, headers, statements and
   separators. Each section's own layout lives next to its HTML fragment:
   sections/<Name>/<Name>.css, registered in page-registry deferredStyles.
   ============================================================================= */

.home-narrative {
  --home-ink: #090518;
  --home-surface: rgba(17, 18, 43, 0.78);
  --home-surface-strong: rgba(20, 21, 51, 0.94);
  --home-line: rgba(176, 173, 224, 0.16);
  --home-line-strong: rgba(154, 86, 255, 0.34);
  --home-text: #f8f7ff;
  --home-muted: #aaa8c1;
  --home-violet: #7c3cff;
  --home-blue: #5a74ff;
  --home-mint: #19ce88;
  --home-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(5.5rem, 9vw, 8.5rem) 0;
  color: var(--home-text);
  background: transparent;
  font-family: var(--font-sans);
}

.home-narrative__container {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* --- Section headers ------------------------------------------------------- */

.home-narrative__header {
  max-width: 850px;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.home-narrative__header--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

/* The machine's voice: shared monospace eyebrow used by every section. */
.home-narrative__eyebrow,
.home-eyebrow {
  margin: 0 0 0.9rem;
  color: #a990ff;
  font-family: var(--home-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-narrative__title {
  max-width: 17ch;
  margin: 0;
  color: var(--home-text, #f8f7ff);
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  font-weight: 820;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.home-narrative__header--center .home-narrative__title {
  margin-right: auto;
  margin-left: auto;
}

.home-narrative__highlight {
  color: transparent;
  background: var(--brand-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Preserve the painted edge of gradient glyphs when headings use tight tracking. */
.home-narrative__highlight,
.home-page .bg-clip-text.text-transparent {
  padding-inline: 0.06em;
  margin-inline: -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.home-narrative__lede {
  max-width: 720px;
  margin: 1.45rem 0 0;
  color: var(--home-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 430;
  letter-spacing: -0.018em;
  line-height: 1.65;
}

.home-narrative__header--center .home-narrative__lede {
  margin-right: auto;
  margin-left: auto;
}

/* --- Closing statements ----------------------------------------------------
   The one-line monospace truth a section ends on. */

.home-narrative__statement {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 2.3rem auto 0;
  color: var(--home-muted);
  font-family: var(--home-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.home-narrative__statement strong {
  color: #d6cdfd;
  font-weight: 700;
}

.home-narrative__statement > [aria-hidden] {
  color: #a990ff;
}

.home-narrative__statement--mint > [aria-hidden] {
  color: var(--home-mint);
  font-size: 1.1rem;
}

/* --- Shared-background section separators -------------------------------- */

.home-section-separator {
  --home-separator-height: clamp(6rem, 9vw, 8rem);

  position: relative;
  z-index: 20;
  display: grid;
  width: 100%;
  height: var(--home-separator-height);
  place-items: center;
  margin: calc(var(--home-separator-height) / -2) 0;
  isolation: isolate;
  pointer-events: none;
}

.home-section-separator > * {
  grid-area: 1 / 1;
  width: 100%;
}

.home-section-separator .section-separator,
.home-section-separator .unfold-separator-wrapper,
.home-section-separator .neon-arrow-separator {
  margin-top: 0;
  margin-bottom: 0;
}

.home-section-separator .singularity-separator,
.home-section-separator .vertical-cascade-separator-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

.home-section-separator .vertical-cascade-separator-wrapper {
  height: var(--home-separator-height);
}

.home-section-separator .vertical-cascade-separator {
  height: calc(var(--home-separator-height) - 1.5rem);
}

.home-section-separator--line .section-separator {
  max-width: min(400px, calc(100% - 4rem));
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 760px) {
  .home-narrative {
    padding: 4.8rem 0;
  }

  .home-narrative__container {
    width: min(100% - 1.5rem, 42rem);
  }

  .home-narrative__header {
    margin-bottom: 2.5rem;
  }

  .home-narrative__title {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
    line-height: 1;
  }

  .home-narrative__lede {
    font-size: 1rem;
    line-height: 1.6;
  }

  .home-narrative__statement {
    align-items: flex-start;
    font-size: 0.68rem;
    line-height: 1.55;
    text-align: left;
  }
}
