/* Pulse hybrid briefing — editorial intelligence brief */

html {
  scroll-behavior: smooth;
}

body {
  /* Full-bleed dark bands use 50vw breakouts; clip the scrollbar-width overshoot. */
  overflow-x: clip;
}

.page-pulse-briefing {
  max-width: 1120px;
  padding-top: 0;
  position: relative;
}

/* —— Chapter progress rail —— */
.pulse-chapter-rail {
  position: fixed;
  right: max(0.75rem, calc((100vw - 1120px) / 2 - 3.5rem));
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.55rem 0.45rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

@media (min-width: 1100px) {
  .pulse-chapter-rail {
    display: flex;
  }
}

.pulse-chapter-rail a {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(15, 28, 36, 0.16);
  border: 0;
  padding: 0;
  text-indent: -9999px;
  overflow: hidden;
  transition:
    transform var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.pulse-chapter-rail a:hover {
  background: var(--accent);
  transform: scale(1.2);
  text-decoration: none;
}

.pulse-chapter-rail a.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 127, 121, 0.18);
  transform: scale(1.3);
}

.pulse-chapter-rail a[title]::after {
  content: none;
}

/* —— Hero ——
   Pulse's hero predates and inspired the shared `.layer-hero` primitive
   (site.css §"Layer hero", DESIGN.md §5) every other page now uses. It stays
   on its own `.pulse-hero`/`.pulse-hero--textured` classes rather than
   `.layer-hero` because it does genuinely more: full 100vh sizing, an <h1>
   inside the band, a scroll-cue and "Enter briefing" CTA, and chapter-scroll
   choreography none of the single-viewport layer pages need. Rules that are
   byte-for-byte identical to the shared primitive (`.hero-stat-value`,
   `briefing-rise`) are still kept local here on purpose — `.hero-stat`'s
   spacing and `.hero-stat-label`'s type differ deliberately from the shared
   version (short caption vs. full sentence) and aren't worth forcing
   together at the cost of a markup change to a page that's already correct.
   `briefing-rise` itself was deduplicated: the canonical copy now lives in
   site.css and this file no longer redeclares it. */
.pulse-hero {
  min-height: calc(100vh - 7.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 4rem;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.pulse-hero > *:not(.hero-particles) {
  position: relative;
  z-index: 1;
}

.pulse-hero .eyebrow,
.pulse-hero h1,
.pulse-hero .hero-stat,
.pulse-hero .hero-line,
.pulse-hero .hero-enter,
.pulse-hero-explore,
.pulse-hero .hero-scroll-cue {
  opacity: 1;
  transform: none;
}

.pulse-hero.is-ready .eyebrow,
.pulse-hero.is-ready h1,
.pulse-hero.is-ready .hero-stat,
.pulse-hero.is-ready .hero-line,
.pulse-hero.is-ready .hero-enter,
.pulse-hero.is-ready .pulse-hero-explore,
.pulse-hero.is-ready .hero-scroll-cue {
  opacity: 0;
  transform: translateY(18px);
  animation-name: briefing-rise;
  animation-duration: var(--duration-enter);
  animation-timing-function: var(--ease);
  animation-fill-mode: forwards;
}

.pulse-hero.is-ready .eyebrow { animation-delay: 0.04s; }
.pulse-hero.is-ready h1 { animation-delay: 0.12s; }
.pulse-hero.is-ready .hero-stat { animation-delay: 0.2s; }
.pulse-hero.is-ready .hero-line { animation-delay: 0.3s; }
.pulse-hero.is-ready .pulse-hero-explore { animation-delay: 0.36s; }
.pulse-hero.is-ready .hero-enter { animation-delay: 0.44s; }
.pulse-hero.is-ready .hero-scroll-cue { animation-delay: 0.75s; }

.pulse-hero .eyebrow {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.75rem);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 1.1rem;
  color: var(--ink);
}

.pulse-hero .hero-line {
  max-width: 26rem;
  margin: 0 0 2.25rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.pulse-hero .hero-enter {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  padding: 0.75rem 1.15rem;
  text-decoration: none;
  box-shadow: none;
  transition:
    background var(--duration-fast) var(--ease),
    gap var(--duration-fast) var(--ease);
}

.pulse-hero .hero-enter:hover {
  background: var(--accent);
  gap: 0.65rem;
  transform: none;
  text-decoration: none;
  color: #fff;
}

.pulse-hero .hero-enter::after {
  content: "↓";
  font-weight: 500;
  opacity: 0.85;
}

.pulse-hero .hero-scroll-cue {
  position: absolute;
  left: 0;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse-hero .hero-scroll-cue span {
  display: block;
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, var(--accent), transparent);
  transform-origin: top;
  animation-name: cue-pulse;
  animation-duration: 1.8s;
  animation-timing-function: var(--ease);
  animation-iteration-count: infinite;
}

.pulse-hero-explore {
  margin-top: 1.25rem;
  max-width: 56rem;
  width: 100%;
}

.pulse-hero-explore .explore-hint,
.explore-hint {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* —— Chapters —— */
.pulse-chapter {
  padding: 3.25rem 0 2rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-enter) var(--ease),
    transform var(--duration-enter) var(--ease);
}

.pulse-chapter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pulse-chapter.is-visible .pulse-chapter-label,
.pulse-chapter.is-visible .pulse-synthesis,
.pulse-chapter.is-visible .kpi-tile,
.pulse-chapter.is-visible .chart-panel,
.pulse-chapter.is-visible .teaser-tile,
.pulse-chapter.is-visible .watchlist-list li,
.pulse-chapter.is-visible .tier-explore,
.pulse-chapter.is-visible .tier-focus-caption,
.pulse-chapter.is-visible .callout {
  animation-name: briefing-rise;
  animation-duration: var(--duration-enter);
  animation-timing-function: var(--ease);
  animation-fill-mode: both;
}

.pulse-chapter.is-visible .pulse-chapter-label { animation-delay: 0.02s; }
.pulse-chapter.is-visible .pulse-synthesis { animation-delay: 0.06s; }
.pulse-chapter.is-visible .kpi-tile:nth-child(1) { animation-delay: 0.1s; }
.pulse-chapter.is-visible .kpi-tile:nth-child(2) { animation-delay: 0.14s; }
.pulse-chapter.is-visible .kpi-tile:nth-child(3) { animation-delay: 0.18s; }
.pulse-chapter.is-visible .kpi-tile:nth-child(4) { animation-delay: 0.22s; }
.pulse-chapter.is-visible .callout:nth-child(1) { animation-delay: 0.08s; }
.pulse-chapter.is-visible .callout:nth-child(2) { animation-delay: 0.14s; }
.pulse-chapter.is-visible .tier-explore { animation-delay: 0.16s; }
.pulse-chapter.is-visible .tier-focus-caption { animation-delay: 0.2s; }
.pulse-chapter.is-visible .chart-panel { animation-delay: 0.08s; }
.pulse-chapter.is-visible .watchlist-list li:nth-child(1) { animation-delay: 0.1s; }
.pulse-chapter.is-visible .watchlist-list li:nth-child(2) { animation-delay: 0.16s; }
.pulse-chapter.is-visible .watchlist-list li:nth-child(3) { animation-delay: 0.22s; }
.pulse-chapter.is-visible .teaser-tile:nth-child(1) { animation-delay: 0.08s; }
.pulse-chapter.is-visible .teaser-tile:nth-child(2) { animation-delay: 0.14s; }
.pulse-chapter.is-visible .teaser-tile:nth-child(3) { animation-delay: 0.2s; }

.pulse-chapter-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.page-pulse-briefing .pulse-synthesis {
  max-width: 40rem;
  width: 100%;
  margin-bottom: 2rem;
}

.page-pulse-briefing .kpi-strip {
  margin-bottom: 0.5rem;
}

.page-pulse-briefing .kpi-tile {
  max-width: none;
}

/* —— Interactive tier explore —— */
.tier-explore {
  display: flex;
  width: 100%;
  height: 3.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: none;
  cursor: crosshair;
}

.tier-explore.is-engaged {
  box-shadow: 0 0 0 2px rgba(12, 127, 121, 0.16);
}

.tier-explore-seg {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0 0.4rem;
  min-width: 0;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  transition:
    flex var(--duration-normal) var(--ease),
    filter var(--duration-fast) var(--ease),
    opacity var(--duration-fast) var(--ease);
  opacity: 0.78;
  position: relative;
}

.tier-explore-seg .seg-pct {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.85;
}

.tier-explore.is-engaged .tier-explore-seg:not(.is-active) {
  opacity: 0.3;
  filter: grayscale(0.3);
}

.tier-explore-seg:hover,
.tier-explore-seg:focus-visible {
  opacity: 1;
  filter: brightness(1.08);
  outline: none;
  z-index: 1;
}

.tier-explore-seg.is-active {
  opacity: 1;
  filter: brightness(1.12);
  z-index: 2;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  transform: none;
}

.tier-focus-caption {
  margin: 0.9rem 0 1.15rem;
  padding: 0.85rem 0 0.85rem 1rem;
  background: transparent;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  min-height: 3rem;
  transition: opacity var(--duration-fast) var(--ease);
}

.tier-focus-caption.is-updating {
  animation-name: caption-flash;
  animation-duration: var(--duration-normal);
  animation-timing-function: var(--ease);
}

.tier-focus-caption .cap-tier {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  margin-right: 0.35rem;
}

.tier-focus-caption[hidden] {
  display: none;
}

/* briefing-rise keyframe now lives in site.css (shared with every .layer-hero
   page); kept in one place so Pulse and the other layers stay in lockstep. */

@keyframes cue-pulse {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes caption-flash {
  0% {
    opacity: 0.55;
  }
  100% {
    opacity: 1;
  }
}

/* —— Textured dark surfaces (hero + closer only — light chapters stay clean) —— */
.pulse-hero--textured,
.pulse-closer {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1.35rem, calc(50vw - 560px + 1.35rem));
  padding-right: max(1.35rem, calc(50vw - 560px + 1.35rem));
  background-color: var(--surface-dark);
  background-image: var(--noise),
    linear-gradient(180deg, var(--surface-dark-2) 0%, var(--surface-dark) 100%);
  color: var(--on-dark);
}

.pulse-hero--textured .eyebrow {
  color: var(--on-dark-muted);
}

.pulse-hero--textured h1 {
  color: var(--on-dark);
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.4rem;
}

.pulse-hero--textured .hero-line {
  color: var(--on-dark-muted);
  max-width: 30rem;
}

.pulse-hero .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0 2rem;
}

.pulse-hero .hero-stat-value {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(4.25rem, 11vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
}

.pulse-hero .hero-stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
}

.pulse-hero--textured .hero-enter {
  background: var(--on-dark);
  color: var(--surface-dark);
}

.pulse-hero--textured .hero-enter:hover {
  background: var(--accent-bright);
  color: var(--surface-dark);
}

.pulse-hero--textured .hero-scroll-cue {
  color: var(--on-dark-muted);
  left: max(1.35rem, calc(50vw - 560px + 1.35rem));
}

.pulse-hero--textured .hero-scroll-cue span {
  background: linear-gradient(180deg, var(--accent-bright), transparent);
}

/* —— Coverage funnel (centered silhouette) —— */
.coverage-funnel {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1rem 0 0.5rem;
}

.cfunnel-stage {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cfunnel-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.cfunnel-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.cfunnel-value {
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cfunnel-value em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.cfunnel-bar {
  height: 1.9rem;
  width: calc(var(--w) * 1%);
  margin-inline: auto;
  background: var(--chart-1);
  border-radius: var(--radius);
}

.cfunnel-link {
  height: 0.9rem;
  background: var(--chart-1);
  opacity: 0.18;
  margin-top: 0.25rem;
  clip-path: polygon(
    calc(50% - var(--w-top) * 0.5%) 0,
    calc(50% + var(--w-top) * 0.5%) 0,
    calc(50% + var(--w-bottom) * 0.5%) 100%,
    calc(50% - var(--w-bottom) * 0.5%) 100%
  );
}

.cfunnel-detail {
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.25rem;
}

/* (Dot-plot .covdot-* primitives now live in site.css — shared across pages.) */

/* —— Dark closer band —— */
.pulse-closer {
  border-top: 0;
  margin-top: 3.25rem;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.pulse-closer .pulse-chapter-label {
  color: var(--on-dark-muted);
}

.closer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 0;
}

.closer-stat {
  flex: 1 1 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-right: 1.75rem;
  margin-right: 1.75rem;
  border-right: 1px solid var(--line-on-dark);
}

.closer-stat:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.closer-stat-value {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
}

.closer-stat-label {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
  max-width: 14rem;
}

.closer-note {
  margin: 2.5rem 0 0;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse-hero.is-ready .eyebrow,
  .pulse-hero.is-ready h1,
  .pulse-hero.is-ready .hero-stat,
  .pulse-hero.is-ready .hero-line,
  .pulse-hero.is-ready .hero-enter,
  .pulse-hero.is-ready .pulse-hero-explore,
  .pulse-hero.is-ready .hero-scroll-cue {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }

  .pulse-chapter,
  .pulse-hero .eyebrow,
  .pulse-hero h1,
  .pulse-hero .hero-stat,
  .pulse-hero .hero-line,
  .pulse-hero .hero-enter,
  .pulse-hero-explore,
  .pulse-hero .hero-scroll-cue {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }

  .pulse-chapter.is-visible .pulse-chapter-label,
  .pulse-chapter.is-visible .pulse-synthesis,
  .pulse-chapter.is-visible .kpi-tile,
  .pulse-chapter.is-visible .chart-panel,
  .pulse-chapter.is-visible .teaser-tile,
  .pulse-chapter.is-visible .watchlist-list li,
  .pulse-chapter.is-visible .tier-explore,
  .pulse-chapter.is-visible .tier-focus-caption,
  .pulse-chapter.is-visible .callout,
  .tier-focus-caption.is-updating,
  .pulse-hero .hero-scroll-cue span {
    animation: none !important;
  }

  .tier-explore-seg,
  .pulse-hero .hero-enter {
    transition: none !important;
  }

  .pulse-hero .hero-enter:hover,
  .tier-explore-seg.is-active {
    transform: none;
  }
}
