/* ==========================================================================
   pc-linkedin — luxury law-firm editorial system
   AiButtons × Paritosh Chauhan · v.2026-07-10
   Navy + ivory. Restrained gold. Fraunces / Inter / JetBrains Mono.
   ========================================================================== */

:root {
  /* Palette — canonical */
  --navy: #0B1220;
  --navy-90: rgba(11, 18, 32, 0.90);
  --ivory-hex: #F7F5EF;
  --muted-navy: #8892A6;   /* muted on navy */
  --muted-ivory: #5C6473;  /* muted on ivory */
  --gold: #C9A961;
  --gold-strong: #B99444;
  --gold-dim: rgba(201, 169, 97, 0.42);
  --gold-soft: rgba(201, 169, 97, 0.14);

  /* Section theme defaults (navy) — sections override with `.section-ivory` */
  --sec-bg: var(--navy);
  --sec-fg: var(--ivory-hex);
  --sec-fg-80: rgba(247, 245, 239, 0.82);
  --sec-fg-60: rgba(247, 245, 239, 0.62);
  --sec-fg-40: rgba(247, 245, 239, 0.42);
  --sec-fg-20: rgba(247, 245, 239, 0.22);
  --sec-muted: var(--muted-navy);
  --sec-panel: rgba(255, 255, 255, 0.03);
  --sec-border: rgba(255, 255, 255, 0.08);
  --sec-border-strong: rgba(255, 255, 255, 0.14);
  --sec-rule: rgba(255, 255, 255, 0.06);
  --sec-panel-2: rgba(0, 0, 0, 0.16);

  /* Global aliases — preserve any inline var(--bg), var(--ivory), var(--phosphor)
     references in the HTML by routing them to the new palette. */
  --bg: var(--navy);
  --panel: var(--sec-panel);
  --panel-2: var(--sec-panel-2);
  --grid: var(--sec-rule);
  --grid-2: var(--sec-border);
  --ivory: var(--sec-fg);
  --ivory-80: var(--sec-fg-80);
  --ivory-60: var(--sec-fg-60);
  --ivory-40: var(--sec-fg-40);
  --ivory-20: var(--sec-fg-20);
  --ivory-10: rgba(247, 245, 239, 0.10);
  --ivory-05: rgba(247, 245, 239, 0.05);
  --muted: var(--sec-muted);
  --phosphor: var(--gold);          /* legacy alias — every phosphor becomes gold */
  --phosphor-dim: var(--gold-dim);
  --phosphor-glow: var(--gold-soft);

  /* Type stacks */
  --serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Sections that render on ivory background (alt slides).
   Set variables at the section level so all descendants (including inline
   styles referencing var(--ivory), var(--panel), etc.) invert cleanly. */
.section-ivory {
  --sec-bg: var(--ivory-hex);
  --sec-fg: var(--navy);
  --sec-fg-80: rgba(11, 18, 32, 0.82);
  --sec-fg-60: rgba(11, 18, 32, 0.62);
  --sec-fg-40: rgba(11, 18, 32, 0.42);
  --sec-fg-20: rgba(11, 18, 32, 0.20);
  --sec-muted: var(--muted-ivory);
  --sec-panel: #FFFFFF;
  --sec-border: rgba(11, 18, 32, 0.08);
  --sec-border-strong: rgba(11, 18, 32, 0.16);
  --sec-rule: rgba(11, 18, 32, 0.08);
  --sec-panel-2: rgba(11, 18, 32, 0.04);

  --bg: var(--sec-bg);
  --panel: var(--sec-panel);
  --panel-2: var(--sec-panel-2);
  --grid: var(--sec-rule);
  --grid-2: var(--sec-border);
  --ivory: var(--sec-fg);
  --ivory-80: var(--sec-fg-80);
  --ivory-60: var(--sec-fg-60);
  --ivory-40: var(--sec-fg-40);
  --ivory-20: var(--sec-fg-20);
  --ivory-10: rgba(11, 18, 32, 0.10);
  --ivory-05: rgba(11, 18, 32, 0.05);
  --muted: var(--sec-muted);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--navy);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ivory-hex);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11", "kern";
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .scroll-hint svg { animation: none !important; }
}

/* -------------------------------------------------------- Section shell */
.section {
  position: relative;
  padding: 6.5rem 1.5rem;
  background: var(--sec-bg);
  color: var(--sec-fg);
  isolation: isolate;
}
@media (min-width: 768px) {
  .section { padding: 8.5rem 3rem; }
}
@media (min-width: 1200px) {
  .section { padding: 9.5rem 4rem; min-height: 100vh; display: flex; align-items: center; }
}
.section-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

/* Gold hairline rule between sections */
.gold-rule {
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
  width: 100%;
  border: 0;
}

/* Chapter folio mark — huge italic numeral, editorial */
.folio {
  position: absolute;
  top: -3.5rem;
  right: -1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(140px, 22vw, 260px);
  line-height: 1;
  color: var(--sec-fg);
  opacity: 0.07;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 768px) {
  .folio { font-size: 118px; top: -1.5rem; right: 0; opacity: 0.06; }
}

/* Vertical margin label — "§ 01 · CONTEXT" rotated */
.margin-label {
  position: absolute;
  left: -3.75rem;
  top: 1rem;
  transform: rotate(-90deg);
  transform-origin: left top;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sec-fg-40);
  white-space: nowrap;
  z-index: 1;
}
.margin-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.75rem;
}
@media (max-width: 1180px) {
  .margin-label { display: none; }
}

/* -------------------------------------------------------- Typography kit */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
}
.eyebrow-gold { color: var(--gold); }
.eyebrow-gold::before { background: var(--gold); }

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -0.028em;
  color: var(--sec-fg);
}
.h-display em, .h-display .em {
  font-style: italic;
  font-weight: 400;
  color: var(--sec-fg);
}

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--sec-fg);
  max-width: 22ch;
}
.h-section em {
  font-style: italic;
  font-weight: 400;
  color: var(--sec-fg);
}

.lede {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--sec-fg-60);
  max-width: 58ch;
  margin-top: 1.5rem;
}

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--sec-fg);
  max-width: 32ch;
}
.pull-quote-wide {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--sec-fg);
  max-width: 24ch;
}

.mono-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.mono-tag-gold { color: var(--gold); }
.mono-tag-muted { color: var(--sec-muted); }

.body-copy {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--sec-fg-80);
}
.body-copy p { margin: 0 0 1.15rem; }
.body-copy strong { color: var(--sec-fg); font-weight: 600; }
.body-copy em { color: var(--sec-fg); font-style: italic; }

/* Blinking cursor — removed per new visual system. Kept as no-op so the
   existing markup does not need copy changes; the span is invisible. */
.caret {
  display: inline-block;
  width: 0.25em;
  height: 0.9em;
  vertical-align: -0.08em;
  margin-left: 0.05em;
  background: var(--gold);
  opacity: 0.85;
}

/* -------------------------------------------------------- Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease-out, transform 400ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------- Cover */
.cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-bottom: 8rem;
}
.cover .section-inner { padding-bottom: 3rem; }
.cover-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--sec-rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--sec-rule) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.9;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, black 30%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, black 30%, transparent 82%);
  pointer-events: none;
  z-index: 0;
}
.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3.25rem;
  position: relative;
  z-index: 1;
}
.cover-meta > div { min-width: 8rem; }
.cover-meta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.cover-meta-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.08rem;
  color: var(--sec-fg);
  letter-spacing: -0.005em;
}
.cover-meta-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sec-fg-40);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

/* Scroll cue — pinned bottom-center, clear of the FROM/TO/FORMAT tile row */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sec-fg-60);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
  padding: 0.4rem 0.8rem;
  white-space: nowrap;
}
.scroll-hint svg {
  animation: bob 1.6s ease-in-out infinite;
  color: var(--gold);
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* -------------------------------------------------------- Stat tiles */
.stat-tile {
  padding: 2rem 1.75rem;
  border: 1px solid var(--sec-border);
  background: var(--sec-panel);
  border-radius: 5px;
  position: relative;
  transition: border-color 240ms ease, transform 240ms ease;
}
.stat-tile:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.stat-tile-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--sec-fg);
}
.stat-tile-num .unit {
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
}
.stat-tile-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sec-border);
}
.stat-tile-note {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--sec-fg-60);
  line-height: 1.55;
  margin-top: 0.6rem;
}

/* -------------------------------------------------------- ICP cards */
.icp-card {
  padding: 1.9rem 1.6rem;
  background: var(--sec-panel);
  border: 1px solid var(--sec-border);
  border-radius: 5px;
  position: relative;
  height: 100%;
  transition: border-color 240ms ease, transform 240ms ease;
}
.icp-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.icp-card-accent {
  border-top: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--sec-panel) 40%);
}
.icp-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.icp-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.42rem;
  line-height: 1.2;
  color: var(--sec-fg);
  letter-spacing: -0.012em;
  margin: 0;
}
.icp-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.94rem;
  color: var(--sec-fg-60);
  margin-top: 0.35rem;
  line-height: 1.4;
}
.icp-list {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sec-border);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  list-style: none;
  padding-left: 0;
}
.icp-list li {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--sec-fg-80);
  line-height: 1.5;
}
.icp-list li span {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 3.6rem;
  margin-right: 0.6rem;
}

/* -------------------------------------------------------- Compare split */
.compare-col {
  padding: 2.1rem 1.85rem;
  background: var(--sec-panel);
  border: 1px solid var(--sec-border);
  border-radius: 5px;
  position: relative;
}
.compare-today { opacity: 0.85; }
.compare-after { border-top: 1px solid var(--gold); }
.compare-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sec-muted);
  margin-bottom: 1.5rem;
}
.compare-label-after { color: var(--gold); }
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.compare-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--sec-fg-80);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.58;
}
.compare-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 1px;
  background: var(--sec-muted);
}
.compare-after .compare-list li::before { background: var(--gold); }

.target-tile {
  padding: 1.85rem 1.6rem;
  background: var(--sec-panel);
  border: 1px solid var(--sec-border);
  border-left: 2px solid var(--gold);
  border-radius: 5px;
}
.target-stat {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--sec-fg);
  line-height: 1;
  letter-spacing: -0.028em;
}
.target-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 1rem;
  color: var(--gold);
}

/* -------------------------------------------------------- Pillars */
.pillar {
  padding: 2.1rem 1.85rem;
  background: var(--sec-panel);
  border: 1px solid var(--sec-border);
  border-radius: 5px;
  position: relative;
  height: 100%;
  transition: border-color 240ms ease, transform 240ms ease;
}
.pillar:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.pillar-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.pillar-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--sec-fg);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0;
}
.pillar-list {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sec-border);
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pillar-list li {
  padding-left: 1.2rem;
  position: relative;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--sec-fg-80);
  line-height: 1.55;
}
.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* -------------------------------------------------------- AI plays */
.play-row {
  display: flex;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--sec-border);
  align-items: flex-start;
}
.play-row:last-child { border-bottom: 0; }
.play-arrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  line-height: 1.2;
  flex-shrink: 0;
  width: 1.5rem;
}
.play-body { flex: 1; }
.play-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--sec-fg);
  margin: 0 0 0.4rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.play-body p {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--sec-fg-60);
  line-height: 1.62;
  margin: 0 0 0.6rem;
  max-width: 60ch;
}
.play-body code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gold);
  background: transparent;
  padding: 0.2rem 0;
  border: 0;
  letter-spacing: 0;
  display: inline-block;
  opacity: 0.85;
}

/* -------------------------------------------------------- Compliance */
.guardrails-panel {
  padding: 2rem 1.85rem;
  background: var(--sec-panel);
  border: 1px solid var(--sec-border);
  border-radius: 5px;
}
.guardrails-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.guardrails {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.guardrails li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: transparent;
  border-left: 1px solid var(--gold-dim);
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--sec-fg-80);
  line-height: 1.55;
}
.g-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  min-width: 1.4rem;
  padding-top: 0.1rem;
  letter-spacing: 0.06em;
}

/* -------------------------------------------------------- Timeline */
.timeline-track {
  height: 1px;
  background: var(--sec-border);
  position: relative;
  margin: 0 0 3rem;
  overflow: hidden;
}
.timeline-track::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: var(--gold);
  transform-origin: left center;
  animation: track-fill 1.4s ease-out both;
}
@keyframes track-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.phase-card {
  padding: 2.1rem 1.85rem;
  background: var(--sec-panel);
  border: 1px solid var(--sec-border);
  border-radius: 5px;
  position: relative;
  height: 100%;
}
.phase-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-dim);
}
.phase-card.mid::before,
.phase-card.late::before { background: var(--gold); }
.phase-days {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.phase-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--sec-fg);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0;
}
.phase-list {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sec-border);
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.phase-list li {
  padding-left: 1.3rem;
  position: relative;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--sec-fg-80);
  line-height: 1.55;
}
.phase-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* -------------------------------------------------------- Metric tiles */
.metric-tile {
  padding: 1.85rem 1.6rem;
  background: var(--sec-panel);
  border: 1px solid var(--sec-border);
  border-radius: 5px;
}
.metric-label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--sec-fg-80);
  margin-bottom: 1.5rem;
  min-height: 2.4em;
  line-height: 1.35;
}
.metric-values {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.metric-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.95rem;
  color: var(--sec-muted);
  line-height: 1;
  letter-spacing: -0.028em;
}
.metric-num.target { color: var(--sec-fg); }
.metric-arrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
}
.metric-tag {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sec-fg-40);
  margin-bottom: 0.35rem;
}
.metric-tag.target { color: var(--gold); }

/* -------------------------------------------------------- Pipeline (moved out of inline <style>) */
.pipeline-card {
  padding: 1.6rem 1.3rem;
  background: var(--sec-panel);
  border: 1px solid var(--sec-border);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 240ms ease, transform 240ms ease;
}
.pipeline-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.pipeline-card-final { border-top: 1px solid var(--gold); }
.pipeline-glyph {
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.pipeline-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.pipeline-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--sec-fg);
  line-height: 1.22;
  letter-spacing: -0.012em;
  margin: 0 0 0.75rem;
}
.pipeline-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--sec-border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pipeline-list li {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--sec-fg-80);
  line-height: 1.5;
  padding-left: 0.9rem;
  position: relative;
}
.pipeline-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 1px;
  background: var(--gold);
}
.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.7;
  padding: 0;
}
@media (max-width: 767px) {
  .pipeline-arrow {
    padding: 0.25rem 0;
    transform: rotate(90deg);
  }
}

/* -------------------------------------------------------- Deliver cards */
.deliver-card {
  padding: 2.1rem 1.9rem;
  background: var(--sec-panel);
  border: 1px solid var(--sec-border);
  border-radius: 5px;
  transition: border-color 240ms ease, transform 240ms ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.deliver-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.deliver-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.deliver-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  color: var(--sec-fg);
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 0 0 1rem;
}
.deliver-body {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--sec-fg-80);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--sec-border);
}

/* -------------------------------------------------------- CTA */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 2rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 4px;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}
.cta-primary:hover {
  transform: translateY(-1px);
  background: var(--gold-strong);
  border-color: var(--gold-strong);
  color: var(--navy);
  box-shadow: 0 12px 30px -14px rgba(201, 169, 97, 0.55);
}
.cta-primary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sec-fg-60);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 200ms ease;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}
.cta-secondary:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.cta-secondary::after {
  content: '→';
  transition: transform 200ms ease;
  color: var(--gold);
}
.cta-secondary:hover::after { transform: translateX(3px); }

/* -------------------------------------------------------- Nav dots */
.nav-rail {
  position: fixed;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 1200px) {
  .nav-rail { display: flex; }
}
.nav-dot {
  width: 6px;
  height: 6px;
  background: rgba(201, 169, 97, 0.25);
  border-radius: 50%;
  transition: all 220ms ease;
  display: block;
}
.nav-dot:hover { background: var(--gold); transform: scale(1.6); }
.nav-dot.active { background: var(--gold); }

/* -------------------------------------------------------- Site badge */
.site-badge {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.6);
  background: rgba(11, 18, 32, 0.72);
  border: 1px solid rgba(201, 169, 97, 0.25);
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}
.site-badge:hover { color: var(--gold); border-color: var(--gold); }
.site-badge .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 0.55rem;
  vertical-align: middle;
}
@media print { .site-badge, .nav-rail, .site-footer { display: none !important; } }

/* -------------------------------------------------------- Site footer strip (replaces marquee) */
.site-footer {
  background: var(--navy);
  color: rgba(247, 245, 239, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.05rem 1.5rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: left;
}
.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.section-ivory + .site-footer,
.section:last-of-type.section-ivory ~ .site-footer {
  background: var(--ivory-hex);
  color: rgba(11, 18, 32, 0.4);
  border-top-color: rgba(11, 18, 32, 0.08);
}

/* -------------------------------------------------------- Focus rings */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* -------------------------------------------------------- Research page */
.research-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.research-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.72);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.breadcrumb .sep { color: var(--gold); }
.breadcrumb .active { color: var(--gold); }
.breadcrumb:hover { color: var(--ivory-hex); }
.research-nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.research-nav-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.7);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  transition: all 200ms ease;
}
.research-nav-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.research-nav-link.primary {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}
.research-nav-link.primary:hover {
  background: var(--gold-strong);
  border-color: var(--gold-strong);
  color: var(--navy);
}

/* Long-form reading — ivory bg, navy text */
body:has(.research-page) { background: var(--ivory-hex); }
.research-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 6rem;
  background: var(--ivory-hex);
  color: var(--navy);
}
@media (min-width: 768px) {
  .research-page { padding: 5rem 2rem 7rem; }
}
.research-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.research-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* Skeleton */
.skeleton { padding: 2rem 0; }
.skeleton-line {
  height: 0.9rem;
  background: linear-gradient(90deg, rgba(11,18,32,0.06) 0%, rgba(11,18,32,0.11) 50%, rgba(11,18,32,0.06) 100%);
  background-size: 200% 100%;
  border-radius: 2px;
  margin-bottom: 0.9rem;
  animation: shimmer 1.6s ease-in-out infinite;
}
.skeleton-line.short  { width: 55%; }
.skeleton-line.medium { width: 78%; }
.skeleton-line.title  { height: 2rem; width: 65%; margin-bottom: 1.6rem; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-note {
  color: var(--muted-ivory);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 1.4rem;
  font-family: var(--mono);
}

/* Prose — long-form reading */
.prose {
  color: rgba(11, 18, 32, 0.85);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
@media (min-width: 768px) {
  .prose { font-size: 17px; }
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.022em;
  line-height: 1.18;
  scroll-margin-top: 5rem;
}
.prose h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
}
.prose h1::first-letter { color: var(--gold); font-style: italic; }
.prose h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  margin: 3rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}
.prose h2 em, .prose h2 span { color: var(--navy); font-style: italic; }
.prose h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  margin: 2.4rem 0 0.8rem;
  color: var(--gold-strong);
}
.prose h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-strong);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 1.8rem 0 0.5rem;
}
.prose p { margin: 0 0 1.15rem; color: rgba(11, 18, 32, 0.82); }
.prose p:first-of-type {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--navy);
}
@media (min-width: 768px) {
  .prose p:first-of-type { font-size: 1.35rem; }
}
.prose a {
  color: var(--gold-strong);
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease, color 200ms ease;
}
.prose a:hover { text-decoration-color: var(--gold); color: var(--navy); }
.prose strong { color: var(--navy); font-weight: 600; }
.prose em { font-style: italic; color: var(--gold-strong); }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.5rem; }
.prose ul li, .prose ol li { margin-bottom: 0.5rem; color: rgba(11, 18, 32, 0.82); }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold); font-family: var(--mono); font-weight: 500; }
.prose blockquote {
  margin: 1.8rem 0;
  padding: 0.3rem 0 0.3rem 1.4rem;
  border-left: 2px solid var(--gold);
  color: var(--navy);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.55;
}
.prose blockquote p:first-of-type {
  font-size: inherit;
  font-family: inherit;
  color: inherit;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(11, 18, 32, 0.04);
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 3px;
  color: var(--gold-strong);
}
.prose pre {
  background: rgba(11, 18, 32, 0.04);
  color: var(--navy);
  padding: 1.2rem 1.4rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.65;
  margin: 1.5rem 0;
  border: 1px solid rgba(11, 18, 32, 0.08);
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.prose hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  margin: 3rem 0;
  opacity: 0.55;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 14px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: #fff;
}
.prose th {
  background: rgba(11, 18, 32, 0.03);
  color: var(--gold-strong);
  text-align: left;
  padding: 0.8rem 1rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}
.prose td {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(11, 18, 32, 0.06);
  vertical-align: top;
  color: rgba(11, 18, 32, 0.82);
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 1.5rem 0;
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.research-foot {
  max-width: 720px;
  margin: 4rem auto 0;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
  color: var(--muted-ivory);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-transform: uppercase;
}
@media (min-width: 640px) {
  .research-foot { flex-direction: row; justify-content: space-between; align-items: center; }
}
.research-foot a { color: var(--gold-strong); text-decoration: none; }
.research-foot a:hover { color: var(--navy); }

.err {
  padding: 1.75rem;
  border: 1px solid rgba(178, 45, 45, 0.32);
  background: rgba(178, 45, 45, 0.05);
  border-radius: 4px;
  color: #7a2a2a;
  font-family: var(--sans);
  font-size: 14.5px;
}
.err strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-strong);
}

/* -------------------------------------------------------- Small screens */
@media (max-width: 640px) {
  .section { padding: 4.5rem 1.25rem; min-height: auto; display: block; }
  .cover  { min-height: 100vh; display: flex; }
  .cover-meta { gap: 1.5rem; margin-top: 2rem; }
  .folio  { font-size: 100px; }
  body    { font-size: 15px; }
  .h-display  { font-size: clamp(2rem, 9vw, 3rem); }
  .h-section  { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .scroll-hint { bottom: 20px; font-size: 9px; }
}

/* -------------------------------------------------------- Print */
@media print {
  html, body { background: #fff !important; color: #000 !important; }
  .nav-rail, .site-badge, .site-footer, .research-nav, .cta-primary, .cta-secondary { display: none !important; }
  .section {
    min-height: auto;
    page-break-after: always;
    padding: 2rem 1rem;
    background: #fff !important;
    color: #000 !important;
    border: 0;
    display: block;
  }
  .section:last-of-type { page-break-after: auto; }
  .h-display, .h-section, .h-display em, .h-section em,
  .prose h1, .prose h2, .prose h3, .prose h4 { color: #000 !important; }
  .stat-tile, .icp-card, .compare-col, .pillar, .phase-card, .metric-tile,
  .guardrails-panel, .guardrails li, .pipeline-card, .deliver-card, .target-tile {
    background: #fff !important;
    border-color: #ccc !important;
    color: #000 !important;
    break-inside: avoid;
  }
  .icp-name, .pillar-title, .phase-title, .metric-label, .body-copy p,
  .compare-list li, .icp-list li, .pillar-list li, .phase-list li,
  .guardrails li, .stat-tile-note, .deliver-body, .pipeline-list li {
    color: #000 !important;
  }
  a { color: #000 !important; text-decoration: underline; }
  .prose { color: #000 !important; }
  .prose p { color: #333 !important; }
  .folio  { opacity: 0.1; color: #999 !important; }
  .margin-label { display: none; }
  .caret  { display: none; }
}
